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
Created by ASUS on 2/24/2018.
public interface FragmentInterface { void onCreate(); void initLayout(); void updateLayout(); void sendInitialRequest(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "public final void mo51373a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "private TMCourse() {\n\t}", "@Override\n public int describeContents() { return 0; }", "public void mo38117a() {\n }", "@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 comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public Pitonyak_09_02() {\r\n }", "public void mo4359a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\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 }", "private ReportGenerationUtil() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() \n {\n \n }", "private Singletion3() {}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "private UsineJoueur() {}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public final void mo91715d() {\n }", "@Override\n public String toString() {\n return \"\";\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "Consumable() {\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "public void create() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "protected Doodler() {\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo12930a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "private void poetries() {\n\n\t}", "@Override\n public Date getCreated()\n {\n return null;\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\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}", "protected boolean func_70814_o() { return true; }", "public void mo1531a() {\n }", "@Override\n public void initialize() {\n \n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "@Override\n public int describeContents()\n {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }" ]
[ "0.5874029", "0.5829695", "0.5799866", "0.57428527", "0.5524777", "0.5488595", "0.54854167", "0.54494214", "0.5426325", "0.54100895", "0.54100895", "0.5387453", "0.53723216", "0.5366306", "0.53576946", "0.5344394", "0.5340627", "0.5338802", "0.5317351", "0.53140986", "0.52986676", "0.52986676", "0.52986676", "0.52986676", "0.52986676", "0.52986676", "0.5294494", "0.52889335", "0.5285778", "0.526622", "0.525951", "0.5239623", "0.5237497", "0.52295583", "0.52295583", "0.52295583", "0.52295583", "0.52295583", "0.52295583", "0.52295583", "0.5227497", "0.52147937", "0.52099884", "0.5208559", "0.51915467", "0.5189614", "0.5189279", "0.5186973", "0.51866186", "0.5185335", "0.51822966", "0.5180444", "0.5179827", "0.5164679", "0.5164038", "0.51633203", "0.5162067", "0.5160075", "0.51361775", "0.5135545", "0.5134625", "0.51316726", "0.51264447", "0.51235795", "0.5116221", "0.51160073", "0.5112982", "0.511214", "0.511214", "0.5111139", "0.5103994", "0.5103245", "0.5102619", "0.5102229", "0.5099651", "0.509321", "0.50923395", "0.5092134", "0.5091227", "0.50890046", "0.5086667", "0.5086667", "0.5083499", "0.5077239", "0.5074679", "0.506757", "0.5057976", "0.50578266", "0.5054516", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412", "0.505412" ]
0.0
-1
n floors and k eggs. (k =
static int minDrops(int n, int E) { //f[n][k] = ? //use one egg broken or not //try floor 1 2 3 4 5 6 with one egg. //floor i. ok if we broken something, didn't broken only go up. or it broke, then // f[n][e] = min( max(f[n - i][e], f[i][e-1]) for i) // // int[][] f = new int[n + 1][E + 1]; //1 floor. ew need1 for (int i = 1; i <= n; ++i) { f[i][1] = i; } for (int i = 1; i <= E; ++i) { f[1][i] = 1; } for (int h = 2; h <= n; ++h) { for (int e = 2; e <= E; ++e) { f[h][e] = h; for (int i = 1; i <= h; ++i) { //try each floor f[h][e] = Math.min(f[h][e], Math.max(f[h - i][e], f[i - 1][e - 1]) + 1); // h ith floor. not broken h - i// check all the remaining // // h ith flor.. borken. check i - 1 then check i -1 broken or not?! } } } return f[n][E]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int eggDrop(int n, int k) {\r\n if(k == 0 || k == 1) {\r\n return k;\r\n }\r\n\r\n // We need k trials for one egg \r\n // and k floors \r\n if(n == 1) {\r\n return k;\r\n }\r\n \r\n int min = Integer.MAX_VALUE;\r\n int i, res;\r\n // Consider all droppings from \r\n //1st floor to kth floor and \r\n // return the minimum of these \r\n // values plus 1.\r\n for(i = 1; i <= k; i++) { // Mistake 1 : Start for loop from 1 instead of 0\r\n res = Math.max(eggDrop(n-1, i-1), eggDrop(n, k-i));\r\n if(res < min) {\r\n min = res;\r\n }\r\n }\r\n\r\n return min + 1;\r\n }", "static int expt(int n,int k) {\n\t\tif (k==0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn n*expt(n,k-1);\n\t}", "static int eggDropDP(int n, int k) {\r\n int[][] eggFloor = new int[n + 1][k + 1];\r\n int res;\r\n int i, j, x;\r\n\r\n //we need one trial for one floor and 0 trial for 0 floor\r\n for(i = 1; i <= n; i++) {\r\n eggFloor[i][1] = 1;\r\n // eggFloor[i][0] = 0;\r\n }\r\n\r\n //we always need j trials for one egg and j floors\r\n for(j = 1; j <= k; j++) {\r\n eggFloor[1][j] = j;\r\n }\r\n\r\n //fill rest of the entries in table using optimal substructure\r\n for(i = 2; i <= n; i++) { //eggs //n\r\n for(j = 2; j <= k; j++) { //floor //k\r\n eggFloor[i][j] = Integer.MAX_VALUE; \r\n for(x = 1; x <= j; x++) { //e\r\n res = 1 + Math.max(eggFloor[i - 1][x - 1], eggFloor[i][j - x]);\r\n if(res < eggFloor[i][j]) {\r\n eggFloor[i][j] = res;\r\n }\r\n }\r\n }\r\n }\r\n\r\n //eggfloor[n][k] holds the result\r\n return eggFloor[n][k];\r\n }", "public static int Main()\n\t{\n\t\tint n; //????\n\t\tint k;\n\t\tint i = 1;\n\t\tint j;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tk = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tint[] f = new int[n + 1]; //????\n\t\twhile (i > 0) //??????????\n\t\t{\n\t\t\tf[0] = (n - 1) * i; //?????\n\t\t\tfor (j = 1;j < n + 1;j++) //????\n\t\t\t{\n\t\t\t\tif (f[j - 1] % (n - 1) != 0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tf[j] = f[j - 1] * n / (n - 1) + k;\n\t\t\t}\n\t\t\tif (j == n + 1)\n\t\t\t{\n\t\t\t\tbreak; //???????\n\t\t\t}\n\t\t\ti = i + 1;\n\t\t}\n\t\tSystem.out.print(f[n]);\n\t\tSystem.out.print(\"\\n\");\n\t\treturn 0;\n\t}", "@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }", "public static String koch(int n) {\n\t\tif (n < 1) {\n\t\t\treturn \"F\";\n\t\t}\n\n\t\treturn koch(n-1).replaceAll(\"F\", \"F+F-F-F+F\");\n\t}", "private int kthChild(int i, int k){\n return d * i + k;\n }", "@Override\r\n\tpublic int runn(int k) {\n\t\treturn 0;\r\n\t}", "public int count(int n, int k)\n {\n\n long MOD = 1000000007;\n long res;\n\n res = (long)Math.pow(k, n);\n Map<Integer, Integer> divisor = new HashMap<>();\n\n long count = 0;\n for(int i = 2; i <= k; i++) {\n if(!(i % 2 == 0 && divisor.containsKey(i / 2))) {\n int div = divisorCount(i);\n divisor.put(i, div);\n count += div - 1;\n }\n else{\n int log2 = 31 - Integer.numberOfLeadingZeros(i);\n int div;\n if(Math.pow(2, log2) == i){\n div = divisor.get(i / 2) + 1;\n\n }\n else\n div = divisor.get(i / 2) * 2;\n\n divisor.put(i, div);\n count += div - 1;\n\n }\n\n }\n\n res -= (n - 1) * Math.pow(k, n - 2) * count;\n return (int)(res % MOD);\n }", "private int kthChild(int i, int k)\n {\n return d*i + k;\n }", "public abstract int getNFactor();", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int k = in.nextInt();\n ArrayList<Integer> list = new ArrayList<>();\n for(int arr_i=0; arr_i < n; arr_i++){\n int integer = in.nextInt();\n list.add(new Integer(integer));\n }\n in.close();\n\n\n\n if(k == 1){\n System.out.println(k);\n return;\n }\n\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i) % k;\n list.set(i, x);\n }\n\n int[] kx = new int[k];\n for(int i = 0;i < k;i ++){\n kx[i] = 0;\n }\n for(int i = 0;i < list.size();i ++){\n int x = list.get(i);\n kx[x] ++;\n }\n\n\n int num = 0;\n int A = 0;\n if(k % 2 == 0){\n A = k / 2 - 1;\n }else{\n A = k / 2;\n }\n if(kx[0] != 0){\n num += 2;\n }\n for(int i = 1; i <= A;i ++){\n if(kx[i] >= kx[k - i]){\n num += kx[i];\n }else {\n\n num += kx[k - i];\n }\n\n }\n System.out.println(num);\n }", "public static int eggDrop(int n, int k) {\n\t\tif(k == 0 || k==1) {\n\t\t\treturn k;\n\t\t}\n\t\tif(n==1) {\n\t\t\treturn k;\n\t\t}\n\t\tint res = 0;\n\t\tint min = Integer.MAX_VALUE;\n\t\tint x;\n\t\tfor(x=1; x<=k; x++) {\n\t\t\tres = 1+Math.max(eggDrop(n-1, x-1), eggDrop(n, k-x));\n\t\t\tif(res < min)min = res;\n\t\t}\n\t\treturn min+1;\n\t}", "static long g(long k) {\n\t\treturn Math.max(lpf(k + 1), lpf(k * k - k + 1)) - 1;\n\t}", "public int numWaysTopDown(int n, int k) {\n Integer[] mem = new Integer[n + 1]; // memoized table\n return paint(n, k, mem); // call recursive helper\n }", "static int workbook(int n, int k, int[] arr) {\n int specialProblems = 0;\n int page = 1;\n for (int i = 0; i < n; i++) {\n for (int j = 1; j <= arr[i]; j++) {\n if (j == page)\n specialProblems++;\n if (j % k == 0)\n page++;\n }\n if (arr[i] % k != 0) page++;\n }\n return specialProblems;\n }", "int CalcKey(int g, int x, int n)\r\n {\r\n int rtn = 1;\r\n for(int i = 0; i < x; i++)\r\n rtn = (rtn * g) % n;\r\n return rtn;\r\n }", "public static int Main()\n\t{\n\t\tint n; //????\n\t\tint k;\n\t\tint i;\n\t\tint i2;\n\t\tint j;\n\t\tn = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tk = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tfor (i2 = 1;;i2++)\n\t\t{ //????\n\t\t\ti = i2;\n\t\t\tfor (j = 0;j < n;j++)\n\t\t\t{ //????\n\t\t\t\tif (i % (n - 1) != 0)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti = i * n / (n - 1) + k;\n\t\t\t}\n\t\t\tif (j == n)\n\t\t\t{\n\t\t\t\tSystem.out.print(i);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "VariableAmount getSpikesPerChunk();", "public void setFloors(int floors);", "static double k(int n, final double x) {\n n = Math.abs(n);\n if (n > 31) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (x <= 0) {\n return Double.NaN; // domain error or singularity\n }\n if (x <= 9.55) {\n double ans = 0;\n final double z0 = 0.25 * x * x;\n double fn = 1;\n double pn = 0;\n double zmn = 1;\n final double tox = 2 / x;\n double s, t, k;\n\n if (n > 0) {\n // compute factorial of n and psi(n)\n pn = -Constants.EULER;\n k = 1;\n for (int i = 1; i < n; ++i) {\n pn += 1 / k;\n fn *= ++k;\n }\n zmn = tox;\n if (n == 1) {\n ans = 1 / x;\n } else {\n double nk1f = fn / n;\n double kf = 1;\n s = nk1f;\n final double z = -z0;\n double zn = 1;\n for (int i = 1; i < n; ++i) {\n nk1f /= (double) (n - i);\n kf *= (double) i;\n zn *= z;\n t = nk1f * zn / kf;\n s += t;\n if ((Double.MAX_VALUE - Math.abs(t)) < Math.abs(s)) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (tox > 1 && Double.MAX_VALUE / tox < zmn) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n zmn *= tox;\n }\n s *= 0.5;\n t = Math.abs(s);\n if (zmn > 1 && Double.MAX_VALUE / zmn < t) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n if (t > 1 && Double.MAX_VALUE / t < zmn) {\n return Double.POSITIVE_INFINITY; // overflow\n }\n ans = s * zmn;\n }\n }\n final double t1g = 2 * Math.log(0.5 * x);\n double pk = -Constants.EULER;\n if (n == 0) {\n pn = pk;\n t = 1;\n } else {\n pn += 1.0 / n;\n t = 1 / fn;\n }\n s = (pk + pn - t1g) * t;\n k = 1;\n do {\n t *= z0 / (k * (k + n));\n pk += 1 / k;\n pn += 1 / (k + n);\n s += (pk + pn - t1g) * t;\n ++k;\n } while (Math.abs(t / s) > Constants.MACHINE_PRECISION);\n s = 0.5 * s / zmn;\n if ((n & 1) != 0) {\n s = -s;\n }\n return ans + s;\n } else {\n // asymptotic expansion\n if (x > MAXLOG) {\n return 0; // underflow\n }\n final double k = (double) n;\n final double pn = 4 * k * k;\n double pk = 1;\n final double z0 = 8 * x;\n double fn = 1;\n double t = 1;\n double s = t;\n double nkf = Double.MAX_VALUE;\n int i = 0;\n do {\n final double z = pn - pk * pk;\n t = t * z / (fn * z0);\n final double nk1f = Math.abs(t);\n if (i >= n && nk1f > nkf) {\n return Math.exp(-x) * Math.sqrt(Math.PI / (2 * x)) * s;\n }\n ++i;\n nkf = nk1f;\n s += t;\n ++fn;\n pk += 2;\n } while (Math.abs(t / s) > Constants.MACHINE_PRECISION);\n return Math.exp(-x) * Math.sqrt(Math.PI / (2 * x)) * s;\n }\n }", "public static void main(String[] args) {\n\t\tint n = 4;\t// Kontejneri\n\t\tint k = 1;\t// Kapacitet\n\t\tint prvi = n / k; // Provjera da li se svi mogu sloziti jedan u drugi (djeljivost sa 2)\n\t\tint exponent; // Jedini brojevi djeljivi sa 2 do kraja (slaganja kontejnera)\n\t\tint dodatni; // Koliko treba dodatnih\n\t\tfor (int i = 1; i > 0;) { // Racunaj eksponent 2 do kraja int vrijednosti...\n\t\t\ti = i * 2;\n\t\t\texponent = i;\n\t\t\tif (prvi == exponent) {\n\t\t\t\tSystem.out.println(\"Ne treba\");\n\t\t\t\tbreak;\n\t\t\t} else if (prvi != exponent) { // Ako se ne mogu sloziti do kraja, uzmi slijedeci veci eksponent od broj kontejnera i daj ostatak djeljenja, to su dodatne kutije.\n\t\t\t\tif (2 < n && n < 4) {\n\t\t\t\t\tdodatni = 4 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 4 < n && n < 8) {\n\t\t\t\t\tdodatni = 8 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 8 < n && n < 16) {\n\t\t\t\t\tdodatni = 16 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 16 < n && n < 32) {\n\t\t\t\t\tdodatni = 32 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t\tbreak;\n\t\t\t\t} else if (prvi != exponent && 32 < n && n < 64) {\n\t\t\t\t\tdodatni = 64 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 64 < n && n < 128) {\n\t\t\t\t\tdodatni = 128 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 128 < n && n < 256) {\n\t\t\t\t\tdodatni = 256 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else if (prvi != exponent && 256 < n && n < 512) {\n\t\t\t\t\tdodatni = 512 % n;\n\t\t\t\t\tSystem.out.printf(\"Mujo treba %d dodatnih kontejnera\",\n\t\t\t\t\t\t\tdodatni);\n\t\t\t\t} else { // U suprotno, djeljenje kontejnera i kapaciteta je jednako eksponentu 2 i ne treba doadatnih.\n\t\t\t\t\tSystem.out.println(\"Ne treba dodatnih kontejnera.\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t}", "public Node ceil(K k){\n int ceiRank = rank(k);\n// Node res = select(ceiRank);\n// if(res.e.equals(e))\n// ceiRank = ceiRank+1;\n return select(ceiRank);\n }", "static void kaprekarNumbers(int p, int q) {\n for (int i = p; i <=q ; i++) {\n if(isKN(i)){\n System.out.print(i+\" \");\n }\n }\n }", "public int getNumOfFloors(){\n return floors.size();\n }", "private int first_leaf() { return n/2; }", "void setSpikesPerChunk(VariableAmount count);", "public static int getSpectators(int n, int k, int t){\n\t if( t <= k && t <= n)\n\t {\n\t return (t);\n\t }\n\t else if(t <= n) \n\t {\n \t return (k);\n\t } \n\t else \n\t {\n\t\treturn(Math.max(0, k - (t - n)));\n\t }\n\t}", "private static int choose(int n, int k) {\n return factorial(n) / (factorial(k) * factorial(n - k));\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 int numWays(int n, int k) {\n int[] mem = new int[n + 1]; // memoized table\n \n // base cases\n mem[0] = 0; // no paint\n if (n + 1 > 1) mem[1] = k; // each color can be painted once\n if (n + 1 > 2) mem[2] = k*k; // each k can be matched with k other colors because we can repeat due to length 2\n \n for (int i = 3; i < n + 1; i++) { // calculate the rest through iteration\n mem[i] = (mem[i - 1] + mem[i - 2]) * (k - 1); // take the previous two (fibonacci style) and multiply by k - 1 new colors we can use\n }\n \n return mem[n]; // mem[n] will be the n'th fence ways we can paint\n }", "private RoundTable( IntSList knsBefore, IntSList knsAfter, int n ) {\n \n //knights = kns;\n numeroCompl = n;\n knightsBefore = knsBefore;\n knightsAfter = knsAfter;\n lunghezza = knsBefore.length();\n \n }", "private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_E.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_A.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\treturn number * 2; // *2 is to account for the reversed branch iterations\r\n\t}", "public int findKthNumber(int m, int n, int k) {\n int low = 1, high = m * n + 1, mid;\n\n while (low < high) {\n mid = low + ((high - low) >> 1);\n if (count(mid, m, n) >= k) {\n high = mid;\n } else {\n low = mid + 1;\n }\n }\n return high;\n }", "public final void setN(final int koko) {\r\n this.n = koko;\r\n }", "public int numWays(int n, int k) {\n if(n == 0)\n return 0;\n int numsDiff = k;\n int numsSame = 0;\n for(int i = 2; i <= n; i++){\n int preSame = numsSame;\n numsSame = numsDiff;\n numsDiff = preSame * (k - 1) + numsDiff * (k - 1);\n }\n return numsSame + numsDiff;\n }", "static double geometricSum(int k) {\n\t\tif (k==0) \n\t\t\treturn 1; // Endpoint\n\t\telse \n\t\t\treturn 1/Math.pow(2,k) + geometricSum(k-1); \n\t}", "private String getKeyKHKByMultipleNumber(String key, int n) {\n return key + String.format(KHKKeySuffix + \"%0\" + KHKKeyMaxLength + \"d\", n);\n }", "Integer getLNDFlgs();", "public static void main(String[] args) {\n int a = 2; // starting number\n int r = 2; // Common ratio\n int n = 5; // N th term to be find\n\n int curr_term;\n for (int i = 0; i < n; i++) {\n curr_term = a * (int)Math.pow(r, i);\n System.out.print(curr_term + \" \");\n }\n\n }", "public int getNumberOfFloors() {\n\t\treturn 2;\r\n\t}", "public int numTrees(int n) {\n long now = 1;\n for (int i = 0; i < n; i++) {\n now *= 2*n-i;\n now /= i+1;\n }\n return (int)(now/(n+1));\n }", "private double calc_e_order_n(int il) {\n\t\tint j;\n\t\tdouble dr2,newe,store_cut,pot;\n\t\t\n\t\tstore_cut = pot_cut_off;\n\t\tpot_cut_off = 1.0e20;\n\t\tpot_cut_off2 = pot_cut_off*pot_cut_off;\n\t\tnewe = 0.0;\n\t\tfor(j=0; j<n; j++) {\n\t\t\tif ( j != 0 ) {\n\t\t\t\tdr2 = ij_sep2(0,j,il,CUR_POS);\n\t\t\t\tpot = ij_inter_act(dr2,0,j,il);\n\t\t\t\tnewe += pot;\n\t\t\t}\n\t\t}\n\t\tpot_cut_off = store_cut;\n\t\tpot_cut_off2 = pot_cut_off*pot_cut_off;\n\t\t\n\t\treturn(newe);\n\t}", "public static void main(String[] args) {\n\n int k=5;\n int factorial=1;\n for (int i=1;i<=5;i++){\n factorial*=i;\n }\n System.out.println(factorial);\n }", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "public final static void main(String[] args) {\n\t\tfinal int n = 8;\n\t\tfinal int k = 4;\n\n\t\tStreamSupport.stream(\n\t\t\t\tnew PermutationSpliterator(Selection.of(n, k)),\n\t\t\t\tfalse)\n\t\t\t\t.forEachOrdered(a -> {});\n\n\t\tfor (int cur = 0; cur < 70; cur++) {\n\t\t\tlong tCur = cur;\n\t\t\tfinal int x = (n - k)+1;\n\t\t\tint i = k;\n\t\t\tfinal int[] array = new int[k];\n\t\t\twhile (i >= 1) {\n\t\t\t\tarray[i-1] = (int) (tCur % x);\n\t\t\t\ttCur /= i--;\n\t\t\t}\n\t\t}\n\t}", "private int d(final int n) {\r\n Set<Long> set = new Factors(n).getProperDivisors();\r\n long sum = 0;\r\n for (long i : set) {\r\n sum += i;\r\n }\r\n return (int) sum;\r\n }", "private void swim(int k) {\r\n while (k > 1 && greater(k/2, k)) {\r\n swap(k, k / 2);\r\n k = k/2;\r\n }\r\n }", "Builder spikesPerChunk(VariableAmount count);", "public int digitCounts(int k, int n) {\n\n int result = 0;\n int base = 1;\n while (n/base > 0) {\n\n int cur = (n/base)%10;\n int low = n-(n/base) * base;;\n int high = n/(base * 10);\n\n if (cur < k)\n {\n result += high*base;\n }\n else if (cur > k)\n {\n result += (high+1)*base;\n }\n else\n {\n result += high*base+low+1;\n }\n\n base *= 10;\n }\n\n return result;\n }", "default void setSpikesPerChunk(int count) {\n setSpikesPerChunk(VariableAmount.fixed(count));\n }", "int getN();", "private static long combinations(int n, int k) {\n\t\tif (k > n / 2) {\n\t\t\tk = n - k;\n\t\t}\n\n\t\tlong result = 1;\n\n\t\tfor (int i = 1, j = n - k + 1; i <= k; i++, j++) {\n\t\t\tresult = result * j / i;\n\t\t}\n\n\t\treturn result;\n\t}", "public int numTrees(int n) {\n if(n == 0 || n == 1 || n == 2)\n return n;\n int[] c = new int[n + 1];\n c[2] = 2;\n c[3] = 5;\n for(int i = 4; i < n + 1; i++){\n for(int j = 2; j < i; j++)\n c[i] += 2 * (c[j]);\n }\n return c[n];\n }", "private int findDividingFactor(List<EventProducer> groupOfEP) {\n\t\tint dividingFactor = 0;\n\n\t\t// Try the first 10000 integer\n\t\tfor (int i = 1; i <= 10000; i++) {\n\t\t\tif (Math.pow(i, maxHierarchyDepth) > groupOfEP.size()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdividingFactor++;\n\t\t}\n\n\t\t// If we only found 1 as solution try to see if with the value 2, we\n\t\t// can find a working solution with a smaller hierarchy depth (which\n\t\t// means we will not necessarily reach the wanted maxdepth for this\n\t\t// group\n\t\tif (dividingFactor == 1) {\n\t\t\t// Try the first 10000 integer\n\t\t\tfor (int i = maxHierarchyDepth; i > 1; i--) {\n\t\t\t\tif (Math.pow(2, i) < groupOfEP.size()) {\n\t\t\t\t\tdividingFactor = 2;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn dividingFactor;\n\t}", "public static String euklid(int a, int b, int c)\n {\n int[] rk = new int[20];\n rk[0] = a;\n rk[1] = b;\n int k = -1;\n int qk = 0;\n int[] sk = new int[20];\n sk[0] = 1;\n sk[1] = 0;\n int[] tk = new int[20];\n tk[0] = 0;\n tk[1] = 1;\n int i = 0;\n String d = null;\n String konstant = d;\n\n if (b == 0)\n {\n return Integer.toString(a);\n }\n\n System.out.println(\"\\n k | qk rk sk tk\");\n System.out.println(\"-----|------------------------\");\n System.out.println(\" \"+k+\" | -\"+\" \"+rk[0]+\" \"+\"1\"+\" \"+\"0\"); k++;\n System.out.println(\" \"+k+\" | -\"+\" \"+rk[1]+\" 0\"+\" \"+\"1\"); k++;\n System.out.println(\"-----|------------------------\");\n\n for (i = 2; i < rk.length; i++)\n {\n try\n {\n rk[i] = Math.abs(rk[i-2]%rk[i-1]);\n }\n catch (Exception e)\n {\n break;\n }\n\n qk = Math.floorDiv(rk[i-2], rk[i-1]);\n\n System.out.print(\" \"+k+\" | \"+qk+\" \"+rk[i]+\" \");\n\n if (rk[i]!=0)\n {\n sk[i] = sk[i-2]-(qk*sk[i-1]);\n\n tk[i] = tk[i-2]-(qk*tk[i-1]);\n System.out.println(+sk[i]+\" \"+tk[i]);\n }\n\n k++;\n }\n\n System.out.println(\"\\n\");\n\n boolean test = (sk[i-2]*a+tk[i-2]*b == c);\n\n System.out.println(\"sfd(\"+a+\",\"+b+\") = \"+c+\" = \"+sk[i-2]+\"*\"+a+\"+(\"+tk[i-2]+\"*\"+b+\") \"+test);\n\n System.out.println(\"\");\n\n return Arrays.toString(rk);\n\n }", "public int numTrees(int n) {\n if(n<=1)\n return 1;\n int[] dp = new int[n+1];\n dp[0] = 1;\n dp[1] = 1;\n dp[2] = 2;\n \n for(int i=3;i<=n;i++){\n int sum = 0;\n for(int a=0;a<i;a++){\n sum+=dp[0+a]*dp[i-1-a];\n }\n dp[i] = sum;\n //if i is odd then add the i/2 dp after you multiply by 2\n }\n return dp[n];\n }", "public void Series() {\n\t\tint n=8,i=1,k=2,count=0;\n\t\tSystem.out.print(n+\" \");\n\t\twhile (count<5) {\n\t\t\tn=n*i;//12\n\t\t\tn=n-k;//9\n\t\t\tSystem.out.print(n+\" \");//9\n\t\t\ti++;\n\t\t\tk++;\n\t\t\tcount++;\n\t\t}\n\t\t/*System.out.println(n);//8\n\t\tn=n*1;//8\n\t\tn=n-2;//6\n\t\t\n\t\tSystem.out.println(n);//6\n\t\tn=n*2;//12\n\t\tn=n-3;//9\n\t\tSystem.out.println(n);//9\n\t\tn=n*3;//27\n\t\tn=n-4;//23\n\t\tSystem.out.println(n);\n\t\tn=n*4;//12\n\t\tn=n-5;*/\n\t\t\n\t\t/*System.out.println(n);\n\t\tn=n*5;//12\n\t\tn=n-6;\n\t\tSystem.out.println(n);*/\n\t\t\n\t}", "private double deCasteljau(double s, int n, int k) {\n\t\treturn ((fatorial(n)/(fatorial(k)*fatorial(n-k)))*Math.pow(s, k)* Math.pow(1-s, n-k));\n\t}", "public static long Hofstadter(long n) {\n if(n == 1 || n == 2) {\n \treturn 1;\n }\n return Hofstadter(n - Hofstadter(n-1)) + Hofstadter(n - Hofstadter(n-2));\n }", "private void testDifferentKValues()\r\n\t{\r\n\t\tLinkedHashMap<Integer, LinkedHashMap<Integer, Double>> energies;\r\n\r\n\t\tif (isEType) {\r\n\t\t\tenergies = ENERGIES_E;\r\n\t\t} else {\r\n\t\t\tenergies = ENERGIES_A;\r\n\t\t}\r\n\r\n\t\tfor (Map.Entry<Integer, LinkedHashMap<Integer, Double>> entry : energies.entrySet()) {\r\n\t\t\t\r\n\t\t\titerationsGoneThrough++;\r\n\t\t\tint percent = (int) ((iterationsGoneThrough / numberOfKIterations) * 80 + 20);\r\n\t\t\tmultiThreadingObj.myPublish(\"msg Generating assignments: \" + percent + \"%\");\r\n\t\t\tmultiThreadingObj.myPublish(\"val \" + percent);\r\n\t\t\t\r\n\t\t\tcurrentK = entry.getKey();\r\n\t\t\tenergiesForCurrentK = entry.getValue();\r\n\t\t\t\r\n\t\t\ttestDifferentJRangesForConstantK();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tint n = sc.nextInt();\r\n\t\tint m = sc.nextInt();\r\n\t\tint k = sc.nextInt();\r\n\t\tfor (int i = -1; i < n*k+1; i++) {\r\n\t\t\tif (i == -1 || i == n*k) {\r\n\t\t\t\tSystem.out.println(String.format(\"+%s +\",\" -\".repeat(m*k)));\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.print(\"| \");\r\n\t\t\t\tfor (int j = 0; j < m*k*2; j+=2) {\r\n\t\t\t\t\tif (i % (2*k) < k && j % (k*4) < k*2 || i % (2*k) >= k && j % (k*4) >=k *2)\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"|\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int kth1(int k) {\n\t int[] dp = new int[k];\n\t int indexTwo = 0;\n\t int indexThree = 0; \n\t int numberOfTwo = 2;\n\t int numberOfThree = 3;\n\t int nextNumber = 1;\n\t dp[0] = 1;\n\t for (int i = 1 ; i < k ; i++) {\n\t nextNumber = Math.min(numberOfTwo, numberOfThree);\n\t dp[i] = nextNumber;\n\t if (nextNumber == numberOfTwo) {\n\t indexTwo += 1;\n\t numberOfTwo = dp[indexTwo] * 2;\n\t }\n\t if (nextNumber == numberOfThree) {\n\t indexThree +=1;\n\t numberOfThree = dp[indexThree] * 3;\n\t }\n\t }\n\t return nextNumber;\n\t }", "public TowersOfHanoi(int noDisks){\n\n this.noDisks = noDisks;\n\n\n }", "protected int t(int n) {\r\n\t\treturn Math.floorDiv(n * (n - 1), 2);\r\n\t}", "public int kth(int k) {\n\t int counter = 0;\n\t int begin = 0;\n\t while (counter < k) {\n\t begin++;\n\t if (check(begin) == 1) {\n\t counter++;\n\t }\n\t }\n\t return begin;\n\t }", "public abstract int selfExplodingKittenDrawn();", "public int numTrees(int n) {\n int[] G = new int[n + 1];\n G[0] = 1;\n G[1] = 1;\n\n for (int i = 2; i <= n; ++i) {\n for (int j = 1; j <= i; ++j) {\n G[i] += G[j - 1] * G[i - j];\n }\n }\n return G[n];\n }", "public static String KthPermutation(int n, int k){\n if(n > 9 || k <= 0) return \"\";\n if(n == 1) return \"1\";\n\n int[] factors = new int[n + 1];\n factors[0] = 1;\n for(int i = 1; i <= n; i++) factors[i] = factors[i - 1] * i;\n\n k = k - 1;\n k = k % factors[n];\n\n StringBuilder nums = new StringBuilder(\"123456789\");\n StringBuilder permutation = new StringBuilder();\n for(int i = n - 1; i >= 0; i--){\n int curNum = k / factors[i];\n permutation.append(nums.charAt(curNum));\n nums.deleteCharAt(curNum);\n k = k - curNum * factors[i];\n }\n return permutation.toString();\n }", "public void setNumberOfFloors(int numberOfFloors) {\r\n this.numberOfFloors = numberOfFloors;\r\n }", "public static void print(int n) {\n int[][] data = new int[n][n];\n data[0][0] = 1;\n data[n - 1][n - 1] = n * n;\n\n //将蛇形矩阵按照正对角线分为上半部分和下半部分\n //现在先来设计上半部分,并且负责对角线,上半部分可将斜线的顺序记为k,按k的奇偶性进行判断\n //以斜线为基准打印\n for (int k = 1; k <= (n - 1); k++) {\n if (k % 2 == 1) {//当k为奇数时,代表每条斜线的最小值在上方\n data[0][k] = 1 + k * (k + 1) / 2;\n for (int i = 1; i <= k; i++) {\n data[i][k - i] = data[0][k] + i;//行递增,列递减\n\n }\n } else {//当k为偶数时,代表每条斜线的最小值在下方\n data[k][0] = 1 + k * (k + 1) / 2;\n for (int i = 0; i <= k; i++) {\n data[k - i][i] = data[k][0] + i;//行递减,列递增\n }\n }\n }//上半部分就已经设计好了,接着设计下半部分\n\n //下半部分就会显得比较复杂,首先要先判断n的奇偶性,还要再判断k的奇偶性\n //从左向右按照从大到小的顺序进行斜线的连接,同样以k代表斜线的序号\n if (n % 2 == 0) {//如果n为偶数\n for (int k = 1; k <= (n - 2); k++) {\n if (k % 2 == 1) {//当k为奇数的时候每条斜线的最大值在上方\n data[k][n - 1] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[k + i][n - 1 - i] = data[k][n - 1] - i;//行递增,列递减\n }\n } else {//当k为偶数的时候,每条斜线的最大值在下方\n data[n - 1][k] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[n - 1 - i][k + i] = data[n - 1][k] - i;//行递减,列递增\n }\n }\n }\n } else {//如果n为奇数,那么就是相反的\n for (int k = 1; k <= (n - 2); k++) {\n if (k % 2 == 0) {//当k为偶数的时候每条斜线的最大值在上方\n data[k][n - 1] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[k + i][n - 1 - i] = data[k][n - 1] - i;//行递增,列递减\n }\n } else {//当k为奇数的时候,每条斜线的最大值在下方\n data[n - 1][k] = data[n - 1][n - 1] - (n - k - 1) * (n - k) / 2;\n for (int i = 1; i < n - k; i++) {\n data[n - 1 - i][k + i] = data[n - 1][k] - i;//行递减,列递增\n }\n }\n }\n }//下半部分的就设计好咯\n\n //接下来就是显示矩阵咯\n\n for (int i = 0; i < data.length; i++) {\n for (int j = 0; j < data[i].length; j++) {\n System.out.print(data[i][j] + \"\\t\");\n }\n System.out.println();\n }//结束显示,结束print方法,进入main方法\n }", "private static <Key extends Comparable<Key>> void swim(Key[] pq, int k, int n) {\n while(k/2 > 1 && less(pq, k/2, k)) { // parent is smaller\n exch(pq, k, k/2);\n k = k/2;\n }\n }", "BigDecimal Spigot()\n\t{\n\t\t\n\t\tint increment \t= 20000;\n\t\tint max \t\t= 1000000;\n\t\t\n\t\tBigDecimal totResult = new BigDecimal(0.0);\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result1 = new BigDecimal(0.0);\n\t\t\n\t\tBigDecimal sixTeenPowStartVal = new BigDecimal(1.0);\n\t\tBigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult1 = result1.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\n\t\tresult1 = result1.multiply( new BigDecimal(4) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result2 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult2 = result2.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\tresult2 = result2.multiply( new BigDecimal(2) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result3 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult3 = result3.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result4 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult4 = result4.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\ttotResult = result1.subtract( result2.add( result3 ).add( result4 ) );\n\t\t\n\t\treturn totResult;\n\t}", "public static int hailstoneLength(int n) {\n /* to be implemented in part (a) */\n int length = 0;\n while (n != 1){\n if (n%2!=0)\n n= 3*n+1;\n else if (n%2==0)\n n= n/2;\n length ++;\n }\n return length + 1;\n }", "public static void main(String[] args) {\n\t\n\t Scanner in = new Scanner(System.in);\n\t int n = in.nextInt();\n\t int k = in.nextInt();\n\t int a[] = new int[n];\n\t for(int a_i=0; a_i < n; a_i++){\n\t a[a_i] = in.nextInt();\n\t }\n\t int count=0;\n\t for(int a1=0;a1<n-1;a1++)\n\t {\n\t \tfor(int b=1;b<n;b++)\n\t \t{\n\t \t if(a[a1]+a[b]%3==0)\n\t \t {\n\t \t\t count++;\n\t \t }\n\t \t}\n\t }\n\t System.out.println(count);\n\n\t}", "public static void main (String [] args) throws IOException {\n\t\tScanner s = new Scanner(new FileReader(\"fact4.in\"));\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"fact4.out\")));\n\t\tint n = s.nextInt();\n\t\tint numzeroes = n/5 + n/25 + n/125 + n/625 + n/3125;\n\t\tint result = 1;\n\t\tint counter1 =0;\n\t\twhile(n>0){\n\t\t\tif(n%5 ==0){\n\t\t\t\tint temp = n;\n\t\t\t\twhile(temp%5 ==0){\n\t\t\t\t\ttemp /=5;\n\t\t\t\t}\n\t\t\t\tresult = (result*temp)%10;\n\t\t\t}\n\t\t\telse if(n%2==0 && counter1 < numzeroes){\n\t\t\t\tresult = (result*(n/2))%10;\n\t\t\t\tcounter1++;\n\t\t\t}else{\n\t\t\t\tresult = (result*n)%10;\n\t\t\t}\n\t\t\tn--;\n\t\t}\n\t\tout.println(result);\n\t\tout.close(); \n\t}", "private static <Key extends Comparable<Key> > void swim(Key []a, int k){\n while(k>1 &&less(a, k/2, k)){\n exch(a, k/2, k);\n k=k/2;\n }\n }", "public static int kthLargest(Node node, int k){\n return 0;\n }", "static long sumOfGroup(int k) {\n long start = 1;\n long sum = 0;\n for(int i=1;i<=k;i++){\n long count = 0;\n sum = 0;\n while(count<i){\n if(start%2 == 1){\n sum = sum+start;\n count++;\n }\n start++;\n }\n }\n return sum;\n }", "public String run() {\r\n\t// divisorSum[n] is the sum of all the proper divisors of n\r\n int divisorSum[]= new int[LIMIT+1];\r\n for(int i=1;i<=LIMIT;i++)\r\n {\r\n for(int j=i+i;j<=LIMIT;j+=i)\r\n divisorSum[j]+=i;\r\n }\r\n // Analyze the amicable chain length for each number in ascending order\r\n int maxChainLen=0;\r\n int minChainElem=-1;\r\n for(int i=0;i<=LIMIT;i++){\r\n Set<Integer> visited=new HashSet<>();\r\n for(int count=1,cur=i;;count++){\r\n visited.add(cur);\r\n int next=divisorSum[cur];\r\n if(next==i)\r\n {\r\n if(count>maxChainLen){\r\n minChainElem=i;\r\n maxChainLen=count;\r\n \r\n }\r\n break;\r\n }\r\n // Exceeds limit or not a chain (a rho shape instead)\r\n else if(next>LIMIT || visited.contains(next))\r\n break;\r\n else\r\n cur=next;\r\n }\r\n }\r\n return Integer.toString(minChainElem);\r\n }", "public static void main(String[] args) \n\t{\n\t\t int i=20, j=40;\n\t\t int k=0;\n\t\t ArrayList<Integer> l1=new ArrayList<Integer>();\n\t\t ArrayList<Integer> l2=new ArrayList<Integer>();\n\t\t for(int a=i;a<=j;a++){\n\t\t int count=0;\n\t\t for(int b=2;b<a;b++)\n\t\t if(a%b==0)\n\t\t count++;\n\t\t if(count==0)\n\t\t l1.add(a); }\n\t\t for(int e=i;e<=j;e++)\n\t\t l2.add(e);\n\t\t l2.removeAll(l1);\n\t\t for(int d=0;d<l2.size();d++)\n\t\t k=k+l2.get(d);\n\t\t \n\t\tSystem.out.println(k);\n\t}", "public void setK(int k) {\n this.k = k;\n }", "int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }", "private void FenwickTree(int n) {\n // Store the actual values in tree[] using update()\n for(int i = 0; i < N; i++)\n updateBIT(down_tree, Max_dis, site_distance[i], raw_tree[site_distance[i]]);\n }", "private int p(K k, int i) {\r\n return i/2 + (i*i)/2 + (i%2);\r\n }", "static int lcmhelp(int j,int k, int n) {\n\t\tif ((n % j == 0) && (n % k == 0)) {\t\t\n\t\t\treturn n; // n is the lowest number\n\t\t}\n\t\telse \n\t\t\treturn lcmhelp(j,k,n+1); // try again with the next-largest number\n\t}", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int q = sc.nextInt();\n\n for(int k = 0; k < q; k++) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n\n // indicate number of pieces\n long x = 1;\n long y = 1;\n \n ArrayList<Long> c_y = new ArrayList<Long>();\n for(int i = 0; i < m - 1; i++) {\n c_y.add(sc.nextLong());\n }\n \n ArrayList<Long> c_x = new ArrayList<Long>();\n for(int i = 0; i < n - 1; i++) {\n c_x.add(sc.nextLong());\n }\n\n Collections.sort(c_y, Collections.reverseOrder());\n Collections.sort(c_x, Collections.reverseOrder());\n\n // cut: most expensive = cut first\n int index_X = 0;\n int index_Y = 0;\n long totalCost = 0;\n\n while(!(x == n && y == m)) {\n if(x < n && y < m) {\n // compare cost to decide whether cut horizontally or vertically\n if(c_y.get(index_Y) >= c_x.get(index_X)) {\n totalCost += c_y.get(index_Y) * x;\n y++;\n index_Y++;\n } else if(c_y.get(index_Y) < c_x.get(index_X)) {\n totalCost += c_x.get(index_X) * y;\n x++;\n index_X++; \n }\n } else if(x == n && y < m) {\n totalCost += c_y.get(index_Y) * x;\n index_Y++;\n y++;\n } else if(x < n && y == m) {\n totalCost += c_x.get(index_X) * y;\n index_X++;\n x++;\n }\n }\n\n totalCost = totalCost % (long)(Math.pow(10, 9) + 7);\n System.out.println(totalCost );\n }\n }", "private static long f(long m) {\n\t\tlong k = 1;\r\n\t\tfor (long i=1; i<=m; i++){\r\n\t\t\tk *= i;\r\n\t\t}\r\n\t\treturn k;\r\n\t}", "@Test void selectBestRegionsFern_largerN() {\n\t\tTldDetection<GrayU8> alg = new TldDetection<>();\n\t\talg.config = new ConfigTld();\n\t\talg.config.maximumCascadeConsider = 20;\n\n\t\t// check eliminate ones which are more N than P\n\t\tfor( int i = 0; i < 10; i++ ) {\n\t\t\talg.fernInfo.grow();\n\t\t\talg.fernInfo.get(i).sumP = 6;\n\t\t\talg.fernInfo.get(i).sumN = 6;\n\t\t}\n\n\t\t// larger max N will make its likelihood smaller\n\t\talg.selectBestRegionsFern(300,200);\n\n\t\tassertEquals(0,alg.fernRegions.size());\n\t}", "private static int numTrees(int n) {\n int[] counts = new int[n + 2];\n counts[0] = 1;\n counts[1] = 1;\n for (int i = 2; i <= n; i++) {\n for (int j = 0; j < i; j++) {\n counts[i] += counts[j] * counts[i - j - 1];\n }\n }\n return counts[n];\n }", "public static void main(String[] args) {\n\t\tint k =1;\n\t\twhile(k < 20){\n\t\t\tif ((k % 3)==1){\n\t\t\t\tSystem.out.print(k + \" \");\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t}", "default Builder spikesPerChunk(int count) {\n return spikesPerChunk(VariableAmount.fixed(count));\n }", "public static void main(String[] args) {\n\tfor(int k=1; k<=3;k++)\r\n\t{\r\n\t\tfor(int i=1; i<=9; i++)\r\n\t\t {\r\n\t\t\tSystem.out.println();\r\n\t\t for(int j=3*k-1; j<=3*k+1;j++)\r\n\t\t {\r\n\t\t if(j!=10)\r\n\t\t System.out.printf(j+\"*\"+i+\"=\"+i*j+\"\\t\");\r\n\t\t }\r\n\t\t }\r\n\t}\t\r\n }", "static int nonDivisibleSubset(int k, int[] S) {\n\t\tint result = 0;\n\n\t\tArrayList < ArrayList < Integer >> solutions = new ArrayList < ArrayList < Integer >>();\n\t\tArrayList < HashSet < Integer >> minSets = new ArrayList < HashSet < Integer >>();\n\n\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( S [ 0 ])));\n\t\tminSets.add (new HashSet <Integer > ( ));\n\t\tminSets.get(0).add ( S [ 0 ] % k);\n\n\n\t\t// Go over all the numbers\n\t\tfor ( int i = 1; i < S.length; i++ ){\n\t\t\tint n = S [ i ]; \n\t\t\tint m = S [ i ] % k; // Number we will add to all the elements of all the minSets.\n\n\t\t\t// Go over all the minSets.\n\t\t\t// For each one, check that each element plus m is not divisible by k.\n\n\t\t\tboolean workedForASet = false;\n\t\t\tfor ( int j = 0; j < minSets.size(); j++){\n\t\t\t\t// For each set, check all the elements of the set.\n\n\t\t\t\tHashSet < Integer > minSet = minSets.get(j);\n\t\t\t\tIterator < Integer > iter = minSet.iterator();\n\n\t\t\t\tboolean works = true;\n\t\t\t\twhile ( iter.hasNext() && works ){\n\t\t\t\t\tint num = iter.next();\n\t\t\t\t\tif ( (num + m) % k == 0 ){\n\t\t\t\t\t\tworks = false;\n\t\t\t\t\t\tworkedForASet = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( works ){\n\t\t\t\t\tsolutions.get(j).add(n);\n\t\t\t\t\tminSet.add(m);\n\t\t\t\t}\n\t\t\t} \n\n\t\t\tif ( !workedForASet ){\n\t\t\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( n )));\n\t\t\t\tminSets.add (new HashSet <Integer > ( ));\n\t\t\t\tminSets.get (minSets.size() - 1).add ( m ); \n\t\t\t} \n\t\t}\n\n\t\t// Find the solution with the most elements.\n\n\t\tfor ( ArrayList <Integer > solution : solutions ){\n\t\t\tresult = Math.max ( result, solution.size() );\n\t\t\tSystem.out.println ( solution );\n\t\t}\n\n\t\tif ( result == 1 ) result = 0;\n\t\treturn result;\n\t}", "public NeighborhoodDistribution(int divisions) {this.divisions=divisions;}", "private static int computeNumberOfBandsForThreshold(int nHashes, double jaccardThreshold) {\n int bands = nHashes;\n while (bands > 1) {\n if ((nHashes % bands) == 0) {\n double threshold = Math.pow((double) 1.0 / bands, (double) bands / nHashes);\n if (threshold > jaccardThreshold) {\n break;\n }\n }\n bands--;\n }\n return bands;\n }", "public static void divisores(int n){\n for(int i=1;i<=n;i++){\n if(n%i==0){System.out.println(i+\" es divisor\");}\n }\n }", "private int getExpansionCount(int ce)\n {\n return ce & 0xF;\n }", "public static void main(String[] Args){\n Scanner n = new Scanner(System.in);\n int N = n.nextInt();\n int j = 1;\n int count = 1;\n while (j <= N){\n if ((3*count + 2) % 4 == 0){\n count++;\n }\n else {\n System.out.print(3*count + 2);\n System.out.print(\" \");\n j++;\n count++;\n }\n }\n }", "public static void main(String[] args) {\n\t\tfloat f1 = 5.4f;\r\n\t\tfloat f2 = 5.5f;\r\n\t\tSystem.out.println(Math.round(f1));\r\n\t\tSystem.out.println(Math.round(f2));\r\n\t\tSystem.out.println(Math.random());\r\n\t\tSystem.out.println( (int)(Math.random()*10));\r\n\t\tSystem.out.println(Math.sqrt(64));\r\n\t\tSystem.out.println(Math.pow(2, 10));\r\n\t\tSystem.out.println(Math.PI);\r\n\t\tSystem.out.println(Math.E);\r\n\t\tint n = Integer.MAX_VALUE;\r\n\t\tSystem.out.println( Math.pow((1+1d/n), n));// 1f 不行\r\n\t\tint count = 0;\r\n\t\tfor(int i = 2; i <= 100; i++) {\r\n\t\t\tboolean prime = false;\r\n\t\t\tint c =0;\r\n\t\t\tfor(int j = i; j>=1; j--) {\r\n\t\t\t\tif((i%j) == 0)\r\n\t\t\t\t\tc ++;\r\n\t\t\t\tif (c > 2 )\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tif (j == 1) {\r\n\t\t\t\t\tprime = true;\r\n\t\t\t\t\tSystem.out.println(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (prime == true )\r\n\t\t\t\tcount++;\r\n\t\t\telse\r\n\t\t\t\tcontinue;\r\n\t\t}\r\n\t\tSystem.out.println(\"prime count is : \"+ count);\r\n\t\t\r\n\t\tcountPrime(100);\r\n\t}" ]
[ "0.65375704", "0.64122164", "0.63258266", "0.61845255", "0.59860444", "0.59649134", "0.5940582", "0.5922271", "0.5907429", "0.5869486", "0.58582723", "0.5849941", "0.57908356", "0.5784745", "0.57613784", "0.57504666", "0.5733489", "0.57147086", "0.57145965", "0.5702696", "0.56830966", "0.565972", "0.56403047", "0.5629448", "0.5629323", "0.5617198", "0.56115097", "0.5597538", "0.5574617", "0.5568889", "0.5564922", "0.5559032", "0.55275357", "0.5524704", "0.55026907", "0.54994076", "0.5494858", "0.549", "0.54865175", "0.54689604", "0.54587424", "0.54519427", "0.5451075", "0.54479885", "0.54415214", "0.5431739", "0.54192597", "0.5414159", "0.54060304", "0.5405506", "0.53990614", "0.53983486", "0.5395639", "0.5380408", "0.53714585", "0.537029", "0.53593194", "0.53525203", "0.5349832", "0.5347372", "0.5344242", "0.534413", "0.5336581", "0.53302294", "0.5327806", "0.53239954", "0.5322841", "0.53205675", "0.5315645", "0.5309157", "0.5305869", "0.53043956", "0.5303865", "0.5302265", "0.53012127", "0.52994066", "0.52919924", "0.52879363", "0.52854735", "0.52814776", "0.5278317", "0.52767247", "0.5275907", "0.52747077", "0.5273722", "0.52721417", "0.52694076", "0.5267883", "0.5266563", "0.5266308", "0.5266226", "0.5259082", "0.5254921", "0.5253884", "0.52465403", "0.52269554", "0.52264965", "0.52241427", "0.52222925", "0.52138525" ]
0.52078795
100
Create a randomized unique state string to be used while crafting the authorization request
private String createState(AbstractOAuth2AuthenticationProvider idp, Optional<String> redirectPage) { if (idp == null) { throw new IllegalArgumentException("idp cannot be null"); } SecureRandom rand = new SecureRandom(); String base = idp.getId() + "~" + this.clock.millis() + "~" + rand.nextInt(1000) + redirectPage.map(page -> "~" + page).orElse(""); String encrypted = StringUtil.encrypt(base, idp.getClientSecret()); final String state = idp.getId() + "~" + encrypted; return state; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "private void generateStateToken() {\n\t\tSecureRandom sr1 = new SecureRandom();\n\n\t\tstateToken = \"google;\" + sr1.nextInt();\n\t}", "protected String generateStateId() {\n\t\treturn ServiceBus.crypto.getRandomString();\n\t}", "private static void generateState() {\n byte[] array = new byte[7]; // length is bounded by 7\n new Random().nextBytes(array);\n STATE = new String(array, Charset.forName(\"UTF-8\"));\n }", "private static String getRandString() {\r\n return DigestUtils.md5Hex(UUID.randomUUID().toString());\r\n }", "public String getNewState()\n\t{\n\t\treturn (UUID.randomUUID().toString());\n\t}", "protected static String generateToken()\n\t{\n\t\treturn UUID.randomUUID().toString();\n\t}", "private static String genString(){\n final String ALPHA_NUMERIC_STRING =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\n int pwLength = 14; //The longer the password, the more likely the user is to change it.\n StringBuilder pw = new StringBuilder();\n while (pwLength-- != 0) {\n int character = (int)(Math.random()*ALPHA_NUMERIC_STRING.length());\n pw.append(ALPHA_NUMERIC_STRING.charAt(character));\n }\n return pw.toString(); //\n }", "private String generateToken () {\n SecureRandom secureRandom = new SecureRandom();\n long longToken;\n String token = \"\";\n for ( int i = 0; i < 3; i++ ) {\n longToken = Math.abs( secureRandom.nextLong() );\n token = token.concat( Long.toString( longToken, 34 + i ) );//max value of radix is 36\n }\n return token;\n }", "private String generate_uuid() {\n\n int random_length = 12;\n int time_length = 4;\n\n byte[] output_byte = new byte[random_length+time_length];\n\n //12 byte long secure random\n SecureRandom random = new SecureRandom();\n byte[] random_part = new byte[random_length];\n random.nextBytes(random_part);\n System.arraycopy(random_part, 0, output_byte, 0, random_length);\n\n //merged with 4 less significant bytes of time\n long currentTime = System.currentTimeMillis();\n for (int i=random_length; i<output_byte.length; i++){\n output_byte[i] = (byte)(currentTime & 0xFF);\n currentTime >>= 8;\n }\n\n //Converted to base64 byte\n String output = Base64.encodeBase64String(output_byte);\n Log.debug_value(\"UUID\", output);\n return output;\n\n }", "public static String generateRandomNonce() {\n Random r = new Random();\n StringBuffer n = new StringBuffer();\n for (int i = 0; i < r.nextInt(8) + 2; i++) {\n n.append(r.nextInt(26) + 'a');\n }\n return n.toString();\n }", "private static String getNonceStr() {\r\n\t\tRandom random = new Random();\r\n\t\treturn MD5Util.MD5Encode(String.valueOf(random.nextInt(10000)), \"GBK\");\r\n\t}", "private String createRandCode() {\n final String ALPHA_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\n\n StringBuilder builder = new StringBuilder();\n int cnt = CODE_LEN;\n while (cnt-- != 0) {\n int charPos = (int) (Math.random()*ALPHA_STRING.length());\n builder.append(ALPHA_STRING.charAt(charPos));\n }\n Log.i(\"GameCode\", \"createRandCode: \" + builder.toString());\n return builder.toString();\n }", "public static String urlSafeRandomToken() {\n SecureRandom random = new SecureRandom();\n byte bytes[] = new byte[20];\n random.nextBytes(bytes);\n Base64.Encoder encoder = Base64.getUrlEncoder().withoutPadding();\n String token = encoder.encodeToString(bytes);\n return token;\n }", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(SHORT_DEF_COUNT);\n }", "private String prepareSecurityToken() {\r\n\t\tint time = ((int) System.currentTimeMillis() % SECURITY_TOKEN_TIMESTAMP_RANGE);\r\n\t\treturn String.valueOf(time + (new Random().nextLong() - SECURITY_TOKEN_TIMESTAMP_RANGE));\r\n\t}", "private String getRandomString() {\n\t\tStringBuilder salt = new StringBuilder();\n\t\tRandom rnd = new Random();\n\t\twhile (salt.length() <= 5) {\n\t\t\tint index = (int) (rnd.nextFloat() * SALTCHARS.length());\n\t\t\tsalt.append(SALTCHARS.charAt(index));\n\t\t}\n\t\tString saltStr = salt.toString();\n\t\treturn saltStr;\n\t}", "@Override\r\n\tpublic String randString(int n) {\n\t\tString base=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\";\r\n\t\treturn randString(n, base);\r\n\t}", "public S getRandomState();", "protected String generateKey(){\n Random bi= new Random();\n String returnable= \"\";\n for(int i =0;i<20;i++)\n returnable += bi.nextInt(10);\n return returnable;\n }", "static String getSaltString() {\n String SALTCHARS = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\n StringBuilder salt = new StringBuilder();\n Random rnd = new Random();\n while (salt.length() < 18) { // length of the random string.\n int index = (int) (rnd.nextFloat() * SALTCHARS.length());\n salt.append(SALTCHARS.charAt(index));\n }\n String saltStr = salt.toString();\n return saltStr;\n }", "String getNewRandomTag() {\n\t\tbyte t[] = new byte[tagLength];\n\t\tfor (int i = 0; i < tagLength; i++) {\n\t\t\tt[i] = (byte) rand('a', 'z');\n\t\t}\n\t\treturn new String(t);\n\t}", "private String getToken() {\n\t\tString numbers = \"0123456789\";\n\t\tRandom rndm_method = new Random();\n String OTP = \"\";\n for (int i = 0; i < 4; i++)\n {\n \tOTP = OTP+numbers.charAt(rndm_method.nextInt(numbers.length()));\n \n }\n return OTP;\n\t}", "public static String randomIdentifier() {\r\n\t\tfinal String lexicon = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\";\r\n\t\tfinal java.util.Random rand = new java.util.Random();\r\n\t\t// consider using a Map<String,Boolean> to say whether the identifier is\r\n\t\t// being used or not\r\n\t\tfinal Set<String> identifiers = new HashSet<String>();\r\n\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\twhile (builder.toString().length() == 0) {\r\n\t\t\tint length = rand.nextInt(5) + 5;\r\n\t\t\tfor (int i = 0; i < length; i++)\r\n\t\t\t\tbuilder.append(lexicon.charAt(rand.nextInt(lexicon.length())));\r\n\t\t\tif (identifiers.contains(builder.toString()))\r\n\t\t\t\tbuilder = new StringBuilder();\r\n\t\t}\r\n\t\treturn builder.toString();\r\n\t}", "public static String createUniqueKey() {\r\n\r\n\t\tint iRnd;\r\n\t\tlong lSeed = System.currentTimeMillis();\r\n\t\tRandom oRnd = new Random(lSeed);\r\n\t\tString sHex;\r\n\t\tStringBuffer sUUID = new StringBuffer(32);\r\n\t\tbyte[] localIPAddr = new byte[4];\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 8 characters Code IP address of this machine\r\n\t\t\tlocalIPAddr = InetAddress.getLocalHost().getAddress();\r\n\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[0]) & 255]);\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[1]) & 255]);\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[2]) & 255]);\r\n\t\t\tsUUID.append(byteToStr[((int) localIPAddr[3]) & 255]);\r\n\t\t}\r\n\t\tcatch (UnknownHostException e) {\r\n\t\t\t// Use localhost by default\r\n\t\t\tsUUID.append(\"7F000000\");\r\n\t\t}\r\n\r\n\t\t// Append a seed value based on current system date\r\n\t\tsUUID.append(Long.toHexString(lSeed));\r\n\r\n\t\t// 6 characters - an incremental sequence\r\n\t\tsUUID.append(Integer.toHexString(iSequence.incrementAndGet()));\r\n\r\n\t\tiSequence.compareAndSet(16777000, 1048576);\r\n\r\n\t\tdo {\r\n\t\t\tiRnd = oRnd.nextInt();\r\n\t\t\tif (iRnd>0) iRnd = -iRnd;\r\n\t\t\tsHex = Integer.toHexString(iRnd);\r\n\t\t} while (0==iRnd);\r\n\r\n\t\t// Finally append a random number\r\n\t\tsUUID.append(sHex);\r\n\r\n\t\treturn sUUID.substring(0, 32);\r\n\t}", "private String generateRandomId(){\n\n //creates a new Random object\n Random rnd = new Random();\n\n //creates a char array that is made of all the alphabet (lower key + upper key) plus all the digits.\n char[] characters = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\".toCharArray();\n\n //creates the initial, empty id string\n String id = \"\";\n\n /*Do this 20 times:\n * randomize a number from 0 to the length of the char array, characters\n * add the id string the character from the index of the randomized number*/\n for (int i = 0; i < 20; i++){\n id += characters[rnd.nextInt(characters.length)];\n }\n\n //return the 20 random chars long string\n return id;\n\n }", "private final String getRandomString() {\n StringBuffer sbRan = new StringBuffer(11);\n String alphaNum = \"1234567890abcdefghijklmnopqrstuvwxyz\";\n int num;\n for (int i = 0; i < 11; i++) {\n num = (int) (Math.random() * (alphaNum.length() - 1));\n sbRan.append(alphaNum.charAt(num));\n }\n return sbRan.toString();\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "private String generateRandomHexString(){\n return Long.toHexString(Double.doubleToLongBits(Math.random()));\n }", "private\tString\tgenerateUUID(){\n\t\treturn\tUUID.randomUUID().toString().substring(0, 8).toUpperCase();\n\t}", "private String getRandomName(){\n return rndString.nextString();\n }", "public static String generateActivationKey() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "public static String generateResetKey() {\n return RandomStringUtils.randomNumeric(DEF_COUNT);\n }", "public synchronized String generateTag() {\n return Integer.toHexString(rand.nextInt());\n }", "public String genUserToken()\n\t{\n\t\tString token = \"\";\n\t\tfor (int i = 0; i < 16; i++)\n\t\t{\n\t\t\ttoken = token + tokenGenerator.nextInt(10);\n\t\t}\n\t\treturn token;\n\t}", "public static synchronized String generateUniqueToken(int length) {\n\n byte random[] = new byte[length];\n Random randomGenerator = new Random();\n StringBuffer buffer = new StringBuffer();\n\n randomGenerator.nextBytes(random);\n\n for (int j = 0; j < random.length; j++)\n {\n byte b1 = (byte) ((random[j] & 0xf0) >> 4);\n byte b2 = (byte) (random[j] & 0x0f);\n if (b1 < 10)\n buffer.append((char) ('0' + b1));\n else\n buffer.append((char) ('A' + (b1 - 10)));\n if (b2 < 10)\n buffer.append((char) ('0' + b2));\n else\n buffer.append((char) ('A' + (b2 - 10)));\n }\n\n return (buffer.toString());\n }", "public String generateString() {\n\t\tint maxLength = 9;\n\t\tRandom random = new Random();\n\t\tStringBuilder builder = new StringBuilder(maxLength);\n\n\t\t// Looping 9 times, one for each char\n\t\tfor (int i = 0; i < maxLength; i++) {\n\t\t\tbuilder.append(ALPHABET.charAt(random.nextInt(ALPHABET.length())));\n\t\t}\n\t\t// Generates a random ID that has may have a quintillion different combinations\n\t\t// (1/64^9)\n\t\treturn builder.toString();\n\t}", "private String createId() {\n int idLength = 5;\n String possibleChars = \"1234567890\";\n Random random = new Random();\n StringBuilder newString = new StringBuilder();\n\n for (int i = 0; i < idLength; i++) {\n int randomInt = random.nextInt(10);\n newString.append(possibleChars.charAt(randomInt));\n }\n\n return newString.toString();\n }", "public static String makeRandomID() {\n UUID uuid = UUID.randomUUID();\n return uuid.toString();\n }", "public static String generateShortActivationKey() {\n return RandomStringUtils.randomNumeric(SHORT_DEF_COUNT);\n }", "public static final String getRandomId() {\r\n return (\"\" + Math.random()).substring(2);\r\n }", "public String makeNonce()\n\t{\n\t\tbyte[] data = new byte[NONCE_SIZE];\n\t\trandom.nextBytes(data);\n\n\t\treturn encoder.encode(data);\n\t}", "protected static String generateSaltString() {\n Random rng = new Random();\n byte[] saltBytes = new byte[32];\n rng.nextBytes(saltBytes);\n return bytesToString(saltBytes);\n }", "private String createSalt()\r\n {\r\n SecureRandom random = new SecureRandom();\r\n byte bytes[] = new byte[20];\r\n random.nextBytes(bytes);\r\n StringBuilder sb = new StringBuilder();\r\n\r\n for (int i = 0; i < bytes.length; i++)\r\n {\r\n sb.append(Integer.toString((bytes[i] & 0xff) + 0x100, 16).substring(1));\r\n }\r\n\r\n String salt = sb.toString();\r\n return salt;\r\n }", "public static String rndString() {\r\n char[] c = RBytes.rndCharArray();\r\n return new String(c);\r\n\r\n }", "private String generateNonce() {\n // Get the time of day and run MD5 over it.\n Date date = new Date();\n long time = date.getTime();\n Random rand = new Random();\n long pad = rand.nextLong();\n // String nonceString = (new Long(time)).toString()\n // + (new Long(pad)).toString();\n String nonceString = Long.valueOf(time).toString()\n + Long.valueOf(pad).toString();\n byte mdbytes[] = messageDigest.digest(nonceString.getBytes());\n // Convert the mdbytes array into a hex string.\n return toHexString(mdbytes);\n }", "public static String getNewSalt() {\n // Don't use Random!\n SecureRandom random = null;\n try {\n random = SecureRandom.getInstance(\"SHA1PRNG\");\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n // NIST recommends minimum 4 bytes. We use 8.\n byte[] salt = new byte[8];\n random.nextBytes(salt);\n return Base64.getEncoder().encodeToString(salt);\n }", "public String generateActivationId() {\n return UUID.randomUUID().toString();\n }", "private String getID()\n {\n String chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@#$%^&*()_+{}|:<>?/.,';][=-`~\";\n String id = \"\";\n int max = new Random().nextInt((16 - 12) + 1)+12;\n for(int i=0;i<16;i++)\n {\n int r = new Random().nextInt((chars.length()-1 - 0) + 1)+0;\n id+=chars.charAt(r);\n }\n return id;\n }", "public String randomString() {\n return new BigInteger(130, random).toString(32);\n }", "public static String generateToken() {\n return new Generex(PatternValidator.TOKEN_PATTERN).random();\n }", "public String generateAuthCode() {\n return authCodeGenerator.generate().toString();\n }", "private String generateId(String input) {\n\t\treturn StringUtil.hashSHA256(input);\n\t}", "public static String generatePass(){\r\n \r\n String password = new Random().ints(10, 33, 122).collect(StringBuilder::new,\r\n StringBuilder::appendCodePoint, StringBuilder::append)\r\n .toString();\r\n return password;\r\n\r\n }", "public static String secureRandomId() {\n\t\tSecureRandom random = new SecureRandom();\n\t\treturn new BigInteger(130, random).toString(32);\n\t}", "public static String generateResetCode() {\n return RandomStringUtils.randomNumeric(RESET_CODE_DIGIT_COUNT);\n }", "public String createPassword() {\n String alphabet= \"abcdefghijklmnopqrstuvwxyz\";\n int count=0;\n String randomPass=\"\";\n while (count<this.length){\n randomPass+=alphabet.charAt(this.randomNumber.nextInt(alphabet.length()-1));\n count++;\n }\n return randomPass;\n }", "public String generate() {\r\n String result = RandomStringUtils.random(8,true,true);\r\n return result;\r\n }", "private static String generateRandomString(int size) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < size / 2; i++) sb.append((char) (64 + r.nextInt(26)));\n return sb.toString();\n }", "private String generateOtp() {\n\t\tString otp = TOTP.getOTP(SECRET);\n\t\treturn otp;\n\t}", "static String generateId() {\r\n\t\treturn UUID.randomUUID().toString().replaceAll(\"-\", \"\");\r\n\t}", "public String generateGUID() {\n Random randomGenerator = new Random();\n String hash = DigestUtils.shaHex(HASH_FORMAT.format(new Date())\n + randomGenerator.nextInt());\n return hash.substring(0, GUID_LEN);\n }", "public String generatePassword() {\n List<char[]> allAllowed = new ArrayList<>();\n if (uppercase) {\n allAllowed.add(UPPERCASE);\n }\n if (lowercase) {\n allAllowed.add(LOWERCASE);\n }\n if (numbers) {\n allAllowed.add(NUMBERS);\n }\n if (symbols) {\n allAllowed.add(SYMBOLS);\n }\n\n //Use cryptographically secure random number generator\n Random random = new SecureRandom();\n\n StringBuilder password = new StringBuilder();\n\n // Random chars\n for (int i = 0; i < length - allAllowed.size(); i++) {\n char[] characterType = allAllowed.get(random.nextInt(allAllowed.size()));\n password.append(characterType[random.nextInt(characterType.length)]);\n }\n\n //Ensure password policy is met by inserting required random chars in random positions\n for (char[] category : allAllowed) {\n password.insert(random.nextInt(password.length()), category[random.nextInt(category.length)]);\n }\n return password.toString();\n }", "public synchronized static final String generateRandomString(int n) {\n\t\tchar[] chars = \"abcdefghijklmnopqrstuvwxyz1234567890\".toCharArray();\n\t\tSecureRandom random = new SecureRandom();\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsb.append(chars[random.nextInt(chars.length)]);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String getRandomString() {\n \tif (random == null)\n \t\trandom = new Random();\n \treturn new BigInteger(1000, random).toString(32);\n }", "public String generateId() {\n return RandomStringUtils.randomAlphabetic(32);\n }", "private String generateSecretKey(){\n SecureRandom random = new SecureRandom();\n byte[] bytes = new byte[20];\n\n random.nextBytes(bytes);\n Base32 base32 = new Base32();\n return base32.encodeToString(bytes);\n }", "private String generateUniqueIdString() {\r\n return TimeBasedUUID.getUUIDAsString();\r\n }", "void genKey(){\n Random rand = new Random();\n int key_length = 16;\n String key_alpha = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\n StringBuilder sb = new StringBuilder(key_length);\n for(int i = 0; i < key_length; i++){\n int j = rand.nextInt(key_alpha.length());\n char c = key_alpha.charAt(j);\n sb.append(c);\n }\n this.key = sb.toString();\n }", "static public int getHobgoblinStr(){\n str = rand.nextInt(3) + 3;\n return str;\n }", "public static String randomString() {\n\t\tfinal long value = RANDOMIZER.nextLong();\n\t\treturn String.valueOf(value < 0 ? value * -1 : value);\n\t}", "public static synchronized String generateSessionId() {\n\n\t\tRandom random = new SecureRandom(); // 取随机数发生器, 默认是SecureRandom\n\t\tbyte bytes[] = new byte[SESSION_ID_BYTES];\n\t\trandom.nextBytes(bytes); // 产生16字节的byte\n\t\tbytes = getDigest().digest(bytes); // 取摘要,默认是\"MD5\"算法\n\t\t// Render the result as a String of hexadecimal digits\n\n\t\tStringBuffer result = new StringBuffer();\n\t\tfor (int i = 0; i < bytes.length; i++) { // 转化为16进制字符串\n\n\t\t\tbyte b1 = (byte) ((bytes[i] & 0xf0) >> 4);\n\t\t\tbyte b2 = (byte) (bytes[i] & 0x0f);\n\t\t\tif (b1 < 10)\n\t\t\t\tresult.append((char) ('0' + b1));\n\t\t\telse\n\t\t\t\tresult.append((char) ('A' + (b1 - 10)));\n\t\t\tif (b2 < 10)\n\t\t\t\tresult.append((char) ('0' + b2));\n\t\t\telse\n\t\t\t\tresult.append((char) ('A' + (b2 - 10)));\n\t\t}\n\n\t\treturn (result.toString());\n\t}", "private String newCode(int length) {\n Random rnd = new SecureRandom();\n StringBuilder code = new StringBuilder(length);\n do {\n code.setLength(0);\n while (code.length() < length) {\n if (rnd.nextBoolean()) { // append a new letter or digit?\n char letter = (char) ('a' + rnd.nextInt(26));\n code.append(rnd.nextBoolean() ? Character.toUpperCase(letter) : letter);\n } else {\n code.append(rnd.nextInt(10));\n }\n }\n } while (exists(code.toString()));\n return code.toString();\n }", "private String getRandomUniqueId() {\r\n return \"WEBSOCKET.\" + new Random().nextInt(100);\r\n }", "public String generateMP() {\n\t\t\tString characters = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789~`!@#$%^&*()-_=+[{]}\\\\|;:\\'\\\",<.>/?\";\n\t\t\tString pwd = RandomStringUtils.random(15, 0, 0, false, false, characters.toCharArray(), new SecureRandom());\n\t\t\treturn pwd;\n\t\t}", "public String createPassword() {\n while (i < length){\n temp += abc.charAt(random.nextInt(26));\n i++;\n }\n\n this.password = this.temp;\n this.temp = \"\";\n this.i = 0;\n return password;\n }", "public String generate(int length) {\r\n\t\tString chars = \"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890\";\r\n\t\tString pass = \"\";\r\n\t\tfor (int x = 0; x < length; x++) {\r\n\t\t\tint i = (int) Math.floor(Math.random() * 62);\r\n\t\t\tpass += chars.charAt(i);\r\n\t\t}\r\n\r\n\t\treturn pass;\r\n\t}", "public String generateToken(String username) {\n\t\tString token = username;\n\t\tLong l = Math.round(Math.random()*9);\n\t\ttoken = token + l.toString();\n\t\treturn token;\n\t}", "public static String generateString(int count) {\r\n String ALPHA_NUMERIC_STRING = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\";\r\n StringBuilder builder = new StringBuilder();\r\n while (count-- != 0) {\r\n int character = (int) (Math.random() * ALPHA_NUMERIC_STRING.length());\r\n builder.append(ALPHA_NUMERIC_STRING.charAt(character));\r\n }\r\n return builder.toString();\r\n }", "private String generateRefKey(int n) {\n String AlphaNumericString = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\"\n + \"0123456789\"\n + \"abcdefghijklmnopqrstuvxyz\";\n\n // create StringBuffer size of AlphaNumericString\n StringBuilder sb = new StringBuilder(n);\n\n for (int i = 0; i < n; i++) {\n\n // generate a random number between\n // 0 to AlphaNumericString variable length\n int index\n = (int)(AlphaNumericString.length()\n * Math.random());\n\n // add Character one by one in end of sb\n sb.append(AlphaNumericString\n .charAt(index));\n }\n\n return sb.toString();\n }", "public String generateOTP() {\n String values = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\"; //characters to use in password\n Random random = new Random();\n char[] password = new char[6]; //setting password size to 6\n IntStream.range(0, password.length).forEach(i -> password[i] = values.charAt(random.nextInt(values.length())));\n return String.valueOf(password);\n }", "public synchronized String generateBranchId() {\n long num = rand.nextLong() + Utils.counter++ + System.currentTimeMillis();\n byte bid[] = digester.digest(Long.toString(num).getBytes());\n return SIPConstants.BRANCH_MAGIC_COOKIE + Utils.toHexString(bid);\n }", "public static String randomString() {\n\t\tint leftLimit = 97; // letter 'a'\n\t\tint rightLimit = 122; // letter 'z'\n\t\tint targetStringLength = 10;\n\t\tRandom random = new Random();\n\n\t\treturn random.ints(leftLimit, rightLimit + 1).limit(targetStringLength)\n\t\t\t\t.collect(StringBuilder::new, StringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t}", "public static String generateAuthToken() throws EndlosException {\n\t\treturn hash(Utility.generateToken(6) + DateUtility.getCurrentEpoch() + Utility.generateToken(8));\n\t}", "public void generateCode() {\n code = java.util.UUID.randomUUID().toString();\n }", "private static String smsCode() {\n\t\t\tString random=new Random().nextInt(1000000)+\"\";\r\n\t\t\treturn random;\r\n\t\t}", "String createUniqueID(String n){\n String uniqueID =UUID.randomUUID().toString();\n return n + uniqueID;\n }", "private String newPassword() {\n\t\tchar[] vet = new char[10];\n\t\tfor(int i=0; i<10; i++) {\n\t\t\tvet[i] = randomChar();\n\t\t}\n\t\treturn new String(vet);\n\t}", "public String generateSalt()\r\n\t{\r\n\t\tfinal Random r = new SecureRandom();\r\n\t\tbyte[] byteSalt = new byte[32];\r\n\t\tr.nextBytes(byteSalt);\r\n\t\tsalt = DatatypeConverter.printBase64Binary(byteSalt);\r\n\r\n\t\treturn salt;\r\n\t}", "public static String getDynamicSalt() {\n\t\treturn RandomStringUtils.randomAlphanumeric(8);\n\t}", "private String generateNewCallId()\n {\n\n\t\t// Generate the variant number\n\t\tint variable = NumberUtils.getIntRandom();\n\n\t\t// Convert to hex value\n\t\tString hex = NumberUtils.toHexValue(variable);\n\n\t\t// Compose the final call id\n\t\treturn \"{2B073406-65D8-A7B2-5B13-B287\" + hex + \"}\";\n\t}", "private String getTempPassword(int length) {\r\n\t\tRandom rand = new Random(9845936902l);\r\n\t\tchar[] buf = new char[length];\r\n\t\tfor (int idx = 0; idx < buf.length; ++idx)\r\n\t\t\tbuf[idx] = symbols[rand.nextInt(symbols.length)];\r\n\t\treturn new String(buf);\r\n\t}", "public static String getRandomTimeStamp() {\n\t\treturn \"2014-12-12T10:39:40Z\";\n\t}", "public static String generateNewUserId() {\r\n\t\tDate date = new Date();\r\n\t\treturn String.format(\"%s-%s\", UUID.randomUUID().toString(),\r\n\t\t\t\tString.valueOf(date.getTime()));\r\n\t}", "private String RandomGoal() {\n\t\tList<String> list = Arrays.asList(\"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"m\", \"t\", \"t\");\n\t\tRandom rand = new Random();\n\t\tString randomgoal = list.get(rand.nextInt(list.size()));\n\n\t\treturn randomgoal;\n\t}", "public static String randomeString() {\n\t\t\tString generatedString = RandomStringUtils.randomAlphabetic(8);\n\t\t\tSystem.out.println(generatedString);\n\t\t\treturn generatedString;\n\t\t\t\n\t\t}", "public static String getRandomString() {\n return RandomStringUtils.random(20, true, false);\n }", "public String generateUniqueSignature(){\n final String uuid = UniqueIdentifierGenerator.generateUniqueIdentifier();\n setSignature(uuid);\n return uuid;\n }", "private String generateRandomString(Random r, final int len) {\n byte[] bytes = new byte[len];\n for (int i = 0; i < len; i++) {\n bytes[i] = (byte)(r.nextInt(92) + 32);\n }\n return new String(bytes);\n }" ]
[ "0.8009981", "0.79860646", "0.79677266", "0.75369406", "0.7031722", "0.6820454", "0.6749161", "0.6712277", "0.66201687", "0.64394987", "0.64258504", "0.63951254", "0.63785154", "0.63754195", "0.63693184", "0.63657063", "0.6357756", "0.63505924", "0.63397855", "0.63362134", "0.63264704", "0.63232607", "0.6269656", "0.6269296", "0.62684995", "0.625137", "0.6242049", "0.6231097", "0.6231097", "0.62261426", "0.6225854", "0.62192523", "0.6213587", "0.62107694", "0.62059534", "0.61555433", "0.6129859", "0.6116257", "0.6112429", "0.6102111", "0.6094352", "0.6040859", "0.6035744", "0.60332906", "0.60322136", "0.60242933", "0.60099936", "0.60025287", "0.59740156", "0.5962808", "0.5953764", "0.5950212", "0.5939076", "0.5936067", "0.59339696", "0.59233", "0.5919157", "0.59176725", "0.5896095", "0.5883814", "0.5878967", "0.5861815", "0.58515966", "0.58491504", "0.5843157", "0.5837961", "0.58335114", "0.58293", "0.58201486", "0.58197963", "0.5814345", "0.58089906", "0.58071524", "0.5798386", "0.5797765", "0.5794909", "0.57929695", "0.57859814", "0.5780348", "0.57783526", "0.57687634", "0.57648695", "0.576118", "0.5751989", "0.5749146", "0.57433015", "0.57418543", "0.573794", "0.57369363", "0.5736485", "0.57085156", "0.5707152", "0.5704757", "0.57045704", "0.57016253", "0.5701219", "0.56856674", "0.5685537", "0.5671752", "0.56676525" ]
0.6717337
7
Instantiates a new ray tracer engine.
public RayTracerEngine(Dimension image_size) { this(image_size, null, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RayTracer() {\n\t\tspheres = new ArrayList<Sphere>();\n\t\tspheres.add(new Sphere(-2.0f, 0.0f, -15.0f, 4.0f, 1.00f, 0.32f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(5.0f, 5.0f, -15.0f, 2.0f, 0.00f, 0.92f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(10.0f, -8.0f, -30.0f, 6.0f, 0.36f, 0.32f, 1.00f, 0.1f, 0.8f, 100.0f));\n\n\t\tlight = new Light(5.0f, 10.0f, 10.0f, 1.0f); // (x, y, z, intensity).\n\t\tcamera = new Camera(512, 512, 50.0f); // (width, height, fov).\n\t}", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public RayTracerBasic(Scene scene)\r\n\t{\r\n\t\tsuper(scene);\r\n\t}", "public void addRayTrajectories()\n\t{\n\t\tclear();\n\t\t\n\t\tdouble sin = Math.sin(hyperboloidAngle);\n\n\t\t// Three vectors which form an orthogonal system.\n\t\t// a points in the direction of the axis and is of length cos(coneAngle);\n\t\t// u and v are both of length sin(coneAngle).\n\t\tVector3D\n\t\ta = axisDirection.getWithLength(Math.cos(hyperboloidAngle)),\n\t\tu = Vector3D.getANormal(axisDirection).getNormalised(),\n\t\tv = Vector3D.crossProduct(axisDirection, u).getNormalised();\n\t\t\n\t\tfor(int i=0; i<numberOfRays; i++)\n\t\t{\n\t\t\tdouble\n\t\t\t\tphi = 2*Math.PI*i/numberOfRays,\n\t\t\t\tcosPhi = Math.cos(phi),\n\t\t\t\tsinPhi = Math.sin(phi);\n\t\t\taddSceneObject(\n\t\t\t\t\tnew EditableRayTrajectory(\n\t\t\t\t\t\t\t\"trajectory of ray #\" + i,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\tstartPoint,\n\t\t\t\t\t\t\t\t\tu.getProductWith(waistRadius*cosPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith(waistRadius*sinPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tstartTime,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\tu.getProductWith(-sin*sinPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith( sin*cosPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\trayRadius,\n\t\t\t\t\t\t\tsurfaceProperty,\n\t\t\t\t\t\t\tmaxTraceLevel,\n\t\t\t\t\t\t\tfalse,\t// reportToConsole\n\t\t\t\t\t\t\tthis,\t// parent\n\t\t\t\t\t\t\tgetStudio()\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\t}", "public RayTracerEngine(Dimension image_size, Scene scene, Camera camera) {\n\t\tthis.scene = scene;\n\t\tthis.camera = camera;\n\t\tthis.width = image_size.width;\n\t\tthis.height = image_size.height;\n\t\tforward = new Vector(0, 0, 1);\n\t\tforward.normalise();\n\t\t\n\t}", "private PhysicsEngine() {\n\n }", "Reflexion(final Ray ray, final Raytracer tracer){\n\t\tthis.ray = ray;\n\t\tthis.tracer = tracer;\n\t}", "public static void startRayHead(RayConfig rayConfig) {\n LOGGER.debug(\"Starting ray runtime @ {}.\", rayConfig.nodeIp);\n List<String> command = new ArrayList<>();\n command.add(\"ray\");\n command.add(\"start\");\n command.add(\"--head\");\n command.add(\"--redis-password\");\n command.add(rayConfig.redisPassword);\n command.addAll(rayConfig.headArgs);\n\n String numGpus = System.getProperty(\"num-gpus\");\n if (numGpus != null) {\n command.add(\"--num-gpus\");\n command.add(numGpus);\n }\n\n // Set node labels.\n String labels = System.getProperty(\"ray.labels\");\n if (labels != null) {\n command.add(\"--labels\");\n command.add(labels);\n }\n\n String output;\n try {\n output = runCommand(command);\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to start Ray runtime.\", e);\n }\n Matcher matcher = pattern.matcher(output);\n if (matcher.find()) {\n String bootstrapAddress = matcher.group(1);\n rayConfig.setBootstrapAddress(bootstrapAddress);\n } else {\n throw new RuntimeException(\"Redis address is not found. output: \" + output);\n }\n LOGGER.info(\"Ray runtime started @ {}.\", rayConfig.nodeIp);\n }", "private Engine() {\n\n }", "private TracingEngine getEngine() {\n try {\n return engine.get(\"\", reloadEngine());\n } catch (final ExecutionException e) {\n return new NoopTracingEngine();\n }\n }", "public RobotEngine (){\r\n\t\tthis.fuel = 100;\r\n\t\tthis.recycledMaterial = 0;\r\n\t\tthis.container = new ItemContainer ();\r\n\t\tthis.direction = Direction.NORTH;\r\n\t\tthis.navega = new NavigationModule();\r\n\t}", "public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }", "@Override\n public void initEngine() {\n \n }", "@Override\n public void initEngine() {\n \n }", "public void init() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t System.err.println(\"** Version mismatch - Java files don't match library version.\");\n\t\t System.exit(1);\n\t\t}\n\t\t\n\t\tString[] args = {\"--vanilla\"};\n\t\tre = new Rengine(args, false, new TextConsole());\n\t\t\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n if (!re.waitForR()) {\n System.out.println(\"Cannot load R\");\n return;\n }\n\t\t\n\t}", "void init(@NotNull final AIEngine engine);", "private void initializeEngine() {\n engine.setDecayDelay(emotionalAgent.decayTimeMillis());\n\n // Get decay steps parameter from ADF if exists and set decay steps in engine\n engine.setDecaySteps(emotionalAgent.decayStepsToMin());\n\n // Set engine initialized\n engine.setInitialized(true);\n }", "public LiteRenderer() {\n LOGGER.fine(\"creating new lite renderer\");\n }", "private DMarlinRenderingEngine() {\n }", "public RenderEngine() {\n\t\twindow = Window.getInstance();\n\t\t\n\t\ttestEntity = new Entity(\"skull/skull.obj\", \"./res/models/skull/skull.png\", new Vector3f(0,0,0), new Vector3f(0,0,0));\n\t\ttestEntity.getWorldTransform().setScaling(new Vector3f(0.01f,0.01f,0.01f));\n\t\t\n\t\ttestEntity2 = new Entity(\"dummy/dummy.obj\", \"./res/models/dummy/dummy.jpg\", new Vector3f(0,8,0), new Vector3f(0,0,0));\n\t\ttestEntity2.getWorldTransform().setScaling(new Vector3f(0.05f,0.05f,0.05f));\n\t\t\n\t\ttestLight = new Light(new Vector3f(-5,5,-5), new Vector3f(1,1,1));\n\t\ttestLight.getWorldTransform().setScaling(new Vector3f(0.1f,0.1f,0.1f));\n\t\t\n\t\tsky = new SkyDome();\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\tassetManager = new AssetManager();\n\t\tassetManager.load(ROLIT_BOARD_MODEL, Model.class);\n\t\tassetManager.load(ROLIT_BALL_MODEL, Model.class);\n\t\t\n\t\t//construct the lighting\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\t\t\n\t\tmodelBatch = new ModelBatch();\n\t\t\n\t\tcam = new PerspectiveCamera(67f, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\t\n\t\tGdx.input.setInputProcessor(new InputHandler());\n\t}", "public Tube(Ray axisRay, double radius) {\r\n\t\tthis.axisRay = axisRay;\r\n\t\tthis.radius = radius;\r\n\t}", "public SELF the_analyzer_is_instantiated() {\n analyzer = builder.build();\n return self();\n }", "public void raycast(VrState state);", "public void add(RayHandler rayHandler);", "@Override\r\n public EngineInjection createEngineInjection() {\r\n return new Turbofan();\r\n }", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "private void initializeEngine() {\n try {\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n } catch (Exception e) {\n Log.e(\"VIDEO.CALL\", Log.getStackTraceString(e));\n throw new RuntimeException(\"NEED to check rtc sdk init fatal error\\n\" + Log.getStackTraceString(e));\n }\n }", "public static LightManager createInstance(RayHandler handler)\r\n\t{\r\n\t\t//singleton if statement\r\n\t\tif (lightManager == null)\r\n\t\t{\r\n\t\t\tlightManager = new LightManager(handler);\r\n\t\t}\r\n\r\n\t\treturn lightManager;\r\n\t}", "public static void main(String[] args) {\r\n\r\n\t\tRayTracerViewer.show(getIRayTracerProducer(), new Point3D(10, 0, 0), new Point3D(0, 0, 0),\r\n\t\t\t\tnew Point3D(0, 0, 10), 20, 20);\r\n\r\n\t}", "public Ray(Point3D p0, Vector dir) {\n _p0 = p0;\n _dir = dir.normalized();\n }", "public VMKernel() {\n }", "public static EglBase create() {\n return create(null /* shaderContext */, CONFIG_PLAIN);\n }", "public static PhysicsEngine getInstance() {\n if (instance == null) {\n instance = new PhysicsEngine();\n }\n return instance;\n }", "ExpressionVisitor(RuntimeEnv environment) {\r\n this.environment = environment;\r\n }", "public VirtualWorld(Node rootNode, AssetManager assetManager, ViewPort viewPort){\n sky = new Sky(rootNode, assetManager);\n water = new Water(rootNode, viewPort, assetManager);\n }", "private Ray constructReflectedRay(Vector normal, Point3D point, Ray inRay){\n Vector R = inRay.get_direction();\n normal.scale(2*inRay.get_direction().dotProduct(normal));\n R.subtract(normal);\n Vector epsV = new Vector(normal);\n if (normal.dotProduct(R) < 0) {\n epsV.scale(-2);\n }\n else {\n epsV.scale(2);\n }\n //Vector epsV = new Vector(EPS, EPS, EPS);\n Point3D eps = new Point3D(point);\n\n eps.add(epsV);\n R.normalize();\n return new Ray(eps, R);\n }", "public Tube(double _radius, Ray _ray) {\n this(Color.BLACK, new Material(0,0,0), _radius, _ray);\n }", "private void startR() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t\tSystem.err.println(\"** Version mismatch - Java files don't match library=version.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tSystem.out.println(\"Creating Rengine\");\n\t\tString[] Rargs = {\"--vanilla\"};\n\t\tre= new Rengine(Rargs, false, null);//new TextConsole());\n\t\tSystem.out.println(\"Rengine created, waiting for R\");\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n\t\tif (!re.waitForR()) {\n\t\t\tSystem.out.println(\"Cannot load R\");\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}", "public Trace() {\n\t}", "public AbstractSearchEngine() {}", "public Ray(double x, double y, double theta) {\n setOrigin(x, y);\n setMatrix(y, theta);\n }", "public abstract Color traceRay(Ray ray);", "public abstract Color traceRay(Ray ray);", "public VMKernel()\n {\n super();\n }", "InterpreterRuntimeContext createInterpreterRuntimeContext();", "private static IRayTracerProducer getIRayTracerProducer() {\r\n\t\treturn new IRayTracerProducer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void produce(Point3D eye, Point3D view, Point3D viewUp, double horizontal, double vertical,\r\n\t\t\t\t\tint width, int height, long requestNo, IRayTracerResultObserver observer) {\r\n\t\t\t\tSystem.out.println(\"Započinjem izračune...\");\r\n\t\t\t\tshort[] red = new short[width * height];\r\n\t\t\t\tshort[] green = new short[width * height];\r\n\t\t\t\tshort[] blue = new short[width * height];\r\n\r\n\t\t\t\t// norming the plane\r\n\t\t\t\tPoint3D OG = view.sub(eye).normalize();\r\n\t\t\t\tPoint3D yAxis = viewUp.normalize().sub(OG.scalarMultiply(OG.scalarProduct(viewUp.normalize())))\r\n\t\t\t\t\t\t.normalize();\r\n\t\t\t\tPoint3D xAxis = OG.vectorProduct(yAxis).normalize();\r\n\t\t\t\t// Point3D zAxis = yAxis.vectorProduct(xAxis).normalize(); - not\r\n\t\t\t\t// used for these computations\r\n\r\n\t\t\t\t// upper-left screen corner\r\n\t\t\t\tPoint3D screenCorner = view.sub(xAxis.scalarMultiply(horizontal / 2))\r\n\t\t\t\t\t\t.add(yAxis.scalarMultiply(vertical / 2));\r\n\t\t\t\tScene scene = RayTracerViewer.createPredefinedScene();\r\n\r\n\t\t\t\t// measuring calculation time\r\n\t\t\t\tdouble start = System.currentTimeMillis();\r\n\t\t\t\tForkJoinPool pool = new ForkJoinPool();\r\n\t\t\t\tpool.invoke(new Job(eye, scene, xAxis, yAxis, screenCorner, width, height, horizontal, vertical, 0,\r\n\t\t\t\t\t\theight, red, green, blue));\r\n\t\t\t\tpool.shutdown();\r\n\t\t\t\tdouble end = System.currentTimeMillis();\r\n\r\n\t\t\t\tSystem.out.println(\"Izračuni gotovi. Izračunato za: \" + (end - start) + \"ms\");\r\n\t\t\t\tobserver.acceptResult(red, green, blue, requestNo);\r\n\t\t\t\tSystem.out.println(\"Dojava gotova...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t}", "@Override\n public void init() {\n tol = new TeleOpLibrary();\n tol.init(this);\n telemetry.addLine(\"Initializing complete.\");\n telemetry.update();\n }", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "Analytics_Engine createAnalytics_Engine();", "public GeometryRay(final Vec3 origin, final Vec3 direction) {\n super(origin, direction);\n }", "public IMazePathFinder createInstance(MazeModel mazeModel);", "public static void create() {\r\n render();\r\n }", "public RayTracerXMLSceneParser() {\n\t\ttry {\n\t\t\treader = XMLReaderFactory.createXMLReader();\n\t\t\treader.setContentHandler(this);\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void init(RenderContext r)\n\t\t{\n\t\t\trenderContext = r;\n\t\t\trenderContext.setSceneManager(sceneManager);\n\t\n\t\t\t// Register a timer task\n\t\t Timer timer = new Timer();\n\t\t angle = 0.01f;\n\t\t timer.scheduleAtFixedRate(new AnimationTask(), 0, 40);\n\t\t}", "public XPathEngineImpl() {\n // Do NOT add arguments to the constructor!!\n }", "@Override\n\t\tpublic Engine onLoadEngine() {\n\t\t\tToast.makeText(this, \"Touch the screen to add objects.\", Toast.LENGTH_LONG).show();\n\t\t\tfinal Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);\n\t\t\tfinal EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), camera);\n\t\t\tengineOptions.getTouchOptions().setRunOnUpdateThread(true);\n\t\t\treturn new Engine(engineOptions);\n\t\t}", "private void createVR() {\n\t\ttry {\n\t\t\tcontext = new VRContext();\n\n\t\t\t// Set the far clip plane distance on the camera of each eye\n\t\t\t// All units are in meters.\n\t\t\tcontext.getEyeData(Eye.Left).camera.far = 100f;\n\t\t\tcontext.getEyeData(Eye.Right).camera.far = 100f;\n\n\t\t\t// Register a VRDeviceListener to get notified when\n\t\t\t// controllers are (dis-)connected and their buttons\n\t\t\t// are pressed. Note that we add/remove a ModelInstance for\n\t\t\t// controllers for rendering on (dis-)connect.\n\t\t\tcontext.addListener(new VRDeviceListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void connected(VRDevice device) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" connected\");\n\t\t\t\t\tif (device.getType() == VRDeviceType.Controller && device.getModelInstance() != null)\n\t\t\t\t\t\tmodelInstances.add(device.getModelInstance());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void disconnected(VRDevice device) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" disconnected\");\n\t\t\t\t\tif (device.getType() == VRDeviceType.Controller && device.getModelInstance() != null)\n\t\t\t\t\t\tmodelInstances.removeValue(device.getModelInstance(), true);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void buttonPressed(VRDevice device, int button) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" button pressed: \" + button);\n\n\t\t\t\t\t// If the trigger button on the first controller was\n\t\t\t\t\t// pressed, setup teleporting\n\t\t\t\t\t// mode.\n\t\t\t\t\tif (device == context.getDeviceByType(VRDeviceType.Controller)) {\n\t\t\t\t\t\tif (button == VRControllerButtons.SteamVR_Trigger)\n\t\t\t\t\t\t\tisTeleporting = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void buttonReleased(VRDevice device, int button) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" button released: \" + button);\n\n\t\t\t\t\t// If the trigger button the first controller was released,\n\t\t\t\t\t// teleport the player.\n\t\t\t\t\tif (device == context.getDeviceByType(VRDeviceType.Controller)) {\n\t\t\t\t\t\tif (button == VRControllerButtons.SteamVR_Trigger) {\n\t\t\t\t\t\t\tif (intersectControllerXZPlane(context.getDeviceByType(VRDeviceType.Controller), tmp)) {\n\t\t\t\t\t\t\t\t// Teleportation\n\t\t\t\t\t\t\t\t// - Tracker space origin in world space is initially at [0,0,0]\n\t\t\t\t\t\t\t\t// - When teleporting, we want to set the tracker space origin in world space to the\n\t\t\t\t\t\t\t\t// teleportation point\n\t\t\t\t\t\t\t\t// - Then we need to offset the tracker space\n\t\t\t\t\t\t\t\t// origin in world space by the camera\n\t\t\t\t\t\t\t\t// x/z position so the camera is at the\n\t\t\t\t\t\t\t\t// teleportation point in world space\n\t\t\t\t\t\t\t\ttmp2.set(context.getDeviceByType(VRDeviceType.HeadMountedDisplay).getPosition(Space.Tracker));\n\t\t\t\t\t\t\t\ttmp2.y = 0;\n\t\t\t\t\t\t\t\ttmp.sub(tmp2);\n\n\t\t\t\t\t\t\t\tcontext.getTrackerSpaceToWorldSpace().idt().translate(tmp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tisTeleporting = false;\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} catch (Exception e) {\n\t\t\t// If initializing the VRContext failed, we fall back\n\t\t\t// to desktop only mode with a FirstPersonCameraController.\n\t\t\tcameraController = new FirstPersonCameraController(companionCamera);\n\t\t\tGdx.input.setInputProcessor(cameraController);\n\n\t\t\t// Set the camera height to 1.7m to emulate an\n\t\t\t// average human's height. We'd get this from the\n\t\t\t// HMD tracking otherwise.\n\t\t\tcompanionCamera.position.y = 1.7f;\n\n\t\t\t// We also enable vsync which the VRContext would have\n\t\t\t// managed otherwise\n\t\t\tGdx.graphics.setVSync(true);\n\t\t}\n\t}", "public static void create() {\n SharedLibrary EGL;\n switch (Platform.get()) {\n case LINUX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL.so.1\");\n break;\n case MACOSX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"EGL\");\n break;\n case WINDOWS:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL\", \"EGL\");\n break;\n default:\n throw new IllegalStateException();\n }\n create(EGL);\n }", "public AbstractDemo(String title) {\n this.title = title;\n pressed = new HashSet<Integer>();\n foreground = Color.black;\n background = Color.white;\n bodyColor = Color.black;\n rayColor = Color.red;\n\n BruteForce bf = new BruteForce();\n ConfigurableBodyOverlapper overlapper = new ConfigurableBodyOverlapper();\n overlapper.registerDefaults();\n space = new Space(bf, overlapper);\n\n ConfigurableRayBodyIntersector intersector = new ConfigurableRayBodyIntersector();\n intersector.registerDefaults();\n space.equipForRays(bf, intersector);\n }", "public LittleSearchEngine() {\n keywordsIndex = new HashMap<String, ArrayList<Occurrence>>(1000, 2.0f);\n noiseWords = new HashMap<String, String>(100, 2.0f);\n }", "public Engine(){\n name = \"Basic Engine\";\n moveDeduction = 1;\n }", "public Hit(double t, Ray ray, Geometry geo){\n if(ray == null){\n throw new IllegalArgumentException(\"ray must not be null\");\n }\n if(geo == null){\n throw new IllegalArgumentException(\"geo must not be null\");\n }\n \n this.t = t;\n this.ray = ray;\n this.geo = geo;\n \n }", "@NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }", "public void init() {\n try {\n java.net.URL codeBase = getCodeBase();\n codeBaseString = codeBase.toString();\n } catch (Exception e) {\n // probably running as an application, try the application\n // code base\n codeBaseString = \"file:./\";\n }\n\n if (colorMode == USE_COLOR) {\n objColor = red;\n } else {\n objColor = white;\n }\n\n Container contentPane = getContentPane();\n\n contentPane.setLayout(new BorderLayout());\n\n GraphicsConfiguration config = SimpleUniverse\n .getPreferredConfiguration();\n\n canvas = new Canvas3D(config);\n\n u = new SimpleUniverse(canvas);\n\n if (isApplication) {\n offScreenCanvas = new OffScreenCanvas3D(config, true);\n // set the size of the off-screen canvas based on a scale\n // of the on-screen size\n Screen3D sOn = canvas.getScreen3D();\n Screen3D sOff = offScreenCanvas.getScreen3D();\n Dimension dim = sOn.getSize();\n dim.width *= OFF_SCREEN_SCALE;\n dim.height *= OFF_SCREEN_SCALE;\n sOff.setSize(dim);\n sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth()\n * OFF_SCREEN_SCALE);\n sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight()\n * OFF_SCREEN_SCALE);\n\n // attach the offscreen canvas to the view\n u.getViewer().getView().addCanvas3D(offScreenCanvas);\n\n }\n contentPane.add(\"Center\", canvas);\n\n // setup the env nodes and their GUI elements\n setupLights();\n setupBackgrounds();\n setupFogs();\n setupSounds();\n\n // Create a simple scene and attach it to the virtual universe\n BranchGroup scene = createSceneGraph();\n\n // set up sound\n u.getViewer().createAudioDevice();\n\n // get the view\n view = u.getViewer().getView();\n\n // Get the viewing platform\n ViewingPlatform viewingPlatform = u.getViewingPlatform();\n\n // Move the viewing platform back to enclose the -4 -> 4 range\n double viewRadius = 4.0; // want to be able to see circle\n // of viewRadius size around origin\n // get the field of view\n double fov = u.getViewer().getView().getFieldOfView();\n\n // calc view distance to make circle view in fov\n float viewDistance = (float) (viewRadius / Math.tan(fov / 2.0));\n tmpVector.set(0.0f, 0.0f, viewDistance);// setup offset\n tmpTrans.set(tmpVector); // set trans to translate\n // move the view platform\n viewingPlatform.getViewPlatformTransform().setTransform(tmpTrans);\n\n // add an orbit behavior to move the viewing platform\n OrbitBehavior orbit = new OrbitBehavior(canvas, OrbitBehavior.STOP_ZOOM);\n orbit.setSchedulingBounds(infiniteBounds);\n viewingPlatform.setViewPlatformBehavior(orbit);\n\n u.addBranchGraph(scene);\n\n contentPane.add(\"East\", guiPanel());\n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public static void main(String[] args) {\r\n\r\n try {\r\n\r\n RayTracer tracer = new RayTracer();\r\n\r\n // Default values:\r\n tracer.imageWidth = 500;\r\n tracer.imageHeight = 500;\r\n\r\n if (args.length < 2)\r\n throw new RayTracerException(\"Not enough arguments provided. Please specify an input scene file and an output image file for rendering.\");\r\n\r\n String sceneFileName = args[0];\r\n String outputFileName = args[1];\r\n\r\n if (args.length > 3)\r\n {\r\n tracer.imageWidth = Integer.parseInt(args[2]);\r\n tracer.imageHeight = Integer.parseInt(args[3]);\r\n }\r\n\r\n // Parse scene file:\r\n tracer.parseScene(sceneFileName);\r\n\r\n // Render scene:\r\n tracer.renderScene(outputFileName);\r\n\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n } catch (RayTracerException e) {\r\n System.out.println(e.getMessage());\r\n } /*catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }*/\r\n }", "public Environment(final Turtle turtle) {\n this(turtle, null);\n }", "public Ray(double d) {\n setOrigin(50, 200);\n setMatrix(d, 0);\n }", "@Action\n public void addRay() {\n Point2D p1 = randomPoint(), p2 = randomPoint();\n TwoPointGraphic ag = new TwoPointGraphic(p1, p2, MarkerRenderer.getInstance());\n MarkerRendererToClip rend = new MarkerRendererToClip();\n rend.setRayRenderer(new ArrowPathRenderer(ArrowLocation.END));\n ag.getStartGraphic().setRenderer(rend);\n ag.setDefaultTooltip(\"<html><b>Ray</b>: <i>\" + p1 + \", \" + p2 + \"</i>\");\n ag.setDragEnabled(true);\n root1.addGraphic(ag); \n }", "private void initApplicationAR() {\r\n // Create OpenGL ES view:\r\n int depthSize = 16;\r\n int stencilSize = 0;\r\n boolean translucent = Vuforia.requiresAlpha();\r\n\r\n mGlView = new ArGLView(this);\r\n mGlView.init(translucent, depthSize, stencilSize);\r\n\r\n mRenderer = new ArRenderer(this, vuforiaAppSession);\r\n mRenderer.setTextures(mTextures);\r\n mGlView.setRenderer(mRenderer);\r\n\r\n }", "public ReflectedCamera(Camera camera) {\n this(camera, true);\n }", "public TraceManager(TransformerImpl transformer)\r\n {\r\n m_transformer = transformer;\r\n }", "public static void main(String[] args) {\n \t\tnew CoreEngine();\n \t}", "public Simulator(){}", "public BaseShadowSystem (NearFarAnalyzer nearFarAnalyzer, ShadowMapAllocator allocator,\n\t\tDirectionalAnalyzer directionalAnalyzer, LightFilter lightFilter) {\n\t\tthis.nearFarAnalyzer = nearFarAnalyzer;\n\t\tthis.allocator = allocator;\n\t\tthis.directionalAnalyzer = directionalAnalyzer;\n\t\tthis.lightFilter = lightFilter;\n\t}", "private Ray constructReflectedRay(Vector n, Point3D point, Ray ray) {\n Vector v = ray.getDirection();\n Vector r = null;\n try {\n r = v.subtract(n.scale(v.dotProduct(n)).scale(2)).normalized();\n }\n catch (Exception e) {\n return null;\n }\n return new Ray(point, r, n);\n }", "void start() throws EngineException;", "public static CacheTracabilityFactory init() {\n\t\ttry {\n\t\t\tCacheTracabilityFactory theCacheTracabilityFactory = (CacheTracabilityFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eclipse.org/tracability/1.0\"); \n\t\t\tif (theCacheTracabilityFactory != null) {\n\t\t\t\treturn theCacheTracabilityFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CacheTracabilityFactoryImpl();\n\t}", "public Robot(RobotTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 0; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }", "public NetspeakAnalysisEngine() {\n super(Sentence.class, Token.class);\n this.netspeakCache = new Cache<>(new NetspeakRetriever());\n this.setApiBaseUrl(DEFAULT_API_BASE_URL);\n this.setPreviousContextSize(DEFAULT_PREVIOUS_CONTEXT_SIZE);\n this.setFollowingContextSize(DEFAULT_FOLLOWING_CONTEXT_SIZE);\n this.setMaxResults(DEFAULT_MAX_RESULTS);\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public Ray(Point3D head, Vector direction, Vector normal) {\n\t\tthis(head, direction);\n\t\tdouble nv = normal.dotProduct(_dir);\n\t\tif (!Util.isZero(nv)) {\n\t\t\tVector epsVector = normal.scale(nv > 0 ? DELTA : -DELTA);\n\t\t\t_p0 = head.add(epsVector);\n\t\t}\n\t}", "private Ray constructReflectedRay(Vector n, Point3D p, Ray l) { // hish\r\n\t\tVector _n = n;// normal at point\r\n\t\tVector _v = l.get_dir(); // direction of vector camera ->geometry\r\n\t\tdouble vn = _v.dotProduct(_n);\r\n\t\tif (vn == 0)\r\n\t\t\treturn null;\r\n\r\n\t\tVector _r = _v.add(_n.scale(-2 * vn));\r\n\t\treturn new Ray(p, _r, _n);\r\n\t}", "public PythonInterpreter() {\n }", "private Ray constructRefractedRay(Vector n, Point3D p, Ray l) {\r\n\t\treturn new Ray(p, l.get_dir(), n);\r\n\t}", "public Programa(ProgramaTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 2; i++) jj_la1[i] = -1;\n }", "private static void initSPARQLAnythingEngine() {\n\t\t// Register the JSON-LD parser factory for extension .json\n\t\tReaderRIOTFactory parserFactoryJsonLD = new RiotUtils.ReaderRIOTFactoryJSONLD();\n\t\tRDFParserRegistry.registerLangTriples(RiotUtils.JSON, parserFactoryJsonLD);\n\t\t// Setup FX executor\n\t\tJenaSystem.init();\n\t\tQC.setFactory(ARQ.getContext(), FacadeX.ExecutorFactory);\n\t}", "public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }", "public StandardScriptFactory(String scriptEngineName, String scriptSourceLocator)\n/* */ {\n/* 87 */ this(scriptEngineName, scriptSourceLocator, (Class[])null);\n/* */ }", "public RtfOptimizer()\n {\n }", "@Override\n public void create() {\n Gdx.app.log(TAG, \"Application Listener Created\");\n // Never allocate anything in render, since that gets called 60 times a second\n shapeRenderer = new ShapeRenderer();\n }", "public RiftsawServiceLocator() {\n }", "public RenderSystem() {\n super(SystemType.RENDER);\n bufferBuffer =\n new MasterBuffer(\n voide.resources.Resources\n .get()\n .getResource(\"voide.packed_texture\", Texture.class)\n .getTextureId()\n );\n master =\n new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT);\n }", "private void construct(){\n TriangleMesh mesh;\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/bunny.obj\");\n mesh.setMaterial(new MaterialNode(0.1f, 0.1f, .5f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/cube.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 0, 0));\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/teddy.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 0, 1, 0));\n mesh.setMaterial(new MaterialNode(0.1f, .5f, 0.1f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/sphere.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 1, 0));\n mesh.setMaterial(new MaterialNode(1, 0, 0, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n scene.calculateNormals();\n scene.setupRendering();\n }", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "private TetrisMain() {\r\n //prevents instantiation\r\n }" ]
[ "0.6805421", "0.6364906", "0.6364906", "0.6102418", "0.5823641", "0.55823046", "0.54840285", "0.5441938", "0.5409229", "0.53761506", "0.51610744", "0.51173574", "0.51027197", "0.50538343", "0.50538343", "0.50286615", "0.50009865", "0.4999168", "0.498935", "0.49696353", "0.4935455", "0.49040866", "0.48955527", "0.48923552", "0.4886506", "0.48862827", "0.48788846", "0.4869556", "0.4863232", "0.4851718", "0.484524", "0.48420784", "0.4841104", "0.48349285", "0.4818959", "0.48189262", "0.4808195", "0.480664", "0.4796029", "0.47871336", "0.47678238", "0.47655925", "0.47626808", "0.4758862", "0.47567338", "0.47567338", "0.4752973", "0.4727191", "0.47001892", "0.46914238", "0.46912533", "0.4678567", "0.4667828", "0.46646965", "0.4660136", "0.46506628", "0.46500078", "0.46470645", "0.46446818", "0.46349123", "0.46333957", "0.4632745", "0.46246815", "0.46222523", "0.46214482", "0.46212903", "0.46169066", "0.46150708", "0.46082148", "0.4608163", "0.4605887", "0.46000218", "0.4589578", "0.45867658", "0.4573716", "0.457088", "0.45485598", "0.4542511", "0.45405012", "0.45386592", "0.4537661", "0.45316836", "0.45301658", "0.4529276", "0.4521842", "0.45190245", "0.45165426", "0.45149577", "0.4514326", "0.45138213", "0.4512835", "0.45116663", "0.45048666", "0.4501944", "0.4494554", "0.44928303", "0.44924027", "0.44905287", "0.44905287", "0.44861376" ]
0.6011056
4
Instantiates a new ray tracer engine.
public RayTracerEngine(Dimension image_size, Scene scene, Camera camera) { this.scene = scene; this.camera = camera; this.width = image_size.width; this.height = image_size.height; forward = new Vector(0, 0, 1); forward.normalise(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RayTracer() {\n\t\tspheres = new ArrayList<Sphere>();\n\t\tspheres.add(new Sphere(-2.0f, 0.0f, -15.0f, 4.0f, 1.00f, 0.32f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(5.0f, 5.0f, -15.0f, 2.0f, 0.00f, 0.92f, 0.36f, 0.1f, 0.8f, 100.0f));\n\t\tspheres.add(new Sphere(10.0f, -8.0f, -30.0f, 6.0f, 0.36f, 0.32f, 1.00f, 0.1f, 0.8f, 100.0f));\n\n\t\tlight = new Light(5.0f, 10.0f, 10.0f, 1.0f); // (x, y, z, intensity).\n\t\tcamera = new Camera(512, 512, 50.0f); // (width, height, fov).\n\t}", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public RayTracerBasic(Scene scene)\r\n\t{\r\n\t\tsuper(scene);\r\n\t}", "public RayTracerEngine(Dimension image_size) {\n\t\tthis(image_size, null, null);\n\t}", "public void addRayTrajectories()\n\t{\n\t\tclear();\n\t\t\n\t\tdouble sin = Math.sin(hyperboloidAngle);\n\n\t\t// Three vectors which form an orthogonal system.\n\t\t// a points in the direction of the axis and is of length cos(coneAngle);\n\t\t// u and v are both of length sin(coneAngle).\n\t\tVector3D\n\t\ta = axisDirection.getWithLength(Math.cos(hyperboloidAngle)),\n\t\tu = Vector3D.getANormal(axisDirection).getNormalised(),\n\t\tv = Vector3D.crossProduct(axisDirection, u).getNormalised();\n\t\t\n\t\tfor(int i=0; i<numberOfRays; i++)\n\t\t{\n\t\t\tdouble\n\t\t\t\tphi = 2*Math.PI*i/numberOfRays,\n\t\t\t\tcosPhi = Math.cos(phi),\n\t\t\t\tsinPhi = Math.sin(phi);\n\t\t\taddSceneObject(\n\t\t\t\t\tnew EditableRayTrajectory(\n\t\t\t\t\t\t\t\"trajectory of ray #\" + i,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\tstartPoint,\n\t\t\t\t\t\t\t\t\tu.getProductWith(waistRadius*cosPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith(waistRadius*sinPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\tstartTime,\n\t\t\t\t\t\t\tVector3D.sum(\n\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\tu.getProductWith(-sin*sinPhi),\n\t\t\t\t\t\t\t\t\tv.getProductWith( sin*cosPhi)\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\trayRadius,\n\t\t\t\t\t\t\tsurfaceProperty,\n\t\t\t\t\t\t\tmaxTraceLevel,\n\t\t\t\t\t\t\tfalse,\t// reportToConsole\n\t\t\t\t\t\t\tthis,\t// parent\n\t\t\t\t\t\t\tgetStudio()\n\t\t\t\t\t\t)\n\t\t\t\t);\n\t\t}\n\t}", "private PhysicsEngine() {\n\n }", "Reflexion(final Ray ray, final Raytracer tracer){\n\t\tthis.ray = ray;\n\t\tthis.tracer = tracer;\n\t}", "public static void startRayHead(RayConfig rayConfig) {\n LOGGER.debug(\"Starting ray runtime @ {}.\", rayConfig.nodeIp);\n List<String> command = new ArrayList<>();\n command.add(\"ray\");\n command.add(\"start\");\n command.add(\"--head\");\n command.add(\"--redis-password\");\n command.add(rayConfig.redisPassword);\n command.addAll(rayConfig.headArgs);\n\n String numGpus = System.getProperty(\"num-gpus\");\n if (numGpus != null) {\n command.add(\"--num-gpus\");\n command.add(numGpus);\n }\n\n // Set node labels.\n String labels = System.getProperty(\"ray.labels\");\n if (labels != null) {\n command.add(\"--labels\");\n command.add(labels);\n }\n\n String output;\n try {\n output = runCommand(command);\n } catch (Exception e) {\n throw new RuntimeException(\"Failed to start Ray runtime.\", e);\n }\n Matcher matcher = pattern.matcher(output);\n if (matcher.find()) {\n String bootstrapAddress = matcher.group(1);\n rayConfig.setBootstrapAddress(bootstrapAddress);\n } else {\n throw new RuntimeException(\"Redis address is not found. output: \" + output);\n }\n LOGGER.info(\"Ray runtime started @ {}.\", rayConfig.nodeIp);\n }", "private Engine() {\n\n }", "private TracingEngine getEngine() {\n try {\n return engine.get(\"\", reloadEngine());\n } catch (final ExecutionException e) {\n return new NoopTracingEngine();\n }\n }", "public RobotEngine (){\r\n\t\tthis.fuel = 100;\r\n\t\tthis.recycledMaterial = 0;\r\n\t\tthis.container = new ItemContainer ();\r\n\t\tthis.direction = Direction.NORTH;\r\n\t\tthis.navega = new NavigationModule();\r\n\t}", "public Engine() {\n super(0,0,0,0,null, \"ENGINE\");\n }", "@Override\n public void initEngine() {\n \n }", "@Override\n public void initEngine() {\n \n }", "public void init() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t System.err.println(\"** Version mismatch - Java files don't match library version.\");\n\t\t System.exit(1);\n\t\t}\n\t\t\n\t\tString[] args = {\"--vanilla\"};\n\t\tre = new Rengine(args, false, new TextConsole());\n\t\t\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n if (!re.waitForR()) {\n System.out.println(\"Cannot load R\");\n return;\n }\n\t\t\n\t}", "void init(@NotNull final AIEngine engine);", "private void initializeEngine() {\n engine.setDecayDelay(emotionalAgent.decayTimeMillis());\n\n // Get decay steps parameter from ADF if exists and set decay steps in engine\n engine.setDecaySteps(emotionalAgent.decayStepsToMin());\n\n // Set engine initialized\n engine.setInitialized(true);\n }", "public LiteRenderer() {\n LOGGER.fine(\"creating new lite renderer\");\n }", "private DMarlinRenderingEngine() {\n }", "public RenderEngine() {\n\t\twindow = Window.getInstance();\n\t\t\n\t\ttestEntity = new Entity(\"skull/skull.obj\", \"./res/models/skull/skull.png\", new Vector3f(0,0,0), new Vector3f(0,0,0));\n\t\ttestEntity.getWorldTransform().setScaling(new Vector3f(0.01f,0.01f,0.01f));\n\t\t\n\t\ttestEntity2 = new Entity(\"dummy/dummy.obj\", \"./res/models/dummy/dummy.jpg\", new Vector3f(0,8,0), new Vector3f(0,0,0));\n\t\ttestEntity2.getWorldTransform().setScaling(new Vector3f(0.05f,0.05f,0.05f));\n\t\t\n\t\ttestLight = new Light(new Vector3f(-5,5,-5), new Vector3f(1,1,1));\n\t\ttestLight.getWorldTransform().setScaling(new Vector3f(0.1f,0.1f,0.1f));\n\t\t\n\t\tsky = new SkyDome();\n\t\t\n\t}", "@Override\n\tpublic void create() {\n\t\tassetManager = new AssetManager();\n\t\tassetManager.load(ROLIT_BOARD_MODEL, Model.class);\n\t\tassetManager.load(ROLIT_BALL_MODEL, Model.class);\n\t\t\n\t\t//construct the lighting\n\t\tenvironment = new Environment();\n\t\tenvironment.set(new ColorAttribute(ColorAttribute.AmbientLight, 0.4f, 0.4f, 0.4f, 1f));\n\t\tenvironment.add(new DirectionalLight().set(0.8f, 0.8f, 0.8f, -1f, -0.8f, -0.2f));\n\t\t\n\t\tmodelBatch = new ModelBatch();\n\t\t\n\t\tcam = new PerspectiveCamera(67f, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n\t\t\n\t\tGdx.input.setInputProcessor(new InputHandler());\n\t}", "public SELF the_analyzer_is_instantiated() {\n analyzer = builder.build();\n return self();\n }", "public Tube(Ray axisRay, double radius) {\r\n\t\tthis.axisRay = axisRay;\r\n\t\tthis.radius = radius;\r\n\t}", "@Override\r\n public EngineInjection createEngineInjection() {\r\n return new Turbofan();\r\n }", "public void add(RayHandler rayHandler);", "public void raycast(VrState state);", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "private void initializeEngine() {\n try {\n mRtcEngine = RtcEngine.create(getBaseContext(), getString(R.string.agora_app_id), mRtcEventHandler);\n } catch (Exception e) {\n Log.e(\"VIDEO.CALL\", Log.getStackTraceString(e));\n throw new RuntimeException(\"NEED to check rtc sdk init fatal error\\n\" + Log.getStackTraceString(e));\n }\n }", "public static LightManager createInstance(RayHandler handler)\r\n\t{\r\n\t\t//singleton if statement\r\n\t\tif (lightManager == null)\r\n\t\t{\r\n\t\t\tlightManager = new LightManager(handler);\r\n\t\t}\r\n\r\n\t\treturn lightManager;\r\n\t}", "public VMKernel() {\n }", "public static void main(String[] args) {\r\n\r\n\t\tRayTracerViewer.show(getIRayTracerProducer(), new Point3D(10, 0, 0), new Point3D(0, 0, 0),\r\n\t\t\t\tnew Point3D(0, 0, 10), 20, 20);\r\n\r\n\t}", "public Ray(Point3D p0, Vector dir) {\n _p0 = p0;\n _dir = dir.normalized();\n }", "public static EglBase create() {\n return create(null /* shaderContext */, CONFIG_PLAIN);\n }", "public static PhysicsEngine getInstance() {\n if (instance == null) {\n instance = new PhysicsEngine();\n }\n return instance;\n }", "ExpressionVisitor(RuntimeEnv environment) {\r\n this.environment = environment;\r\n }", "public VirtualWorld(Node rootNode, AssetManager assetManager, ViewPort viewPort){\n sky = new Sky(rootNode, assetManager);\n water = new Water(rootNode, viewPort, assetManager);\n }", "private Ray constructReflectedRay(Vector normal, Point3D point, Ray inRay){\n Vector R = inRay.get_direction();\n normal.scale(2*inRay.get_direction().dotProduct(normal));\n R.subtract(normal);\n Vector epsV = new Vector(normal);\n if (normal.dotProduct(R) < 0) {\n epsV.scale(-2);\n }\n else {\n epsV.scale(2);\n }\n //Vector epsV = new Vector(EPS, EPS, EPS);\n Point3D eps = new Point3D(point);\n\n eps.add(epsV);\n R.normalize();\n return new Ray(eps, R);\n }", "public Tube(double _radius, Ray _ray) {\n this(Color.BLACK, new Material(0,0,0), _radius, _ray);\n }", "private void startR() {\n\t\tif (!Rengine.versionCheck()) {\n\t\t\tSystem.err.println(\"** Version mismatch - Java files don't match library=version.\");\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tSystem.out.println(\"Creating Rengine\");\n\t\tString[] Rargs = {\"--vanilla\"};\n\t\tre= new Rengine(Rargs, false, null);//new TextConsole());\n\t\tSystem.out.println(\"Rengine created, waiting for R\");\n\t\t// the engine creates R is a new thread, so we should wait until it's ready\n\t\tif (!re.waitForR()) {\n\t\t\tSystem.out.println(\"Cannot load R\");\n\t\t\treturn;\n\t\t}\n\t}", "@Override\n\tpublic void create() {\n\t\tGdx.app.setLogLevel(Application.LOG_DEBUG);\n\t\t\n\t\t//Load assets\n\t\tAssets.instance.init(new AssetManager());\n\t\t\n\t\t//initialize controller and renderer\n\t\tworldController = new WorldController();\n\t\tworldRenderer= new WorldRenderer(worldController);\n\t\t\n\t\t//The world is not paused on start\n\t\tpaused = false;\n\t}", "public AbstractSearchEngine() {}", "public Trace() {\n\t}", "public Ray(double x, double y, double theta) {\n setOrigin(x, y);\n setMatrix(y, theta);\n }", "public VMKernel()\n {\n super();\n }", "public abstract Color traceRay(Ray ray);", "public abstract Color traceRay(Ray ray);", "InterpreterRuntimeContext createInterpreterRuntimeContext();", "private static IRayTracerProducer getIRayTracerProducer() {\r\n\t\treturn new IRayTracerProducer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void produce(Point3D eye, Point3D view, Point3D viewUp, double horizontal, double vertical,\r\n\t\t\t\t\tint width, int height, long requestNo, IRayTracerResultObserver observer) {\r\n\t\t\t\tSystem.out.println(\"Započinjem izračune...\");\r\n\t\t\t\tshort[] red = new short[width * height];\r\n\t\t\t\tshort[] green = new short[width * height];\r\n\t\t\t\tshort[] blue = new short[width * height];\r\n\r\n\t\t\t\t// norming the plane\r\n\t\t\t\tPoint3D OG = view.sub(eye).normalize();\r\n\t\t\t\tPoint3D yAxis = viewUp.normalize().sub(OG.scalarMultiply(OG.scalarProduct(viewUp.normalize())))\r\n\t\t\t\t\t\t.normalize();\r\n\t\t\t\tPoint3D xAxis = OG.vectorProduct(yAxis).normalize();\r\n\t\t\t\t// Point3D zAxis = yAxis.vectorProduct(xAxis).normalize(); - not\r\n\t\t\t\t// used for these computations\r\n\r\n\t\t\t\t// upper-left screen corner\r\n\t\t\t\tPoint3D screenCorner = view.sub(xAxis.scalarMultiply(horizontal / 2))\r\n\t\t\t\t\t\t.add(yAxis.scalarMultiply(vertical / 2));\r\n\t\t\t\tScene scene = RayTracerViewer.createPredefinedScene();\r\n\r\n\t\t\t\t// measuring calculation time\r\n\t\t\t\tdouble start = System.currentTimeMillis();\r\n\t\t\t\tForkJoinPool pool = new ForkJoinPool();\r\n\t\t\t\tpool.invoke(new Job(eye, scene, xAxis, yAxis, screenCorner, width, height, horizontal, vertical, 0,\r\n\t\t\t\t\t\theight, red, green, blue));\r\n\t\t\t\tpool.shutdown();\r\n\t\t\t\tdouble end = System.currentTimeMillis();\r\n\r\n\t\t\t\tSystem.out.println(\"Izračuni gotovi. Izračunato za: \" + (end - start) + \"ms\");\r\n\t\t\t\tobserver.acceptResult(red, green, blue, requestNo);\r\n\t\t\t\tSystem.out.println(\"Dojava gotova...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t};\r\n\t}", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "@Override\n public void init() {\n tol = new TeleOpLibrary();\n tol.init(this);\n telemetry.addLine(\"Initializing complete.\");\n telemetry.update();\n }", "Analytics_Engine createAnalytics_Engine();", "public IMazePathFinder createInstance(MazeModel mazeModel);", "public GeometryRay(final Vec3 origin, final Vec3 direction) {\n super(origin, direction);\n }", "public static void create() {\r\n render();\r\n }", "public XPathEngineImpl() {\n // Do NOT add arguments to the constructor!!\n }", "public RayTracerXMLSceneParser() {\n\t\ttry {\n\t\t\treader = XMLReaderFactory.createXMLReader();\n\t\t\treader.setContentHandler(this);\n\t\t} catch (SAXException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void init(RenderContext r)\n\t\t{\n\t\t\trenderContext = r;\n\t\t\trenderContext.setSceneManager(sceneManager);\n\t\n\t\t\t// Register a timer task\n\t\t Timer timer = new Timer();\n\t\t angle = 0.01f;\n\t\t timer.scheduleAtFixedRate(new AnimationTask(), 0, 40);\n\t\t}", "@Override\n\t\tpublic Engine onLoadEngine() {\n\t\t\tToast.makeText(this, \"Touch the screen to add objects.\", Toast.LENGTH_LONG).show();\n\t\t\tfinal Camera camera = new Camera(0, 0, CAMERA_WIDTH, CAMERA_HEIGHT);\n\t\t\tfinal EngineOptions engineOptions = new EngineOptions(true, ScreenOrientation.LANDSCAPE, new RatioResolutionPolicy(CAMERA_WIDTH, CAMERA_HEIGHT), camera);\n\t\t\tengineOptions.getTouchOptions().setRunOnUpdateThread(true);\n\t\t\treturn new Engine(engineOptions);\n\t\t}", "public static void create() {\n SharedLibrary EGL;\n switch (Platform.get()) {\n case LINUX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL.so.1\");\n break;\n case MACOSX:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"EGL\");\n break;\n case WINDOWS:\n EGL = Library.loadNative(EGL.class, \"org.lwjgl.egl\", Configuration.EGL_LIBRARY_NAME, \"libEGL\", \"EGL\");\n break;\n default:\n throw new IllegalStateException();\n }\n create(EGL);\n }", "private void createVR() {\n\t\ttry {\n\t\t\tcontext = new VRContext();\n\n\t\t\t// Set the far clip plane distance on the camera of each eye\n\t\t\t// All units are in meters.\n\t\t\tcontext.getEyeData(Eye.Left).camera.far = 100f;\n\t\t\tcontext.getEyeData(Eye.Right).camera.far = 100f;\n\n\t\t\t// Register a VRDeviceListener to get notified when\n\t\t\t// controllers are (dis-)connected and their buttons\n\t\t\t// are pressed. Note that we add/remove a ModelInstance for\n\t\t\t// controllers for rendering on (dis-)connect.\n\t\t\tcontext.addListener(new VRDeviceListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void connected(VRDevice device) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" connected\");\n\t\t\t\t\tif (device.getType() == VRDeviceType.Controller && device.getModelInstance() != null)\n\t\t\t\t\t\tmodelInstances.add(device.getModelInstance());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void disconnected(VRDevice device) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" disconnected\");\n\t\t\t\t\tif (device.getType() == VRDeviceType.Controller && device.getModelInstance() != null)\n\t\t\t\t\t\tmodelInstances.removeValue(device.getModelInstance(), true);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void buttonPressed(VRDevice device, int button) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" button pressed: \" + button);\n\n\t\t\t\t\t// If the trigger button on the first controller was\n\t\t\t\t\t// pressed, setup teleporting\n\t\t\t\t\t// mode.\n\t\t\t\t\tif (device == context.getDeviceByType(VRDeviceType.Controller)) {\n\t\t\t\t\t\tif (button == VRControllerButtons.SteamVR_Trigger)\n\t\t\t\t\t\t\tisTeleporting = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void buttonReleased(VRDevice device, int button) {\n\t\t\t\t\tGdx.app.log(TAG, device + \" button released: \" + button);\n\n\t\t\t\t\t// If the trigger button the first controller was released,\n\t\t\t\t\t// teleport the player.\n\t\t\t\t\tif (device == context.getDeviceByType(VRDeviceType.Controller)) {\n\t\t\t\t\t\tif (button == VRControllerButtons.SteamVR_Trigger) {\n\t\t\t\t\t\t\tif (intersectControllerXZPlane(context.getDeviceByType(VRDeviceType.Controller), tmp)) {\n\t\t\t\t\t\t\t\t// Teleportation\n\t\t\t\t\t\t\t\t// - Tracker space origin in world space is initially at [0,0,0]\n\t\t\t\t\t\t\t\t// - When teleporting, we want to set the tracker space origin in world space to the\n\t\t\t\t\t\t\t\t// teleportation point\n\t\t\t\t\t\t\t\t// - Then we need to offset the tracker space\n\t\t\t\t\t\t\t\t// origin in world space by the camera\n\t\t\t\t\t\t\t\t// x/z position so the camera is at the\n\t\t\t\t\t\t\t\t// teleportation point in world space\n\t\t\t\t\t\t\t\ttmp2.set(context.getDeviceByType(VRDeviceType.HeadMountedDisplay).getPosition(Space.Tracker));\n\t\t\t\t\t\t\t\ttmp2.y = 0;\n\t\t\t\t\t\t\t\ttmp.sub(tmp2);\n\n\t\t\t\t\t\t\t\tcontext.getTrackerSpaceToWorldSpace().idt().translate(tmp);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tisTeleporting = false;\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} catch (Exception e) {\n\t\t\t// If initializing the VRContext failed, we fall back\n\t\t\t// to desktop only mode with a FirstPersonCameraController.\n\t\t\tcameraController = new FirstPersonCameraController(companionCamera);\n\t\t\tGdx.input.setInputProcessor(cameraController);\n\n\t\t\t// Set the camera height to 1.7m to emulate an\n\t\t\t// average human's height. We'd get this from the\n\t\t\t// HMD tracking otherwise.\n\t\t\tcompanionCamera.position.y = 1.7f;\n\n\t\t\t// We also enable vsync which the VRContext would have\n\t\t\t// managed otherwise\n\t\t\tGdx.graphics.setVSync(true);\n\t\t}\n\t}", "public AbstractDemo(String title) {\n this.title = title;\n pressed = new HashSet<Integer>();\n foreground = Color.black;\n background = Color.white;\n bodyColor = Color.black;\n rayColor = Color.red;\n\n BruteForce bf = new BruteForce();\n ConfigurableBodyOverlapper overlapper = new ConfigurableBodyOverlapper();\n overlapper.registerDefaults();\n space = new Space(bf, overlapper);\n\n ConfigurableRayBodyIntersector intersector = new ConfigurableRayBodyIntersector();\n intersector.registerDefaults();\n space.equipForRays(bf, intersector);\n }", "public LittleSearchEngine() {\n keywordsIndex = new HashMap<String, ArrayList<Occurrence>>(1000, 2.0f);\n noiseWords = new HashMap<String, String>(100, 2.0f);\n }", "public Engine(){\n name = \"Basic Engine\";\n moveDeduction = 1;\n }", "@NotNull\r\n static Ray3 fromOD(Vector3 origin, Vector3 dir) {\r\n return new Ray3Impl(origin, dir);\r\n }", "public void init() {\n try {\n java.net.URL codeBase = getCodeBase();\n codeBaseString = codeBase.toString();\n } catch (Exception e) {\n // probably running as an application, try the application\n // code base\n codeBaseString = \"file:./\";\n }\n\n if (colorMode == USE_COLOR) {\n objColor = red;\n } else {\n objColor = white;\n }\n\n Container contentPane = getContentPane();\n\n contentPane.setLayout(new BorderLayout());\n\n GraphicsConfiguration config = SimpleUniverse\n .getPreferredConfiguration();\n\n canvas = new Canvas3D(config);\n\n u = new SimpleUniverse(canvas);\n\n if (isApplication) {\n offScreenCanvas = new OffScreenCanvas3D(config, true);\n // set the size of the off-screen canvas based on a scale\n // of the on-screen size\n Screen3D sOn = canvas.getScreen3D();\n Screen3D sOff = offScreenCanvas.getScreen3D();\n Dimension dim = sOn.getSize();\n dim.width *= OFF_SCREEN_SCALE;\n dim.height *= OFF_SCREEN_SCALE;\n sOff.setSize(dim);\n sOff.setPhysicalScreenWidth(sOn.getPhysicalScreenWidth()\n * OFF_SCREEN_SCALE);\n sOff.setPhysicalScreenHeight(sOn.getPhysicalScreenHeight()\n * OFF_SCREEN_SCALE);\n\n // attach the offscreen canvas to the view\n u.getViewer().getView().addCanvas3D(offScreenCanvas);\n\n }\n contentPane.add(\"Center\", canvas);\n\n // setup the env nodes and their GUI elements\n setupLights();\n setupBackgrounds();\n setupFogs();\n setupSounds();\n\n // Create a simple scene and attach it to the virtual universe\n BranchGroup scene = createSceneGraph();\n\n // set up sound\n u.getViewer().createAudioDevice();\n\n // get the view\n view = u.getViewer().getView();\n\n // Get the viewing platform\n ViewingPlatform viewingPlatform = u.getViewingPlatform();\n\n // Move the viewing platform back to enclose the -4 -> 4 range\n double viewRadius = 4.0; // want to be able to see circle\n // of viewRadius size around origin\n // get the field of view\n double fov = u.getViewer().getView().getFieldOfView();\n\n // calc view distance to make circle view in fov\n float viewDistance = (float) (viewRadius / Math.tan(fov / 2.0));\n tmpVector.set(0.0f, 0.0f, viewDistance);// setup offset\n tmpTrans.set(tmpVector); // set trans to translate\n // move the view platform\n viewingPlatform.getViewPlatformTransform().setTransform(tmpTrans);\n\n // add an orbit behavior to move the viewing platform\n OrbitBehavior orbit = new OrbitBehavior(canvas, OrbitBehavior.STOP_ZOOM);\n orbit.setSchedulingBounds(infiniteBounds);\n viewingPlatform.setViewPlatformBehavior(orbit);\n\n u.addBranchGraph(scene);\n\n contentPane.add(\"East\", guiPanel());\n }", "public Hit(double t, Ray ray, Geometry geo){\n if(ray == null){\n throw new IllegalArgumentException(\"ray must not be null\");\n }\n if(geo == null){\n throw new IllegalArgumentException(\"geo must not be null\");\n }\n \n this.t = t;\n this.ray = ray;\n this.geo = geo;\n \n }", "@Override\n protected void createMesh() {\n rayLight.getScope().add(camera);\n\n light = new PointLight(Color.GAINSBORO);\n light.setTranslateX(-300);\n light.setTranslateY(300);\n light.setTranslateZ(-2000);\n\n light2 = new PointLight(Color.ALICEBLUE);\n light2.setTranslateX(300);\n light2.setTranslateY(-300);\n light2.setTranslateZ(2000);\n\n light3 = new PointLight(Color.SPRINGGREEN);\n light3.setTranslateY(-2000);\n //create a target\n target1 = new Sphere(180);\n target1.setId(\"t1\");\n target1.setDrawMode(DrawMode.LINE);\n target1.setCullFace(CullFace.NONE);\n target1.setTranslateX(500);\n target1.setTranslateY(500);\n target1.setTranslateZ(500);\n target1.setMaterial(red);\n // create another target\n target2 = new Sphere(150);\n target2.setId(\"t2\");\n target2.setDrawMode(DrawMode.LINE);\n target2.setCullFace(CullFace.NONE);\n target2.setTranslateX(-500);\n target2.setTranslateY(-500);\n target2.setTranslateZ(-500);\n target2.setMaterial(blue);\n\n origin = new Box(20, 20, 20);\n origin.setDrawMode(DrawMode.LINE);\n origin.setCullFace(CullFace.NONE);\n \n model = new Group(target1, target2, origin, light, light2, light3, rayLight);\n }", "public Environment(final Turtle turtle) {\n this(turtle, null);\n }", "public static void main(String[] args) {\r\n\r\n try {\r\n\r\n RayTracer tracer = new RayTracer();\r\n\r\n // Default values:\r\n tracer.imageWidth = 500;\r\n tracer.imageHeight = 500;\r\n\r\n if (args.length < 2)\r\n throw new RayTracerException(\"Not enough arguments provided. Please specify an input scene file and an output image file for rendering.\");\r\n\r\n String sceneFileName = args[0];\r\n String outputFileName = args[1];\r\n\r\n if (args.length > 3)\r\n {\r\n tracer.imageWidth = Integer.parseInt(args[2]);\r\n tracer.imageHeight = Integer.parseInt(args[3]);\r\n }\r\n\r\n // Parse scene file:\r\n tracer.parseScene(sceneFileName);\r\n\r\n // Render scene:\r\n tracer.renderScene(outputFileName);\r\n\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n } catch (RayTracerException e) {\r\n System.out.println(e.getMessage());\r\n } /*catch (Exception e) {\r\n System.out.println(e.getMessage());\r\n }*/\r\n }", "public Ray(double d) {\n setOrigin(50, 200);\n setMatrix(d, 0);\n }", "@Action\n public void addRay() {\n Point2D p1 = randomPoint(), p2 = randomPoint();\n TwoPointGraphic ag = new TwoPointGraphic(p1, p2, MarkerRenderer.getInstance());\n MarkerRendererToClip rend = new MarkerRendererToClip();\n rend.setRayRenderer(new ArrowPathRenderer(ArrowLocation.END));\n ag.getStartGraphic().setRenderer(rend);\n ag.setDefaultTooltip(\"<html><b>Ray</b>: <i>\" + p1 + \", \" + p2 + \"</i>\");\n ag.setDragEnabled(true);\n root1.addGraphic(ag); \n }", "private void initApplicationAR() {\r\n // Create OpenGL ES view:\r\n int depthSize = 16;\r\n int stencilSize = 0;\r\n boolean translucent = Vuforia.requiresAlpha();\r\n\r\n mGlView = new ArGLView(this);\r\n mGlView.init(translucent, depthSize, stencilSize);\r\n\r\n mRenderer = new ArRenderer(this, vuforiaAppSession);\r\n mRenderer.setTextures(mTextures);\r\n mGlView.setRenderer(mRenderer);\r\n\r\n }", "public ReflectedCamera(Camera camera) {\n this(camera, true);\n }", "public TraceManager(TransformerImpl transformer)\r\n {\r\n m_transformer = transformer;\r\n }", "public static void main(String[] args) {\n \t\tnew CoreEngine();\n \t}", "public Simulator(){}", "public BaseShadowSystem (NearFarAnalyzer nearFarAnalyzer, ShadowMapAllocator allocator,\n\t\tDirectionalAnalyzer directionalAnalyzer, LightFilter lightFilter) {\n\t\tthis.nearFarAnalyzer = nearFarAnalyzer;\n\t\tthis.allocator = allocator;\n\t\tthis.directionalAnalyzer = directionalAnalyzer;\n\t\tthis.lightFilter = lightFilter;\n\t}", "void start() throws EngineException;", "public static CacheTracabilityFactory init() {\n\t\ttry {\n\t\t\tCacheTracabilityFactory theCacheTracabilityFactory = (CacheTracabilityFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://www.eclipse.org/tracability/1.0\"); \n\t\t\tif (theCacheTracabilityFactory != null) {\n\t\t\t\treturn theCacheTracabilityFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new CacheTracabilityFactoryImpl();\n\t}", "private Ray constructReflectedRay(Vector n, Point3D point, Ray ray) {\n Vector v = ray.getDirection();\n Vector r = null;\n try {\n r = v.subtract(n.scale(v.dotProduct(n)).scale(2)).normalized();\n }\n catch (Exception e) {\n return null;\n }\n return new Ray(point, r, n);\n }", "public NetspeakAnalysisEngine() {\n super(Sentence.class, Token.class);\n this.netspeakCache = new Cache<>(new NetspeakRetriever());\n this.setApiBaseUrl(DEFAULT_API_BASE_URL);\n this.setPreviousContextSize(DEFAULT_PREVIOUS_CONTEXT_SIZE);\n this.setFollowingContextSize(DEFAULT_FOLLOWING_CONTEXT_SIZE);\n this.setMaxResults(DEFAULT_MAX_RESULTS);\n }", "public Robot(RobotTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 0; i++) jj_la1[i] = -1;\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\n }", "public ObjectFactory() {\n super(grammarInfo);\n }", "public PythonInterpreter() {\n }", "public Ray(Point3D head, Vector direction, Vector normal) {\n\t\tthis(head, direction);\n\t\tdouble nv = normal.dotProduct(_dir);\n\t\tif (!Util.isZero(nv)) {\n\t\t\tVector epsVector = normal.scale(nv > 0 ? DELTA : -DELTA);\n\t\t\t_p0 = head.add(epsVector);\n\t\t}\n\t}", "private static void initSPARQLAnythingEngine() {\n\t\t// Register the JSON-LD parser factory for extension .json\n\t\tReaderRIOTFactory parserFactoryJsonLD = new RiotUtils.ReaderRIOTFactoryJSONLD();\n\t\tRDFParserRegistry.registerLangTriples(RiotUtils.JSON, parserFactoryJsonLD);\n\t\t// Setup FX executor\n\t\tJenaSystem.init();\n\t\tQC.setFactory(ARQ.getContext(), FacadeX.ExecutorFactory);\n\t}", "public Programa(ProgramaTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 2; i++) jj_la1[i] = -1;\n }", "public StandardScriptFactory(String scriptEngineName, String scriptSourceLocator)\n/* */ {\n/* 87 */ this(scriptEngineName, scriptSourceLocator, (Class[])null);\n/* */ }", "private Ray constructReflectedRay(Vector n, Point3D p, Ray l) { // hish\r\n\t\tVector _n = n;// normal at point\r\n\t\tVector _v = l.get_dir(); // direction of vector camera ->geometry\r\n\t\tdouble vn = _v.dotProduct(_n);\r\n\t\tif (vn == 0)\r\n\t\t\treturn null;\r\n\r\n\t\tVector _r = _v.add(_n.scale(-2 * vn));\r\n\t\treturn new Ray(p, _r, _n);\r\n\t}", "public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }", "private Ray constructRefractedRay(Vector n, Point3D p, Ray l) {\r\n\t\treturn new Ray(p, l.get_dir(), n);\r\n\t}", "public RtfOptimizer()\n {\n }", "@Override\n public void create() {\n Gdx.app.log(TAG, \"Application Listener Created\");\n // Never allocate anything in render, since that gets called 60 times a second\n shapeRenderer = new ShapeRenderer();\n }", "public RiftsawServiceLocator() {\n }", "public RenderSystem() {\n super(SystemType.RENDER);\n bufferBuffer =\n new MasterBuffer(\n voide.resources.Resources\n .get()\n .getResource(\"voide.packed_texture\", Texture.class)\n .getTextureId()\n );\n master =\n new MasterRenderer(Constants.GAME_WIDTH, Constants.GAME_HEIGHT);\n }", "private void construct(){\n TriangleMesh mesh;\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/bunny.obj\");\n mesh.setMaterial(new MaterialNode(0.1f, 0.1f, .5f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/cube.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 0, 0));\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/teddy.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 0, 1, 0));\n mesh.setMaterial(new MaterialNode(0.1f, .5f, 0.1f, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n mesh = ObjImporter.loadMesh(\"data/aufgabe3/sphere.obj\");\n mesh.addTransformation(new TransformationNode(TransformationType.TRANSLATE, 1, 1, 0));\n mesh.setMaterial(new MaterialNode(1, 0, 0, 1));\n mesh.getRenderer().setShadingType(ShadingType.GOURAUD);\n scene.addNode(mesh);\n\n scene.calculateNormals();\n scene.setupRendering();\n }", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "public LittleSearchEngine() {\n\t\tkeywordsIndex = new HashMap<String,ArrayList<Occurrence>>(1000,2.0f);\n\t\tnoiseWords = new HashSet<String>(100,2.0f);\n\t}", "private TetrisMain() {\r\n //prevents instantiation\r\n }" ]
[ "0.68035555", "0.6363087", "0.6363087", "0.6100594", "0.60109276", "0.58188033", "0.5488027", "0.54367876", "0.5406374", "0.5381673", "0.51650506", "0.51214194", "0.51093227", "0.50580436", "0.50580436", "0.50294733", "0.50060576", "0.50037426", "0.4990902", "0.49728698", "0.4938226", "0.4904146", "0.48938358", "0.48935416", "0.48820806", "0.48816603", "0.48803782", "0.48687172", "0.48663187", "0.48507693", "0.48433736", "0.48419482", "0.4839614", "0.4836973", "0.4822631", "0.48199373", "0.480933", "0.4801405", "0.47944513", "0.47868562", "0.47694764", "0.47678614", "0.47664812", "0.47567436", "0.47551426", "0.47504056", "0.47504056", "0.47284704", "0.46987188", "0.4693673", "0.4692171", "0.468215", "0.4666194", "0.46634337", "0.46604347", "0.46515778", "0.4650855", "0.46486604", "0.46465728", "0.46355915", "0.4634382", "0.4632542", "0.4628259", "0.4626907", "0.4618752", "0.46183482", "0.4617764", "0.46145177", "0.4609201", "0.46049634", "0.46035215", "0.45941097", "0.45896626", "0.4585963", "0.45735857", "0.4572764", "0.45515883", "0.4542632", "0.45419273", "0.45400423", "0.4536725", "0.45345715", "0.4533172", "0.45328143", "0.45201677", "0.4518348", "0.45157185", "0.45154756", "0.45154697", "0.4515426", "0.45140225", "0.45106703", "0.45062518", "0.45021087", "0.4496958", "0.44949263", "0.4493742", "0.44937268", "0.44937268", "0.44888893" ]
0.55810314
6
Gets the percent complete.
public double getPercentComplete() { this.percent_complete = ((double) lines_produced / (double) height) * 100.0; return this.percent_complete; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Float percentComplete() {\n return this.percentComplete;\n }", "public Double percentComplete() {\n return this.percentComplete;\n }", "public Number getPercentageComplete()\r\n {\r\n return (m_percentageComplete);\r\n }", "public String percentComplete() {\r\n\tdouble percent = ((double) bytesRead / (double) bytesLength);\r\n\tpercent *= 100;\r\n\treturn fmt.format(percent);\r\n }", "java.lang.String getPercentage();", "public Double getProgressPercent();", "public Float completionPercent() {\n return this.completionPercent;\n }", "public int getPercentageComplete() {\n\t\tlong rawPercentage = (100*(System.currentTimeMillis() - startingTime))/(duration);\n\t\treturn rawPercentage >= 100 ? 100 : (int) rawPercentage;\n\t}", "public double getPercent() {\r\n\t\treturn percent;\r\n\t}", "public float getPercent() {\n return percent;\n }", "public double getPercent() { return this.percentage; }", "public double getPercentCompleted() {\n\t\treturn -1;\n\t}", "public int getPercentage() {\r\n return Percentage;\r\n }", "public double getPercentage() {\n\t\treturn this.percentage;\n\t}", "public int getOverallProgressPercent() {\n return overallProgressPercent;\n }", "public static float getReadProgress() {\n\t\treturn mrpl.getPercentComplete();\n\t}", "private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }", "public double getProgress()\n {\n return ((double)getCount() / (double)getGoal());\n }", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\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 percentage_ = s;\n }\n return s;\n }\n }", "public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}", "com.google.protobuf.ByteString\n getPercentageBytes();", "public final double getPercentageComplete() {\n \t\tdouble percentageComplete = 0;\n \t\tfor (StoppingCondition condition : stoppingConditions) {\n \t\t\tif (condition.getPercentageCompleted() > percentageComplete) {\n \t\t\t\tpercentageComplete = condition.getPercentageCompleted();\n \t\t\t}\n \t\t}\n \t\treturn percentageComplete;\n \t}", "public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n percentage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "int getPercentageHeated();", "public float getProgress() {\r\n\t\treturn ((float) dDownloaded / dFileSize);\r\n\t}", "double getpercentage() {\n return this.percentage;\n }", "public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}", "int getRemainderPercent();", "public com.google.protobuf.ByteString\n getPercentageBytes() {\n java.lang.Object ref = percentage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n percentage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "public com.google.protobuf.ByteString\n getPercentageBytes() {\n java.lang.Object ref = percentage_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n percentage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public double getHitsPercentual()\n\t{\n\t\t//Convert int to double values\n\t\tdouble doubleHits = hits;\n\t\tdouble doubleTotalProcessedStops = totalProcessedStops;\n\t\t\n\t\t//Hits percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (doubleHits / doubleTotalProcessedStops));\n\t}", "public double getUnitsPerPercent()\n {\n return unitsPerPercent;\n }", "float getPercentHealth();", "public BigDecimal getUsagePercentage() {\n return this.usagePercentage;\n }", "public int getProgress() {\n return Math.round(mProgress);\n }", "public String percentCompleteCountQATasks() {\n\t\tint fixed = closedQATasks().count();\n\t\tint total = qaTasks().count();\n\t\t\n return percentCompleteStringFromDouble(((double)fixed/(double)total) * 100);\n\t}", "public double getMainPercentage(){return mainPercentage;}", "public void setPercentComplete(double percentComplete) {\n\t\t\n\t}", "public int percentSaveDone() {\n if (isSaveDone()) {\n return 100;\n }\n return percent;\n }", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "public abstract double getPercentDead();", "public String toString() {\n return String.format(\"%.1f%%\", getPercentage());\n }", "public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }", "public float getProgress() throws IOException {\r\n\t\tif (start == totalend) {\r\n\t\t\treturn 0.0f;\r\n\t\t} else {\r\n\t\t\treturn Math.min(1.0f, ((getFilePosition() - start) + finishLen) / (float) totalend);\r\n\t\t}\r\n\t}", "@Override\n public String getSavingsPercentage() {\n\n final String savingsPercent = getElement(getDriver(), By.className(SAVINGS_PERCENTAGE),\n TINY_TIMEOUT).getText();\n setLogString(\"Savings Percentage:\" + savingsPercent + \"%\", true, CustomLogLevel.HIGH);\n return savingsPercent + \"%\";\n }", "public int getQualifyingPercentage() {\n return qualifyingPercentage;\n }", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "int getBatteryPercentage();", "public int getProgress() {\n\t\treturn activeQuest.getThreshold() - getRemaining();\n\t}", "public double getPercent(char type)\n\t{\n\t\tdouble dPercent;\n\t\tswitch(type)\n\t\t{\n\t\t\tcase 'q':\n\t\t\tcase 'Q':\n\t\t\t\tdPercent=pctQ;\n\t\t\t\tbreak;\n\t\t\tcase 'p':\n\t\t\tcase 'P':\n\t\t\t\tdPercent=pctP;\n\t\t\t\tbreak;\n\t\t\tcase 't':\n\t\t\tcase 'T':\n\t\t\t\tdPercent=pctT;\n\t\t\t\tbreak;\n\t\t\tcase 'f':\n\t\t\tcase 'F':\n\t\t\t\tdPercent=pctF;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tdPercent= -1;\n\t\t}\n\t\treturn dPercent;\n\t\t\n\t}", "public float getProgress() {\n // Depends on the total number of tuples\n return 0;\n }", "@FloatRange(from = 0, to = 1) float getProgress();", "float getBonusPercentHP();", "public SimpleDoubleProperty getTotalAbsencePercentageProperty() {\n return totalAbsencePercentageProperty;\n }", "public float getProgress() throws IOException {\n return currentRow / (endRow - header);\n }", "@Override\n public String toString() {\n return 100 * current / total + \"%\";\n }", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "public String getPercentageformat() {\n\t\treturn this.percentageFormat = Math.round(this.percentage) + \"%\";\n\t}", "public int getProgress();", "public float getProgress() {\r\n if (start == end) {\r\n return 0.0f;\r\n } else {\r\n return Math.min(1.0f, (pos - start) / (float)(end - start));\r\n }\r\n }", "public double getEfficiencyPercentual()\n\t{\n\t\t//Difference from Jsprit algorithm path cost and transport service provider path cost\n\t\tdouble difference = algBestPathDistance - providerBestPathDistance;\n\t\t\n\t\t//Efficiency percentual obtained by Jsprit algorithm\n\t\treturn Math.round(100 * (1 - difference / providerBestPathDistance));\n\t}", "public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }", "public double calculateHpPercent();", "@ApiModelProperty(value = \"Percentage for the Detailed Estimate Deduction\")\n\n\t@Min(0)\n\tpublic Integer getPercentage() {\n\t\treturn percentage;\n\t}", "public float getProgress() throws IOException {\n if (end == start) {\n return 0.0f;\n } else {\n return Math.min(1.0f, (in.getPosition() - start) / (float)(end - start));\n }\n }", "public double getCourseworkPercentage(){return courseworkPercentage;}", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public int getRemainderPercent() {\n return remainderPercent_;\n }", "public BigDecimal getPercentageProfitPStd();", "public int uploadingProgressBarGetRate() {\n return uploadingProgressBar.getProgress();\n }", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "public double getProgressFraction() {\n return (double) schedule.getSteps() / config.getSimulationIterations();\n }", "public Long get_cachepercentpethits() throws Exception {\n\t\treturn this.cachepercentpethits;\n\t}", "public float getRemainingPercentage() {\n float percentage = (float) getRemainingTime() / this.duration;\n if (Float.isNaN(percentage)) {\n percentage = 1;\n }\n return Math.min(Math.max(0, percentage), 1);\n }", "public float getBugReportProgress() {\n return (float) mBugReportProgress.get();\n }", "public double getHeardPercentUS() {\n return heardPercentUS;\n }", "public void setPercentageComplete(Number percentComplete)\r\n {\r\n m_percentageComplete = percentComplete;\r\n }", "public double getTotalAbsencePercentage() {\n return totalAbsencePercentageProperty.get();\n }", "public DoubleExpression getProgress()\n {\n return progress;\n }", "public int getRemainderPercent() {\n return remainderPercent_;\n }", "public double getPercentChange() {\n return percentChange;\n }", "public List<Double> bindingPercent() {\n List<Double> subtraction = subtractTablesElement(standardsCPM, zero);\n List<Double> multiplication = multiplyList(100.0, subtraction);\n List<Double> result = divideTableCeilElements(binding, multiplication);\n if (result != null) {\n Double pointer;\n for (int i = 0; i < result.size(); i++) {\n pointer = result.get(i);\n if (pointer.isNaN() || pointer.isInfinite()) {\n LOGGER.warn(\"Binding percent has infinite or NaN points;\");\n } else {\n LOGGER.info(\"Binding percent: \" + i + \": \" + pointer);\n }\n }\n }\n return result;\n }", "public static int getProgressPercentage(long currentDuration, long totalDuration){\r\n Double percentage = (double) 0;\r\n \r\n long currentSeconds = (int) (currentDuration / 1000);\r\n long totalSeconds = (int) (totalDuration / 1000);\r\n \r\n // calculating percentage\r\n percentage =(((double)currentSeconds)/totalSeconds)*100;\r\n \r\n // return percentage\r\n return percentage.intValue();\r\n }", "public int getProgressPercentage(long currentDuration, long totalDuration){\n\t\tDouble percentage = (double) 0;\n\t\t\n\t\tlong currentSeconds = (int) (currentDuration / 1000);\n\t\tlong totalSeconds = (int) (totalDuration / 1000);\n\t\t\n\t\t// calculating percentage\n\t\tpercentage =(((double)currentSeconds)/totalSeconds)*100;\n\t\t\n\t\t// return percentage\n\t\treturn percentage.intValue();\n\t}", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "public Double getProgress() {\r\n\treturn progress;\r\n}", "public Long get_cachepercentbytehit() throws Exception {\n\t\treturn this.cachepercentbytehit;\n\t}", "public double getOccupancyPercentage() throws SQLException {\n\t\tdouble result = (double) getOccupancy() / getMaxOccupancy() * 100;\n\t\tresult = Math.round (result * 100.0) / 100.0; \n\t\treturn result;\n\t}", "public String getProgress() {\n return this.progress;\n }", "int getPulsePercentage();", "public double getLikePercentUS() {\n return likePercentUS;\n }", "public BigDecimal getPercentageProfitPLimit();", "public Long getProgressTotalToDo();", "public int getBatteryPercentage() {\n if (extraCase_ == 6) {\n return (Integer) extra_;\n }\n return 0;\n }", "public Long get_cacherecentpercentbytehit() throws Exception {\n\t\treturn this.cacherecentpercentbytehit;\n\t}" ]
[ "0.8544118", "0.8497082", "0.83284336", "0.8124094", "0.8080711", "0.7971308", "0.7919722", "0.7855976", "0.7697129", "0.76813245", "0.7653216", "0.75915563", "0.75783753", "0.7518014", "0.7459644", "0.74122405", "0.7376639", "0.73708963", "0.7353396", "0.73533493", "0.7352808", "0.7338858", "0.7332415", "0.7324256", "0.72455066", "0.72434944", "0.72395235", "0.72046787", "0.72024095", "0.7135945", "0.7133377", "0.7120949", "0.71039826", "0.70592827", "0.7056907", "0.69282484", "0.69160354", "0.69044584", "0.68913007", "0.68717575", "0.68634", "0.68555266", "0.68210524", "0.6761384", "0.6753383", "0.6742187", "0.6741496", "0.67177", "0.67126733", "0.671207", "0.67099154", "0.6695416", "0.66874194", "0.66767454", "0.6646963", "0.6630508", "0.6612807", "0.65972954", "0.659642", "0.6589158", "0.6586168", "0.65860516", "0.65807486", "0.6579607", "0.65604234", "0.6553056", "0.6527989", "0.6523975", "0.6504987", "0.64854467", "0.64717543", "0.64660376", "0.6463083", "0.6457107", "0.6455559", "0.644283", "0.64406085", "0.6437007", "0.6427965", "0.6400679", "0.639997", "0.63933986", "0.6383501", "0.6381191", "0.63777417", "0.6372351", "0.63580763", "0.6354725", "0.6352612", "0.6346696", "0.6335981", "0.6318497", "0.6310845", "0.6305909", "0.62918776", "0.62907577", "0.62814236", "0.6277544", "0.62650824", "0.62450373" ]
0.833648
2
Checks if is finished.
public boolean isFinished() { return finished; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected boolean isFinished()\n\t{\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return true;\n }", "protected boolean isFinished() {\n return finished;\n }", "protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn done; \n\t}", "public boolean isFinished();", "boolean hasFinished();", "public boolean isFinished() {\n return true;\n }", "protected boolean isFinished(){\r\n return true;\r\n }", "protected boolean isFinished() {\n\t\treturn false;\r\n\t}", "protected boolean isFinished() {\n\treturn this.isDone;\n }", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn false;\n\t}", "protected boolean isFinished() {\n\t\treturn isFinished;\n\t}", "public boolean isFinished(){\n return true;\n }", "@Override\n protected boolean isFinished() {\n return finished;\n }", "protected boolean isFinished() {\r\n\t\t \tboolean ans = false;\r\n\t\t \treturn ans;\r\n\t\t }", "protected boolean isFinished() {\n \t// wait for a time out\n return false;\n }", "@Override\n\tpublic boolean isFinished() {\n\t\treturn finished;\n\t}", "@Override\r\n\tpublic boolean isFinished() {\n\t\treturn finish;\r\n\t}", "protected boolean isFinished() {\n return isFinished;\n }", "boolean isFinished();", "void isFinished();", "Boolean isFinished();", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n return false;\n }", "protected boolean isFinished() {\n \t//ends \n \treturn isTimedOut();\n }", "public boolean finished() {\n \t\treturn isFinished;\n \t}", "@Override\n\tpublic boolean isFinished() {\n\t\treturn true;\n\t}", "protected boolean isFinished() {\n return false;\n \n }", "@Override\n public boolean isFinished() {\n return isDone;\n }", "@Override\n public boolean isFinished() {\n return isDone;\n }", "protected boolean isFinished() {\r\n\treturn false;\r\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "protected boolean isFinished() {\r\n return false;\r\n }", "public void checkFinish()\t{\n\t\tif(readCompareResult() == true)\t{\n\t\t\tfinished = true;\n\t\t}\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\r\n\tprotected boolean isFinished() {\n\t\treturn true;\r\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn isFin;\n\t}", "protected boolean isFinished() {\n\n \tif(weAreDoneSenor == true) {\n\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n \t\n }", "@Override\n public boolean isFinished() {\n return complete;\n }", "public boolean finished();", "@Override\n protected boolean isFinished() {\n return isFinished;\n }", "@Override\n\tpublic boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\r\n protected boolean isFinished() {\n if (super.isFinished()) {\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "@Override\n public boolean isFinished() {\n return true;\n }", "@Override\n\t\tpublic boolean isFinished() {\n\t\t\treturn false;\n\t\t}", "public boolean isFinished () {\n return false;\n }", "protected boolean isFinished() {\r\n if (state == STATE_SUCCESS) {\r\n // Success\r\n return true;\r\n }\r\n if (state == STATE_FAILURE) {\r\n // Failure\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean isFinished() {\n return finished;\n }", "public synchronized boolean hasFinished ()\n {\n return this.finished;\n }", "protected boolean isFinished() {\n\t\treturn isTimedOut();\n\t}", "@Override\n\tprotected boolean isFinished() {\n\t\treturn (System.currentTimeMillis() > Endtime);\n\t}", "public boolean isFinished() {\n\t\treturn (finished);\n\t}", "boolean getFinished();", "@Override\n\tprotected boolean isFinished()\n\t{\n\t\treturn false;\n\t}", "@Override\n protected boolean isFinished() {\n return true;\n }", "@Override\n\tpublic boolean isFinished() {\n\t\treturn false;\n\t}", "@Override\n public boolean isFinished() {\n return true;\n }" ]
[ "0.8594389", "0.8584736", "0.8584736", "0.8584736", "0.85626066", "0.85626066", "0.85626066", "0.85626066", "0.85626066", "0.85626066", "0.85029334", "0.846278", "0.84516954", "0.8428392", "0.8421656", "0.83916426", "0.83794653", "0.8379125", "0.8373934", "0.8368443", "0.8368443", "0.8368443", "0.8368443", "0.8368443", "0.8368443", "0.83465344", "0.83419085", "0.83376896", "0.83355933", "0.832549", "0.8311218", "0.82986265", "0.82789534", "0.827503", "0.8274305", "0.82638556", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82624376", "0.82617646", "0.82526964", "0.82473844", "0.8246354", "0.8232941", "0.8232941", "0.82319164", "0.8230968", "0.8230968", "0.8223907", "0.8222645", "0.8222645", "0.8205907", "0.8201213", "0.81995857", "0.8174524", "0.8168267", "0.8165458", "0.8156068", "0.81283027", "0.8119009", "0.8108925", "0.81057334", "0.80882215", "0.8084588", "0.80620307", "0.8055463", "0.8054208", "0.8053638", "0.8049674", "0.8023871", "0.8012969", "0.80000985" ]
0.80866915
91
Sets the ray tracer listener.
public void setRayTracerListener(RayTracerListener l) { this.rtl = l; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Reflexion(final Ray ray, final Raytracer tracer){\n\t\tthis.ray = ray;\n\t\tthis.tracer = tracer;\n\t}", "void setListener(Listener listener);", "public void setListener(LineListener listener) {\n\t\tplayer.setListener(listener);\n\t}", "private void setListener() {\n\t}", "public void setListener(Listener listener) {\n this.mListener = listener;\n }", "public void setListener(Listener listener) {\n this.mListener = listener;\n }", "public void setAgentEventListener(AgentEventListener ael) {\r\n agentEventListener = ael;\r\n }", "public void setServiceListener(Listener listener) {\n \t\tlocalListener = listener;\n \t}", "public void setListener(QuadricRobustEstimatorListener listener) \n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mListener = listener;\n }", "public void setListener(CompassListener l) {\n listener = l;\n }", "public void setLocationListener(SeagullLocationListener listener){\n this.moveListener = listener;\n }", "@Override\n\tpublic void setListener() {\n\n\t}", "public void setListener(LocationListener listener) {\n this.listener = listener;\n }", "public void setScreenListener(ScreenListener listener) {\n\t\tthis.listener = listener;\n\t}", "public static void setListener(QuadConsumer listener) {\n\t\t\n\t\tnotificationListener = listener;\n\t\t\n\t}", "public void setRayonV(int rayon){\r\n\t\trayonV = rayon;\r\n\t}", "public void setListener(@Nonnull PreprocessorListener listener) {\r\n this.listener = listener;\r\n Source s = source;\r\n while (s != null) {\r\n // s.setListener(listener);\r\n s.init(this);\r\n s = s.getParent();\r\n }\r\n }", "public synchronized void setErrListener(LineListener errListener) {\n this.errListener = errListener;\n }", "@Override\r\n public void setListener(NexVideoRenderer.IListener listener) {\r\n this.videoSizeListener = listener;\r\n }", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "public synchronized void setModelListener(ModelListener ml) \r\n\t{\r\n\t\tmodelListener = ml;\r\n\t}", "protected void setListener(final AdvancedWebviewListener listener, final int requestCodeFilePicker) {\n mWebListener = listener;\n mRequestCodeFilePicker = requestCodeFilePicker;\n }", "public void setEventHandler(PInputEventListener listener) {\n if (layerListening != null) {\n layerListening.removeInputEventListener(currentListener);\n layerListening = null;\n } else {\n removeInputEventListener(currentListener);\n }\n currentListener = listener;\n addInputEventListener(currentListener);\n }", "public void setListener(AdListener listener) {\n synchronized (this) {\n this.listener = listener;\n }\n }", "@Override\n public void setSymbolMatchedListener(SymbolMatchedListener l) {\n if (l == null) {\n throw new IllegalArgumentException(\"`l' is null\");\n }\n symbolListener = l;\n }", "private void setListeners() {\n\n }", "public void setListener(\n MetricTransformation2DRobustEstimatorListener listener)\n throws LockedException {\n if (isLocked()) {\n throw new LockedException();\n }\n mListener = listener;\n }", "public void setProcessingEventListener(ProcessingEventListener listener){\n this.listener = listener;\n }", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public synchronized void setOutListener(LineListener outListener) {\n if (outListener != null) {\n this.outListener = outListener;\n }\n }", "public void setRequestListener(IRequestListener requestListener) {\n this.requestListener = requestListener;\n }", "public void setChangeListener(ChangeListener listener) {\n this.listener = listener;\n qs.addChangeListener(listener);\n }", "private void setEventListener() {\n mCameraView.addCameraKitListener(this);\n mCameraButton.setOnClickListener(this);\n mCameraButtonCloud.setOnClickListener(this);\n }", "public void setOnExceptionListener(OnExceptionListener l) {\n this.exceptionListener = l;\n }", "public void setRecordListener(DBRecordListener<gDBR> rcdListener)\n {\n this.recordListener = rcdListener;\n }", "@Override\n public void setOnHierarchyChangeListener(OnHierarchyChangeListener listener) {\n mPassThroughListener.mOnHierarchyChangeListener = listener;\n }", "public void addListener(final IMemoryViewerSynchronizerListener listener) {\n m_listeners.addListener(listener);\n }", "public void setGameEventListener(GameEventListener eventListener) {\n\t\tthis.eventListener = eventListener;\n\t}", "public synchronized void setDebugTraceEnabled(TrcDbgTrace tracer, boolean enabled)\n {\n debugTracer = enabled ? tracer : null;\n }", "public void setViewListener( ViewListener vListen ) {\n\t\tthis.vListen = vListen;\n\t}", "@Reference(\n name = \"listener.manager.service\",\n service = org.apache.axis2.engine.ListenerManager.class,\n cardinality = ReferenceCardinality.OPTIONAL,\n policy = ReferencePolicy.DYNAMIC,\n unbind = \"unsetListenerManager\")\n protected void setListenerManager(ListenerManager listenerManager) {\n if (log.isDebugEnabled()) {\n log.debug(\"Listener manager bound to the API manager component\");\n }\n APIManagerConfigurationService service = ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService();\n if (service != null) {\n service.getAPIManagerConfiguration().reloadSystemProperties();\n }\n }", "public void addHitTestListener(HitTestListener l) {\n hitTestListenerList.add(HitTestListener.class, l);\n }", "void addHitListener(HitListener hl);", "void addHitListener(HitListener hl);", "void addHitListener(HitListener hl);", "void addHitListener(HitListener hl);", "public void setOnToolListener( final OnToolListener listener ) {\n\t\tmToolListener = listener;\n\t}", "public MockRestRequest addListener(EventListener listener) {\n if (listener != null) {\n synchronized (listeners) {\n listeners.add(listener);\n }\n }\n return this;\n }", "private void setListener() {\n\t\tmSlidingLayer.setOnInteractListener(this);\r\n\t\tmMsgNotifySwitch.setOnCheckedChangeListener(this);\r\n\t\tmMsgSoundSwitch.setOnCheckedChangeListener(this);\r\n\t\tmShowHeadSwitch.setOnCheckedChangeListener(this);\r\n\t\tmAccountSetting.setOnClickListener(this);\r\n\t\tmMyProfile.setOnClickListener(this);\r\n\t\tmFaceJazzEffect.setOnClickListener(this);\r\n\t\tmAcountInfo.setOnClickListener(this);\r\n\t\tmFeedBack.setOnClickListener(this);\r\n\t\tmExitAppBtn.setOnClickListener(this);\r\n\r\n\t}", "public void setExamEventListener(ExamEventListener listener) {\n mExamEventListener = listener;\n }", "public static void addListener(NetworkListener listener) {\n\t\tarcade.getClient().addListener(listener);\n\t}", "private void setupLogging(BuildListener listener) {\n this.listener = listener;\n }", "public void setOnColorChangedListener(OnColorChangedListener listener) {\n\t\tmListener = listener;\n\t}", "@VisibleForTesting\n LedgerRecoveryOp setEntryListener(ReadEntryListener entryListener) {\n this.entryListener = entryListener;\n return this;\n }", "public void setListener(JmsRequestorListener listener) {\n this.listener = listener;\n }", "public void addAnimatorListener(Listener aListener) { addListener(Listener.class, aListener); }", "public void addListener(Listener l) {\n\t\tmListenerSet.add(l);\n\t}", "public void addListener(LogListener listener) {\n\t\tthis.eventListeners.add(listener);\n\t}", "public synchronized void addAgentFocusListener(AgentFocusListener listener)\n {\n m_AgentFocusGenerator.addAgentFocusListener(listener);\n }", "public void setInitializationListener(SdkInitializationListener sdkInitializationListener) {\n this.mInitializationListener = sdkInitializationListener;\n if (this.initialized) {\n reportInitializationComplete();\n }\n }", "public void addListener(Animator.AnimatorListener listener) {\n mCircularBar.addListener(listener);\n }", "public void setAlarmListener(LightAlarmDeviceListener alarmListener) {\n this.alarmListener = alarmListener;\n }", "protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }", "public void addListener(@NotNull ReceiverListener listener) {\n myListeners.add(listener);\n }", "public void add(RayHandler rayHandler);", "public void addListener(EventListener listener);", "public void addListener(AwaleListener awaleListener) {\r\n\tthis.listeners.add(awaleListener);\r\n }", "public void setEventLayer (EventLayer l) {\r\n\t\tif (_eventLayer != null) {\r\n\t\t\t_eventLayer.removeLayerListener(this);\r\n\t\t\t}\r\n \t_eventLayer = l;\r\n\t\t_eventLayer.addLayerListener(this);\r\n }", "public void addJaakEnvironmentListener(JaakEnvironmentListener listener) {\n\t\tsynchronized (this.listeners) {\n\t\t\tthis.listeners.add(listener);\n\t\t}\n\t}", "public void setOnLocationServiceListener (LocationServiceListener listener)\n {\n this.mListeners.add(listener);\n }", "void addListener(RiakFutureListener<V,T> listener);", "public void setFindTestListener(FindTestListener listener) {\n\tthis.findTestListener = listener;\r\n}", "public void addListener(Listener listener) {\n m_listeners.add(listener);\n }", "public void addNavigatorListener(NavigatorListener listener) {\n\t\tlisteners.add(listener);\n\t}", "@SuppressWarnings(\"unused\")\n public void setOnRangeSeekBarChangeListener(OnRangeSeekBarChangeListener<T> listener) {\n this.listener = listener;\n }", "public void setRayonH(int rayon){\r\n\t\trayonH = rayon;\r\n\t}", "void setAddHighlightListener(AddHighlightListener listener);", "public synchronized void addRendererListener (MauiApplication aMauiApplication,\n\t\t\t\t\t\t\t\t\t\t\t\t I_RendererListener aRendererListener)\n\t{\n\t\tString theApplicationName = (aMauiApplication == null ? \"null\" :\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taMauiApplication.getApplicationAddress ());\n\t\tVector theListeners = (Vector) rendererListeners.get (theApplicationName);\n\t\tif (theListeners == null)\n\t\t{\n\t\t\ttheListeners = new Vector (5);\n\t\t\trendererListeners.put (theApplicationName, theListeners);\n\t\t}\n\t\t\n\t\tif (!theListeners.contains (aRendererListener))\n\t\t{\n\t\t\ttheListeners.add (aRendererListener);\n\t\t}\n\t}", "@Override\n public void setLogTracer(LogTracer log) {\n\n }", "public void setEventManager(GameEventManager eventManager) {\n this.eventManager = eventManager;\n }", "@Override\n public void setListener(@NonNull final ExpandableLayoutListener listener) {\n this.listener = listener;\n }", "public void addListener(DirectionsListener listener) {\n this.listeners.add(listener);\n }", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public RayTracerBase(Scene scene) {\n _scene = scene;\n }", "public void addAnalysisServerListener(AnalysisServerListener listener);", "public void addListener(\n IListener listener\n )\n {listeners.add(listener);}", "public void setControlListener(ControlListener c) { cListener = c; }", "void addListener(\n ReaderSettingsListenerType l);", "public void setListener(IAlgorithmListener listener);", "public void setViewer(Composite viewer) {\n\t\tZoomManager manager = (ZoomManager)viewer.getData(\"ZoomManager\");\n\t\tif (manager != null) {\n\t\t\tsetFigure(manager.getViewport(), viewer);\n\t\t}\n\t}", "public AudioMonitor(AudioMonitorListener listener) {\n this.listener = listener;\n }", "public static void setStatusListener(StatusListener listener) {\n statusListener = listener;\n }", "public static void addGenomeChangedListener(Listener<GenomeChangedEvent> l) {\n genomeController.addListener(l);\n }", "@Override\r\n public void addStreamEventListener(IStreamEventListener eventListener) {\r\n listener = eventListener;\r\n }", "public ResponseForwarder(ResponseListener<F> listener){\n\t\t\tthis.listener = listener;\n\t\t}", "public void setCommandListner( CommandListener l )\n {\n this.listener = l;\n }", "public void setOnAttachStateChangeListener(C0311d listener) {\n this.f1127b = listener;\n }", "@Override\n public void addListener(DisplayEventListener listener) {\n listenerList.add(DisplayEventListener.class, listener);\n }" ]
[ "0.639393", "0.6313022", "0.61000246", "0.6051982", "0.5985449", "0.5985449", "0.5946719", "0.5866389", "0.57530874", "0.5587871", "0.5585344", "0.5578225", "0.5565055", "0.5555176", "0.55318743", "0.5526015", "0.5513177", "0.54799366", "0.54767394", "0.54713386", "0.54713386", "0.54375124", "0.5393063", "0.53745395", "0.5372838", "0.5369348", "0.53687006", "0.5337406", "0.5331525", "0.53225046", "0.53225046", "0.53195816", "0.53125036", "0.53009593", "0.5298463", "0.52973664", "0.5275405", "0.52622706", "0.524909", "0.5245297", "0.523049", "0.522888", "0.5213243", "0.51945066", "0.5181151", "0.5181151", "0.5181151", "0.5181151", "0.51567185", "0.5154645", "0.5152678", "0.5152092", "0.5140423", "0.5132351", "0.5128938", "0.51277053", "0.511819", "0.50748", "0.5073973", "0.5066356", "0.5061189", "0.50548124", "0.5047719", "0.50441086", "0.50337553", "0.5029392", "0.50259435", "0.5024427", "0.5015247", "0.5010389", "0.5006807", "0.5002594", "0.49924788", "0.499042", "0.49818817", "0.49729615", "0.49697122", "0.49598202", "0.49541962", "0.49451607", "0.49372882", "0.4935496", "0.49330348", "0.48881954", "0.48868418", "0.48868418", "0.48784092", "0.4876333", "0.4873777", "0.48732525", "0.4872943", "0.48692125", "0.485847", "0.4857678", "0.48542228", "0.48417285", "0.4832892", "0.48254547", "0.4819415", "0.48185098" ]
0.76455647
0
Sets the super sampling.
public void setSuperSampling(boolean flag) { this.supersampling = flag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public Builder sampling(double sampling) {\n super.sampling(sampling);\n return this;\n }", "public void setSamples(int samples){ \n this.samples = samples; \n }", "public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }", "public RayTracerBase setAdaptiveSuperSampling(boolean adaptiveSuperSampling) {\n this.adaptiveSuperSampling = adaptiveSuperSampling;\n return this;\n }", "public void changeSamplerateTo(int samplerate) {\n\t\tm_samplerate = samplerate;\n\t\tif( m_privateNotification != null ) {\n\t\t\tString content = \"changeSamplerate:\"+Integer.toString(samplerate)+\";\";\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSCanvas\", content);\n\t\t\tm_privateNotification.sendMessage(m_parentName+\"TSCanvasMenu\", m_parentName+\"TSAbstractCanvas\", content);\n\t\t}\n\t}", "public void setSamplingRate(int value) {\n this.samplingRate = value;\n }", "@Override\n protected void initializeSample(SamplingContext context) {\n for(int i = 0 ; i < this.EVars.length ; i++) {\n Variable EVar = this.EVars[i];\n int EVal = this.EVals[i];\n int EIndex = Toolkit.indexOf(this.sampledVars, EVar);\n context.sampledVarsAssignment[EIndex] = EVal;\n }\n // produce a few samples to get the network into a more \"normal\" state\n for(int i = 0 ; i < this.resamplingActions.size() * 2 ; i++)\n this.produceSample(context);\n context.sampleWeight = 1.0;\n\n /*WeightedSampleProducer weightedSampler = new WeightedSampleProducer(\n this.bn, this.XVars, this.YVars, this.EVars, this.EVals);\n // the variable values are preserved after the following call\n weightedSampler.produceSample(context); // evidence is correctly set\n context.sampleWeight = 1.0;*/\n }", "void initScale(){\n samplingScale = getScaleAdaptive(x);\n }", "public SampledPolicy() {\r\n super(ExecutablePolicyType.SAMPLED);\r\n }", "private void setBestSample(Sample s) {\n//\t\t System.out.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\");\n//\t\t System.out.println(\"!!! New best sample with fitness \" +\n//\t\t s.getFitness() + \"!!!\");\n\t\tbestSample = s;\n\t}", "protected void setSampleCountImpl(int newSampleCount) {\n\t\tif (sampleCount != newSampleCount) {\n\t\t\tsampleCount = newSampleCount;\n\t\t}\n\t}", "public Builder setSamplingProbability(double value) {\n \n samplingProbability_ = value;\n onChanged();\n return this;\n }", "public Builder setUsePlayerBasedSampling(boolean value) {\n \n usePlayerBasedSampling_ = value;\n onChanged();\n return this;\n }", "public final void setSample(Object obj)\n { /* setSample */\n this.sample= obj; \n }", "public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }", "public void setSampleMode( SampleMode sampleMode );", "public void set_sampling_parameter(double pass_freq) {\n\t\tfinal double pi = 3.1415926535897932385;\n\n\t\t// Low-pass: R = 10kOhm, C = 1000pF; w0l = 1/RC = 1/(1e4*1e-9) = 100000\n\t\t// High-pass: R = 1kOhm, C = 10uF; w0h = 1/RC = 1/(1e3*1e-5) = 100\n\t\t// Multiply with 1.048576 to facilitate division by 1 000 000 by right-\n\t\t// shifting 20 times (2 ^ 20 = 1048576).\n\n\t\tw0hp = 105;\n\t\tw0lp = (int /* sound_sample */) (pass_freq * (2.0 * pi * 1.048576));\n\t\tif (w0lp > 104858)\n\t\t\tw0lp = 104858;\n\t}", "void setSamplingIntervalMs(long ms);", "public void testSetPercentToSample()\n {\n double percentToSample = RandomSubVectorThresholdLearner.DEFAULT_PERCENT_TO_SAMPLE;\n RandomSubVectorThresholdLearner<String> instance = new RandomSubVectorThresholdLearner<String>();\n assertEquals(percentToSample, instance.getPercentToSample(), 0.0);\n\n percentToSample = percentToSample / 2.0;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n \n percentToSample = 1.0;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n\n percentToSample = 0.0;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n\n percentToSample = 0.47;\n instance.setPercentToSample(percentToSample);\n assertEquals(percentToSample, instance.getPercentToSample());\n\n boolean exceptionThrown = false;\n try\n {\n instance.setPercentToSample(-0.1);\n }\n catch (IllegalArgumentException e)\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n assertEquals(percentToSample, instance.getPercentToSample());\n\n exceptionThrown = false;\n try\n {\n instance.setPercentToSample(1.1);\n }\n catch (IllegalArgumentException e)\n {\n exceptionThrown = true;\n }\n finally\n {\n assertTrue(exceptionThrown);\n }\n assertEquals(percentToSample, instance.getPercentToSample());\n }", "public void setSampleSize(int value) {\n this.sampleSize = value;\n }", "public void setSampleRate(int sampleRate) {\r\n\t\tthis.sampleRate = sampleRate;\r\n\t}", "public void setSampleRate(int value) {\n this.sampleRate = value;\n }", "void setSampleFiltering(boolean filterFlag, float cutoffFreq) {\n }", "@java.lang.Override\n public double getSamplingProbability() {\n return samplingProbability_;\n }", "public SuperS()\r\n {\r\n setStep(0,0,0,0,0);\r\n }", "public void setSampleSize(int size){\r\n\t\tSampleSize = size;\r\n\t}", "public void setSampleRate(Integer sampleRate) {\n this.sampleRate = sampleRate;\n }", "@Override\n protected void produceSample(SamplingContext context) {\n context.sampleWeight = 1.0;\n int actionIndex = context.rand.nextInt(this.resamplingActions.size());\n MCMCResamplingAction action = this.resamplingActions.get(actionIndex);\n action.resample(context);\n this.sampledVarsToXYVarsMapper.map(context.sampledVarsAssignment, context.XYVarsAssignment);\n }", "public void setSuper(String sSuper)\n {\n ensureLoaded();\n m_clzSuper = (sSuper == null ? (ClassConstant) null : new ClassConstant(sSuper));\n setModified(true);\n }", "@java.lang.Override\n public double getSamplingProbability() {\n return samplingProbability_;\n }", "@Override\n public Builder negativeSample(double negative) {\n super.negativeSample(negative);\n return this;\n }", "public abstract void setGen(int i, double value);", "void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }", "public void setTrafficFromEachSuperAS(double traffic) {\n this.trafficFromSuperAS = traffic;\n }", "void setSampleGain(float gain) {\n if (debugFlag)\n debugPrint(\"JSChannel: setSampleGain must be overridden\");\n }", "public void setOversamplingFactor(double factor) {\n cSetOversamplingFactor(this.cObject, factor);\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public void setSuperType(Class<?> superType) {\n if (superType != null) {\n this.superType = type.getSupertype((Class) superType);\n }\n }", "public SamFilterParamsBuilder subsampleSeed(final long seed) {\n mSubsampleSeed = new PortableRandom(seed).nextLong(); // Add some PRNG variability to the user-supplied seed.\n return this;\n }", "public RandomSubVectorThresholdLearnerTest(\n String testName)\n {\n super(testName);\n\n this.random = new Random();\n }", "public void setMinSup(int minSup) {\r\n\t\tthis.minSup = minSup;\r\n\t}", "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 }", "@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}", "@Override\n\tprotected void sampleRateChanged()\n\t{\n\t\ttimeStepSize = 1/sampleRate();\n\t}", "public void set_sampleCnt(long value) {\n setUIntBEElement(offsetBits_sampleCnt(), 32, value);\n }", "public void setSupervisor(Supervisor supervisor){\r\n this.supervisor = supervisor;\r\n }", "public void minMaxSamplingRate(MyInt min, MyInt max, MyInt preferred) {\r\n\r\n\t\tsuper.minMaxSamplingRate(min, max, preferred);\r\n\t\tsampleRate = preferred.getValue();\r\n\t\tdoInitialization();\r\n\t}", "protected abstract void setSpl();", "void setVariation(double variation);", "public Builder clearUsePlayerBasedSampling() {\n \n usePlayerBasedSampling_ = false;\n onChanged();\n return this;\n }", "void enableSampledStatistics();", "public int getSamplingRate() {\n return samplingRate;\n }", "void setScale(ScaleSelector sensor, int scaleNo);", "protected final void setSuperscript() {\n setFontSize((int) (getFontSize() * 0.5d));\n yOffset -= getFontSize();\n }", "public void sample() {\n getFunctionEstimator().sample();\n }", "public void setSampleRate(int sR) {\n switch (sR) {\n case 8000:\n sampleRate.setSelectedIndex(0);\n break;\n case 11025:\n sampleRate.setSelectedIndex(1);\n break;\n case 16000:\n sampleRate.setSelectedIndex(2);\n break;\n case 22050:\n sampleRate.setSelectedIndex(3);\n break;\n default:\n }\n }", "protected BiomeGenBase setEnableSnow()\n {\n this.enableSnow = true;\n return this;\n }", "public void set(float signal);", "public void setBase(double base) {\n\t\tthis.base = base;\n\t}", "public int getSamplingRate( ) {\r\n return samplingRate;\r\n }", "public void setSignal(double signal) {_signal = signal;}", "public void reset ()\r\n\t{\r\n\t\tsuper.reset();\r\n\t\tlastSampleTime = 0;\r\n\t\tfirstSampleTime = 0;\r\n\t\tlastSampleSize = 0;\r\n\t}", "private void sample() {\n Number value = gauge.get();\n this.inner.set(value != null ? value.doubleValue() : 0);\n }", "public IntervalSampler(double freq) {\n this(freq, Integer.MAX_VALUE);\n }", "public void setShuffle() {\n\t\tthis.shuffle = !this.shuffle;\n\t}", "@Override\n\tpublic void setMontant(double s) {\n\t\t\n\t}", "public void setScattered(float[] f, float[] x1, float[] x2) {\n super.setSamples(f,x1,x2);\n }", "@java.lang.Override\n public boolean getUsePlayerBasedSampling() {\n return usePlayerBasedSampling_;\n }", "void update_sample(int new_sample) {\n\t sample_choice = new_sample;\n\t combine_message_and_sample();\n\t update_content();\n }", "@SuppressWarnings(\"unchecked\")\n void setSamplingPriorityIfNecessary(final DDSpan rootSpan) {\n\n if (sampler instanceof PrioritySampler\n && rootSpan != null\n && rootSpan.context().getSamplingPriority() == PrioritySampling.UNSET) {\n\n ((PrioritySampler<DDSpan>) sampler).setSamplingPriority(rootSpan);\n }\n }", "public final void setSup(java.lang.String sup)\n\t{\n\t\tsetSup(getContext(), sup);\n\t}", "public Builder clearSamplingProbability() {\n \n samplingProbability_ = 0D;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean getUsePlayerBasedSampling() {\n return usePlayerBasedSampling_;\n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "public void baiscSetting(){\n generations_ = 0;\n maxGenerations_ = ((Integer) this.getInputParameter(\"maxGenerations\")).intValue();\n populationSize_ = ((Integer) this.getInputParameter(\"populationSize\")).intValue();\n mutation_ = operators_.get(\"mutation\");\n crossover_ = operators_.get(\"crossover\");\n selection_ = operators_.get(\"selection\");\n learning_ = operators_.get(\"learning\");\n\n }", "public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}", "void setRandomize(Boolean setting);", "public JavaRandomSampleOperator(int sampleSize, DataSetType type) {\n super(sampleSize, type, Methods.RANDOM);\n rand = new Random();\n }", "public abstract double sample();", "public void setSupervisoryTransmitRate(Integer supervisoryTransmitRate)\r\n\t{\r\n\t\tthis.supervisoryTransmitRate = supervisoryTransmitRate;\r\n\t}", "public static <T> void monitorSubset(final PrismsSession session,\n\t\tfinal PrismsProperty<T []> superSetProp, final PrismsProperty<T []> subSetProp)\n\t{\n\t\tsession.addPropertyChangeListener(superSetProp, new PrismsPCL<T []>()\n\t\t{\n\t\t\tpublic void propertyChange(PrismsPCE<T []> evt)\n\t\t\t{\n\t\t\t\tT [] subSet = session.getProperty(subSetProp);\n\t\t\t\tfinal boolean [] modified = new boolean [] {false};\n\t\t\t\tsubSet = ArrayUtils.adjust(subSet, evt.getNewValue(),\n\t\t\t\t\tnew ArrayUtils.DifferenceListener<T, T>()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic boolean identity(T o1, T o2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn o1 == o2;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic T added(T o, int idx, int retIdx)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic T removed(T o, int idx, int incMod, int retIdx)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmodified[0] = true;\n\t\t\t\t\t\t\treturn null;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic T set(T o1, int idx1, int incMod, T o2, int idx2, int retIdx)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn o1;\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\tif(modified[0])\n\t\t\t\t\tsession.setProperty(subSetProp, subSet);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic String toString()\n\t\t\t{\n\t\t\t\treturn session.getApp().getName() + \" Subset Enforcer: \" + superSetProp + \":\"\n\t\t\t\t\t+ subSetProp;\n\t\t\t}\n\t\t});\n\t}", "public void setInitialSampleSize(int initialSampleSize) throws ConfigException {\n if (this.initialSize == initialSampleSize) return;\n this.initialSampleSize = initialSampleSize;\n update();\n }", "public void resetSuperAS() {\n this.isSuperAS = false;\n }", "public void setSampleSize(int n){\n\t\tsetParameters(populationSize, type1Size, n);\n\t}", "void setSuperEffectiveFrom(List<Type> superEffectiveFrom) {\n this.superEffectiveFrom = superEffectiveFrom;\n }", "void setSuperEffectiveTo(List<Type> superEffectiveTo) {\n this.superEffectiveTo = superEffectiveTo;\n }", "public void setSynth(Synthesizer synth) {\n\t\tthis.synth = synth;\n\t}", "public DataResourceBuilder _sample_(Resource _sample_) {\n this.dataResourceImpl.getSample().add(_sample_);\n return this;\n }", "public void setSuperMenu(Menu superMenu) {\n\tthis.superMenu = superMenu;\n }", "public void setUpSound() {\n try {\n generateTone();\n setFrequencyLabel();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public static void resample(){\n System.out.println(\"Type in how many random people you want in the db\");\n String s = sc.nextLine();\n int sampleSize = getValidSampleCount(s);\n Db.getDb().resampleDb(sampleSize);\n System.out.println(\"New sample of \" + s + \" generated.\");\n }", "public abstract void setRate();", "@Override\n public void setPower(double power) {\n\n }", "public void setRange(double min, double max) {\n super.setRange(min, max);\n }", "public abstract double samplingFrequency();", "public void setSample(int x, int y, int b, double s, DataBuffer data) {\n // Bounds check for 'b' will be performed automatically\n if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) {\n throw new ArrayIndexOutOfBoundsException(\"Coordinate out of bounds!\");\n }\n data.setElemDouble(bankIndices[b], y * scanlineStride + x * pixelStride + bandOffsets[b], s);\n }", "void setSamplingTaskRunIntervalMs(long ms);", "public void setSoundShot(final boolean sShot) { soundShot = sShot; }", "public void setSubstanceMin(int min) {\n substanceMin = min;\n }", "public JavaRandomSampleOperator(int sampleSize, long datasetSize, DataSetType type) {\n super(sampleSize, datasetSize, type, Methods.RANDOM);\n rand = new Random();\n }", "public Builder setRandomSampling(io.envoyproxy.envoy.type.v3.FractionalPercent value) {\n if (randomSamplingBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n randomSampling_ = value;\n onChanged();\n } else {\n randomSamplingBuilder_.setMessage(value);\n }\n\n return this;\n }" ]
[ "0.70146835", "0.6303062", "0.62883407", "0.6204053", "0.6128701", "0.60063195", "0.59787637", "0.59446037", "0.5906863", "0.58599675", "0.58081084", "0.57563186", "0.5708193", "0.568678", "0.56828123", "0.56806874", "0.55393076", "0.55303115", "0.5497463", "0.5490007", "0.5467674", "0.5461756", "0.54551876", "0.54232067", "0.5418246", "0.5397661", "0.5395482", "0.5387514", "0.538286", "0.53582704", "0.5350772", "0.5329731", "0.5322422", "0.53177845", "0.53167087", "0.5314015", "0.53036827", "0.5298226", "0.5289552", "0.52839947", "0.5270113", "0.5255957", "0.5255957", "0.52400696", "0.52395123", "0.523569", "0.52287626", "0.5227556", "0.52273184", "0.52218974", "0.52131593", "0.5209657", "0.52055275", "0.5189669", "0.51869625", "0.5186803", "0.51847446", "0.5179882", "0.51776314", "0.51721835", "0.51671857", "0.5166199", "0.5141382", "0.5127034", "0.51046836", "0.51008254", "0.50948906", "0.50896883", "0.5078073", "0.5072634", "0.507255", "0.5070295", "0.50632197", "0.50560075", "0.50512564", "0.50444996", "0.50420225", "0.5036167", "0.5034225", "0.5031008", "0.50276804", "0.50183237", "0.5006271", "0.5001619", "0.4998391", "0.49947774", "0.49914774", "0.497933", "0.49755108", "0.4968639", "0.49588194", "0.49568886", "0.4955611", "0.49524567", "0.49361277", "0.49325338", "0.49293065", "0.49281028", "0.49269977", "0.49238613" ]
0.76959485
0
Constructs and initializes an International Student object for use. Used for add, remove, pay.
public International(String name, Major major, int creditHours, boolean isStudyAbroad) { super(name, major, creditHours); this.isStudyAbroad = isStudyAbroad; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Student() {\r\n\t\t\r\n\t\t//populating country options\r\n\t\t//can also be done using a properties file\r\n\t\t\r\n\t\t/*\r\n\t\t * countryOptions = new LinkedHashMap<String, String>();\r\n\t\t * \r\n\t\t * countryOptions.put(\"BR\", \"Brazil\"); countryOptions.put(\"IN\", \"India\");\r\n\t\t * countryOptions.put(\"US\", \"United States\"); countryOptions.put(\"CA\",\r\n\t\t * \"Canada\");\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t}", "public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}", "public Student()\n {\n lname = \"Tantiviramanond\";\n fname = \"Anchalee\";\n grade = 12;\n studentNumber = 2185;\n }", "public Student() \r\n {\r\n studentId = 0;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public Student() {\n \n }", "public Student() {\r\n }", "public Student() {\n }", "public Student() {\n }", "public Student() {\n }", "public Student(){}", "Student(int i, String n) {\n id = i;\n name = n;\n }", "public Student() {\n\t\tthis.firstName = \"no name entered\";\n\t\tthis.lastName = \"no name entered\";\n\t\tthis.wId = \"no WID\";\n\t\tthis.labScore = 0;\n\t\tthis.projScore = 0;\n\t\tthis.examScore = 0;\n\t\tthis.codeLabScore = 0;\n\t\tthis.finalExamScore = 0;\n\t\tthis.scorePercent = 0;\n\t}", "public Student(){\n firstName = \"\";\n lastName = \"\";\n bootcamp = \"\";\n id = 42;\n grade = 1.0;\n }", "public Student( String name ) {\n sname=name;\n }", "public Student() {\r\n\t\tScanner in=new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter Student first name: \");\r\n\t\tthis.firstName=in.nextLine();\r\n\t\tSystem.out.print(\"Enter Student last name: \");\r\n\t\tthis.lastName=in.nextLine();\r\n\t\tSystem.out.print(\"1.Infant\\n2.child\\n3.junior\\n4.senior\\nEnter student class level: \");\r\n\t\tthis.gradeYear=in.nextInt();\r\n\t\r\n\t\tsetStudentId();\r\n\t\t\r\n\t\t\r\n\t}", "public Student() { //Default Constructor\n\t\tthis.roll_no=0;\n\t\tthis.full_name=\"\";\n\t\tthis.grade=\"\";\n\t}", "public Student(String studentID) {\r\n\t\tthis.studentID = studentID;\r\n\t}", "public Student(int studentId) \r\n {\r\n\r\n this.studentId = studentId;\r\n studentName = \"\";\r\n studentMajor = \"\";\r\n }", "public Student(String requiredStudentName)\n {\n studentName = requiredStudentName;\n }", "Student() {\n // Set all to \"undefined\"/0, but assign unique student ID\n this.firstName = \"Undefined\";\n this.lastName = \"Undefined\";\n this.grade = 0;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "Student(String name) {\n\t\tthis.name = name;\n\t\tregisteredCourses = new Course[30];\n\t}", "public Student(String studentId){\n id = studentId;\n }", "public Student(String name) { // constructor\n\t\tthis.name = name; \n\t}", "public Course(String n, String i, int m, String in, int s, String l) {\n\t\tname = n;\n\t\tid = i;\n\t\tmaxstudents = m;\n\t\tinstructor = in;\n\t\tsection = s;\n\t\tlocation = l;\n\t}", "public Student (String first, String last, String id)\r\n\t{\r\n\t\tthis.firstName = first;\r\n\t\tthis.lastName = last;\r\n\t\tthis.studentId = id;\r\n\t}", "public Student(String name) {\n this.name = name;\n }", "public Student(String name, String SSN) {\n this.name = name;\n this.SSN = SSN;\n System.out.println(\"Student: \" + name + \", email: \" + generateEmail(name) + \", ID: \" + generateID(SSN));\n }", "public Student(String name) {\n\n this.name = name;\n }", "public StudentRecord() {}", "public StudentDemo(){\r\n \r\n \r\n \r\n }", "public Student(String studentID, String passwordHash, String name, String matricNum, String nationality,\r\n\t\t\tchar gender, ArrayList<String> school, ArrayList<String> courseList, ArrayList<Integer> indexGroupList,\r\n\t\t\tArrayList<String> exemptionCoursesList, ArrayList<String> completedCoursesList,\r\n\t\t\tArrayList<Integer> waitListIDList, Schedule schedule, Calendar startTime, Calendar endTime, String email,\r\n\t\t\tString mobileNum, String notifMode) {\r\n\t\tthis.studentID = studentID;\r\n\t\tthis.passwordHash = passwordHash;\r\n\t\tthis.name = name;\r\n\t\tthis.matricNum = matricNum;\r\n\t\tthis.nationality = nationality;\r\n\t\tthis.gender = gender;\r\n\t\tthis.school = school;\r\n\t\tthis.courseList = courseList;\r\n\t\tthis.indexGroupList = indexGroupList;\r\n\t\tthis.exemptionCoursesList = exemptionCoursesList;\r\n\t\tthis.completedCoursesList = completedCoursesList;\r\n\t\tthis.waitListIDList = waitListIDList;\r\n\t\tthis.schedule = schedule;\r\n\t\tthis.startTime = startTime;\r\n\t\tthis.endTime = endTime;\r\n\t\tthis.email = email;\r\n\t\tthis.mobileNum = mobileNum;\r\n\t\tthis.notifMode = notifMode;\r\n\t}", "Student(String name){\n this.name = name;\n }", "public Q1PrivateStudent() {\n\t\tthis(\"No Name\", 000, \"Not Set\");\n\t}", "Student4(int i, String n) {\n id = i;\n name = n;\n\n }", "public StudentCourse() {\n this(\"student_course\", null);\n }", "public Student(int id) {\n\t\tthis.id = id;\n\t}", "public Course()\n\t{\n\t\tstudents = new Student[30];\n\t\tnumStudents = 0;\n\t}", "Student createStudent();", "public Student ( int rollno, String name, String course ) {\n\t\tthis.rollno = rollno;\n\t\tthis.name = name;\n\t\tthis.course = course;\n\t}", "static void initializeStudentSystem() {\r\n\r\n Course math = new Course(\"1000\", \"Mathematics\", \"College of Science\");\r\n Course computing = new Course(\"1001\", \"Computing\", \"College of Engineering\");\r\n Course english = new Course(\"1002\", \"English\", \"College of Liberal Arts\");\r\n Course history = new Course(\"1003\", \"History\", \"College of Liberal Arts\");\r\n Course biology = new Course(\"1004\", \"Biology\", \"College of Science\");\r\n courses.put(math.getCRN(), math);\r\n courses.put(computing.getCRN(), computing);\r\n courses.put(english.getCRN(), english);\r\n courses.put(history.getCRN(), history);\r\n courses.put(biology.getCRN(), biology);\r\n //\r\n User admin = new User();\r\n admin.setUsername(\"admin\");\r\n admin.setPassword(\"admin\");\r\n admin.setAccountType(4);\r\n accounts.put(admin.getUsername(), admin);\r\n //\r\n Student defaultStudent = new Student();\r\n defaultStudent.setName(\"Jose Cabrera\");\r\n defaultStudent.setUsername(\"John1\");\r\n defaultStudent.setPassword(\"123\");\r\n defaultStudent.setId(\"80539934\");\r\n defaultStudent.setMajor(\"CS\");\r\n defaultStudent.setAccountType(1);\r\n defaultStudent.setGraduationStatus(21);\r\n accounts.put(\"John1\", defaultStudent);\r\n //\r\n Student defaultStudent2 = new Student();\r\n defaultStudent2.setName(\"Raul Hinostroza\");\r\n defaultStudent2.setUsername(\"John2\");\r\n defaultStudent2.setPassword(\"123\");\r\n defaultStudent2.setId(\"805393\");\r\n defaultStudent2.setMajor(\"CS\");\r\n defaultStudent2.setAccountType(1);\r\n accounts.put(\"John2\", defaultStudent2);\r\n //\r\n Student defaultStudent3 = new Student();\r\n defaultStudent3.setName(\"Max Morales\");\r\n defaultStudent3.setUsername(\"John3\");\r\n defaultStudent3.setPassword(\"123\");\r\n defaultStudent3.setId(\"8053923\");\r\n defaultStudent3.setMajor(\"CS\");\r\n defaultStudent3.setAccountType(1);\r\n accounts.put(\"John3\", defaultStudent3);\r\n defaultStudent.addCourses(\"1000\");\r\n defaultStudent2.addCourses(\"1000\");\r\n defaultStudent3.addCourses(\"1000\");\r\n //\r\n Faculty defaultFaculty = new Faculty();\r\n defaultFaculty.setAccountType(2);\r\n defaultFaculty.setName(\"Smith\");\r\n defaultFaculty.setUsername(\"Smith1\");\r\n defaultFaculty.setPassword(\"123\");\r\n accounts.put(defaultFaculty.getUsername(), defaultFaculty);\r\n //\r\n Staff defaultStaff = new Staff();\r\n defaultStaff.setAccountType(3);\r\n defaultStaff.setName(\"Smith\");\r\n defaultStaff.setUsername(\"Smith2\");\r\n defaultStaff.setPassword(\"123\");\r\n accounts.put(defaultStaff.getUsername(), defaultStaff);\r\n }", "public Student(String name, String gender, String email){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = new Course();\n this.course2 = new Course();\n this.course3 = new Course();\n }", "public Student(String firstName, String lastName, int age, double gpa, String major, String department, List<Course> courses) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.age = age;\n this.gpa = gpa;\n this.major = major;\n this.department = department;\n this.courses = courses;\n }", "Student(String firstName, String lastName, int grade) {\n // Standard constructor assignments\n this.firstName = firstName;\n this.lastName = lastName;\n this.grade = grade;\n\n // Unique student IDs - increment lastStudentID and set it as this student's student ID\n lastStudentID++;\n this.studentID = lastStudentID;\n }", "public StudentResource() {\n }", "public Student(String nume, int varsta) {\n\t\tthis.nume = nume;\n\t\tthis.varsta = varsta;\n\t}", "public Student(String name, String gender,String rollNumber,String mobileNumber){\n this.name = name;\n this.gender = gender;\n this.rollNumber = rollNumber;\n this.mobileNumber = mobileNumber;\n }", "public Student(int id, String name, String course) {\n this.id = id;\n this.name = name;\n this.course = course;\n }", "public TeamStudent() {\r\n\t\t// Default constructor\r\n\t}", "StudenteImpl(String nome, String cognome, Cdl corso, int annoCorso, String matricola) {\n super(nome, cognome);\n initialize(corso, annoCorso, matricola);\n }", "public Student(String name, int studentId) {\n this.name = name;\n this.studentId = studentId;\n this.numberOfCredits = 0;\n this.gpa = 0.0;\n }", "public Student(){//default constructor \r\n ID_COUNTER++;\r\n studentNum = ID_COUNTER;\r\n firstName = \"\";\r\n lastName = \"\";\r\n address = \"\";\r\n loginID = \"\";\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public Student(Person person) {\r\n\t\tsuper(person);\r\n\t}", "public Student(int level, String first, String last, long gnum, String major, \n String degree) {\n // TODO initialize the instance variables\n // Also use the parameter variable \"level\" as follows\n // 1) use its value to initialized the PROGRAM constant\n // 2) create the transcripts array to be of size [50] if is level 0, \n // or to be of size [15] if level is 1. \n // note that level refers to the student type and we use a value of 0 for \n // an undergrad and a value of 1 for a grad\n PROGRAM = level;\n this.first = first;\n this.last = last;\n this.gnum = gnum;\n this.major = major;\n this.degree = degree;\n if (PROGRAM == 0){\n transcripts = new TranscriptEntry[50];\n }\n else{\n transcripts = new TranscriptEntry[15];\n }\n }", "public Subject(String code, String name, int semester, int yearOfStuding, Professor professor,\n\t\t\tArrayList<Student> students) {\n\t\tsuper();\n\t\tthis.code = code;\n\t\tthis.name = name;\n\t\tthis.semester = semester;\n\t\tthis.yearOfStuding = yearOfStuding;\n\t\tthis.professor = professor;\n\t\tthis.students = students;\n\t}", "public Student(String name, String gender, String email, Course course1, \n Course course2, Course course3){\n this.name = name;\n this.gender = gender;\n this.email = email;\n this.course1 = course1;\n this.course2 = course2;\n this.course3 = course3;\n }", "public Student( String name , String address ){//constructor with arguments \r\n \tID_COUNTER++;\r\n \tstudentNum = ID_COUNTER;\r\n getFirstAndLastName( name );\r\n this.address = address ;\r\n loginID = makeLoginID() ;\r\n numCredits = 0;\r\n totalGradePoints = 0;\r\n }", "public Student(String id, String fname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "public Student(int studentId, String studentName, String studentMajor) \r\n {\r\n\r\n setId(studentId);\r\n setName(studentName);\r\n setMajor(studentMajor);\r\n\r\n }", "public Student(String myname, int myid){ \r\n\t\tname = myname;\r\n\t\tid = myid;\r\n\t\tgrades[0]= -1;\r\n\t\tgrades[1]= -1;\r\n\t\tgrades[2]= -1;\r\n\r\n\t// use the static variable from StudentArray Class to keep count of the number of student object\r\n\t\tnumberOfStudents++; \r\n\t}", "public Student(String name, String address, String facNumber) {\r\n super(name, address);\r\n this.facultyNumber = facNumber;\r\n courses = new HashMap<String, Double>();\r\n }", "public Student()\r\n {\r\n //This is intended to be empty\r\n }", "private void addStudent() {\n\t\t\n\t\tString lastName = sLastNameTF.getText();\n\t\tString firstName = sFirstNameTF.getText();\n\t\tString schoolName = sSchoolNameTF.getText();\n\t\tchar[] password = sPasswordPF1.getPassword();\n\t\tString sA1 = sSecurityQ1TF.getText();\n\t\tString sQ1 = (String)sSecurityList1.getSelectedItem();\n\t\tString sA2 = sSecurityQ2TF.getText();\n\t\tString sQ2 = (String)sSecurityList2.getSelectedItem();\n\t\tString grade = (String)sGradeList.getSelectedItem();\n\t\t\n\t\tstudent = new Student(lastName, firstName, schoolName, password, sA1, sQ1, sA2, sQ2, grade);\n\t\t\n\t\t//Add student to database\n\t\t\n\t}", "public JStudentInfoRecord() {\n super(JStudentInfo.STUDENT_INFO);\n }", "public Student(String imePrezime, String fakultet, int godina) {\r\n\t\tthis.imePrezime = imePrezime;\r\n\t\tthis.fakultet = fakultet;\r\n\t\tthis.godina = godina;\r\n\t}", "public Student(String name, String last_name, int iD,\n\t\t\tString trimesterEntry, int yearEntry, String pensumID, int pensumYear) {\n\t\t\n\t\tthis.name = name;\n\t\tthis.last_name = last_name;\n\t\tID = iD;\n\t\tthis.trimesterEntry = Trimester.getTrimesterName(trimesterEntry);\n\t\tthis.yearEntry = yearEntry;\n\t\tthis.pensumID = pensumID;\n\t\tthis.pensumYear = pensumYear;\n\t}", "public Student(int studentID, String firstName, String lastName) {\n this.studentID = studentID;\n this.firstName = firstName;\n this.lastName = lastName;\n }", "public Student()\r\n {\r\n // initialise variables with defult values\r\n ID=-1;\r\n Name=null;\r\n University=null;\r\n Department=null;\r\n term=0;\r\n cgpa=0.0;\r\n Gpa=new double[10];\r\n Creditsandgrades=new double[10][10][10];\r\n }", "Student(int id, String name, int grade){\r\n\t\tthis.id=id;\r\n\t\tthis.studentName=name;\r\n\t\tthis.studentGrade=grade;\r\n\t\tthis.feesPaid=0;\r\n\t\tthis.feesTotal=30000;\t\r\n\t\t\r\n\t}", "public Student(String id, String fname, String mname, String lname, String email, String phone, String dob) {\r\n\t\tsuper(fname, mname, lname, email, phone);\r\n\t\t//id++;\r\n\t\tthis.dob = dob;\r\n\t\tmgList = new ModuleGradeList();\r\n\t\tthis.studentId = id;\r\n\t}", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "public Student(int userId, String firstName, String lastName, String email, String password, int schoolId)\n {\n super(firstName, lastName, email, password, schoolId);\n this.setUserId(userId);\n this.setFirstName(firstName);\n this.setLastName(lastName);\n this.setEmail(email);\n this.setPassword(password);\n this.setSchoolId(schoolId);\n }", "public Student(String nm, int day, int month, int year){\r\n\t\tthis.name = nm;\r\n//\t\tthis.username = createUsername(nm); //creates unique username from Student's name\r\n\r\n\t dateofbirth = LocalDate.of(year, month, day);\r\n\t\tthis.age = getAge();\r\n\t\tStudent.userID = userID++; //ID increments for each new User\r\n\t\t\r\n\t\tthis.username = getUsername();\r\n\t}", "public Student(String id, String firstName, String lastName, String email, String username, String password) {\n super(id, firstName, lastName, email, username, password, \"student\");\n }", "Student4(int i, String n, int t) {\n id = i;\n name = n;\n age = t;\n\n }", "public StudentRecord(Student s, Department dep, Degree deg, Term tb, List<Professor> a, List<Professor> c,\r\n List<CourseTaken> ct, List<String> n){\r\n student = s;\r\n department = dep;\r\n degreeSought = deg;\r\n termBegan = tb;\r\n advisors = a;\r\n committee = c;\r\n coursesTaken = ct;\r\n notes = n;\r\n }", "public StudentRecord()\n\t{\n\t\tboolean isValid;\n\t\tisValid = setStudentRecord(DEFAULT_QUIZ1, DEFAULT_QUIZ2, DEFAULT_QUIZ3, DEFAULT_MIDTERM, DEFAULT_FINAL);\n\t\t\n\t\tif(!isValid)\n\t\t{\n\t\t\tSystem.out.println(\"ERROR: bad grade in default StudentRecord()\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public Student(String firstName, String lastName, String email) {\r\n\t\tthis.firstName = firstName;\r\n\t\tthis.lastName = lastName;\r\n\t\tthis.email = email;\r\n\t}", "public Student(String fullName,Student_Status stStatus)\n {\n this.fullName = fullName;\n this.stStatus = stStatus;\n }", "public student(String n, char l, int g) {\n\t\t\t\n\t\t\tname = n;\n\t\t\tletter = l;\n\t\t\tgpa = g;\n\t\t\t\n\t\t}", "public StudentInfo() {\n initComponents();\n\n loadData();\n loadComboBox();\n }", "private StudentController() {\n\t\tstudents = new ArrayList<Student>();\n\t\tinflateFromFile();\n\t}", "public static Student getRandomStudentObject() {\n return new Student(\"Abc\", \"99\", \"10th\");\n }", "public Student (String first, String last)\n {\n firstName = first;\n lastName = last;\n testScore1 = 0;\n testScore2 = 0;\n testScore3 = 0;\n }", "public University(String name){\n this.name = name;\n }", "public Student(String firstName, String familyName, int identityNumber) {\r\n this.Student = new StudentInfo (firstName, familyName, identityNumber, 120);\r\n }", "public Student(int id, String firstName, String middleName, String lastName, String email, String ssn, int age,\n\t\t\tString major) {\n\n\t\tsuper(id, firstName, middleName, lastName, email, ssn, age);\n\t\tthis.major = major;\n\t}", "public StudentController(PrIS infoSys) {\r\n\t\tinformatieSysteem = infoSys;\r\n\t}", "public static void init() {\n\t\tList<Object> objects = FileManager.readObjectFromFile(\"student.dat\");\n\t\tfor (Object o : objects)\n\t\t\tStudentList.add((Student) o);\n\t}", "public Student(String name, int age, char gender, int year, String course) {\r\n\t\tthis.name = name;\r\n\t\tthis.age = age;\r\n\t\tthis.gender = gender;\r\n\t\tthis.year = year;\r\n\t\tthis.course = course;\r\n\t}", "@PostConstruct\r\n public void init() {\r\n students = new ArrayList<>();\r\n students.add(new Student(\"Marek\", \"Smorąg\", 3.0));\r\n students.add(new Student(\"Bartosz\", \"Rudecki\", 4.54));\r\n students.add(new Student(\"Jakub\", \"Dąbała\", 5.43));\r\n students.add(new Student(\"Jakub\", \"Rek\", 4.23));\r\n students.add(new Student(\"Julia\", \"Smorąg\", 3.56));\r\n students.add(new Student(\"Arkadiusz\", \"Abramowski\", 3.56));\r\n students.add(new Student(\"Marta\", \"Nowak\", 4.23));\r\n students.add(new Student(\"Rafał\", \"Zalewski\", 4.67));\r\n students.add(new Student(\"Adrian\", \"Zalewski\", 5.0));\r\n students.add(new Student(\"Mirosław\", \"Kulesza\", 4.12));\r\n students.add(new Student(\"Michał\", \"Kostro\", 3.67));\r\n students.add(new Student(\"Jan\", \"Nowak\", 3.38));\r\n }", "public Student08(int id, String name) {\n this.id = id;\n this.name = name;\n }", "public College()\r\n {\r\n students = new ArrayList<Student>();\r\n }", "public Nurse()\r\n {\r\n firstName = \"\";\r\n familyName = \"\";\r\n ID = IDCreator;\r\n\t\t\tIDCreator++;\r\n }", "public Subject(String code, String name, int semester, int yearOfStuding, Professor professor) {\n\t\tsuper();\n\t\tthis.code = code;\n\t\tthis.name = name;\n\t\tthis.semester = semester;\n\t\tthis.yearOfStuding = yearOfStuding;\n\t\tthis.professor = professor;\n\t\tthis.students = new ArrayList<Student>() {\n\n\t\t\t/**\n\t\t\t * \n\t\t\t */\n\t\t\tprivate static final long serialVersionUID = 2595655369364615933L;\n\n\t\t\t\n\t\t};\n\t}", "public Student(String name, int ID, int year) {\n\t\tthis.feesPayed = 0;\n\t\tthis.setID(ID);\n\t\tthis.setName(name);\n\t\tthis.setYear(year);\n\t}", "public students(int id, String name, int grade){\n this.id = id;\n this.name = name;\n this.grade = grade;\n /// initializing fees attributes\n feesPaid = 0;\n feesTotal = 30000;\n }", "public StudentAthlete() {\n }", "public static void testStudent() {\n Student test = new Student(-1930026144, \"Simon\");\r\n // test the id number\r\n System.out.println(test.getID() == 0);\r\n System.out.println(test.getName() == \"Simon\");\r\n // reset a name\r\n test.setName(\"John\");\r\n // test the new name\r\n System.out.println(test.getName() == \"John\");\r\n // set a grade\r\n test.setGrade('A');\r\n System.out.println(test.getGrade() == 'A');\r\n }", "public Student(String fname, String lname, int age, String coll, String maj, double grade) {\n super(fname, lname, age);\n college = coll;\n major = maj;\n gpa = grade;\n }", "public Student(int userPID)\n\t{\n\t\tPID = userPID;\n\t\tfirst = \"Tyler\";\n\t\tlast = \"Hoyt\";\n\t\tmajor = \"Computer Science\";\n\t\tminor = \"\"; //Wont let me set it to null????????????????????????????????????????????\n\t}", "public studentList(int rollNo, String name, String address) {\r\n\t\t\r\n\t\tthis.rollNo = rollNo;\r\n\t\tthis.name = name;\r\n\t\tthis.address = address;\r\n\t\t\r\n\t}" ]
[ "0.7407551", "0.7138504", "0.70003694", "0.69035363", "0.6902772", "0.68696696", "0.6789459", "0.6789459", "0.6789459", "0.6786859", "0.67402285", "0.6671479", "0.66460496", "0.66407216", "0.66192883", "0.6618971", "0.66085845", "0.65938723", "0.6578898", "0.6575849", "0.6493088", "0.6443055", "0.6439462", "0.6418069", "0.6417989", "0.64170206", "0.64088273", "0.63907075", "0.63795924", "0.6375684", "0.63605523", "0.635155", "0.6307175", "0.6270192", "0.6241356", "0.624012", "0.6237775", "0.62292445", "0.6227701", "0.62151456", "0.6214094", "0.6206165", "0.61978346", "0.618593", "0.6147909", "0.61332476", "0.6121094", "0.6115358", "0.61152196", "0.61126536", "0.6108891", "0.6095439", "0.6086162", "0.6076576", "0.6074162", "0.6072846", "0.60696465", "0.6059333", "0.605018", "0.60414284", "0.60284775", "0.6027735", "0.6018661", "0.60174334", "0.60164076", "0.60084206", "0.6000055", "0.59870195", "0.59734064", "0.59657025", "0.59584725", "0.59176147", "0.5909114", "0.58989835", "0.5897895", "0.58959436", "0.58896154", "0.58867264", "0.58693856", "0.58687955", "0.5849127", "0.58401114", "0.583646", "0.582929", "0.5824708", "0.5808074", "0.5804706", "0.57804453", "0.5764474", "0.5759791", "0.5755592", "0.57445335", "0.5736747", "0.5735803", "0.573543", "0.57220006", "0.57118237", "0.56956047", "0.56878227", "0.56857", "0.56842715" ]
0.0
-1
Sets the International students study abroad status to true.
public void setIsStudyAbroad() { double initialValue = 0; this.isStudyAbroad = true; this.setCreditHours(MIN_FULL_TIME_CREDIT); setTotalPayment(initialValue); setLastPaymentDate(null); this.tuitionDue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setRoad(Boolean bool) {\r\n\t \tthis.road = bool;\r\n\t }", "public IRoadSensor setRoadStatus(ERoadStatus s);", "public void setAA(boolean value) {\n this.AA = value;\n }", "public void setStatus(java.lang.String status) {\n\t\t_primarySchoolStudent.setStatus(status);\n\t}", "public International(String name, Major major, int creditHours, boolean isStudyAbroad) {\n super(name, major, creditHours);\n this.isStudyAbroad = isStudyAbroad;\n }", "@Override\n public void togglePrimaryCaregiver(boolean b) {\n }", "public void status(boolean b) {\n status = b;\n }", "public void setGlobalStatus(boolean newStatus) {\n enabled = newStatus;\n }", "public synchronized void setMyTurn(boolean status)\n {\n \tmyTurn[0]=status;\n }", "protected void toggleLaser() {\n laserOn = !laserOn;\n }", "public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }", "public void changeAvailability() {\n\t\tavailability = !availability;\n\t}", "void setConsensus(boolean consensus) { this.consensus = consensus; }", "public void setStatus(boolean newstatus){activestatus = newstatus;}", "public void setIsReady(boolean param) {\n // setting primitive attribute tracker to true\n localIsReadyTracker = true;\n\n this.localIsReady = param;\n }", "@Override\npublic boolean goingToSchool(boolean value) {\n\tSystem.out.println(this.name +\" Is going to school\" );\n\treturn true;\n}", "public Builder setIsChulaStudent(boolean value) {\n \n isChulaStudent_ = value;\n onChanged();\n return this;\n }", "public void setStatus( boolean avtive ){\r\n\t\tthis.activ = avtive;\r\n\t}", "public void setStatus(final boolean statusConta) {\r\n this.status = statusConta;\r\n }", "@Override\n\tpublic void setStatus(int status) {\n\t\t_scienceApp.setStatus(status);\n\t}", "public void setStatus(Boolean s){ status = s;}", "public void setLaneChange(java.lang.Boolean value);", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "public void setOn(){\n state = true;\n //System.out.println(\"Se detecto un requerimiento!\");\n\n }", "public void setStatus(boolean newStatus);", "@Override\n\tpublic void setStatus(boolean status) {\n\t\t_candidate.setStatus(status);\n\t}", "public com.example.DNSLog.Builder setAA(boolean value) {\n validate(fields()[17], value);\n this.AA = value;\n fieldSetFlags()[17] = true;\n return this;\n }", "void toggleInAir() {\n inAir = !inAir;\n }", "public void setArrivalStatus(int status) {\n \tthis.arrivalStatus = status;\n }", "@Override\n public String toString() {\n String isStudyAbroadTextRepresentation = (isStudyAbroad) ? \":study abroad\" : \"\";\n return String.format(\"%s:international%s\", super.toString(), isStudyAbroadTextRepresentation);\n }", "public void setReverseAgency(boolean value) {\r\n this.reverseAgency = value;\r\n }", "public boolean affordRoad() {\n \t\treturn (FREE_BUILD || roads.size() < MAX_ROADS\n \t\t\t\t&& getResources(Type.BRICK) >= 1\n \t\t\t\t&& getResources(Type.LUMBER) >= 1);\n \t}", "private void updateRoadStatus() {\n for (Road r : e.getRoadDirectory().getRoadList()) {\n if (destination.toLowerCase().contains(r.getRoadName().toLowerCase())) {\n roadNamejTextField.setText(r.getRoadName());\n }\n break;\n }\n for (Sensor data : e.getSensorDataDirectory().getSensorDataList()) {\n if (destination.toLowerCase().contains(data.getSensorStreetName().toLowerCase())) {\n roadStatusjTextField.setText(data.getSensorRoadStatus());\n weatherjTextField.setText(data.getSensorWeatherStatus());\n trafficjTextField.setText(data.getSensorTraffic());\n break;\n }\n }\n }", "public void setStatus(CanaryStatus status) {\n this.status = status;\n }", "public void setActiveStatus(Boolean active){ this.status = active; }", "public void land() {\n Game currentGame = this.getGame();\n this.setHasBeenVisited(true);\n currentGame.setMode( Game.Mode.GAME_WON);\n\n }", "public void setIsActive(boolean param) {\n // setting primitive attribute tracker to true\n localIsActiveTracker = true;\n\n this.localIsActive = param;\n }", "public void setSiteStatus(SiteStatus value) { _siteStatus = value; }", "public void setAvisCourtier(Boolean avisCourtier) {\r\n this.avisCourtier = avisCourtier;\r\n }", "private boolean buildStreetIsAllowed(Road road) {\r\n\t\tif (!client.isBeginning()\r\n\t\t\t\t&& road.isBuildable(island, client.getSettler().getID())\r\n\t\t\t\t&& road.getOwner() == Constants.NOBODY) {\r\n\t\t\treturn true;\r\n\t\t} else if (((client.isBeginning() && road.getEnd() == getLastSettlementNode()) || (client\r\n\t\t\t\t.isBeginning() && road.getStart() == getLastSettlementNode()))\r\n\t\t\t\t&& road.getOwner() == Constants.NOBODY) {\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "public void setIsLat(Boolean boo) {\n\t this.isLat = boo;\n }", "public void washingtonTrue(View view) { //Sets washington to be true\n washington = true;\n }", "public Boolean isRoad() {\r\n\t \treturn this.road;\r\n\t }", "public void setEnabledAllStationsWithPeople(){\n Station station;\n for(JCheckBox checkBox : checkbox2StationName.keySet()){\n String stationName = checkbox2StationName.get(checkBox);\n if(stationName.equals(\"main_station\")){\n station = city.getMainStation();\n }\n else{\n station = city.getBusStations().get(stationName);\n }\n\n if(checkBox.isSelected() && !city.existsBusThatStopsAtStation(station)){\n checkBox.setEnabled(false);\n }\n else if(city.existsBusThatStopsAtStation(station)){\n checkBox.setEnabled(true);\n checkBox.setSelected(false);\n }\n }\n }", "void setSaveStatus(boolean b) {\n int status = (b) ? 1 : 0;\n setStat(status, saveStatus);\n }", "public void setAktiivisuus()\r\n\t{\r\n\t\tonAktiivinen = false;\r\n\t}", "public void setLivingStatus(boolean livingStatus){\n this.livingStatus = livingStatus;\n }", "@External\n\tpublic void set_game_status(String _status,Address _scoreAddress) {\n\t\tAddress sender = Context.getCaller();\n\t\tif ( !this.get_admin().contains(sender)) {\n\t\t\tContext.revert(\"Sender not an admin\");\n\t\t}\n\t\tif (!STATUS_TYPE.contains(_status)) {\n\t\t\tContext.revert(\"Invalid status\");\n\t\t}\n\t\tString statusScoreAddress = this.status_data.get(_scoreAddress);\n\t\tif(_status.equals(\"gameRejected\") && !statusScoreAddress.equals(\"gameReady\") ) {\n\t\t\tContext.revert(\"This game cannot be rejected from state \" +statusScoreAddress );\n\t\t}\n\t\tif(_status.equals(\"gameApproved\") && !(\n\t\t\t\tstatusScoreAddress.equals(\"gameReady\") || statusScoreAddress.equals(\"gameSuspended\")\n\t\t\t\t)) {\n\t\t\tContext.revert(\"This game cannot be approved from state \" +statusScoreAddress );\n\t\t}\n\t\tif(_status.equals(\"gameSuspended\") && !statusScoreAddress.equals(\"gameApproved\")) {\n\t\t\tContext.revert(\"Only approved games may be suspended.\");\n\t\t}\n\t\tif(_status.equals(\"gameDeleted\") && !statusScoreAddress.equals(\"gameSuspended\")) {\n\t\t\tContext.revert(\"Only suspended games may be deleted.\");\n\t\t}\n\t\t\n\t\tthis.status_data.set(_scoreAddress, statusScoreAddress); \t\n\t\t\n\t}", "void setScopeRelevant(boolean scopeRelevant);", "void setRoadTerrain(org.landxml.schema.landXML11.RoadTerrainType.Enum roadTerrain);", "public void setForua(boolean newValue);", "@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 setIsPrimary(boolean isPrimary);", "public void setMBOAntenna(boolean status) {\n \tthis.MBOAntenna = status;\n }", "public static void setOnline(boolean flag) {\r\n ONLINE = flag;\r\n }", "void setNetStatus(boolean status){\r\n\t\t\t\tready=status;\r\n\t\t\t}", "public void setComplete(boolean param){\n \n // setting primitive attribute tracker to true\n localCompleteTracker =\n true;\n \n this.localComplete=param;\n \n\n }", "public void setAmmunition(boolean value) {\r\n this.ammunition = value;\r\n }", "public synchronized static void setInsideSecureLocation(boolean flag){\n editor.putBoolean(IN_REGION, flag);\n editor.commit();\n }", "public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }", "public void setAktif(java.lang.Boolean value) {\n this.aktif = value;\n }", "public void setResident(boolean resident) { this.resident = resident; }", "public void stand()\r\n\t{\r\n\t\tstand = true;\r\n\t}", "public void setBreakStatus(boolean state){\n\tonBreak = state;\n\tstateChanged();\n }", "public void turnOn(boolean truth) {\r\n setEnabled(truth);\r\n }", "public void setStatus(boolean status) {\r\n this.AsGraph.setEnabled(status);\r\n this.AsDia.setEnabled(status);\r\n this.AsFile.setEnabled(status);\r\n this.AsDB.setEnabled(status);\r\n\r\n this.FileOutBox.setEnabled(status);\r\n this.DBOutBox.setEnabled(status);\r\n this.startFileDB.setEnabled(status);\r\n if (status && (this.DBOutBox.isSelected() || this.FileOutBox.isSelected())) {\r\n this.startFileDB.setEnabled(true);\r\n } else {\r\n this.startFileDB.setEnabled(false);\r\n }\r\n }", "public void changeStatus(){\n Status = !Status;\n\n }", "@Override\n\tpublic void setStatusDate(java.util.Date statusDate) {\n\t\t_scienceApp.setStatusDate(statusDate);\n\t}", "private void setGameStatus() {\n this.gameStatus = false;\n }", "public void setIsresearch(String isresearch) {\r\n\t\tthis.isresearch = isresearch;\r\n\t}", "public void setGPSAntenna(boolean status) {\n \tthis.GPSAntenna = status;\n }", "public void setStatus(boolean status) {\n\tthis.status = status;\n }", "public void BioActive(boolean what) {\n\t\tthis.bioactive = what;\n\t}", "void setRoadway(org.landxml.schema.landXML11.RoadwayDocument.Roadway roadway);", "public Updater (boolean value, LiaisonStatusReference lsr) {\n theValue = value;\n theLSR = lsr;\n }", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "public void turn_on () {\n this.on = true;\n }", "void setNightModeState(boolean b);", "void setStatus(org.hl7.fhir.ObservationStatus status);", "void setOnStatus(Boolean on) {\n this.on = on;\n }", "public void setStatus(RideRequestStatus status) {\n this.status = status;\n }", "int setCanStatus(int canRegno, int action);", "public void setStatus(String status)\n\t\t{\n\t\t\tConferenceInfoDocument.this.setStatus(mediaElement, status);\n\t\t}", "public void setStoreLeaseEligibilityInd(boolean value) {\n this.storeLeaseEligibilityInd = value;\n }", "@Override\n\tpublic void setStatus(VehicleStatus status) {\n\t\tthis.status = status;\n\t}", "private void markOnline(boolean b) {\n usersRef.child(userMe.getId()).child(\"online\").setValue(b);\n }", "public void setIsPrimary(boolean value) {\r\n this.isPrimary = value;\r\n }", "public void setSkillStatus(String name, byte level, boolean available) {\n if (skills.containsKey(name)) {\n skills.get(name).setAvailable(available);\n skills.get(name).setLevel(level);\n } else {\n throw new IllegalArgumentException(\"Skill \" + name + \" ist nicht bekannt!\");\n }\n }", "public void set_boolean(boolean param) {\n this.local_boolean = param;\n }", "public void setManualMode(boolean b){\n\n this.inManualMode = b;\n }", "public void setActive(Boolean active)\r\n/* */ {\r\n/* 207 */ this.active = active;\r\n/* */ }", "public void setIsCompletingGame(boolean state)\r\n {\r\n this.isCompletingGame= state; \r\n }", "public void setStaged(final Boolean staged);", "public void setStaged(final Boolean staged);", "public void turnOn() {\n\t\tisOn = true;\n\t}", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setActive(boolean active);", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }" ]
[ "0.63272196", "0.61253875", "0.5809222", "0.56734353", "0.56304395", "0.55926627", "0.54191345", "0.53658503", "0.5353036", "0.533448", "0.53312206", "0.5325907", "0.53169155", "0.5299824", "0.5234305", "0.52273494", "0.5218162", "0.51777494", "0.51774573", "0.5177005", "0.5173738", "0.51453674", "0.51398605", "0.5128428", "0.5121834", "0.5097033", "0.5089206", "0.5073278", "0.5071466", "0.50689965", "0.5065746", "0.50473267", "0.50466835", "0.5037083", "0.5033111", "0.50306654", "0.5029787", "0.5026301", "0.4998043", "0.49914384", "0.4987422", "0.49843884", "0.49792048", "0.49748537", "0.49730423", "0.49519414", "0.49362642", "0.49353126", "0.49338406", "0.49333963", "0.4933162", "0.49222246", "0.49089023", "0.48987493", "0.48976624", "0.48952168", "0.48897946", "0.48874402", "0.48871002", "0.48839226", "0.48834082", "0.4879449", "0.487753", "0.48737624", "0.48726937", "0.48635826", "0.48570022", "0.48533154", "0.48516628", "0.4847528", "0.48401493", "0.4839359", "0.4838642", "0.482992", "0.48286253", "0.48278052", "0.4826992", "0.4823799", "0.48098376", "0.4796896", "0.4790976", "0.47908545", "0.47892588", "0.4788197", "0.4781671", "0.47816664", "0.47751564", "0.4760214", "0.4752737", "0.47507018", "0.47495502", "0.47485194", "0.47439075", "0.47439075", "0.47428715", "0.47418836", "0.47418836", "0.47418836", "0.4740287", "0.4740287" ]
0.7286011
0
Overrides the tuitionDue method in Student Parent class. Calculates the tuition for an international student.
@Override public void tuitionDue() { // Studies Abroad if(isStudyAbroad == true) { this.setTuitionDue( Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE); } // Full-Time and Credits > 16 and Not Study Abroad else if(this.getStatus() == FULL_TIME && this.getCreditHours() > CREDIT_HOURS_MAX && isStudyAbroad == false) { this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE + Student.NON_RES_PART_TIME_TUITION_RATE * (this.getCreditHours() - CREDIT_HOURS_MAX)); } // Full-Time and Credits Between 12 and 16 else if(this.getStatus() == FULL_TIME) { this.setTuitionDue(Student.NON_RES_FULL_TIME_TUITION + Student.UNIVERSITY_FEE + Student.ADDITIONAL_FEE); } double newTuition = (getTuitionDue() - getTotalPayment()) > 0 ? getTuitionDue()-getTotalPayment() : 0; this.setTuitionDue(newTuition); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void tuitionDue() {\r\n if (getTotalTuitionPaid() > 0)\r\n return;\r\n double _tuitionOwed = 0;\r\n if (getCredits() < MINIMUM_FULL_TIME_CREDITS)\r\n _tuitionOwed = (getCredits() * RESIDENT_TUITION_RATE_PER_CREDIT) + PART_TIME_UNIVERSITY_FEE;\r\n else if (getCredits() >= MINIMUM_FULL_TIME_CREDITS && getCredits() <= ADDITIONAL_TUITION_CREDIT_THRESHOLD)\r\n _tuitionOwed = FULL_TIME_RESIDENT_TUITION + FULL_TIME_UNIVERSITY_FEE - financialAid;\r\n else\r\n _tuitionOwed = FULL_TIME_RESIDENT_TUITION + FULL_TIME_UNIVERSITY_FEE + (RESIDENT_TUITION_RATE_PER_CREDIT * \r\n (getCredits() - ADDITIONAL_TUITION_CREDIT_THRESHOLD)) - financialAid;\r\n setTuitionOwed(_tuitionOwed);\r\n }", "public double getTuition() {\n\t\tint total = 0;\n\t\tfor(int i = 0; i < this.noc; i++) {\n\t\t\ttotal += courseList[i].getFee();\n\t\t}\n\t\t\n\t\treturn total;\n\t}", "public double tuitionFee(){\n return this.creditHours*this.feePerCreditHour;\n }", "public double calcTuition(){\r\n return getNumCredits() * COST_PER_CREDIT_HOUR;\r\n }", "@Override\n public double tuition(){\n return 2500;\n }", "public double getSubidaSalarial() {\n\t\tdouble sueldoActual = super.getRetribucion();\n\t\tif(super.getAntigüedad() >= 5) {\n\t\t\treturn (sueldoActual*2/100);\n\t\t}\n\t\telse {\n\t\t\treturn (sueldoActual * 0.015);\n\t\t}\n\t}", "public Money getInterestDue();", "public void determineWeeklyPay(){\r\n weeklyPay = commission*sales;\r\n }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "@Override\r\n\tpublic double getSalaire() {\n\t\treturn nbJoursTravailles*montantJournalier;\r\n\t}", "@Override \n public double getPaymentAmount() \n { \n return getWeeklySalary(); \n }", "public int getTrangthaiChiTiet();", "@Override\r\n public int calculateSalary()\r\n {\r\n return weeklySalary*4;\r\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}", "@Override\n\tpublic int manufacturando(int unidades) {\n\t\treturn unidades*this.getTiempoEstimadoParaProducirse();\n\t}", "@Override\n\tpublic double tinhTienAn() {\n\t\tdouble tienAn = canNang * 0.05;\n\t\treturn tienAn;\n\t}", "int getTau();", "@Override\n\tpublic double tinhTienLai() {\n\t\tdouble tienLai=0;\n\t\tif(soThangGui>=kyHan){\n\t\t\t tienLai=soTienGui*laiSuat*soThangGui;\n\t\t}\n\t\treturn tienLai;\n\t}", "public static double getTotal(double tuition, double gnsf, double erf){\r\n double total = 0;\r\n total = tuition + gnsf + erf;\r\n return total;\r\n }", "@Override\n\tpublic double salariDiari() {\n\t\treturn 50.00 + this.Vendes * 1.15;\n\t}", "@Override\n\tpublic double calculatPayment(Student student) {\n\t\tdouble s = 0;\n\t\treturn s;\n\n\t}", "public abstract double calculateTax();", "@Override\n public String getDailyFortune() {\n return \"tennis coach teach play in tennis\";\n }", "public BigDecimal getTotalDue() {\n\t\treturn totalDue;\n\t}", "public Date getDue() {\n return this.due;\n }", "private final void taxCalculations(){\n\r\n hraDeduction = totalHRA - 0.1*basicIncome;\r\n ltaDeduction = totalLTA - 0.7*totalLTA;\r\n\r\n //exemptions\r\n fundsExemption = fundsIncome - 150000; //upto 1.5 lakhs are exempted under IT Regulation 80C\r\n\r\n grossIncome = basicIncome + totalHRA + totalLTA + totalSpecialAl + fundsIncome ;\r\n\r\n totalDeduction = hraDeduction + ltaDeduction;\r\n\r\n totalTaxableIncome = grossIncome - (totalDeduction + fundsExemption);\r\n\r\n taxLiability = 0.05 * (totalTaxableIncome - 250000) + 0.2*(totalTaxableIncome - 500000);\r\n\r\n taxToPay = (cessPercent*taxLiability)/100 + taxLiability;\r\n }", "@Override\r\n\tpublic int getPayCheque() {\n\t\treturn profit+annuelSalary;\r\n\t\t\r\n\t}", "public double getEUtilization() {\n return eUtilization;\n }", "@Override\n public String hienThiTT() {\n String thongTin = \"\";\n thongTin = \"ho ten: \" + this.hoTen + \", tuoi: \" + this.tuoi + \", dia chi: \" + this.diaChi\n + \", sdt: \" + this.sdt + \", mon day: \" + this.monDay + \", to bo mon: \" + this.toBoMon;\n \n System.out.println(thongTin);\n return thongTin;\n }", "public static double getTuition(int degree, boolean time){\r\n //3&6\r\n double tuition = 0; \r\n if(degree == 1){\r\n tuition = 12462;\r\n }\r\n else if(degree == 2){\r\n tuition = 11354;\r\n }\r\n else if(degree == 3){ \r\n if(time){\r\n tuition = 25354;\r\n }\r\n else{\r\n tuition = 20660;\r\n }\r\n }\r\n else if(degree == 4){\r\n tuition = 35922;\r\n } \r\n else if(degree == 5){\r\n tuition = 26794;\r\n }\r\n else{ \r\n if(time){\r\n tuition = 40740;\r\n } \r\n else{\r\n tuition = 33298;\r\n }\r\n }\r\n return tuition;\r\n }", "@Override\t\r\n\tpublic String getDailyWorkout() {\n\t\treturn \"practice 30 hrs daily\";\r\n\t}", "@Override\r\n\tpublic void science() {\n\t\tSystem.out.println(\"Science class is on every tuesday afternoon\");\r\n\t\t\r\n\t}", "@Override\n public double getAnnualSalary() {\n return super.getAnnualSalary() + 10000;\n }", "public java.lang.Double getPercentualCETAnual() {\n return percentualCETAnual;\n }", "@Override\n\tpublic double DienTich() {\n\t\treturn (canhGoc*canhGoc);\n\t}", "@Override\r\n\tpublic String getDailyStudy() {\n\t\treturn \"Practice Expilliarmus and Work on the patronus charm\";\r\n\t}", "public float getTcintmquantity()\r\n {\r\n return _tcintmquantity;\r\n }", "public abstract String getUnit();", "private static String createDueTime(final int seconds) {\n return String.format(\n Locale.getDefault(), \"_$%010d$_\",\n System.currentTimeMillis() / 1000 + seconds\n );\n }", "@Override\n\tpublic double calculateTax(double sal, double inv) {\n\t\tdouble tax;\n\t\tdouble taxIncom = sal-inv;\n\t\tif(taxIncom<500000) {\n\t\t\ttax = taxIncom*0.10;\n\t\t}else if(taxIncom<2000000){\n\t\t\ttax = 500000*0.10;\n\t\t\ttax += (taxIncom-500000)*0.20;\n\t\t}else{\n\t\t\ttax = 500000*0.10;\n\t\t\ttax += 1500000*0.20;\n\t\t\ttax += (taxIncom-2000000)*0.30;\n\t\t}\n\t\t\n\t\treturn tax;\n\t}", "double getTransProb();", "@Override\n public String print(){\n String ret = super.print();\n ret += \"\\nYears Until Tenure: \" + m_yearsUntilTenure;\n return ret;\n }", "@Override\n\tpublic double calcularSalario() {\n\n\t\tdouble salario = 0;\n\n\t\tdouble porcentajeAnios = calcularPorcentajePorAntiguedad();\n\t\tporcentajeAnios = this.sueldoBasico* (porcentajeAnios / 100);\n\t\tsalario = this.sueldoBasico + porcentajeAnios;\n\t\treturn salario;\n\t}", "public double tongDoanhThuNoiThanh() {\n double doanhThu = 0;\n for (ChuyenXe cx : dsChuyenXe) {\n if (cx instanceof ChuyenXeNoiThanh) {\n doanhThu += cx.doanhThu;\n }\n }\n return doanhThu;\n }", "@Override\n public double earnings() {\n return salary + commission + quantity;\n }", "public BigDecimal getTixianFee() {\r\n return tixianFee;\r\n }", "public java.lang.Double getPercentualCETMensal() {\n return percentualCETMensal;\n }", "public String university() {\n return faker.fakeValuesService().resolve(\"educator.name\", this, faker) \n + \" \" \n + faker.fakeValuesService().resolve(\"educator.tertiary.type\", this, faker);\n }", "@Override\n public double getDiscount() {\n return (30 /(1 + Math.exp(-1 * (this.years - 2) )))/100;\n }", "double getMonthTask(){\n\t\treturn this.monthTax = (super.getAvailableMoney()+(super.getAvailableMoney()*super.getYearInterest()))/this.period;\n\t}", "@Override\n\tpublic double getInsuranceAmount() {\n\t\treturn 13_00_000;\n\t}", "@Override\n\tpublic double getUltimaUtilidadObtenida() {\n\t\treturn 0;\n\t}", "@Override\n public double calculatePayDay()\n {\n double perWeekEarned = hourlyRate * hoursPerWeek;\n return (double)Math.round(perWeekEarned * 100) / 100;\n }", "public interface Unit {\n /**\n * Simple getter for unit code<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @return The Unit code.\n */\n public String getCode();\n\n /**\n * Simple getter for unit name<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @return The Unit name.\n */\n public String getName();\n\n /**\n * Enrols the given student in this unit<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * The student will be enrolled in this unit.<br>\n *\n * @param student The student to enrol. May not be null. May not already be enrolled in this unit.\n * @throws IllegalArgumentException If student is null\n * @throws IllegalStateException If a matching student (by equal SID or unikey) is enrolled already\n */\n public void enrolStudent(Student student) throws IllegalArgumentException, IllegalStateException;\n\n /**\n * Withdraws the given student from this unit<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * The given student will be withdrawn from this unit.<br>\n *\n * @param student The student to withdraw. May not be null. Must currently be enrolled.\n * @throws IllegalArgumentException If student is null\n * @throws IllegalStateException if no matching student (by equal SID or unikey) is currently enrolled\n */\n public void withdrawStudent(Student student) throws IllegalArgumentException, IllegalStateException;\n\n /**\n * Retrieves a list of students enrolled in this unit.<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @return A list of students represented by their unikey\n */\n public List<String> getStudents();\n\n /**\n * Retrieves a given enrolled student from the unit<br><br>\n * <b>Preconditions:</b><br>\n * None<br>\n * <b>Postconditions:</b><br>\n * None<br>\n *\n * @param match The term to search for.\n * @return The matching enrolled student if one exists, otherwise null. A matching student is one whose SID or unikey matches the given search term.\n */\n public Student getStudent(String match);\n}", "public void calculateCommission(){\r\n commission = (sales) * 0.15;\r\n //A sales Person makes 15% commission on sales\r\n }", "double getTax();", "@Override\n\tpublic int getUnitPrice()\n\t{\n\t\tdouble discount = discountRate * super.getUnitPrice();\n\t\tdiscountedprice=discount;\n\t\treturn (int) Math.floor(super.getUnitPrice() -discount);\n\t}", "public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }", "public double tongDoanhThuNgoaiThanh() {\n double doanhThu = 0;\n for (ChuyenXe cx : dsChuyenXe) {\n if (cx instanceof ChuyenXeNgoaiThanh) {\n doanhThu += cx.doanhThu;\n }\n }\n return doanhThu;\n }", "double getTransRate();", "public String getSupEntMoney() {\n return supEntMoney;\n }", "public int computeNbEtudiant() {\n\t\treturn 0;\n\t}", "public abstract void calcuteTax(Transfer aTransfer);", "@Override\n public String toString(){\n String ret = super.toString();\n ret += \"\\nYears Until Tenure: \" + m_yearsUntilTenure;\n return ret;\n }", "protected int getTreinAantal(){\r\n return treinaantal;\r\n }", "@Test\r\n\tpublic void retrieveUpcomingTuitionTest() {\n\t\tassertNotNull(\"Test if there is valid UTuition arraylist to retrieve for, UTuition\");\r\n\t\t\r\n\t\t//Test if the UpcomingTuition list retrived from ManageStudentTuition is empty - boundary\r\n\t\tString allUpcomingTuition = ManageStudentTuition.viewUpcomingTuition(UTuition);\r\n\t\tString testForOutput = \"\";\r\n\t\tassertEquals(\"Check that ViewUpcomingTuition\", testForOutput, allUpcomingTuition);\r\n\t\t\r\n\t\t//Given an empty list, after adding 2 student's upcoming tuition, if the size of the list is 2 - normal\r\n\t\tManageStudentTuition.updateStudentUpcomingTuition(UTuition,ut1);\r\n\t\tManageStudentTuition.updateStudentUpcomingTuition(UTuition, ut2);\r\n\t\tassertEquals(\"Test that UpcomingTuition arraylist size is 2\", 2, UTuition.size());\r\n\t\t\r\n\t\t//Test if the expected output same as the list of UTuition retrieved from the ManageStudentTuition\r\n\t\tallUpcomingTuition = ManageStudentTuition.viewUpcomingTuition(UTuition);\r\n\t\ttestForOutput = String.format(\"%-10s %-20s %-20s %-20s\\n\", \"Alice\", \"C1\", \"English Language\", \"25 Aug 2021\");\r\n\t\ttestForOutput += String.format(\"%-10s %-20s %-20s %-20s\\n\", \"Benny\", \"C2\", \"History\", \"31 Aug 2021\");\r\n\t\t\r\n\t\tassertEquals(\"Test that ViewUpcomingTuition\", testForOutput, allUpcomingTuition);\r\n\t\t\r\n\t}", "@Override\n public double calculaSalario() \n {\n double resultado = valor_base - ((acumulado * 0.05) * valor_base);\n resultado += auxilioProcriacao();\n //vale-coxinha\n resultado += 42;\n return resultado;\n }", "@Override\n\tpublic String getDailyFortune() {\n\t\treturn \"SWIM COACH: getDailyFortune() + running getFortune(): \" + fortuneService.getFortune();\n\t}", "private int computeChineseFields() {\n if (gregorianDate.getYear()<1901 || gregorianDate.getYear()>2100) return 1;\n int startYear = baseYear;\n int startMonth = baseMonth;\n int startDate = baseDate;\n int chineseYear = baseChineseYear;\n int chineseMonth = baseChineseMonth;\n int chineseDate = baseChineseDate;\n // Switching to the second base to reduce the calculation process\n // Second base date: 01-Jan-2000, 4697/11/25 in Chinese calendar\n if (gregorianDate.getYear() >= 2000) {\n startYear = baseYear + 99;\n startMonth = 1;\n startDate = 1;\n chineseYear = baseChineseYear + 99;\n chineseMonth = 11;\n chineseDate = 25;\n }\n // Calculating the number of days\n // between the start date and the current date\n // The following algorithm only works\n // for startMonth = 1 and startDate = 1\n int daysDiff = 0;\n for (int i=startYear; i<gregorianDate.getYear(); i++) {\n daysDiff += 365;\n if (isGregorianLeapYear(i)) daysDiff += 1; // leap year\n }\n for (int i=startMonth; i<gregorianDate.getMonthValue(); i++) {\n daysDiff += daysInGregorianMonth(gregorianDate.getYear(),i);\n }\n daysDiff += gregorianDate.getDayOfMonth() - startDate;\n\n // Adding that number of days to the Chinese date\n // Then bring Chinese date into the correct range.\n // one Chinese month at a time\n chineseDate += daysDiff;\n int lastDate = daysInChineseMonth(chineseYear, chineseMonth);\n int nextMonth = nextChineseMonth(chineseYear, chineseMonth);\n while (chineseDate>lastDate) {\n if (Math.abs(nextMonth)<Math.abs(chineseMonth)) chineseYear++;\n chineseMonth = nextMonth;\n chineseDate -= lastDate;\n lastDate = daysInChineseMonth(chineseYear, chineseMonth);\n nextMonth = nextChineseMonth(chineseYear, chineseMonth);\n }\n\n lunarDate = LocalDate.of(chineseYear, chineseMonth, chineseDate);\n return 0;\n }", "@Override\n\tpublic double getTax() {\n\t\treturn 0.04;\n\t}", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "public float getTcintmprice()\r\n {\r\n return _tcintmprice;\r\n }", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public double useTax() {\n \n return super.useTax() + getValue()\n * PER_AXLE_TAX_RATE * getAxles();\n }", "abstract double calculateCurrentDiscountRate();", "public abstract String getTrans();", "@Override\n\tpublic int Prix() {\n\t\treturn voiture.Prix() +250;\n\t}", "TimeUnit getUnit();", "@Override\r\n\tpublic String calculerDonnee() {\n\t\tif (this.quest.getIdPersonne() == null) {\r\n\t\t\tSystem.err\r\n\t\t\t\t\t.println(\"Il n'y a pas de personne associé qu questionnaire, comment voulez vous calculer son age?\");\r\n\t\t\treturn \"-1 idPersonne inconnu\";\r\n\t\t} else {\r\n\t\t\tString[] donnee = GestionDonnee.getInfoPersonne(this.quest\r\n\t\t\t\t\t.getIdPersonne());\r\n\t\t\t// System.err.println(\"donnée : \"+donnee[0]+\" : \"+donnee[1]+\" : \"+donnee[2]);\r\n\r\n\t\t\tDate datenaissance = new Date(donnee[2]);\r\n\t\t\t// System.out.println(\"date actuelle : \"+new\r\n\t\t\t// java.sql.Date(System.currentTimeMillis()).toString());\r\n\t\t\tString temp[] = new java.sql.Date(System.currentTimeMillis())\r\n\t\t\t\t\t.toString().split(\"-\");\r\n\t\t\tDate dateActuelle = new Date(Integer.parseInt(temp[2]),\r\n\t\t\t\t\tInteger.parseInt(temp[1]), Integer.parseInt(temp[0]));\r\n\t\t\t// System.out.println(dateActuelle.annee);\r\n\t\t\t// System.out.println(\"age : \"+datenaissance.calculerAge(dateActuelle)+\"------------------------------------\");\r\n\t\t\treturn datenaissance.calculerAge(dateActuelle).toString();\r\n\r\n\t\t}\r\n\r\n\t}", "public double getTax() {\r\n\r\n return getSubtotal() * 0.06;\r\n\r\n }", "public double getDayUnpaidLv() {\n return dayUnpaidLv;\n }", "public int jogadorAtual() {\n return vez;\n }", "public double tongDoanhThu() {\n double doanhThu = 0;\n for (ChuyenXe cx : dsChuyenXe) {\n doanhThu += cx.doanhThu;\n }\n return doanhThu;\n }", "public double getPUtilization() {\n return pUtilization;\n }", "@Override\n public double calcTaxes() {\n return getCost() * 0.07;\n }", "public double getSalario() {\r\n\t\treturn super.getSalario()-10000;\r\n\t}", "public String getUnit();", "@Override\n\tpublic int calculateSalary() {\n\t\treturn this.getPaymentPerHour() * this.workingHours;\n\t}", "private double calculeSalaires() {\n return salaireHoraire * heures;\n }", "@Override\r\n\tpublic double getPesoTeorico() {\r\n\r\n\t\treturn anamnese.getAltura() * anamnese.getAltura() * 22.0;\r\n\t}", "@Override\n\tpublic double getSalud() {\n\t\treturn this.salud;\n\t}", "public String getPayDue(){\n return payDue;\n }", "@Override\r\n\tpublic String getDailyFortune() {\n\t\treturn \"Just do it: \" + fortuneService.getFortune();\r\n\t}", "public Date getuDt() {\r\n\t\treturn uDt;\r\n\t}", "public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}", "public AssistantProfessor(){\n super();\n m_yearsUntilTenure = -1;\n }", "@Override\n public int annualSalary() {\n int commission;\n if (getAnnualSales() * getCommissionAmount() > getMaximumCommission()) { //Checks if the commission would be over the max\n commission = (int) getMaximumCommission();\n } else {\n commission = (int) (getAnnualSales() * getCommissionAmount());\n }\n return (this.getSalary() * getMonthInYear()) + commission;\n }", "public double getOUtilization() {\n return oUtilization;\n\t}", "public String unitPriceOfPdfEnglishDrm()\n \t{\n \t\tString unitPriceOfPdfEnglish = productRequirementsPageLocators.pdfEnglishUnitPrice.getText();\n \t\tSystem.out.println(\"unit price of pdf englihs is: \"+unitPriceOfPdfEnglish);\n\t\treturn unitPriceOfPdfEnglish;\n\n \t}" ]
[ "0.7167679", "0.6395011", "0.6054646", "0.56963354", "0.5680014", "0.54090625", "0.53045267", "0.52689034", "0.5262528", "0.52001643", "0.5175859", "0.5166858", "0.5155598", "0.51529044", "0.5138462", "0.51378256", "0.5121157", "0.5109722", "0.5106095", "0.51010627", "0.5097081", "0.5079702", "0.5067171", "0.50599635", "0.5051916", "0.5031646", "0.50284815", "0.50276595", "0.49987933", "0.49839467", "0.4979204", "0.49767187", "0.49432105", "0.49309933", "0.49206758", "0.49064127", "0.4900758", "0.48942354", "0.48547688", "0.48517454", "0.48456633", "0.4845054", "0.48350638", "0.48348618", "0.48315492", "0.4820939", "0.48152632", "0.48122528", "0.48116645", "0.48106238", "0.48098108", "0.4796846", "0.47932518", "0.47927034", "0.47874513", "0.47861388", "0.47851205", "0.47816005", "0.47797948", "0.47749254", "0.47735223", "0.47733384", "0.4772479", "0.4770447", "0.47703844", "0.4769691", "0.47659692", "0.4764705", "0.47639018", "0.4757844", "0.47560385", "0.47555572", "0.475168", "0.4751217", "0.4750887", "0.47481337", "0.4745328", "0.4744718", "0.47442186", "0.47405225", "0.47402978", "0.47349653", "0.47335958", "0.47323236", "0.47283867", "0.47175997", "0.47166488", "0.47162613", "0.47149605", "0.47100306", "0.47097543", "0.47062165", "0.47048745", "0.46906742", "0.46902478", "0.46899208", "0.4684588", "0.4683814", "0.46824968", "0.4682482" ]
0.74573886
0
Overrides toString method to represent Student objects.
@Override public String toString() { String isStudyAbroadTextRepresentation = (isStudyAbroad) ? ":study abroad" : ""; return String.format("%s:international%s", super.toString(), isStudyAbroadTextRepresentation); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public String toString() {\r\n return \"Student: \" + super.toString();\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \" \" + getStudentId() + \":\" + getStudentName();\n\t}", "public String toString()\n {\n return \"Student(\" + studentName + \", \" + currentPhone + \")\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"student ID --> \"+this.studentID+\", Name --> \"+this.studentName;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"Student(name:%s,score:%d)\", name,score);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn name + \" \" + studentID;\n\t}", "@Override\n public String toString() {\n return \"Student{\" + \"id=\" + id + \", name=\" + name + \", yob=\" + yob + \", gpa=\" + gpa + '}';\n }", "public String toString() {\r\n String st = \"Student Name: \" + getStudentName() +\r\n \" ID: \" + getStudentId() + \"\\n\";\r\n return st;\r\n }", "public String toString() {\n\t\treturn \" Student: \" + getName() + \"\\t ID: \" + getIDnumber();\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"StudentForList [marks=\" + Arrays.toString(marks) + \", names=\" + names + \"]\";\n\t}", "public String toString() {\r\n\t\treturn \"Student ID: \" + this.studentID + \"\\n\" + \r\n\t\t\t\t\"Name and surname: \" + this.name + \"\\n\" + \r\n\t\t\t\t\"Date of birth: \" + this.dateOfBirth + \"\\n\" + \r\n\t\t\t\t\"University:\" + this.universityName + \"\\n\" + \r\n\t\t\t\t\"Department code: \" + this.departmentCode + \"\\n\" + \r\n\t\t\t\t\"Department: \" + this.departmentName + \"\\n\" +\r\n\t\t\t\t\"Year of enrolment: \" + this.yearOfEnrolment;\r\n\t}", "public String toString(Student s){\r\n\r\n\r\n\t\treturn \"******************************************************\\n*\"+ \r\n\r\n\t\t\t\t\t\" Name #\"+\" \"+s.getName()+\"\\n*\"+\r\n\t\t\t\t\t\" id number # \"+s.getId()+ \"\\n*\"+\r\n\t\t\t\t\t\" Grades # \"+s.getGrade(0)+\" |\"+ s.getGrade(1)+\" |\"+s.getGrade(2)+\"\\n*\"+\r\n\t\t\t\t\t\" Grade Average# \"+ s.getAverage()+\"\\n*\"+\r\n\t\t\t\t\t\" Letter Grade # \"+ s.getLetterGrade(s.getAverage())+\r\n\t\t\t\t\t\"\\n******************************************************\\n\";\r\n\r\n\r\n\t}", "@Override String toString();", "public String toString()\n\t{\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < numStudents; i++)\n\t\t\tstr += students[i].toString() + '\\n';\n\t\treturn str;\n\t}", "@Override\r\n public String toString() \r\n {\r\n return (String.format(\"#%d\\t %-20s\\t %-10s\\n\", this.studentId, this.studentName, this.studentMajor));\r\n }", "public String toString() {\n // get the string of student, time, and coins\n return student.getStudentName() + \" \" + getCoins() + \" \" + timestamp;\n }", "public String toString() {\n\t\treturn \"Student's name is \" + getname() + \".\" + System.lineSeparator() + \"Their Student ID number is \" \n\t\t\t\t+ getid() + \" while their course is \"+ getcourse() + System.lineSeparator();\n\t}", "public String toString(){\n\t\treturn \"The student \"+Student.getFirstName()+\" \"+Student.getFamilyName()+\" has average of \"+averageGrade();\r\n\t}", "@Override\n\tpublic String toString() {\n\t\tStringBuilder stud = new StringBuilder();\n\t\tfor (Student s : students) {\n\t\t\tstud.append(\"; \" + s.getBrojIndeksa());\n\t\t}\n\t\t\n\t\tif (professor != null)\n\t\t\treturn code + \"; \" + name + \"; \" + semester + \"; \"\n\t\t\t\t\t+ yearOfStuding + \"; \" + professor.getIdNumber() + stud;\n\t\telse\n\t\t\treturn code + \"; \" + name + \"; \" + semester + \"; \"\n\t\t\t+ yearOfStuding + \"; \" + stud;\n\t}", "@Override public String toString();", "public String toString() {\n\t\treturn this.getFirstName() + \" \" + this.getMiddleName() + \" \" + this.getLastName() + \" (Student)\\nMajor: \"\n\t\t\t\t+ this.major;\n\t}", "public String toString() {\r\n String string; //a string is created to hold the information about the student\r\n string = \"Name: \" + getName(); //the name is added to the string\r\n string = string + \", Gender: \" + getGender(); //gender is added\r\n string = string + \", Age: \" + getAge(); //age is added\r\n string = string + \", Courses enroled: \";\r\n if (getCourse().length == 0) {\r\n string = string + \"None\"; //returns none if the student is not enroled into a course\r\n } else {\r\n for (Course course : getCourse())\r\n string = string + course.getSubject().getDescription() + \" \"; //adds the subject description if theyre in a course\r\n }\r\n string = string + \", Certificates: \";\r\n if (getCertificates().size() == 0) {\r\n string = string + \"None\"; //displays none if the student has no certificates\r\n }\r\n for (Integer id : getCertificates().toArray(new Integer[getCertificates().size()])) {\r\n string = string + id + \" \"; //adds each id of each course completed\r\n }\r\n return string + \"\\n\";\r\n }", "public String toString() {\n \r\n return this.studentID + \", \" + this.lastName + \", \" +\r\n this.firstName + \", \" + this.q1 + \", \" +\r\n this.q2 + \", \" + this.q3 + \", \" +\r\n this.q4 + \", \" + this.q5 + \", \" +\r\n this.qmkup + \", \" + this.midterm + \", \" +\r\n this.problems + \", \" +\r\n this.finalExam + \", \" + this.courseGrade + \", \" +\r\n this.letterGrade;\r\n }", "public String toString() {\r\n\t\treturn \"Student \" + imePrezime + \" studira \" + fakultet + \" fakultet \" + \r\n\t\t\t\t\"i trenutno je na \" + godina + \". godini\";\r\n\t}", "@Override\r\n String toString();", "public String toString() {\n String o = \"\";\n for (Student v : students) {\n boolean first = true;\n o += \"Student \";\n o += v.getName();\n o += \" has neighbors \";\n ArrayList<Student> ngbr = v.getNeighbors();\n for (Student n : ngbr) {\n o += first ? n.getName() : \", \" + n.getName();\n first = false;\n }\n first = true;\n o += \" with prices \";\n ArrayList<Integer> wght = v.getPrices();\n for (Integer i : wght) {\n o += first ? i : \", \" + i;\n first = false;\n }\n o += System.getProperty(\"line.separator\");\n\n }\n\n return o;\n }", "@Override\r\n\tpublic String toString();", "public String toString() { return \"StudentYear: ...\"; }", "@Override\n\tString toString();", "@Override\n String toString();", "@Override\n String toString();", "@Override\r\n public String toString();", "@Override\n\tpublic abstract String toString();", "@Override\n\tpublic String toString();", "public String toString(){\n\t\t \n\t\treturn this.scholarship + \": \" + this.student + \", Date Submitted: \" + this.date + \", GPA: \" + this.gpa + \", Education Level: \" + this.edulvl + \", Priority: \" + this.priority + \", Status: \" + this.status;\n\t}", "public String toString() {\n\t\tNumberFormat formatter = NumberFormat.getPercentInstance();\n\t\tformatter.setMinimumFractionDigits(1);\n\n\t\treturn (\"\\nStudent Name: \" + lastName + \", \" + firstName + \"\\nWID: \" + wId + \"\\nOverall Pct: \"\n\t\t\t\t+ formatter.format(scorePercent) + \"\\nFinal Grade: \" + calcFinalGrade());\n\t}", "@Override\n public String toString()\n {\n return s;\n }", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n\tpublic abstract String toString ();", "@Override\n public String toString();", "@Override\n public String toString();", "@Override\n public String toString() {\n // Returns \"Name: {name} Grade: {grade}\"\n return String.format(\"Name: %s %s Grade: %d\", this.firstName, this.lastName, this.grade);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"[\" + firstName + \", \" + lastName\n\t\t\t\t+ \", ssn:\" + socSecurityNumber + \"]\";\n\t}", "@Override\n String toString();", "public String toString(){\n return \"The marks for student \" + registrationNumber + \"\" + \" are \" + Arrays.toString(getMarks()) + \"\" + \"their grade is \" + totalMark() + \".\" + \" This student passed: \" + passed() + \".\";\n }", "public String toString() { return \"Name: \" + firstName + ' ' + lastName + \"\\tGrade: \" + grade; }", "public String toString(){\r\n return super.toString() + \",\" +\r\n this.getAuthor() + \",\" +\r\n this.getRating();\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"学号\" + sid + \"名字\" + sname + \"性别\" + sex;\n\t}", "public String getStudentList()\n\t{\n\t\tString courseOutput = \"\";\n\t\tint studentNum = 1;\n\t\t\n\t\tfor(Student student: classRoll)\n\t\t{\n\t\t\tcourseOutput += studentNum + \". \" + student + \"\\n\";\t\n\t\t\t\t//adds a Student to the already created string one student at a time\n\t\t\tstudentNum++;\n\t\t}\n\t\t\n\t\tcourseOutput = getCourseName() + getCourseNumber() + getInstructor() + courseOutput;\n\t\treturn courseOutput;\n\t}", "public String toString() {\n return \"Name: \" + firstName + \" \" + lastName +\n \", Grade: \" + grade + \", Unique Student Number: \" + randomNumb;\n }", "@Override\n public String toString()\n {\n return this.toLsString();\n }", "@Override public String toString(){\n\t\treturn String.format(\"%s %s %s\", firstName, middleName, lastName);\n\t}", "public String toString()\r\n {\r\n return super.toString() + \", subject: \" + mySubject + \", salary: \"\r\n + mySalary;\r\n }", "public String getStudent(){\n\t\t\n\t\treturn this.student;\n\t}", "public String toString() ;", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "public String DisplayStudents()\n\t{\t\n\t\tString studentList= \"\";\n\t\tint i=1; //the leading number that is interated for each student\n\t\tfor(Student b : classRoll)\n\t\t{\n\t\t\tstudentList += i + \". \" + b.getStrNameFirst ( ) + \" \" + b.getStrNameLast () +\"\\n\";\n\t\t\ti++;\n\t\t}\n\t\treturn studentList= getCourseName() +\"\\n\" + getCourseNumber()+\"\\n\" + getInstructor()+ \"\\n\" + studentList;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "public String toString() {\n\t\t\r\n\t\treturn String.format(\"N%s. Title is %s, employer is %s,\"\r\n\t\t\t\t+ \"employee grade is %d, salary is %d\",super.toString(), getTitle(), employer, \r\n\t\t\t\temployeeGrade, salary);\r\n\t}", "public String toString()\n {\n return String.format(\"%s\\tRank: %s\\tSerialNumber: %s\"\n , super.toString()\n , getRank()\n , getSerialNumber());\n }", "public String toString() {\n\t\treturn \"ID: \" + id + \"\\nStudent Answer: \" + givenAnswer.toString() + \"\\n\";\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "public String toString()\n {\n String output = new String();\n output = \"The student's first name is \" + fname + \", and his/her last name is \" + lname + \". His/her grade is \" + grade + \" and his/her student number is \" + studentNumber + \".\";\n return output;\n }", "@Override\n public synchronized String toString() {\n return super.toString();\n }", "@Override\n public abstract String toString();", "@Override\n\tpublic String toString() {\n\t\treturn name + \" \" + age + \" \" + sex;\n\t}", "@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}", "public String toString() {\n \t\treturn super.toString();\n \t}", "public String toString(){\n return \"Name: \" +name+\", School Name: \"+school;\n }", "public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "public String toString(){\r\n String text = String.format(\"%-20s %s %-20s %d\", \"Undergrad Student: \", super.toString(), \"\\n\\tYear level:\", getYearLevel());\r\n return text;\r\n }", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "public abstract String toString();", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "public String toString()\r\n\t{\r\n\t\treturn (name+\" \"+age+\" \"+college+\" \"+course+\" \"+address+\" \");\r\n\t}" ]
[ "0.8150002", "0.8023176", "0.79044026", "0.78383946", "0.7825696", "0.76398057", "0.7630769", "0.75991446", "0.75803643", "0.7505548", "0.7478934", "0.7450032", "0.73834705", "0.73531055", "0.7309723", "0.730668", "0.7258415", "0.721573", "0.71593714", "0.71457535", "0.7091859", "0.7063869", "0.70279384", "0.7021673", "0.7006456", "0.697339", "0.691591", "0.69132316", "0.6852696", "0.6842449", "0.6842449", "0.68328154", "0.6768376", "0.6763465", "0.6732424", "0.6678418", "0.66736406", "0.6652989", "0.6652989", "0.6652989", "0.6652989", "0.6652989", "0.6652989", "0.6652989", "0.66341794", "0.6627815", "0.6627815", "0.6626139", "0.6594373", "0.65906364", "0.6589678", "0.6586717", "0.658425", "0.6573454", "0.65392554", "0.65341556", "0.6531327", "0.653078", "0.65256923", "0.6517912", "0.65054125", "0.6492761", "0.6485524", "0.6456447", "0.6456447", "0.6456447", "0.6456447", "0.6456447", "0.6456447", "0.64405006", "0.643945", "0.6430279", "0.6422663", "0.64164335", "0.6415439", "0.6407242", "0.64066255", "0.6397299", "0.6395904", "0.6394534", "0.6394042", "0.63896185", "0.63886285", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388234", "0.6388134", "0.63879395" ]
0.0
-1
toString method for printing elements
public String toString() { return "Element name:\t "+elementName+"\nAtomic number:\t "+atomicNum+"\nSymbol:\t\t "+symbol+"\nBoiling Point:\t "+boilingPoint+" K"+"\nMelting Point:\t "+meltingPoint+" K"+"\nDensity:\t " +density+" g/L"+"\nMolecular Weight: "+molecularWeight+" g/mole\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder stb = new StringBuilder();\r\n\t\tfor (int i = 0; i < elements.size(); i++) {\r\n\t\t\tstb.append(\"Element \" + i + \":\" + elements.get(i) + \" \");\r\n\t\t}\r\n\t\treturn stb.toString();\r\n\t}", "@Override\n public String toString() {\n return \"{\" + this.elementos[0] + \",\" + this.elementos[1] + \"}\";\n }", "public String toString()\n {\n return element.toString();\n }", "@Override\r\n\tpublic String toString();", "@Override\r\n\tpublic String toString(){\r\n\t\tString output = \"[ \";\r\n\t\tIterator<Object> it = iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tObject n = it.next();\r\n\t\t\toutput += n + \" \"; \r\n\t\t}\r\n\t\toutput += \"]\";\r\n\t\treturn output;\r\n\t}", "public String toString() ;", "@Override\r\n String toString();", "@Override\n\tpublic String toString();", "@Override\n\tString toString();", "@Override\n String toString();", "@Override\n String toString();", "public String toString() {\n\t}", "@Override\r\n public String toString();", "@Override public String toString();", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "@Override\n public String toString();", "@Override\n public String toString();", "@Override\n String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "public String toString();", "@Override String toString();", "@Override\n public final String toString() {\n return asString(0, 4);\n }", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "@Override\n\tpublic abstract String toString ();", "@Override\n\tpublic String toString(){\n\n\t}", "@Override\n\tpublic abstract String toString();", "public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}", "public String toString() {\n\t\t\tString result = \"\";\n\t\t\tif (head == null) {\n\t\t\t\treturn result+\"\\n\";\n\t\t\t}\n\t\t\tresult = result + head.getValue();\n\t\t ElementDPtr temp = head.getNext();\n\t\t\twhile (temp != null) {\n\t\t\t\tresult = result + \"\\n\" + temp.getValue();\n\t\t\t\ttemp = temp.getNext();\n\t\t\t}\n\t\t\treturn result + \"\";\n\t\t}", "@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "@Override\n public abstract String toString();", "public String toString() {\n \t\treturn super.toString();\n \t}", "public String toString() { return stringify(this, true); }", "public String toString() {\r\n return DOM2Writer.nodeToString((Node) element);\r\n }", "@Override\n public String toString() {\n StringBuilder string = new StringBuilder();\n string.append(\"size=\").append(size).append(\", [\");\n for (int i = 0; i < size; i++) {\n if (i != 0) {\n string.append(\", \");\n }\n\n string.append(elements[i]);\n\n//\t\t\tif (i != size - 1) {\n//\t\t\t\tstring.append(\", \");\n//\t\t\t}\n }\n string.append(\"]\");\n return string.toString();\n }", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "public String toString() { return \"\"; }", "public String toString() { return \"\"; }", "@Override\r\n\tpublic String toString() {\r\n\t\tString result = \"\";\r\n\t\tif (!this.isEmpty()) {\r\n\t\t\tfor (ListNode<E> iter = this.first(); iter != null; iter = iter.next) {\r\n\t\t\t\tresult += iter + \", \";\r\n\t\t\t}\r\n\t\t\tresult += \"\\n\";\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "public String toString() {\n return toDisplayString();\n }", "@Override\n public String toString(){\n return toString(false);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}", "@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}", "public String toString(){\r\n\t DoubleLinkedSeq clone = new DoubleLinkedSeq(); \r\n\t clone = this.clone();\r\n\t String elements = \"{\";\r\n\t for(clone.cursor = head; clone.cursor != null; clone.cursor = clone.cursor.getLink()){\r\n\t\t elements = elements + (clone.cursor.getData() + \",\"); \r\n\t }\r\n\t \r\n\t elements = elements + \")\";\r\n\t \r\n\t return elements; \r\n }", "public String toString() {\t\t\t\t\t\r\n\t\treturn super.toString();\r\n\t}" ]
[ "0.8311141", "0.8268132", "0.81375873", "0.80876106", "0.80804247", "0.8029597", "0.8026954", "0.7987256", "0.79807544", "0.79540324", "0.79540324", "0.79496306", "0.7916548", "0.7878071", "0.78589994", "0.7815526", "0.7815526", "0.7788681", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.77862155", "0.76998943", "0.76911205", "0.76738304", "0.76312435", "0.76312435", "0.76312435", "0.76312435", "0.76312435", "0.76312435", "0.7630017", "0.7628913", "0.76183456", "0.76077753", "0.7583583", "0.75814897", "0.7576929", "0.75688493", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.7549509", "0.75494754", "0.75307435", "0.7526465", "0.7526465", "0.7526465", "0.7526465", "0.7526465", "0.7526465", "0.7526465", "0.752047", "0.7513419", "0.7499618", "0.7498845", "0.7497951", "0.7476515", "0.7476515", "0.74757147", "0.7475643", "0.7475587", "0.7475545", "0.74752873", "0.74675506", "0.746635", "0.7464521" ]
0.7684811
42
firing a pop up message if user clicks on already booked seat
@FXML private void selectSeat(MouseEvent e) { if (((Node) e.getSource()).getStyle() .equals("-fx-fill:#c9b3b3; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;")) { Alert alert = new Alert(AlertType.WARNING, "The seat " + ((Node) e.getSource()).getId() + " is already booked!", ButtonType.OK); alert.showAndWait(); if (alert.getResult() == ButtonType.OK) { alert.close(); } } else { // turning seat back to black if it is red - unselecting it if (((Node) e.getSource()).getStyle() .equals("-fx-fill:red; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;")) { ((Node) e.getSource()) .setStyle("-fx-fill:black; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;"); Main.getSelectedSeats().remove(((Node) e.getSource()).getId()); } // turning seat red if it is black - selecting it else { ((Node) e.getSource()) .setStyle("-fx-fill:red; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;"); Main.getSelectedSeats().add(((Node) e.getSource()).getId()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void onAddClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\t\r\n\t\t\tif(!chart.addStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"There are no seats available.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public void onSeatClick(Seat seat) {\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Booked\", 500).show();\n\t\t\t}", "private void bookSeats() {\n\t\tint numSeats;\n\n\t\tSystem.out.print(\"Please enter the number of seats to book: \");\n\t\tnumSeats = Integer.parseInt(sc.nextLine());\n\t\t\n\t\t// Reject attempt to book more seats than are available\n\t\tif (numSeats > coach.numSeatsAvailable()) {\n\t\t\tSystem.out.printf(\"Unable to book %d seats. Only %d available\\n\",\n\t\t\t\t\t\t\t\tnumSeats, coach.numSeatsAvailable());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Book each of the requested seats\n\t\tfor (int i = 0; i < numSeats; i++) {\n\t\t\tint seatPos;\n\t\t\tString seatType;\n\t\t\tboolean bookingResult;\n\t\t\tSystem.out.println(\"Seats purchased: \" + i);\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"Please enter the seat position to book: \");\n\t\t\t\tseatPos = Integer.parseInt(sc.nextLine());\n\t\t\t\tcoach.printCosts();\n\t\t\t\t// Validate the seat type\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.print(\"Please select a seat type: \");\n\t\t\t\t\tseatType = sc.nextLine();\n\t\t\t\t\tif (!seatType.equals(\"S\") && !seatType.equals(\"P\") && \n\t\t\t\t\t\t\t!seatType.equals(\"F\"))\n\t\t\t\t\t\tSystem.out.println(\"Must be one of S/P/F. Try again.\");\n\t\t\t\t} while (!seatType.equals(\"S\") && !seatType.equals(\"P\") && \n\t\t\t\t\t\t!seatType.equals(\"F\"));\n\n\t\t\t\t// Attempt to book the seat\n\t\t\t\tbookingResult = coach.bookSeat(seatPos, seatType);\n\t\t\t\tif (bookingResult == false)\n\t\t\t\t\tSystem.out.println(\"Seat position isn't available. Please try again\");\n\t\t\t} while (bookingResult == false);\n\t\t}\n\t\tcoach.printReceipt();\n\t}", "public boolean bookSeat() {\n // check if the flight is full\n if (isfull()) {\n return false;\n } else {\n // otherwise increase the number of booked seats\n this.bookedSeats += 1;\n return true;\n }\n }", "private void popReservationNotification(int row, int col, String name) {\n System.out.printf(\"Seat %d%s is successfully reserved for %s.\\n\",\n row, convertSeatColToString(col), name);\n }", "public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}", "public void chooseSeat(ActionEvent actionEvent) {\n for (int i = 0; i < 20; i++) {\n if (actionEvent.getSource().toString().trim().equals(seatsArray.get(i).toString().trim())) {\n if (chosenBtn != null)\n chosenBtn.setStyle(\"\"); //For changing the colour back to clear if they choose another seat\n this.chosenBtn = seatsArray.get(i);\n seatNum = this.chosenBtn.getId();\n seatsArray.get(i).setStyle(\"-fx-background-color: LIGHTBLUE\");\n }\n }\n }", "public void successfulReservation()\n {\n showToastMessage(getResources().getString(R.string.successfulReservation));\n }", "public void onYesButtonClicked() {\n changeAfterClientPick();\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n BookingLogin booking = new BookingLogin(accountType, user);\r\n booking.setVisible(true);\r\n }", "public static void updateTimeButtonClicked() {\n Occasion occasion = tableHoliday.getSelectionModel().getSelectedItem();\n\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n String success = OccasionCommunication.updateOccasion(occasion.getId(), occasion.getDate(), occasion.getOpenTime(),\n occasion.getCloseTime(), occasion.getBuilding().getId());\n if (success.equals(\"Successful\")) {\n alert.hide();\n } else {\n alert.setContentText(success);\n alert.showAndWait();\n }\n }", "public void holdSeat() {\n String seatNo = this.getSeatNo();\n this.setStatus(Status.HOLD);\n this.setHold(true);\n //call the db or service to hold the seat\n }", "public void confirmStudentUpdate(){\n\n String title =\"Confirm student information update\";\n String HeaderText = \"Confirm inserted data\";\n String ContentText = \"Are you sure you want to update this student's information?\";\n\n AlertHandler ah = new AlertHandler();\n\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n updateStudent();\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }", "@FXML\n private void bookSeat(MouseEvent e) throws IOException, GeneralSecurityException {\n\n if (Main.getSelectedSeats().size() == 0){\n throwAlert();\n return;\n }\n try {\n datePicker.getValue().equals(null);\n filmDropDownList.getValue().equals(null);\n timeDropDownList.getValue().equals(null);\n if (Main.isEmployee())\n customerDropDownList.getValue().equals(null);\n } catch(NullPointerException ex){ \t\t\n throwAlert();\n return;\n }\n\n Alert alert = new Alert(AlertType.CONFIRMATION, \"Do you want to proceed with the booking?\", ButtonType.YES, ButtonType.NO);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.NO) {\n alert.close();\n return;\n }\n else {\n // getting the latest booking id and incrementing by one\n int newBookingId = Main.getBookingList().size() + 1;\n // System.out.println(newBookingId);\n // System.out.println(customerDropDownList.getValue());\n\n for (int i = newBookingId; i < (newBookingId + Main.getSelectedSeats().size()); i++) {\n\n if(Main.isEmployee())\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"username\", Encryption.encrypt(customerDropDownList.getValue()));\n else\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"username\", Encryption.encrypt(Main.getCurrentUser().getUsername()));\n\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"date\", datePicker.getValue().toString());\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"seat\", Main.getSelectedSeats().get(i - newBookingId));\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"time\", timeDropDownList.getValue());\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"film\", filmDropDownList.getValue());\n Main.modifyJSONFile(\"bookingsJSON.txt\", Integer.toString(i), \"status\", \"booked\");\n }\n\n Main.resetBookingList();\n Main.readJSONFile(\"bookingsJSON.txt\");\n\n if (!Main.isEmployee()){\n SceneCreator.launchScene(\"/scenes/BookingSummaryScene.fxml\");\n Main.getStage().centerOnScreen();\n } else {\n Alert alert1 = new Alert(AlertType.INFORMATION, \"You have completed the booking for \" + customerDropDownList.getValue() + \"!\", ButtonType.OK);\n alert1.showAndWait();\n if(alert1.getResult() == ButtonType.OK) {\n alert1.close();\n SceneCreator.launchScene(\"/scenes/ManageBookingsScene.fxml\");\n }\n }\n }\n }", "public void cancelSeat() {\n this.bookedSeats = this.bookedSeats - 1;\n }", "void issuedClick(String item);", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message!\", Toast.LENGTH_SHORT).show();\n\n }", "public void seal();", "public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }", "@OnMessage\n public void onMessage(Session session, String msg, @PathParam(\"movieId\") int movieId) {\n boolean[][] movieSeats = getMovieSeats(movieId);\n\n if (msg.startsWith(\"book \")) {\n // a booking request from this user\n // extract seat index\n int seatIndex = Integer.parseInt(msg.substring(5));\n\n // identify its row and column in the booking matrix\n int row = seatIndex / movieSeats[0].length;\n int col = seatIndex % movieSeats[0].length;\n System.out.println(\"row \" + row);\n System.out.println(\"col \" + col);\n // set the status of this seat to be booked\n movieSeats[row][col] = true;\n\n // notify all users connected to this movie session\n // that this book has been booked\n for (Session openSession : session.getOpenSessions()) {\n if ((Integer) openSession.getUserProperties().get(\"movieId\") != movieId) {\n continue;\n }\n try {\n openSession.getBasicRemote().sendText(\"booked \" + seatIndex);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }\n\n }", "public void actionPerformed(ActionEvent e) {\r\n JTextField ownerTf;\r\n String mes;\r\n\r\n String record[] = getRecordOnPan();\r\n\r\n try {\r\n int match[] = data.find(record);\r\n \r\n if (match.length > 1) {\r\n updateStatus(\"More than one match record.\");\r\n return;\r\n } else if (match.length == 0) {\r\n updateStatus(\"Record not found.\");\r\n return;\r\n }\r\n \r\n ownerTf = new JTextField();\r\n ownerTf.setText(record[5]);\r\n mes = \"Enter customer id\";\r\n \r\n int result = JOptionPane.showOptionDialog(\r\n frame, new Object[] {mes, ownerTf},\r\n \"Booking\", JOptionPane.OK_CANCEL_OPTION,\r\n JOptionPane.PLAIN_MESSAGE,\r\n null, null, null);\r\n\r\n if (result == JOptionPane.OK_OPTION) {\r\n record[5] = ownerTf.getText();\r\n bc.handleUpdateGesture(match[0], record);\r\n updateStatus(\"Subcontractor booked.\");\r\n }\r\n } catch (Exception ex) {\r\n updateStatus(ex.getMessage());\r\n }\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (filmTable.getSelectedRow()!=-1) {\n\t\t\t\t\tSeatFrame seatFrame = new SeatFrame(plays.get(filmTable.getSelectedRow()),filmTable);\n\t\t\t\t\tseatFrame.setLocationRelativeTo(null);\n\t\t\t\t\tseatFrame.setVisible(true);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this\");\n }", "public void actionOffered();", "String reserveSeats(String seatHoldId, String customerEmail) throws BookingNotAvailableException;", "private void checkSold(JComponent parent) {\n if (itemSelected.isSold()) {\n auctionItemList.removeItem(itemSelected);\n userItemList.removeItem(itemSelected);\n playSound();\n JOptionPane.showMessageDialog(parent, \"Congratulations on your purchase!\");\n updateJList();\n scrollPane.setViewportView(list);\n updateLabels();\n } else {\n JOptionPane.showMessageDialog(parent, \"Bid placed on \" + itemSelected.getItemName() + \"!\");\n currentBidLabel.setText(\"Current bid: $\" + itemSelected.getCurrentBid());\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n setOnVacationOk(atc, guiD, sm);\n }", "@Override\n public void onSureClick(String value) {\n tenPayPopWindow.dismiss();\n checkPresenterImpl.addTenPayPayment(cashierResult.bill.unpaid, value);\n }", "@Override\n\tpublic boolean checkSeatsForSumAvailableDAO(EventSignUp e) {\n\t\treturn false;\n\t}", "private void notifyStakeholder(){\n }", "@Then(\"user clicks the “Book” button for the “Men's Haircut” service\")\n\tpublic void user_clicks_the_Book_button_for_the_Men_s_Haircut_service() {\n\t\tservice=consumerPage.serviceBeforeSelection.getText();\t\n\t\t\n\t\t//service price is being saved before the selection\n\t\tmensHaircutPrice= consumerPage.mensHaircutPrice.getText();\n\t\tconsumerPage.bookMensHaircutButton.click();\n\t}", "private void bust() {\n //Dialog box pop-up\n JOptionPane.showMessageDialog(this, this.getPlayerName() + \" busted with a value of: \" + this.getValue(), \"BUSTED!\", JOptionPane.INFORMATION_MESSAGE);\n busted = true; //Hand busted\n }", "@Override\n public void onClick(View view) {\n if(sesh.get(0).studentCin.length() == 0 ){\n showInputDialog();\n }\n else if(sesh.get(0).studentCin.length() >0){\n Toast.makeText(getContext(),\"Unable to cancel - Session in progress\",Toast.LENGTH_SHORT).show();\n }\n }", "public void clickYes ();", "public void actionPerformed(ActionEvent arg0) \n\t\t\t{\n\t\t\t\tatten = 1;\n\t\t\t\te.overrideStatus(marker, atten);\n\t\t\t\tgr.respring();\n\t\t\t\ttry {\n\t\t\t\t\te.save();\n\t\t\t\t\tnew RestartToSaveChanges().setVisible(true);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t//PrintServ.exc.add(e1);\n\t\t\t\t\tnew Errors.AMDNCError(\n\t\t\t\t\t\t\tErrors.EHAND.Type.THROWN, //TYPE\n\t\t\t\t\t\t\t\"AttendanceOptions.java \"//CLASS\n\t\t\t\t\t\t\t+ \"AttendanceOptions(Event e, long marker, GetReport gr) \"//METHOD\n\t\t\t\t\t\t\t+ \"btnAbsentexcused.ActionListener\"//<<EXTRA>>\n\t\t\t\t\t\t\t, \"Unable to save Event E\" //DESCRIPTION\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tao.dispose();\n\t\t\t}", "public void actionPerformed(ActionEvent event)\n\t\t\t\t\t{\n\t\t\t\t\t\tint row = Integer.parseInt(rowField.getText());\n\t\t\t\t\t\tint column = Integer.parseInt(columnField.getText());\n\t\t\t\t\t\tif(chart.isFull() == false){\n\t\t\t\t\t\t\tif(column>0 && column<5 && row>0 && row<51){\n\t\t\t\t\t\t\t\trowField.setText(\"\");\n\t\t\t\t\t\t\t\tcolumnField.setText(\"\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(chart.checkSeat(column-1,row-1) == true){\n\t\t\t\t\t\t\t\t\tchart.setSeat(column-1, row-1, 3);\n\t\t\t\t\t\t\t\t\tSystem.out.println(column + \",\" + row + \" is booked by: 3\");\n\t\t\t\t\t\t\t\t\tpendingField.setText(\"(\" + column + \",\" + row + \") has been booked\");\n\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\tpendingField.setText(\"(\" + column + \",\" + row + \") is taken\");\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\trowField.setText(\"\");\n\t\t\t\t\t\t\t\tcolumnField.setText(\"\");\n\t\t\t\t\t\t\t\tpendingField.setText(\"(\" + column + \",\" + row + \") doesn't exist\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tpendingField.setText(\"Plane is full!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private void popCancellationNotification(Passenger p) {\n Seat s = p.getSeat();\n int row = s.getRow();\n int col = s.getCol();\n System.out.printf(\"Successfully canceled seat %d%s for %s.\\n\",\n row, convertSeatColToString(col),p.getName());\n }", "public void actionPerformed(ActionEvent arg0) \n\t\t\t{\n\t\t\t\tatten = 5;\n\t\t\t\te.overrideStatus(marker, atten);\n\t\t\t\ttry {\n\t\t\t\t\te.save();\n\t\t\t\t\tnew RestartToSaveChanges().setVisible(true);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t//PrintServ.exc.add(e1);\n\t\t\t\t\tnew Errors.AMDNCError(\n\t\t\t\t\t\t\tErrors.EHAND.Type.THROWN, //TYPE\n\t\t\t\t\t\t\t\"AttendanceOptions.java \"//CLASS\n\t\t\t\t\t\t\t+ \"AttendanceOptions(Event e, long marker, GetReport gr) \"//METHOD\n\t\t\t\t\t\t\t+ \"btnAbsentunexcused.ActionListener\"//<<EXTRA>>\n\t\t\t\t\t\t\t, \"Unable to save Event E\" //DESCRIPTION\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tgr.respring();\n\t\t\t\tao.dispose();\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n manualSuit = which;\n }", "public void chooseTicket(Customer customer,int seat,boolean isPackage){\n\t\tthis.tickets.get(seat).setCustomer(customer);\n\t\tcustomer.addTicket(this.tickets.get(seat),isPackage);\n\t}", "private void placeBid() {\r\n System.out.println(\"Would you like to place a bid? (Y/N)\");\r\n bidMenu();\r\n }", "@FXML\n\tvoid mainMenuBtnClicked(ActionEvent event) {\n\t\t// if submitted before exam time ends ask the user if he sure of that\n\t\tif (flag1 && flag2) {\n\t\t\tAlert alert = new Alert(AlertType.CONFIRMATION);\n\t\t\talert.setTitle(\"Warning\");\n\t\t\talert.setHeaderText(\"Leaving the exam means you submitting a blank exam\");\n\t\t\talert.setContentText(\"Are you sure you want to do that?\");\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\tif (result.get() == ButtonType.OK) {\n\t\t\t\tsummbitBlank();\n\t\t\t\ttry {\n\t\t\t\t\tFXMLutil.swapScene(event, window.StudentMenu.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tFXMLutil.swapScene(event, window.StudentMenu.toString());\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "public void BookRoom() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Booknow);\r\n\r\n\t\tThread.sleep(2000);\r\n\t\tif (Booknow.isEnabled()) \r\n\t\t{\r\n\t\t\tBooknow.isDisplayed();\r\n\t\t\tJavascriptexecutor(Booknow);\r\n\r\n\t\t\t//System.out.println(\"Clicked on Booknow\");\r\n\t\t\tSeleniumRepo.waitForPageLoaded(); \r\n\t\t\tExplicitWait(verify_Headingrooms);\r\n\t\t\tlogger.info(\"Clicked on Booknow\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Booknow\");\r\n\r\n\t\t} else \r\n\t\t{\r\n\t\t\t//System.out.println(\"BookNow button not found\");\r\n\t\t\tlogger.error(\"BookNow button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"BookNow button not found\");\r\n\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"cigarette\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Cigarette Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Cigarette Not Inserted\", Toast.LENGTH_LONG).show();\n }", "private void setMaxSeatDialog(final String tableTag) {\n LayoutInflater li = LayoutInflater.from(getActivity());\n final View promptsView = li.inflate(R.layout.set_max_seat_layout, null);\n\n promptsView.findViewById(R.id.textView);\n Spinner mSetMaxSeatSpecificTable = promptsView.findViewById(R.id.spinner);\n\n // drop down adapter:\n ArrayAdapter<String> myAdapter = new ArrayAdapter<String>(getActivity(),\n android.R.layout.simple_list_item_1, getResources().getStringArray(R.array.max_seat));\n myAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n mSetMaxSeatSpecificTable.setAdapter(myAdapter);\n\n\n final AlertDialog.Builder alert = new AlertDialog.Builder(getActivity(), R.style.AlertDialogTheme);\n alert.setCancelable(false); // doesn't disappear by click out side.\n alert.setView(promptsView);\n\n final AlertDialog dialog = alert.create();\n\n // negative_btn is the cancel button.\n Button mCancelBtn = promptsView.findViewById(R.id.cancel);\n mCancelBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n dialog.dismiss(); // close dialog;\n }\n });\n\n // positive_btn is the ok button.\n Button mOkBtn = promptsView.findViewById(R.id.ok);\n mOkBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n String numOfSeats = mSetMaxSeatSpecificTable.getSelectedItem().toString();\n\n mPresenter.changeSeats(numOfSeats, tableTag);\n\n dialog.dismiss(); // close dialog.\n }\n });\n\n dialog.show();\n }", "public void inputSeat() {\n\t\t\tDatabase db=null;\n\t\tSystem.out.println(\"number of seat you want:\");\n\t\tint number=sc.nextInt();\n\t\tsc.nextLine();\n\t\t//do {\n\t\t\tSystem.out.println(\"enter block and then number of the seat\");\n\t\t\tfor(int i=0;i<number;i++)\n\t\t\t{\n\t\t\t\tchar block=sc.next().charAt(0);\n\t\t\t\tint seatn=sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tint check=Isbooked(block,seatn-1);\n\t\t\t\tif(check==0) \n\t\t\t\t{\n\t\t\t\t\tString x=block+\"\"+seatn;\n\t\t\t\t\tseatNo.add(x);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdb = new Database();\n\t\t\t\t\t\tdb.addseatinfo(x,Showtime);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Sorry the seat is booked already try another one!!\");\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(seatNo+\" total price =\"+(number*price));\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(mainscreen, \"Created by Saadia Aman and Ammar Israr\");\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\t\tMainActivity.nowcontext);\n\t\n\t\t\t\t// set title\n\t\t\t alertDialogBuilder.setTitle(\"Share on FaceBook\");\n\t\n\t\t\t\t// set dialog message\n\t\t\t\t\n\t\t\t\talertDialogBuilder\n\t\t\t\t\t.setMessage(\"You will share it on FaceBook!\")\n\t\t\t\t\t.setCancelable(false)\n\t\t\t\t\t.setPositiveButton(\"Yes\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t// if this button is clicked, close\n\t\t\t\t\t\t\t// current activity\n\t\t\t\t\t\t\t fbsharecode();\n\t\t\t\t\t\t}\n\t\t\t\t\t })\n\t\t\t\t\t.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t// if this button is clicked, just close\n\t\t\t\t\t\t\t// the dialog box and do nothing\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\n\t\t\t\t\t// create alert dialog\n\t\t\t\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\n\t\t\t\t\t// show it\n\t\t\t\t\talertDialog.show();\n\t\t\t\t\tmsharePopupWindow.dismiss(); \n\t\t\t\t\tisup=false;\n\t\t\t\n\t\t\t\t}", "public void doPositiveClick() {\n\n Note_database db = new Note_database(calendar_main.this);\n\n Event_SQLite event = new Event_SQLite(title, date2, time2);\n\n db.add_row_event_2(event);\n\n finish();\n\n Log.i(\"FragmentAlertDialog\", \"Positive click!\");\n }", "@Override\n public void onClick(View v) {\n\n\n Toast.makeText(MainSOSActivity.this, \"Stay Safe and Confirm the Message! Your emergnecy conctacts will be notified!\", Toast.LENGTH_SHORT).show();\n\n }", "public void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(\n\t\t\t\t\tMainActivity.nowcontext);\n\t\n\t\t\t\t// set title\n\t\t\t alertDialogBuilder.setTitle(\"Share on FaceBook\");\n\t\n\t\t\t\t// set dialog message\n\t\t\t\t\n\t\t\t\talertDialogBuilder\n\t\t\t\t\t.setMessage(\"You will share it on FaceBook!\")\n\t\t\t\t\t.setCancelable(false)\n\t\t\t\t\t.setPositiveButton(\"Yes\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t// if this button is clicked, close\n\t\t\t\t\t\t\t// current activity\n\t\t\t\t\t\t\t fbsharecode();\n\t\t\t\t\t\t}\n\t\t\t\t\t })\n\t\t\t\t\t.setNegativeButton(\"No\",new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\t// if this button is clicked, just close\n\t\t\t\t\t\t\t// the dialog box and do nothing\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\n\t\t\t\t\t// create alert dialog\n\t\t\t\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\n\t\t\t\t\t// show it\n\t\t\t\t\talertDialog.show();\n\t\t\t\t\tmsharePopupsmallWindow.dismiss(); \n\t\t\t\t\tisup=false;\n\t\t\t\n\t\t\t\t}", "private void gameOverAlert() {\n \tAlert alert = new Alert(AlertType.INFORMATION);\n \t\n \talert.setTitle(\"Game Over!\");\n \talert.setHeaderText(\"You Did Not Get A New High Score!\\nYour High Score: \" + level.animal.getPoints());\n \talert.setContentText(\"Try Again Next Time!\");\n \talert.show();\n\t}", "protected EventHandler<MouseEvent> activateBoat() {\n EventHandler<MouseEvent> mousePressHandler = new EventHandler<MouseEvent>() { \n @Override\n public void handle(MouseEvent event) {\n if(!isValidate) {\n if (event.getButton() == MouseButton.PRIMARY) {\n //If the user has clicked in the window and no other boat is already selected\n if (activeBoat == null) {\n Rectangle myRectangle =(Rectangle) event.getSource();\n BoatDrawing myboat = boatMap.get(myRectangle);\n activeBoat = myboat.setActiveBoat(boatMap);\n activeBoat.setPlaced(false);\n logMsg(EXPLAIN_PLACEMENT);\n }\n\n }\n }\n }\n };\n return mousePressHandler;\n \n }", "@Override\n\tpublic int updateSumSeatsAvailableEvent(EventSignUp e) {\n\t\treturn 0;\n\t}", "public boolean bookTicket(String movieName, String date, String UID){\n\t\tPreparedStatement psSeats = null;\n\t\tPreparedStatement psReserve = null;\n\t\t\n\t\t//SQL strings deduct 1 from value freeSeats and insert new reservation entry\n\t\tString deductSeat = \"UPDATE Performances \" + \"SET freeSeats = (freeSeats - 1) \" + \"WHERE movieName = ? and theDate = ?\";\n\t\tString makeReservation = \"INSERT into Reservations(perdate, movieName, userName) values(?, ?, ?)\";\n\t\tif(isReserved(movieName, date, UID)){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(isUser(UID) && (remainingSeats(movieName, date) > 0)){\n\t\t\ttry {\n\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\t\n\t\t\t\tpsSeats = conn.prepareStatement(deductSeat);\t\n\t\t\t\tpsReserve = conn.prepareStatement(makeReservation);\n\t\t\t\t\n\t\t\t\tpsReserve.setString(1, date);\n\t\t\t\tpsReserve.setString(2, movieName);\n\t\t\t\tpsReserve.setString(3, UID);\n\t\t\t\t\n\t\t\t\tpsSeats.setString(1, movieName);\n\t\t\t\tpsSeats.setString(2, date);\n\t\t\t\t\n\t\t\t\tpsSeats.executeUpdate();\n\t\t\t\tpsReserve.executeUpdate();\n\t\t\t\t\n\t\t\t\t\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\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tif(psSeats != null) psSeats.close(); // returnerar psSeats null?\n\t\t\t\t\tif(psReserve != null) psReserve.close();\n\t\t\t\t\tconn.setAutoCommit(true);\n\t\t\t\t} catch(SQLException e2) {\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void doPositiveClick() {\n\t\t//Shows message that contact added to database. \n\t\tToast.makeText(this, \"Контакт сохранен\", Toast.LENGTH_SHORT).show();\n\t\taddRecord();\n\t}", "public void alertAlreadySolved() {\n\t\tthis.alert(\"ERROR\",\"Game already solved\",AlertType.WARNING);\n\t}", "public void actionPerformed(ActionEvent arg0) \n\t\t\t{\n\t\t\t\tatten = 0;\n\t\t\t\te.overrideStatus(marker, atten);\n\t\t\t\ttry {\n\t\t\t\t\te.save();\n\t\t\t\t\tnew RestartToSaveChanges().setVisible(true);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t//PrintServ.exc.add(e1);\n\t\t\t\t\tnew Errors.AMDNCError(\n\t\t\t\t\t\t\tErrors.EHAND.Type.THROWN, //TYPE\n\t\t\t\t\t\t\t\"AttendanceOptions.java \"//CLASS\n\t\t\t\t\t\t\t+ \"AttendanceOptions(Event e, long marker, GetReport gr) \"//METHOD\n\t\t\t\t\t\t\t+ \"btnAbsentunexcused.ActionListener\"//<<EXTRA>>\n\t\t\t\t\t\t\t, \"Unable to save Event E\" //DESCRIPTION\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tgr.respring();\n\t\t\t\tao.dispose();\n\t\t\t}", "private void notifyMissedConfirmations() {\n try {\n JavaSpace05 js = SpaceUtils.getSpace();\n U1467085Bid templateBid = new U1467085Bid();\n templateBid.bidderUserName = UserSession.getInstance().username;\n //find all bids from the user\n MatchSet allMyAds = js.contents(Collections.singleton(templateBid), null, SpaceUtils.TIMEOUT, Integer.MAX_VALUE);\n boolean foundAny = false;\n for (U1467085Bid i = (U1467085Bid) allMyAds.next(); i != null; i = (U1467085Bid) allMyAds.next()) {\n try {\n //check if confirmation was written for that bid\n U1467085BidConfirmation confirmationTemplate = new U1467085BidConfirmation();\n confirmationTemplate.bidId = i.id;\n U1467085BidConfirmation confirmation = (U1467085BidConfirmation) js.readIfExists(confirmationTemplate, null, SpaceUtils.TIMEOUT);\n U1467085AdBid adTemplate = new U1467085AdBid();\n adTemplate.id = i.adId;\n U1467085AdBid ad = (U1467085AdBid) js.readIfExists(adTemplate, null, SpaceUtils.TIMEOUT);\n if (confirmation != null && ad != null && ad.verifySignature(AddressBook.getUserKey(ad.ownerUsername)) &&\n confirmation.verifySignature(AddressBook.getUserKey(ad.ownerUsername)) &&\n i.verifySignature(UserSession.getInstance().pubKey)) {\n String message = \"Your bid of \" + String.format(\"%.2f$\", (float) i.bid / 100) + \" on item: \" + ad.title + \" has won.\";\n Platform.runLater(() -> observableNotificationList.add(message));\n foundAny = true;\n SpaceUtils.cleanAdRemove(ad, 3);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n //Avoid duplicate popup notifications but showing a single notification if any confirmations\n //were found\n if (foundAny) {\n NotificationUtil.showNotification(\"Some bids won while you were away.\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void actionPerformed(ActionEvent arg0) \n\t\t\t{\n\t\t\t\tatten = 2;\n\t\t\t\te.overrideStatus(marker, atten);\n\t\t\t\tgr.respring();\n\t\t\t\t//PrintServ.print(\"Wtf\");\n\t\t\t\ttry {\n\t\t\t\t\te.save();\n\t\t\t\t\tnew RestartToSaveChanges().setVisible(true);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t//PrintServ.exc.add(e1);\n\t\t\t\t\tnew Errors.AMDNCError(\n\t\t\t\t\t\t\tErrors.EHAND.Type.THROWN, //TYPE\n\t\t\t\t\t\t\t\"AttendanceOptions.java \"//CLASS\n\t\t\t\t\t\t\t+ \"AttendanceOptions(Event e, long marker, GetReport gr) \"//METHOD\n\t\t\t\t\t\t\t+ \"btnPresent.ActionListener\"//<<EXTRA>>\n\t\t\t\t\t\t\t, \"Unable to save Event E\" //DESCRIPTION\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tao.dispose();\n\t\t\t}", "void printTicketSeat(String soldSeat)\n {\n\tSystem.out.println(hostName + \",\" + threadName + \" got one ticket\");\n\n }", "public synchronized void mouseClicked(MouseEvent event) {\n int x = event.getX(), y = event.getY();\n String loc = location(x, y);\n if ((STOCKLEFT <= x && x < STOCKRIGHT)\n && (WASTETOP <= y && y < WASTEBOTTOM)) {\n _game.stockToWaste();\n }\n updateScore();\n _display.repaint();\n win();\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tif (game.getPlayerID() == -1)\n\t\t\t{\n\t\t\t\tclearMsgArea();\n\t\t\t\tgame.makeConnection();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprintMsg(\"You're already in the game.\\n\");\n\t\t\t}\n\t\t\t/*\n\t\t\tBigTwoDeck ndeck = new BigTwoDeck();\n\t\t\tndeck.shuffle();\n\t\t\tgame.start(ndeck);\n\t\t\t*/\n\n\t\t}", "private void GeefFoutboodschap(String s) {\n new AlertDialog.Builder(this)\n .setTitle(\"Onbekende kode\")\n .setMessage(\n \"Arduino heeft een onbekende kode \" + s\n + \" opgestuurd. Het programma wordt gestopt \")\n .setPositiveButton(android.R.string.yes,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int which) {\n finish();\n }\n }).show();\n }", "public void mouseClicked(MouseEvent event){\n if (event.getClickCount() == 2) {\r\n //call bookListMethod\r\n bookListMethod();\r\n }\r\n }", "@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"soft_drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Soft Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Soft Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }", "public void onClick(DialogInterface dialog, int id) {\n Toast.makeText(getApplicationContext(), \"Holidays accepted\", Toast.LENGTH_SHORT).show();\n }", "@Override\r\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tMaterialToast.fireToast(k5);\r\n\t\t\t\t\r\n\t\t\t\tLayout1 l1=new Layout1();\r\n\t\t\t\tString u=l1.t1.getText();\r\n\t\t\t\t//MaterialToast.fireToast(u);\r\n\t\t\t\tString p=t1.getText();\r\n\t\t\t\t//MaterialToast.fireToast(p);\r\n\t\t\t\tDash2 d=new Dash2(p);\r\n\t\t\t\tRootPanel.get(\"a\").clear();\r\n\t\t\t\tRootPanel.get(\"b\").clear();\r\n\t\t\t\tRootPanel.get(\"a\").add(new Dash1());\r\n\t\t\t\ta2.UserRequest(p,k5,new AsyncCallback<String>() {\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tWindow.alert(\"Thank you for selecting\");\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tToast.makeText(getContext(), \"告辞!\",\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t}", "@Override\n public void onSureClick(final String pwd) {\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }", "public void checkAlert() {\n try {\n wait(1000);\n driver.switchTo().alert();\n driver.findElement(By.xpath(\"//*[@title='No, thanks']\")).click();\n } catch (Exception e) {\n // Do nothing\n }\n }", "private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}", "static void feedPet() {\r\n\t\tJOptionPane.showMessageDialog(null, \"Your \" + pet + \" is happy and full.\");\r\n\t\thappinessLevel+=3;\r\n\t}", "public void chooseSeat() {\n\t\tboolean correctSeat = false;\n\t\twhile (correctSeat = false) {\n\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tseat[i][j] = \"#\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String[] a : seat) {\n\t\t\t\tfor (String i : a) {\n\t\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Choose your seat by entering the number of the desired row followed by desired column: \");\n\t\t\tint row = keyboard.nextInt();\n\t\t\tint column = keyboard.nextInt();\n\t\t\tseat[row][column] = \"O\";\n\t\t\tSystem.out.println(\"/n/n\");\n\n\t\t\tfor (String[] a : seat) {\n\t\t\t\tfor (String i : a) {\n\t\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\"/nIs this the seat indicated by an 'O' the seat that you wanted?\");\n\t\t\tSystem.out.println(\"/nEnter 1 for yes or 2 for no: \");\n\t\t\tint answer = keyboard.nextInt();\n\n\t\t\tif(answer == 1){\n\t\t\t\tSystem.out.println(\"Your seat is in section \" + row + \" seat \" + column + \"/n\");\n\t\t\t\tcorrectSeat = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"/nYou may now select your seat again./n\");\n\t\t\t\tcorrectSeat = false;\n\t\t\t}\n\n\t\t}\n\t}", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n Toast.makeText(getApplicationContext(),\"MineSweeper!!\",\n Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View view) {\n boolean isInserted = app_db.insertHabit(\n app_utils.getCurrentDateInteger(),\n app_utils.getCurrentTimestampForSQLite(),\n \"drink\"\n );\n if (isInserted)\n Toast.makeText(MainActivity.this, \"Drink Inserted\", Toast.LENGTH_LONG).show();\n else\n Toast.makeText(MainActivity.this, \"Drink Not Inserted\", Toast.LENGTH_LONG).show();\n }", "public void clickBookCall(){\r\n\t\tclickXPath(BOOKCALL_XPATH);\r\n\t\tReporter.log(\"Book call was clicked <br>\", true);\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (mPop.isShowing()) {\n\t\t\t\t\tmPop.dismiss();\n\t\t\t\t} else {\n\t\t\t\t\tmPop.showAsDropDown(numberSeat, 0, -50);\n\t\t\t\t}\n\t\t\t}", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n\n }", "public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n itemPosition = position;\n // ListView Clicked item value\n String itemValue = (String) listView.getItemAtPosition(position);\n if(check.equals(\"true\")){\n if(MainActivity.bm.checkBooked(admin, itemValue)){\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this)\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"You already booked this itinerary: \"+\"\\n\" + itemValue)\n .setNegativeButton( \"back\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n else{\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this )\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"Do you want book this itinerary:\"+\"\\n\" + itemValue)\n .setPositiveButton( \"YES\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"AlertDialog\", \"Positive\");\n MainActivity.bm.bookItinerary(admin, itineraries.get(itemPosition));\n //save the client info\n try {\n MainActivity.saveFileBook();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // modify the fm\n for(Flight flight:itineraries.get(itemPosition).itinerary){\n MainActivity.fm.getFlight(flight.flightNum).bookFlight();\n }\n try {\n MainActivity.saveFileFlight();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Intent intent = new Intent(\n Search_Itinerary_ResultActivity.this,\n View_Booked_ItinerariesActivity.class);\n intent.putExtra(MainActivity.USER, email);\n intent.putExtra(MainActivity.CHECK_ADMIN, check);\n startActivity(intent);\n }\n })\n .setNegativeButton( \"NO\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n\n }\n else{\n if(MainActivity.bm.checkBooked(client, itemValue)){\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this)\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"You already booked this itinerary: \"+\"\\n\" + itemValue)\n .setNegativeButton( \"back\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n // Client\n else{\n new AlertDialog.Builder(Search_Itinerary_ResultActivity.this )\n .setTitle( \"BOOK ITINERARY\" )\n .setMessage( \"Do you want book this itinerary:\"+\"\\n\" + itemValue)\n .setPositiveButton( \"YES\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Positive\" );\n // if client able to book\n System.out.println(itemPosition);\n MainActivity.bm.bookItinerary(client, itineraries.get(itemPosition));\n //save the client info\n try {\n MainActivity.saveFileBook();\n } catch (ClassNotFoundException e) {\n\n e.printStackTrace();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n // modify the fm\n for(Flight flight:itineraries.get(itemPosition).itinerary){\n MainActivity.fm.getFlight(flight.flightNum).bookFlight();\n }\n try {\n MainActivity.saveFileFlight();\n } catch (ClassNotFoundException e) {\n\n e.printStackTrace();\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n Intent intent = new Intent(\n Search_Itinerary_ResultActivity.this,\n View_Booked_ItinerariesActivity.class);\n intent.putExtra(MainActivity.USER, email);\n intent.putExtra(MainActivity.CHECK_ADMIN, check);\n startActivity(intent);\n }\n })\n .setNegativeButton( \"NO\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Log.d( \"AlertDialog\", \"Negative\" );\n }\n } )\n .show();\n }\n }\n }", "@Override\r\n\tpublic void ticketing(User user, Seat seat, Performance pfm) {\n\t\t\r\n\t}", "@Then(\"^user clicks on amend booking$\")\n\tpublic void user_clicks_on_amend_booking() throws Throwable {\n\t \n\t\tamendBooking = new AmendBookingPage();\n\t\tamendBooking.amend();\n\t\t\n\t\t\n\t}", "@When(\"^I click on Book button$\")\n\tpublic void i_click_on_Book_button() throws Throwable {\n\t\tfs.selectBookOption();\n\t}", "public void actionPerformed(ActionEvent arg0) \n\t\t\t{\n\t\t\t\tatten = 3;\n\t\t\t\te.overrideStatus(marker, atten);\n\t\t\t\tgr.respring();\n\t\t\t\ttry {\n\t\t\t\t\te.save();\n\t\t\t\t\tnew RestartToSaveChanges().setVisible(true);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t//PrintServ.exc.add(e1);\n\t\t\t\t\tnew Errors.AMDNCError(\n\t\t\t\t\t\t\tErrors.EHAND.Type.THROWN, //TYPE\n\t\t\t\t\t\t\t\"AttendanceOptions.java \"//CLASS\n\t\t\t\t\t\t\t+ \"AttendanceOptions(Event e, long marker, GetReport gr) \"//METHOD\n\t\t\t\t\t\t\t+ \"btnLate.ActionListener\"//<<EXTRA>>\n\t\t\t\t\t\t\t, \"Unable to save Event E\" //DESCRIPTION\n\t\t\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tao.dispose();\n\t\t\t}", "public void DoGoToSeat() {\n\t\tcommand = Command.FollowWaiter;\n\t}", "public void openReserveSeat(){\n Intent intent = new Intent(this, ReserveSeatActivity.class);\n startActivity(intent);\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface arg0, int arg1) {\n// Toast.makeText(getApplicationContext(), \"User Is Not Wish To Exit\", Toast.LENGTH_SHORT).show();\n }", "@Override\n public void clickPositive() {\n meetingManager.undoConfirm(chosenTrade, chosenTrader);\n Toast.makeText(this, \"Successfully undo confirm\", Toast.LENGTH_SHORT).show();\n viewList();\n\n }", "@Override\n public void onClick(View view) {\n ArrayList<XeBuyt> listXeBuytWithAvailableSeats = XeBuytController.getInstance()\n .getListXeBuytByMaTuyenDuong(tuyenDuong.maTuyenDuong);\n\n // Because we haven't found out whether it has available seats or not so\n // we have to filter it out to return only buyts with available seats\n\n // Save to this, cool!!!\n SharedVariables.theListOfBusesThroughActivity = MainController.getInstance().\n getListXeBuytsWithAvailableSeats(listXeBuytWithAvailableSeats);\n\n Intent intent = new Intent(getContext(), FirstFunction_2_Activity.class);\n m_Context.startActivity(intent);\n }", "private void jButtonMessageActionPerformed(ActionEvent e)\n {\n \tif(bSupMessage)\n \t bSupMessage=false;\n \telse\n \t bSupMessage=true;\n \t\n \t\n }", "public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\n btn.setEnabled(false); //griser le bouton\n }", "@Override\n\tpublic boolean insert(Seats seat) \n\t{\n\t\tgetSession().saveOrUpdate(seat);\n\t\tSystem.out.println(\"admin \" + seat.getTime()+\" stored in the DB !!!\");\n\t\treturn true;\n\t}", "private void displaySaveSuccess() {\n\t\tString title = \"Event successfully save...\";\n\t\tString msg =\n\t\t\t\t\"To Do List: \" +txtSubject.getText()+ \n\t\t\t\t\"\\nhas been save....\";\n\t\tJOptionPane.showMessageDialog(\n\t\t\t\tnull, msg, title, JOptionPane.INFORMATION_MESSAGE);\n\t}", "public void acceptPopUp(WebDriver driver)\r\n\t{\n\t\tAlert alert=driver.switchTo().alert();\r\n\t\t\t\r\n\t\t//accept the alert\r\n\t\talert.accept();\r\n\t}", "private boolean hasSeating() {\n return getPassengers() < getSeats();\n }" ]
[ "0.6758962", "0.6744569", "0.64979637", "0.62860394", "0.60674036", "0.5846941", "0.5803901", "0.5745679", "0.5663188", "0.56472147", "0.5644295", "0.56222755", "0.5613107", "0.5596944", "0.55917037", "0.5587278", "0.55708015", "0.5563499", "0.55599374", "0.5559844", "0.5515974", "0.550896", "0.5502547", "0.5495681", "0.54760295", "0.54716897", "0.54673636", "0.5464394", "0.54253304", "0.54234517", "0.5403797", "0.5398152", "0.53912675", "0.5388323", "0.5378166", "0.5376568", "0.53734964", "0.53660685", "0.5363296", "0.53584015", "0.5350102", "0.5346319", "0.53423303", "0.53375876", "0.53364694", "0.533469", "0.5333416", "0.53333837", "0.533332", "0.5332389", "0.53320014", "0.5328729", "0.53272474", "0.53210205", "0.5319482", "0.5314354", "0.53082603", "0.5306711", "0.530134", "0.5294652", "0.5291145", "0.5290446", "0.5275264", "0.52700317", "0.5262109", "0.52564687", "0.5255138", "0.5252002", "0.5249916", "0.5244361", "0.52237505", "0.52232933", "0.5220846", "0.5219889", "0.52123535", "0.52113473", "0.52108043", "0.52074134", "0.52067477", "0.52021027", "0.5199391", "0.5199269", "0.51960826", "0.5190252", "0.51873887", "0.5182808", "0.5169536", "0.5168995", "0.5168657", "0.5166373", "0.5161932", "0.5161932", "0.516093", "0.51580864", "0.51563156", "0.5155196", "0.5151051", "0.5146003", "0.5145965", "0.5145449" ]
0.61656046
4
Method that gets called when a customer clicks on the book seat button to make a booking.
@FXML private void bookSeat(MouseEvent e) throws IOException, GeneralSecurityException { if (Main.getSelectedSeats().size() == 0){ throwAlert(); return; } try { datePicker.getValue().equals(null); filmDropDownList.getValue().equals(null); timeDropDownList.getValue().equals(null); if (Main.isEmployee()) customerDropDownList.getValue().equals(null); } catch(NullPointerException ex){ throwAlert(); return; } Alert alert = new Alert(AlertType.CONFIRMATION, "Do you want to proceed with the booking?", ButtonType.YES, ButtonType.NO); alert.showAndWait(); if(alert.getResult() == ButtonType.NO) { alert.close(); return; } else { // getting the latest booking id and incrementing by one int newBookingId = Main.getBookingList().size() + 1; // System.out.println(newBookingId); // System.out.println(customerDropDownList.getValue()); for (int i = newBookingId; i < (newBookingId + Main.getSelectedSeats().size()); i++) { if(Main.isEmployee()) Main.modifyJSONFile("bookingsJSON.txt", Integer.toString(i), "username", Encryption.encrypt(customerDropDownList.getValue())); else Main.modifyJSONFile("bookingsJSON.txt", Integer.toString(i), "username", Encryption.encrypt(Main.getCurrentUser().getUsername())); Main.modifyJSONFile("bookingsJSON.txt", Integer.toString(i), "date", datePicker.getValue().toString()); Main.modifyJSONFile("bookingsJSON.txt", Integer.toString(i), "seat", Main.getSelectedSeats().get(i - newBookingId)); Main.modifyJSONFile("bookingsJSON.txt", Integer.toString(i), "time", timeDropDownList.getValue()); Main.modifyJSONFile("bookingsJSON.txt", Integer.toString(i), "film", filmDropDownList.getValue()); Main.modifyJSONFile("bookingsJSON.txt", Integer.toString(i), "status", "booked"); } Main.resetBookingList(); Main.readJSONFile("bookingsJSON.txt"); if (!Main.isEmployee()){ SceneCreator.launchScene("/scenes/BookingSummaryScene.fxml"); Main.getStage().centerOnScreen(); } else { Alert alert1 = new Alert(AlertType.INFORMATION, "You have completed the booking for " + customerDropDownList.getValue() + "!", ButtonType.OK); alert1.showAndWait(); if(alert1.getResult() == ButtonType.OK) { alert1.close(); SceneCreator.launchScene("/scenes/ManageBookingsScene.fxml"); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onSeatClick(Seat seat) {\n }", "private void bookSeats() {\n\t\tint numSeats;\n\n\t\tSystem.out.print(\"Please enter the number of seats to book: \");\n\t\tnumSeats = Integer.parseInt(sc.nextLine());\n\t\t\n\t\t// Reject attempt to book more seats than are available\n\t\tif (numSeats > coach.numSeatsAvailable()) {\n\t\t\tSystem.out.printf(\"Unable to book %d seats. Only %d available\\n\",\n\t\t\t\t\t\t\t\tnumSeats, coach.numSeatsAvailable());\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Book each of the requested seats\n\t\tfor (int i = 0; i < numSeats; i++) {\n\t\t\tint seatPos;\n\t\t\tString seatType;\n\t\t\tboolean bookingResult;\n\t\t\tSystem.out.println(\"Seats purchased: \" + i);\n\t\t\tdo {\n\t\t\t\tSystem.out.print(\"Please enter the seat position to book: \");\n\t\t\t\tseatPos = Integer.parseInt(sc.nextLine());\n\t\t\t\tcoach.printCosts();\n\t\t\t\t// Validate the seat type\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.print(\"Please select a seat type: \");\n\t\t\t\t\tseatType = sc.nextLine();\n\t\t\t\t\tif (!seatType.equals(\"S\") && !seatType.equals(\"P\") && \n\t\t\t\t\t\t\t!seatType.equals(\"F\"))\n\t\t\t\t\t\tSystem.out.println(\"Must be one of S/P/F. Try again.\");\n\t\t\t\t} while (!seatType.equals(\"S\") && !seatType.equals(\"P\") && \n\t\t\t\t\t\t!seatType.equals(\"F\"));\n\n\t\t\t\t// Attempt to book the seat\n\t\t\t\tbookingResult = coach.bookSeat(seatPos, seatType);\n\t\t\t\tif (bookingResult == false)\n\t\t\t\t\tSystem.out.println(\"Seat position isn't available. Please try again\");\n\t\t\t} while (bookingResult == false);\n\t\t}\n\t\tcoach.printReceipt();\n\t}", "public void insertBooking(){\n \n Validator v = new Validator();\n if (createBookingType.getValue() == null)\n {\n \n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Booking Type!\")\n .showInformation();\n \n return;\n \n }\n if (createBookingType.getValue().toString().equals(\"Repair\"))\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Go to Diagnosis and Repair tab for creating Repair Bookings!\")\n .showInformation();\n \n \n if(v.checkBookingDate(parseToDate(createBookingDate.getValue(),createBookingTimeStart.localTimeProperty().getValue()),\n parseToDate(createBookingDate.getValue(),createBookingTimeEnd.localTimeProperty().getValue()))\n && customerSet)\n \n { \n \n int mID = GLOBAL.getMechanicID();\n \n try {\n mID = Integer.parseInt(createBookingMechanic.getSelectionModel().getSelectedItem().toString().substring(0,1));\n } catch (Exception ex) {\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Set Mechanic!\")\n .showInformation();\n return;\n }\n \n if (mID != GLOBAL.getMechanicID())\n if (!getAuth(mID)) return;\n \n createBookingClass();\n dbH.insertBooking(booking);\n booking.setID(dbH.getLastBookingID());\n appointment = createAppointment(booking);\n closeWindow();\n \n }\n else\n {\n String extra = \"\";\n if (!customerSet) extra = \" Customer and/or Vehicle is not set!\";\n Dialogs.create()\n .owner(prevStage)\n .title(\"Error!\")\n .masthead(null)\n .message(\"Errors with booking:\"+v.getError()+extra)\n .showInformation();\n }\n \n }", "String reserveSeats(String seatHoldId, String customerEmail) throws BookingNotAvailableException;", "private void handleBooking() {\n\t\tString customerID;\n\t\tint recNo = table.getSelectedRow();\n\t\tif(recNo == -1){\n\t\t\treturn;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tcustomerID = JOptionPane.showInputDialog(mainPanel,\n\t\t\t\t\t\"Enter Customer ID (8 Digits)\");\n\t\t\tif (customerID != null) {\t\n\t\t\t\tcontroller.reserveRoom(recNo, customerID);\n\t\n\t\t\t\tupdateTable(nameSearchBar.getText(),\n\t\t\t\t\t\tlocationSearchBar.getText());\n\t\t\t}\n\t\t} catch (final InvalidCustomerIDException icide) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, \"Invalid format!\");\n\t\t} catch (final BookingServiceException bse) {\n\t\t\tJOptionPane.showMessageDialog(mainPanel, bse.getMessage());\n\t\t} catch (final ServiceUnavailableException sue) {\n\t\t\tJOptionPane.showMessageDialog(null, sue.getMessage());\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public Booking makeBooking(Customer customer, Airline flight, int baggage, String type, Date date);", "public boolean bookSeat() {\n // check if the flight is full\n if (isfull()) {\n return false;\n } else {\n // otherwise increase the number of booked seats\n this.bookedSeats += 1;\n return true;\n }\n }", "public void reserveSeat(String visitorName, String seatNumber) {\n\t}", "public void reviewBooking() {\n\t\telementUtil.doSendKeys(email, \"hello@gmails.com\");\n\t\telementUtil.doSendKeys(mobile, \"83292382349\");\n\t\telementUtil.doSendKeys(name, \"sciripappa\");\n\t\telementUtil.doSelectValuesByIndex(gender, 1);\n\t\telementUtil.doSelectValuesByVisibleText(age, \"19\");\n\t\telementUtil.doClick(proceed);\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(10000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void startBook() {\n\t\tthis.startInfo();\n\t\tSystem.out.println();\n\t\tint maxNoSeat = this.showtimes.getNoSeatAvailable();\n\t\tSystem.out.println(\"How many tickets do you want to purchase? (Max:\"+maxNoSeat+\"):\");\n\t\tint choice = this.getInputChoice(1, maxNoSeat);\n\t\t\n\n\t\t\n\t\t// Array to store age of Movie-goers\n\t\tint[] ageArray = new int[choice];\n\t\tfor (int i=0; i< choice; ++i) {\n\t\t\tSystem.out.println();\n\t\t\tthis.showtimes.viewSeat();\n\t\t\tSystem.out.println(\"Please choose your seat(s) (e.g. A1):\");\n\t\t\tint[] seat = this.getInputSeat();\n\t\t\t\n\t\t\tthis.showtimes.takeSeat(seat[0], seat[1]);\n\t\t\tSystem.out.println(\"Enter movie-goer's age:\");\n\t\t\tint age = this.getInputInteger();\n\t\t\tageArray[i] = age;\n\t\t}\n\t\tthis.runBook(choice, ageArray);\n\t}", "public void openReserveSeat(){\n Intent intent = new Intent(this, ReserveSeatActivity.class);\n startActivity(intent);\n }", "public void chooseTicket(Customer customer,int seat,boolean isPackage){\n\t\tthis.tickets.get(seat).setCustomer(customer);\n\t\tcustomer.addTicket(this.tickets.get(seat),isPackage);\n\t}", "private void seatCustomer(MyCustomer customer) {\n\t//Notice how we print \"customer\" directly. It's toString method will do it.\n\tDo(\"Seating \" + customer.cmr + \" at table \" + (customer.tableNum+1));\n\t//move to customer first.\n\tCustomer guiCustomer = customer.cmr.getGuiCustomer();\n\tguiMoveFromCurrentPostionTo(new Position(guiCustomer.getX()+1,guiCustomer.getY()));\n\twaiter.pickUpCustomer(guiCustomer);\n\tPosition tablePos = new Position(tables[customer.tableNum].getX()-1,\n\t\t\t\t\t tables[customer.tableNum].getY()+1);\n\tguiMoveFromCurrentPostionTo(tablePos);\n\twaiter.seatCustomer(tables[customer.tableNum]);\n\tcustomer.state = CustomerState.NO_ACTION;\n\tcustomer.cmr.msgFollowMeToTable(this, new Menu());\n\tstateChanged();\n }", "public void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}", "public void bookFlight(){\n //Steps\n //1 Show the available flights. (at least one seat with 0)\n //2 User select a flight, and the system automatically set the seat with his id. he is not able to select the seat\n //3 User confirm the reservation \n //4 Flight reserved\n \n //1\n //FlightRepository.availableFlights();\n //Scanner input = new Scanner(System.in);\n //String flightNumber = input.nextLine();\n \n //2,3 and 4\n Flight flightObject = FlightRepository.getFlight(this.number);\n if (flightObject == null){\n System.out.println(\"Please select a valid flight number\");\n }\n flightObject.setPassengerSeat(this.PassengerID);\n }", "public void holdSeat() {\n String seatNo = this.getSeatNo();\n this.setStatus(Status.HOLD);\n this.setHold(true);\n //call the db or service to hold the seat\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n BookingLogin booking = new BookingLogin(accountType, user);\r\n booking.setVisible(true);\r\n }", "public boolean bookTicket(String movieName, String date, String UID){\n\t\tPreparedStatement psSeats = null;\n\t\tPreparedStatement psReserve = null;\n\t\t\n\t\t//SQL strings deduct 1 from value freeSeats and insert new reservation entry\n\t\tString deductSeat = \"UPDATE Performances \" + \"SET freeSeats = (freeSeats - 1) \" + \"WHERE movieName = ? and theDate = ?\";\n\t\tString makeReservation = \"INSERT into Reservations(perdate, movieName, userName) values(?, ?, ?)\";\n\t\tif(isReserved(movieName, date, UID)){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(isUser(UID) && (remainingSeats(movieName, date) > 0)){\n\t\t\ttry {\n\t\t\t\tconn.setAutoCommit(false);\n\t\t\t\t\n\t\t\t\tpsSeats = conn.prepareStatement(deductSeat);\t\n\t\t\t\tpsReserve = conn.prepareStatement(makeReservation);\n\t\t\t\t\n\t\t\t\tpsReserve.setString(1, date);\n\t\t\t\tpsReserve.setString(2, movieName);\n\t\t\t\tpsReserve.setString(3, UID);\n\t\t\t\t\n\t\t\t\tpsSeats.setString(1, movieName);\n\t\t\t\tpsSeats.setString(2, date);\n\t\t\t\t\n\t\t\t\tpsSeats.executeUpdate();\n\t\t\t\tpsReserve.executeUpdate();\n\t\t\t\t\n\t\t\t\t\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\tfinally {\n\t\t\t\ttry {\n\t\t\t\t\tif(psSeats != null) psSeats.close(); // returnerar psSeats null?\n\t\t\t\t\tif(psReserve != null) psReserve.close();\n\t\t\t\t\tconn.setAutoCommit(true);\n\t\t\t\t} catch(SQLException e2) {\n\t\t\t\t\te2.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void chooseSeat(ActionEvent actionEvent) {\n for (int i = 0; i < 20; i++) {\n if (actionEvent.getSource().toString().trim().equals(seatsArray.get(i).toString().trim())) {\n if (chosenBtn != null)\n chosenBtn.setStyle(\"\"); //For changing the colour back to clear if they choose another seat\n this.chosenBtn = seatsArray.get(i);\n seatNum = this.chosenBtn.getId();\n seatsArray.get(i).setStyle(\"-fx-background-color: LIGHTBLUE\");\n }\n }\n }", "public void makeBooking (Object booking);", "public void cancelSeat() {\n this.bookedSeats = this.bookedSeats - 1;\n }", "@Override\n\tpublic void DoGoToSeat(int x, int y) {\n\t\t\n\t}", "public void BookRoom() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Booknow);\r\n\r\n\t\tThread.sleep(2000);\r\n\t\tif (Booknow.isEnabled()) \r\n\t\t{\r\n\t\t\tBooknow.isDisplayed();\r\n\t\t\tJavascriptexecutor(Booknow);\r\n\r\n\t\t\t//System.out.println(\"Clicked on Booknow\");\r\n\t\t\tSeleniumRepo.waitForPageLoaded(); \r\n\t\t\tExplicitWait(verify_Headingrooms);\r\n\t\t\tlogger.info(\"Clicked on Booknow\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on Booknow\");\r\n\r\n\t\t} else \r\n\t\t{\r\n\t\t\t//System.out.println(\"BookNow button not found\");\r\n\t\t\tlogger.error(\"BookNow button not found\");\r\n\t\t\ttest.log(Status.FAIL, \"BookNow button not found\");\r\n\r\n\t\t}\r\n\t}", "public boolean bookSeat(User user, FlightRoute f, int classId) throws SQLException {\n\t\tConnection conn = null;\n\t\tBooking b = new Booking(true);\n\t\tBookingPayment bp;\n\t\tBookingUser bu;\n\t\tFlightBooking fb;\n\t\tPassenger p;\n\t\tint bookingId = 0;\n\t\tswitch (classId) {\n\t\tcase 1:\n\t\t\tf.getFlight().setReservedSeats(f.getFlight().getReservedSeats() + 1);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tf.getFlight().setReservedSeats2(f.getFlight().getReservedSeats2() + 1);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tf.getFlight().setReservedSeats3(f.getFlight().getReservedSeats3() + 1);\n\t\t\tbreak;\n\t\t}\n\t\ttry {\n\t\t\tconn = util.getConnection();\n\t\t\tconn.setAutoCommit(false);\n\t\t\tBookingDAO b1 = new BookingDAO(conn);\n\t\t\tBookingPaymentDAO bp1 = new BookingPaymentDAO(conn);\n\t\t\tBookingUserDAO bu1 = new BookingUserDAO(conn);\n\t\t\tPassengerDAO p1 = new PassengerDAO(conn);\n\t\t\tFlightBookingDAO fb1 = new FlightBookingDAO(conn);\n\t\t\tFlightDAO f1 = new FlightDAO(conn);\n\t\t\t// insert and read booking\n\t\t\tbookingId = b1.create(b);\n\n\t\t\t// add passenger birthday/gender/address preset for now\n\t\t\tp = new Passenger(bookingId, user.getGivenName(), user.getFamilyName(), LocalDate.of(1996, 5, 15), \"n/a\",\n\t\t\t\t\t\"n/a\");\n\t\t\tp1.create(p);\n\n\t\t\t// not sure what stripe id is so I'll insert this\n\t\t\tbp = new BookingPayment(bookingId, \"\", false);\n\t\t\tbp1.create(bp);\n\n\t\t\t// insert booking user\n\t\t\tbu = new BookingUser(bookingId, user.getId());\n\t\t\tbu1.create(bu);\n\n\t\t\t// create flight_booking\n\t\t\tfb = new FlightBooking(f.getFlight().getId(), bookingId, classId);\n\t\t\tfb1.create(fb);\n\n\t\t\t// update flight seating\n\t\t\tf1.update(f.getFlight());\n\n\t\t\tconn.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tconn.rollback();\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void onAddClicked() {\r\n\t\t\r\n\t\tString givenName = Window.showStudentDialog();\r\n\t\t\r\n\t\tif (givenName != null) {\r\n\t\t\t\r\n\t\t\tif(!chart.addStudentName(givenName)) {\r\n\t\t\t\tWindow.msg(\"There are no seats available.\");\r\n\t\t\t}\r\n\t\t\tupdate();\r\n\t\t}\r\n\t\t\r\n\t}", "public String reserveSeats(final int seatHoldId, final String customerEmail) {\n\n\t\tint bookinfRefNo = (int) (Math.random() * 1000000);\n\n\t\tQuery searchUserQuery = new Query(Criteria.where(\"_id\").is(seatHoldId));\n\t\tHoldSeatDTO holdSeatDTO = mongoTemplate.findOne(searchUserQuery,\n\t\t\t\tHoldSeatDTO.class);\n\t\tif (null != holdSeatDTO) {\n\t\t\tholdSeatDTO.setStatus(SeatStatus.BOOKED.toString());\n\t\t\tholdSeatDTO.setBookinfRefNo(bookinfRefNo);\n\t\t\tholdSeatDTO.setCustomerEmail(customerEmail);\n\t\t\tmongoTemplate.save(holdSeatDTO);\n\t\t\treturn holdSeatDTO.getBookinfRefNo() + \"\";\n\t\t} else {\n\t\t\tthrow new NotFoundException(\"200001\", NOT_FOUND_ERROR);\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tToast.makeText(getApplicationContext(), \"Booked\", 500).show();\n\t\t\t}", "private void addAppointmentButtonAction (ActionEvent event) {\r\n\t\t\tif (customersTable.getItems().isEmpty()) {\r\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\talert.setHeaderText(\"No customer selected\");\r\n\t\t\t\talert.setContentText(\"You must select a customer to schedule an appointment\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t} else {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tselectedItem = customersTable.getSelectionModel().getSelectedItem();\r\n\t\t\t\t\t//Go to add appointment screen\r\n\t\t\t\t\tParent root;\r\n\t\t\t\t\tStage stage = (Stage) appointmentsButton.getScene().getWindow();\r\n\t\t\t\t\troot = FXMLLoader.load(getClass().getResource(\"/views/AddAppointmentScreen.fxml\"));\r\n\t\t\t\t\tScene scene = new Scene(root);\r\n\t\t\t\t\tstage.setScene(scene);\r\n\t\t\t\t\tstage.show();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}", "public void PurchaseTicket_OnClick(View view){\n\t\tVibrateButton();\n\t\tpurchaseTicket();\n\t}", "@Then(\"user clicks the “Book” button for the “Men's Haircut” service\")\n\tpublic void user_clicks_the_Book_button_for_the_Men_s_Haircut_service() {\n\t\tservice=consumerPage.serviceBeforeSelection.getText();\t\n\t\t\n\t\t//service price is being saved before the selection\n\t\tmensHaircutPrice= consumerPage.mensHaircutPrice.getText();\n\t\tconsumerPage.bookMensHaircutButton.click();\n\t}", "public static void book(Table<Flight> fTable, Table<Seat> sTable, Table<Passenger> pTable, Table<Reservation> rTable){\n \tTable<Seat> freeSeats = new Table<Seat>();\n\t\t\t\n \t\tint randomPassenger = (int) (Math.random()*pTable.size());\t\t\t\t\t\t\t\t\t\t// choosing random passenger [index] from passengers table\n \t\tint randomFlight = (int) (Math.random()*fTable.size());\t\t\t\t\t\t\t\t\t\t\t// choosing random flight [index] from flights table\n \t\t\n \t for(int f = 0; f < sTable.size(); f++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// check for all seats in sTable\n \t \tif((sTable.get(f).flightId() == randomFlight+1) && (!sTable.get(f).isBooked())){\t\t\t// if seat belongs to chosen flight and is not booked then\n \t \t\tfreeSeats.add(sTable.get(f));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add seats to the freeSeats list\n \t \t}\n \t }\n \t \n \t if (freeSeats.size() > 0){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is free seats then\n \t \tint randomFreeSeat = (int) (Math.random()*freeSeats.size());\t\t\t\t\t\t\t\t// choose random seat from free seats list\n \t \tif(freeSeats.size() == 1){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is only one free seat\n \t \t\trandomFreeSeat = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then take that seat\n \t \t}\n \t \t\n \t\t\tReservation res = new Reservation(pTable.get(randomPassenger), freeSeats.get(randomFreeSeat));\t// create reservation\n\n \t \tif (rTable.isEmpty()){ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is empty\n \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\n \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add reservation to reservation table\n \t \t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is NOT empty and\n\t \t\t\t\tif( exists(res, rTable) ){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if seat is booked or seat exists in rTable\n\t \t\t\t\t\t//continue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exit this loop\n\t \t\t\t\t} else {\n\t \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\t\t\t\t\t\t\t\t\t\t// else book that seat\n\t \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add to reservation table\n\t \t\t\t\t}\n\t \t\t }\n \t }\n\t\t\n\t}", "public void confirmBooking(){\n double ticketPrice = 56.0;\n double mealPrice = 30.0;\n if (student || child )\n ticketPrice = ticketPrice/2;\n else\n ticketPrice = ticketPrice*0.8;\n \n if (child )\n mealPrice = mealPrice/2;\n else\n mealPrice = mealPrice*0.9;\n double totalPrice = ticketPrice + mealPrice;\n System.out.println(getName()+\"\\nTicket price:$\"+ticketPrice+\"\\nMeal Price:$\"+mealPrice+\"\\nTotal price:$\"+totalPrice+\"\\nConfirm booking for \"+getName()+\" (Y/N)\");\n setBooked();\n System.out.println(getBooked()+\"\\n\\n\");\n }", "public void setBookingId(int booking_id) {\n this.booking_id = booking_id;\n }", "@FXML\n private void selectSeat(MouseEvent e) {\n if (((Node) e.getSource()).getStyle()\n .equals(\"-fx-fill:#c9b3b3; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;\")) {\n Alert alert = new Alert(AlertType.WARNING,\n \"The seat \" + ((Node) e.getSource()).getId() + \" is already booked!\", ButtonType.OK);\n alert.showAndWait();\n if (alert.getResult() == ButtonType.OK) {\n alert.close();\n }\n } else {\n // turning seat back to black if it is red - unselecting it\n if (((Node) e.getSource()).getStyle()\n .equals(\"-fx-fill:red; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;\")) {\n ((Node) e.getSource())\n .setStyle(\"-fx-fill:black; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;\");\n Main.getSelectedSeats().remove(((Node) e.getSource()).getId());\n }\n // turning seat red if it is black - selecting it\n else {\n ((Node) e.getSource())\n .setStyle(\"-fx-fill:red; -fx-font-family: 'Material Icons'; -fx-font-size: 40.0;\");\n Main.getSelectedSeats().add(((Node) e.getSource()).getId());\n }\n }\n }", "public void book(String from, String to, Calendar getInDate, TrainInfo trainInfo, boolean isBackground) {\n if (!NetworkChecker.isConnected(activity)) {\n SnackbarHelper.show(parentView, activity.getString(R.string.network_not_connected), Snackbar.LENGTH_LONG);\n return;\n }\n final View view = createPersonIdAndQtyFormView();\n new AlertDialog.Builder(activity)\n .setView(view)\n .setPositiveButton(activity.getString(R.string.book_button),\n (dialog, which) -> onBookButtonClick(view, from, to, getInDate, trainInfo, isBackground))\n .setNegativeButton(activity.getString(R.string.save_to_my_tickets_button),\n ((dialog1, which1) -> onSaveButtonClick(view, from, to, getInDate, trainInfo)))\n .show();\n }", "public void setBookedStatus(JGGTimeSlotModel timeSlot) {\n JGGTimeSlotBookedStatus status = timeSlot.getStatus();\n switch (status) {\n case none:\n case not_booked:\n backLayout.setBackgroundResource(R.drawable.book_background);\n txtDay.setVisibility(View.GONE);\n txtWeekDay.setText(\"Book Time Slot\");\n txtWeekDay.setTextColor(ContextCompat.getColor(mContext, R.color.JGGWhite));\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext, PackageServiceTimeSlotActivity.class);\n mContext.startActivity(intent);\n }\n });\n break;\n case booking:\n break;\n case booked:\n backLayout.setBackgroundResource(R.drawable.grey_border_background);\n txtDay.setTextColor(ContextCompat.getColor(mContext, R.color.JGGGrey3));\n txtWeekDay.setTextColor(ContextCompat.getColor(mContext, R.color.JGGGrey3));\n break;\n default:\n break;\n }\n }", "@Override\n public void onClick(View view) {\n ArrayList<XeBuyt> listXeBuytWithAvailableSeats = XeBuytController.getInstance()\n .getListXeBuytByMaTuyenDuong(tuyenDuong.maTuyenDuong);\n\n // Because we haven't found out whether it has available seats or not so\n // we have to filter it out to return only buyts with available seats\n\n // Save to this, cool!!!\n SharedVariables.theListOfBusesThroughActivity = MainController.getInstance().\n getListXeBuytsWithAvailableSeats(listXeBuytWithAvailableSeats);\n\n Intent intent = new Intent(getContext(), FirstFunction_2_Activity.class);\n m_Context.startActivity(intent);\n }", "@Override\n\tprotected void addItineraryToCalendar() {\n\t\tstartActivity(generateHotelCalendarIntent(false));\n\t\tstartActivity(generateHotelCalendarIntent(true));\n\n\t\tOmnitureTracking.trackHotelConfirmationAddToCalendar();\n\t}", "private void createEvent() \n\t{\n\t\t// When the user clicks on the add button\n\t\tbtnAdd.addActionListener(new ActionListener() \n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//Adding Info To Reservation.txt//\n\t\t\t\t//////////////////////////////////\n\t\t\t\t//////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround the whole with with try.. catch block\n\t\t\t\t * First in the try block \n\t\t\t\t * i get the values of the check-in and check-out info\n\t\t\t\t * i save them in strings \n\t\t\t\t * then cast them in integers \n\t\t\t\t * and finally add it to Reservation.txt\n\t\t\t\t * then i close the file.\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tObject HotelID = cbHotelsOptions.getSelectedItem();\n\t\t\t\t\tHotel hotel;\n\t\t\t\t\thotel = (Hotel) HotelID;\n\t\t\t\t\tlong id = hotel.getUniqueId();\n\t\t\t\t\t//\tSystem.out.println(id);\n\t\t\t\t\tString inmonth = txtInMonth.getText();\n\t\t\t\t\tint inMonth = Integer.valueOf(inmonth);\n\t\t\t\t\tString inday = txtInDay.getText();\n\t\t\t\t\tint inDay = Integer.parseInt(inday);\n\t\t\t\t\tString outmonth = txtOutMonth.getText();\n\t\t\t\t\tint outMonth = Integer.valueOf(outmonth);\n\t\t\t\t\tString outday = txtOutDay.getText();\n\t\t\t\t\tint OutDay = Integer.parseInt(outday);\n\t\t\t\t\tFileOutputStream fos = new FileOutputStream(\"Reservation.txt\", true);\n\t\t\t\t\tPrintWriter pw = new PrintWriter(fos);\n\n\t\t\t\t\t/**\n\t\t\t\t\t * i then check the canBook method and according to the canBook method \n\t\t\t\t\t * i check if they can book, and if yes i add the reservation\n\t\t\t\t\t * otherwise it prints so the user may enter different values\n\t\t\t\t\t */\n\t\t\t\t\t{\n\t\t\t\t\t\tif(h.canBook(new Reservation(id,inMonth, inDay, OutDay)) == true) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservation.add(new Reservation (id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\tr = new Reservation (id,inMonth, inDay, OutDay);\n\t\t\t\t\t\t\th.addResIfCanBook(new Reservation(id,inMonth, inDay, outMonth, OutDay));\n\t\t\t\t\t\t\treservationsModel.addElement(r);\n\t\t\t\t\t\t\tpw.println( id + \" - \" + inMonth + \"-\"+ inDay+ \" - \" + outMonth + \"-\" + OutDay);\n\t\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"These dates are already reserved\"\n\t\t\t\t\t\t\t\t\t+ \"\\nPlease try again!\");\t\n\t\t\t\t\t\t\ttxtInMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtOutMonth.setText(\"\");\n\t\t\t\t\t\t\ttxtInDay.setText(\"\");\n\t\t\t\t\t\t\ttxtOutDay.setText(\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\t/**\n\t\t\t\t * Then the catch Block checks for file not found exception\n\t\t\t\t */\n\t\t\t\tcatch (FileNotFoundException fnfe) \n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// When the user selects a specific hotel \n\t\tcbHotelsOptions.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * first i save selected hotel in a hotel object\n\t\t\t\t * then i get reservations for the selected hotel\n\t\t\t\t * then i make all the labels and text fields visible \n\t\t\t\t */\n\t\t\t\tHotel selectedHotel = (Hotel)cbHotelsOptions.getSelectedItem();\n\t\t\t\tJOptionPane.showMessageDialog(null, \"You selected the \" + selectedHotel.getHotelName());\n\t\t\t\tselectedHotel.getReservations();\n\t\t\t\tlblCheckIn.setVisible(true);\n\t\t\t\tlblInMonth.setVisible(true);\n\t\t\t\ttxtInMonth.setVisible(true);\n\t\t\t\tlblInDay.setVisible(true);\n\t\t\t\ttxtInDay.setVisible(true);\n\t\t\t\tlblCheckout.setVisible(true);\n\t\t\t\tlblOutMonth.setVisible(true);\n\t\t\t\ttxtOutMonth.setVisible(true);\n\t\t\t\tlblOutDay.setVisible(true);\n\t\t\t\ttxtOutDay.setVisible(true);\n\t\t\t\tbtnAdd.setVisible(true);\n\t\t\t\treservationsModel.removeAllElements();\n\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t//Reading Info From Reservation.txt//\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/////////////////////////////////////\n\t\t\t\t/**\n\t\t\t\t * First i surround everything is a try.. catch blocks \n\t\t\t\t * then in the try block i declare the file input stream\n\t\t\t\t * then a scanner \n\t\t\t\t * then in a while loop i check if the file has next line \n\t\t\t\t * and a user a delimiter \"-\"\n\t\t\t\t * and it adds it to a new reservation\n\t\t\t\t * then it adds it to the ArrayList reservation\n\t\t\t\t * and it also adds it to the hotel object\n\t\t\t\t * then it checks if it can book that hotel\n\t\t\t\t * and if yes it adds it to the ReservationsModel\n\t\t\t\t */\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"Reservation.txt\");\n\t\t\t\t\tScanner fscan = new Scanner (fis);\n\t\t\t\t\tint INMonth = 0;\n\t\t\t\t\tint INday = 0;\n\t\t\t\t\tint OUTmonth = 0;\n\t\t\t\t\tint OUTday = 0;\n\t\t\t\t\tlong iD = 0;\n\t\t\t\t\twhile (fscan.hasNextLine())\n\t\t\t\t\t{\n\t\t\t\t\t\tScanner ls = new Scanner (fscan.nextLine());\n\t\t\t\t\t\tls.useDelimiter(\"-\");\n\t\t\t\t\t\tiD = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINMonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tINday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tOUTmonth = Integer.parseInt(ls.next().trim());\n\t\t\t\t\t\tOUTday = Integer.parseInt(ls.next().trim()); \n\t\t\t\t\t\tr = new Reservation (iD,INMonth, INday, OUTmonth, OUTday);\n\t\t\t\t\t\th.addReservation(new Reservation(iD,INMonth, INday, OUTmonth, OUTday));\n\t\t\t\t\t\tHotel hotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t\tlong hotID = hotel.getUniqueId();\n\t\t\t\t\t\tif(iD == hotID)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treservationsModel.addElement((new Reservation(iD, INMonth, INday, OUTday)));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\t * The catch block checks to make sure that the file is found\n\t\t\t\t */\n\t\t\t\tcatch( FileNotFoundException fnfe)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"File not found!\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * This is the setRenderer to make the hotel appear in the hotelsOptions \n\t\t * just the hotel name.\n\t\t */\n\t\tcbHotelsOptions.setRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Hotel)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Hotel'\n\t\t\t\t\t((JLabel) renderer).setText(((Hotel) value).getHotelName());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * The setCallRenderer is for the reservation's list\n\t\t * it only prints the check-in and check-out info\n\t\t */\n\t\tlstReservation.setCellRenderer(new DefaultListCellRenderer() {\n\t\t\t@Override\n\t\t\tpublic Component getListCellRendererComponent(JList<?> list, Object value, int index, boolean isSelected, boolean cellHasFocus)\n\t\t\t{\n\t\t\t\tComponent renderer = super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);\n\t\t\t\tif (renderer instanceof JLabel && value instanceof Reservation)\n\t\t\t\t{\n\t\t\t\t\t// Here value will be of the Type 'Reservation'\n\t\t\t\t\tHotel selectedHotel = (Hotel) cbHotelsOptions.getSelectedItem();\n\t\t\t\t\t((JLabel) renderer).setText(((Reservation) value).getFormattedDisplayString());\n\t\t\t\t}\n\t\t\t\treturn renderer;\n\t\t\t}\n\t\t});\t\n\t}", "private JButton createBookButton() {\n\t\tfinal JButton bookButton = new JButton(\"Create Booking\");\n\n\t\tbookButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\thandleBooking();\n\t\t\t}\n\t\t});\n\n\t\treturn bookButton;\n\t}", "public void bookItin(View view){\n try{\n // Get index of itinerary from tis user\n EditText numberEdit = (EditText) findViewById(R.id.numberEdit);\n int index = Integer.parseInt(numberEdit.getText().toString());\n Client thisClient = system.getClient(userInfo[0]);\n Itinerary itin = selectionItinerary.get(index);\n // Store this users booked itinerary\n thisClient.bookItin(itin);\n system.addClient(thisClient);\n bookedItins.add(itin);\n TextView displayText = (TextView) findViewById(R.id.displayText);\n displayText.setText(\"This Itinerary booked successfully: \" + itin.toString());\n }catch (Exception e){\n // Let user know if itinerary cannot be stored\n TextView displayText = (TextView) findViewById(R.id.displayText);\n displayText.setText(\"No such itinerary found. Please choose\\n\" +\n \"number from search list displayed\");\n Button button = (Button) findViewById(R.id.bookButton);\n button.setEnabled(false);\n EditText numberEdit = (EditText) findViewById(R.id.numberEdit);\n numberEdit.setText(\"\");\n }\n }", "SeatHold reserveSeats(Long requestId, String customerEmail);", "private GuestBooking createGuestBookingInstance(Customer customer, Long taxiId, Date bookingDate ){\n GuestBooking booking = new GuestBooking();\n booking.setCustomer(customer);\n booking.setTaxiId(taxiId);\n booking.setBookingDate(bookingDate);\n return booking;\n }", "public void clickBookCall(){\r\n\t\tclickXPath(BOOKCALL_XPATH);\r\n\t\tReporter.log(\"Book call was clicked <br>\", true);\r\n\t}", "public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}", "@Override\r\n\tpublic boolean createBooking(Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"insert into Booking values(?,?);\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "public boolean BookTicket(Ticket ticket, Customer customer) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void start() {\n\t\tSystem.out.println();\n\t\tif (showtimes.isFull()) {\n\t\t\tSystem.out.println(\"No seats are available!\");\n\t\t\tthis.home();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Seats available:\");\n\t\tthis.showtimes.viewSeat();\n\t\tSystem.out.println(\"0 : Proceed with booking\");\n\t\tSystem.out.println(\"1 : Back to menu\");\n\t\t\n\t\tint choice = this.getInputChoice(0, 1);\n\t\tthis.run(choice);\n\t}", "public void requestAppointment(Doctor doctor, Secretary sec)\n {\n sec.addToAppointmentRequests(doctor, this);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(checkInfo())\r\n\t\t\t\t{\r\n\t\t\t\t\tBundle extra = getIntent().getExtras();\r\n\t\t\t\t\tif(extra!=null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tString json = extra.getString(\"json\");\r\n\t\t\t\t\t\tType typeObject = new TypeToken<CustomerEntity>(){}.getType();\r\n\t\t\t\t\t\tString customer = JSonHelper.serializerJson(getCustomer(), typeObject);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tIntent it = new Intent(Booking.this, BookingConfirm.class);\r\n\t\t\t\t\t\tit.putExtra(\"json\", json);\r\n\t\t\t\t\t\tit.putExtra(\"customer\", customer);\r\n\t\t\t\t\t\tit.putExtra(\"bonus\",chkBonus.isChecked()?\"150000\":\"0\");\r\n\t\t\t\t\t\tstartActivity(it);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tHelper.showToast(Booking.this, \"Please input all customer infomation!\", true);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}", "public void DoGoToSeat() {\n\t\tcommand = Command.FollowWaiter;\n\t}", "public boolean rebookSeat(User user, FlightRoute f) throws SQLException {\n\t\tConnection conn = null;\n\t\tBooking b;\n\t\tBookingPayment bp;\n\t\tFlightBooking fb;\n\t\ttry {\n\t\t\tconn = util.getConnection();\n\t\t\tconn.setAutoCommit(false);\n\t\t\tFlightBookingDAO fb1 = new FlightBookingDAO(conn);\n\t\t\tBookingDAO b1 = new BookingDAO(conn);\n\t\t\tFlightDAO f1 = new FlightDAO(conn);\n\t\t\tBookingPaymentDAO bp1 = new BookingPaymentDAO(conn);\n\n\t\t\tb = b1.read(user.getId(), f.getFlight().getId());\n\t\t\tif (b.isActive()) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tfb = fb1.read(user.getId(), f.getFlight().getId());\n\t\t\t// read from inner joining flight and user\n\t\t\tbp = bp1.read(user.getId(), f.getFlight().getId());\n\n\t\t\t// increments seat belonging to its class\n\t\t\tswitch (fb.getClassId()) {\n\t\t\tcase 1:\n\t\t\t\tf.getFlight().setReservedSeats(f.getFlight().getReservedSeats() + 1);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tf.getFlight().setReservedSeats2(f.getFlight().getReservedSeats2() + 1);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tf.getFlight().setReservedSeats3(f.getFlight().getReservedSeats3() + 1);\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tb.setActive(true);\n\t\t\tbp.setRefunded(false);\n\t\t\tb1.update(b);\n\t\t\tf1.update(f.getFlight());\n\t\t\tbp1.update(bp);\n\n\t\t\t// delete passenger may be needed\n\t\t\tconn.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tconn.rollback();\n\t\t\treturn false;\n\t\t} finally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void inputSeat() {\n\t\t\tDatabase db=null;\n\t\tSystem.out.println(\"number of seat you want:\");\n\t\tint number=sc.nextInt();\n\t\tsc.nextLine();\n\t\t//do {\n\t\t\tSystem.out.println(\"enter block and then number of the seat\");\n\t\t\tfor(int i=0;i<number;i++)\n\t\t\t{\n\t\t\t\tchar block=sc.next().charAt(0);\n\t\t\t\tint seatn=sc.nextInt();\n\t\t\t\tsc.nextLine();\n\t\t\t\tint check=Isbooked(block,seatn-1);\n\t\t\t\tif(check==0) \n\t\t\t\t{\n\t\t\t\t\tString x=block+\"\"+seatn;\n\t\t\t\t\tseatNo.add(x);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdb = new Database();\n\t\t\t\t\t\tdb.addseatinfo(x,Showtime);\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Sorry the seat is booked already try another one!!\");\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(seatNo+\" total price =\"+(number*price));\n\t\t}", "public static void bookAllSeatsWithComments(Table<Flight> fTable, Table<Seat> sTable, Table<Passenger> pTable, Table<Reservation> rTable){\n\t\t\n\tdo {\n\n\t // temp table for free seats\n \tTable<Seat> freeSeats = new Table<Seat>();\n\t\t\t\n \t\tint randomPassenger = (int) (Math.random()*pTable.size());\t\t\t\t\t\t\t\t\t\t// choosing random passenger [index] from passengers table\n \t\tint randomFlight = (int) (Math.random()*fTable.size());\t\t\t\t\t\t\t\t\t\t\t// choosing random flight [index] from flights table\n \t\t\n \t for(int f = 0; f < sTable.size(); f++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// check for all seats in sTable\n \t \tif((sTable.get(f).flightId() == randomFlight+1) && (!sTable.get(f).isBooked())){\t\t\t// if seat belongs to chosen flight and is not booked then\n \t \t\tfreeSeats.add(sTable.get(f));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add seats to the freeSeats list\n \t \t}\n \t }\n \t \n \t if (freeSeats.size() > 0){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is free seats then\n \t \tint randomFreeSeat = (int) (Math.random()*freeSeats.size());\t\t\t\t\t\t\t\t// choose random seat from free seats list\n \t \tif(freeSeats.size() == 1){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is only one free seat\n \t \t\trandomFreeSeat = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then take that seat\n \t \t}\n \t \t\n \t\t\tReservation res = new Reservation(pTable.get(randomPassenger), freeSeats.get(randomFreeSeat));\t// create reservation\n\n \t \tSystem.out.println(\"Passenger \" + pTable.get(randomPassenger).passengerName() + \" is trying to book a seat to \" + freeSeats.get(randomFreeSeat).fDestination());\n\n \t \tif (rTable.isEmpty()){ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is empty\n \t \t\t\tSystem.out.println(pTable.get(randomPassenger).passengerName() + \" picked seat ID number \" + freeSeats.get(randomFreeSeat).seatId());\n \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\n \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add reservation to reservation table\n \t \t\t\tSystem.out.println(\"Passenger \"+ pTable.get(randomPassenger).passengerName() +\" has booked a seat number \"+ freeSeats.get(randomFreeSeat).seatId() +\" to \" + fTable.get(randomFlight).flightDestination());\n \t \t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is NOT empty\n\t \t\t\t\tif( exists(res, rTable) ){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if seat booked or seat exists in rTable\n\t \t\t\t\t\tSystem.out.println(\"Already reserved => Searching new seat!\");\t\t\t\t\t// print message\n\t \t\t\t\t\tcontinue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and exit this loop\n\t \t\t\t\t} else {\n\t \t \t\t\tSystem.out.println(pTable.get(randomPassenger).passengerName() + \" picked seat ID number \" + freeSeats.get(randomFreeSeat).seatId());\n\t \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\t\t\t\t\t\t\t\t\t\t// else book that seat\n\t \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add to reservation table\n\t \t \t\t\tSystem.out.println(\"Passenger \"+ pTable.get(randomPassenger).passengerName() +\" has booked a seat number \"+ freeSeats.get(randomFreeSeat).seatId() +\" to \" + fTable.get(randomFlight).flightDestination());\n\t \t\t\t\t}\n\t \t\t }\n \t } else {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// else if there is no free seats for that flight\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n \t \tSystem.out.println(\"There are no free seats available for this flight!\");\t\t\t\t\t// print message\n \t }\n\t\t}\n\t\twhile( !(sTable.size() == rTable.size()) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// keep booking until reservations table size is equal to seats table size\n\t\t\tSystem.out.println(\"All seats are booked!!!\");\n\t}", "public void setSeat( Seat seat )\r\n\t{\r\n\t\tthis.seat = seat;\r\n\t}", "private void butCheckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butCheckActionPerformed\n\n Borrower bor = createBorrower();\n String date = tfDate.getText();\n\n if (driver.dateFormatValid(date)) {\n //valid date format, perform check out/in\n if (radBorrow.isSelected()) {\n //check out\n\n Book book = createBook();//create book\n\n if (!book.isOnLoan()) {\n //book is not on loan, can be loaned out\n\n //perform loan, inform user of success\n if (bor.borrow(book, date)) {\n driver.infoMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" loaned successfully to \" + bor.getName());\n\n } else {\n driver.errorMessageNormal(\"Book could not be loaned\");\n }\n\n } else {\n //is on loan\n driver.errorMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" is already on loan.\");\n\n }\n\n } else if (radReturn.isSelected()) {\n //check in / returning\n\n Book book = createBook();\n\n if (book.isOnLoan()) {\n //book is on loan, and can be returned\n\n if (bor.returnBook(book, date)) {\n driver.infoMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" has been returned.\");\n\n } else {\n driver.infoMessageNormal(\"The book could not be returned.\");\n }\n\n } else {\n //not on loan\n driver.infoMessageNormal(\"\\\"\" + book.getTitle() + \"\\\" is not on loan.\");\n }\n\n } else {\n driver.errorMessageNormal(\"Please select whether the book is being checked in or being returned.\");\n }\n\n } else {\n //invalid format\n driver.errorMessageNormal(\"Please ensure the date is in the format DD/MM/YYY\");\n }\n\n\n }", "private void executeBookingTransaction(BankClient clientLoggedIn) throws ParseException {\n\t\t\n\t\tAppointment object = new Appointment(new SimpleDateFormat(\"dd/MM/yyyy\").parse(dateOfAppointment), employee, clientLoggedIn, false);\n\t\t\n\t\tSystem.out.println(\"Employee has been sent a notification. They will get back to you to confirm if appointment can be scheduled\");\n\t\t\n\t\t//employee.appointments.add(object);\n\t\ttry {\n\t\t\temployee.notify(object);\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.out.print(\"\");\n\t\t}\n\t\t\n\t\t\n\t}", "public void assignSeat(int seatId, int cust_id){\n if (seat[seatId-1].isOccupied()){\n System.out.println(\"Seat already assigned to a customer\");\n return;\n } else {\n seat[seatId - 1].assign(cust_id);\n numEmptySeat--;\n System.out.println(\"Seat Assigned!\");\n }\n }", "@When(\"^I click on Book button$\")\n\tpublic void i_click_on_Book_button() throws Throwable {\n\t\tfs.selectBookOption();\n\t}", "public void control() {\n\t\tthis.searchListener = new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent actionEvent) {\n\t\t\t\tClientController.this.lastSearch = ClientController.this\n\t\t\t\t\t\t.getSearchText();\n\t\t\t\tClientController.this.clientUI\n\t\t\t\t\t\t.updateTable(ClientController.this\n\t\t\t\t\t\t\t\t.getRecords(ClientController.this.lastSearch));\n\t\t\t}\n\t\t};\n\t\tthis.bookingListener = new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent actionEvent) {\n\t\t\t\tfinal long selectedRecNo = ClientController.this\n\t\t\t\t\t\t.getReserveRecNo();\n\n\t\t\t\tif (selectedRecNo != -1) {\n\t\t\t\t\tfinal String owner = ClientController.this.getCustomerID();\n\n\t\t\t\t\tif (owner != null) {\n\t\t\t\t\t\tClientController.this.bookRoom(selectedRecNo, owner);\n\t\t\t\t\t\tClientController.this.clientUI\n\t\t\t\t\t\t\t\t.updateTable(ClientController.this\n\t\t\t\t\t\t\t\t\t\t.getRecords(ClientController.this.lastSearch));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\tthis.clientUI.getSearchButton().addActionListener(this.searchListener);\n\t\tthis.clientUI.getBookingButton()\n\t\t\t\t.addActionListener(this.bookingListener);\n\t}", "@Override\n public void onClickRecyclerItem(View v, PassengerArray passengerSelectedThis) {\n if(passengerSelectedThis.isAllowedToSelectSeat())\n {\n //make passenger editable\n Log.i(\" Passenger Selected >> \", passengerSelectedThis.getPaxFullName());\n\n //set selected passenger for seat summary\n if(passengerSelectedThis.isSeatSelectionDone())\n {\n passengerSelectedData = passengerSelectedThis;\n lay_summary_done_button.setVisibility(View.VISIBLE);\n }else\n {\n lay_summary_done_button.setVisibility(View.GONE);\n }\n\n designSeatView(numberOfColumn, classType, seatMapData.getSeatdetailarr(), passengerSelectedThis, hmap);\n }\n else\n {\n\n }\n\n }", "public void setSeatNumber(int seatNumber) {\n\t\tthis.seatNumber = seatNumber;\n\t}", "private void setupCreateOffering() {\n\t\tmakeButton(\"Create Course Offering\", (ActionEvent e) -> {\n\t\t\ttry {\n\t\t\t\tint row = table.getSelectedRow();\n\n\t\t\t\tif (row < 0) {\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Please select a course\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tString[] inputs = getInputs(new String[] { \"Section Number:\", \"Section Capacity:\" });\n\n\t\t\t\tif (inputs == null)\n\t\t\t\t\treturn;\n\n\t\t\t\tint courseId = adCon.getCourseIdFromRow(row);\n\t\t\t\tint num = Integer.parseInt(inputs[0]);\n\t\t\t\tint cap = Integer.parseInt(inputs[1]);\n\t\t\t\tadCon.addOffering(courseId, num, cap);\n\t\t\t\tupdateTextArea(adCon.searchCourseById(courseId));\n\n\t\t\t} catch (NumberFormatException ex) {\n\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Course number must be a number\", \"Error\",\n\t\t\t\t\t\tJOptionPane.OK_OPTION);\n\t\t\t}\n\t\t});\n\t}", "public void reserveBook(String cardNo, String book_id) throws SQLException {\n\t\tPreparedStatement myStmt = null;\n\t\t\n\t\tString query = \" insert into book_loans (book_id, branch_id, card_no, date_out, date_due)\"\n\t\t + \" values (?, 9745, ?, curdate(), curdate()+7)\";\n\t\t\n\t\tmyStmt = myConn.prepareStatement(query);\n\t\t\n\t\tmyStmt.setString(1, book_id);\n\t\tmyStmt.setString(2, cardNo);\n\t\t\n\t\t\n\t\t\n\t\tmyStmt.execute();\n\t\t\n\t}", "@Then(\"^user clicks on amend booking$\")\n\tpublic void user_clicks_on_amend_booking() throws Throwable {\n\t \n\t\tamendBooking = new AmendBookingPage();\n\t\tamendBooking.amend();\n\t\t\n\t\t\n\t}", "Booking createBooking(Booking newBooking) throws Exception;", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tStoredBookDAO storeBookDAO = new StoredBookDAO(BookInfoActivity.this);\n\t\t\tBookStoredEntity testBookBorrowedEntity1 = new BookStoredEntity();\n\t\t\ttestBookBorrowedEntity1.setBookId(\"1\");\n\t\t\ttestBookBorrowedEntity1.setBookText(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookImageUrl(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPress(\"android\");\n\t\t\ttestBookBorrowedEntity1.setBookPressTime(\"android\");\n\t\t\tstoreBookDAO.insert(testBookBorrowedEntity1);\n\t\t\tToast.makeText(BookInfoActivity.this, R.string.storesuccess, Toast.LENGTH_SHORT).show();\n\t\t}", "public void setSeat(String seat) {\n\t\t\tthis.seat = seat;\n\t\t}", "public void addBooking(Bookings b) {\n IController<Bookings> ic = new Controller<>();\n\n // Check whether the booking conflicts with another booking.\n for (Bookings booking : ic.readAll(Bookings.class)) {\n if (b.conflictsWith(booking)) {\n throw new IllegalArgumentException(\"That booking conflicts with another booking.\");\n }\n }\n\n Modules relatedModule = b.getModule();\n\n // Check whether the room is available at the given time.\n if (!b.getRooms().isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"That room is unavailable at this time.\");\n }\n // Check whether the students are available at that time.\n for (Students student : relatedModule.getStudents()) {\n if (!student.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A student is unavailable at this time.\");\n }\n }\n // Check whether the staff members are available at that time.\n for (Staff staff : relatedModule.getStaff()) {\n if (!staff.isAvailable(b.getTime(), b.getEnd())) {\n throw new IllegalArgumentException(\"A staff member is unavailable at this time.\");\n }\n }\n\n // Put the booking into the database.\n ic.create(b);\n System.out.println(b.confirmation() + \"\\n\");\n }", "public static void bookAllSeats(Table<Flight> fTable, Table<Seat> sTable, Table<Passenger> pTable, Table<Reservation> rTable){\n\t\t\n\tdo {\n\n\t // temp table for free seats\n \tTable<Seat> freeSeats = new Table<Seat>();\n\t\t\t\n \t\tint randomPassenger = (int) (Math.random()*pTable.size());\t\t\t\t\t\t\t\t\t\t// choosing random passenger [index] from passengers table\n \t\tint randomFlight = (int) (Math.random()*fTable.size());\t\t\t\t\t\t\t\t\t\t\t// choosing random flight [index] from flights table\n \t\t\n \t for(int f = 0; f < sTable.size(); f++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// check for all seats in sTable\n \t \tif((sTable.get(f).flightId() == randomFlight+1) && (!sTable.get(f).isBooked())){\t\t\t// if seat belongs to chosen flight and is not booked then\n \t \t\tfreeSeats.add(sTable.get(f));\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add seats to the freeSeats list\n \t \t}\n \t }\n \t \n \t if (freeSeats.size() > 0){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is free seats then\n \t \tint randomFreeSeat = (int) (Math.random()*freeSeats.size());\t\t\t\t\t\t\t\t// choose random seat from free seats list\n \t \tif(freeSeats.size() == 1){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if there is only one free seat\n \t \t\trandomFreeSeat = 0;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// then take that seat\n \t \t}\n \t \t\n \t\t\tReservation res = new Reservation(pTable.get(randomPassenger), freeSeats.get(randomFreeSeat));\t// create reservation\n\n \t \tif (rTable.isEmpty()){ \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is empty\n \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\n \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add reservation to reservation table\n \t \t} else { \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if reservations table is NOT empty and\n\t \t\t\t\tif( exists(res, rTable) ){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// if seat is booked or seat exists in rTable\n\t \t\t\t\t\tcontinue;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// exit this loop\n\t \t\t\t\t} else {\n\t \t \t\t\tfreeSeats.get(randomFreeSeat).bookSeat();\t\t\t\t\t\t\t\t\t\t// else book that seat\n\t \t \t\t\trTable.add(res);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// add to reservation table\n\t \t\t\t\t}\n\t \t\t }\n \t }\n\t\t}\n\t\twhile( !(sTable.size() == rTable.size()) );\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// keep booking until reservations table size is equal to seats table size\n\t}", "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 }", "private void placeBid() {\r\n System.out.println(\"Would you like to place a bid? (Y/N)\");\r\n bidMenu();\r\n }", "private void payButtonClicked() {\n if (checkBoxAgreedTAC.isChecked()) {\n boolean validCard = validateCard();\n if (validCard) {\n Double payAmount = Double.parseDouble(textViewPrepaidPrice.getText().toString());\n MainActivity.bus.post(new PrepayPaymentAttemptEvent(payAmount, Long.parseLong(litersToBuy.getText().toString())));\n if (PrepayCalculatorFragment.this.payDialog != null) {\n PrepayCalculatorFragment.this.payDialog.dismiss();\n }\n }\n } else {\n Toast.makeText(getActivity(), getResources().getString(R.string.TACMustAgreedMessage), Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\r\n public void onClick(View v) {\n consultarSesiones(sucursal.getId(),clienteID, fecha, beacon);\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\n\t\t\t\tfnCreditAndStockCal(1);\n\n\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tfnCreditAndStockCal(2);\n\n\n\t\t\t}", "public void ClickCommissionRatesPage() {\r\n\t\tcommissionrates.click();\r\n\t\t\tLog(\"Clicked the \\\"Commission Rates\\\" button on the Birthdays page\");\r\n\t}", "@SuppressWarnings(\"deprecation\")\n\t\t\t\tpublic void onClick(View v) \n\t {\n\t \tif (emailCheckedBool == true)\n\t \t{\n\t \tString[] to = {\"jonathan.obrien@mycit.ie\", \"jonathanoddball@gmail.com\"}; \n\t String[] cc = {\"Support@flight.net\"}; \n\t \tsendEmail(to, cc,getApplicationContext().getResources().getString(R.string.support),\n\t \"Email Contents will go here\");\n\t \t}\n\t \t\n\t \t\n\t \t// for the pending intent\n\t \t\n\t\t\t\t\tContext context = getApplicationContext();\n\t\t\t\t\t\n\t\t\t\t\t// messages to be added to the notification \n\t\t\t\t\tCharSequence contentTitle = \"Thank You For Youre Booking\";\n\t\t\t\t\tCharSequence contentText = \"Recommened Service for Car-Hire\";\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// an intent to open a webpage\n\t\t\t\t\tIntent msgIntent = new Intent(Intent.ACTION_VIEW, Uri\n\t\t\t\t\t\t\t.parse(\"http://www.autoeurope.ie/\"));\n\t\t\t\t\t\n\t\t\t\t\t// the pending intent to flag the new task \n\t\t\t\t\tPendingIntent intent = PendingIntent.getActivity(Confirmation.this, 0, msgIntent,\n\t\t\t\t\t\t\tIntent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\t\n\t\t\t\t\tmsg.defaults |= Notification.DEFAULT_SOUND;\n\t\t\t\t\tmsg.flags |= Notification.FLAG_AUTO_CANCEL;\n\n\t\t\t\t\tmsg.setLatestEventInfo(context, contentTitle, contentText,\n\t\t\t\t\t\t\tintent);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tmNManager.notify(NOTIFY_ID, msg);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// start next activty \n\t\t\t\t\t\n\t\t\t\t\tstartBookingDetails();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t \t\n\t }", "private void startBookingDetails() {\n\t\t\n\t\n\t Intent launchBookingDetails = new Intent(this, BookingDetails.class);\n\t launchBookingDetails.putExtra(\"obj\", obj);\n\t startActivity(launchBookingDetails);\n\n\t }", "public ViewBookings() {\n initComponents();\n showCBooking();\n showBookingH();\n \n }", "public void bookSale(Sale sale)\n {\n //books the sale\n }", "public boolean checkoutBooking() {\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tboolean bookUpdateSuccess = false;\r\n\r\n\t\t/**\r\n\t\t*\tSet the endTime as now\r\n\t\t*/\r\n\t\t/**\r\n\t\t*\tGet the number of milliSeconds from the system time and set it to the java.sql.Date\r\n\t\t*\tobject to create a booking number and also to set the start time.\r\n\t\t*/\r\n\t\tlong dateTimeMillis = System.currentTimeMillis();\r\n\t\t/**\r\n\t\t*\tThis date is for generating String bookingNo using the date and time values\r\n\t\t*/\r\n\t\tjava.util.Date date = new java.util.Date(dateTimeMillis);\r\n\t\t/**\r\n\t\t*\tPass the current date in sql.Timestamp object.\r\n\t\t*/\r\n\t\tendTime = new java.sql.Timestamp(date.getTime());\r\n\r\n\t\t/**\r\n\t\t*\tCalculate the cost base on the time elapsed between the start time and end time\r\n\t\t*\tdurationMinutes = (difference b/w end and start time) / 1000 to convert millis to seconds / 60 to convert seconds to minutes\r\n\t\t*/\r\n\t\tlong start = startTime.getTime();\r\n\t\tlong end = endTime.getTime();\r\n\t\tlong durationMinutes = (end - start)/60000;\r\n\r\n\t\t/**\r\n\t\t*\tThe cost is set as Rs. 1.27 per minuteand hence will be calulated using durationMinutes\r\n\t\t* The cost will be calculated according to absolute minutes and no decimals will be considered there\r\n\t\t*/\r\n\t\tcost = durationMinutes * 1.27;\r\n\r\n\t\t/**\r\n\t\t*\tShow the cost and confirm to checkout.\r\n\t\t*/\r\n\t\tSystem.out.print(\"\\n\\tTotal cost calculated: \" + cost + \"\\n\\n\\t1. Confirm Checkout\\n\\t2. Cancel\\n\\t\\t>> \");\r\n\t\tint opt = scan.nextInt();\r\n\r\n\t\tswitch (opt) {\r\n\t\t\tcase 1: {\t//confirm checkout\r\n\t\t\t\t//do nothing and move ahead towards the checkout procedure\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcase 2: {\t//Cancel\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\tdefault: {\r\n\t\t\t\tSystem.out.println(\"Invalid Option\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t*\tSince connecting to database (DbConnection()) and updating data (executeUpdateParklot())\r\n\t\t* throw SQLException and throwing an exception from multiple levels again and again is not\r\n\t\t*\ta good way, so its is needed to catch the exception here.\r\n\t\t*/\r\n\t\ttry {\r\n\t\t\t/**\r\n\t\t\t*\tCreate a connection to the database\r\n\t\t\t*/\r\n\t\t\tDbConnection checkoutBookingConn = new DbConnection();\r\n\r\n\r\n\t\t\t/**\r\n\t\t\t*\tupdate the data in table\r\n\t\t\t*/\r\n\t\t\tbookUpdateSuccess = checkoutBookingConn.executeUpdateBooking(endTime, cost, bookingNo);\r\n\r\n\r\n\t\t} catch(SQLException SqlExcep) {\r\n\t\t\tSystem.out.println(\"No booking with the given booking number found.\");\r\n\t\t\t//SqlExcep.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\t//validateConn.closeDbConnection();\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 bookUpdateSuccess;\r\n\t}", "public Seat(int showid, int seatNumber, boolean isOccupied){\n this.showid = showid;\n this.seatNumber = seatNumber;\n this.isOccupied = isOccupied;\n }", "public void book(View view){\n Intent intent = new Intent(this, View_Booked_ItinerariesActivity.class);\n intent.putExtra(MainActivity.USER, email);\n intent.putExtra(MainActivity.CHECK_ADMIN, check);\n startActivity(intent);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n FirstNametxt = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n Lastnametxt = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n mailIdtxt = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n passporttxt = new javax.swing.JTextField();\n jLabel14 = new javax.swing.JLabel();\n Genderbox = new javax.swing.JComboBox();\n jLabel15 = new javax.swing.JLabel();\n Airlinenametxt = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n flightidtxt = new javax.swing.JTextField();\n jLabel8 = new javax.swing.JLabel();\n Availableseatstxt = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n seatingpreftxt = new javax.swing.JComboBox();\n Addbtn = new javax.swing.JButton();\n selectedseattxt = new javax.swing.JTextField();\n BookBtn = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel1.setText(\"Customer Details\");\n\n jLabel2.setText(\"First Name:\");\n\n jLabel3.setText(\"Last Name:\");\n\n jLabel4.setText(\"Email ID:\");\n\n jLabel5.setText(\"Passport:\");\n\n jLabel14.setText(\"Sex:\");\n\n Genderbox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Male\", \"Female\", \"Others\" }));\n Genderbox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n GenderboxActionPerformed(evt);\n }\n });\n\n jLabel15.setText(\"Airline Name:\");\n\n jLabel6.setText(\"Filght ID:\");\n\n jLabel8.setText(\"Availableseats\");\n\n jLabel7.setText(\"Seating Preference:\");\n\n seatingpreftxt.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n seatingpreftxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n seatingpreftxtActionPerformed(evt);\n }\n });\n\n Addbtn.setText(\"Add\");\n Addbtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n AddbtnActionPerformed(evt);\n }\n });\n\n selectedseattxt.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n selectedseattxtActionPerformed(evt);\n }\n });\n\n BookBtn.setText(\"Book\");\n BookBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BookBtnActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(170, 170, 170)\n .addComponent(jLabel1))\n .addGroup(layout.createSequentialGroup()\n .addGap(78, 78, 78)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(BookBtn)\n .addGap(4, 4, 4))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(82, 82, 82)\n .addComponent(seatingpreftxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(79, 79, 79)\n .addComponent(Addbtn))\n .addGroup(layout.createSequentialGroup()\n .addGap(210, 210, 210)\n .addComponent(selectedseattxt, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(253, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel4)\n .addComponent(jLabel14)\n .addComponent(jLabel6))\n .addGap(44, 44, 44)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(flightidtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Genderbox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(mailIdtxt, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(FirstNametxt, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(jLabel3)\n .addComponent(jLabel15))\n .addComponent(jLabel8, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(60, 60, 60)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(passporttxt, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Lastnametxt, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(Airlinenametxt, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Availableseatstxt, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(287, Short.MAX_VALUE))))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(30, 30, 30)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(FirstNametxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3)\n .addComponent(Lastnametxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(mailIdtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(passporttxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(25, 25, 25)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel14)\n .addComponent(jLabel15)\n .addComponent(Airlinenametxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Genderbox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(26, 26, 26)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(flightidtxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8)\n .addComponent(Availableseatstxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addGap(61, 61, 61)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(seatingpreftxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Addbtn))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selectedseattxt, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(35, 35, 35)\n .addComponent(BookBtn)\n .addContainerGap(53, Short.MAX_VALUE))\n );\n }", "public Event createBooking(RequestContext context) {\n\tHotel hotel = (Hotel) context.getFlowScope().get(\"hotel\");\n\tUser user = (User) context.getConversationScope().get(\"user\");\n\tBooking booking = new Booking(hotel, user);\n\tEntityManager em = (EntityManager) context.getFlowScope().get(\"entityManager\");\n\tem.persist(booking);\n\tcontext.getFlowScope().put(\"booking\", booking);\n\treturn success();\n }", "@Override\n public void onClick(View v) {\n\n dp.updateDate(2020, 6, 1);\n tp.setCurrentHour(19);\n tp.setCurrentMinute(30);\n edName.setText(\" \");\n edMobile.setText(\" \");\n edSize.setText(\" \");\n\n Toast.makeText(MainActivity.this, \"You have Reset your reservation\", Toast.LENGTH_LONG).show();\n //Toast.makeText(MainActivity.this, \"Button Reset is clicked\", Toast.LENGTH_SHORT).show();\n }", "void printTicketSeat(String soldSeat)\n {\n\tSystem.out.println(hostName + \",\" + threadName + \" got one ticket\");\n\n }", "public void actionPerformed(ActionEvent e) {\r\n JTextField ownerTf;\r\n String mes;\r\n\r\n String record[] = getRecordOnPan();\r\n\r\n try {\r\n int match[] = data.find(record);\r\n \r\n if (match.length > 1) {\r\n updateStatus(\"More than one match record.\");\r\n return;\r\n } else if (match.length == 0) {\r\n updateStatus(\"Record not found.\");\r\n return;\r\n }\r\n \r\n ownerTf = new JTextField();\r\n ownerTf.setText(record[5]);\r\n mes = \"Enter customer id\";\r\n \r\n int result = JOptionPane.showOptionDialog(\r\n frame, new Object[] {mes, ownerTf},\r\n \"Booking\", JOptionPane.OK_CANCEL_OPTION,\r\n JOptionPane.PLAIN_MESSAGE,\r\n null, null, null);\r\n\r\n if (result == JOptionPane.OK_OPTION) {\r\n record[5] = ownerTf.getText();\r\n bc.handleUpdateGesture(match[0], record);\r\n updateStatus(\"Subcontractor booked.\");\r\n }\r\n } catch (Exception ex) {\r\n updateStatus(ex.getMessage());\r\n }\r\n }", "public void seal();", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "public void setBookingId(int value) {\n this.bookingId = value;\n }", "@Override\n public void onClick(View view) {\n addCredit();\n }", "@Override\n\tpublic boolean cancelSeat(int bookingId) {\n\t\tSession session = factory.getCurrentSession();\n\t\tQuery query = session\n\t\t\t\t.createQuery(\"delete from Booking b where b.bookingId=\" + bookingId + \"\");\n\t\tint i = query.executeUpdate();\n\t\t//System.out.println(\"status change\");\n\t\treturn true;\n\t}", "public void msgSitCustomerAtTable(CustomerAgent customer, int tableNum){\n\tMyCustomer c = new MyCustomer(customer, tableNum);\n\tc.state = CustomerState.NEED_SEATED;\n\tcustomers.add(c);\n\tstateChanged();\n }", "@Override\n public void onClick(View v) {\n\n int day = dp.getDayOfMonth();\n int month = dp.getMonth() + 1;\n int year = dp.getYear();\n\n int mobile = Integer.parseInt(edMobile.getText().toString());\n int size = Integer.parseInt(edSize.getText().toString());\n String name = edName.getText().toString();\n String date = \"Date is \" + day + \"/\" + month + \"/\" + year;\n String time = \"Time is \" + tp.getCurrentHour() + \":\" + tp.getCurrentMinute();\n\n String displayS = \"Hi \" + name+ \", You have reserved a \" + size + \" person(s) smoking table on \" + date + \" at \" + time + \". Your phone number is \" + mobile + \" .\";\n String displayNonS = \"Hi \" + name + \", You have reserved a \" + size + \" person(s) non-smoking table on \" + date + \" at \" + time + \". Your phone number is \" + mobile + \" .\";\n\n //Toast.makeText(MainActivity.this, \"Button Click\", Toast.LENGTH_LONG).show();\n if (!name.isEmpty() && mobile != 0 && size != 0) {\n if (cbEnabled.isChecked()) {\n Toast.makeText(MainActivity.this, displayS, Toast.LENGTH_LONG).show();\n }\n else{\n Toast.makeText(MainActivity.this, displayNonS, Toast.LENGTH_LONG).show();\n }\n tvMessage.setText(\"You have successfully booked a table.\");\n }\n else {\n tvMessage.setText(\"Your name / mobile number / size of group is/are missing. Please fill in the required fields.\");\n }\n }", "private static void addNewBooking() {\n ArrayList<Customer> listCustomer = FuncFileCSVCustomer.getFileCSVToListCustomer();\n listCustomer.sort(new CustomerSort());\n int i = 1;\n for (Customer customer : listCustomer) {\n System.out.println(\"-------------------------\");\n System.out.println(\"Customer \" + i + \" : \");\n System.out.println(customer.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose Customer Booking\");\n Customer customer = listCustomer.get(scanner.nextInt() - 1);\n scanner.nextLine();\n System.out.println(\"\\n1. Booking Villa.\" +\n \"\\n2. Booking House.\" +\n \"\\n3. Booking Room.\");\n System.out.println(\"Choose Service Booking\");\n String choose = scanner.nextLine();\n switch (choose) {\n case \"1\":\n i = 1;\n ArrayList<Villa> listVilla = FuncFileCSVVilla.getFileCSVToListVilla();\n for (Villa villa : listVilla) {\n System.out.println(\"-------------------------\");\n System.out.println(\"No : \" + i);\n System.out.println(villa.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose Villa Booking\");\n int chooseVillaBooking;\n chooseVillaBooking = scanner.nextInt();\n Villa villa = listVilla.get(chooseVillaBooking - 1);\n customer.setService(villa);\n break;\n case \"2\":\n i = 1;\n ArrayList<House> listHouse = FuncFileCSVHouse.getFileCSVToListHouse();\n for (House house : listHouse) {\n System.out.println(\"-------------------------\");\n System.out.println(\"No : \" + i);\n System.out.println(house.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose House Booking\");\n int chooseHouseBooking;\n chooseHouseBooking = scanner.nextInt();\n House house = listHouse.get(chooseHouseBooking - 1);\n customer.setService(house);\n break;\n case \"3\":\n i = 1;\n ArrayList<Room> listRoom = FuncFileCSVRoom.getFileCSVToListRoom();\n for (Room room : listRoom) {\n System.out.println(\"-------------------------\");\n System.out.println(\"No : \" + i);\n System.out.println(room.showInfo());\n System.out.println(\"-------------------------\");\n i++;\n }\n System.out.println(\"Choose Room Booking\");\n int chooseRoomBooking;\n chooseRoomBooking = scanner.nextInt();\n Room room = listRoom.get(chooseRoomBooking - 1);\n customer.setService(room);\n break;\n default:\n System.out.println(\"Nhap sai, quay ve menu.\");\n backToMenu();\n break;\n\n }\n //bi ghi de do get ra khong duoc\n ArrayList<Customer> listCustomerBooking = FuncFileCSVBooking.getFileCSVToListBooking();\n //???????????????????? get tu file ra khong duoc\n listCustomerBooking.add(customer);\n FuncFileCSVBooking.writeBookingToFileCSV(listCustomerBooking);\n displayMainMenu();\n }", "public void chooseSeat() {\n\t\tboolean correctSeat = false;\n\t\twhile (correctSeat = false) {\n\t\t\tfor (int i = 0; i < 6; i++) {\n\t\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\t\tseat[i][j] = \"#\";\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String[] a : seat) {\n\t\t\t\tfor (String i : a) {\n\t\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Choose your seat by entering the number of the desired row followed by desired column: \");\n\t\t\tint row = keyboard.nextInt();\n\t\t\tint column = keyboard.nextInt();\n\t\t\tseat[row][column] = \"O\";\n\t\t\tSystem.out.println(\"/n/n\");\n\n\t\t\tfor (String[] a : seat) {\n\t\t\t\tfor (String i : a) {\n\t\t\t\t\tSystem.out.print(i + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\"/nIs this the seat indicated by an 'O' the seat that you wanted?\");\n\t\t\tSystem.out.println(\"/nEnter 1 for yes or 2 for no: \");\n\t\t\tint answer = keyboard.nextInt();\n\n\t\t\tif(answer == 1){\n\t\t\t\tSystem.out.println(\"Your seat is in section \" + row + \" seat \" + column + \"/n\");\n\t\t\t\tcorrectSeat = true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"/nYou may now select your seat again./n\");\n\t\t\t\tcorrectSeat = false;\n\t\t\t}\n\n\t\t}\n\t}", "@Test\n\tpublic void testBook() throws Exception {\n\t\tString createdReservationID = bookingManagement.book(USER_ID, Arrays.asList(room1.getId()),\n\t\t\t\tvalidStartDate, validEndDate);\n\t\t// a reservation must be returned\n\t\tassertNotNull(\"Reservation id is null\", createdReservationID);\n\t\tassertFalse(\"Reservation id is emtpy\", createdReservationID.isEmpty());\n\t\t// check if returned reservation is correct\n\t\tReservation createdReservation = bookingManagement.getReservation(createdReservationID);\n\t\tassertNotNull(\"Reservation of returned id was not found\", createdReservation);\n\n\t\tassertEquals(USER_ID, createdReservation.getBookingUserId());\n\n\t\tassertEquals(1, createdReservation.getBookedFacilityIds().size());\n\t\tassertTrue(createdReservation.getBookedFacilityIds().contains(room1.getId()));\n\t\tassertEquals(validStartDate, createdReservation.getStartTime());\n\t\tassertEquals(validEndDate, createdReservation.getEndTime());\n\t}", "private void colourBookingTable(ArrayList<String> covidLockedSeats, ArrayList<String> bookedSeats) {\n for (String covidLockedSeat : covidLockedSeats) {\n for (Button button : seatsArray) {\n if (covidLockedSeat.equals(button.getId().trim())) {\n button.setStyle(\"-fx-background-color: orange\");\n button.setDisable(true);\n }\n }\n }\n for (String bookedSeat : bookedSeats) {\n for (Button button : seatsArray) {\n if (bookedSeat.equals(button.getId().trim())) {\n button.setStyle(\"-fx-background-color: LIGHTCORAL\");\n button.setDisable(true);\n }\n }\n }\n }" ]
[ "0.6919938", "0.6837328", "0.6628562", "0.66012967", "0.65746164", "0.6371486", "0.6311218", "0.6250911", "0.61840373", "0.61626786", "0.6156107", "0.6093723", "0.60845476", "0.6029663", "0.5986393", "0.59704185", "0.5903268", "0.58989143", "0.58833414", "0.5838885", "0.5785532", "0.5781803", "0.5763311", "0.5751743", "0.5746082", "0.5739204", "0.5734178", "0.571888", "0.5717256", "0.57170546", "0.57067794", "0.5683457", "0.5677826", "0.5663199", "0.5657402", "0.56551933", "0.56547934", "0.5652949", "0.56529486", "0.5649638", "0.56485415", "0.5645278", "0.5632383", "0.56316274", "0.562748", "0.56224495", "0.55975497", "0.55955946", "0.55721486", "0.55661213", "0.55554324", "0.5543714", "0.5537042", "0.5534696", "0.55334616", "0.55003846", "0.5493592", "0.5487582", "0.5483077", "0.54758954", "0.54733694", "0.5469601", "0.54635495", "0.5458766", "0.5452262", "0.5449226", "0.54371583", "0.5421271", "0.54139984", "0.5410741", "0.5408078", "0.54012203", "0.53996456", "0.53986716", "0.53943104", "0.5393327", "0.538363", "0.53791004", "0.53740364", "0.53725386", "0.5371139", "0.53673637", "0.53668034", "0.5351703", "0.5348946", "0.5348805", "0.5339425", "0.5338321", "0.533696", "0.5327523", "0.5326542", "0.5326542", "0.5318536", "0.5314334", "0.5314106", "0.5307042", "0.5305923", "0.53004444", "0.5297023", "0.52965975" ]
0.5861261
19
Method that gets called when a date is selected from the date picker.
@FXML private void populateFilmDropDownList(ActionEvent event) throws ParseException { Main.resetFilmList(); Main.readJSONFile("filmsJSON.txt"); try { Main.setSelectedDate(datePicker.getValue().toString()); ObservableList<String> filmTitles = FXCollections.observableArrayList(); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd"); for (Film film : Main.getFilmList()) { if ((LocalDate.parse(film.getStartDate(), formatter).isBefore(datePicker.getValue()) || LocalDate.parse(film.getStartDate(), formatter).equals(datePicker.getValue())) && (LocalDate.parse(film.getEndDate(), formatter).isAfter(datePicker.getValue()) || LocalDate.parse(film.getEndDate(), formatter).equals(datePicker.getValue()))) filmTitles.add(film.getTitle()); } filmDropDownList.setItems(filmTitles); } catch(NullPointerException e) { e.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSelectedDate(Date selectedDate);", "public Date getSelectedDate();", "public void onDateSelect(SelectEvent event) {\r\n\t\t/**\r\n\t\t * FacesContext facesContext = FacesContext.getCurrentInstance();\r\n\t\t * SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t * facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,\r\n\t\t * \"Date Selected\", format.format(event.getObject())));\r\n\t\t */\r\n\t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Button button = (Button) findViewById(R.id.dateBtn);\n button.setText(\"Selected Date: \" + month + \"/\" + day + \"/\" + year);\n calendarSelected.set(year, month, day);\n userSelectedDate = true;\n\n if (!userSelectedTime) {\n int hour = calendarSelected.get(Calendar.HOUR_OF_DAY);\n int minute = calendarSelected.get(Calendar.MINUTE);\n\n button = (Button) findViewById(R.id.timeBtn);\n button.setText(\"Selected Time: \" + hour + \":\" + String.format(\"%02d\",minute));\n }\n }", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n if(listener != null) //If the listener exists\n listener.onDatePicked(year, month+1, day, id);\n }", "protected void dateSelected(boolean canceled) {\n \t\tif (!canceled) {\n \t\t\tupdateDateText();\n \t\t}\n \n \t\tfor (SelectionListener listener : pickerListeners) {\n \t\t\tlistener.widgetSelected(null);\n \t\t}\n \t\tpickButton.setEnabled(true);\n \t\tpickerShell.close();\n \t}", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t\t }", "@Override\r\n public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\r\n year = selectedYear;\r\n month = selectedMonth;\r\n day = selectedDay;\r\n\r\n // Show selected date\r\n W_date.setText(new StringBuilder().append(month + 1).append(\"-\").append(day)\r\n .append(\"-\").append(year).append(\" \"));\r\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\n callerActivity.setSelectedDate(year,month+1,day);\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(selectedYear, selectedMonth, selectedDay);\n\n if (!isDateOK(calendar.getTime())) {\n Snackbar.make(mRoot, \"Project start cant be in the past!\", Snackbar.LENGTH_LONG).show();\n } else {\n txtProjectStart.setText(dateFormat.format(calendar.getTime()));\n }\n }", "public void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\t\tint selectedMonth, int selectedDay) {\n\t\t\t\t\tyear = selectedYear; \n\t\t\t\t\tmonth = selectedMonth; \n\t\t\t\t\tday = selectedDay;\n\t\t\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t\t\t// Month is 0 based, just add 1\n\t\t\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t\t\t.append(year));\n\t\t\t}", "@Override\n public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n\n year = selectedYear;\n month = selectedMonth;\n day = selectedDay;\n\n showDialog(AppUtils.TIME_DIALOG_ID);\n\n }", "@Override\r\n\t\tpublic void onDateSet(DatePicker view, int selectedYear,\r\n\t\t\t\tint selectedMonth, int selectedDay) {\r\n\r\n\t\t\tString year = String.valueOf(selectedYear);\r\n\t\t\tString month = \"\";\r\n\t\t\tString day = \"\";\r\n\r\n\t\t\tif (selectedMonth < 9) {\r\n\t\t\t\tmonth = \"0\" + String.valueOf(selectedMonth + 1);\r\n\t\t\t} else {\r\n\t\t\t\tmonth = String.valueOf(selectedMonth + 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (selectedDay < 10) {\r\n\t\t\t\tday = \"0\" + String.valueOf(selectedDay);\r\n\t\t\t} else {\r\n\t\t\t\tday = String.valueOf(selectedDay);\r\n\t\t\t}\r\n\r\n\t\t\tselect_date = year + \"-\" + month + \"-\" + day;\r\n\r\n\t\t\tet_select_date.setText(select_date);\r\n\r\n\t\t}", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_start_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday)+\"\" );\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\t\t}", "@Override\n\t\tpublic void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\tint selectedMonth, int selectedDay) {\n\n\t\t\tyear = selectedYear;\n\t\t\tmonth = selectedMonth;\n\t\t\tday = selectedDay;\n\n\t\t\tcreate_srart_date.setText(new StringBuilder().append(year)\n\t\t\t\t\t.append(\"-\").append(month + 1).append(\"-\").append(day));\n\n\t\t}", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, day);\n pickedDate = calendar.getTimeInMillis();\n\n }", "public void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\t\tint selectedMonth, int selectedDay) {\n\t\t\t\tyear = selectedYear;\n\t\t\t\tmonth = selectedMonth;\n\t\t\t\tday = selectedDay;\n\t\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t\t// Month is 0 based, just add 1\n\t\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t\t.append(year));\n\t\t\t}", "@Override\n public void onSelectedDayChange(@NonNull CalendarView calendarView, int year, int month, int dayofmonth) {\n String dateselectedwoformat = String.valueOf(year)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(dayofmonth);\n SimpleDateFormat format = new SimpleDateFormat(datePattern);\n String dateselected = null;\n try {\n Date date = format.parse(dateselectedwoformat);\n Log.d(\"date\", \"onSelectedDayChange: \"+date);\n dateselected = format.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.d(\"mainfrag - date\", \"onSelectedDayChange: \"+dateselected);\n Intent intent = new Intent(getActivity(),worldCupFixtureActivity.class);\n intent.putExtra(worldCupFixtureFragment.DATE_SELECT,dateselected);\n startActivity(intent);\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n year = selectedYear;\n month = selectedMonth;\n day = selectedDay;\n\n // set selected date into textview\n txtDateLastSeen.setText(new StringBuilder()\n .append(day).append(\"-\")\n .append(month + 1).append(\"-\")\n .append(year).append(\" \"));\n\n // set selected date into datepicker also\n// dpResult.init(year, month, day, null);\n\n }", "@Override\n\t\tpublic void onSelectedDayChange(CalendarView view, int year, int month,\n\t\t\t\tint dayOfMonth) {;\n\t\t\t// TODO Auto-generated method stub\n\t\t\tmonth++; // month fix, gives february when click on march so I added + 1\n\t\t\tToast.makeText(getBaseContext(),\"Selected Date is\\n\\n\"\n\t\t\t\t+month+\" : \"+dayOfMonth+\" : \"+year ,\n\t\t\t\tToast.LENGTH_LONG).show();\n\n\t\t\tString userId = getIntent().getStringExtra(LogInPage.ID_EXTRA);\n\t\n\t\t\tIntent taskView = new Intent(NavigationMenu.this, ListTasksActivity.class);\n\t\t\ttaskView.putExtra(ID_EXTRA, userId);\n\t\t\ttaskView.putExtra(selectByDay, true);\n\n\t\t\tBundle bundle = new Bundle();\n\t\t\tbundle.putSerializable(\"day\", dayOfMonth);\n\t\t\tbundle.putSerializable(\"month\", month);\n\t\t\tbundle.putSerializable(\"year\", year);\n\t\t\ttaskView.putExtras(bundle);\n\t\t\tstartActivity(taskView);\n\t\t\t\n\t\t}", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "public void onDateSet(DatePicker view, int selectedYear,\r\n\t\t\t\tint selectedMonth, int selectedDay) {\r\n\r\n\t\t\tyear = selectedYear;\r\n\r\n\t\t\tmonth = selectedMonth;\r\n\r\n\t\t\tday = selectedDay;\r\n\r\n\t\t\t// set selected date into Text View\r\n\r\n\t\t\tmBirthdayText.setText(new StringBuilder()\r\n\t\t\t\t\t.append(String.format(\"%02d\", month + 1))\r\n\r\n\t\t\t\t\t.append(\"-\").append(String.format(\"%02d\", day)).append(\"-\")\r\n\t\t\t\t\t.append(year).append(\" \"));\r\n\r\n\t\t\t// set selected date into Date Picker\r\n\r\n\t\t}", "@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view,\n\t\t\t\t\t\t\t\tint selectedyear, int monthOfYear,\n\t\t\t\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\t\t\tyear = selectedyear;\n\t\t\t\t\t\t\tmonth = monthOfYear;\n\t\t\t\t\t\t\tday = dayOfMonth;\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"yyyy-MM-dd\")\n\t\t\t\t\t\t\t\t\t\t.parse(year + \"-\" + (month + 1) + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ day);\n\n\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\tString selectedDate = outputFormatter\n\t\t\t\t\t\t\t\t\t\t.format(date); // Output : 01/20/2012\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!selectedDate...\"\n\t\t\t\t\t\t\t\t\t\t+ selectedDate);\n\n\t\t\t\t\t\t\t\t// Date currDate=new Date();\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!currDate.\"\n\t\t\t\t\t\t\t\t\t\t+ currDate);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"output.compareTo(currDate)..\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ selectedDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.compareTo(currDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()));\n\n\t\t\t\t\t\t\t\tif (selectedDate.compareTo(currDate.toString()) >= 0\n\t\t\t\t\t\t\t\t\t\t&& selectedDate.compareTo(output\n\t\t\t\t\t\t\t\t\t\t\t\t.toString()) <= 0) {\n\t\t\t\t\t\t\t\t\t// then do your work\n\t\t\t\t\t\t\t\t\t// Display Selected date in textbox\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter1 = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\t\tString date_formating = outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t.format(date);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!after_formating..\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"!!!!!\" + date_formating);\n\n\t\t\t\t\t\t\t\t\trf_booking_date_box.setText(selectedDate);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_date_header.setText(selectedDate);\n\n\t\t\t\t\t\t\t\t\t// rf_booking_date_box.setText(year + \"-\" +\n\t\t\t\t\t\t\t\t\t// (month + 1)\n\t\t\t\t\t\t\t\t\t// + \"-\" + day);\n\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Date = date_formating;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// show message\n\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_invalid_date),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}", "public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnStartDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n year = selectedYear;\n month = selectedMonth;\n day = selectedDay;\n\n // set selected date into textview\n tvDisplayDate.setText(new StringBuilder().append(month + 1)\n .append(\"-\").append(day).append(\"-\").append(year)\n .append(\" \"));\n\n // set selected date into datepicker also\n dpResult.init(year, month, day, null);\n\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n\n Toast.makeText(getBaseContext(),\"Selected Date is\\n\\n\"\n +dayOfMonth+\" : \"+month+\" : \"+year ,\n Toast.LENGTH_LONG).show();\n }", "public Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}", "public void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\tint selectedMonth, int selectedDay) {\n\t\t\tyear = selectedYear;\n\t\t\tmonth = selectedMonth;\n\t\t\tday = selectedDay;\n\n\t\t\t// set selected date into textview\n\t\t\tdate=new StringBuilder().append(month + 1)\n\t\t\t\t\t.append(\"-\").append(day).append(\"-\").append(year)\n\t\t\t\t\t.append(\" \").toString();\n\t\t\ttripDate.setText(date);\n\n\n\t\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n }", "public void onDateSet(DatePicker view, int selectedYear,\n\t\t\t\tint selectedMonth, int selectedDay) {\n\t\t\tyear = selectedYear;\n\t\t\tmonth = selectedMonth;\n\t\t\tday = selectedDay;\n\n\t\t\t// set selected date into textview\n\t\t\tfecha.setText(new StringBuilder().append(day).append(\"-\")\n\t\t\t\t\t.append(month + 1).append(\"-\").append(year).append(\" \"));\n\n\t\t}", "@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateScheduleDoctor();\n\t\t\t\t\t}\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onSelectedDayChange(CalendarView view, int year,\n\t\t\t\t\t\tint month, int dayOfMonth) {\n\n\t\t\t\t\tif (dayOfMonth != currentSelectedDate.getDate()\n\t\t\t\t\t\t\t|| (dayOfMonth == currentSelectedDate.getDate() && month != currentSelectedDate\n\t\t\t\t\t\t\t\t\t.getMonth())) {\n\n\t\t\t\t\t\tcurrentSelectedDate = new Date(calendarView.getDate());\n\t\t\t\t\t\tappointment.setDate(new SimpleDateFormat(\"dd-MM-yyyy\")\n\t\t\t\t\t\t\t\t.format(currentSelectedDate));\n\t\t\t\t\t\tupdateSchedulePatient();\n\t\t\t\t\t}\n\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tshowDialog(SET_DATE_DIALOG);\n\n\t\t\t}", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n date.setText(year+\"/\"+(month+1)+ \"/\"+ day);\n hDate = year+\"/\"+(month+1)+ \"/\"+ day;\n check(hDate, status);\n }", "public void dateChange(SelectEvent event) {\n\t\tDate date = (Date) event.getObject();\n\t\tisFechaCorrecta(date, event.getComponent());\n\t}", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_end_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday) +\"\" );\n }", "@Override\n public void onDateSelected(int month, String monthName, int day,\n int year, String dateFormatServer, String dateFormatApp,\n Date date) {\n eventDate.setText(dateFormatApp);\n// choosenDateTextView.setText(dateFormatApp);\n// dateFormatServerString = dateFormatServer;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onClick(View v) {\n \tToast.makeText(TaskActivity.this, \"Setting dates!\", Toast.LENGTH_SHORT).show();\n \tshowDatePickerDialog(mSelectedYear, mSelectedMonth, mSelectedDay, mOnDateSetListener);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onClick(Date date) {\n Event_dialog(date);\n }", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n final String selectedDate = year + \"-\" + String.format(\"%02d\", (month+1)) + \"-\" + String.format(\"%02d\", day);\n mDateSession.setText(selectedDate);\n dateFormatted=year+\"\"+String.format(\"%02d\", (month+1))+\"\"+String.format(\"%02d\", day);\n }", "public Date getSelectDate();", "public void onDateSet(DateSlider view, Calendar selectedDate) {\n \t\t\t \t\t\n \t\tSimpleDateFormat simple = new SimpleDateFormat(\"dd-MM-yyyy\");\n \t\tSimpleDateFormat simple2 = new SimpleDateFormat(\"yyyy-MM-dd\");\n \t\tDate date1;\n \t\tString date2 = null;\n\t\t\t\ttry {\n\t\t\t\t\tdate1 = simple2.parse(String.format(\"%tF\", selectedDate, selectedDate, selectedDate));\n\t\t\t\t\tdate2 = simple.format(date1);\n\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} \t\t\n\t\t\t\t \t\t \n\t\t\t\ttanggal.setText(date2);\n \t}", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n int mMonth = month + 1;\n String bydate = year + \"-\" + mMonth + \"-\" + day;\n mIdTvMoonatCenterShortLine.setText(bydate);\n\n List<SleepDataInfo> all = manager.findAllSleep();\n SleepDataInfo sleepDataInfo_total = manager.findSleepDataInfo(SPUtil.getUserName(getApplication()), bydate);\n RefreshView(sleepDataInfo_total); /*选择日期后刷新ui*/\n }", "@FXML\n\tprivate void dateSelected(ActionEvent event) {\n\t\tint selectedIndex = taskList.getSelectionModel().getSelectedIndex();\n\t\tString task = taskList.getSelectionModel().getSelectedItem();\n\t\tString selectedDate = dateSelector.getValue().toString();\n\t\tif (task.contains(\" due by \")) {\n\t\t\ttask = task.substring(0, task.lastIndexOf(\" \")) + \" \" + selectedDate;\n\n\t\t} else {\n\t\t\ttaskList.getItems().add(selectedIndex, task +\" due by \" + selectedDate );\n\t\t\ttaskList.getItems().remove(selectedIndex + 1);\n\t\t}\n\t\ttask = task.replace(\"@task \", \"\");\n\t\tString task_split[] = task.split(\" \", 2);\n\t\tclient.setTaskDeadline(task_split[1].replace(\"\\n\", \"\"), selectedDate);\n\t}", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\t\t\tendDateBtn.setText( getFormattedDate(year, month, day) );\n\t\t\t\n\t\t\ttry {\n\t\t\t\tDatePicker startDatePicker = dpdS.getDatePicker();\n\t\t\t\tDate endDate = (Date) formatter.parse( getFormattedDate(year, month, day) );\n\t\t\t\tDate startDate = (Date) formatter.parse( getFormattedDate(startDatePicker) );\n\t\t\t\tdpdS.getDatePicker().setMinDate(endDate.getTime());\n\t\t\t\tif ( endDate.getTime() < startDate.getTime() ) {\n\t\t\t\t\tdpdS.updateDate(year, month, day);\n\t\t\t\t\tstartDateBtn.setText( getFormattedDate(year, month, day) );\n\t\t\t\t}\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}", "public interface DatePickerListener {\n public void onDateSelected(String date);\n}", "public void selectDateToMeet(View view) {\n int day;\n int month;\n int year;\n\n /* if the date button has tag of DATE_PICKED then set the date on dialog to date picked earlier,\n otherwise display todays date on the dialog */\n if (dateText.getText().toString().equals(\"\") || !dateText.getText().toString().toLowerCase().contains(\"date\")) {\n String dates[] = dateText.getText().toString().split(\"-\");\n\n day = Integer.parseInt(dates[2]);\n //minus 1 to get the month index\n month = Integer.parseInt(dates[1]) - 1;\n year = Integer.parseInt(dates[0]);\n\n } else {\n //get todays date\n Calendar cal = Calendar.getInstance();\n\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n }\n\n //set the dialog with the date and show it\n DatePickerDialog dialog = new DatePickerDialog(BookPlanActivity.this,\n android.R.style.Theme_Holo_Light_Dialog_MinWidth,\n mDataSetListener, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEUTRAL, \"Clear Date\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n dateText.setText(\"Select a date\");\n }\n });\n\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.show();\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendarNow = Calendar.getInstance();\n calendarNow.set(selectedYear, selectedMonth, selectedDay);\n if (calendarNow.getTimeInMillis() < view.getMinDate()) {\n begdaShowDatePickerDialog();\n Toast.makeText(getActivity(), getResources().getString(R.string.createOrder_datePicker_selectFutureDate), Toast.LENGTH_SHORT).show();\n view.updateDate(begCalendar.get(Calendar.YEAR), begCalendar.get(Calendar.MONTH), begCalendar.get(Calendar.DAY_OF_MONTH));\n }\n\n begYear = selectedYear;\n begMonth = selectedMonth;\n begDay = selectedDay;\n begCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvBegda.setText(new StringBuilder().append(char2(begDay))\n .append(\".\").append(char2(begMonth + 1)).append(\".\").append(begYear));\n if (tvEndda.getText().toString().equals(getResources().getString(R.string.leave_dmy))) {\n endYear = selectedYear;\n endMonth = selectedMonth;\n endDay = selectedDay;\n endCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvEndda.setText(new StringBuilder().append(char2(endDay))\n .append(\".\").append(char2(endMonth + 1)).append(\".\").append(endYear));\n }\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n bookingDate = dayOfMonth + \"-\" + (month + 1) + \"-\" + year;\n date = dayOfMonth;\n mon = (month + 1);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n //Month is from 0 to 11 so need to increment once\n month++;\n //Store selected date in variable\n dob = month + \"/\" + day + \"/\" + year;\n Log.d(\"CIS 3334\", \"date = \" + dob);\n\n //Set the date in the mainViewModel\n mainViewModel.setDateOfBirth(dob);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n currentDate.set(year, monthOfYear, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker arg0, int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnEndDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n month=month+1;\n String currentInfo=\"\";\n Cursor cursor=myDb.getRow(mId1);// finding selected row item to store the selected date\n if(cursor.moveToFirst()){\n do{\n currentInfo=cursor.getString(cursor.getColumnIndex(myDb.KEY_DATE));\n\n }while (cursor.moveToNext());\n cursor.close();\n }\n currentInfo =year+\"-\"+month+\"-\"+day;\n //Storing the date at selected row\n myDb.updateRow(mId1, currentInfo);\n\n populateListViewFromDB();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n showDate(arg1, arg2 + 1, arg3);\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public void setSelectedDate(int year, int month, int day)\n {\n setSelectedDay(day);\n setSelectedMonth(month);\n setSelectedYear(year);\n TextView dateText = (TextView) findViewById(R.id.selectedDateTxt);\n dateText.setText(String.valueOf(selectedDay)+\"-\"+String.valueOf(selectedMonth)+\"-\"+String.valueOf(selectedYear));\n\n showLoading();\n\n //Formatting the date\n String selectedDate=getSelectedDate()+\"T00:00:00\";\n\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n connectionManager.getPitchSchedule(pitch.getVenueID(),pitch.getPitchName(),selectedDate,this);\n }\n\n //Discard any selected slots\n reservationStartsOn=null;\n reservationEndsOn=null;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void onDateSelected(String dateStr){\n\t\t\n\t\tNewExpenseFragment newExpenseFrag = (NewExpenseFragment) getFragmentManager().findFragmentById(R.id.fragmentContainer);\n\t\t\n\t\tif(newExpenseFrag != null){\n\t\t\tnewExpenseFrag.updateDateTextView(dateStr);\n\t\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth){\n String string = \"You've chosen year: \" + year +\n \" and month: \" + String.valueOf(month + 1) +\n \" and day: \" + dayOfMonth;\n model.setDate(string);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDatedeparture();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew DatePickerDialog(getActivity(), date, myCalendar\n\t\t\t\t\t\t.get( Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n\t\t\t\t\t\tmyCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\t\t\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n startYear = year;\n startMonth = monthOfYear + 1;\n startDay = dayOfMonth;\n try {\n dateChoisie = df.parse(String.valueOf(startYear + \"-\" + startMonth + \"-\" + startDay));\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.e(\"DATE CHOISIE\",df.format(dateChoisie));\n switch (v.getId()){\n case R.id.buttonDateDebut:\n editDateDebut.setText(df.format(dateChoisie));\n break;\n case R.id.buttonDateFin:\n editDateFin.setText(df.format(dateChoisie));\n break;\n }\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, dated, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n\t\t\tstartDateBtn.setText( getFormattedDate(year, month, day) );\n\t\t\t// change end date\n\t\t\t\n\t\t\ttry {\n\t\t\t\tDatePicker endDatePicker = dpdE.getDatePicker();\n\t\t\t\tDate startDate = (Date) formatter.parse( getFormattedDate(year, month, day) );\n\t\t\t\tDate endDate = (Date) formatter.parse( getFormattedDate(endDatePicker) );\n\t\t\t\tdpdE.getDatePicker().setMinDate(startDate.getTime());\n\t\t\t\tif ( endDate.getTime() < startDate.getTime() ) {\n\t\t\t\t\tdpdE.updateDate(year, month, day);\n\t\t\t\t\tendDateBtn.setText( getFormattedDate(year, month, day) );\n\t\t\t\t}\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(select_time_date.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, dayOfMonth);\n Date date = new Date(calendar.getTimeInMillis());\n edit.setText(Utils.formatDate(date, Constants.FORMAT_DATE_YEAR_MONTH_DAY));\n if (startDate) {\n mStartDate = new Date(date.getTime());\n } else {\n mEndDate = new Date(date.getTime());\n }\n // has to do here\n updateInterest();\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n DateFormat df = DateFormat.getDateInstance();\n String formattedDate = df.format(chosenDate);\n\n // Display the chosen date to app interface\n C_birthdate.setText(formattedDate);\n //C_reg_date.setText(formattedDate);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n trigger.getStarttime().set(Calendar.YEAR, year);\n trigger.getStarttime().set(Calendar.MONTH, monthOfYear);\n trigger.getStarttime().set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateStartDate();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDateArrival();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date2, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendarNow = (Calendar) endCalendar.clone();\n calendarNow.set(selectedYear, selectedMonth, selectedDay);\n if (calendarNow.getTimeInMillis() < view.getMinDate()) {\n enddaShowDatePickerDialog();\n Toast.makeText(getActivity(), getResources().getString(R.string.createOrder_datePicker_selectPastDate), Toast.LENGTH_SHORT).show();\n view.updateDate(endCalendar.get(Calendar.YEAR), endCalendar.get(Calendar.MONTH), endCalendar.get(Calendar.DAY_OF_MONTH));\n }\n\n endYear = selectedYear;\n endMonth = selectedMonth;\n endDay = selectedDay;\n endCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvEndda.setText(new StringBuilder().append(char2(endDay))\n .append(\".\").append(char2(endMonth + 1)).append(\".\").append(endYear));\n\n if (tvBegda.getText().toString().equals(getResources().getString(R.string.leave_dmy))) {\n begYear = selectedYear;\n begMonth = selectedMonth;\n begDay = selectedDay;\n begCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvBegda.setText(new StringBuilder().append(char2(begDay))\n .append(\".\").append(char2(begMonth + 1)).append(\".\").append(begYear));\n }\n }", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, start_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, month);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void onDateSet(DatePicker view, int year, int month, int day){\n TextView tv = getActivity().findViewById(R.id.textBornAdult);\n\n // Create a Date variable/object with user chosen date\n Calendar cal = Calendar.getInstance(SBFApplication.config.locale);\n cal.setTimeInMillis(0);\n cal.set(year, month, day, 0, 0, 0);\n Date chosenDate = cal.getTime();\n\n // Format the date using style and locale\n // DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, BaseActivity.getInstance().config.locale);\n String formattedDateShow = formatterBornShow.format(chosenDate);\n String formattedDate = formatterTrain.format(chosenDate);\n // formatter.format(date.getDate()\n\n\n // Display the chosen date to app interface\n tv.setText(formattedDateShow);\n dateBorn=formattedDate;\n // MemoryStore.set(getActivity(), \"adultBorn\", formattedDate);\n // MemoryStore.set(getActivity(), \"adultBornShow\", formattedDateShow);\n }", "private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }", "@Override\n\t public void onDateSet(DatePicker view, int year, int monthOfYear,\n\t int dayOfMonth) {\n\t myCalendar.set(Calendar.YEAR, year);\n\t myCalendar.set(Calendar.MONTH, monthOfYear);\n\t myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\t updateLabel();\n\t }", "@Override\n\t\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\t\t\t\t\t int dayOfMonth) {\n\t\t\tmyCalendar.set(Calendar.YEAR, year);\n\t\t\tmyCalendar.set(Calendar.MONTH, monthOfYear);\n\t\t\tmyCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n\t\t\tupdateBirthdayEditText();\n\t\t}", "@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n startshowDate(arg1, arg2+1, arg3);\n //endshowDate(arg1, arg2+1, arg3);\n }", "@Override\n public void onClick(View v) {\n\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }" ]
[ "0.7959755", "0.7854773", "0.75268424", "0.73921645", "0.7363889", "0.7329713", "0.7279211", "0.72642696", "0.7211577", "0.719749", "0.7196108", "0.7192612", "0.717365", "0.7162749", "0.7147311", "0.71404195", "0.7131403", "0.71297973", "0.7125176", "0.711259", "0.7106747", "0.7095204", "0.7092314", "0.70853204", "0.7074291", "0.7062594", "0.70623535", "0.705331", "0.7035457", "0.7032666", "0.7012933", "0.701046", "0.70066875", "0.70013237", "0.6996616", "0.69871974", "0.697953", "0.6969336", "0.6967121", "0.6965984", "0.69595325", "0.69534564", "0.6943101", "0.69375813", "0.6921258", "0.6899207", "0.6885708", "0.6885708", "0.68849754", "0.6875431", "0.6875431", "0.6875431", "0.6875431", "0.6875431", "0.6829887", "0.6825621", "0.6820178", "0.6819374", "0.6814676", "0.68084204", "0.6803736", "0.6802683", "0.67985654", "0.6793976", "0.67850864", "0.6772505", "0.6772136", "0.67649496", "0.67629856", "0.675581", "0.6754838", "0.67363924", "0.67305404", "0.6725805", "0.6722078", "0.6722078", "0.6716847", "0.6709032", "0.67058194", "0.67056125", "0.6705388", "0.6704197", "0.67026186", "0.669939", "0.66941166", "0.669165", "0.66837376", "0.6673058", "0.66642916", "0.6660692", "0.6658335", "0.6656639", "0.6655731", "0.66533697", "0.66533697", "0.6653325", "0.66525346", "0.6646175", "0.6642956", "0.66354525", "0.6633807" ]
0.0
-1
Method that gets called when a film is selected from the dropdown list.
@FXML private void populateTimeDropDownList(ActionEvent event) { try { Main.setSelectedFilmTitle(filmDropDownList.getValue()); Film selectedFilm = Main.getFilmByTitle(Main.getSelectedFilmTitle()); ObservableList<String> timesList = FXCollections.observableArrayList(selectedFilm.getTimes()); for (int i = 0; i< timesList.size(); i++) { if (timesList.get(i).equals("hh:mm")) { timesList.remove(i); i--; } } timeDropDownList.setItems(timesList); } catch (NullPointerException ex) { return; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onItemSelected(MovieModel movieModel);", "@FXML\n private void handleEditFilm() {\n \tFilmItem selectedFilm = filmTable.getSelectionModel().getSelectedItem();\n if (selectedFilm != null) {\n boolean okClicked = mainApp.showFilmEditDialog(selectedFilm, false);\n if (okClicked) {\n showFilmDetails(selectedFilm);\n }\n\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Film Selected\")\n .message(\"Please select a film in the table.\")\n .showWarning();\n }\n }", "private static BookingFilm filmSelection()\n\t{\n\t\t//prints out the name of the movies\n\t\tSystem.out.println(\"Which film would you like to watch:\");\n\t\tSystem.out.println(\"1 Suicide Squad rating: (M)\");\n\t\tSystem.out.println(\"2 Batman vs Superman rating: (P)\");\n\t\tSystem.out.println(\"3 Zootopia rating: (G)\");\n\t\tSystem.out.println(\"4 Deadpool rating: (M)\");\n\t\t\n\t\t//new scanner\n\t\tScanner input = new Scanner(System.in);\n\t\t//variable to choose the moovie number on the list\n\t\t//-1 because the array starts on 0\n\t\tint movieNumber = input.nextInt() - 1;\n\t\t\n\t\t//constructor with all the information for the movie\n\t\tBookingFilm aMovie = new BookingFilm(films[movieNumber].getTitle(), films[movieNumber].getRating());\n\t\t\n\t\t//returns the correct movie\n\t\treturn\n\t\t\t\taMovie;\n\t}", "public void clickMovie()\n\t{\n\n\t\t// code to change the displayed photo\n\t\tSystem.out.println(\"clicked on \" + movieList.getSelectionModel().getSelectedItem());\n\n\t\t// code to change the displayed description, available times and the displayed photo\n\t\tfor (int i = 0; i < movieListItems.size(); i++)\n\t\t{\n\t\t\tif (movieList.getSelectionModel().getSelectedItem().equals(movieListItems.get(i)))\n\t\t\t{ Image validImage = null;\n\t\t\tVariableTracker.movieTitle=movieListItems.get(i);\n\t\t\tVariableTracker.movieDescription=movieDescription.get(i);\n\t\t\t\tdescription.setText(movieDescription.get(i));\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(ImagesPath.get(i));\n\t\t\t\t\tImage image = new Image(file.toURI().toString());\n\t\t\t\t\tvalidImage = image;\n\t\t\t\t}\n\t\t\t\tcatch (NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\tFile file = new File(\"assets/placeholder.png\");\n\t\t\t\t\tImage image = new Image(file.toURI().toString());\n\t\t\t\t\tvalidImage = image;\n\t\t\t\t}\n\t\t\t\tVariableTracker.movieImage=validImage;\n\t\t\t\tiv.setImage(validImage);\n\t\t\t\tObservableList<String> movieTimesItems = FXCollections.observableArrayList();\n\t\t\t\tfor (int j = 0; j < movieTimesList.get(i).length; j++)\n\t\t\t\t{\n\t\t\t\t\tmovieTimesItems.add(movieTimesList.get(i)[j]);\n\t\t\t\t}\n\t\t\t\tmovieTimes.setItems(movieTimesItems);\n\t\t\t}\n\t\t}\n\n\t\t// code to change the available times\n\n\t}", "@FXML\n private void populateFilmDropDownList(ActionEvent event) throws ParseException {\n\n Main.resetFilmList();\n Main.readJSONFile(\"filmsJSON.txt\");\n try {\n Main.setSelectedDate(datePicker.getValue().toString());\n\n ObservableList<String> filmTitles = FXCollections.observableArrayList();\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\n\n for (Film film : Main.getFilmList()) {\n if ((LocalDate.parse(film.getStartDate(), formatter).isBefore(datePicker.getValue()) ||\n LocalDate.parse(film.getStartDate(), formatter).equals(datePicker.getValue()))\n && (LocalDate.parse(film.getEndDate(), formatter).isAfter(datePicker.getValue()) ||\n LocalDate.parse(film.getEndDate(), formatter).equals(datePicker.getValue())))\n filmTitles.add(film.getTitle());\n }\n\n filmDropDownList.setItems(filmTitles);\n }\n catch(NullPointerException e) {\n e.getMessage();\n }\n }", "public void setPickedMovie(String pickedMovie) {\n this.pickedMovie = pickedMovie;\n }", "public void selectVenue() {\n\t\t\r\n\t}", "public void emptyMovieSelected(){\n //get empty movie item\n mMovie = mMovieStaff.getEmptyMovie();\n\n //show movie item\n showMovieInfo(mMovie);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (!filmJList.isSelectionEmpty()) {\n\t\t\t\t\tOperation.removeMovie(movies, filmJList.getSelectedIndex());\n\t\t\t\t\tfilmModel.remove(filmJList.getSelectedIndex());\n\t\t\t\t}\n\t\t\t}", "public void onItemSelected(Uri movieUri);", "protected void onSelect() {\n\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n\n // Eliminate the problem when the pointer is at -1\n if (listLesFilm.getSelectedIndex() == -1) {\n return;\n }\n\n // Initialize the value of the picture\n labelFilmImage.setText(null);\n labelFilmImage.setIcon(null);\n\n // Initialize the value of pane.\n textPaneMovieDetail.setText(null);\n\n System.out.println(listLesFilm.getSelectedIndex() + \" has been selected!\");\n\n // Instantiate the value to the selected film.\n LesFilmsInList lesFilmsInListSelected = listFilmInList.get(listLesFilm.getSelectedIndex());\n\n // Instantiate and get Film ID.\n int filmId = lesFilmsInListSelected.getFilmId();\n\n // We use the movie ID to get movie details.\n // See the api from website below:\n // https://developers.themoviedb.org/3/movies/get-movie-details\n Call<Movie.movie_detail> callMovieDetail = apiInterface.get_movie_by_id(filmId, utils.API_KEY);\n\n callMovieDetail.enqueue(new Callback<Movie.movie_detail>() {\n @Override\n public void onResponse(Call<Movie.movie_detail> call, Response<Movie.movie_detail> response) {\n\n // Get movie detail by using model Movie.movie_detail from the response which we get from\n // website.\n Movie.movie_detail movieDetail = response.body();\n\n // Instantiate a new attribute set for setting the title.\n SimpleAttributeSet attributeSetTitle = new SimpleAttributeSet();\n\n // Set title to Bold.\n StyleConstants.setBold(attributeSetTitle, true);\n\n // Set font size to 30.\n StyleConstants.setFontSize(attributeSetTitle, 30);\n\n // Instantiate a buffered image to stock Poster Image.\n BufferedImage bufferedImageIcon = null;\n\n try {\n\n // Set buffered image as Poster from URL.\n bufferedImageIcon = ImageIO.read(new URL(\"https://image.tmdb.org/t/p/w500\" + movieDetail.getPoster_path()));\n\n // Instantiate a icon interface to paint icons from image.\n ImageIcon imageIcon = new ImageIcon(bufferedImageIcon);\n labelFilmImage.setIcon(imageIcon);\n\n\n } catch (IOException ioException) {\n\n // If we cannot read image from website then return No Image.\n ioException.printStackTrace();\n labelFilmImage.setText(\"NO IMAGE \");\n } catch (NullPointerException nullPointerException) {\n\n // If we cannot get poster path which means this movie is added by ourselves, then\n // return This movie is added by myself.\n nullPointerException.printStackTrace();\n labelFilmImage.setText(\"This movie has been added by yourself\");\n }\n\n\n try {\n\n // Import movie detail into text pane.\n // Import formatted title into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), movieDetail.getTitle(), attributeSetTitle);\n\n // Import released date into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\nReleased date: \" + movieDetail.getRelease_date() + \"\\nGenre: \", null);\n\n // Import Genre(s) into text pane.\n for (int k = 0; k < movieDetail.getGenres().size(); k++) {\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), movieDetail.getGenres().get(k).getName() + \" \", null);\n }\n\n // Import abstract into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\n\\nAbstract: \" + movieDetail.getOverview(), null);\n\n // Import movie run time into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\n\\nRun time: \" + movieDetail.getRuntime() + \"min\", null);\n\n // Import movie score (*/10) into text pane\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\nMark: \" + movieDetail.getVote_average() + \"/10\", null);\n } catch (BadLocationException badLocationException) {\n\n // This exception is to report bad locations within a document model\n // (that is, attempts to reference a location that doesn't exist).\n badLocationException.printStackTrace();\n } catch (NullPointerException nullPointerException) {\n try {\n // If throwing null then means the movie is added by ourselves.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"This movie has no detail\", null);\n } catch (BadLocationException badLocationException) {\n badLocationException.printStackTrace();\n }\n\n }\n }\n\n\n @Override\n public void onFailure(Call<Movie.movie_detail> call, Throwable throwable) {\n\n }\n });\n\n }", "private void selectMovie(int position) {\n EventBus.getDefault().post(new MovieSelectEvent(movieListings.get(position).getId()));\n if (MoviesApplication.getApp().isLargeLayout()) {\n notifyItemChanged(selectedPosition);\n selectedPosition = position;\n notifyItemChanged(selectedPosition);\n }\n }", "public interface OnItemSelectedListener {\n void itemSelected(Movie movie);\n }", "public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }", "public interface NameListener {\n\n void setSelectedItem (Movie item);\n}", "@Override\n public void pressMovieButton() {\n System.out.println(\"Home: You must pick an app to show movies.\");\n }", "public interface MovieListener {\n public void setSelectedMovie(String id,String title,String poster,String overview,String vote,String release);\n\n}", "@Override\n public void actionPerformed(ActionEvent e) {\n if (textFieldFilmNameAddFilmToTxt.getText().length() == 0) {\n JOptionPane.showMessageDialog(null, \"You must enter film name!\", \"ERROR\", JOptionPane.PLAIN_MESSAGE);\n return;\n }\n\n // Write Film information into txt file, and add film into list model to show on screen.\n try {\n\n FileWriter fw = new FileWriter(absoultePath, true);\n fw.write(\"\\n\" + textFieldFilmNameAddFilmToTxt.getText() + \",\" + comboBoxFilmModeAddFilmToTxt.getSelectedItem().toString() + \",\" + 0 + \",\" + 0);\n fw.close();\n\n listModel.addElement(new ListModelElement(textFieldFilmNameAddFilmToTxt.getText(), comboBoxFilmModeAddFilmToTxt.getSelectedItem().toString()));\n listFilmInList.add(new LesFilmsInList(textFieldFilmNameAddFilmToTxt.getText(), comboBoxFilmModeAddFilmToTxt.getSelectedItem().toString(), 0, \"0\"));\n frameAddFilmToTxt.setVisible(false);\n\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }", "public void selected(String action);", "@Override\n\tpublic void optionSelected(AbstractPlayer arg0, AbstractMonster arg1, int arg2) {\n\t\t\n\t}", "public void onItemSelected(String summary, String poster);", "public void onSelectionChanged();", "@FXML\n private void handleDeleteFilm() {\n int selectedIndex = filmTable.getSelectionModel().getSelectedIndex();\n if (selectedIndex >= 0) {\n \tfilmTable.getItems().remove(selectedIndex);\n \tsave();\n } else {\n // Nothing selected.\n Dialogs.create()\n .title(\"No Selection\")\n .masthead(\"No Person Selected\")\n .message(\"Please select a person in the table.\")\n .showWarning();\n }\n }", "@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!filmJList.isSelectionEmpty()||filmJList.getMaxSelectionIndex()!=-1)\n\t\t\t\tsetDataPanel(dataJPanel,filmJList.getSelectedIndex());\n\t\t\t}", "public interface MovieListener {\n public void onItemSelected(Movie id);\n}", "public void widgetSelected(SelectionEvent event) {\n if (lists.getSelectionCount() > 0) {\n fileName = lists.getSelection()[0];\n } else {\n fileName = \"\";\n }\n setReturnValue(fileName);\n shell.close();\n }", "@Override\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\t\tOperation.addMovie(movies,name.getText(),Integer.parseInt(priceField.getText()),(Integer)length.getValue(),(String)kind.getSelectedItem());\n\t\t\t\t\t\t\tlistModel.removeAllElements();\n\t\t\t\t\t\t\tfor (int i = 0; i < movies.size(); i++) {\n\t\t\t\t\t\t\t\tlistModel.addElement(movies.get(i).name);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tif (movies.size()!=0) {\n\t\t\t\t\t\t\ttimeCalendar.set((Integer)yearSpinner.getValue(),(Integer)monthSpinner.getValue()-1,(Integer)daySpinner.getValue(), (Integer)hourSpinner.getValue(), (Integer)minuteSpinner.getValue());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tOperation.addPlay(halls, place.getSelectedIndex(),timeCalendar,movies.get(filmName.getSelectedIndex()));\n\t\t\t\t\t\t\tplays.removeAll(plays);\n\t\t\t\t\t\t\tOperation.sort(sortIndex, halls, plays);\n\t\t\t\t\t\t\ttable.updateUI();\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\taddFrame.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "@FXML\n private void handleNewFilm() {\n FilmItem tempFilm = new FilmItem();\n boolean okClicked = mainApp.showFilmEditDialog(tempFilm, true);\n if (okClicked) {\n mainApp.getFilmData().add(tempFilm);\n if (matchesFilter(tempFilm)) {\n \tmainApp.getFilteredData().add(tempFilm);\n }\n save();\n }\n }", "private void loadToChoice() {\n\t\tfor(Genre genre : genreList) {\n\t\t\tuploadPanel.getGenreChoice().add(genre.getName());\n\t\t}\n\t}", "void onAnimalSelected(Animal animal);", "private void dvdRadioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dvdRadioActionPerformed\n itemList.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Select a DVD\", \"Monsters University\", \"The Avengers\", \"The Great Gatsby\" }));\n }", "public abstract void film();", "@Override\n\tpublic void widgetSelected(SelectionEvent e) {\n\t\tint i = doctorcombo.getSelectionIndex();\n\t\tint j = subject.getSelectionIndex();\n\t\tRegister.setName(nametext.getText());\n\t\tRegister.setSubject(subject.getItem(j));\n\t\tRegister.setDoctor(doctorcombo.getItem(i));\n\t\tRDI.Save(Register);\n\t}", "@Override\n\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\tJList list = (JList) e.getSource();\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tSystem.out.println(\"selected: \" + list.getSelectedValue());\n\t\t\t\tint userSelect = list.getSelectedIndex();\n\t\t\t\tplayingDBThread = null;\n\t\t\t\taudioDBThread = null;\n\t\t\t\tload_DB_video(resultListRankedNames.get(userSelect));\n\t\t\t\tupdateSimilarFrame();\n\t\t\t\tslider.setValue(0);\n\t\t\t}\n\t\t}", "public void widgetSelected(SelectionEvent e) {\n\t\tif (getSelection().size()<1) {\n\t\t\tsetErrorMessage(\"Please select one or more automata.\");\n\t\t\tsetPageComplete(false);\n\t\t} else {\n\t\t\tsetErrorMessage(null);\n\t\t\tsetPageComplete(true);\n\t\t}\n\t}", "public void selectCategory() {\n\t\t\r\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n jTextPaneSearch.setText(null);\n jLabelPostImage.setText(null);\n jLabelPostImage.setIcon(null);\n System.out.println(listSearchRemote.getSelectedIndex() + \" has been selected!\");\n// search_result search_result_index = search_resultArrayList.get(list_search.getSelectedIndex());\n\n // Instantiate the movie info which selected.\n SearchResultFilm searchResultFilmSelect = searchResultFilmArrayList.get(0);\n try {\n searchResultFilmSelect = searchResultFilmArrayList.get(listSearchRemote.getSelectedIndex());\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n\n int searchResultFilmId = searchResultFilmSelect.iddefilm;\n String searchResultFilmNom = searchResultFilmSelect.nomdefilm;\n\n // Use the movie id which we got to get movie info.\n Call<Movie.movie_detail> callMovieDetail = apiInterface.get_movie_by_id(searchResultFilmId, utils.API_KEY);\n\n callMovieDetail.enqueue(new Callback<Movie.movie_detail>() {\n @Override\n public void onResponse(Call<Movie.movie_detail> call, Response<Movie.movie_detail> response) {\n Movie.movie_detail movieDetail = response.body();\n\n SimpleAttributeSet attributeSetTitle = new SimpleAttributeSet();\n StyleConstants.setBold(attributeSetTitle, true);\n StyleConstants.setFontSize(attributeSetTitle, 30);\n\n BufferedImage bufferedImageIcon = null;\n try {\n bufferedImageIcon = ImageIO.read(new URL(\"https://image.tmdb.org/t/p/w200\" + movieDetail.getPoster_path()));\n ImageIcon imageIcon = new ImageIcon(bufferedImageIcon);\n jLabelPostImage.setIcon(imageIcon);\n\n } catch (IOException ioException) {\n// ioException.printStackTrace();\n jLabelPostImage.setText(\"This movie has no post image\");\n }\n\n\n// Edit Search Text Pane\n\n\n try {\n styledDocumentTextpaneSearch.insertString(styledDocumentTextpaneSearch.getLength(), movieDetail.getTitle(), attributeSetTitle);\n styledDocumentTextpaneSearch.insertString(styledDocumentTextpaneSearch.getLength(), \"\\nReleased date: \" + movieDetail.getRelease_date() + \"\\nGenres: \", null);\n for (int k = 0; k < movieDetail.getGenres().size(); k++) {\n styledDocumentTextpaneSearch.insertString(styledDocumentTextpaneSearch.getLength(), movieDetail.getGenres().get(k).getName() + \" \", null);\n }\n styledDocumentTextpaneSearch.insertString(styledDocumentTextpaneSearch.getLength(), \"\\n\\nAbstract: \" + movieDetail.getOverview(), null);\n styledDocumentTextpaneSearch.insertString(styledDocumentTextpaneSearch.getLength(), \"\\n\\nRun time: \" + movieDetail.getRuntime() + \"min\", null);\n styledDocumentTextpaneSearch.insertString(styledDocumentTextpaneSearch.getLength(), \"\\nMark: \" + movieDetail.getVote_average() + \"/10\", null);\n } catch (BadLocationException badLocationException) {\n badLocationException.printStackTrace();\n }\n }\n\n\n @Override\n public void onFailure(Call<Movie.movie_detail> call, Throwable throwable) {\n JOptionPane.showMessageDialog(null, \"You must enter film name!\", \"ERROR\", JOptionPane.PLAIN_MESSAGE);\n }\n });\n }", "void onDiscoverItemClicked(Movie item);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = (String)comboBoxProductTitle.getSelectedItem();\n\t\t\t\t//String input = productTitleTextField.getText();\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"Select\")){ \n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Title From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tproductTextArea.setText(product.viewProductByTitle(input, products));\t//viewInvoiceByCustomer() is in the Invoice class\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}", "protected void onSelectionPerformed(boolean success) {\n }", "public frmFanArtist() {\n setTitle(\"Fan Your Artist!\");\n initComponents();\n FanController.updateFormData(slctArtist, jTable1);\n jTable1.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent event) {\n // do some actions here, for example\n // print first column value from selected row\n try{\n System.out.println(jTable1.getValueAt(jTable1.getSelectedRow(), 1).toString());\n formArtist = (Artist) jTable1.getValueAt(jTable1.getSelectedRow(), 1);\n \n updateData();\n }\n catch(Exception e){\n \n }\n }\n });\n }", "@Override\n public void FavouriteMovieSelected(View view) {\n if(view.getTag().equals(MovieDetailAdapter.FAVOURITE)) {\n StoreFavoriteMovieIntentService.startAction_ADD_FAV_MOVIE(getActivity(),\n mMovieItem,\n movieDeatailAdapter.getmMovieItemDetail());\n } else {\n StoreFavoriteMovieIntentService.removeFavriteMovie(getActivity(),mMovieItem.getId());\n }\n movieDeatailAdapter.notifyDataSetChanged();\n }", "@Override\n public void valueChanged(javax.swing.event.ListSelectionEvent e)\n {\n this.choice = e.getFirstIndex();\n }", "@Override\n public void onClick(Movie movie) {\n Intent intent = new Intent(this, DetailActivity.class);\n //send movie object\n intent.putExtra(ConstantsClass.SELECTED_MOVIE_EXTRA_KEY, movie);\n //start Detail Activity\n startActivityForResult(intent, 1);\n }", "@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}", "public void selectionChanged(Action item);", "@Override\r\n\tpublic void updateFilm(Film film) {\n\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\tcontroller.newShot();\r\n\t\t\t\tint selected = clubList.getSelectedIndex();\r\n\t\t\t\tif (selected >= 0){\r\n\t\t\t\t\tString selectedClub = (String)clubList.getModel().getElementAt(selected);\r\n\t\t\t\t\tcontroller.selectClub(selectedClub);\r\n\t\t\t\t\tcontroller.startShot();\r\n\t\t\t\t\t\r\n\t\t\t\t\tUI.getInstance().show(PanelNames.END_SHOT);\r\n\t\t\t\t\tclubList.clearSelection();\r\n\t\t\t\t}\r\n\t\t\t}", "public void selectionChanged(Selection selecton) {\r\n }", "@Override\r\n\tpublic void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\tlong arg3) {\n\t\tvariety = editvariety.getItemAtPosition(arg2).toString();\r\n\t\tif (variety.equals(\"Select Variety\")) {\r\n\t\t\tVariety = null;\r\n\t\t} else {\r\n\t\t\tVariety = variety;\r\n\t\t}\r\n\t}", "public JComboBox getFilmComboBox(){\n\t\treturn filmComboBox;\n\t}", "public void mealSelected(String str) {\n OnMealSelectedListener onMealSelectedListener = this.listener;\n if (onMealSelectedListener != null) {\n onMealSelectedListener.onMealSelected(str);\n }\n this.messageBus.post(new MealNameEvent(str));\n }", "public String getPickedMovie() {\n return pickedMovie;\n }", "@Override\n public void selectItem(String selection) {\n vendingMachine.setSelectedItem(selection);\n vendingMachine.changeToHasSelectionState();\n }", "public void setFilmId(String filmId) {\n this.filmId = filmId;\n }", "public MovieItem getMovieSelected(){\n //return movie item data\n return mMovie;\n }", "public void onItemSelected(AdapterView<?> arg0, View arg1,\n\t\t\t\t\tint arg2, long arg3) {\n\t\t\t\tActivityGroupMedicine.group.parent.trackEvent(\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicine,\n\t\t\t\t\t\tTrackingValues.eventCategoryMedicineChangeType);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDBNameAndID obj = (DBNameAndID) spMedicine.getSelectedItem();\n\t\t\t\ttvUnit.setText(\"\" + obj.getNameTwo());\n\t\t\t\t// we cant close this cursor obj becaus when we do we wont see\n\t\t\t\t// our text in our spinner anymore!\n\t\t\t}", "public void widgetSelected(SelectionEvent event) {\n fileName = textBox.getText();\n setReturnValue(fileName);\n shell.close();\n }", "public void onShowMushroomSelectionDialogSelected(Context context);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString input = ((String)comboBoxProductAuthor.getSelectedItem()).toLowerCase();\n\t\t\t\t//String input = (productAuthorTextField.getText()).toLowerCase();\t// Convert input text to lower case. \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//All names in array should be stored in lower case.\n\t\t\t\t\n\t\t\t\tif(input.trim().equals(\"select\")){ \t// If no value is selected\n\t\t\t\t\tproductTextArea.setText(\"\");\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\t\t\t\t\t\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Please Select Product Author From Drop Down Menu\");\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}else{\t\t\t\t\t\t\t// Take in String and Search for it.\n\t\t\t\t\tproductTextArea.setText(product.viewProductByAuthor(input, products));\t\n\t\t\t\t\tproductTextArea.setCaretPosition(0);\t\t// This sets the position of the scroll bar to the top of the page.\n\t\t\t\t\tlistOfProdIds.setSelectedItem(\"Select\");\n\t\t\t\t\tlistofProductTitle.setSelectedItem(\"Select\");\n\t\t\t\t\tlistOfProductAuthor.setSelectedItem(\"Select\");\n\t\t\t\t\tpriceRange.clearSelection();\n\t\t\t\t\tquantity.clearSelection();\n\t\t\t\t}\n\t\t\t}", "protected void onSelectedItemChanged() {\n if (selectedItem == null) {\n anchorLabel();\n getInputWidget().setText(\"\");\n } else {\n String playerName = ((Player)selectedItem).getName();\n getInputWidget().setText(playerName);\n floatLabel();\n }\n\n if (itemChooserListener != null) itemChooserListener.onSelectionChanged(this, selectedItem);\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tString name = ((JList) e.getSource()).getName();\n\t\tif (name.equals(\"pred\")){\n\t\t\tint selected = displayPred.getSelectedIndex();\n\t\t\tif (selected == -1)\n\t\t\t\tselected = 0;\n\t\t\tString loc = predParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tint selected = displayPrey.getSelectedIndex();\n\t\t\tString loc = preyParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t}\n\t}", "@Override\n\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\tint id = Integer.parseInt((String) pidDropDown.getSelectedItem());\n\t\t\t\t\t\n\t\t\t\t\tfor (Patient p : plist) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (id == p.id) {\n\n\t\t\t\t\t\t\tpNametxt.setText(p.name);\n\t\t\t\t\t\t\tpAgetxt.setText(Integer.toString(p.age));\n\t\t\t\t\t\t\tpWeighttxt.setText(Integer.toString(p.weight));\n\t\t\t\t\t\t\tpDoctortxt.setText(p.doctor);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// and populate the GUI with proper details\n\n\t\t\t\t}", "public void toSelectingWeapon() {\n }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n jTextPaneSearchMasterPeace.setText(null);\n jLabelPostImageMasterPeace.setText(null);\n jLabelPostImageMasterPeace.setIcon(null);\n System.out.println(listSearchRemoteMasterPeace.getSelectedIndex() + \" has been selected!\");\n// search_result search_result_index = search_resultArrayList.get(list_search.getSelectedIndex());\n\n // Instantiate the movie info which selected.\n SearchResultFilm searchResultFilmSelect = searchResultFilmArrayList.get(0);\n try {\n searchResultFilmSelect = searchResultFilmArrayList.get(listSearchRemoteMasterPeace.getSelectedIndex());\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n\n int searchResultFilmId = searchResultFilmSelect.iddefilm;\n String searchResultFilmNom = searchResultFilmSelect.nomdefilm;\n\n // Use the movie id which we got to get movie info.\n Call<Movie.movie_detail> callMovieDetail = apiInterface.get_movie_by_id(searchResultFilmId, utils.API_KEY);\n\n callMovieDetail.enqueue(new Callback<Movie.movie_detail>() {\n @Override\n public void onResponse(Call<Movie.movie_detail> call, Response<Movie.movie_detail> response) {\n Movie.movie_detail movieDetail = response.body();\n\n SimpleAttributeSet attributeSetTitle = new SimpleAttributeSet();\n StyleConstants.setBold(attributeSetTitle, true);\n StyleConstants.setFontSize(attributeSetTitle, 30);\n\n BufferedImage bufferedImageIcon = null;\n try {\n bufferedImageIcon = ImageIO.read(new URL(\"https://image.tmdb.org/t/p/w200\" + movieDetail.getPoster_path()));\n ImageIcon imageIcon = new ImageIcon(bufferedImageIcon);\n jLabelPostImageMasterPeace.setIcon(imageIcon);\n\n } catch (IOException ioException) {\n// ioException.printStackTrace();\n jLabelPostImageMasterPeace.setText(\"This movie has no post image\");\n }\n\n\n// Edit Search Text Pane\n\n\n try {\n styledDocumentTextpaneSearchMasterPeace.insertString(styledDocumentTextpaneSearchMasterPeace.getLength(), movieDetail.getTitle(), attributeSetTitle);\n styledDocumentTextpaneSearchMasterPeace.insertString(styledDocumentTextpaneSearchMasterPeace.getLength(), \"\\nReleased date: \" + movieDetail.getRelease_date() + \"\\nGenres: \", null);\n for (int k = 0; k < movieDetail.getGenres().size(); k++) {\n styledDocumentTextpaneSearchMasterPeace.insertString(styledDocumentTextpaneSearchMasterPeace.getLength(), movieDetail.getGenres().get(k).getName() + \" \", null);\n }\n styledDocumentTextpaneSearchMasterPeace.insertString(styledDocumentTextpaneSearchMasterPeace.getLength(), \"\\n\\nAbstract: \" + movieDetail.getOverview(), null);\n styledDocumentTextpaneSearchMasterPeace.insertString(styledDocumentTextpaneSearchMasterPeace.getLength(), \"\\n\\nRun time: \" + movieDetail.getRuntime() + \"min\", null);\n styledDocumentTextpaneSearchMasterPeace.insertString(styledDocumentTextpaneSearchMasterPeace.getLength(), \"\\nMark: \" + movieDetail.getVote_average() + \"/10\", null);\n } catch (BadLocationException badLocationException) {\n badLocationException.printStackTrace();\n }\n }\n\n\n @Override\n public void onFailure(Call<Movie.movie_detail> call, Throwable throwable) {\n JOptionPane.showMessageDialog(null, \"You must enter film name!\", \"ERROR\", JOptionPane.PLAIN_MESSAGE);\n }\n });\n }", "@FXML\n private void selectedSong() {\n if(isFav){\n String s = songList.getSelectionModel().getSelectedItem(); // selection song from favorite playlist //\n songFile = FavoriteSong(s); \n } \n else{\n String s = songList.getSelectionModel().getSelectedItem(); // selection song from music playlist //\n if(s!=null && !s.isEmpty()){\n int selectedSong = songList.getSelectionModel().getSelectedIndex();\n songFile = songs[selectedSong];\n }\n }\n playButtonAction();\n }", "public void tabletMovieSelected(MovieItem movie){\n //check if movie item is null\n if(movie != null){\n //save movie item to buffer\n mMovie = movie;\n\n //check local buffer if movie is a user favorite, set user favorite status\n mMovie.setFavorite(mMovieStaff.alreadyFavorite(mMovie.getTMDBId()));\n\n //check if movie item has detailed movie data\n if(mMovie.getCast() == null || mMovie.getCast().size() == 0){\n //data is incomplete, start AsyncTask to request movie data\n mInfoButler.requestMovieInfo(mMovie.getTMDBId());\n }\n }\n else{\n //show movie item\n showMovieInfo(mMovie);\n }\n }", "@FXML\n private void getMedicoSelecionado() throws IOException {\n medicoSelecionado = tabelaMedicos.getSelectionModel().getSelectedItem();\n }", "public void modifySelectedFurniture() {\n if (!Home.getFurnitureSubList(this.home.getSelectedItems()).isEmpty()) {\n new HomeFurnitureController(this.home, this.preferences, \n this.viewFactory, this.contentManager, this.undoSupport).displayView(getView());\n }\n }", "@Override\n public void onFileUploaded(FolderNode folderNode, FileNode fileNode) {\n choices.selectValue(fileNode.getName());\n closeAdditionalChoiceDialog(true);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (filmTable.getSelectedRow()!=-1) {\n\t\t\t\t\tSeatFrame seatFrame = new SeatFrame(plays.get(filmTable.getSelectedRow()),filmTable);\n\t\t\t\t\tseatFrame.setLocationRelativeTo(null);\n\t\t\t\t\tseatFrame.setVisible(true);\n\t\t\t\t}\n\t\t\t}", "public void ViagemSelecionado(SelectEvent event) {\n\n\t\tViagem m1 = (Viagem) event.getObject();\n\t\tthis.viagem = m1;\n\n\t}", "public void category1() {\r\n\t\tmySelect1.click();\r\n\t}", "@FXML\n public void massSelect(ActionEvent event) {\n \tmassSelection = massCombo.getSelectionModel().getSelectedItem().toString();\n \tmassCombo.setValue(massSelection);\n }", "public void clickedSpeakerEdit() {\n\t\tif(mainWindow.getSelectedRowSpeaker().length <= 0) ApplicationOutput.printLog(\"YOU DID NOT SELECT ANY PRESENTATION\");\n\t\telse if(mainWindow.getSelectedRowSpeaker().length > 1) ApplicationOutput.printLog(\"Please select only one presentation to edit\");\n\t\telse {\n\t\t\tshowSpeakeerDetails(mainWindow.getSelectedRowSpeaker()[0]);\n\t\t}\t\n\t}", "@FXML\n public void smokeSelect(ActionEvent event) {\n \tsmokeSelection = smokeCombo.getSelectionModel().getSelectedItem().toString();\n \tsmokeCombo.setValue(smokeSelection);\n }", "@Path(\"/dropdown\")\r\n\t@GET\r\n\t@Produces(MediaType.TEXT_HTML)\r\n\tpublic String getMoviesDropdown() {\r\n\t\tList<Movie> movies = new ArrayList<Movie>() {\r\n\t\t\t@Override\r\n\t\t\tpublic String toString() {\r\n\t\t\t\tString str = \"<select name=\\\"movie_id\\\">\";\r\n\t\t\t\tfor (Movie movie : this) {\r\n\t\t\t\t\tstr += \"<option value=\\\"\" + movie.getId() + \"\\\">\";\r\n\t\t\t\t\tstr += movie.getName();\r\n\t\t\t\t\tstr += \"</option>\";\r\n\t\t\t\t}\r\n\t\t\t\tstr += \"</select>\";\r\n\t\t\t\treturn str;\r\n\t\t\t}\r\n\t\t};\r\n\t\tmovies.addAll(TodoDao.instance.getMovies().values());\r\n\t\treturn \"\" + movies;\r\n\t}", "public void actionPerformed(ActionEvent evt) {\n JComboBox cb = (JComboBox)evt.getSource();\n String format = (String)cb.getSelectedItem();\n if(format.equals(\"all formats\"))\n format = null;\n audioList.setListData(findFiles(AUDIO_DIR, format));\n }", "@Override\n\tpublic void addFilm(com.dutproject.cinemaproject.model.bean.Film film) {\n\t\t\n\t}", "public void onComidaSelected(int comidaId);", "public void flavorChosen()\n {\n changeSubtotalTextField();\n }", "@FXML\r\n void spanishSelected(ActionEvent event) \r\n {\r\n \t\r\n \t\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif (txtFiltroNomeLaboratorio.getText().equals(\"\")\n\t\t\t\t\t\t&& txtFiltroCampus.getText().equals(\"\")\n\t\t\t\t\t\t&& model.getDadosFiltrados() == false) {\n\t\t\t\t\tUteis.janelaErro(\n\t\t\t\t\t\t\t\"Preencha pelo menos uma opção para filtrar\",\n\t\t\t\t\t\t\t\"Filtro\");\n\t\t\t\t} else if (txtFiltroNomeLaboratorio.getText().equals(\"\")\n\t\t\t\t\t\t&& txtFiltroCampus.getText().equals(\"\")\n\t\t\t\t\t\t&& model.getDadosFiltrados() == true) {\n\t\t\t\t\tList<Laboratorio> novaLista = dao.getLista();\n\t\t\t\t\tmodel.updateModelo(novaLista);\n\t\t\t\t\tmodel.setDadosFiltrados(false);\n\t\t\t\t} else {\n\t\t\t\t\tLaboratorio c = new Laboratorio();\n\t\t\t\t\tc.setNomeLaboratorio(txtFiltroNomeLaboratorio.getText());\n\t\t\t\t\tCampusDao campusDao = new CampusDao();\n\t\t\t\t\tCampus camp = campusDao.findByName(txtFiltroCampus\n\t\t\t\t\t\t\t.getText());\n\t\t\t\t\tc.setCampus(camp);\n\t\t\t\t\tList<Laboratorio> novaLista = dao.getListaFiltrada(c);\n\t\t\t\t\tmodel.updateModelo(novaLista);\n\t\t\t\t\tmodel.setDadosFiltrados(true);\n\t\t\t\t}\n\t\t\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (!ageList.isSelectionEmpty())\n playButton.setEnabled(true);\n }", "private void displayOneFilm(Movie film)\n {\n String head = film.getTitle();\n String director = film.getDirector();\n String actor1 = film.getActor1();\n String actor2 = film.getActor2();\n String actor3 = film.getActor3();\n int rating = film.getRating();\n \n System.out.println(\"\\n\\t\\t **::::::::::::::::::::::::::MOVIE DETAILS::::::::::::::::::::::::::::**\");\n System.out.println();\n System.out.println(\"\\t\\t\\t Movies' Title : \" + head);\n System.out.println(\"\\t\\t\\t Movies' Director : \" + director);\n \n if (actor2.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1);\n else\n if (actor3.length() == 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2);\n else\n if (actor3.length() != 0)\n System.out.println(\"\\t\\t\\t Movies' Actors : \" + actor1 + \", \" + actor2 + \", \" + actor3);\n\n System.out.println(\"\\t\\t\\t Movies' Rating : \" + rating);\n System.out.println(\"\\t\\t **:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::**\");\n }", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "public void chooseFlights()\r\n\t{\n\t\tdriver.findElement(By.xpath(trObj.CHOOSEFLISGHTS)).click();\r\n\r\n\t}", "public void toSelectingAction() {\n }", "public void onItemSelected(String studentSelected);", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "private void ComboUserActionPerformed(java.awt.event.ActionEvent evt) {\n if(ComboUser.getSelectedItem().equals(\"title\")){\n \n selected=1;\n }\n else if(ComboUser.getSelectedItem().equals(\"author\"))\n {\n selected=2;\n }\n else if(ComboUser.getSelectedItem().equals(\"subject\"))\n {\n selected=3;\n }\n }", "public void addFilm(Film film){\r\n this.cinema_film_list.add(film);\r\n }", "private void jCBListFoodActionPerformed(java.awt.event.ActionEvent evt) {\n int aux2 = jCBListFood.getSelectedIndex();\n if (aux2 != -1) {\n filePath = \"C:\\\\PGS\\\\nutricion\\\\\" + jCBListFood.getSelectedItem();\n controller.openDocument(filePath);\n } else {\n filePath = \"\";\n }\n }", "@Override\n\tpublic void updateFilm(com.dutproject.cinemaproject.model.bean.Film film) throws SQLException {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public void OnRecipeSelected();", "public void setMovie(Movie movie) {\n this.movie = movie;\n }", "public void pressTVButton() {\n System.out.println(\"Home: You must pick an app to show movies.\\n\");\n }", "private void initializeMonthSelector(){\n monthSelect.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n \n \n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n// System.out.println(monthSelect.getSelectionModel().getSelectedItem());\n // Necessary to check for null because change listener will\n // also detect clear() calls\n if (newValue != null) {\n \n // Show selected/current month above calendar\n monthLabel.setText(newValue);\n System.out.println(\"mounth new \"+newValue);\n // Update the VIEWING MONTH;\n Model.getInstance().viewing_month = Model.getInstance().getMonthIndex(newValue);\n \n \n //Model.getInstance().viewing_month = monthSelect.getSelectionModel().getSelectedIndex();\n \n \n // System.out.println(\"mounth\"+Model.getInstance().viewing_month);\n\n // Update view\n repaintView();\n }\n \n }\n });\n \n // Add event listener to each year item, allowing user to change years\n selectedYear.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n \n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n \n if (newValue != null){\n \n // Update the VIEWING YEAR\n Model.getInstance().viewing_year = Integer.parseInt(newValue);\n \n // Update view\n repaintView();\n }\n }\n });\n }" ]
[ "0.65262693", "0.6424058", "0.6423551", "0.63855076", "0.6323113", "0.60459334", "0.59629637", "0.59492195", "0.58602947", "0.5843773", "0.5819393", "0.57999647", "0.57456046", "0.5718648", "0.57155114", "0.5707251", "0.56829387", "0.5649276", "0.56397396", "0.56264365", "0.5614556", "0.5595999", "0.55804753", "0.5567191", "0.5559642", "0.5548438", "0.5532688", "0.551855", "0.5490401", "0.54837847", "0.544966", "0.5445781", "0.53994703", "0.53955996", "0.53931916", "0.53875315", "0.5371646", "0.53683096", "0.534854", "0.53460324", "0.53440577", "0.53435564", "0.5311332", "0.5308644", "0.53081596", "0.53053695", "0.5302382", "0.5294601", "0.52911234", "0.528632", "0.5284124", "0.5276677", "0.5272987", "0.5265427", "0.52443737", "0.5244039", "0.5241056", "0.52385265", "0.52344525", "0.5231162", "0.5229991", "0.5222353", "0.52196836", "0.5217223", "0.5208668", "0.52043146", "0.51992935", "0.51966697", "0.5190399", "0.5182788", "0.5175858", "0.5174736", "0.5164708", "0.5161973", "0.5151446", "0.51491547", "0.51443696", "0.51403815", "0.51386905", "0.5130298", "0.51288736", "0.51288027", "0.5127225", "0.5126048", "0.51250297", "0.51200485", "0.51187664", "0.51137376", "0.51110333", "0.51071423", "0.5101597", "0.5101346", "0.5100865", "0.5091324", "0.5090413", "0.5083808", "0.5080395", "0.50740534", "0.50706077", "0.50666416", "0.5066069" ]
0.0
-1
Methode permettant d'executer une action OCM
public Object execute(OcmAction<T> action, boolean autoSave) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void execute() {\n\t\tempfaengerA.doAction1();\n\t\tempfaengerA.doAction2();\n\t\tempfaengerA.doAction3();\n\n\t}", "protected void execute()\n\t{\n\t}", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "public void execute(){\n\t\t\n\t}", "public void execute() {\n\n\t}", "protected void execute() {\n\n\t}", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public void execute() {\r\n\t\r\n\t}", "protected void execute() {\n\t\t\n\t}", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\n\t}", "protected void execute() {\r\n }", "protected void execute()\n {\n }", "public Object execute(OcmAction<T> action) throws DataAccessException;", "public void ejecutaMetodo() {\n\t\r\n}", "public void Execute() {\n\n }", "public void executeAction( String actionInfo );", "public void execute(){\n\n }", "protected void execute() {}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "public void execute() {\n execute0();\n }", "public void execute() {\n }", "Action execute(Context context);", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "protected void execute() {\n\n\n \n }", "protected void execute() {\n \t// literally still do nothing\n }", "@Override\n\tpublic void execute() {\n\t\tmoteur.couper();\n\t}", "public void execute() {\n // empty\n }", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "public void doAction(){}", "public void action() {\n action.action();\n }", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "@Override\n public void Execute() {\n\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "public interface Executor {\n\n void setAction(Action action);\n boolean execute( Map<String,String> values, MODE mode) throws IOException;\n}", "protected void execute() {\n \toi.updateToggleLift();\n if(oi.toggleOnLift){\n \t// The commands here will occur if the TorqueLift toggle switch\n \t// is activated. All code here will only run after the button\n \t// has been toggled.\n \tif (limitswitch.getReadyState()) { \n \ttorquelift.swap();\n \ttorquelift.moveAllMotors(oi.getLiftSpeed());\n \t} else {\n \t\t// activates when the limit switch is pressed\n \t\ttorquelift.moveAllMotors(oi.getLiftYUpSpeed());\n \t}\n } else {\n \t// The commands here will occur normally, when the TorqueLift is\n \t// not activated.\n \treturn;\n }\n }", "protected abstract void execute();", "void executeAction(String action, Map params,\n IPSAgentHandlerResponse response);", "public abstract int execute();", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "public abstract void executeActionButton();", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "CommandResult execute();", "public String execute() throws Exception {\t\t\n\t\t//Obtains user information from session, then sets it to Model.\n\t\tthis.yjaService.setUserInfoToModel(actionModel);\t\t\n\t\treturn initExecute();\t\t\n\t}", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}", "@Override\r\n\tpublic void execute() {\n\r\n\t}", "@Override\n\tpublic void execute() {\n\t\tthisOS.open();\n\t\t\n\t}", "public void execute() {\n setExecuted(true);\n }", "@Override\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "<T> T execute(ZabbixCallback<T> action);", "public interface ActionCommand {\n String execute(HttpServletRequest request);\n\n}", "public abstract String initExecute() throws Exception;", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "abstract protected void execute();", "abstract public void performAction();", "@IgnoreMethodAuthentication\r\n\tpublic void execute() {\n\t\ttry {\r\n\t\t\tString licencaFull = SystemManager.getProperty(\"licenca.sistema\");\r\n\t\t\tlicencaFull = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licencaFull);\r\n\t\t\tif (licencaFull != null && licencaFull.equals(\"ENTERPRISE EDITION\")) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tParametroLojaDAO paramDao = new ParametroLojaDAO();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString licenca = paramDao.getStringParametro(Constants.Parameters.Licenca.LICENCA_SISTEMA, empresasessao.getCodigoEmpresa(), lojasessao.getCodigoLoja());\r\n\t\t\t//SystemManager.LICENCA_SISTEMA = licenca;\r\n\t\t\t\r\n\t\t\tString dataSistemaStr = paramDao.getStringParametro(Constants.Parameters.Licenca.DATA_SISTEMA, empresasessao.getCodigoEmpresa(), lojasessao.getCodigoLoja());\r\n\t\t\t\r\n\t\t\tString dados = null;\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tdados = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licenca);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dados == null || dados.trim().equals(\"\")) {\r\n\t\t\t\twriteErrorMessage(\"Sistema não licenciado!\", \"N\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Busca data do sistema \r\n\t\t\ttry {\r\n\t\t\t\tdataSistemaStr = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(dataSistemaStr);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tdataSistemaStr = \"01/01/1900\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\tCalendar dataAtual = Calendar.getInstance();\r\n\t\t\t\r\n\t\t\t// Checa se houve modificacao na data do sistema\r\n\t\t\tif (dataSistemaStr != null) {\r\n\t\t\t\tCalendar dataSistema = Calendar.getInstance();\r\n\t\t\t\tdataSistema.setTime(sdf.parse(dataSistemaStr));\r\n\t\t\t\tif (dataSistema.after(dataAtual)) {\r\n\t\t\t\t\twriteErrorMessage(\"Data do sistema alterada!\", \"N\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (validarDados(dados)) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public int execute();", "@Override\n protected void execute() {\n\n }", "public void setExecuteAction(Action action) {\n this.data.setExecuteAction(action);\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\tResfun rol=new Resfun();\n\t\trol.setCaction(caction);\n\t\trol.setCname(cname);\n\t\trol.setPname(pname);\n\t\trol.setResfunid(resfunid);\n\t\tuserService.upResfun(rol);\n\t\taddActionMessage(\"数据修改成功!\");\n\t\treturn SUCCESS;\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\n public void execute() {\n }" ]
[ "0.69075257", "0.67987573", "0.6781129", "0.6772217", "0.6745014", "0.67293197", "0.6673299", "0.66671443", "0.6660754", "0.66573614", "0.66573614", "0.6654184", "0.6644713", "0.6644713", "0.6644713", "0.66352016", "0.6627838", "0.66029036", "0.659898", "0.65898603", "0.6589504", "0.6586798", "0.65641993", "0.6559951", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.6547106", "0.65433663", "0.6530045", "0.6506746", "0.648431", "0.648431", "0.648431", "0.648431", "0.6474817", "0.6441591", "0.643542", "0.6422585", "0.6407009", "0.6407009", "0.6407009", "0.6407009", "0.6407009", "0.6407009", "0.6407009", "0.6372089", "0.6339098", "0.6327783", "0.63210195", "0.63210195", "0.63210195", "0.6313676", "0.62963736", "0.6292175", "0.6273747", "0.62726474", "0.6259685", "0.62546426", "0.6252659", "0.6252659", "0.6247574", "0.62264115", "0.62198913", "0.6208163", "0.6196893", "0.6188376", "0.6176621", "0.6160765", "0.61457324", "0.6139217", "0.6130841", "0.61231756", "0.61222327", "0.611217", "0.6111787", "0.6110179", "0.6104994", "0.609444", "0.6087799", "0.6085786", "0.6083523", "0.60809267", "0.60809267", "0.60809267", "0.6069627", "0.60639447", "0.60633445", "0.6049725", "0.60443616", "0.6036079", "0.60318416" ]
0.6606762
17
Methode permettant d'executer une action OCM
public Object execute(OcmAction<T> action) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void execute() {\n\t\tempfaengerA.doAction1();\n\t\tempfaengerA.doAction2();\n\t\tempfaengerA.doAction3();\n\n\t}", "protected void execute()\n\t{\n\t}", "@Override\n\tpublic void doExecute(Runnable action) {\n\t\t\n\t}", "public void execute(){\n\t\t\n\t}", "public void execute() {\n\n\t}", "protected void execute() {\n\n\t}", "@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}", "public void execute() {\r\n\t\r\n\t}", "protected void execute() {\n\t\t\n\t}", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "protected void execute() {\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\n\t}", "protected void execute() {\r\n }", "public Object execute(OcmAction<T> action, boolean autoSave) throws DataAccessException;", "protected void execute()\n {\n }", "public void Execute() {\n\n }", "public void ejecutaMetodo() {\n\t\r\n}", "public void executeAction( String actionInfo );", "public void execute(){\n\n }", "protected void execute() {}", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "public void execute() {\n execute0();\n }", "public void execute() {\n }", "Action execute(Context context);", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "protected void execute() {\n\n\n \n }", "protected void execute() {\n \t// literally still do nothing\n }", "@Override\n\tpublic void execute() {\n\t\tmoteur.couper();\n\t}", "public void execute() {\n // empty\n }", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "public void doAction(){}", "public void action() {\n action.action();\n }", "@Test\n\tpublic void execute() {\n\t\tcommand.execute(request);\n\t}", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "@Override\n public void Execute() {\n\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "public interface Executor {\n\n void setAction(Action action);\n boolean execute( Map<String,String> values, MODE mode) throws IOException;\n}", "protected void execute() {\n \toi.updateToggleLift();\n if(oi.toggleOnLift){\n \t// The commands here will occur if the TorqueLift toggle switch\n \t// is activated. All code here will only run after the button\n \t// has been toggled.\n \tif (limitswitch.getReadyState()) { \n \ttorquelift.swap();\n \ttorquelift.moveAllMotors(oi.getLiftSpeed());\n \t} else {\n \t\t// activates when the limit switch is pressed\n \t\ttorquelift.moveAllMotors(oi.getLiftYUpSpeed());\n \t}\n } else {\n \t// The commands here will occur normally, when the TorqueLift is\n \t// not activated.\n \treturn;\n }\n }", "protected abstract void execute();", "void executeAction(String action, Map params,\n IPSAgentHandlerResponse response);", "public abstract int execute();", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "public abstract void executeActionButton();", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "CommandResult execute();", "public String execute() throws Exception {\t\t\n\t\t//Obtains user information from session, then sets it to Model.\n\t\tthis.yjaService.setUserInfoToModel(actionModel);\t\t\n\t\treturn initExecute();\t\t\n\t}", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}", "@Override\r\n\tpublic void execute() {\n\r\n\t}", "@Override\n\tpublic void execute() {\n\t\tthisOS.open();\n\t\t\n\t}", "public void execute() {\n setExecuted(true);\n }", "@Override\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n }", "@Override\r\n\tpublic void action() {\n\t\t\r\n\t}", "protected abstract void actionExecuted(SUT system, State state, Action action);", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "<T> T execute(ZabbixCallback<T> action);", "public interface ActionCommand {\n String execute(HttpServletRequest request);\n\n}", "public abstract String initExecute() throws Exception;", "@Override\n\tpublic void ejecutarActividadesConProposito() {\n\t\t\n\t}", "abstract public void performAction();", "abstract protected void execute();", "@IgnoreMethodAuthentication\r\n\tpublic void execute() {\n\t\ttry {\r\n\t\t\tString licencaFull = SystemManager.getProperty(\"licenca.sistema\");\r\n\t\t\tlicencaFull = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licencaFull);\r\n\t\t\tif (licencaFull != null && licencaFull.equals(\"ENTERPRISE EDITION\")) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tParametroLojaDAO paramDao = new ParametroLojaDAO();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tString licenca = paramDao.getStringParametro(Constants.Parameters.Licenca.LICENCA_SISTEMA, empresasessao.getCodigoEmpresa(), lojasessao.getCodigoLoja());\r\n\t\t\t//SystemManager.LICENCA_SISTEMA = licenca;\r\n\t\t\t\r\n\t\t\tString dataSistemaStr = paramDao.getStringParametro(Constants.Parameters.Licenca.DATA_SISTEMA, empresasessao.getCodigoEmpresa(), lojasessao.getCodigoLoja());\r\n\t\t\t\r\n\t\t\tString dados = null;\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tdados = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(licenca);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (dados == null || dados.trim().equals(\"\")) {\r\n\t\t\t\twriteErrorMessage(\"Sistema não licenciado!\", \"N\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Busca data do sistema \r\n\t\t\ttry {\r\n\t\t\t\tdataSistemaStr = Criptografia.newInstance(SystemManager.getProperty(Constants.Parameters.Licenca.LICENCA_KEY)).decripto(dataSistemaStr);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tdataSistemaStr = \"01/01/1900\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t\tCalendar dataAtual = Calendar.getInstance();\r\n\t\t\t\r\n\t\t\t// Checa se houve modificacao na data do sistema\r\n\t\t\tif (dataSistemaStr != null) {\r\n\t\t\t\tCalendar dataSistema = Calendar.getInstance();\r\n\t\t\t\tdataSistema.setTime(sdf.parse(dataSistemaStr));\r\n\t\t\t\tif (dataSistema.after(dataAtual)) {\r\n\t\t\t\t\twriteErrorMessage(\"Data do sistema alterada!\", \"N\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (validarDados(dados)) {\r\n\t\t\t\twrite(\"ok\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "interface Action {\n /**\n * Executes the action. Called upon state entry or exit by an automaton.\n */\n void execute();\n }", "public int execute();", "@Override\n protected void execute() {\n\n }", "public void setExecuteAction(Action action) {\n this.data.setExecuteAction(action);\n }", "@Override\n\tpublic String execute() throws Exception {\n\t\tResfun rol=new Resfun();\n\t\trol.setCaction(caction);\n\t\trol.setCname(cname);\n\t\trol.setPname(pname);\n\t\trol.setResfunid(resfunid);\n\t\tuserService.upResfun(rol);\n\t\taddActionMessage(\"数据修改成功!\");\n\t\treturn SUCCESS;\n\t}", "@Override\n protected void execute() {\n \n }", "@Override\n public void execute() {\n }" ]
[ "0.6908615", "0.6798909", "0.67819977", "0.6772249", "0.6745099", "0.67293036", "0.6675272", "0.6667392", "0.6660834", "0.66575384", "0.66575384", "0.66541713", "0.6644851", "0.6644851", "0.6644851", "0.6635359", "0.662824", "0.66089475", "0.66032046", "0.65904605", "0.6590264", "0.658931", "0.6564391", "0.65602434", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.6547358", "0.65427464", "0.65303797", "0.6508457", "0.64845586", "0.64845586", "0.64845586", "0.64845586", "0.6475052", "0.64412135", "0.6435289", "0.6422506", "0.6406951", "0.6406951", "0.6406951", "0.6406951", "0.6406951", "0.6406951", "0.6406951", "0.6373853", "0.6341875", "0.6328119", "0.63214034", "0.63214034", "0.63214034", "0.6314662", "0.62964594", "0.62933445", "0.62748384", "0.6272926", "0.6261077", "0.62551737", "0.62526315", "0.62526315", "0.6249547", "0.62282735", "0.62204516", "0.6209251", "0.6196939", "0.6188658", "0.6176627", "0.6160123", "0.6146427", "0.61391896", "0.6130923", "0.6126141", "0.612456", "0.6114414", "0.61133", "0.61118764", "0.61041987", "0.60949296", "0.6088391", "0.6088082", "0.60831964", "0.60810447", "0.60810447", "0.60810447", "0.6073234", "0.6064179", "0.60634124", "0.6051656", "0.60454655", "0.6036165", "0.6032024" ]
0.6601004
19
Methode permettant d'inserer l'entite dans le depot
public T insert(T entity) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertData() {\r\n \r\n TeatroEntity teatro = factory.manufacturePojo(TeatroEntity.class);\r\n em.persist(teatro);\r\n FuncionEntity funcion = factory.manufacturePojo(FuncionEntity.class);\r\n List<FuncionEntity> lista = new ArrayList();\r\n lista.add(funcion);\r\n em.persist(funcion);\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n sala.setFuncion(lista);\r\n em.persist(sala);\r\n data.add(sala);\r\n }\r\n for (int i = 0; i < 3; i++) \r\n {\r\n SalaEntity sala = factory.manufacturePojo(SalaEntity.class);\r\n sala.setTeatro(teatro);\r\n em.persist(sala);\r\n sfdata.add(sala);\r\n }\r\n \r\n }", "@Transactional\r\n\r\n\t@Override\r\n\tpublic void insertar(Distrito distrito) {\n\t\tem.persist(distrito);\t\r\n\t}", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "public void createDienst()\n\t{\n\t\twriteDb(\"INSERT INTO dienstleistung (Bezeichnung, Preis)\" + \"VALUES('\" + typ + \"', '\" + preis +\"')\", getWriteCon());\n\t\tcommitDbConnection(getWriteCon());\n\t}", "public void insert(Service servico){\n Database.servico.add(servico);\n }", "public void insertIntoProduct() {\n\t\ttry {\n\t\t\tPreparedStatement statement = connect.prepareStatement(addProduct);\n\t\t\tstatement.setString(1, productName);\n\t\t\tstatement.setString(2, quantity);\n\t\t\t\n\t\t\tstatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }", "private void addSomeItemsToDB () throws Exception {\n/*\n Position pos;\n Course course;\n Ingredient ing;\n\n PositionDAO posdao = new PositionDAO();\n CourseDAO coursedao = new CourseDAO();\n IngredientDAO ingdao = new IngredientDAO();\n\n ing = new Ingredient(\"Mozzarella\", 10,30);\n ingdao.insert(ing);\n\n // Salads, Desserts, Main course, Drinks\n pos = new Position(\"Pizza\");\n posdao.insert(pos);\n\n course = new Course(\"Salads\", \"Greek\", \"Cucumber\", \"Tomato\", \"Feta\");\n coursedao.insert(course);\n\n ing = new Ingredient(\"-\", 0,0);\n ingdao.insert(ing);\n */\n }", "private void register_to_data_table() {\n\n\t\t\tfinal DataClient dc = this.task.data_client;\n\t\t\tfinal Transaction tx = dc.beginTransaction();\n\n\t\t\tfinal String repoid = this.op_repo;\n\t\t\tString uid = this.op_user;\n\n\t\t\tAliasDAO alias_dao = new AliasDAO(dc);\n\t\t\tuid = alias_dao.findUser(uid);\n\n\t\t\tRepoDTM repoinfo = dc.get(uid, RepoDTM.class);\n\t\t\tif (repoinfo == null) {\n\t\t\t\trepoinfo = new RepoDTM();\n\t\t\t\tdc.insert(uid, repoinfo);\n\t\t\t}\n\n\t\t\tMap<String, RepoItem> tab = repoinfo.getTable();\n\t\t\tif (tab.containsKey(repoid)) {\n\t\t\t\tString msg = \"the repo with name [%s] exists.\";\n\t\t\t\tmsg = String.format(msg, repoid);\n\t\t\t\tthrow new SnowflakeException(msg);\n\t\t\t}\n\n\t\t\tURI location = this.repo.getComponentContext().getURI();\n\n\t\t\tRepoItem item = new RepoItem();\n\t\t\titem.setName(repoid);\n\t\t\titem.setLocation(location.toString());\n\t\t\titem.setDescriptor(this.getRepoDescriptorId().toString());\n\t\t\ttab.put(repoid, item);\n\n\t\t\tdc.update(repoinfo);\n\n\t\t\ttx.commit();\n\n\t\t}", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ServicioEntity entity = factory.manufacturePojo(ServicioEntity.class);\n em.persist(entity);\n dataServicio.add(entity);\n }\n for (int i = 0; i < 3; i++) {\n QuejaEntity entity = factory.manufacturePojo(QuejaEntity.class);\n if (i == 0) {\n entity.setServicio(dataServicio.get(0));\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "@Override\n\t\t\tpublic void ajouter(Catalogue catalogue) {\n\t\t\t\t\n\t\t\t}", "public void crearPrograma(Programa prog) throws Exception {\r\n\t\tEntityManager em = AdministradorEntityManager.getEntityManager();\t\t\r\n\t\tem.getTransaction().begin();\r\n\t\tem.persist(prog);\r\n\t\tem.getTransaction().commit();\t\t\r\n\t}", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Injection to database : Oracle\");\n\t}", "void insertDepartment(String depName, Date creationDate, long idParentDepartment);", "public void create(Joueur joueur) {\n EntityManager em = EntityManagerHolder.getCurrentEntityManager();\n EntityTransaction tx = null;\n\n try {\n// session = HibernateUtil.getSessionFactory().getCurrentSession();\n// tx = session.beginTransaction();\n// session.persist(joueur);\n tx = em.getTransaction();\n em.persist(joueur);\n //declenche l'ajout d'un ou plusieurs elements -> synchronisation de la session et de la BDD\n\n System.out.println(\"Joueur créé avec succès\");\n } catch (Exception e) {\n\n e.printStackTrace();\n } finally {\n if (em != null) {\n em.close();\n }\n }\n }", "@Override\n\tpublic void Insert(PersonelContract entity) {\n\n\t}", "public abstract void commitMiembrosDeEquipo();", "@Override\n\tpublic void entradaestoque(EntidadeDominio entidade) throws SQLException {\n\t\topenConnection();\n\t\tPreparedStatement pst=null;\n\t\tLivro livro = (Livro)entidade;\t\t\n\t\t\n\t\ttry {\n\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\n\t\t\tStringBuilder sql = new StringBuilder();\t\t\t\n\t\t\tsql.append(\"INSERT INTO estoque (id_livro, quantidade,id_precificacao, custo) VALUES (?,?,?,?)\");\n\t\t\t\t\t\n\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\tpst.setInt(1, livro.getId());\n\t\t\tpst.setInt(2, livro.getEstoque().getQuantidade());\n\t\t\tpst.setInt(3, livro.getPrecificacao().getTipo());\n\t\t\tpst.setDouble(4, livro.getEstoque().getCusto());\n\t\t\tpst.executeUpdate();\t\t\t\n\t\t\tconnection.commit();\t\t\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tconnection.rollback();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\t\t\t\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tpst.close();\n\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "@Override\n public void add(Curso entity) {\n Connection c = null;\n PreparedStatement pstmt = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)\");\n\n pstmt.setString(1, entity.getNombre());\n pstmt.setInt(2, (entity.getIdProfesor() == 0)?4:entity.getIdProfesor() ); //creo que es sin profesor confirmado o algo por el estilo\n pstmt.setString(3, entity.getClaveProfesor());\n pstmt.setString(4, entity.getClaveAlumno());\n \n pstmt.execute();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (pstmt != null) {\n pstmt.close();\n }\n DBUtils.closeConnection(c);\n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n ViajeroEntity entity = factory.manufacturePojo(ViajeroEntity.class);\n\n em.persist(entity);\n data.add(entity);\n }\n }", "public void addToDatabaseProduct() {\n // Database credentials\n String pass = \"\";\n\n InputStream passPath = Controller.class.getResourceAsStream(\"/password.txt\");\n if (passPath == null) {\n System.out.println(\"Could not find password in resources folder\");\n }\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(passPath));\n String line = null;\n while (true) {\n try {\n if (!((line = reader.readLine()) != null)) {\n break;\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n System.out.println(line);\n if (line != null) {\n pass = line;\n System.out.println(\"Password login: \" + line);\n break;\n }\n }\n Connection conn = null; //Temporary\n PreparedStatement stmt = null; //Temporary\n\n try {\n // STEP 1: Register JDBC driver\n Class.forName(\"org.h2.Driver\");\n\n //STEP 2: Open a connection\n conn = DriverManager.getConnection(\"jdbc:h2:./res/HR\", \"\",\n pass);\n\n final String sqlProductName = txtProductName.getText();\n String sqlManufName = txtManufacturer.getText();\n ItemType sqlItemType = choiceType.getValue();\n\n stmt = conn.prepareStatement(\"INSERT INTO Product(type, manufacturer, name) VALUES (?, ?, ?)\",\n Statement.RETURN_GENERATED_KEYS);\n stmt.setString(1, sqlItemType.toString());\n stmt.setString(2, sqlManufName);\n stmt.setString(3, sqlProductName);\n\n stmt.executeUpdate();\n\n stmt.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void insert(ProdutoPedido produtoPedido) {\n\t\tem.getTransaction().begin();\n\t\tem.persist(produtoPedido);\n\t\tem.getTransaction().commit();\n\t\tem.close();\n\t\temf.close();\n\t}", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "public void inserir(Comentario c);", "public void ajouter(Etudiant t) {\n\t\tdao.ajouter(t);\r\n\t}", "@Override\n public void salvar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n if(paciente.getIdPaciente() == 0){\n em.persist(paciente);\n }else{\n em.merge(paciente);\n }\n em.getTransaction().commit();\n em.close();\n factory.close();\n }", "@Override\n\tpublic void insert(ExportProduct exportProduct) {\n\t\t\n\t}", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public void insere (String nome)\n {\n //TODO\n }", "public void ajouter() {\n position = graph.edges.ajouterElement(this);\n origine.successeurs.inserer(destination);\n destination.predecesseurs.inserer(origine);\n origine.aretes_sortantes.inserer(this);\n destination.aretes_entrantes.inserer(this);\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "private void insertPerform(){\n \tif(!verify()){\n \t\treturn;\n \t}\n \tString val=new String(\"\");\n \tval=val+\"'\"+jTextField1.getText()+\"', \"; // poNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker1.getValue()\n \t\t)\n \t\t+\"', \"; // poDate\n \tval=val+\"'\"+vndList[jTextField2.getSelectedIndex()-1]+\"', \"; // vndNo\n \tval=val+\"'\"+jTextField3.getText()+\"', \"; // qtnNo\n \tval=val+\"'\"+\n \t\tinventorycontroller.util.DateUtil.getRawFormat(\n \t\t\t(java.util.Date)jXDatePicker2.getValue()\n \t\t)\n \t\t+\"', \"; // qtnDate\n \tval=val+\"'\"+poAmount+\"', \"; // poTotal\n \tval=val+\"'pending', \"; // poStatus\n \tval=val+\"'\"+jEditorPane1.getText()+\"' \"; // remark\n \t\n \ttry{\n \t\tdbInterface1.cmdInsert(\"poMaster\", val);\n \t\tinsertPoBomDesc();\n \t\tinsertPoDesc();\n\t \tupdateBOM();\n \t}\n \tcatch(java.sql.SQLException ex){\n \t\tSystem.out.println (ex);\n \t}\n \tresetPerform();\n }", "@Override\r\n\tpublic void insertar() {\n\t\ttab_nivel_funcion_programa.insertar();\r\n\t\t\t\r\n\t\t\r\n\t}", "public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;", "public void addTrainingInitialAdmin(TrainingInitialAdmin ti) {\n Integer id = null;\n\n Session session = ConnectionFactory.getInstance().getSession();\n\n Transaction tx = null;\n\n try {\n\n tx = session.beginTransaction();\n\n session.saveOrUpdate(ti);\n tx.commit();\n\n\n } catch (HibernateException e) {\n try {\n tx.rollback(); //error\n } catch (HibernateException he) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n\n }", "public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void insertar() {\n\t\t\n\t}", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "@Override\r\n\tpublic void addPackage(PackageJour pj) {\n\t\tem.persist(pj);\r\n\t}", "public void crear(Tarea t) {\n t.saveIt();\n }", "public void registrarTema() {\n\t\ttemaEJB.crearTema(tema);\n\t\tlimpiarCampos();\n\t\tlistaTemas();\n\t}", "private void insertData() \n {\n for(int i = 0; i < 2; i++){\n RazaEntity razaEntity = factory.manufacturePojo(RazaEntity.class);\n em.persist(razaEntity);\n razaData.add(razaEntity);\n }\n for (int i = 0; i < 3; i++) {\n EspecieEntity especieEntity = factory.manufacturePojo(EspecieEntity.class);\n if(i == 0)\n {\n especieEntity.setRazas(razaData);\n }\n em.persist(especieEntity);\n especieData.add(especieEntity);\n }\n }", "public static void inserir(Estoque estoque){\r\n lerXml();//le o XML e preenche a lista de estoque\r\n //pega o ultimo estoque cadastrado\r\n int ultimaPosicao = lista.size()-1;\r\n if(ultimaPosicao >= 0){ //se a lista não estiver vazia\r\n Estoque ultimoEstoque = lista.get(ultimaPosicao);\r\n estoque.setNumCompra(ultimoEstoque.getNumCompra()+1);\r\n }else{\r\n // se não tem niguem na lista, o ncompra é 1\r\n estoque.setNumCompra(1);\r\n }\r\n lista.add(estoque);//adiciona um estoque pro final da lista\r\n salvarXml();//atualiza o XML com o que tem na lista\r\n \r\n \r\n \r\n }", "private void insertData() {\n \n for (int i = 0; i < 3; i++) {\n ClienteEntity editorial = factory.manufacturePojo(ClienteEntity.class);\n em.persist(editorial);\n ClienteData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoPaseoEntity paseo = factory.manufacturePojo(ContratoPaseoEntity.class);\n em.persist(paseo);\n contratoPaseoData.add(paseo);\n }\n \n for (int i = 0; i < 3; i++) {\n ContratoHotelEntity editorial = factory.manufacturePojo(ContratoHotelEntity.class);\n em.persist(editorial);\n contratoHotelData.add(editorial);\n }\n \n for (int i = 0; i < 3; i++) {\n PerroEntity perro = factory.manufacturePojo(PerroEntity.class);\n //perro.setCliente(ClienteData.get(0));\n //perro.setEstadias((List<ContratoHotelEntity>) contratoHotelData.get(0));\n //perro.setPaseos((List<ContratoPaseoEntity>) contratoPaseoData.get(0));\n em.persist(perro);\n Perrodata.add(perro);\n }\n\n }", "@Override\r\n public void crearCliente(Cliente cliente) throws Exception {\r\n entity.getTransaction().begin();//inicia la creacion\r\n entity.persist(cliente);//se crea el cliente\r\n entity.getTransaction().commit();//finaliza la creacion\r\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "WriteRequest insert(PiEntity entity);", "private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }", "@Override\n public void insert(J34SiscomexOrigemDi j34SiscomexOrigemDi) {\n super.doInsert(j34SiscomexOrigemDi);\n }", "@Override\n\tpublic void insertUserAndShopData() {\n\t\t\n\t}", "Persistencia() {\n\t}", "@Override\r\n\tpublic void createFournisseur(Fournisseur fournisseur) {\n\t\tthis.sessionFactory.getCurrentSession().save(fournisseur);\r\n\t}", "public boolean insert(Contribuyente contribuyente){\n return true;\n }", "private void insertData() {\n \n for (int i = 0; i < 4; i++) {\n EmpleadoEntity entity = factory.manufacturePojo(EmpleadoEntity.class);\n entity.setSolicitudes(new ArrayList<>());\n entity.setPropuestas(new ArrayList<>());\n entity.setInvitaciones(new ArrayList<>());\n entity.setTipoEmpleado(TipoEmpleado.TRADUCTOR);\n if(i == 0)\n {\n SolicitudEntity solicitud = factory.manufacturePojo(SolicitudEntity.class);\n em.persist(solicitud);\n entity.getSolicitudes().add(solicitud);\n solicitud.setEmpleado(entity);\n solicitudesData.add(solicitud);\n }\n else if (i == 1)\n {\n InvitacionEntity invitacion = factory.manufacturePojo(InvitacionEntity.class);\n em.persist(invitacion);\n entity.getInvitaciones().add(invitacion); \n invitacion.setEmpleado(entity);\n invitacionesData.add(invitacion);\n }\n else if (i == 2){\n PropuestaEntity propuesta = factory.manufacturePojo(PropuestaEntity.class);\n em.persist(propuesta);\n entity.getPropuestas().add(propuesta);\n propuesta.setEmpleado(entity);\n propuestasData.add(propuesta);\n }\n em.persist(entity);\n data.add(entity);\n }\n }", "private void insert(HttpServletRequest request)throws Exception {\n\t\tPedido p = new Pedido();\r\n\t\tCliente c = new Cliente();\r\n\t\tCancion ca = new Cancion();\r\n\t\tp.setCod_pedido(request.getParameter(\"codigo\"));\r\n\t\tca.setCod_cancion(request.getParameter(\"cod_cancion\"));\r\n\t\tc.setCod_cliente(request.getParameter(\"cod_cliente\"));\r\n\t\tp.setCan(ca);\r\n\t\tp.setCl(c);\r\n\t\t\r\n\t\tpdmodel.RegistrarPedido(p);\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void insertEncoreItem(Item item) {\n\t\tint i = sqlSession.insert(ns+\".insertEncoreItem\", item);\r\n\t\tif(i>0) System.out.println(\"insert Encore item1\");\r\n\t}", "x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product addNewProduct();", "public static void Enitityinsert (int id,String name,String FQN, String container,int potincy,String directtype,String table )\n { \n \n \ttry \n { \n Statement stmt=null; \n ResultSet res=null; \n Class.forName(\"com.mysql.jdbc.Driver\"); \n Connection conn = DriverManager.getConnection(sqldatabase,mysqluser,mysqlpassword); \n stmt = (Statement)conn.createStatement(); \n res= stmt.executeQuery(\"SELECT * from entity \"); \n\n\n // 增加数据\n Statement stm = (Statement) conn.createStatement();// 提交查巡\n String sql = \"select * from entity\";\n ResultSet rs = stm.executeQuery(sql);// 取得查巡結果\n// sql = \"insert into entity (id,name,FQN,container) values ('6','AccountType','Example2.O2.AccountType','Example2.O10')\";\n \n int n = stm.executeUpdate(\"insert into \"+table+\"(id,FQN,name,container,potincy,direct_type) values (\"+\"'\"+id+\"'\"+\",\"+\"'\"+FQN+\"'\"+\",\"+\"'\"+name+\"'\"+\",\"+\"'\"+container+\"'\"+\",\"+\"'\"+potincy+\"'\"+\",\"+\"'\"+directtype+\"'\"+\")\"); // 增加数据 \n if (n > 0) {\n// JOptionPane.showMessageDialog(null, \"成功\");\n \n \n } else {\n// JOptionPane.showMessageDialog(null, \"失败\");\n }\n //增加数据结束\n\n while (res.next()) \n { \n\n } \n } \n \n catch(Exception ex) \n { \n ex.printStackTrace(); \n } \n}", "@Override\n\tpublic int Insert(Warehouse ware) {\n\t\ttry {\n\t\t\t\n\t\t\t System.out.println(\"WarehouseDAOManager is working\");\n\t\t\t success=0;\n\t\t\t success=1;\n\t\t\t return (int)getSqlMapClientTemplate().insert(\"Warehouse.insertWarehouse\", ware);\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println(\"WarehouseDAOManager is not working\");\n\t\t\tsuccess=0;\n\n\t\t}\n\t\treturn 0;\n\t}", "public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);", "private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n MonitoriaEntity entity = factory.manufacturePojo(MonitoriaEntity.class);\r\n\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }", "@Override\n\tpublic void inativar(EntidadeDominio entidade) {\n\t\tPreparedStatement pst=null;\n\t\tLivro livro = (Livro)entidade;\t\t\n\t\ttry {\n\t\t\topenConnection();\n\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\n\t\t\tStringBuilder sql = new StringBuilder();\t\t\t\n\t\t\tsql.append(\"UPDATE livro SET livStatus=?\");\n\t\t\tsql.append(\"WHERE idlivro=?\");\t\t\n\t\t\t\n\t\t\t\t\t\n\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\tpst.setString(1, \"INATIVADO\");\n\t\t\tpst.setInt(2, livro.getId());\n\t\t\tpst.executeUpdate();\t\t\t\n\t\t\tconnection.commit();\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\ttry {\n\t\t\t\tconnection.rollback();\n\t\t\t} catch (SQLException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\t\t\t\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\tpst.close();\n\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//SEGUNDA PARTE\n\t\t\t\ttry {\n\t\t\t\t\topenConnection();\n\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t//FALTA COLOCAR EDITORA\t\t\n\t\t\t\t\tStringBuilder sql = new StringBuilder();\n\t\t\t\t\tSystem.out.println(livro.getId());\n\t\t\t\t\tSystem.out.println(livro.getJustificativa());\n\t\t\t\t\tSystem.out.println(livro.getIdCatJustificativa());\n\t\t\t\t\tsql.append(\"INSERT INTO justificativainativar (id_livro , justificativa, id_Inativar) VALUES (?,?,?)\");\t\t\n\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\tpst.setInt(1, livro.getId());\n\t\t\t\t\tpst.setString(2,livro.getJustificativa());\n\t\t\t\t\tpst.setInt(3,livro.getIdCatJustificativa());\n\t\t\t\t\tpst.executeUpdate();\n\t\t\t\t\tconnection.commit();\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t}finally{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\n\t}", "@Override\r\n\tpublic void inserir(Evento evento) {\n\t\trepository.save(evento);\r\n\t}", "public void saveProduit(Produit theProduit);", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "private void insertData() {\n\n for (int i = 0; i < 3; i++) {\n ProveedorEntity proveedor = factory.manufacturePojo(ProveedorEntity.class);\n BonoEntity entity = factory.manufacturePojo(BonoEntity.class);\n int noOfDays = 8;\n Date dateOfOrder = new Date();\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n Date date = calendar.getTime();\n entity.setExpira(date);\n noOfDays = 1;\n calendar = Calendar.getInstance();\n calendar.setTime(dateOfOrder);\n calendar.add(Calendar.DAY_OF_YEAR, noOfDays);\n date = calendar.getTime();\n entity.setAplicaDesde(date);\n entity.setProveedor(proveedor);\n em.persist(entity);\n ArrayList lista=new ArrayList<>();\n lista.add(entity);\n proveedor.setBonos(lista);\n em.persist(proveedor);\n pData.add(proveedor);\n data.add(entity); \n }\n }", "public G insertar(G entity, HttpServletRequest httpRequest) throws AppException;", "public void insert()\n\t{\n\t}", "@Override\n\tpublic void insert(Unidade obj) {\n\n\t}", "public void crearDepartamento(String nombredep, String num, int nvJefe, int horIn, int minIn, int horCi, int minCi) {\r\n\t\t// TODO Auto-generated method stub by carlos Sánchez\r\n\t\t//Agustin deberia devolverme algo q me indique si hay un fallo alcrearlo cual es\r\n\t\t//hazlo como mas facil te sea.Yo no se cuantos distintos puede haber.\r\n\t\r\n\t//para añadir el Dpto en la BBDD no se necesita el Nombre del Jefe\r\n\t//pero si su numero de vendedor (por eso lo he puesto como int) que forma parte de la PK \r\n\t\t\r\n\t\tint n= Integer.parseInt(num);\r\n\t\tString horaapertura=aplicacion.utilidades.Util.horaminutosAString(horIn, minIn);\r\n\t\tString horacierre=aplicacion.utilidades.Util.horaminutosAString(horCi, minCi);\r\n\t\tTime thI= Time.valueOf(horaapertura);\r\n\t\tTime thC=Time.valueOf(horacierre);\r\n\t\tthis.controlador.insertDepartamentoPruebas(nombredep, nvJefe,thI,thC); //tabla DEPARTAMENTO\r\n\t\tthis.controlador.insertNumerosDepartamento(n, nombredep); //tabla NumerosDEPARTAMENTOs\r\n\t\tthis.controlador.insertDepartamentoUsuario(nvJefe, nombredep); //tabla DepartamentoUsuario\r\n\r\n\t\t//insertamos en la cache\r\n\t\t//Departamento d=new Departamento(nombredep,Integer.parseInt(num),getEmpleado(nvJefe),null,null);\r\n\t\t//departamentosJefe.add(d);\r\n\t\t/*ArrayList<Object> aux=new ArrayList<Object>();\r\n\t\taux.add(nombredep);\r\n\t\taux.add(n);\r\n\t\taux.add(nvJefe);\r\n\t\tinsertCache(aux,\"crearDepartamento\");*///no quitar el parseInt\r\n\t}", "public static void insertFournisseur(Fournisseur unFournisseur ) {\n Bdd uneBdd = new Bdd(\"localhost\", \"paruline \", \"root\", \"\");\n\n String checkVille = \"CALL checkExistsCity('\" + unFournisseur.getVille() + \"','\" + unFournisseur.getCp() + \"');\";\n try {\n uneBdd.seConnecter();\n Statement unStat = uneBdd.getMaConnection().createStatement();\n\n ResultSet unRes = unStat.executeQuery(checkVille);\n\n int nb = unRes.getInt(\"nb\");\n\n if (nb == 0) {\n String ajoutVille = \"CALL InsertCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"');\";\n\n try {\n Statement unStatAjout = uneBdd.getMaConnection().createStatement();\n\n unStatAjout.executeQuery(ajoutVille);\n unStatAjout.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + ajoutVille);\n }\n }\n\n String id = \"CALL GetCity('\" + unFournisseur.getVille() + \"', '\" + unFournisseur.getCp() + \"')\";\n\n try {\n Statement unStatId = uneBdd.getMaConnection().createStatement();\n\n ResultSet unResId = unStatId.executeQuery(id);\n\n int id_city = unResId.getInt(\"id_city\");\n\n\n\n String insertFournisseur = \"INSERT INTO fournisseur(id_city, name_f, adresse_f, phoneFour) VALUES (\" + id_city + \", '\" + unFournisseur.getNom() + \"', \" +\n \"'\" + unFournisseur.getAdresse() + \"', '\" + unFournisseur.getTelephone() + \"')\";\n\n try {\n Statement unStatFourn = uneBdd.getMaConnection().createStatement();\n unStatFourn.executeQuery(insertFournisseur);\n\n unStatFourn.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + insertFournisseur);\n }\n\n unResId.close();\n unStatId.close();\n }\n catch (SQLException e) {\n System.out.println(\"Erreur : \" + id);\n }\n\n unRes.close();\n unStat.close();\n uneBdd.seDeConnecter();\n } catch (SQLException exp) {\n System.out.println(\"Erreur : \" + checkVille);\n }\n }", "private void attachEntity(Usuario entity) {\n }", "public void addBestelling(Bestelling bestelling) {\n\r\n DatabaseConnection connection = new DatabaseConnection();\r\n if(connection.openConnection())\r\n {\r\n // If a connection was successfully setup, execute the INSERT statement\r\n\r\n connection.executeSQLInsertStatement(\"INSERT INTO bestelling (`bestelId`, `tafelId`) VALUES(\" + bestelling.getId() + \",\" + bestelling.getTafelId() + \");\");\r\n\r\n for(Drank d : bestelling.getDranken()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO drank_bestelling (`DrankID`, `BestelId`, `hoeveelheid`) VALUES (\" + d.getDrankId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n for(Gerecht g : bestelling.getGerechten()) {\r\n connection.executeSQLInsertStatement(\"INSERT INTO gerecht_bestelling (`GerechtID`, `BestelId`, `hoeveelheid`) VALUES (\" + g.getGerechtId() + \",\" + bestelling.getId() + \", `1`\");\r\n }\r\n\r\n\r\n //Close DB connection\r\n connection.closeConnection();\r\n }\r\n\r\n }", "public void crearTema(Tema tema){\n\t\tTemaDao temaDao = new TemaDao(PersistenceUtil.getEntityManager());\n\t\ttemaDao.persist(tema);\n\t}", "void adicionaComentario(Comentario comentario);", "@Test\r\n\tpublic void addToDb() {\r\n\t\tservice.save(opinion);\r\n\t\tassertNotEquals(opinion.getId(), 0);\r\n\t\tassertTrue(service.exists(opinion.getId()));\r\n\t}", "private void insertTupel(Connection c) {\n try {\n String query = \"INSERT INTO \" + getEntityName() + \" VALUES (null,?,?,?,?,?);\";\n PreparedStatement ps = c.prepareStatement(query, Statement.RETURN_GENERATED_KEYS);\n ps.setString(1, getAnlagedatum());\n ps.setString(2, getText());\n ps.setString(3, getBild());\n ps.setString(4, getPolizist());\n ps.setString(5, getFall());\n ps.executeUpdate();\n ResultSet rs = ps.getGeneratedKeys();\n rs.next();\n setID(rs.getString(1));\n getPk().setValue(getID());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic void ativar(EntidadeDominio entidade) throws SQLException {\n\t\t\t\tPreparedStatement pst=null;\n\t\t\t\tLivro livro = (Livro)entidade;\t\t\n\t\t\t\ttry {\n\t\t\t\t\topenConnection();\n\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tStringBuilder sql = new StringBuilder();\t\t\t\n\t\t\t\t\tsql.append(\"UPDATE livro SET livStatus=?\");\n\t\t\t\t\tsql.append(\"WHERE idlivro=?\");\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\tpst.setString(1, \"ATIVADO\");\n\t\t\t\t\tpst.setInt(2, livro.getId());\n\t\t\t\t\tpst.executeUpdate();\t\t\t\n\t\t\t\t\tconnection.commit();\t\n\t\t\t\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t}finally{\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//SEGUNDA PARTE\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\topenConnection();\n\t\t\t\t\t\t\tconnection.setAutoCommit(false);\t\t\t\n\t\t\t\t\t\t\t//FALTA COLOCAR EDITORA\t\t\n\t\t\t\t\t\t\tStringBuilder sql = new StringBuilder();\n\t\t\t\t\t\t\tSystem.out.println(livro.getId());\n\t\t\t\t\t\t\tSystem.out.println(livro.getJustificativa());\n\t\t\t\t\t\t\tSystem.out.println(livro.getIdCatJustificativa());\n\t\t\t\t\t\t\tsql.append(\"INSERT INTO justificativaativar (id_livro , justificativa, id_Ativar) VALUES (?,?,?)\");\t\t\n\t\t\t\t\t\t\tpst = connection.prepareStatement(sql.toString());\n\t\t\t\t\t\t\tpst.setInt(1, livro.getId());\n\t\t\t\t\t\t\tpst.setString(2,livro.getJustificativa());\n\t\t\t\t\t\t\tpst.setInt(3,livro.getIdCatJustificativa());\n\t\t\t\t\t\t\tpst.executeUpdate();\n\t\t\t\t\t\t\tconnection.commit();\t\t\n\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tconnection.rollback();\n\t\t\t\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te.printStackTrace();\t\t\t\n\t\t\t\t\t\t}finally{\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpst.close();\n\t\t\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t}", "private void addArticle() {\n\t\tAdminComposite.display(\"\", STATUS_SUCCESS, SUCCESS_FONT_COLOR);\n\t\tQuotationDetailsDTO detail = new QuotationDetailsDTO();\n\t\ttry {\n\t\t\tdetail = createQuotationDetail(detail);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (validateMandatoryParameters(detail)) {\n\t\t\taddToArticleTable(detail);\n\t\t}\n\t}", "@Override\n\tpublic void importarExpediente(Expedientes exp) throws ExpedienteNoEncontradoException {\n\t\tem.merge(exp);//Si no estaba la crea y si estaba la va a actualizar\n\t\t\n\t}", "int insert(WfCfgModuleCatalog record);", "void createACustomer() {\r\n\t\tSystem.out.println(\"\\nCreating a customer:\");\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\tCustomer2 c1 = new Customer2(\"Ali\", \"Telli\");\r\n\t\ttx.begin();\r\n\t\tem.persist(c1);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public void insert(EmployeeEntity entity){\n EmployeeDB.getInstance().insertOrUpdate(entity);\n }", "public void addAnzeige(Anzeige anzeigeToAdd) throws StoreException {\n \r\n \t try {\r\n PreparedStatement preparedStatement = connection\r\n .prepareStatement(\"insert into Dbp71.Anzeige (titel, text, preis, ersteller, status) values (?,?,?,?,?)\");\r\n \t\t\r\n //preparedStatement.setInt(1, anzeigeToAdd.getId_Anzeige());\r\n preparedStatement.setString(1, anzeigeToAdd.getTitel());\r\n preparedStatement.setString(2, anzeigeToAdd.getText());\r\n preparedStatement.setBigDecimal(3, BigDecimal.valueOf(anzeigeToAdd.getPreis()));\r\n // preparedStatement.setString(5, anzeigeToAdd.getErsteller());\r\n preparedStatement.setString(4, anzeigeToAdd.getErsteller());\r\n preparedStatement.setString(5, anzeigeToAdd.getStatus());\r\n System.out.println(anzeigeToAdd.getTitel()+ anzeigeToAdd.getText()+ BigDecimal.valueOf(anzeigeToAdd.getPreis())\r\n + anzeigeToAdd.getErsteller()+ anzeigeToAdd.getErsteller()+ anzeigeToAdd.getStatus());\r\n preparedStatement.executeUpdate();\r\n \r\n \r\n }\r\n catch (SQLException e) {\r\n throw new StoreException(e);\r\n }\r\n }", "private void inseredados() {\n // Insert Funcionários\n\n FuncionarioDAO daoF = new FuncionarioDAO();\n Funcionario func1 = new Funcionario();\n func1.setCpf(\"08654683970\");\n func1.setDataNasc(new Date(\"27/04/1992\"));\n func1.setEstadoCivil(\"Solteiro\");\n func1.setFuncao(\"Garcom\");\n func1.setNome(\"Eduardo Kempf\");\n func1.setRg(\"10.538.191-3\");\n func1.setSalario(1000);\n daoF.persisteObjeto(func1);\n\n Funcionario func2 = new Funcionario();\n func2.setCpf(\"08731628974\");\n func2.setDataNasc(new Date(\"21/08/1992\"));\n func2.setEstadoCivil(\"Solteira\");\n func2.setFuncao(\"Caixa\");\n func2.setNome(\"Juliana Iora\");\n func2.setRg(\"10.550.749-6\");\n func2.setSalario(1200);\n daoF.persisteObjeto(func2);\n\n Funcionario func3 = new Funcionario();\n func3.setCpf(\"08731628974\");\n func3.setDataNasc(new Date(\"03/05/1989\"));\n func3.setEstadoCivil(\"Solteiro\");\n func3.setFuncao(\"Gerente\");\n func3.setNome(\"joão da Silva\");\n func3.setRg(\"05.480.749-2\");\n func3.setSalario(3000);\n daoF.persisteObjeto(func3);\n\n Funcionario func4 = new Funcionario();\n func4.setCpf(\"01048437990\");\n func4.setDataNasc(new Date(\"13/04/1988\"));\n func4.setEstadoCivil(\"Solteiro\");\n func4.setFuncao(\"Garçon\");\n func4.setNome(\"Luiz Fernandodos Santos\");\n func4.setRg(\"9.777.688-1\");\n func4.setSalario(1000);\n daoF.persisteObjeto(func4);\n\n TransactionManager.beginTransaction();\n Funcionario func5 = new Funcionario();\n func5.setCpf(\"01048437990\");\n func5.setDataNasc(new Date(\"13/04/1978\"));\n func5.setEstadoCivil(\"Casada\");\n func5.setFuncao(\"Cozinheira\");\n func5.setNome(\"Sofia Gomes\");\n func5.setRg(\"3.757.688-8\");\n func5.setSalario(1500);\n daoF.persisteObjeto(func5);\n\n // Insert Bebidas\n BebidaDAO daoB = new BebidaDAO();\n Bebida bebi1 = new Bebida();\n bebi1.setNome(\"Coca Cola\");\n bebi1.setPreco(3.25);\n bebi1.setQtde(1000);\n bebi1.setTipo(\"Refrigerante\");\n bebi1.setDataValidade(new Date(\"27/04/2014\"));\n daoB.persisteObjeto(bebi1);\n\n Bebida bebi2 = new Bebida();\n bebi2.setNome(\"Cerveja\");\n bebi2.setPreco(4.80);\n bebi2.setQtde(1000);\n bebi2.setTipo(\"Alcoolica\");\n bebi2.setDataValidade(new Date(\"27/11/2013\"));\n daoB.persisteObjeto(bebi2);\n\n Bebida bebi3 = new Bebida();\n bebi3.setNome(\"Guaraná Antatica\");\n bebi3.setPreco(3.25);\n bebi3.setQtde(800);\n bebi3.setTipo(\"Refrigerante\");\n bebi3.setDataValidade(new Date(\"27/02/2014\"));\n daoB.persisteObjeto(bebi3);\n\n Bebida bebi4 = new Bebida();\n bebi4.setNome(\"Água com gás\");\n bebi4.setPreco(2.75);\n bebi4.setQtde(500);\n bebi4.setTipo(\"Refrigerante\");\n bebi4.setDataValidade(new Date(\"27/08/2013\"));\n daoB.persisteObjeto(bebi4);\n\n Bebida bebi5 = new Bebida();\n bebi5.setNome(\"Whisky\");\n bebi5.setPreco(3.25);\n bebi5.setQtde(1000);\n bebi5.setTipo(\"Alcoolica\");\n bebi5.setDataValidade(new Date(\"03/05/2016\"));\n daoB.persisteObjeto(bebi5);\n\n // Insert Comidas\n ComidaDAO daoC = new ComidaDAO();\n Comida comi1 = new Comida();\n comi1.setNome(\"Batata\");\n comi1.setQuantidade(30);\n comi1.setTipo(\"Kilograma\");\n comi1.setDataValidade(new Date(\"27/04/2013\"));\n daoC.persisteObjeto(comi1);\n\n Comida comi2 = new Comida();\n comi2.setNome(\"Frango\");\n comi2.setQuantidade(15);\n comi2.setTipo(\"Kilograma\");\n comi2.setDataValidade(new Date(\"22/04/2013\"));\n daoC.persisteObjeto(comi2);\n\n Comida comi3 = new Comida();\n comi3.setNome(\"Mussarela\");\n comi3.setQuantidade(15000);\n comi3.setTipo(\"Grama\");\n comi3.setDataValidade(new Date(\"18/04/2013\"));\n daoC.persisteObjeto(comi3);\n\n Comida comi4 = new Comida();\n comi4.setNome(\"Presunto\");\n comi4.setQuantidade(10000);\n comi4.setTipo(\"Grama\");\n comi4.setDataValidade(new Date(\"18/04/2013\"));\n daoC.persisteObjeto(comi4);\n\n Comida comi5 = new Comida();\n comi5.setNome(\"Bife\");\n comi5.setQuantidade(25);\n comi5.setTipo(\"Kilograma\");\n comi5.setDataValidade(new Date(\"22/04/2013\"));\n daoC.persisteObjeto(comi5);\n\n\n // Insert Mesas\n MesaDAO daoM = new MesaDAO();\n Mesa mes1 = new Mesa();\n mes1.setCapacidade(4);\n mes1.setStatus(true);\n daoM.persisteObjeto(mes1);\n\n Mesa mes2 = new Mesa();\n mes2.setCapacidade(4);\n mes2.setStatus(true);\n daoM.persisteObjeto(mes2);\n\n Mesa mes3 = new Mesa();\n mes3.setCapacidade(6);\n mes3.setStatus(true);\n daoM.persisteObjeto(mes3);\n\n Mesa mes4 = new Mesa();\n mes4.setCapacidade(6);\n mes4.setStatus(true);\n daoM.persisteObjeto(mes4);\n\n Mesa mes5 = new Mesa();\n mes5.setCapacidade(8);\n mes5.setStatus(true);\n daoM.persisteObjeto(mes5);\n\n // Insert Pratos\n PratoDAO daoPr = new PratoDAO();\n Prato prat1 = new Prato();\n List<Comida> comI = new ArrayList<Comida>();\n comI.add(comi1);\n prat1.setNome(\"Porção de Batata\");\n prat1.setIngredientes(comI);\n prat1.setQuantidadePorcoes(3);\n prat1.setPreco(13.00);\n daoPr.persisteObjeto(prat1);\n\n Prato prat2 = new Prato();\n List<Comida> comII = new ArrayList<Comida>();\n comII.add(comi2);\n prat2.setNome(\"Porção de Frango\");\n prat2.setIngredientes(comII);\n prat2.setQuantidadePorcoes(5);\n prat2.setPreco(16.00);\n daoPr.persisteObjeto(prat2);\n\n Prato prat3 = new Prato();\n List<Comida> comIII = new ArrayList<Comida>();\n comIII.add(comi1);\n comIII.add(comi3);\n comIII.add(comi4);\n prat3.setNome(\"Batata Recheada\");\n prat3.setIngredientes(comIII);\n prat3.setQuantidadePorcoes(3);\n prat3.setPreco(13.00);\n daoPr.persisteObjeto(prat3);\n\n Prato prat4 = new Prato();\n List<Comida> comIV = new ArrayList<Comida>();\n comIV.add(comi2);\n comIV.add(comi3);\n comIV.add(comi4);\n prat4.setNome(\"Lanche\");\n prat4.setIngredientes(comIV);\n prat4.setQuantidadePorcoes(3);\n prat4.setPreco(13.00);\n daoPr.persisteObjeto(prat4);\n\n Prato prat5 = new Prato();\n prat5.setNome(\"Porção especial\");\n List<Comida> comV = new ArrayList<Comida>();\n comV.add(comi1);\n comV.add(comi3);\n comV.add(comi4);\n prat5.setIngredientes(comV);\n prat5.setQuantidadePorcoes(3);\n prat5.setPreco(13.00);\n daoPr.persisteObjeto(prat5);\n\n // Insert Pedidos Bebidas\n PedidoBebidaDAO daoPB = new PedidoBebidaDAO();\n PedidoBebida pb1 = new PedidoBebida();\n pb1.setPago(false);\n List<Bebida> bebI = new ArrayList<Bebida>();\n bebI.add(bebi1);\n bebI.add(bebi2);\n pb1.setBebidas(bebI);\n pb1.setIdFuncionario(func5);\n pb1.setIdMesa(mes5);\n daoPB.persisteObjeto(pb1);\n\n PedidoBebida pb2 = new PedidoBebida();\n pb2.setPago(false);\n List<Bebida> bebII = new ArrayList<Bebida>();\n bebII.add(bebi1);\n bebII.add(bebi4);\n pb2.setBebidas(bebII);\n pb2.setIdFuncionario(func4);\n pb2.setIdMesa(mes4);\n daoPB.persisteObjeto(pb2);\n\n TransactionManager.beginTransaction();\n PedidoBebida pb3 = new PedidoBebida();\n pb3.setPago(false);\n List<Bebida> bebIII = new ArrayList<Bebida>();\n bebIII.add(bebi2);\n bebIII.add(bebi3);\n pb3.setBebidas(bebIII);\n pb3.setIdFuncionario(func2);\n pb3.setIdMesa(mes2);\n daoPB.persisteObjeto(pb3);\n\n PedidoBebida pb4 = new PedidoBebida();\n pb4.setPago(false);\n List<Bebida> bebIV = new ArrayList<Bebida>();\n bebIV.add(bebi2);\n bebIV.add(bebi5);\n pb4.setBebidas(bebIV);\n pb4.setIdFuncionario(func3);\n pb4.setIdMesa(mes3);\n daoPB.persisteObjeto(pb4);\n\n PedidoBebida pb5 = new PedidoBebida();\n pb5.setPago(false);\n List<Bebida> bebV = new ArrayList<Bebida>();\n bebV.add(bebi1);\n bebV.add(bebi2);\n bebV.add(bebi3);\n pb5.setBebidas(bebV);\n pb5.setIdFuncionario(func1);\n pb5.setIdMesa(mes5);\n daoPB.persisteObjeto(pb5);\n\n // Insert Pedidos Pratos\n PedidoPratoDAO daoPP = new PedidoPratoDAO();\n PedidoPrato pp1 = new PedidoPrato();\n pp1.setPago(false);\n List<Prato> praI = new ArrayList<Prato>();\n praI.add(prat1);\n praI.add(prat2);\n praI.add(prat3);\n pp1.setPratos(praI);\n pp1.setIdFuncionario(func5);\n pp1.setIdMesa(mes5);\n daoPP.persisteObjeto(pp1);\n\n PedidoPrato pp2 = new PedidoPrato();\n pp2.setPago(false);\n List<Prato> praII = new ArrayList<Prato>();\n praII.add(prat1);\n praII.add(prat3);\n pp2.setPratos(praII);\n pp2.setIdFuncionario(func4);\n pp2.setIdMesa(mes4);\n daoPP.persisteObjeto(pp2);\n\n PedidoPrato pp3 = new PedidoPrato();\n pp3.setPago(false);\n List<Prato> praIII = new ArrayList<Prato>();\n praIII.add(prat1);\n praIII.add(prat2);\n pp3.setPratos(praIII);\n pp3.setIdFuncionario(func2);\n pp3.setIdMesa(mes2);\n daoPP.persisteObjeto(pp3);\n\n PedidoPrato pp4 = new PedidoPrato();\n pp4.setPago(false);\n List<Prato> praIV = new ArrayList<Prato>();\n praIV.add(prat1);\n praIV.add(prat3);\n pp4.setPratos(praIV);\n pp4.setIdFuncionario(func3);\n pp4.setIdMesa(mes3);\n daoPP.persisteObjeto(pp4);\n\n PedidoPrato pp5 = new PedidoPrato();\n pp5.setPago(false);\n List<Prato> praV = new ArrayList<Prato>();\n praV.add(prat1);\n praV.add(prat2);\n praV.add(prat3);\n praV.add(prat4);\n pp5.setPratos(praV);\n pp5.setIdFuncionario(func1);\n pp5.setIdMesa(mes5);\n daoPP.persisteObjeto(pp5);\n\n }", "public void addNen(Nen ac) {\n\t\t\tEntityManager em = emf.createEntityManager();\n\t\t\tem.getTransaction().begin();\n\t\t\tem.persist(ac);\n\t\t\tem.getTransaction().commit();\n\t\t\tem.close();\n\t\t}", "@FXML\n\t private void insertProduct (ActionEvent actionEvent) throws SQLException, ClassNotFoundException {\n\t try {\n\t ProductDAO.insertProd(denumireText.getText(),producatorText.getText(),pretText.getText(),marimeText.getText(),culoareText.getText());\n\t resultArea.setText(\"Product inserted! \\n\");\n\t } catch (SQLException e) {\n\t resultArea.setText(\"Problem occurred while inserting product \" + e);\n\t throw e;\n\t }\n\t }", "@Override\r\n\tpublic void add(Activitat activitat) {\r\n\t\tqueryString = \"INSERT INTO\" + ACTIVITATTABLENAME + \" NOM, DESCRIPCIO, DIA, HORA, ESPAI) VALUES(?,?,?,?,?)\";\r\n\t\t\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\t\r\n\t\t\ts.setString(0, activitat.getNom());\r\n\t\t\ts.setString(1,activitat.getDescripcio());\r\n\t\t\ts.setDate(2, new java.sql.Date(activitat.getData_realitzacio().getTime()\r\n\t\t\t\t\t.getTime()));\r\n\t\t\ts.setTimestamp(3, new java.sql.Timestamp(activitat.getHora().getTime()));\r\n\t\t\ts.setString(4, activitat.getEspai());\r\n\t\t\t\r\n\t\t\ts.executeUpdate();\r\n\t\t\t\r\n\t\t\ts.close();\r\n\t\t\tconexio.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\t\r\n\t}", "public void create(Membre membre) {\n try {\n// em = getEntityManager();\n// entManager.getTransaction().begin();\n entManager.persist(membre);\n// entManager.getTransaction().commit();\n } finally {\n// if (entManager.getTransaction() != null) {\n// entManager.close();\n// }\n }\n }", "public void commitEntity();", "@Override\r\n public int deptInsert(Dept dept) {\n return sqlSession.insert(\"deptDAO.deptInsert\", dept);\r\n }", "@Override\r\n\tpublic void insertOrder(OrderVO vo) throws Exception {\n\t\tsqlSession.insert(namespaceOrder+\".createOrder\",vo);\r\n\t}", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "public abstract void leerPersistencia();", "@Override\n public void salvar(EntidadeDominio entidade) throws SQLException\n {\n\t\n }" ]
[ "0.6498546", "0.6437039", "0.6431186", "0.64171624", "0.63100225", "0.63050324", "0.6288508", "0.6281461", "0.6251776", "0.6220931", "0.62009186", "0.61926883", "0.6151685", "0.6150873", "0.6133588", "0.61332947", "0.61317843", "0.611952", "0.6115942", "0.60909665", "0.6083978", "0.6071635", "0.60299766", "0.60226506", "0.6022001", "0.6014614", "0.6008454", "0.60047317", "0.5989558", "0.5988354", "0.5968876", "0.5968837", "0.5967126", "0.5949554", "0.5949278", "0.59463716", "0.5944261", "0.59436136", "0.59360325", "0.59244347", "0.5915534", "0.59124565", "0.58967066", "0.5883006", "0.58816695", "0.58799094", "0.5879318", "0.58728766", "0.5870301", "0.586502", "0.5860549", "0.58487743", "0.5847539", "0.58375317", "0.58298415", "0.58296216", "0.58279306", "0.58275515", "0.582687", "0.5824042", "0.58213747", "0.5820244", "0.58185875", "0.58162194", "0.5813938", "0.58139", "0.5813892", "0.5813349", "0.58120084", "0.58067364", "0.58031136", "0.58018786", "0.57994974", "0.579913", "0.5795037", "0.57926285", "0.57860494", "0.5779731", "0.5766549", "0.5765034", "0.5764641", "0.57551265", "0.5750672", "0.5746023", "0.5743655", "0.57376534", "0.5723563", "0.57227045", "0.5720089", "0.57189184", "0.5713551", "0.5709413", "0.5709257", "0.57060975", "0.5704532", "0.5703933", "0.5701155", "0.5700534", "0.57001466", "0.56891674", "0.5686196" ]
0.0
-1
Methode permettant de mettre a jour une entite du depot
public T update(T entity) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract void depComponent(DepComponent depComponent);", "void depComponent(DepComponent depComponent);", "public void zugInsDepot() {\n depot++;\n }", "public void aplicarDescuento();", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public DepControlar() {\n \n initComponents();\n depservice = new DepService();\n }", "public void trenneVerbindung();", "public void Ordenamiento() {\n\n\t}", "public interface DownPaiementService {\r\n\r\n\t/**\r\n\t * Envoie d'un paiement vers saphir pour chaque {@link Paiement} reçue.\r\n\t * \r\n\t * @param commande\r\n\t * {@link Commande}.\r\n\t * @param paiement\r\n\t * {@link Paiement}.\r\n\t */\r\n\tpublic void envoiePaiement(Commande commande, Paiement paiement);\r\n\r\n}", "public void notifyProjectItem(EtoProject etoProject){\n }", "SpacesInvaders_deplacerVaisseauVersLaGauche createSpacesInvaders_deplacerVaisseauVersLaGauche();", "String getDepotname();", "@Override\n\tpublic void viajar() {\n\t\tSystem.out.println(\"Viaja con todo el Equipo\");\n\t}", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "public void buscarGestor(){\r\n\t\t\r\n\t}", "public void ventilationServices() {\n\t\tSystem.out.println(\"FH----overridden method from hospital management--parent class of fortis hospital\");\n\t}", "private void reposicionarPersonajes() {\n // TODO implement here\n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "SpacesInvaders_deplacerVaisseauVersLaDroite createSpacesInvaders_deplacerVaisseauVersLaDroite();", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public ListaDependente() {\n initComponents();\n carregarTabela();\n }", "@Override\n public List<Dependente> todosOsDepentendes() {\n return dBC.todosOsDepentendes();\n\n }", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "public void travaille();", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "public void sendeSpielfeld();", "public void finePartita() {\n\r\n }", "Vaisseau_seDeplacerVersLaDroite createVaisseau_seDeplacerVersLaDroite();", "public void service() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "void entrerAuGarage();", "public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}", "public void almacenar( Proyecto proyecto) {\n\n }", "public interface ISysDeptService extends IBaseService<SysDept> {\n\n /**\n * 校验部门名称是否唯一\n *\n * @param dept 部门信息\n * @return 结果\n */\n String checkDeptNameUnique(SysDept dept);\n\n /**\n * 查询部门是否存在用户\n *\n * @param deptId 部门ID\n * @return 结果 true 存在 false 不存在\n */\n Boolean checkDeptExistUser(Long deptId);\n\n /**\n * 查询部门管理树\n *\n * @param dept 部门信息\n * @return 所有部门信息\n */\n List<Ztree> selectDeptTree(SysDept dept);\n\n /**\n * 根据角色ID查询菜单\n *\n * @param role 角色对象\n * @return 菜单列表\n */\n List<Ztree> roleDeptTreeData(SysRole role);\n}", "private void makeDeposit() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\n\t\tDepartamento dep40= new Departamento ( 40, \"Formacion\", null );\n\t\t\n\t\t\n\t\tEmpleado emp1 =new Empleado(1,\"paco\",\"perez\",\"h\", 5000, 28, 5, dep40) ;\n\t\t\n\t\t// para introducir el departaementp \n\t\t\n\t\t//primer metodo\n\t\t\n\t\t\n\t\t\t\t\n\t\tEmpleado emp2 =new Empleado(2,\"luis\",\"sanchez\",\"h\", 4000, 45, 2, dep40) ;\t\n\t\tEmpleado emp3 =new Empleado(4, \"javi\", \"perez\", \"h\", 8000, 54, 0.2, dep40);\n\t\t\t\t\n\t\t\n\t\t\t\t\n\t\t\n\t\tSystem.out.println(emp1);\n\t\tSystem.out.println(emp2);\t\n\t\tSystem.out.println(emp3);\n\t\t\n\t\tdep40.setJefe(emp1); // adjudico el Jefe al departamento 40\n\t\t\n\t\t\n\t\t// creo un departaemnto nuevo adjudicado a un empleado ade un departamento inicial ( no tienen por que ser el departamento del que ahora le reclama) usando el constructoe directamente ne vez de la variable que alude a la clase\n\t\t//departamento= new Departamento(120, \"formacion\", jefe)\n\t\tDepartamento dep120 = new Departamento (120, \"formacion\", new Empleado(5, \"luisa\", \"sanchez\", \"M\", 14000, 35, 2, dep40)); //he creado un empleado del depto 30 y luego le hago jefe del 120\n\t\t dep120.getJefe().setDepartamento(dep120); /* actuando con dos variables. como ese new empleado no tiene variable adjudicada \n\t\t *y tengo que hacer alusion a Úl para cambiaer en el empleado su departaemento , me valgo del un metodo dep120.getJefe()que averigua qcual es la direccion de ese empleado en la tabla departamento y con un set le ingerso el departaento nuievo\n\t\t \n\t\t \n\t\t */\n\t\t System.out.println (\"departaqmento 120\" + dep120.getJefe().getNombre());\n\t\t\n\t/* SALIDA POR CONSOLA :\n\t * el niombre del emp2, su salario y el nombre del departamento al que pertenence.\t// \n\t\t* como el nombre departamento no es un atributo normal sino que es NDE una clase relacionada .SE INVOCA AL GET DE LL ATRIBUTO INCLUIDO CONN LA CLASE Y TRAS EL LOS METODOS GET DE LA CLASE DEPARTAMENTO EN ESTE CLASO EL DEL CAMPO NOMBRE DEL DEPARTAMENTO\n\t*/\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre().toUpperCase());\n\t\t/*\n\t\t * el empleado \n\t\t * \n\t\t * */\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\" nombre emp2:\"+emp2.getNombre()+ \" su salalrio es\"+ emp2.getSalario()+\" , su departamento es: \"+emp2.getDepartamento().getNombre());\n\tSystem.out.println(dep120);\n\t// OJO SE BUCLA POR QUE LOS TO STRING DE DEPARTAEMNTO Y CLIENTE SE CRIUZARIAN DEBORDANDO LA MEMORIA. PUEDO HACER VARIAS COSAS\n\t/* PUEDO QUITAR DEUNO DE LOS TO STRING DE UNA CLASE O DE LA OTRA SEGUN ME INTERESE EL CAMPO QUE LAS LIGA ( PEJ DEPARTAMENTO EN EMPLEADO)\n\t * PUEDO CREAR UN METODO QUE SALVE LA CONDICION DE NULL SI ALGUNA VARIABLE ESTA VACICA.\n\t * \n\t * \n\t */\n\t//SALIDA DEL NOMBRE DEL JEFE DEL DEAPARTAEMENTO QUE SEA POR EJEMPLO DE UN EMPLEADO ()\n\t\n\tSystem.out.println ( dep120.getJefe().getNombre()); //get jefe me dedevuelve el monbre de jefe dela tabala departaemnto. get Nombre me devuelve de la tabla empleados el nombre que estaba como jefe en departamento.\n\tSystem.out.println (\"el jefe de emp2 luis: \"+ emp2.getDepartamento().getJefe().getNombre());\n\tSystem.out.println(dep120);\n\t\n\t\n\t\n\t\n\t}", "public void mantenimiento(){\n\t}", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void realiserAcahatProduit() {\n\t\t\n\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\r\n public void salir() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "public void projectModified() { }", "public void projectModified() { }", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "@Override\npublic void investment() {\n\t\n}", "@Override\n\tpublic void hacerDevolucion() {\n\t\tSystem.out.println(\"Hacer Devolucion pantalon\");\n\t}", "void depend(@Nonnull String path);", "public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}", "Debut getDebut();", "public interface ObjetoDependienteDeTurno {\n\n public void siguienteTurno();\n\n}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void ovr() {\n\n\t}", "public void salvarProdutos(Produto produto){\n }", "void addDependsOnMe(DependencyItem dependency);", "void depend(@Nonnull Path path);", "public static void main(String[] args) {\n\t\tEtudiant E1 = new Etudiant(\"Toto\");\n\t\tEtudiant E2 = new Etudiant(\"Toto\");\n\t\t//System.out.println(E1.travailler());\n\t\t//System.out.println(E2.seReposer());\n\t\tE1.travailler();\n\t\tE2.seReposer();\n}", "public void ouvrirListe(){\n\t\n}", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "Vaisseau_seDeplacerVersLaGauche createVaisseau_seDeplacerVersLaGauche();", "public void listeDesEmpruntsEnCours();", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "@Override\n\tpublic void dirigir() {\n\t\tSystem.out.println(\"Dirige al Equipo\");\n\t\t\n\t}", "public interface ExecService {\n /**\n * Parse an XML file into a build model.\n *\n * @param xmlBuildFile\n * \t\tThe file containing the XML build description.\n * @return A Project model for the build.\n * @exception ExecutionException\n * \t\tif the build cannot be parsed\n */\n org.apache.ant.common.model.Project parseXMLBuildFile(java.io.File xmlBuildFile) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Create a project reference.\n *\n * @param referenceName\n * \t\tthe name under which the project will be\n * \t\treferenced.\n * @param model\n * \t\tthe project model.\n * @exception ExecutionException\n * \t\tif the project cannot be referenced.\n */\n void createProjectReference(java.lang.String referenceName, org.apache.ant.common.model.Project model) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build.\n *\n * @param model\n * \t\tthe project model to be used for the build\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(org.apache.ant.common.model.Project model, java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Setup a sub-build using the current frame's project model\n *\n * @param properties\n * \t\tthe initiali properties to be used in the build\n * @return a key to the build allowing it to be executed and managed\n * @exception ExecutionException\n * \t\tif the subbuild cannot be setup\n */\n java.lang.Object setupBuild(java.util.Map properties) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * Run a build which have been previously setup\n *\n * @param buildKey\n * \t\tthe buildKey returned previously when the build was\n * \t\tsetup\n * @param targets\n * \t\tA list of targets to be run\n * @exception ExecutionException\n * \t\tif the build cannot be run\n */\n void runBuild(java.lang.Object buildKey, java.util.List targets) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * execute a task. The task should have already been initialised by the\n * core\n *\n * @param task\n * \t\tthe task to be executed.\n * @exception ExecutionException\n * \t\tif there is a problem in execution.\n */\n void executeTask(org.apache.ant.common.antlib.Task task) throws org.apache.ant.common.util.ExecutionException;\n\n /**\n * get the name of the project associated with this execution.\n *\n * @return the project's name\n */\n java.lang.String getProjectName();\n\n /**\n * Get the basedir for the current execution\n *\n * @return the base directory for this execution of Ant\n */\n java.io.File getBaseDir();\n\n /**\n * Handle subbuild output.\n *\n * @param subbuildKey\n * \t\tthe core's key for managing the subbuild.\n * @param line\n * \t\tthe content produce by the current thread.\n * @param isErr\n * \t\ttrue if this content is from the thread's error stream.\n * @exception ExecutionException\n * \t\tif the subbuild cannot be found.\n */\n void handleBuildOutput(java.lang.Object subbuildKey, java.lang.String line, boolean isErr) throws org.apache.ant.common.util.ExecutionException;\n}", "public interface InterfaceSistemaDeControle {\r\n\t\r\n\t/** Este método adiciona um pedido.\r\n\t * \r\n\t * @param p Recebe um objeto do tipo Pedido.\r\n\t */\r\n\t\r\n\tpublic void adicionaPedido (Pedido p);\r\n\t\r\n\t/** Este método pesquisa pedidos utilizando o código do produto.\r\n\t * \r\n\t * @param codProduto Recebe um objeto do tipo String que representa o código do produto.\r\n\t * @return Este método retorna uma Lista do tipo Pedido contendo todos os produtos que têm o código \r\n\t * igual ao passado no parametro.\r\n\t */\r\n\t\r\n\tpublic List<Pedido> pesquisaIncluindoProduto (String codProduto);\r\n\t\r\n\t/** Este método remove um pedido.\r\n\t * \r\n\t * @param numPedido Este método do tipo long recebe o número do pedido que será removido.\r\n\t */\r\n\tpublic void removePedido (long numPedido);\r\n\t\r\n}", "public void Ingresar() {\nTipoCliente();\n\t\t\t\t\t\t\t\t\t\n}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tpublic void sal() {\n\t\tSystem.out.println(\"This is implemnts from HomePackage Interface.\");\n\t\t\n\t}", "@Override\r\n\tpublic String Fly() {\n\t\treturn \"EL Helicoptero esta volando\";\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public DepoIslemleri() {\n initComponents();\n setLocationRelativeTo(null);\n basla();\n }", "void onDependencyRelation( DependencyRelation relation );", "public void asetaTeksti(){\n }", "public static void main(String[] args) {\n\t\tHamburger cheeseBurger = new Hamburger(\"CheeseBurger\");\r\n\t\tHamburger maxiBurger = new Hamburger(\"MaxiBurger\");\r\n\t\tAccompagnement accompagnement = new Accompagnement(\"Frites\");\r\n\t\tBoisson boissonCoca = new Boisson(\"Coca\");\r\n\t\tBoisson boissonOrange = new Boisson(\"Orange\");\r\n\r\n\t\t// Mise en place de l'environnement\r\n\t\tControlCreerProfil controlCreerProfil = new ControlCreerProfil();\r\n\t\tcontrolCreerProfil.creerProfil(ProfilUtilisateur.PERSONNEL, \"Dupond\", \"Jacques\", \"jdu\");\r\n\r\n\t\t// Connexion du cuisinier\r\n\t\tControlSIdentifier controlSIdentifier = new ControlSIdentifier();\r\n\t\tint numCuisinier = controlSIdentifier.sIdentifier(ProfilUtilisateur.PERSONNEL, \"Jacques.Dupond\", \"jdu\");\r\n\r\n\t\t// Initialisation controleur du cas & cas Inclus/etendu\r\n\t\tControlVerifierIdentification controlVerifierIdentification = new ControlVerifierIdentification();\r\n\t\tcontrolVerifierIdentification.verifierIdentification(ProfilUtilisateur.PERSONNEL, numCuisinier);\r\n\r\n\t\t// cas visualiser commande du jour\r\n\t\tControlVisualiserCommandeJour controlVisualiserCommandeJour = new ControlVisualiserCommandeJour(\r\n\t\t\t\tcontrolVerifierIdentification);\r\n\t\tBoundaryVisualiserCommandeJour boundaryVisualiserCommandeJour = new BoundaryVisualiserCommandeJour(\r\n\t\t\t\tcontrolVisualiserCommandeJour);\r\n\t\tboundaryVisualiserCommandeJour.visualiserCommandeJour(numCuisinier);\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(1500);\r\n\t\t\tSystem.out.println(\"Ecriture des commandes dans le fichier\");\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// extrait cas commander\r\n\t\tBDCommande bdCommande = BDCommande.getInstance();\r\n\t\tbdCommande.enregistrerCommande(1, cheeseBurger, accompagnement, boissonCoca);\r\n\t\tbdCommande.enregistrerCommande(1, maxiBurger, accompagnement, boissonOrange);\r\n\r\n\t\t// Ecriture des commandes dans le fichier\r\n\t\t// Commande n°1 : CheeseBurger, Frites, Coca\r\n\t\t// Commande n°2 : MaxiBurger, Frites, Orange\r\n\t}", "public void leerPlanDieta(int id_paciente);", "void kiemTraThangHopLi() {\n }", "public void listarProducto() {\n }", "public interface Dependable {\n\n /**\n * This method is called by the Dependency Manager when the\n * Dependable object should be updated.\n * This method is called when the actual definition or dependencies of \n * an object change. Expressions need to be rebuilt.\n *\n * @param updatingObjects a set of all the objects that have been\n *\t\t\t or will be updated\n */\n public void dependencyUpdateDef(Set updatingObjects);\n\n /**\n * This method is called by the Dependency Manager when the\n * Dependable object should be updated.\n * This method is called when only a value changes, and the type\n * of the value does not change. An example of this kind of update\n * is when the value of a variable changes, but the definition of\n * it does not. Expressions do not have to be rebuilt.\n *\n * @param updatingObjects a set of all the objects that have been\n *\t\t\t or will be updated\n */\n public void dependencyUpdateVal(Set updatingObjects);\n\n /**\n * @return the depdenency graph node for this class\n */\n public DependencyNode dependencyNode();\n\n}", "public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}", "private void initialDeploy() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public interface DownStuEBService extends EntityService {\n public String down(String code, String fileName)throws Exception;\n}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "private void CargaInicial() {\r\n this.setTitle(\"\" + gui.getTitle().concat(\"\").concat(\" - [Modulo: Precio por Producto/Servicio]\"));\r\n }", "public void affecterDepartementAEntreprise(int depId, int entrepriseId) {\n\t\ttry{\n\t\tlogger.info(\"Dans la methode AffecterDepartement()\");\n\t\tlogger.debug(\"Je vais lancer l'ajout AffecterDepartement().\");\n\t\t\n\t\t\t\tEntreprise entrepriseManagedEntity = entrepriseRepoistory.findById(entrepriseId).get();\n\t\t\t\tDepartement depManagedEntity = deptRepoistory.findById(depId).get();\n\t\t\t\t\n\t\t\t\tdepManagedEntity.setEntreprise(entrepriseManagedEntity);\n\t\t\t\tlogger.debug(\"avant save\");\n\t\t\t\tdeptRepoistory.save(depManagedEntity);\n\t\t\t\tlogger.debug(\"aprés save\");\n\t\t\t\t\n\t\t\t\tlogger.debug(\"Je viens de finir l'ajout .\");\n\t\t\t\tlogger.info(\"Out AffecterDepartement() without errors avec.\");\n\t\t\t\t}\n\t\tcatch (Exception e) \n\t\t{ \n\t\tlogger.error(\"Erreur dans AffecterDepartement() : \" + e); }\n\t\tlogger.info(\"fin methode AffecterDepartement() .\");\n\t\t\n\t}", "public interface IGestorFaseDescartes {\n\t\n\t/**\n\t * Devuelve el jugador al que le toca jugar respecto\n\t * a su posición en la mesa de juego.\n\t * @return posición\n\t */\n\tpublic int getTurnoJuego();\n\n\t/**\n\t * Devuelve la fase de juego en la que se encuentra la mano\n\t * @return Fase del Juego (MUS, DESCARTE, REPARTO, GRANDE)\n\t */\n\tpublic FaseDescartes faseJuego();\n\t\n\t/**\n\t * Controla si se puede pedir mus o no.\n\t * @param j\n\t * @return boolean\n\t */\n\tpublic boolean pedirMus(Jugador j);\n\t\n\t/**\n\t * Controla si se ha cortado el mus o no para determinar\n\t * si se puede iniciar el descarte.\n\t * @param j\n\t * @return boolean\n\t */\n\tpublic boolean cortarMus(Jugador j);\n\t\n\t/**\n\t * Controla los descartes (nº de cartas y cuales) del jugador\n\t * \n\t * @param j\n\t * @param cartas\n\t * @return boolean\n\t */\n\tpublic boolean pedirDescarte(Jugador j, Carta... cartas);\n\n\t/**\n\t * Una vez que todos han solicitado su descarte utiliza la\n\t * interface de descartes para que lo haga efectivo.\n\n\t * @return\n\t */\n\tpublic boolean ejecutarDescartar();\n\t\n\t/**\n\t * Se encarga de controlar el reparto de cargas teniendo en cuenta los\n\t * descartes realizados.\n\t * @param j\n\t * @return El número de cartas recibidas o -1 en caso de error\n\t */\n\tpublic int reparte(Jugador j);\n\n\t/**\n\t * Inicializa los contadores del gestor\n\t */\n\tpublic void inicializar();\n\t\n}", "@Override\n\tpublic void salir() {\n\t\t\n\t}", "public void setDepName(java.lang.String param) {\r\n localDepNameTracker = param != null;\r\n\r\n this.localDepName = param;\r\n }", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "public void sendeSpielStarten();" ]
[ "0.6595286", "0.65593815", "0.6492639", "0.609575", "0.59510565", "0.59053123", "0.5903478", "0.5875723", "0.58487374", "0.58087134", "0.57380265", "0.5733778", "0.57143915", "0.5710116", "0.56966835", "0.56957054", "0.5681961", "0.56775945", "0.56585044", "0.5610238", "0.560246", "0.56021124", "0.55983937", "0.55875784", "0.55731773", "0.55693984", "0.55603874", "0.5559179", "0.55483925", "0.5534644", "0.5533985", "0.5518036", "0.5518036", "0.55047345", "0.5502255", "0.5495289", "0.54921305", "0.5484338", "0.5482283", "0.5475499", "0.54736435", "0.54637897", "0.5463375", "0.54592943", "0.5445185", "0.5438744", "0.54264915", "0.54245526", "0.54216903", "0.5412238", "0.5403975", "0.5403975", "0.54011214", "0.5397846", "0.53808415", "0.5379812", "0.53738904", "0.53684366", "0.53673685", "0.53643316", "0.535841", "0.5357444", "0.53552836", "0.5340476", "0.5340352", "0.53372717", "0.53361833", "0.53302354", "0.53298706", "0.53284585", "0.53246284", "0.53227144", "0.53164464", "0.5313632", "0.53134096", "0.53120697", "0.5311138", "0.53099376", "0.5309212", "0.5300502", "0.529661", "0.52932006", "0.5282062", "0.5281983", "0.5280071", "0.52790177", "0.5278315", "0.52741224", "0.52732575", "0.52700573", "0.526991", "0.52679366", "0.5262008", "0.5257607", "0.5255663", "0.5254506", "0.5251404", "0.5250059", "0.5242355", "0.52399975", "0.5235793" ]
0.0
-1
Methode permettant de supprimer une entite du depot
public void remove(T entity) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void delete(ComplitedOrderInfo arg0) {\n\t\t\n\t}", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "@Override\n\tpublic void delete(Integer deptno) {\n\t\t\n\t}", "public void destory(){\n \n }", "public void remove() {\n\n\t\t\tsuprimirNodo(anterior);\n\n\t\t}", "private void delete() {\n\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}", "@Override\r\n\tpublic void DeletePackage(PackageJour pj) {\n\t\tem.remove(em.contains(pj) ? pj : em.merge(pj));\r\n\t}", "@Override\n public void deletar(Object pacienteParametro) {\n Paciente paciente;\n paciente = (Paciente) pacienteParametro;\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n em.getTransaction().begin();\n em.remove(em.merge(paciente));\n em.getTransaction().commit();\n em.close();\n factory.close();\n }", "public void supprimer(Etudiant t) {\n\t\tdao.supprimer(t);\r\n\t}", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}", "public void delete() {\n\n\t}", "@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}", "@Override\r\n\tpublic void eliminar(IndicadorActividadEscala iae) {\n\r\n\t}", "public void delete(){\r\n\r\n }", "public void removeOrder(){\n foods.clear();\n price = 0;\n }", "@Override\r\n\tpublic void destory() {\n\t\t\r\n\t}", "@Override\n\tpublic void delete(Pedido arg0) {\n\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}", "public void removeOperador() {\r\n\t\toperadorLaboratorio=null;\r\n\t}", "@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "@Override\n\tpublic void deleteGerant(Gerant g) {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}", "public static void scriptDelete() {\n List<BeverageEntity> beverages = (List<BeverageEntity>) adminFacade.getAllBeverages();\n for (int i = 0; i < beverages.size(); i++) {\n System.out.println(\"delete : \" + beverages.get(i));\n adminFacade.removeBeverage(beverages.get(i));\n }\n List<DecorationEntity> decos = (List<DecorationEntity>) adminFacade.getAllDecorations();\n for (int i = 0; i < decos.size(); i++) {\n System.out.println(\"delete : \" + decos.get(i));\n adminFacade.removeDecoration(decos.get(i));\n }\n\n /* Check that there isn't any other cocktails, and delete remaining */\n List<CocktailEntity> cocktails = (List<CocktailEntity>) adminFacade.getAllCocktails();\n if (cocktails.size() > 0) {\n System.err.println(\"Les cocktails n'ont pas été tous supprimés... \"\n + cocktails.size() + \" cocktails restants :\");\n }\n for (int i = 0; i < cocktails.size(); i++) {\n CocktailEntity cocktail = adminFacade.getCocktailFull(cocktails.get(i));\n System.err.println(cocktail.getName() + \" : \"\n + cocktail.getDeliverables());\n adminFacade.removeCocktail(cocktail);\n }\n\n /* Remove client accounts */\n List<ClientAccountEntity> clients = (List<ClientAccountEntity>) adminFacade.getAllClients();\n for (int i = 0; i < clients.size(); i++) {\n adminFacade.removeClient(clients.get(i));\n }\n\n /* Remove addresses */\n List<AddressEntity> addresses = (List<AddressEntity>) adminFacade.getAllAddresses();\n for (int i = 0; i < addresses.size(); i++) {\n adminFacade.removeAddress(addresses.get(i));\n }\n\n /* TODO :\n * * Remove orders\n */\n }", "public void deletar() {\n\t\tClienteDAO Clientedao = new ClienteDAO();\t\r\n\t\tClientedao.delete(this);\r\n\t\t\r\n\t\tnovoRegistro();\r\n\t\tnotifyObservers();\r\n\t}", "public abstract void eliminarSubproducto(EntityManager sesion, Subproducto subproducto);", "@Override\n\tpublic void delete() {\n\n\t}", "@Override\n public void delete()\n {\n }", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "public void delete();", "@Override\r\n\tpublic void eliminar() {\n\t\ttab_nivel_funcion_programa.eliminar();\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}", "public void localizarEremoverProdutoCodigo(Prateleira prat){\r\n //instacia um auxiliar para procura\r\n Produto mockup = new Produto();\r\n int Codigo = Integer.parseInt(JOptionPane.showInputDialog(null,\"Forneca o codigo do produto a ser removido\" ));\r\n mockup.setCodigo(Codigo); \r\n \r\n //informa que caso encontre o produto remova o da arraylist\r\n boolean resultado = prat.getPrateleira().remove(mockup);\r\n if(resultado){\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" Removido\");\r\n }\r\n else {\r\n JOptionPane.showMessageDialog(null, \"Produto de codigo :\" +Codigo+ \" não encontrado\");\r\n }\r\n }", "@Override\n\t\tpublic void eliminar() {\n\t\t\tutilitario.getTablaisFocus().eliminar();\n\t\t}", "public void supprimerImproductifs(){\n grammaireCleaner.nettoyNonProdGramm();\n setChanged();\n notifyObservers(\"2\");\n }", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "@Override\n\tpublic void remover(Agendamento agendamento) {\n\t\t\n\t}", "private static void deleteElement(ProjectElement element) {\r\n \t\tProject projectInternal = element.getProjectInternal();\r\n projectInternal.getElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \r\n projectInternal.eResource().setModified(true);\r\n \t}", "@Override\n\tpublic void delete(Facture y) {\n\t\t\n\t}", "@Override\r\n\tpublic void delete() {\n\r\n\t}", "@Override\n\tpublic void destory() {\n\t\t\n\t}", "@Override\n\tpublic void destory() {\n\t\t\n\t}", "public void eliminar(Producto producto) throws IWDaoException;", "@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}", "public void removed() {\n }", "@Override\npublic int delete(Department department) {\n\treturn 0;\n}", "@Override\n\tpublic void excluir() {\n\t\t\n\t}", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void remove() {\n\n }", "@Override\r\n\t\t\tpublic void eliminar() {\n\r\n\t\t\t}", "public void deleteDepartmentByDeptNo(int dept_no);", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "@Override\n\tpublic void delete() {\n\t\t\n\t}", "public void delete() {\n\n }", "public void remove() {\r\n //\r\n }", "@Override\n\tpublic void delete(String arg0) {\n\t\t\n\t}", "void supprimerTopo(String user, Integer topoId);", "public void eliminarGrupoLocal(GrupoLocalRequest grupoLocalRequest);", "public boolean deletePalvelupisteet();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "public void remove();", "@Override\r\n\tpublic int deleteProduitPanier(Produit p, Panier pan) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void delete(Pessoa arg0) {\n\t\t\n\t}", "public int delete( Conge conge ) ;", "void deleteSub();", "public void remove(){\n }", "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void eliminar() {\n\t\t\n\t}", "public void MarkForDeletion();", "@Override\n\tpublic void eliminar() {\n\n\t}", "public void supprimerFiche(Fiche fiche) ;", "public void remove () {}", "@Override\n\tpublic void softDelete(Registro registro) {\n\t\t\n\t}", "public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}", "public void deleteDepartmentByDeptName(String dept_name);", "void removeDependency(Integer baseOptionId, Integer dependentOptionId);", "public void remove() {\n\t}", "public void remove() {\n\t}", "public void _unlinkSupplier(ModelElement supplier1);", "public void eliminar(Provincia provincia) throws BusinessErrorHelper;", "@Transactional\r\n\t@Override\r\n\tpublic void eliminar(int idDistrito) {\n\t\tDistrito distrito = new Distrito();\r\n\t\tdistrito = em.getReference(Distrito.class, idDistrito);\r\n\t\tem.remove(distrito);\t\r\n\t}", "@Test\n\tpublic void testSupprimer() {\n\t\tprofesseurServiceEmp.supprimer(prof);\n\t}", "public boolean supprimerCompte(int id);", "@Override\n\tpublic void deleteCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}", "public void desligar() {\n\r\n\t}", "public void eliminar(){\n inicio = null;\r\n // Reinicia el contador de tamaño de la lista a 0.\r\n tamanio = 0;\r\n }", "public void eliminar(AplicacionOferta aplicacionOferta){\n try{\n aplicacionOfertaDao.remove(aplicacionOferta);\n }catch(Exception e){\n Logger.getLogger(AplicacionOfertaServicio.class.getName()).log(Level.SEVERE, null, e);\n }\n }", "public void eliminaEdificio() {\n this.edificio = null;\n // Fijo el tipo después de eliminar el personaje\n this.setTipo();\n }", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}", "@Override\r\n\tpublic void remover(Tipo tipo) {\n String sql = \"delete from tipos_servicos where id = ?\";\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, tipo.getId());\r\n \r\n stmt.execute();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}" ]
[ "0.6798758", "0.67355406", "0.673069", "0.66546655", "0.6617164", "0.6602872", "0.6584617", "0.65371174", "0.64825416", "0.6468445", "0.6436874", "0.6410944", "0.6410939", "0.6389247", "0.6368781", "0.63444054", "0.6341891", "0.6341411", "0.63337857", "0.63330805", "0.6320554", "0.6314425", "0.6311263", "0.6296325", "0.62942624", "0.6282753", "0.6274551", "0.62734824", "0.62690985", "0.6266215", "0.6266215", "0.6266215", "0.6266215", "0.6266215", "0.6266215", "0.6254201", "0.62517864", "0.6244034", "0.62436604", "0.6242102", "0.6226819", "0.6210908", "0.62086385", "0.62041223", "0.6202872", "0.6201636", "0.6201636", "0.6198886", "0.61973745", "0.61965775", "0.61940503", "0.61919147", "0.61855185", "0.6183681", "0.61807835", "0.61781484", "0.61761725", "0.61761725", "0.61752063", "0.61602527", "0.6149463", "0.6149141", "0.61361974", "0.61360025", "0.6132422", "0.6132422", "0.6132422", "0.6132422", "0.6132422", "0.61318684", "0.61279243", "0.6116559", "0.6112603", "0.61120075", "0.60991865", "0.6093553", "0.6092076", "0.6092076", "0.60910904", "0.6090748", "0.60894364", "0.60839367", "0.6081796", "0.60780126", "0.6068823", "0.6065233", "0.60651374", "0.6064076", "0.6064076", "0.6062928", "0.6058163", "0.60575897", "0.6055998", "0.60535276", "0.6051236", "0.60487115", "0.60485876", "0.60454327", "0.6044953", "0.6041957", "0.6041666" ]
0.0
-1
Methode permettant de rechercher une entite a partir de son chemin
public T findByPath(String path) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void interagit() {\n super.interagit();\n ArrayList<EtreVivant> cibles = this.ciblesPotentiellesAdjacentes(this.getPosition(),this.nombreVoisins);\n cibles.stream().filter((vivants) -> (vivants.getEtat().equals(EtatEtreVivant.MALADE))).forEach((vivants) -> {\n this.soigne(vivants);\n });\n }", "public void rechercheEtudiantInscripEcheanceParMatricule(){\r\n try { \r\n setViewEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findByMatricule(getViewEtudiantInscripEcheance().getMatricule())); \r\n \r\n //initialisation des echeances\r\n// viewEtudiantInscripEcheance.setVers1(0); \r\n// viewEtudiantInscripEcheance.setVers2(0); \r\n// viewEtudiantInscripEcheance.setVers3(0); \r\n// viewEtudiantInscripEcheance.setVers4(0); \r\n// viewEtudiantInscripEcheance.setVers5(0); \r\n// viewEtudiantInscripEcheance.setVers6(0); \r\n } catch (Exception e) {\r\n FacesMessage message = new FacesMessage(\"Accun étudiant n'a été trouvé! \");\r\n message.setSeverity(FacesMessage.SEVERITY_WARN);\r\n FacesContext.getCurrentInstance().addMessage(null, message); \r\n \r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n } \r\n }", "public IJoueur quiEstMonMaitre();", "private void calculerChemin() {\n suiteDeDeplacement.clear();\n int[][] empreinte = lab.getEmpreinte();\n lee(empreinte, x / Case.TAILLE, y / Case.TAILLE, cibleX, cibleY);\n }", "public CaseRecherchee getCheminEnCours() {\n int index = listeOuverte.indexOf(caseArrivee);\n return index != -1 ? listeOuverte.get(index) : null;\n }", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public List<ViewEtudiantInscriptionEcheance> rechercheEtudiantInscripEcheanceParNomEtPrenom(){ \r\n try{ \r\n setListRechercheEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findEtudInscripByNonEtPrenomWithJocker(getViewEtudiantInscripEcheance().getNomEtPrenom())); \r\n }catch (Exception ex) {\r\n System.err.println(\"Erreur capturée : \"+ex);\r\n }\r\n return listRechercheEtudiantInscripEcheance;\r\n }", "public boolean jeu() {\n int k;\n\n String compJoueur = \"\";\n String compOrdi = \"\";\n String reponse;\n\n boolean victoireJoueur = false;\n boolean victoireOrdi = false;\n String mystJoueur = challenger.nbMystere(); /**nb que le joueur doit trouver*/\n String mystOrdi = defenseur.nbMystere(); /**nb que l'ordinateur doit trouver*/\n String propOrdi = defenseur.proposition(); /**ordinateur genere un code aleatoire en premiere proposition*/\n log.info(\"Proposition ordinateur : \" + propOrdi); /**afficher proposition ordinateur*/\n String propJoueur = \"\";\n String goodResult = MethodesRepetitives.bonResultat();\n\n\n for (k = 1; !victoireJoueur && !victoireOrdi && k <= nbEssais; k++) { /**si ni le joueur ou l'ordinateur n'ont gagne et si le nombre d'essais n'est pas atteind, relancer*/\n\n compOrdi = MethodesRepetitives.compare(mystOrdi, propOrdi); /**lancer la methode de comparaison du niveau defenseur*/\n log.info(\"Reponse Ordinateur :\" + compOrdi); /**afficher la comparaison*/\n propJoueur = challenger.proposition(); /**demander une saisie au joueur selon le mode challenger*/\n compJoueur = MethodesRepetitives.compare(mystJoueur, propJoueur); /**comparer selon le mode challenger*/\n log.info(\"Reponse Joueur :\" + compJoueur); /**afficher la comparaison*/\n\n if (compOrdi.equals(goodResult)) { /**si l'ordinateur a gagne, changement de la valeur victoireOrdi*/\n victoireOrdi = true;\n }else if(compJoueur.equals(goodResult)) {/**si le joueur a gagne changement de la valeur victoireJoeur*/\n victoireJoueur = true;\n } else if (k < nbEssais) { /**sinon redemander un code a l'ordinateur selon les symboles de comparaison*/\n propOrdi = defenseur.ajuste(propOrdi, compOrdi);\n log.info(\"Proposition Ordinateur :\" + propOrdi);\n }\n }\n\n if (victoireOrdi || !victoireJoueur)/**si l'ordinateur ou le joueur perdent alors perdu sinon gagne*/\n victoireJoueur = false;\n else\n victoireJoueur = true;\n\n return victoireJoueur;\n\n\n }", "public void setChemin(String chemin) {\n this.chemin = chemin;\n }", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public void changerJoueur() {\r\n\t\t\r\n\t}", "public synchronized IFlaecheK entnehmen() {\n\t\twartendeThreads++;\n\n\t\twhile (speicher.isEmpty()) {\n\n\t\t\t// Ist der Puffer leergelaufen, wird er durch einen anderen ersetzt.\n\t\t\t// Dazu werden Heuristiken herangezogen.\n\t\t\tif (unwahrscheinlich.size() != 0) {\n\t\t\t\tspeicher = heuristiken.ermittleMittelsHeuristik(unwahrscheinlich);\n\t\t\t\tnotifyAll();\n\t\t\t} else {\n\t\t\t\t// Wenn alle Threads warten, bedeutet dies, dass es keine\n\t\t\t\t// Flaeche\n\t\t\t\t// mehr\n\t\t\t\t// gibt, welche die Bedingungen erfuellt, somit ist die\n\t\t\t\t// urspruengliche\n\t\t\t\t// Flaeche nicht loesbar und es wird NULL zurueckgegeben.\n\t\t\t\trunningThreads--;\n\n\t\t\t\t// Wenn der Puffer jetzt wirklich leer ist wird gewartet ob ein\n\t\t\t\t// Thread noch ein neue Flaeche bringt, sind alle Threads hier\n\t\t\t\t// wartend, gibt es keine Loesung.\n\t\t\t\tif (runningThreads < 1) {\n\t\t\t\t\tnotifyAll();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t\trunningThreads++;\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tnotifyAll();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\twartendeThreads--;\n\t\tabgelehnteFlaechen = 0;\n\t\treturn speicher.remove(random.nextInt(speicher.size()));\n\t}", "protected boolean laufEinfach(){ \r\n\r\n\t\tint groessteId=spieler.getFigur(0).getPosition().getId();\r\n\t\tint figurId=0; // Figur mit der gr��ten ID\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<4; i++)\r\n\t\t{ \r\n\t\t\tint neueId;\r\n\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\tif(spieler.getFigur(i).getPosition().getTyp() != FeldTyp.Startfeld && groessteId<spieler.getFigur(i).getPosition().getId()){\r\n\t\t\t\tgroessteId=spieler.getFigur(i).getPosition().getId();\r\n\t\t\t\tfigurId=i;\r\n\t\t\t}\r\n\t\t\tneueId = spiel.ueberlauf(neueId, i);\r\n\t\t\tif (spieler.getFigur(i).getPosition().getTyp() == FeldTyp.Endfeld) {\r\n\t\t\t\tif (!spiel.zugGueltigAufEndfeld(neueId, i)) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tneueId = spieler.getFigur(i).getPosition().getId() + spiel.getBewegungsWert();\r\n\t\t\t\tif(spieler.getFigur(i).getPosition().getId() == spieler.getFigur(i).getFreiPosition()){\r\n\t\t\t\t\tif(!spiel.userIstDumm(neueId, i)){\r\n\t\t\t\t\t\tfigurId = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\t\t\t\tif(spieler.getFigur(j).getPosition().getId() == neueId){\r\n\t\t\t\t\t\t\t\tif(!spiel.userIstDumm(neueId+spiel.getBewegungsWert(), j)){\r\n\t\t\t\t\t\t\t\t\tfigurId = j;\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t}\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}\r\n\t\t\r\n\t\tspiel.bewege(figurId);\r\n\t\treturn true;\r\n\t}", "private void cheminMin (ArrayList<Integer> parcours, ArrayList<Integer> sommets, int n, double dist){\r\n\t\t\r\n\t\t//condition d'arret\r\n\t\tif (sommets.size()>=1){\r\n\t\t\tif (n != super.g.getDim()){\r\n\t\t\t\t\r\n\t\t\t\t//test si le parcours n'est pas sup�rieur au parcours total\r\n\t\t\t\tif (dist<super.dist){\r\n\t\t\t\t\tfor (int ind=0; ind<sommets.size(); ind++) {\r\n\t\t\t\t\t\tdouble dist2 = dist + super.g.calculDist(parcours.get(parcours.size()-1), sommets.get(ind));\r\n\t\t\t\t\t\tArrayList<Integer> sommets2 = new ArrayList<Integer>();\r\n\t\t\t\t\t\tArrayList<Integer> parcours2 = new ArrayList<Integer>();\r\n\t\t\t\t\t\tparcours2 = super.copieListe(parcours);\r\n\t\t\t\t\t\tsommets2 = super.copieListe(sommets);\r\n\t\t\t\t\t\tparcours2.add(sommets2.get(ind));\r\n\t\t\t\t\t\tsommets2.remove(ind);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t//appel r�cursif avec les copies avec ajout du sommet dans le parcours\r\n\t\t\t\t\t\tcheminMin(parcours2, sommets2, n-1,dist2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tArrayList<Integer> sommets2 = new ArrayList<Integer>();\r\n\t\t\t\tArrayList<Integer> parcours2 = new ArrayList<Integer>();\r\n\t\t\t\tparcours2 = super.copieListe(parcours);\r\n\t\t\t\tsommets2 = super.copieListe(sommets);\r\n\t\t\t\tparcours2.add(0);\r\n\t\t\t\t\r\n\t\t\t\t//appel r�cursif avec les copies\r\n\t\t\t\tcheminMin(parcours2, sommets2, n-1, dist);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tdouble dist2 = super.g.calculDist(0, parcours.get(parcours.size()-1))+dist;\r\n\t\t\tif (dist2<super.dist || super.dist == -1){\r\n\t\t\t\tsuper.dist = dist2;\r\n\t\t\t\tsuper.parcoursMin = super.copieListe(parcours);\r\n\t\t\t\tsuper.parcoursMin.add(0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void verarbeiteInWarenkorbKlick() {\n\n\t\tString titel = text2.getText();\n\t\tString anzahlString = text1.getText();\n\t\tint menge = Integer.parseInt(anzahlString);\n\n\t\tList<Artikel> liste1 = shop.sucheArtikelBezeichnung(titel);\n\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tshop.warenHinzufügen(liste1.get(0), kunde, menge);\n\t\t\t} catch (ArtikelBestandReichtNichtAusException e) {\n\t\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t}\n\t\t} catch (MassengutartikelException e1) {\n\n\t\t\tJOptionPane.showMessageDialog(null, e1.getMessage());\n\t\t}\n\t\ttry {\n\t\t\tshop.schreibeArtikel();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Automatisch generierter Erfassungsblock\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic void jouer() {\r\n\t\t// liste servant a retenir les cartes potentiellement selectionnables\r\n\t\tArrayList<ICarte> listeCartesPossibles = new ArrayList<ICarte>();\r\n\t\t// sert a choisir une carte aleatoirement parmis celles selectionnables\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\t//enregistrement des cartes pouvant etre selectionnees\r\n\t\tfor(int i=0 ; i<plateau.getListeCartesMelangees().size() ; i++) {\r\n\t\t\tif (plateau.getListeCartesMelangees().get(i).getSurPlateau() == true) {\r\n\t\t\t\tlisteCartesPossibles.add(plateau.getListeCartesMelangees().get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// choix aleatoire de la premiere carte\r\n\t\tcarte1 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\t//choix aleatoire de la seconde carte\r\n\t\tlisteCartesPossibles.remove(carte1);\r\n\t\tcarte2 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\tplateau.setCartesSelectionnees(true);\r\n\t}", "@Override\r\n\t/**\r\n\t * Actionne l'effet de la carte.\r\n\t * \r\n\t * @param listejoueur\r\n\t * \t\t\tLa liste des joueurs de la partie.\r\n\t * @param cible\r\n\t * \t\t\tLa joueur contre qui l'effet sera joué.\r\n\t * @param table\r\n\t * \t\t\tCollection de cartes situées au centre de la table de jeu.\r\n\t * @param carte\r\n\t * \t\t\tLa carte qui joue l'effet.\r\n\t * @param j\r\n\t * \t\t\tLe joueur qui joue la carte.\r\n\t * @param collection\r\n\t * \t\t\tLe deck de cartes.\r\n\t * @param tourjoueur\r\n\t * \t\t\tLa liste des joueurs selon l'ordre de jeu.\r\n\t */\r\n\tpublic void utiliserEffet(ArrayList<Joueur> listejoueur, int cible, ArrayList<Carte> table, Carte carte,\r\n\t\t\tint j, ArrayList<Carte> collection,ArrayList<Joueur> tourjoueur) {\n\t\tcont = Controller.getInstance();\r\n\t\tint id = carte.getIdentifiantCarte();\r\n\t\tif (id ==9 || id ==10 || id==22 || id==23){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un croyant\");\r\n\t\t\t\t\r\n\t\t\t\tcont.setChoisirCible(true);\r\n\t\t\t\t\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\t\t\r\n\t\t\t\tif (listejoueur.get(cont.getChoixCible()).getNombreCroyantTotal()>0){\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\r\n\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\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierCroyant(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" n'a aucun croyant a sacrifier \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\tif (listejoueur.get(joueurCible).getNombreCroyantTotal()>0){\r\n\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\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\t\r\n\t\t\t\tlistejoueur.get(joueurCible).setDoitSacrifierCroyant(true);\r\n\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun croyant à sacrifier\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( id==11){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un guide\");\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\t\r\n\t\t\t\tif(listejoueur.get(cont.getChoixCible()).getGuidePossede().size()>0){\r\n\t\t\t\t\tfor (int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor(int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierGuide(true);\r\n\t\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\tif (listejoueur.get(joueurCible).getGuidePossede().size()>0){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).setSelectionnee(true); // On rend possible l'utilisation de la carte\t\r\n\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\tlistejoueur.get(joueurCible).setDoitSacrifierGuide(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "private void chegada() {\n Pessoa pessoa = tablePessoa.getSelectionModel().getSelectedItem();\n if(pessoa==null){\n pessoa=tablePessoa.getItems().get(0);\n \n }\n// if(pessoa!=null){\n Chegada chegada = new Chegada(\n pessoa.getRg(),\n pessoa.getNome(),\n pessoa.getSegundoNome(),\n pessoa.getTelefone(),\n pessoa.getSexo(),\n HoraChegada,\n pessoa.getData()\n \n );\n \n// }\n mainApp.getPersonData2().add(chegada);\n \n }", "protected void calculerSimplementTournee(Tournee tournee, String first, int restants, HashMap<String, Intersection> intersections, HashMap<String, Paire> vuDispo, Map<String, Map<String, Chemin>> plusCourtsChemins) {\n\t\t\n\t\tIterator<String> it = iterator(restants, intersections, vuDispo, plusCourtsChemins);\n\t\tString noeudPreced = null;\n\n\t\twhile(it.hasNext()) {\n\t\t\tString noeudSuivant = it.next();\n\t\t\tvuDispo.get(noeudSuivant).setDispo(false);\n\t\t\tvuDispo.get(noeudSuivant).setVu(true);\n\t\t\t\n\t\t\t//Mettre dispo le pt de livraison si celui actuel est un pt d'enlevement\n\t\t\tif( intersections.get(noeudSuivant) instanceof PointEnlevement ) {\n\t\t\t\tString cleTmp = ((PointEnlevement)intersections.get(noeudSuivant)).getIdLivraison();\n\t\t\t\tvuDispo.get(cleTmp).setDispo(true);\n\t\t\t}\n\t\t\t\n\t\t\t//Creation d'un chemin et l'ajout a la tournee\n\t\t\tIntersection depart;\n\t\t\tif(noeudPreced != null) {\n\t\t\t\tdepart = intersections.get(noeudPreced);\n\t\t\t}else {\n\t\t\t\tdepart = intersections.get(first);\n\t\t\t}\n\t\t\tIntersection arrivee = intersections.get(noeudSuivant);\n\t\t\tList<Intersection> listeInter = plusCourtsChemins.get(depart.getId()).get(arrivee.getId()).getIntersections();\n\t\t\tint duree = plusCourtsChemins.get(depart.getId()).get(arrivee.getId()).getDuree();\n\t\t\tChemin chemin = new Chemin(listeInter, duree);\n\t\t\ttournee.addChemin(chemin);\n\t\t\t\n\t\t\tnoeudPreced = noeudSuivant;\n\t\t}\n\t\t\n\t\tIntersection depart = intersections.get(noeudPreced);\n\t\tList<Intersection> listeInter = plusCourtsChemins.get(depart.getId()).get(first).getIntersections();\n\t\tint duree = plusCourtsChemins.get(depart.getId()).get(first).getDuree();\n\t\tChemin chemin = new Chemin(listeInter, duree);\n\t\ttournee.addChemin(chemin);\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "public void afficherEcranSelectionJoueur() {\n gestionnaireJoueurs.chargerJoueurs();\n ecranSelectionJoueur.rechargerListeJoueur();\n CardLayout cl = (CardLayout) (container.getLayout());\n cl.show(container, \"EcranSelectionJoueur\");\n }", "public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\\n- U pour Duel\\n- D pour Defense\");\n choixModeJeu = Console.saisieListeDeChoix(\"C|U|D\");\n }", "private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}", "public void genererchemin() {\r\n\t\tRandom hauteur1 = new Random();\r\n\t\tRandom longueur2 = new Random();\r\n\t\tRandom choix = new Random();\r\n\t\tArrayList chemin = new ArrayList();\r\n\t\tSystem.out.println(this.getHauteur());\r\n\t\tSystem.out.println(this.getLargeur());\r\n\t\tint milieu = getLargeur() / 2;\r\n\t\t//System.out.println(milieu);\r\n\t\tCoordonnees c = new Coordonnees(milieu, hauteur1.nextInt(\r\n\t\t\t\tgetLargeur()));\r\n\t\tchemin.add(c);\r\n\t\tchemin.add(new Coordonnees(0, 0));\r\n\t\tchemin.add(new Coordonnees(getLargeur() - 1, getHauteur() - 1));\r\n\t\tCoordonnees droite = new Coordonnees(milieu + 1, c.getHauteur());\r\n\t\tchemin.add(droite);\r\n\t\tCoordonnees gauche = new Coordonnees(milieu - 1, c.getHauteur());\r\n\t\tchemin.add(gauche);\r\n\t\tCoordonnees base1 = new Coordonnees(0, 0);\r\n\t\tCoordonnees base2 =new Coordonnees(getLargeur() - 1, getHauteur() - 1);\r\n\r\n\t\twhile (!gauche.equals(base1)) {\r\n\t\t\tif (gauche.getLargeur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(0, gauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else if (gauche.getHauteur() == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, 0);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur() - 1, \r\n\t\t\t\t\t\tgauche.getHauteur());\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t} else {\r\n\t\t\t\tgauche = new Coordonnees(gauche.getLargeur(), \r\n\t\t\t\t\t\tgauche.getHauteur() - 1);\r\n\t\t\t\tchemin.add(gauche);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\twhile (!droite.equals(base2)) {\r\n\t\t\tif (droite.getLargeur() == (this.largeur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\r\n\t\t\t} else if (droite.getHauteur() == (this.hauteur -1)) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t\t//System.out.println(\"fais chier\");\r\n\t\t\t}\r\n\t\t\telse if (choix.nextInt(2) == 0) {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur() + 1, \r\n\t\t\t\t\t\tdroite.getHauteur());\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t} else {\r\n\t\t\t\tdroite = new Coordonnees(droite.getLargeur(), \r\n\t\t\t\t\t\tdroite.getHauteur() + 1);\r\n\t\t\t\tchemin.add(droite);\r\n\t\t\t}\r\n\t\t}\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Quel est le pourcentage d'obstacle souhaite :\");\r\n\t\tint pourcentage = sc.nextInt();\r\n\t\tint ctp = getHauteur() * getLargeur() * pourcentage / 100;\r\n\t\twhile(ctp >0){\r\n\t\t\tCoordonnees obstacle = new Coordonnees(longueur2.nextInt(getLargeur()), \r\n\t\t\t\t\thauteur1.nextInt(getHauteur()));\r\n\t\t\t//System.out.println(!chemin.contains(obstacle));\r\n\t\t\tif (!chemin.contains(obstacle)) {\r\n\t\t\t\tthis.plateau[obstacle.getHauteur()][obstacle.getLargeur()] = new Obstacle(\r\n\t\t\t\t\t\tobstacle.getHauteur(), obstacle.getLargeur());\r\n\t\t\t\tctp--;\r\n\t\t\t} else {\r\n\t\t\t\t//System.out.println(obstacle + \"est sur le chemin\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void schritt() {\r\n\t\tfor (int i = 0; i < anzahlRennautos; i++) {\r\n\t\t\tlisteRennautos[i].fahren(streckenlaenge);\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testGehituErabiltzaile() {\n\t\tErabiltzaileLista.getErabiltzaileLista().erreseteatuErabiltzaileLista();\t\t\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(1, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Mikel\", \"123456\",\"123456\");\n\t\tassertEquals(2,ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t\tErabiltzaileLista.getErabiltzaileLista().gehituErabiltzaile(\"Martin\", \"123456\",\"123456\");\n\t\tassertEquals(2, ErabiltzaileLista.getErabiltzaileLista().erabiltzaileKop());\n\t}", "@Override\n\tpublic void entrer(TC client) {\n\t\tint prio = client.getPrio();\n\t\tif (!estPleine()) {\n\t\t\tif(prio>maxPrio) {\t\t\t\t\t\t//Si la priorité donnée est sup\n\t\t\t\tsalle.get(maxPrio).add(client);\t\t//.get récupération clé .add rajout\n\t\t\t}\n\t\t\telse if (prio<0) {\t\t\t\t\t\t//Si priorité inf à 0\n\t\t\t\tsalle.get(0).add(client);\t\t\n\t\t\t}\n\t\t\telse {salle.get(client.getPrio()).add(client);\n\t\t\t// {salle.get(prio).entrer(client);}\n\t\t\t}\n\t\t}\n\t}", "private void gestionPriseEnCompte() {\r\n\t\tString raison = new String(\"\");\r\n\t\tDate now = new Date();\r\n\t\tString strSql = \"\";\r\n\t\r\n if (tbAlarme.getRowCount() > 0) {\r\n \tif (tbAlarme.getSelectedRowCount() > 0) {\r\n\t\t int[] selection = tbAlarme.getSelectedRows();\r\n\t\t int indexSelection = selection[0];\r\n\t\t int idCapteur = mdlTpsReelAlarme.getIdCapteur(indexSelection); \r\n\t\t String strTypeAlarme = \"\";\r\n\t\t \r\n\t\t\t\t// Motif Prise En Compte seulement si appel Alert\r\n\t\t strTypeAlarme = (String) mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_TYPE_ALARME);\r\n\t\t if (strTypeAlarme.equals(\"Alarme\")) {\r\n\t\t\t\t\tint idPriseEnCompte = 0;\r\n\t\t \tdo {\r\n\t\t\t\t\t\tObject [] possibilites = new Object[tbPriseEnCompte.size()];\r\n\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\tpossibilites[i] = tbPriseEnCompte.get(i).getNom();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tString strReponse = (String)JOptionPane.showInputDialog(this, \"Choisir un motif de prise en compte : \", \"Prise en compte\", JOptionPane.QUESTION_MESSAGE, null, possibilites, null);\r\n\t\t\t\t\t\tidPriseEnCompte = 1;\r\n\t\t\t\t\t\tif (strReponse != null) {\r\n\t\t\t\t\t\t\tfor(int i = 0; i < tbPriseEnCompte.size(); i++) {\r\n\t\t\t\t\t\t\t\tif(strReponse.equals(tbPriseEnCompte.get(i).getNom())) {\r\n\t\t\t\t\t\t\t\t\tidPriseEnCompte = (int) tbPriseEnCompte.get(i).getId();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t} // fin for\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"En attente\";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// idPriseEncompte == 1 (Autres)\r\n\t\t\t\t\t\tif(idPriseEnCompte == 1) {\r\n\t\t\t\t\t\t\t// Demande de commentaire\r\n\t\t\t\t\t\t\traison = AE_Fonctions.saisieTexte(\"Veuillez entrer une raison : \", \"Raison commentaire ...\");\r\n\t\t\t\t\t\t\tif (raison == null) raison = \"\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\traison = \"---\";\r\n\t\t\t\t\t\t}\r\n\t\t \t} while(raison == \"\");\r\n\t\t \t\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET idPriseEnCompte = \" + idPriseEnCompte\r\n\t\t\t\t\t\t\t + \" , idUtilisateur = \" + EFS_Client_Variable.idUtilisateur\r\n\t\t\t\t\t\t\t + \" , CommentairePriseEnCompte = '\" + raison + \"'\"\r\n\t\t\t\t\t\t\t + \" WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setMotifIdPriseEncompte(indexSelection, idPriseEnCompte);\r\n\t\t } // fin if appelAlert\r\n\r\n\t\t if(mdlTpsReelAlarme.getValueAt(indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE) == null) {\r\n\t\t\t\t\t// Date prise en compte\r\n\t\t\t\t\tstrSql = \"UPDATE V2_AlarmeEnCours SET DatePriseEnCompte = sysdate, blPriseEnCompte = 1 WHERE idCapteur = \" + idCapteur;\r\n\t\t\t\t\tctn.fonctionSql(strSql);\r\n\t\t\t\t\tmdlTpsReelAlarme.setValueAt(now, indexSelection, JTABLE_ALARME_PRISE_EN_COMPTE);\r\n\t\t } // fin if datePrsieEnCompte\r\n\t\r\n\t\t // Prevenir le programme maitre\r\n\t\t AE_Fonctions.modifierMaitreViaClient(idCapteur, VIA_API_PRISE_EN_COMPTE);\r\n\t\t \r\n\t\t\t\t// Arret klaxon et Alert\r\n//\t\t\t\tgestionKlaxon(false);\r\n//\t\t\t\tgestionAlert(false);\r\n\t\t\t\t\r\n \t} else {\r\n \t JOptionPane.showMessageDialog(this, \"Vous devez sélectionner une ligne pour prendre en compte ...\",\r\n \t \t\t \"GTC Visualize - Programme Maitre\", JOptionPane.WARNING_MESSAGE);\r\n \t}\r\n } else {\r\n//\t\t\tgestionKlaxon(false);\r\n//\t\t\tgestionAlert(false);\r\n }\r\n\t}", "private void reserveChambre() {\n\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\tif(chambre.equals(this.chambresVides().get(0))) {\n\t\t\t\tchambre.setReserve(true);\n\t\t\t\tSystem.out.println(\"\\n---------------------------------------\\nVous avez bien réservé cette chambre: |\");\n\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public int choixAttaque(Caracter monstre, Caracter player){\n Inventory inventaire = monstre.getInventory();\n Weapon armeSecondaire = inventaire.getSecondWeapon();\n Weapon armePrincipale = inventaire.getMainWeapon();\n Spell conso = inventaire.getSpell();\n \n if (armeSecondaire == null)\n {\n return 1;\n }\n else if(armeSecondaire != null)\n {\n if(armePrincipale.dmin + armePrincipale.dmax > armeSecondaire.dmin + armeSecondaire.dmax){\n return 1;\n }\n else{\n return 2;\n }\n }\n \n return 1;\n }", "public void ganarDineroPorAutomoviles() {\n for (Persona p : super.getMundo().getListaDoctores()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaAlbaniles()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaHerreros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n for (Persona p : super.getMundo().getListaCocineros()) {\n for (Vehiculo v : p.getVehiculos()) {\n v.puedeGanarInteres();\n v.setPuedeGanarInteres(false);\n }\n }\n }", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}", "public void enfoncerEgal() {\n\t\tthis.pile.push(this.valC);\n\t\tthis.raz = true;\n\t}", "public GestoreTurni getGestore() {\n return null;\r\n }", "private void convertir(IConsole per, IConsole eq) throws RemoteException {\n\n\t\t// ajouter au leader s'il y en a un\n\t\tint leader = ((Personnage) per.getElement()).getLeader();\n\n\t\t// si charisme inférieur à deter alors rien ne se passe sinon le perso est changé d'équipe\n\t\tif (((Personnage)eq.getElement()).getDetermination() < ((Personnage)per.getElement()).getCharisme()) {\n\t\t\tif (leader == -1) { // le personnage n'est pas dans une equipe\n\t\t\t\teq.changerLeader(per);\n\t\t\t\tper.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe\", per.getVueElement());\n\t\t\t\tSystem.out.println(per.getRefRMI() + \" ajoute a son equipe \" + eq.getRefRMI());\n\n\t\t\t} else { // le personnage a un leader\n\t\t\t\tIConsole lead = arene.consoleFromRef(leader);\n\n\t\t\t\teq.changerLeader(lead);\n\n\t\t\t\tlead.getElement().parler(\"J'ajoute \" + eq.getRefRMI() + \" a mon equipe (par \" + per.getRefRMI() + \")\", lead.getVueElement());\n\t\t\t\tSystem.out.println(leader + \" ajoute a son equipe (par \" + per.getRefRMI() + \") \" + eq.getRefRMI());\n\t\t\t}\n\t\t\t//le personnage reçoit la determination de son enroleur\n\t\t\teq.getElement().getCaract().put(\"determination\", ((Personnage) per.getElement()).getDetermination());\n\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Rien ne se passe\");\n\t\t}\n\t}", "public void partieEnCour(int niveau){\n\t\t\t\n\t\t\tif(niveau<=0){\n\t\t\t\tSystem.out.println(\"Quel niveau ?\");\n\t\t\t\tniveau=lire.nextInt();\n\t\t\t}\n\t\t\tthis.niveau=niveau;\n\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau-1);\n\t\t\tSystem.out.println(terrainDeLaPartie.getCave().toString());\n\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\tboolean heroEnVie=true;\n\t\t\twhile(sortieNonAtteint()&& tempsNonEcoule() && heroEnVie==true){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tfor(ObjetVivant eleViv:terrainDeLaPartie.getPersonnageSurLeTerrain()){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tif(eleViv.estEnVie()){\n\t\t\t\t\t\t\teleViv.seDeplacer(terrainDeLaPartie);\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(DeplacementInvalideException e){\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tfor(ObjetNonVivant eleNonViv:terrainDeLaPartie.getObjetSurLeTerrain()){\n\t\t\t\t\teleNonViv.tomber(terrainDeLaPartie);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tquiEstMort();\n\t\t\t\tquiEstDetruit();\n\t\t\t\tthis.terrainDeLaPartie.getObjetSurLeTerrain().addAll(this.terrainDeLaPartie.reinitialisationObjet());\n\t\t\t\tthis.terrainDeLaPartie.afficherMap();\n\t\t\t\tCave a=this.terrainDeLaPartie.getCave();\n\t\t\t\ta.setCaveTime(a.getCaveTime()-1);\t\t\t\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getPersonnageSurLeTerrain().size()-1+\" enemie\");\n\t\t\t\tSystem.out.println(this.terrainDeLaPartie.getObjetSurLeTerrain().size()-1+\" objet\");\n\t\t\t\t\n\t\t\t\theroEnVie=heroEncoreDansListe(this.terrainDeLaPartie.getPersonnageSurLeTerrain());\n\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tif(heroEnVie && !sortieNonAtteint()){\n\t\t\t\tthis.terrainDeLaPartie=this.EnsembleNiveau.listeMap.get(niveau);\n\t\t\t\tpartieEnCour(niveau+1);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Vous avez perdu ! Voulez vous rejouer ?\");\n\t\t\t\tSystem.out.println(\"1:rejouer\");\n\t\t\t\tSystem.out.println(\"2:quitter \");\n\t\t\t\tint rep=lire.nextInt();\n\t\t\t\tif(rep==1){\n\t\t\t\t\tFile f=new File(\"BD01plus.bdcff\");\n\t\t\t\t\tEnsembleNiveau=new Univers();\n\t\t\t\t\tLireFichier.lire(f, EnsembleNiveau);\n\t\t\t\t\tthis.partieEnCour(niveau);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "@Override\n\tpublic Cours getCoursByNom(String nom) {\n\t\tQuery q = em.createQuery(\"from Cours where nom = :nom\");\n\t\tq.setParameter(\"nom\", nom);\n\t\treturn (Cours) q.getSingleResult();\n\t}", "public void mettreOrdre() throws NbDeException {\n\t\tfor (Senateur s : senateurs) {\n\t\t\tif (De.jet(1) - De.getMauvaisPresage() >= 5) {\n\t\t\t\t// TODO remettre le senateur au forum\n\t\t\t}\n\t\t}\n\t}", "public abstract Koordinate schuss();", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "public boolean sucheMitspieler();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). rechercheMotCle() ;}", "public void pleitegeierSperren() {\n kontoMap.values().stream()\n .filter(konto -> konto.getKontostand() < 0)\n .forEach(Konto::sperren);\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public ListeEncadrementThese() {\n listeencadmaster= chdao.listEncadrementThese(ProfilController.ch);\n \n //chdao.listEncadrementMaster(ProfilController.ch);\n remplirListImage();\n }", "Turno consultarTurno();", "public Arbre<Sommet> parcoursEnLargeur(Sommet s) {\n List<Sommet> liste = new ArrayList<Sommet>();\n List<Sommet> pere = new ArrayList<Sommet>();\n Arbre<Sommet> arbre = new Arbre<Sommet>();\n liste.add(s);\n pere.add(null);\n for(int i=0; i<liste.size(); i++) {\n if (!arbre.findKey(liste.get(i))) {\n arbre.ajouter(liste.get(i), pere.get(i));\n List<Sommet> successeur = this.getSuccesseurs(liste.get(i));\n liste.addAll(successeur);\n for (Sommet ret : successeur) {\n pere.add(liste.get(i));\n }\n }\n }\n return arbre;\n }", "public void iniciarPartidaRede(boolean ehMinhaVez) {\r\n\t\tString nomeJogadorAdversario = rede.obterNomeAdversario();\r\n\t\tthis.mapa = Mapa.getInstance();\r\n\t\tint trincheiraDefinida;\r\n\t\tif(ehMinhaVez) {\r\n\t\t\tmapa.criaJogador(this.nomeUsuario, true);\r\n\t\t\tmapa.criarJogadorAdversario(nomeJogadorAdversario, false);\r\n\t\t\ttrincheiraDefinida = 1;\r\n\t\t\tmapa.procedimentoDeLance(1, this);\r\n\t\t} else {\r\n\t\t\tmapa.criaJogador(this.nomeUsuario, false);\r\n\t\t\tmapa.criarJogadorAdversario(nomeJogadorAdversario, true);\r\n\t\t\ttrincheiraDefinida = 0;\r\n\t\t}\r\n\t\t/*\r\n\t\t * tem que chamar todos os metodos de acoes dos botoes do painelJogoExecucao\r\n\t\t * alem de setar valores de labels\r\n\t\t */\r\n\t\tgetContentPane().removeAll();\r\n\t\tpainelJogoExecucao = new PainelJogoExecucao(trincheiraDefinida);\r\n\t\tgetContentPane().add(painelJogoExecucao);\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t\tpainelJogoExecucao.atualizaLabels(mapa.getAntimateria(), mapa.getNumTurnos());\r\n\t\tpainelJogoExecucao.atualizaVidaTorres(mapa.getTrincheira(), mapa.getTrincheiraAdversario());\r\n\t\t\r\n\t}", "private Worm getFirstWormInRangeSpecial() {\n \n int count = 0;\n Worm targetWorm = null;\n\n //Jika worm saat ini adalah Agent (bisa menggunakan Banana Bomb)\n if (gameState.myPlayer.worms[1].id == gameState.currentWormId) {\n count = gameState.myPlayer.worms[1].bananaBombs.count;\n int range = gameState.myPlayer.worms[1].bananaBombs.range;\n for (Worm enemyWorm : opponent.worms) {\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, enemyWorm.position.x, enemyWorm.position.y) > range) {\n continue;\n }\n if (enemyWorm.health <= 0) {\n continue;\n }\n //AUTO NYERANG WORM YANG PERTAMAKALI DITEMUKAN DI DALAM RANGE\n targetWorm = enemyWorm;\n break;\n }\n\n }\n\n //Jika worm saat ini adalah Technician (bisa menggunakan Snowball)\n if (gameState.myPlayer.worms[2].id == gameState.currentWormId) {\n count = gameState.myPlayer.worms[2].snowballs.count;\n int range = gameState.myPlayer.worms[2].snowballs.range;\n for (Worm enemyWorm : opponent.worms) {\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, enemyWorm.position.x, enemyWorm.position.y) > range) {\n continue;\n }\n if (enemyWorm.roundsUntilUnfrozen > 1) {\n continue;\n }\n //AUTO NYERANG WORM YANG PERTAMAKALI DITEMUKAN DI DALAM RANGE\n targetWorm = enemyWorm;\n break;\n }\n\n }\n \n return targetWorm;\n\n }", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "public List<Empleat> obtenirEmpleatsQueTreballenOnViuen() throws UtilitatJdbcSQLException {\r\n JdbcPreparedQueryDao jdbcDao = new JdbcPreparedQueryDao() {\r\n @Override\r\n public Object writeObject(ResultSet rs) throws SQLException {\r\n int field=0;\r\n Empleat empleat = new Empleat();\r\n empleat.setCodi(rs.getInt(++field));\r\n empleat.setNom(rs.getString(++field));\r\n empleat.setCiutat(rs.getString(++field));\r\n \r\n Establiment est=new Establiment();\r\n est.setCodi(rs.getInt(++field));\r\n if(!rs.wasNull()){\r\n est.setNom(rs.getString(++field));\r\n est.setCiutat(rs.getString(++field));\r\n }else{\r\n est=null;\r\n }\r\n empleat.setEstabliment(est);\r\n \r\n return empleat;\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"SELECT e.codi, e.nom, e.ciutat, e.establiment, es.nom, es.ciutat FROM Empleat e JOIN Establiment es ON e.establiment = es.codi WHERE e.ciutat = es.ciutat\";\r\n }\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n \r\n }\r\n };\r\n List<Empleat> empleat = UtilitatJdbcPlus.obtenirLlista(con, jdbcDao); \r\n return empleat;\r\n }", "@Override\n public synchronized void demarrer(){\n if(modele.getQuiterJeu()){return;}\n modele.getMoteurJeu().setEtapeJeu(this);\n // apercu dans le termial pour debuger\n System.out.println(\"-----------------nom joueur: \"+modele.getJoueurCourant().getNom());\n System.out.print(\" humain: \"+modele.getJoueurCourant().estHumain());\n System.out.print(\" stand: \"+modele.getJoueurCourant().getMainCourant().getStand());\n System.out.print(\" perdu: \"+modele.getJoueurCourant().getMainCourant().estPerdu());\n System.out.print(\" blackjack: \"+modele.getJoueurCourant().getMainCourant().estBlackJack());\n System.out.println(\" jeu: \"+modele.getJoueurCourant().getMainCourant().getJeu().toString());\n //-------------------------------------------------\n // On ne fait pas une boucle ici pour que l'observer\n // puisse acceder a son observé et se mettre a jour\n //-------------------------------------------------\n new Thread(){\n @Override\n public void run() {\n try {\n // si plus de carte\n if(modele.getPioche().getCartes().size() < 1){\n for(Carte carte:modele.getDefausse().getCartes()){\n carte.setFaceCarte(Face.VERSO);\n modele.getPioche().ajouterDessous(carte);\n }\n modele.getDefausse().vider();\n modele.getPioche().melanger();\n }\n \n \n // si il peut plus jouer\n if(modele.getJoueurCourant().getMainCourant().estBlackJack() || modele.getJoueurCourant().getMainCourant().estPerdu() \n || modele.getJoueurCourant().getMainCourant().getStand() || modele.getJoueurCourant().getMainCourant().est21()\n || modele.getJoueurCourant().getMainCourant().getAAbandonner() || modele.getJoueurCourant().getAPerduJeu()){\n \n // si le joueur a une autre main\n if(modele.getJoueurCourant().mainSuivant()){\n Thread.sleep(2000);\n demarrer();\n \n }\n // sinon si il y a un joueur suivant on fait joueur suivant\n else if(modele.joueurSuivant()){\n Thread.sleep(2000);\n demarrer();\n }else{\n modele.getMoteurJeu().setEtapeJeu(etapeSuivant);\n Thread.sleep(2000);\n modele.setMessage(modele.getCroupier().getNom()+\" plays\");\n // on affiche les carte du croupier\n for(Carte carte: modele.getCroupier().getMainCourant().getJeu().getCartes()){\n carte.setFaceCarte(Face.RECTO);\n }\n System.out.println(\"+++++++++++++++++++++++++++++++++++++++++++++++++\");\n Thread.sleep(3000);\n demarrerEtapeSuivant();\n\n }\n\n }\n // sinon\n else{\n modele.setMessage(modele.getJoueurCourant().getNom()+\" plays\");\n if(!modele.getJoueurCourant().estHumain()){\n modele.getJoueurCourant().jouer(modele.getPioche(),modele.getDefausse());\n Thread.sleep(3000);\n demarrer();\n }\n \n\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }.start();\n \n }", "private void remplirPriseEnCompte() {\r\n\t\tResultSet result = ctn.lectureData(\"SELECT * FROM PriseEnCompte\");\r\n\t\t// Remplissage tableau et combo Utilisateur\r\n\t\ttry {\r\n\t\t\twhile(result.next()) {\r\n\t\t\t\ttbPriseEnCompte.add(new StructPriseEnCompte(result.getLong(\"idPriseEnCompte\"), result.getString(\"Nom\"), result.getString(\"Description\")));\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tctn.closeLectureData();\r\n\t\ttry {\r\n\t\t\tresult.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void run(){\r\n\t\tArrayList<Integer> parcours = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> sommets = new ArrayList<Integer>();\r\n\t\t\r\n\t\t//initialisation de la liste des sommets\r\n\t\tfor (int i=1; i<super.g.getDim();i++) {\r\n\t\t\tsommets.add(i);\r\n\t\t}\r\n\r\n\t\t//g�n�ration d'un parcours initial\r\n\t\tAlgo2opt algo = new Algo2opt(super.g);\r\n\t\tsuper.parcoursMin = algo.parcoursMin;\r\n\t\tsuper.dist = algo.dist;\r\n\r\n\t\tcheminMin(parcours,sommets,super.g.getDim(), 0);\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t\tif( (bestand - abgenommeneMenge) < 0)\n\t\t\tthis.setBestand(0);\n\t\telse\n\t\t\tthis.setBestand(this.getBestand() - abgenommeneMenge);\n//\t\tSystem.out.println(\"Bestand danach:\" + bestand);\n\t}", "public Tournee chercheSolution(int tpsLimite, ContraintesTournee contraintes, Map<String, Map<String, Chemin>> plusCourtsChemins){\n\t\t//HashMap avec l'id et le point pour pouvoir recuperer le point a partir de l'id\n\t\tHashMap<String, Intersection> intersections = new HashMap<String, Intersection>();\n\t\tIterator<PointEnlevement> itEnlev = (Iterator<PointEnlevement>)contraintes.getPointsEnlevement().iterator();\n\t\tIterator<PointLivraison> itLiv = (Iterator<PointLivraison>)contraintes.getPointsLivraison().iterator();\n\t\t\n\t\t//Remplissage HashMap des intersections \n\t\tintersections.put(contraintes.getDepot().getId(), contraintes.getDepot());\n\t\tint nbSommets = 1;\n\t\twhile(itEnlev.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itEnlev.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\twhile(itLiv.hasNext()) {\n\t\t\tIntersection intersec = (Intersection) itLiv.next();\n\t\t\tintersections.put(intersec.getId(), intersec);\n\t\t\tnbSommets++;\n\t\t}\n\t\t\n\t\t//Initialisation de la HashMap vuDispo - contenant les attributs boolean vu et dispo\n\t\tHashMap<String, Paire> vuDispo = initVuDispo(contraintes, intersections);\n\t\t\n\t\tTournee tournee = new Tournee(contraintes);\n\t\t//Sequentiel et MinFirst\n//\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\t\n\t\t//MinFirst + 2-Opt\n\t\tcalculerSimplementTournee(tournee, contraintes.getDepot().getId(), (nbSommets-1), intersections, vuDispo, plusCourtsChemins);\t\t\n\t\ttwoOpt(tpsLimite, System.currentTimeMillis(), tournee, plusCourtsChemins, intersections);\n\t\t\n\t\treturn tournee;\n\t}", "private void popupChangeSeil() {\n\t\t((Rolle) this).changeSeil();\n\t\tif (aufzugschacht.getSeil() != null) {\n\t\t\taufzugschacht.repaint();\n\t\t}\n\t}", "@Override\n\tpublic List<Celebrite> rechercherCelebritesParNoms(String nom, String prenom) {\n\t\tQuery req=em.createQuery(\"select c from Celebrite c where c.nom like :n and c.prenom like :p\");\n\t\treq.setParameter(\"n\", \"%\"+nom+\"%\");\n\t\treq.setParameter(\"p\", \"%\"+prenom+\"%\");\n\t\treturn req.getResultList();\n\t}", "private void xuLyLayMaDichVu() {\n int result = tbDichVu.getSelectedRow();\n String maDV = (String) tbDichVu.getValueAt(result, 0);\n hienThiDichVuTheoMa(maDV);\n }", "private Ente gestioneEnte() {\n\t\tList<Ente> enti = enteDad.getEntiByCodiceAndCodiceSistemaEsterno(req.getCodiceEnte(), SistemaEsterno.FEL);\n\t\tif(enti == null || enti.isEmpty()) {\n\t\t\tthrow new UnmappedEnteException(ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Ente\", \"codice \" + req.getCodiceEnte()));\n\t\t}\n\t\t// Dovrebbe essercene solo uno. Per sicurezza prendo solo il primo\n\t\treturn enti.get(0);\n\t}", "public void clickSurCarte(CarteModel carteJouer) throws IOException{\n\t\tif (ajm.estJoueurCourant() && !platMod.retourneFinDeManche())\n\t\t{\n\t\t\t//Si le joueur doit piocher une carte chez le joueur précédent\n\t\t\tif (platMod.retournePiocheChezJoueur())\n\t \t{\n\t\t\t\tSystem.out.println(\"Vous piochez chez un joueur\");\n\t\t\t\tnew DialogVuePiocheChezJoueur(jv, platMod); \n\t\t\t\tjv.validate();\n\t\t\t//sinon, c'est qu'il peut jouer une carte de son choix, a condition qu'elle soit valide et qu'il n'est pas à piocher\n\t \t}else if (platMod.peutJouerCarte(carteJouer)){\n\t \t//Si le joueur joue une carte alors qu'il aurait du prévenir \"Carte !\", il pioche deux cartes\n\t \t\tif(((JoueurHumain)ajm).retourneDerCarte())\n\t \t\t{\n\t \t\t\tSystem.out.println(\"Vous piochez deux cartes car vous n'avez pas cliquer sur Carte ! avant de jouer votre avans dernière carte\");\n\t \t\t\tajm.piocherCarteMultiple(platMod.retourneModelPioche(), 2);\n\t \t\t\tplatMod.roulementJoueurCourant();\n\t \t\t//Sinon, sa carte est prit en compte et est joué\n\t \t\t}else{\n\t \t\t\tSystem.out.println(\"Vous jouez la carte : \"+carteJouer.toString());\n\t\t\t\t\tArrayList<CarteModel> listCarteJouable = new ArrayList<CarteModel>(); //La liste ne contient que la carte cliqué valide\n\t\t\t\t\tlistCarteJouable.add(carteJouer);\n\t\t\t\t\tajm.jouer(platMod, listCarteJouable);\n\t\t\t\t\t\n\t\t\t\t\t//Pour le huit et le 15, le passage au joueur suivant se fera après un clic sur l'IHM\n\t\t\t\t\tif (carteJouer.retourneTaille() == 8 || carteJouer.retourneTaille() == 15) \n\t\t\t\t\t\tnew DialogVueChoixCouleur(jv, platMod);\n\t\t\t\t\telse \n\t\t\t\t\t\tplatMod.roulementJoueurCourant();\n\t \t\t}\n\t \t}\n\t\t}\n\t}", "public List<Joueur> List_Joueur_HommesForComboBox() \r\n {\r\n List<Joueur> j = new ArrayList<>();\r\n String req= \"SELECT * FROM personne WHERE datedestruction is NULL and role = 'Joueur' and sexe='Homme' \";\r\n try {\r\n ResultSet res = ste.executeQuery(req);\r\n while (res.next()) {\r\n \r\n Joueur Jou = new Joueur(\r\n res.getInt(\"idpersonne\"),\r\n \r\n res.getString(\"nom\"),\r\n res.getString(\"prenom\")\r\n );\r\n j.add(Jou);\r\n \r\n System.out.println(\"------- joueurs selectionné avec succés----\");\r\n \r\n }\r\n \r\n } catch (SQLException ex) {\r\n System.out.println(\"----------Erreur lors methode : List_Joueur_Hommes()------\");\r\n }\r\n return j;\r\n \r\n}", "public void executer()\r\n\t{\r\n\t\tswitch(this.type)\r\n\t\t{\r\n\t\tcase \"Gain\":\r\n\t\t\tPartie.getJoueurCourant().changeSolde(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Perte\":\r\n\t\t\tPartie.getJoueurCourant().changeSolde(-this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Avancer\":\r\n\t\t\tPartie.getJoueurCourant().deplace(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Aller en prison\":\r\n\t\t\tPartie.getJoueurCourant().setPosition(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Sortie de prison\":\r\n\t\t\tPartie.getJoueurCourant().setEnPrison(false);\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}", "public void llenarListaColocacion(){\n\n //capturar el texto y filtrar\n txtBuscar.textProperty().addListener((prop,old,text) ->{\n colocaciondata.setPredicate(colocacion ->{\n if (text==null || text.isEmpty()){\n return true;\n }\n String texto=text.toLowerCase();\n if(String.valueOf(colocacion.getIdColocacion()).toLowerCase().contains(texto)){\n return true;\n }\n else if(colocacion.getNombre().toLowerCase().contains(texto)){\n return true;\n }\n else if(colocacion.getEstado().toLowerCase().contains(texto)){\n return true;\n }\n\n return false;\n });\n });\n\n\n\n }", "public void listeDesEmpruntsEnCours();", "@Override\n\tpublic HashMap<Integer, HashMap<Integer,VueElement>> chercherElementProche(VueElement ve, Hashtable<Integer,VueElement> voisins){\n\t\tHashMap<Integer, HashMap<Integer,VueElement>> resultat = new HashMap<>();\n\n\t\tint distPlusProche = 100;\n\t\tint refPlusProche = 0;\n\t\t/* Strategie du random */\t\t\t\n\t\tSet<Integer> tabref = voisins.keySet();\n\t\tInteger[] t = new Integer[tabref.size()];\n\t\tRandom r = new Random();\n\t\tint s = tabref.size();\n\t\ttabref.toArray(t);\n\t\tif(tabref.size() >= 1 && t[0]!=null)\n\t\t{\n\t\t\t/* On trouve un ele aleatoire dans la liste de voisins */\n\t\t\tint l = r.nextInt(s);\n\t\t\trefPlusProche=t[l];\n\t\t}\n\t\telse refPlusProche=0;\n\n\t\tHashMap<Integer,VueElement> cible = new HashMap<>();\n\t\tcible.put((Integer)refPlusProche, voisins.get(refPlusProche));\n\t\tresultat.put((Integer)distPlusProche, cible);\n\n\t\treturn resultat;\n\t}", "public int chercherCouleur(String nom){\n // Lecture dans le fichier \"utilisateurs.txt\"\n try (BufferedReader reader = new BufferedReader(new FileReader(\"utilisateurs.txt\"))) {\n String line = \"\";\n\n // Tant qu'on lit des choses dans le fichier\n while ((line = reader.readLine()) != null) {\n String[] tmp = (line.split(\":\")); // decoupage de la chaine pour recuperer le nom et la couleur associee\n\n String s = tmp[0]; // on recupere le nom de la personne\n if(s.equalsIgnoreCase(nom)){\n return Integer.valueOf(tmp[1]); // on recupere la couleur de la personne\n }\n }\n\n } catch (Exception ex) {\n ex.printStackTrace();\n System.out.println(ex.getMessage());\n }\n return 0; //retourne 0 si on n'a pas trouve le nom dans la liste\n }", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "protected ElementDoppeltVerkettet gehe(int anzahlSchritte) {\n\t\tElementDoppeltVerkettet aktuell = this;\n\t\tint aS = anzahlSchritte;\n\t\tif (aS < 0) {\n\t\t\twhile (aS < 0 && aktuell.zurück != null) {\n\t\t\t\taktuell = aktuell.zurück;\n\t\t\t\taS++;\n\t\t\t}\n\t\t} else {\n\t\t\twhile (aS > 0 && aktuell.vor != null) { aktuell = (ElementDoppeltVerkettet) aktuell.vor; aS--; }\n\t\t}\n\t\tif (aS == 0) {\n\t\t\treturn aktuell;\n\t\t} else {\n\t\t\tthrow new IndexOutOfBoundsException(\"Die Grenzen der Liste sollten überschritten werden\");\n\t\t}\n\t}", "public void confirmerAppel(List<Eleve> listeElevesAbsents, Seance s, Groupe g);", "@Override\r\n public List<Entradas> consultarEntradasPorCole(Colecciones coleccion){\r\n \tString hql = \"SELECT ent FROM Colecciones col, ColeccionesRss colrss, Entradas ent WHERE \"\r\n \t\t\t+ \" col.codigoCole = colrss.colecciones.codigoCole AND colrss.rss.codigoRss = ent.rss.codigoRss AND \"\r\n \t\t\t+ \" col.codigoCole = \"+coleccion.getCodigoCole();\r\n \tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\r\n \tList<Entradas> lasEntradas = query.list();\r\n \treturn lasEntradas;\r\n }", "public void turnoUsuario(){\r\n System.out.println(\"Turno: \"+ entrenador1.getNombre());\r\n if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Cambiar\")){\r\n System.out.println(\"Usuario eligio Cambiar Pokemon\");\r\n pokemon_activo1.setConfuso(false);\r\n pokemon_activo1.setDormido(false);\r\n if(getEquipo1()[0].getDebilitado() == false && getEquipo1()[0]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false && getEquipo1()[1]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false && getEquipo1()[2]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false && getEquipo1()[3]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false && getEquipo1()[4]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false && getEquipo1()[5]!=pokemon_activo1){\r\n pokemon_activo1 = getEquipo1()[5]; \r\n }\r\n vc.setjL_especie1(pokemon_activo1.getNombre_especie());\r\n vc.setjL_nombrepokemon1(pokemon_activo1.getPseudonimo());\r\n vc.setjL_vida_actual1(pokemon_activo1.getVida_restante(), pokemon_activo1.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n else if(evaluarAccion(this.pokemon_activo1, this.pokemon_activo2).equals(\"Atacar\")){\r\n System.out.println(\"Usuario eligio Atacar\");\r\n inflingirDaño(pokemon_activo1.getMovimientos()[(int)(Math.random()*4)], pokemon_activo2, pokemon_activo1);\r\n if(pokemon_activo2.getVida_restante() <= 0){\r\n pokemon_activo2.setVida_restante(0);\r\n pokemon_activo2.setDebilitado(true);\r\n System.out.println(\"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\");\r\n JOptionPane.showMessageDialog(this.vc, \"El Pokemon: \"+ pokemon_activo2.getPseudonimo()+\" se ha Debilitado\", \"Debilitado\", JOptionPane.INFORMATION_MESSAGE);\r\n if(condicionVictoria(getEquipo1(), getEquipo2()) == true){\r\n JOptionPane.showMessageDialog(this.vc, \"El Ganador de este Combate es:\"+ entrenador1.getNombre(), \"Ganador\", JOptionPane.INFORMATION_MESSAGE);\r\n System.out.println(\"El Ganador de este Combate es:\"+ entrenador1.getNombre());\r\n System.out.println(equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante());\r\n System.out.println(equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante());\r\n JOptionPane.showMessageDialog(this.vc, equipo1[0].getVida_restante()+ \" \"+equipo1[1].getVida_restante()+ \" \"+equipo1[2].getVida_restante()+ \" \"+equipo1[3].getVida_restante()+ \" \"+equipo1[4].getVida_restante()+ \" \"+equipo1[5].getVida_restante()+\"\\n\"+ equipo2[0].getVida_restante()+ \" \"+equipo2[1].getVida_restante()+ \" \"+equipo2[2].getVida_restante()+ \" \"+equipo2[3].getVida_restante()+ \" \"+equipo2[4].getVida_restante()+ \" \"+equipo2[5].getVida_restante(), \"Estadisticas finales(vida)\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.dispose();\r\n vpc.dispose();\r\n combate.setGanador(entrenador1);\r\n combate.setPerdedor(entrenador2);\r\n this.termino = true;\r\n }\r\n else if(getEquipo1()[0].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[0]; \r\n }\r\n else if(getEquipo1()[1].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[1]; \r\n }\r\n else if(getEquipo1()[2].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[2]; \r\n }\r\n else if(getEquipo1()[3].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[3]; \r\n }\r\n else if(getEquipo1()[4].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[4]; \r\n }\r\n else if(getEquipo1()[5].getDebilitado() == false){\r\n pokemon_activo2 = getEquipo2()[5]; \r\n } \r\n vc.setjL_nombrepokemon1(pokemon_activo2.getPseudonimo());\r\n vc.setjL_especie1(pokemon_activo2.getNombre_especie());\r\n }\r\n vc.setjL_especie2(pokemon_activo2.getNombre_especie());\r\n vc.setjL_nombrepokemon2(pokemon_activo2.getPseudonimo());\r\n vc.setjL_vida_actual2(pokemon_activo2.getVida_restante(), pokemon_activo2.getVida());\r\n setLabelEstados(0);\r\n setLabelEstados(1);\r\n this.turno = 1;\r\n }\r\n \r\n }", "public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\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\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\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}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public CouleurFeu suivant() {\r\n // on choisit ici un algo très basique (je l'avais d'abord fait\r\n // en utisant la liste des valeurs, mais ça n'est pas très lisible.\r\n switch (this) {\r\n case VERT:\r\n return ORANGE;\r\n case ORANGE:\r\n return ROUGE;\r\n case ROUGE:\r\n return VERT;\r\n default:\r\n throw new RuntimeException(\"couleur inconnue ?? (impossible normalement)\");\r\n }\r\n }", "HorarioAcademico findHorarioByAsistencia(Asistencia asistencia);", "public boolean echiquierStandard()\n\t{\n\n\t\tString couleur = \"noir\";\n\n\t\t//Premiere ligne des pieces noires - Premiere ligne echiquier\n\t\tthis.tableau[0][0] = new Tour(new Position(0,0), couleur); \n\t\tthis.tableau[0][1] = new Cavalier(new Position(0,1), couleur);\n\t\tthis.tableau[0][2] = new Fou(new Position(0,2), couleur);\n\t\tthis.tableau[0][3] = new Dame(new Position(0,3), couleur);\n\t\tthis.tableau[0][4] = new Roi(new Position(0,4),couleur);\n\t\tthis.tableau[0][5] = new Fou(new Position(0,5), couleur);\n\t\tthis.tableau[0][6] = new Cavalier(new Position(0,6), couleur);\n\t\tthis.tableau[0][7] = new Tour(new Position(0,7), couleur);\n\n\t\t// Deuxieme ligne des pieces noires - Deuxieme ligne echiquier\n\t\tthis.tableau[1][0] = new Pion(new Position(1, 0), couleur);\n\t\tthis.tableau[1][1] = new Pion(new Position(1, 1), couleur);\n\t\tthis.tableau[1][2] = new Pion(new Position(1, 2), couleur);\n\t\tthis.tableau[1][3] = new Pion(new Position(1, 3), couleur);\n\t\tthis.tableau[1][4] = new Pion(new Position(1, 4), couleur);\n\t\tthis.tableau[1][5] = new Pion(new Position(1, 5), couleur);\n\t\tthis.tableau[1][6] = new Pion(new Position(1, 6), couleur);\n\t\tthis.tableau[1][7] = new Pion(new Position(1, 7), couleur);\n\n\t\tcouleur = \"blanc\";\n\n\t\t// Premiere ligne des pieces blanches - Huitieme ligne echiquier\n\t\tthis.tableau[7][0] = new Tour(new Position(7, 0), couleur);\n\t\tthis.tableau[7][1] = new Cavalier(new Position(7, 1), couleur);\n\t\tthis.tableau[7][2] = new Fou(new Position(7, 2), couleur);\n\t\tthis.tableau[7][3] = new Dame(new Position(7, 3), couleur);\n\t\tthis.tableau[7][4] = new Roi(new Position(7, 4), couleur);\n\t\tthis.tableau[7][5] = new Fou(new Position(7, 5), couleur);\n\t\tthis.tableau[7][6] = new Cavalier(new Position(7, 6), couleur);\n\t\tthis.tableau[7][7] = new Tour(new Position(7, 7), couleur);\n\n\t\t// Deuxieme ligne des pieces blanches - Septieme ligne echiquier\n\t\tthis.tableau[6][0] = new Pion(new Position(6, 0), couleur);\n\t\tthis.tableau[6][1] = new Pion(new Position(6, 1), couleur);\n\t\tthis.tableau[6][2] = new Pion(new Position(6, 2), couleur);\n\t\tthis.tableau[6][3] = new Pion(new Position(6, 3), couleur);\n\t\tthis.tableau[6][4] = new Pion(new Position(6, 4), couleur);\n\t\tthis.tableau[6][5] = new Pion(new Position(6, 5), couleur);\n\t\tthis.tableau[6][6] = new Pion(new Position(6, 6), couleur);\n\t\tthis.tableau[6][7] = new Pion(new Position(6, 7), couleur);\n\n\t\treturn true;\t\t\n\t}", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "public void joueDeuxHumains()\n\t{\n\t\tboolean fin = false;\n\t\tboolean result = false;\n\t\tint etoiles;\n\t\tint choix;\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tint y = 0;\n\t\tint x2 = 0;\n\t\tint y2 = 0;\n\t\tString couleur;\n\t\tetoiles = initialiser();\n\t\twhile (!fin)\n\t\t{\n\t\t\tif (i % 2 == 0)\n\t\t\t{\n\t\t\t\tcouleur = \"bleu\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcouleur = \"rouge\";\n\t\t\t}\n\t\t\tSystem.out.println(\"1-Jouer\");\n\t\t\tSystem.out.println(\"2-Afficher une composante\");\n\t\t\tSystem.out.println(\"3-Vérifier si une case relie une composante\");\n\t\t\tSystem.out.println(\"4-Regarder s'il existe un chemin entre deux cases d'une couleur donnée\");\n\t\t\tSystem.out.println(\"5-Afficher le nombre minimum de cases entre deux cases données (x,y) et (z,t)\");\n\t\t\tSystem.out.println(\"6-Quitter\");\n\t\t\tchoix = clavier.nextInt();\n\t\t\tafficher(i);\n\t\t\tswitch (choix)\n\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"### Ajout d'une case pour jouer ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tresult = tableauPeres_[x][y].colorerCase(couleur);\n\t\t\t\t\t//System.out.println(existeCheminCases(getLesVoisins(x, y, couleur), tableauPeres_[x][y], couleur));\n\t\t\t\t\tif (getNbEtoiles(x, y, couleur) < getNbEtoiles(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY(), x, y);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tunion(x, y, getLesVoisins(x, y, couleur).getX(), getLesVoisins(x, y, couleur).getY());\n\t\t\t\t\t}\n\t\t\t\t\tpreparerScore(x, y, couleur);\n\t\t\t\t\tafficheScores(couleur);\n\t\t\t\t\tnombresEtoiles(x, y, couleur);\n\t\t\t\t\t++i;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.println(\"### Afficher une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tafficheComposante(x, y, couleur);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"### Tester si une case relie une composante ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tif(!relieComposantes(x, y, couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case ne relie aucune composante.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Cette case relie une ou plusieurs composante(s).\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.println(\"### Tester s'il existe un chemin entre deux cases données ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tif (existeCheminCases(tableauPeres_[x][y], tableauPeres_[x2][y2], couleur))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il existe un chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"Il n'existe pas de chemin entre les deux cases.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tSystem.out.println(\"### Afficher nombre minimum de cases qui relie deux cases ###\");\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la première case ?\");\n\t\t\t\t\tx = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la première case ?\");\n\t\t\t\t\ty = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de x de la deuxième case ?\");\n\t\t\t\t\tx2 = clavier.nextInt();\n\t\t\t\t\tSystem.out.println(\"Quel est la valeur de y de la deuxième case ?\");\n\t\t\t\t\ty2 = clavier.nextInt();\n\t\t\t\t\tcompressionChemin(x, y);\n\t\t\t\t\tcompressionChemin(x2, y2);\n\t\t\t\t\tSystem.out.println(relierCasesMin(x, y, x2, y2, couleur));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tfin = true;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (scoreJ2_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur bleu a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\t\t\telse if (scoreJ1_ == etoiles)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Joueur rouge a gagné !\");\n\t\t\t\tfin = true;\n\t\t\t}\n\n\t\t}\n\t}", "private void liberateAroom() {\n\t\tif(this.adminLogin() == 1) {\n\t\t\tSystem.out.println(\"\\n------------------\\n| Bonjour Ibobai |\\n------------------\");\n\t\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\t\tif(chambre.equals(this.chambresNonVides().get(this.chambresNonVides().size()-1))) {\n\t\t\t\t\tchambre.setReserve(false);\n\t\t\t\t\tSystem.err.println(\"--------------------------------------------------\\nVous avez bien libérée cette chambre:\\n--------------------------------------------------\\n\");\n\t\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.err.println(\"----------------------------\\nVous n'êtes pas un admin! |\\n----------------------------\");\n\t\t}\n\t\t\n\t}", "public void reabrirContrato() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n } else {\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se o contrato já estpa aberto\n System.err.println(\"O contrado desse hospede já encontra-se aberto\");\n\n } else {//caso o contrato encontre-se fechado\n hospedesCadastrados.get(i).getContrato().setSituacao(true);\n System.err.println(\"Contrato reaberto, agora voce pode reusufruir de nossos servicos!\");\n }\n }\n }\n }\n }", "public boolean inschrijfControle(){\n if(typeField.getText().equals(\"Toernooi\")) {\n try {\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT COUNT (*) as aantal FROM Inschrijvingen WHERE speler = ? AND toernooi = ?\");\n st.setInt(1, Integer.parseInt(spelerIDField.getText()));\n st.setInt(2, Integer.parseInt(codeField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n int id = rs.getInt(\"aantal\");\n if (id < 1) {\n return false;\n }\n }\n } catch (Exception e) {\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database(inschrijfControleToernooi)\");\n }\n }else if(typeField.getText().equals(\"Masterclass\")){\n try{\n Connection con = Main.getConnection();\n PreparedStatement st = con.prepareStatement(\"SELECT COUNT (*) as aantal FROM Inschrijvingen WHERE speler = ? AND masterclass = ?\");\n st.setInt(1, Integer.parseInt(spelerIDField.getText()));\n st.setInt(2, Integer.parseInt(codeField.getText()));\n ResultSet rs = st.executeQuery();\n if (rs.next()) {\n int id = rs.getInt(\"aantal\");\n if (id < 1) {\n return false;\n }\n }\n }catch(Exception e){\n System.out.println(e);\n System.out.println(\"ERROR: er is een probleem met de database(inschrijfControleMasterclass)\");\n }\n }\n return true;\n }", "public void OnibusCheio(Connection con, List<Bilhetes> temporaria) {\n\t\t\n\t\t\n\t\t//Verifica se o onibus ja possui 15 pessoas (maximo de assento no meu onibus)\n\t\t\n\t\t\t\ttry {\n\t\t\t\t\tstmt=con.prepareStatement(\"select count(destino) from bilhetes where destino = ? and Hembarque = ? group by destino\" );\n\t\t\t\t\n\t\t\t\tstmt.setString(1, temporaria.get(0).getDestino());\n\t\t\t\tstmt.setString(2, temporaria.get(0).getHora_embarque());\n\t\t\t\t\n\t\t\t\tstmt.execute();\n\t\t\t\trs=stmt.getResultSet();\n\t\t\t\t\n\t\t\t\twhile(rs.next())\n\t\t\t\t{\n\t\t\t\t\tNumero_DE_Passageiro = rs.getInt(1);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"ERRO: ONIBUS LOTADO, Numero de passageiros :\"+ Numero_DE_Passageiro);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\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\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "public Cliente GetMAterialFromTableCliente() {\n int FilaSelec = table.getSelectedRow();\n if (FilaSelec > -1) {\n Cliente seleted = lista.get(FilaSelec);\n return seleted;// esta funcion me retorn es la posicion \n } else {\n JOptionPane.showMessageDialog(this, \"Fila No seleccionada \");\n }\n return null;\n }", "public void contabilizarConMesYProfesor(ProfesorBean profesor, int mes){\r\n GestionDetallesInformesBD.deleteDetallesInforme(profesor, mes); \r\n\r\n //Preparamos todos los datos. Lista de fichas de horario.\r\n ArrayList<FichajeBean> listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n ArrayList<FichajeRecuentoBean> listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n\r\n /**\r\n * Contabilizar horas en eventos de día completo\r\n */\r\n \r\n int segundosEventosCompletos=contabilizarEventosCompletos(listaFichajesRecuento, profesor,mes);\r\n \r\n /**\r\n * Contabilizar horas en eventos de tiempo parcial\r\n */\r\n \r\n ArrayList<EventoBean> listaEventos=GestionEventosBD.getListaEventosProfesor(false, profesor, mes);\r\n int segundosEventosParciales=contabilizarEventosParciales(listaFichajesRecuento,listaEventos, profesor, mes, \"C\");\r\n \r\n /**\r\n * Contabilizamos las horas lectivas\r\n */\r\n ArrayList<FichaBean> listaFichasLectivas=UtilsContabilizar.getHorarioCompacto(profesor, \"L\");\r\n int segundosLectivos=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasLectivas, profesor,\"L\", mes);\r\n \r\n /**\r\n * Contabilizar horas complementarias\r\n */\r\n ArrayList<FichaBean> listaFichasComplementarias=UtilsContabilizar.getHorarioCompacto(profesor, \"C\");\r\n int segundosComplementarios=contabilizaHorasLectivasOCmplementarias(listaFichajesRecuento, listaFichasComplementarias, profesor,\"C\", mes);\r\n \r\n /**\r\n * Contabilizamos la horas no lectivas (el resto de lo que quede en los fichajes.\r\n */\r\n int segundosNLectivos=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, true, mes);\r\n \r\n /**\r\n * Contabilizamos las horas extra añadidas al profesor\r\n */\r\n ArrayList<HoraExtraBean> listaHorasExtra=GestionHorasExtrasBD.getHorasExtraProfesor(profesor, mes);\r\n HashMap<String, Integer> tablaHorasExtra = contabilizaHorasExtra(listaHorasExtra, profesor, mes);\r\n \r\n System.out.println(\"Segundos de horas lectivas: \"+Utils.convierteSegundos(segundosLectivos));\r\n System.out.println(\"Segundos de horas complementarias: \"+Utils.convierteSegundos(segundosComplementarios));\r\n System.out.println(\"Segundos de horas no lectivas: \"+Utils.convierteSegundos(segundosNLectivos));\r\n System.out.println(\"Segundos eventos completos: \"+Utils.convierteSegundos(segundosEventosCompletos));\r\n System.out.println(\"Segundos eventos parciales: \"+Utils.convierteSegundos(segundosEventosParciales));\r\n System.out.println(\"Total: \"+Utils.convierteSegundos((segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales)));\r\n \r\n /**\r\n * Comprobacion\r\n */\r\n listaFichajes = GestionFichajeBD.getListaFichajesProfesor(profesor,mes);\r\n listaFichajesRecuento= UtilsContabilizar.convertirFichajes(listaFichajes);\r\n int segundosValidacion=contabilizaHorasNoLectivas(listaFichajesRecuento, profesor, false, mes);\r\n int segundosValidacion2=segundosComplementarios+segundosLectivos+segundosNLectivos+segundosEventosCompletos+segundosEventosParciales;\r\n System.out.println(\"Comprobacion: \"+Utils.convierteSegundos(segundosValidacion));\r\n String obser=segundosValidacion==segundosValidacion2?\"Correcto\":\"No coinciden las horas en el colegio, con las horas calculadas de cada tipo.\";\r\n \r\n segundosComplementarios+=segundosEventosCompletos;\r\n segundosComplementarios+=segundosEventosParciales;\r\n\r\n //Guardamos en la base de datos\r\n GestionInformesBD.guardaInforme(profesor, obser, segundosLectivos, segundosNLectivos, segundosComplementarios,mes);\r\n \r\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "private void valider() {\n\n\t\t/**\n\t\t * Renvoie un tableau de caractères qui sera transformé en chaine de caractère\n\t\t **/\n\n\t\tString passewordTraduit = new String(passeword.getPassword());\n\n\t\t/**\n\t\t * login.getText() récupère le contenu de la barre de saisie\n\t\t **/\n\t\t\n\t\tString user = login.getText();\n\t\tString passwd = passewordTraduit;\n\t\t/**\n\t\t *Permettra de savoir si la connexion à la BDD SQL c'est bien passée.\n\t\t */\n\t\tboolean reussite;\n\t\t/**\n\t\t * On va créer la BDD si elle n'existe pas\n\t\t */\n\t\t\n\t\treussite = Initialisation.getInstance().creerBDD(user, passwd);\n\t\t/**\n\t\t * On set le password et l'utilisateur pour que les paramètres de connexion soient les bons\n\t\t */\n\t\tInitialisation.getInstance().setPasswd(passwd);\n\t\tInitialisation.getInstance().setUser(user);\n\t\tModification.getInstance().setPasswd(passwd);\n\t\tModification.getInstance().setUser(user);\n\t\tif(reussite) {\n\t\t\t/**\n\t\t\t *Si tout c'est bien passé on regarde si l'utilisateur existe dans le fichier et dans le cas contraire on le crée.\n\t\t\t */\n\t\t\tif(personnesDejaInscrite.getInstance().getMaListDePersonneInscrite().get(user) == null) {\n\t\t\t\tpersonnesDejaInscrite.getInstance().getMaListDePersonneInscrite().put(user, new CompteAdministrateur(passwd));\n\t\t\t\tpersonnesDejaInscrite.getInstance().sauvegarder();\n\t\t\t}\n\t\t\tFenetreLogin.getInstance().dispose();\n\t\t\tFenetreFond.getInstance().changerFenetre(login.getText());\n\t\t\t/**\n\t\t\t *On remet les champs à nul pour que quand on se déconnecte on est pas le login et le mot de passe de l'utilisateur précédent.\n\t\t\t */\n\t\t\tlogin.setText(\"\");\n\t\t\tpasseword.setText(\"\");\n\t\t}\n\t\n\t}", "public Feld erzeugeFeld() {\n\t\tArrayList<Schiff> schiffe = new ArrayList<Schiff>();\n\t\t\n\t\t// 1 Schlachtschiff = 5\n\t\tschiffe.add(new Schiff(5));\n\t\t// 2 Kreuzer = 4\n\t\tschiffe.add(new Schiff(4));\n\t\tschiffe.add(new Schiff(4));\n\t\t// 3 Zerstoerer = 3\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\tschiffe.add(new Schiff(3));\n\t\t// 4 Uboote = 2\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\tschiffe.add(new Schiff(2));\n\t\t\n\t\tFeld neuesFeld = new Feld(getSpiel().getFeldGroesse());\n\t\t\n\t\tfor(int s = 0; s<schiffe.size(); s++) {\n\t\t\tSchiff schiff = schiffe.get(s);\n\t\t\t// Jeweils maximal 2*n^2 Versuche das Schiff zu positionieren\n\t\t\tfor(int i = 0; i < getSpiel().getFeldGroesse() * getSpiel().getFeldGroesse() * 2; i++) {\n\t\t\t\t// Zufallsorientierung\n\t\t\t\tOrientierung orientierung = Orientierung.HORIZONTAL;\n\t\t\t\tif(Math.random() * 2 > 1) {\n\t\t\t\t\torientierung = Orientierung.VERTIKAL;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Zufallskoordinate\n\t\t\t\tKoordinate koordinate = new Koordinate(\n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)), \n\t\t\t\t\t(int) (Helfer.zufallszahl(0, getSpiel().getFeldGroesse() - 1)));\n\t\t\t\t\n\t\t\t\ttry{\n\t\t\t\t\tneuesFeld.setzeSchiff(schiff, koordinate, orientierung);\n\t\t\t\t\tbreak;\n\t\t\t\t} catch(Exception e) { }\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(neuesFeld.getSchiffe().size() != 10) throw new RuntimeException(\"Schiffe konnten nicht gesetzt werden!\");\n\t\t\t\n\t\treturn neuesFeld;\n\t}", "public jpHebergement() {\n initComponents();\n ChargerListeEtablissement();\n ChargerListeTypeChambre();\n }", "Jugador consultarGanador();", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int selection = statsTable.getSelectedRow();\n if(selection != -1) {\n int modelIndex = statsTable.getRowSorter().convertRowIndexToModel(selection);\n String str = (String) statsTable.getModel().getValueAt(modelIndex, 0);\n int index = map.getSettlement(str);\n Settlement settlementSelected = map.getSettlements()[index];\n\n int numberOfSick = (int) (settlementSelected.getNumOfHealthy() * 0.1);\n\n for (int i = 0; i < numberOfSick; i++) {\n Person currentHealthy = settlementSelected.getHealthyPerson().get(0); // take the first person Healthy in the list of HealthyPeople\n settlementSelected.isSick(currentHealthy, Main.randomVirus(map));\n }\n statsTable.repaint();\n mainWin.repaint();\n }\n else{\n JOptionPane.showMessageDialog(new JFrame(), \"Select a row!\", \"Statistics Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n }", "private void findChest() {\n\t\tchar[][] location = game.getPlayingmap().getLocation();\n//\t\tFighter fighter = (Fighter)game.getPlayingmap().getCellsinthemap()[character.xOfFighter][character.yOfFighter].getContent();\n\n\t\tif(character.xOfFighter-1>=0&&location[character.xOfFighter-1][character.yOfFighter]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter-1][character.yOfFighter].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter-1, character.yOfFighter, 'e');\n\t\t\t}\n\t\t}\n\t\telse if(character.xOfFighter+1<game.getPlayingmap().getRow()&&location[character.xOfFighter+1][character.yOfFighter]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter+1][character.yOfFighter].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter+1, character.yOfFighter, 'e');\n\t\t\t}\n\t\t}\n\t\telse if(character.yOfFighter-1>=0&&location[character.xOfFighter][character.yOfFighter-1]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter][character.yOfFighter-1].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter, character.yOfFighter-1, 'e');\n\t\t\t}\n\t\t}\n\t\telse if(character.yOfFighter+1<game.getPlayingmap().getColumn()&&location[character.xOfFighter][character.yOfFighter+1]=='c'){\n\t\t\tChest chest = (Chest)game.getPlayingmap().getCellsinthemap()[character.xOfFighter][character.yOfFighter+1].getContent();\n\t\t\tcharacter.openChest(chest);\n\t\t\tif(chest.isEmpty()){\n\t\t\t\tgame.getPlayingmap().changeLocation(character.xOfFighter, character.yOfFighter+1, 'e');\n\t\t\t}\n\t\t}\n\t}", "public void veraendereBestand(Artikel artikel, int menge) throws ArtikelExistiertNichtException {\n if (!artikelBestand.contains(artikel)) {\n throw new ArtikelExistiertNichtException(artikel.getArtikelNummer());\n }\n artikel.setBestand(menge);\n }", "public void checarColision()\n\t{\n\t\tListIterator <Entidad> iterator = handler.listaEntidades.listIterator();\n\t\twhile (iterator.hasNext())\n\t\t{\n\t\t\tEntidad aux = iterator.next();\n\t\t\t\n\n\t\t\t//Colision con un Enemigo\n\t\t\tif (aux instanceof Bala)\n\t\t\t{\n\t\t\t\tif (chocandoEn(x, y, aux))\n\t\t\t\t{\t\n\n\n\t\t\t\t\t\n\t\t\t\t\t//Si choca con bala eliminar bala y cambiar posicion de enemigo\n\t\t\t\t\tvelX = aux.getVelX();\n\t\t\t\t\tvelY = aux.getVelY();\n\t\t\t\t\thandler.quitarObjeto(aux);\n\t\t\t\t\tthis.vida -= 5;\n\t\t\t\t\t\n\t\t\t\t\tif(this.vida == 0)\n\t\t\t\t\t\thandler.quitarObjeto(this);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\t\t\n\t}", "@Test\n public void sucheReihen() throws Exception {\n System.out.println(\"sucheReihen\");\n KategorieKey key = null;\n List<Reihe> expResult = null;\n List<Reihe> result = SaalHelper.sucheReihen(key);\n assertEquals(expResult, result);\n \n }", "public static void passerTour(){\n\t\tif(tour<jeu.getJoueurs().length){\n\t\t\ttour++;\n\t\t}\n\t\telse {\n\t\t\ttour = 1;\n\t\t}\n\t\tfor(int i=0;i<joueurElimine;i++){\n\t\t\tif(jeu.getJoueurs()[tour-1].getMonnaie()==0){\n\t\t\t\tif(tour<jeu.getJoueurs().length){\n\t\t\t\t\ttour++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttour = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void validerSaisie();", "@Override\n\tpublic List<Celebrite> recupererToutesLesCelebrites() {\n\t\tQuery req=em.createQuery(\"select c from Celebrite c \");\n\t\treturn req.getResultList();\n\t}", "private static void profelEmployee(Employee e) {\n\t\tString choix = scannerResultat(e.affichageMenu());\n\t\twhile (!choix.equalsIgnoreCase(\"Q\")) {\n\t\t\tif (choix.equalsIgnoreCase(\"A\")) {\n\t\t\t\te.CreeUneOperation();\n\t\t\t\tchoix = \"Q\";\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"B\")) {\n\t\t\t\te.afficherLaListe();\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"C\")) {\n\t\t\t\t\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"D\")) {\n\t\t\t\te.afficherLaListe();\n\t\t\t}\n\t\t\tif (choix.equalsIgnoreCase(\"E\")) {\n\t\t\t\tchoix = \"Q\";\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6201125", "0.60802495", "0.599108", "0.59070057", "0.5886277", "0.5828396", "0.5810226", "0.57464975", "0.57451916", "0.56841743", "0.5674861", "0.5636891", "0.56362754", "0.56066495", "0.5602055", "0.55789024", "0.55729055", "0.55448866", "0.5543161", "0.5538049", "0.5537373", "0.5533855", "0.5506558", "0.55063695", "0.5482168", "0.5478134", "0.5476717", "0.54753935", "0.5471746", "0.5460068", "0.54324037", "0.54281086", "0.54208106", "0.5406576", "0.5397311", "0.53941077", "0.5393173", "0.53887874", "0.53872395", "0.53833824", "0.53727645", "0.5371635", "0.5366194", "0.53546673", "0.5352505", "0.53519094", "0.53418356", "0.53101236", "0.5305499", "0.530527", "0.53020734", "0.5301422", "0.53004366", "0.52943426", "0.52755755", "0.52742606", "0.52685535", "0.5256387", "0.525039", "0.52492654", "0.5248481", "0.52327406", "0.52312696", "0.52311796", "0.5230838", "0.523024", "0.52237", "0.52187574", "0.52103204", "0.5209983", "0.5204531", "0.5203021", "0.52027744", "0.52022153", "0.51980585", "0.51955295", "0.51922446", "0.5180211", "0.5179648", "0.5178959", "0.51704854", "0.5164309", "0.51588744", "0.5152734", "0.515232", "0.5148912", "0.51483333", "0.5137612", "0.5136518", "0.51321286", "0.51273805", "0.5124216", "0.5123096", "0.5118477", "0.51178914", "0.5117185", "0.51105666", "0.51078075", "0.5105265", "0.51032096", "0.5101876" ]
0.0
-1
Methode permettant de filtrer des entites du depot
public Collection<T> filter(Query query) throws DataAccessException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<PedidoIndividual> filtrar(PedidoIndividual filtro);", "@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 }", "@Override\r\n\tprotected List<Producto> filtrar(Comercio comercio) {\r\n\t\tList<Producto> resultado= new ArrayList<Producto>();\r\n\t\tfor(Producto pAct:comercio.getProductos()){\r\n\t\t\tif(pAct.presentacionesSuperanStockCritico())\r\n\t\t\t\tresultado.add(pAct);\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}", "@Listen(\"onChange = #txtNombreMostrarTematica,#txtAreaMostrarTematica,#txtDescripcionMostrarTematica\")\r\n\tpublic void filtrarDatosCatalogo() {\r\n\t\tList<Tematica> tematicas1 = servicioTematica.buscarActivos();\r\n\t\tList<Tematica> tematicas2 = new ArrayList<Tematica>();\r\n\r\n\t\tfor (Tematica tematica : tematicas1) {\r\n\t\t\tif (tematica\r\n\t\t\t\t\t.getNombre()\r\n\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t.contains(txtNombreMostrarTematica.getValue().toLowerCase())\r\n\t\t\t\t\t&& tematica\r\n\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t.toLowerCase()\r\n\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\ttxtDescripcionMostrarTematica.getValue()\r\n\t\t\t\t\t\t\t\t\t\t\t.toLowerCase())) {\r\n\t\t\t\ttematicas2.add(tematica);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\tltbTematica.setModel(new ListModelList<Tematica>(tematicas2));\r\n\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}", "@Override\n\tpublic List<Articoli> SelArticoliByFilter(String Filtro, String OrderBy, String Tipo)\n\t{\n\t\treturn null;\n\t}", "public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }", "@Override\n\tpublic Optional<MedioPago> EntityForSpecificatios(MedioPago entidad, Object filter) {\n\t\treturn null;\n\t}", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "Collection<T> doFilter(RepositoryFilterContext context);", "public void filtrarOfertas() {\n\n List<OfertaDisciplina> ofertas;\n \n ofertas = ofertaDisciplinaFacade.filtrarEixoCursoTurnoCampusQuad(getFiltrosSelecEixos(), getFiltrosSelecCursos(), turno, campus, quadrimestre);\n\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n \n //Após filtrar volta os parametros para os valores default\n setFiltrosSelecEixos(null);\n setFiltrosSelecCursos(null);\n turno = \"\";\n quadrimestre = 0;\n campus = \"\";\n }", "public ArrayList<Factura> recuperaFacturaCompletaPorFiltro(String filtro) {\r\n\t\tString sql = \"\";\r\n\t\tsql += \"SELECT * FROM facturas WHERE \";\r\n\t\tsql += filtro;\r\n\t\tsql += \" ORDER BY facturas.numero\";\r\n\t\tSystem.out.println(sql);\r\n\t\tArrayList<Factura> lista = new ArrayList<>();\r\n\t\tConnection c = new Conexion().getConection();\r\n\t\tif (c != null) {\r\n\t\t\ttry {\r\n\t\t\t\t// Crea un ESTAMENTO (comando de ejecucion de un sql)\r\n\t\t\t\tStatement comando = c.createStatement();\r\n\t\t\t\tResultSet rs = comando.executeQuery(sql);\r\n\t\t\t\twhile (rs.next() == true) {\r\n\t\t\t\t\tint id = rs.getInt(\"id\");\r\n\t\t\t\t\tint clienteId = rs.getInt(\"clienteId\");\r\n\t\t\t\t\tString nombreCliente = rs.getString(\"nombreCliente\");\r\n\t\t\t\t\tint numero = rs.getInt(\"numero\");\r\n\t\t\t\t\tDate fecha = rs.getDate(\"fecha\");\r\n\t\t\t\t\tdouble porcDescuento = rs.getDouble(\"porcDescuento\");\r\n\t\t\t\t\tdouble porcRecargoEquivalencia = rs.getDouble(\"porcRecargoEquivalencia\");\r\n\t\t\t\t\tdouble impTotal = rs.getDouble(\"impTotal\");\r\n\t\t\t\t\tdouble impRecargo = rs.getDouble(\"impRecargo\");\r\n\t\t\t\t\tdouble impIva = rs.getDouble(\"impIva\");\r\n\t\t\t\t\tString dirCorreo = rs.getString(\"dirCorreo\");\r\n\t\t\t\t\tString dirFactura = rs.getString(\"dirFactura\");\r\n\t\t\t\t\tString dirEnvio = rs.getString(\"dirEnvio\");\r\n\t\t\t\t\tboolean cobrada = rs.getBoolean(\"cobrada\");\r\n\t\t\t\t\tArrayList<FacturaDetalle> detalles = new FacturasDetallesBDD().recuperaPorFacturaId(id);\r\n\t\t\t\t\tlista.add(new Factura(id, clienteId, nombreCliente, numero, fecha, porcDescuento, porcRecargoEquivalencia, impTotal, impRecargo, impIva, dirCorreo, dirFactura, dirEnvio, cobrada, detalles));\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tc.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "List<Receta> getAll(String filter);", "Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);", "@Query(\"from Flight as f where f.fare.fare <= 5000\")\n\tList<Flight> filterFlightsByPrice();", "@Override\r\n public List<Filme> getListaFilmes(){\r\n return listaFilme;\r\n }", "public List<MascotaExtraviadaEntity> darProcesosExtraviadaConNombreDeMascotaIgualA(String nombreMascota){\n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n procesos.stream().filter((p) -> (p.getMascota().getNombre().equals(nombreMascota))).forEachOrdered((p) -> {\n procesosFiltrados.add(p);\n });\n \n return procesosFiltrados;\n }", "private void btnFiltrareActionPerformed(java.awt.event.ActionEvent evt) { \n List<Contact> lista = (List<Contact>) listaContacte.stream().filter(Agenda.predicate).sorted(Agenda.map.get(Agenda.criteriu)).collect(Collectors.toList());\n model.clear();\n lista.forEach((o) -> {\n model.addElement(o);\n });\n }", "@Override\r\n @Transactional(rollbackFor = InfraccionException.class)\r\n public List<InfraccionDTO> findByFilter(EscenarioIncumplimientoFilter filtro) throws InfraccionException {\r\n LOG.info(\"findByFilter\");\r\n List<InfraccionDTO> retorno=null;\r\n try{\r\n Query query = getFindQuery(filtro);\r\n retorno = InfraccionBuilder.toListInfraccionDTO(query.getResultList());\r\n }catch(Exception e){\r\n LOG.error(\"Error en findByFilter\",e);\r\n }\r\n return retorno;\r\n }", "@Override\n\tCriteria getFiltrCriteria(Session session, Filtr filtr) {\n\t\treturn null;\n\t}", "public List<EspecieEntity> encontrarTodos(){\r\n Query todos =em.createQuery(\"select p from EspecieEntity p\");\r\n return todos.getResultList();\r\n }", "@Override\n\tpublic List<Celebrite> recupererToutesLesCelebrites() {\n\t\tQuery req=em.createQuery(\"select c from Celebrite c \");\n\t\treturn req.getResultList();\n\t}", "private void setUpFilter() {\n List<Department> departmentsList = departmentService.getAll(0, 10000);\n departments.setItems(departmentsList);\n departments.setItemLabelGenerator(Department::getDepartment_name);\n departments.setValue(departmentsList.get(0));\n category.setItems(\"Consumable\", \"Asset\", \"%\");\n category.setValue(\"%\");\n status.setItems(\"FREE\", \"IN USE\", \"%\");\n status.setValue(\"%\");\n show.addClickListener(click -> updateGrid());\n }", "private void listDepartments(String filterText) {\n TextField filter = new TextField();\r\n filter.setPlaceholder(\"Filter by last name\");\r\n filter.setValueChangeMode(ValueChangeMode.EAGER);\r\n filter.addValueChangeListener(e -> listDepartments(e.getValue()));\r\n add(filter, grid);\r\n\r\n if (StringUtils.isEmpty(filterText)){\r\n grid.setItems(repo.findAll());\r\n }\r\n else{\r\n grid.setItems(repo.findByNameOfDepartmentStartsWithIgnoreCase(filterText));\r\n }\r\n\r\n }", "public interface FilterAction {\n /**\n * Takes search entities that has been returned from {@link cz.muni.fi.pb162.find.filesystem.FSWalkResult}\n * Applies all the filters that have been enabled and returns filtered entries.\n *\n * To check which filters are active use {@link cz.muni.fi.pb162.find.ApplicationOptions}\n *\n * @param entries - Not filtered search entities\n * @return filtered search entities\n */\n List<SearchEntry> filter(List<SearchEntry> entries);\n}", "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 }", "public String askDepFilter();", "@Override\r\n\tpublic Collection<ProyectoDTO> getProyecto(ProyectoDTO proyectoFilter) {\n\t\treturn null;\r\n\t}", "public List<FilmeAtor> buscarFilmesAtoresPeloNomeFilmeOuNomeAtor(String nomeFilmeOuAtor) {\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 like :nomeFilme or a.nome like :nomeAtor\",\r\n FilmeAtor.class);\r\n\r\n consulta.setParameter(\"nomeFilme\", nomeFilmeOuAtor + \"%\");\r\n consulta.setParameter(\"nomeAtor\", nomeFilmeOuAtor + \"%\");\r\n \r\n return consulta.getResultList();\r\n\r\n }", "public ArrayList<FavoritoItem> obtenerFavoritos() throws ValidacionException{\n //Obtener las transacciones y filtrarlas\n ArrayList<Transaccion> transacciones = listarTodo();\n ArrayList<FavoritoItem> favoritos = new ArrayList<FavoritoItem>();\n ArrayList<Transaccion> transaccionesFiltradas = new ArrayList<Transaccion>();\n\n transaccionesFiltradas.addAll(transacciones);\n for (Transaccion tr: transacciones){\n if((tr.getFavorito()).equals(false)){\n transaccionesFiltradas.remove(tr);\n }\n }\n\n //Aramar listado de DTO\n for (Transaccion tr: transaccionesFiltradas){\n FavoritoItem fav = new FavoritoItem();\n fav.setIdTransaccion(tr.getId().toString());\n fav.setNombreTransaccion(tr.getNombre());\n fav.setTipo(tr.getTipo());\n\n // Integer cantidadCuentas = obtenerCuentasPorTransaccion()\n fav.setCantidadCuentasAsociadas(\"(ninguna cuenta asociada)\");\n favoritos.add(fav);\n }\n return favoritos;\n }", "@Override\r\n\tpublic List<Fournisseur> getListFournisseur() {\n\t\treturn this.sessionFactory.getCurrentSession().createQuery(\"from fournisseur\").list();\r\n\t}", "public List<CandidatoBean> listarCandidatosComFiltro(String nomeDoFiltro) {\r\n List<Candidato> listCandidatos = new ArrayList<Candidato>();\r\n listCandidatos = em.createNamedQuery(\"Candidato.findByFilter\").setParameter(\"nome\", \"%\" + nomeDoFiltro + \"%\").getResultList();\r\n List<CandidatoBean> listCandidatosBean = new ArrayList<CandidatoBean>();\r\n\r\n for (Candidato candidato : listCandidatos) {\r\n listCandidatosBean.add(modelMapper.map(candidato, CandidatoBean.class));\r\n }\r\n\r\n em.close();\r\n em = null;\r\n\r\n return listCandidatosBean;\r\n }", "@Command\n\t@NotifyChange(\"*\")\n\tpublic void aplicarFiltro(){\n\t\tcambiarAnalistas(0, null, null);\n\t}", "private void listarDepartamentos() {\r\n\t\tdepartamentos = departamentoEJB.listarDepartamentos();\r\n\t}", "List<ItemPedido> findAll();", "public List<conteoTab> filtro() throws Exception {\n iConteo iC = new iConteo(path, this);\n try {\n fecha = sp.getString(\"date\", \"\");\n iC.nombre = fecha;\n\n List<conteoTab> cl = iC.all();\n\n for (conteoTab c : cl) {\n boolean val = true;\n for (int i = 0; i <= clc.size(); i++) {\n if (c.getIdBloque() == sp.getInt(\"bloque\", 0) || c.getIdVariedad() == sp.getInt(\"idvariedad\", 0)) {\n val = true;\n } else {\n val = false;\n }\n }\n if (val) {\n clc.add(c);\n } else {\n }\n }\n } catch (Exception e) {\n Toast.makeText(this, \"No existen registros actuales que coincidan con la fecha\", Toast.LENGTH_LONG).show();\n clc.clear();\n }\n return clc;\n }", "@GetMapping(\"/items\")\n public List<Items> getAllItems(@RequestParam(required = false) String filter) {\n if (\"reviewreveals-is-null\".equals(filter)) {\n log.debug(\"REST request to get all Itemss where reviewReveals is null\");\n return StreamSupport\n .stream(itemsRepository.findAll().spliterator(), false)\n .filter(items -> items.getReviewReveals() == null)\n .collect(Collectors.toList());\n }\n log.debug(\"REST request to get all Items\");\n return itemsRepository.findAll();\n }", "@Override\n public List<Caja> buscarMovimientos(){\n List<Caja> listaCaja= cajaRepository.findAll();\n\n return listaCaja;\n\n }", "@Override\r\n public Page<T> filter(U filter)\r\n {\r\n Class<T> T = returnedClass();\r\n CriteriaBuilder cb = getEm().getCriteriaBuilder();\r\n CriteriaQuery<T> criteriaQuery = cb.createQuery(T);\r\n CriteriaQuery<Long> criteriaQueryCount = cb.createQuery(Long.class);\r\n Root<T> entity = criteriaQuery.from(T);\r\n criteriaQueryCount.select(cb.count(entity));\r\n criteriaQuery.select(entity);\r\n \r\n // collect all filters relevant for affected entity\r\n List<Object> filters = new ArrayList<Object>();\r\n getPreFilters(filters, T, filter);\r\n \r\n filters.add(filter);\r\n List<Hint> hints = new ArrayList<Hint>();\r\n \r\n if (!filters.isEmpty()) {\r\n List<Predicate> filterPredicates = new ArrayList<Predicate>();\r\n for (Object queryCriteria : filters) {\r\n \r\n List<Predicate> orPredicates = new ArrayList<Predicate>();\r\n List<Predicate> andPredicates = new ArrayList<Predicate>();\r\n FilterContextImpl<T> filterContext = new FilterContextImpl<T>(entity, criteriaQuery, getEm(), queryCriteria);\r\n hints.addAll(filterContext.getHints());\r\n \r\n List<Field> fields = AbstractFilteringRepository.getInheritedPrivateFields(queryCriteria.getClass());\r\n for (Field field : fields) {\r\n // I want to skip static fields and fields which are cared of in different(specific way)\r\n if (!Modifier.isStatic(field.getModifiers()) && !ignoredFields.contains(field.getName())) {\r\n if (!field.isAccessible()) {\r\n field.setAccessible(true);\r\n }\r\n \r\n /**\r\n * Determine field path\r\n */\r\n // anottaion specified path has always highest priority, so is processed in the first place processing\r\n FieldPath fieldPathAnnotation = field.getAnnotation(FieldPath.class);\r\n Field f;\r\n if (fieldPathAnnotation != null && StringUtils.isNotBlank(fieldPathAnnotation.value())) {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(fieldPathAnnotation.value(), FieldPath.FIELD_PATH_SEPARATOR), true);\r\n } else {\r\n f = FieldUtils.getField(T, StringUtils.substringBefore(field.getName(), StructuredPathFactory.FILTER_PATH_SEPARATOR), true);\r\n }\r\n \r\n // tries to find CustmoProcessor annotation or some annotation metaannotated by custom processor\r\n CustomProcessor processor = field.getAnnotation(CustomProcessor.class);\r\n if (processor == null) {\r\n processor = getMetaAnnotation(CustomProcessor.class, field);\r\n }\r\n \r\n ProcessorContext<T> processorContext = filterContext.getProcessorContext(andPredicates, orPredicates, field);\r\n Object filterFieldValue = getFilterFieldValue(field, queryCriteria);\r\n if (processor == null && f != null) {\r\n processTypes(filterFieldValue, processorContext);\r\n // If field is not pressent in Entity, it needs special care\r\n } else {\r\n Class<CustomFieldProcessor<T, ?>> processorClass = null;\r\n if (processor != null) {\r\n processorClass = (Class<CustomFieldProcessor<T, ?>>) processor.value();\r\n processCustomFields(filterFieldValue, processorContext, processorClass);\r\n } else {\r\n if (!processCustomTypes(filterFieldValue, processorContext)) {\r\n if (shouldCheck(processorContext.getField())) {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" wasn't handled. \");\r\n throw new UnsupportedOperationException(\"Custom filter fields not supported in \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \", required field: \" + processorContext.getField().getName());\r\n } else {\r\n LOG.info(\"Field \\'\" + processorContext.getField().getName() + \"\\' from \"\r\n + processorContext.getField().getDeclaringClass().getSimpleName()\r\n + \" marked with @Unchecked annotation wasn't handled. \");\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n if (!andPredicates.isEmpty() || !orPredicates.isEmpty()) {\r\n Predicate filterPredicate = null;\r\n if (!andPredicates.isEmpty()) {\r\n Predicate andPredicate = cb.and(andPredicates.toArray(new Predicate[1]));\r\n filterPredicate = andPredicate;\r\n }\r\n if (!orPredicates.isEmpty()) {\r\n Predicate orPredicate = cb.or(orPredicates.toArray(new Predicate[1]));\r\n if (filterPredicate != null) {\r\n filterPredicate = cb.and(filterPredicate, orPredicate);\r\n } else {\r\n filterPredicate = orPredicate;\r\n }\r\n }\r\n filterPredicates.add(filterPredicate);\r\n }\r\n }\r\n if (!filterPredicates.isEmpty()) {\r\n Predicate finalPredicate = cb.and(filterPredicates.toArray(new Predicate[1]));\r\n criteriaQuery.where(finalPredicate);\r\n criteriaQueryCount.where(finalPredicate);\r\n }\r\n }\r\n \r\n \r\n TypedQuery<T> query = getEm().createQuery(criteriaQuery);\r\n TypedQuery<Long> queryCount = getEm().createQuery(criteriaQueryCount);\r\n if (filter != null && filter.getPageSize() > 0) {\r\n query = query.setFirstResult(filter.getOffset());\r\n query = query.setMaxResults(filter.getPageSize());\r\n }\r\n // add hints\r\n if (!hints.isEmpty()) {\r\n for (Hint hint : hints) {\r\n query.setHint(hint.getName(), hint.getValue());\r\n queryCount.setHint(hint.getName(), hint.getValue());\r\n }\r\n }\r\n \r\n \r\n PageImpl<T> result = new PageImpl<T>(query.getResultList(), filter, queryCount.getSingleResult().intValue());\r\n return result;\r\n }", "public List<Filme> listar() {\r\n\r\n //Pegando o gerenciador de acesso ao BD\r\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery consulta = gerenciador.createQuery(\r\n \"Select f from Filme f\", Filme.class);\r\n\r\n //Retornar a lista de atores\r\n return consulta.getResultList();\r\n\r\n }", "public List<ActifFinancier> listemontant_actuelFond(Fond f){\n \t List<ActifFinancier> l = new ArrayList<>();\n \t if(f == Fond.Fond_Euro){\n \t\t l = actifFinancierRepo.findByNomFond(Fond.Fond_Euro);\n \t }\n \t else{\n \t\t l = actifFinancierRepo.findByNomFond(Fond.Euro_Croissance);\n \t }\n \t return l;\n }", "public static void main(String[] args) {\n\n Expositores_Interface expositoresInterface = DaoFactory.construirInstanciaExpositor();\n List<Expositores> listaExpositores = expositoresInterface.listar();\n\n\n listaExpositores.stream().filter(a -> a.getEvento() == 3).forEach(a -> a.imprimirSueldo());\n\n\n\n\n }", "ObservableList<Deliverable> getFilteredDeliverableList();", "ConsultaDto<ProdutorVO> obterByNome(String nome, Integer idInstituicao, int pagina, int tamanhoPagina, Boolean filtrarCategoriaAtiva) throws BancoobException;", "@Override\r\n\tpublic List<ReservaBean> traeTodos() throws Exception {\n\t\treturn null;\r\n\t}", "@GlobalCommand\n @Command \n @NotifyChange( \"mascotas\")\n public void doSearch() \n {\n System.out.println();\n mascotas = new ListModelList<>();\n List<Mascota> allEvents;// = eventDao.findAll(); //Para mostrar todo\n\n if((filterChip == null || \"\".equals(filterChip)) && \n (filterNombre == null || \"\".equals(filterNombre)) &&\n (filterPropietario == null || \"\".equals(filterPropietario)) && \n (filterSexo == null || \"\".equals(filterSexo)) &&\n (filterFnacimiento == null || \"\".equals(filterFnacimiento)) && \n (filterFdefuncion == null || \"\".equals(filterFdefuncion)) && \n (filterPeso == null || \"\".equals(filterPeso)) &&\n (filterAltura == null || \"\".equals(filterAltura)) && \n (filterRaza == null || \"\".equals(filterRaza)) &&\n (filterEspecie == null || \"\".equals(filterEspecie)) && \n (filterPelo == null || \"\".equals(filterPelo)) &&\n (filterFechaalta == null || \"\".equals(filterFechaalta)) &&\n (filterFechabaja == null || \"\".equals(filterFechabaja)) ) {\n mascotas.addAll(eventDao.findAll()); //Para mostrar todo\n }\n else \n {\n allEvents = eventDao.findAll();\n for (Mascota masc : allEvents) {\n String peso = masc.getPeso() + \"\";\n String altura = masc.getAltura() + \"\";\n String propietario = masc.getCliente().getFullname();\n String raza = masc.getRaza().getRaza();\n String especie = masc.getEspecie().getEspecie();\n String fechabaja, fechadef;\n if(masc.getFechabaja() != null) {\n fechabaja = masc.getFechabaja().toString();\n }\n else {\n fechabaja = \"\";\n }\n if(masc.getDefuncion() != null) {\n fechadef = masc.getDefuncion().toString();\n }\n else {\n fechadef = \"\";\n }\n if ((masc.getChip().toLowerCase().startsWith(filterChip.toLowerCase()) ) &&\n (masc.getNombre().toLowerCase().startsWith(filterNombre.toLowerCase()) ) &&\n (masc.getSexo().toLowerCase().startsWith(filterSexo.toLowerCase()) ) &&\n (masc.getNacimiento().toString().toLowerCase().startsWith(filterFnacimiento.toLowerCase()) ) &&\n (fechadef.toLowerCase().startsWith(filterFdefuncion.toLowerCase()) ) &&\n (masc.getPelo().toLowerCase().startsWith(filterPelo.toLowerCase()) ) &&\n (masc.getFechaalta().toString().toLowerCase().startsWith(filterFechaalta.toLowerCase()) ) &&\n (fechabaja.toLowerCase().startsWith(filterFechabaja.toLowerCase()) ) &&\n (peso.toLowerCase().startsWith(filterPeso.toLowerCase()) ) &&\n (altura.toLowerCase().startsWith(filterAltura.toLowerCase()) ) &&\n (propietario.toLowerCase().startsWith(filterPropietario.toLowerCase()) ) &&\n (raza.toLowerCase().startsWith(filterRaza.toLowerCase()) ) &&\n (especie.toLowerCase().startsWith(filterEspecie.toLowerCase()) )\n ) {\n mascotas.add(masc);\n }\n } //for(Mascota masc : allEvents)\n }\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}", "private void filterItems()\n {\n System.out.println(\"filtered items (name containing 's'):\");\n Set<ClothingItem> items = ctrl.filterItemsByName(\"s\");\n items.stream().forEach(System.out::println);\n }", "public List<MascotaExtraviadaEntity> darProcesosConRecompensaMenorA(Double precio) throws Exception{\n \n if(precio < 0){\n throw new BusinessLogicException(\"El precio de una recompensa no puede ser negativo\");\n }\n \n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n for( MascotaExtraviadaEntity p : procesos){\n if(p.getRecompensa().getValor() <= precio){\n procesosFiltrados.add(p);\n }\n }\n \n return procesosFiltrados;\n }", "@Test\n\tvoid findAllForMyCompanyFilter() {\n\t\tinitSpringSecurityContext(\"assist\");\n\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(\"ing\", null, null, newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(8, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(8, tableItem.getRecordsFiltered());\n\t\tAssertions.assertEquals(8, tableItem.getData().size());\n\n\t\t// Check the users\n\t\tAssertions.assertEquals(\"fdoe2\", tableItem.getData().get(0).getId());\n\t\tAssertions.assertTrue(tableItem.getData().get(0).isCanWrite());\n\n\t\t// Check the groups\n\t\tAssertions.assertEquals(0, tableItem.getData().get(0).getGroups().size());\n\t}", "protected void filtrarEstCid() {\r\n\t\tif (cmbx_cidade.getSelectedItem() != \"\" && cmbx_estado.getSelectedItem() != \"\") {\r\n\t\t\tStringBuilder filtracomando = new StringBuilder();\r\n\r\n\t\t\tfiltracomando\r\n\t\t\t\t\t.append(comando + \" WHERE ESTADO = '\" + Estado.validar(cmbx_estado.getSelectedItem().toString())\r\n\t\t\t\t\t\t\t+ \"' AND CIDADE = '\" + cmbx_cidade.getSelectedItem().toString() + \"'\");\r\n\t\t\tlistacliente = tabelaCliente.mostraRelatorio(filtracomando.toString());\r\n\r\n\t\t\ttablecliente.setModel(tabelaCliente);\r\n\r\n\t\t} else {\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Escolha a Cidade e o Estado que deseja Filtrar\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic List<Produto> listar(Produto entidade) {\n\t\treturn null;\n\t}", "public void jpqlFiltri() {\n em.getTransaction().begin();\n Query q = em.createQuery(\"SELECT c FROM Customer c WHERE c.customer_id between 340 and 345\");\n\n List<Customer> listF = q.getResultList();\n\n System.out.println(\"I Customer con id tra 340 e 345 sono:\");\n\n for (Customer c : listF) {\n System.out.println(c.getCustomerId() + c.getFirstName() + c.getLastName());\n\n }\n\n Query q1 = em.createQuery(\"SELECT c FROM Customer c WHERE c.first_name like 'S%'\");\n\n List<Customer> listF2 = q1.getResultList();\n\n System.out.println(\"I Customer con nome che inizia per la lettera S sono:\");\n\n for (Customer c : listF2) {\n System.out.println(c.getCustomerId() + c.getFirstName() + c.getLastName());\n\n }\n\n em.getTransaction().commit();\n em.close();\n emf.close();\n }", "public Page<DTOPresupuesto> buscarPresupuestos(String filtro, Optional<Long> estado, Boolean modelo, Pageable pageable) {\n Page<Presupuesto> presupuestos = null;\n Empleado empleado = expertoUsuarios.getEmpleadoLogeado();\n\n if (estado.isPresent()){\n presupuestos = presupuestoRepository\n .findDistinctByEstadoPresupuestoIdAndClientePersonaNombreContainsAndSucursalIdAndModeloOrEstadoPresupuestoIdAndClientePersonaApellidoContainsAndSucursalIdAndModeloOrEstadoPresupuestoIdAndDetallePresupuestosMotorMarcaMotorContainsAndSucursalIdAndModeloOrEstadoPresupuestoIdAndDetallePresupuestosAplicacionNombreAplicacionContainsAndSucursalIdAndModeloOrderByIdDesc(\n estado.get(), filtro, empleado.getSucursal().getId(), modelo, estado.get(), filtro, empleado.getSucursal().getId(), modelo, estado.get(), filtro, empleado.getSucursal().getId(), modelo, estado.get(), filtro, empleado.getSucursal().getId(), modelo, pageable);\n\n } else {\n presupuestos = presupuestoRepository\n .findDistinctByClientePersonaNombreContainsAndSucursalIdAndModeloOrClientePersonaApellidoContainsAndSucursalIdAndModeloOrDetallePresupuestosMotorMarcaMotorContainsAndSucursalIdAndModeloOrDetallePresupuestosAplicacionNombreAplicacionContainsAndSucursalIdAndModeloOrderByIdDesc(\n filtro, empleado.getSucursal().getId(), modelo, filtro, empleado.getSucursal().getId(), modelo, filtro, empleado.getSucursal().getId(), modelo, filtro, empleado.getSucursal().getId(), modelo, pageable);\n }\n\n return presupuestoConverter.convertirEntidadesAModelos(presupuestos);\n }", "public void actualizarFiltrarEstadoRequisicion(Requisicion req) throws Exception{\n String carnet = req.getCarnetEmpleado();\n\n java.util.Date utilDate = req.getFechaNueva();\n java.sql.Date fechaConvertida = new java.sql.Date(utilDate.getTime()); \n\n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null; \n\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n \n //Verificar si existe empleado\n String sqlEmpleado = \"Select CARNETEMPLEADO FROM EMPLEADO WHERE CARNETEMPLEADO = '\"+carnet+\"'\";\n miStatement = miConexion.createStatement();\n miResultset = miStatement.executeQuery(sqlEmpleado);\n \n if(miResultset.next()){\n \n String empleado = carnet;\n \n \n String sqlDepto = \"select d.NOMBREDEPARTAMENTO from departamento d \" + \n \"inner join catalagopuesto c on d.codigodepartamento = c.codigodepartamento \" + \n \"inner join empleado e on c.codigopuesto = e.codigopuesto where e.carnetempleado ='\"+carnet+\"'\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(sqlDepto);\n //Crear sentencia SQL y Statement\n miResultset.next();\n String nomdepto = miResultset.getString(\"NOMBREDEPARTAMENTO\");\n \n String miSQl = \"select r.NUMREQ, r.FECPEDIDOREQ, r.FECENTREGAREQ, r.AUTORIZADO, e.CARNETEMPLEADO, e.NOMBREEMPLEADO, e.APELLIDOEMPLEADO, d.NOMBREDEPARTAMENTO \" + \n \"from requisicion r inner join empleado e on r.carnetempleado =e.carnetempleado \" + \n \"inner join catalagopuesto c on e.codigopuesto =c.codigopuesto \" + \n \"inner join departamento d on c.codigodepartamento = d.codigodepartamento \" + \n \"where r.AUTORIZADO = 1 and d.NOMBREDEPARTAMENTO='\"+nomdepto+\"' and r.FECPEDIDOREQ >=TO_DATE('\"+fechaConvertida+\"', 'YYYY/MM/DD HH:MI:SS') order by r.FECPEDIDOREQ\";\n \n miStatement = miConexion.createStatement();\n \n //Ejecutar SQL\n miResultset = miStatement.executeQuery(miSQl);\n \n while(miResultset.next()){\n int numReq = miResultset.getInt(\"NUMREQ\");\n Date fechaPedido = miResultset.getDate(\"FECPEDIDOREQ\");\n Date fechaEntrega = miResultset.getDate(\"FECENTREGAREQ\"); \n String carnetEmpleado = miResultset.getString(\"CARNETEMPLEADO\");\n String nombreEmpleado = miResultset.getString(\"NOMBREEMPLEADO\"); \n String apellidoEmpleado = miResultset.getString(\"APELLIDOEMPLEADO\");\n String nombreDepartamento = miResultset.getString(\"NOMBREDEPARTAMENTO\"); \n\n //*************************ACTUALIZAR**************************\n Connection miConexion1 = null;\n PreparedStatement miStatement1 = null;\n \n //Obtener la conexion\n \n miConexion1 = origenDatos.getConexion();\n \n //Crear sentencia sql que inserte la requisicion a la base\n String misql = \"UPDATE requisicion SET autorizado = ? WHERE numreq = ?\";\n \n miStatement1 = miConexion1.prepareStatement(misql);\n \n //Establecer los parametros para insertar la requisicion \n if(\"aceptado\".equals(req.getEstadoAut())) {\n miStatement1.setInt(1, 0);\n }else{\n miStatement1.setInt(1, 1);\n } \n\n miStatement1.setInt(2, numReq);//se obtendra dentro del while\n \n //Ejecutar la instruccion sql\n miStatement1.execute(); \n //Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n //requisicion.add(temporal);\n }\n \n }\n //return requisicion; \n }", "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 }", "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\r\n\tpublic List<ViewListeEleve> filter(HttpHeaders headers, List<Predicat> predicats, Map<String, OrderType> orders,\r\n\t\t\tSet<String> properties, Map<String, Object> hints, int firstResult, int maxResult) {\n \tList<ViewListeEleve> list = super.filter(headers, predicats, orders, properties, hints, firstResult, maxResult);\r\n \tSystem.out.println(\"ViewListeEleveRSImpl.filter() size is \"+list.size());\r\n\t\treturn list ;\r\n\t}", "@Override\n\tpublic void filterChange() {\n\t\t\n\t}", "@Override\n\tpublic List<flightmodel> getflights() {\n\t\t\n\t\tSystem.out.println(\"heloo\"+repo.findAll());\n\t\treturn repo.findAll();\n\t}", "public List<MascotaExtraviadaEntity> darProcesosExtraviadaConRazaIgualA(String raza){\n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n for( MascotaExtraviadaEntity p : procesos){\n if(p.getMascota().getRaza().equals(raza)){\n procesosFiltrados.add(p);\n }\n }\n return procesosFiltrados;\n }", "public List<MainItemOrdered> findAll();", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n\n FilterResults results=new FilterResults();\n\n if(constraint != null && constraint.length()>0)\n {\n //CONSTARINT TO UPPER\n constraint=constraint.toString().toUpperCase();\n\n ArrayList<Busqueda> filters=new ArrayList<Busqueda>();\n\n //get specific items\n for(int i=0;i<FilterDatos.size();i++)\n {\n if(FilterDatos.get(i).getTitulo().toUpperCase().contains(constraint))\n {\n Busqueda p=new Busqueda();\n p.setId(FilterDatos.get(i).getId());\n p.setTitulo(FilterDatos.get(i).getTitulo());\n p.setDescripcion(FilterDatos.get(i).getDescripcion());\n p.setContraseña(FilterDatos.get(i).getContraseña());\n p.setLongitud(FilterDatos.get(i).getLongitud());\n p.setTerminada(FilterDatos.get(i).getTerminada());\n p.setPuntos(FilterDatos.get(i).getPuntos());\n filters.add(p);\n }\n }\n\n results.count=filters.size();\n results.values=filters;\n\n }else\n {\n results.count=FilterDatos.size();\n results.values=FilterDatos;\n\n }\n\n return results;\n }", "@Override\r\n\tpublic Collection<? extends Partido> getEventos(Date fecha) {\n\t\treturn null;\r\n\t}", "ConsultaDto<ProdutorVO> obterByNomeApelido(String nomeApelido, Integer idInstituicao, int pagina, int tamanhoPagina, Boolean filtrarCategoriaAtiva) throws BancoobException;", "public List<Faturamento> gerarFaturamento(Banco banco,Date competenciaBase,\tint dataLimite, UsuarioInterface usuario, Date dataGeracaoPlanilha, Collection<TetoPrestadorFaturamento> tetos) throws Exception {\n\t\tSession session = HibernateUtil.currentSession();\n\t\tsession.setFlushMode(FlushMode.COMMIT);\n\t\tCriteria criteria = session.createCriteria(Prestador.class);\n\t\tList<Faturamento> faturamentos = new ArrayList<Faturamento>();\n\t\tList<AbstractFaturamento> todosFaturamentos = new ArrayList<AbstractFaturamento>();\n\t\tif (banco != null)\n\t\t\tcriteria.add(Expression.eq(\"informacaoFinanceira.banco\",banco));\n//\t\t\tcriteria.add(Expression.not(Expression.in(\"idPrestador\", AbstractFinanceiroService.getIdsPrestadoresNaoPagos())));\n\t\t\tcriteria.add(Expression.eq(\"idPrestador\",528079L));\n\t\t\t\n\t\tList<Prestador> prestadores = criteria.list();\n\n//\t\tsaveImpostos();\n\t\tint quantPrest = prestadores.size();\n\t\tint countPrest = 0;\n\t\tDate competenciaAjustada = ajustarCompetencia(competenciaBase);\n\t\t\n//\t\talimentaLista();\n\t\t\n\t\tfor (Prestador prestador : prestadores) {\n\t\t\tSystem.out.println(++countPrest + \"/\" + quantPrest + \" - Prestador: \" + prestador.getPessoaJuridica().getFantasia());\n\t\t\tif(!prestador.getTipoPrestador().equals(Prestador.TIPO_PRESTADOR_ANESTESISTA)){\n//\t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, prestador, usuario, dataGeracaoPlanilha, tetos);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Gerando os faturamentos dos procedimentos...\");\n \t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, (PrestadorAnestesista)prestador, usuario);\n\t\t\t\tSystem.out.println(\"Gerando os faturamentos das guias...\");\n//\t\t\t\tgerarFaturamento(competenciaBase, faturamentos, competenciaAjustada, prestador, usuario, dataGeracaoPlanilha, tetos);\n\t\t\t\tSystem.out.println(\"Concluído Coopanest!\");\n\t\t\t}\t\t\t\t\n\t\t}\n\t\t\n\t\treturn faturamentos;\n\t}", "public List<DetallesFacturaContratoVenta> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 32: */ {\r\n/* 33: 51 */ List<DetallesFacturaContratoVenta> listaDetallesFacturaContratoVenta = new ArrayList();\r\n/* 34: */ \r\n/* 35: 53 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 36: 54 */ CriteriaQuery<DetallesFacturaContratoVenta> criteriaQuery = criteriaBuilder.createQuery(DetallesFacturaContratoVenta.class);\r\n/* 37: 55 */ Root<DetallesFacturaContratoVenta> from = criteriaQuery.from(DetallesFacturaContratoVenta.class);\r\n/* 38: */ \r\n/* 39: 57 */ Fetch<Object, Object> contratoVenta = from.fetch(\"contratoVenta\", JoinType.LEFT);\r\n/* 40: 58 */ Fetch<Object, Object> empresa = contratoVenta.fetch(\"empresa\", JoinType.LEFT);\r\n/* 41: 59 */ Fetch<Object, Object> cliente = empresa.fetch(\"cliente\", JoinType.LEFT);\r\n/* 42: 60 */ contratoVenta.fetch(\"agenteComercial\", JoinType.LEFT);\r\n/* 43: 61 */ contratoVenta.fetch(\"subempresa\", JoinType.LEFT);\r\n/* 44: 62 */ Fetch<Object, Object> direccionEmpresa = contratoVenta.fetch(\"direccionEmpresa\", JoinType.LEFT);\r\n/* 45: 63 */ direccionEmpresa.fetch(\"ubicacion\", JoinType.LEFT);\r\n/* 46: 64 */ contratoVenta.fetch(\"canal\", JoinType.LEFT);\r\n/* 47: 65 */ contratoVenta.fetch(\"zona\", JoinType.LEFT);\r\n/* 48: 66 */ contratoVenta.fetch(\"condicionPago\", JoinType.LEFT);\r\n/* 49: */ \r\n/* 50: 68 */ List<Expression<?>> empresiones = obtenerExpresiones(filters, criteriaBuilder, from);\r\n/* 51: 69 */ criteriaQuery.where((Predicate[])empresiones.toArray(new Predicate[empresiones.size()]));\r\n/* 52: */ \r\n/* 53: 71 */ agregarOrdenamiento(sortField, sortOrder, criteriaBuilder, criteriaQuery, from);\r\n/* 54: */ \r\n/* 55: 73 */ CriteriaQuery<DetallesFacturaContratoVenta> select = criteriaQuery.select(from);\r\n/* 56: */ \r\n/* 57: 75 */ TypedQuery<DetallesFacturaContratoVenta> typedQuery = this.em.createQuery(select);\r\n/* 58: 76 */ agregarPaginacion(startIndex, pageSize, typedQuery);\r\n/* 59: */ \r\n/* 60: 78 */ listaDetallesFacturaContratoVenta = typedQuery.getResultList();\r\n/* 61: 81 */ for (DetallesFacturaContratoVenta dfcv : listaDetallesFacturaContratoVenta)\r\n/* 62: */ {\r\n/* 63: 83 */ CriteriaQuery<DetalleContratoVenta> cqDetalle = criteriaBuilder.createQuery(DetalleContratoVenta.class);\r\n/* 64: 84 */ Root<DetalleContratoVenta> fromDetalle = cqDetalle.from(DetalleContratoVenta.class);\r\n/* 65: 85 */ fromDetalle.fetch(\"producto\", JoinType.LEFT);\r\n/* 66: */ \r\n/* 67: 87 */ cqDetalle.where(criteriaBuilder.equal(fromDetalle.join(\"contratoVenta\"), dfcv.getContratoVenta()));\r\n/* 68: 88 */ CriteriaQuery<DetalleContratoVenta> selectContratoVenta = cqDetalle.select(fromDetalle);\r\n/* 69: */ \r\n/* 70: 90 */ List<DetalleContratoVenta> listaDetalleContratoVenta = this.em.createQuery(selectContratoVenta).getResultList();\r\n/* 71: 91 */ dfcv.getContratoVenta().setListaDetalleContratoVenta(listaDetalleContratoVenta);\r\n/* 72: */ }\r\n/* 73: 94 */ return listaDetallesFacturaContratoVenta;\r\n/* 74: */ }", "public interface Filtrado extends ItemFiltro {\n\t/**\n\t * A exemplo da interface Serializable, mas nao necessariamente pelo menos\n\t * motivo, esta interface nao define nenhum metodo.\n\t */\n\t\n\t/**\n\t* Deseja-se ter um elo entre Filtrado e registro,\n\t* visto que o que se deseja eh armazenadar os\n\t* filtrados no output.txt para uso posterior.\n\t* @return Registro Registro \n\t* */\n\tpublic Registro getRegistro();\n\n}", "public List<MascotaEntity> darMascotasPorEstado (String estado) throws Exception{\n if(!estado.equals(MascotaEntity.Estados_mascota.ADOPTADO.name()) \n && !estado.equals(MascotaEntity.Estados_mascota.EXTRAVIADO.name())\n && !estado.equals(MascotaEntity.Estados_mascota.ENCONTRADO.name()) \n && !estado.equals(MascotaEntity.Estados_mascota.EN_ADOPCION.name()))\n {\n throw new BusinessLogicException(\"El estado de la mascota no es correcto\");\n }\n \n List<MascotaEntity> mascotas = mascotaPersistence.findAll();\n List<MascotaEntity> mascotasFiltrados = new LinkedList<>();\n \n for(MascotaEntity m : mascotas){\n if(m.getEstado().name().equals(estado)){\n mascotasFiltrados.add(m);\n }\n }\n return mascotasFiltrados;\n }", "@Transactional\r\n\t@Override\r\n\tpublic List<FactureFiche> rechercheFactureFicheActive() {\n\t\treturn daofacturefiche.listActive();\r\n\t}", "public List<DvdCd> buscaPorFiltro(TipoFiltro tipoFiltro, String filtro){\n\t\tif(tipoFiltro.equals(TipoFiltro.TITULO)) {\n\t\t\tlogger.info(\"Buscando por filtro de titulo :\"+filtro);\n\t\t\treturn itemRepository.filtraPorTitulo(UserServiceImpl.authenticated().getId(), filtro);\n\t\t}\n\t\t\n\t\telse if (tipoFiltro.equals(TipoFiltro.MARCA)) {\n\t\t\tlogger.info(\"Buscando por filtro de marca: \"+filtro);\n\t\t\treturn itemRepository.filtraPorMarca(UserServiceImpl.authenticated().getId(), filtro);\n\t\t}\n\t\t\n\t\treturn itemRepository.findAll(UserServiceImpl.authenticated().getId());\n\t}", "@FXML\n public void filtraCidade(){\n \tString filtro = txtFiltroCidade.getText();\n \t\n \tif(filtro.equals(\"\"))\n \t\tfiltro=null;\n \t\n \tcidades = Cidade.listarTodas(conn, filtro);\n\t\ttblCidade.setItems(FXCollections.observableArrayList(cidades));\t\n\t}", "@Override\n\tpublic List<EntidadeDominio> VisualizarInativos(EntidadeDominio entidade) {\n\t\tPreparedStatement pst = null;\n\t\tStringBuilder sql = new StringBuilder();\n\t\tsql.append(\"SELECT * FROM livros WHERE Status=?\");\n\t\ttry {\n\t\t\topenConnection();\t\n\t\n\t\tpst = connection.prepareStatement(sql.toString());\n\t\tpst.setString(1, \"INATIVADO\");\n\t\tResultSet rs = pst.executeQuery();\n\t\tList<EntidadeDominio> livros = new ArrayList<EntidadeDominio>();\n\t\t//SEGUNDA PARTE PUXAR CATEGORIAS\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tStringBuilder sql2 = new StringBuilder();\n\t\t\t\t\t sql2.append(\"SELECT * FROM livCat JOIN Categoria ON livCat.id_categoria = Categoria.id_categoria WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql2.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs2 = pst.executeQuery();\n\t\t\t\t\tList<Categoria> cat = new ArrayList<Categoria>();\n\t\t\t\t\tCategoria c = new Categoria();\n\t\t\t\t\twhile(rs2.next()) {\n\t\t\t\t\t\tc.setNome(rs2.getString(\"CategoriaNome\"));\n\t\t\t\t\t\tc.setId(rs2.getInt(\"idCategoria\"));\n\t\t\t\t\t\tcat.add(c);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t//TERCEIRA PARTE PUXAR AUTOR\n\t\t\t\t\tStringBuilder sql3 = new StringBuilder();\n\t\t\t\t\t sql3.append(\"SELECT * FROM livro JOIN Autor ON livro.IdAutor = Autor.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql3.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\tResultSet rs3 = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t//QUARTA PARTE PUXANDO A EDITORA\n\t\t\t\t\tStringBuilder sql4 = new StringBuilder();\n\t\t\t\t\t sql4.append(\"SELECT * FROM livro JOIN Editora ON livro.IdEditora = Editora.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql4.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs4 = pst.executeQuery();\n\t\t\t\t//QUINTA PARTE PUXANDO A PRECIFICACAO\n\t\t\t\t\t StringBuilder sql5 = new StringBuilder();\n\t\t\t\t\t sql5.append(\"SELECT * FROM livro JOIN Precificacao ON livro.IdPrecificacao = Precificacao.Id WHERE Idlivro=?\");\n\t\t\t\t\t pst = null;\n\t\t\t\t\t pst = connection.prepareStatement(sql5.toString());\n\t\t\t\t\t pst.setInt(1, rs.getInt(\"id_livro\"));\n\t\t\t\t\t ResultSet rs5 = pst.executeQuery();\t\n\t\t\t\t//SEXTA PARTE MONTANDO O RETORNO\n\t\t\t\t\t\tLivro liv = new Livro();\n\t\t\t\t\t\tEditora edit = new Editora();\n\t\t\t\t\t\tAutor autor = new Autor();\n\t\t\t\t\t\tPrecificacao preci = new Precificacao();\n\t\t\t\t\t\tedit.setId(rs4.getInt(\"IdEditora\"));\n\t\t\t\t\t\tedit.setNome(rs3.getString(\"AutorNome\"));\n\t\t\t\t\t\tliv.setId(rs3.getInt(\"IdAutor\"));\n\t\t\t\t\t\tliv.setEditora(edit);\n\t\t\t\t\t\tliv.setAutor(autor);\n\t\t\t\t\t\tliv.setTitulo(rs.getString(\"Titulo\"));\n\t\t\t\t\t\tliv.setSinopse(rs.getString(\"Sinopse\"));\n\t\t\t\t\t\tliv.dimensoes.setAltura(rs.getDouble(\"Altura\"));\n\t\t\t\t\t\tliv.dimensoes.setLargura(rs.getDouble(\"Largura\"));\n\t\t\t\t\t\tliv.dimensoes.setPeso(rs.getDouble(\"Peso\"));\n\t\t\t\t\t\tliv.dimensoes.setProfundidade(rs.getDouble(\"Profundidade\"));\n\t\t\t\t\t\tliv.setISBN(rs.getString(\"ISBN\"));\n\t\t\t\t\t\tliv.setIdcategoria(cat);\n\t\t\t\t\t\tliv.setNumeroPaginas(rs.getInt(\"NumeroDePaginas\"));\n\t\t\t\t\t\tpreci.setClassificacao(rs5.getString(\"PrecificacaoNome\"));\n\t\t\t\t\t\tpreci.setTipo(rs5.getInt(\"IdPrecificacao\"));\n\t\t\t\t\t\tliv.setPrecificacao(preci);\n\t\t\t\t\t\tliv.setEdicao(rs.getInt(\"Edicao\"));\n\t\t\t\t\t\tliv.setStatus(rs.getString(\"Status\"));\n\t\t\t\t\t\tint VerificarDuplicatas = 0;\n\t\t\t\t\t\tfor(EntidadeDominio teste : livros) // Verificar se o livro que será armazenado no resultado ja está na array\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(teste.getId() == liv.getId())\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tVerificarDuplicatas = 1;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(VerificarDuplicatas == 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tlivros.add(liv);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t//java.sql.Date dtCadastroEmLong = rs.getDate(\"dt_cadastro\");\n\t\t\t//Date dtCadastro = new Date(dtCadastroEmLong.getTime());\t\t\t\t\n\t\t\t//p.setDtCadastro(dtCadastro);\n\t\t\t//produtos.add(p);\n\t\t}\n\t\treturn livros;\n\t} catch (SQLException e) {\n\t\te.printStackTrace();\n\t}\n\treturn null;\n\t}", "@Override\n public ArrayList<Propiedad> getPropiedadesFiltroAgente(String pCriterio, String pDato, String pId)\n throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ID_AGENTE \"\n + \"= '\" + pId + \"' AND \" + pCriterio + \" = '\" + pDato + \"'\");\n return resultado;\n }", "public void buscarComprobantesEntreFechas(){\n listaComprobantes = this.getEjbFacadeComprobantes().buscarEntreFechasConEstadoSinRendicionExterna(desde,hasta);\n \n System.out.println(\"listaComprobantes cantidad >> \" + listaComprobantes.size());\n }", "@Repository\r\npublic interface HaltestellenzuordnungRepository extends CrudRepository<Haltestellenzuordnung, Long> {\r\n\r\n /**\r\n * Gibt die Haltestellenzuordnungen zurück mit der übergebenen Fahrtstrecke\r\n * \r\n * @param fahrtstrecke\r\n * @return Iterable von Haltestellenzuordnungen\r\n */\r\n Iterable<Haltestellenzuordnung> findAllByFahrtstrecke(Fahrtstrecke fahrtstrecke);\r\n}", "@Override\n public ArrayList<Propiedad> getPropiedadesFiltroCliente(String pCriterio, String pDato) throws\n SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO \"\n + \"= 'ACTIVO' AND \" + pCriterio + \" = '\" + pDato + \"'\");\n return resultado;\n }", "private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }", "@Override\n\tpublic String find(Set<String> filterField) {\n\t\treturn null;\n\t}", "public List<Cuenta> buscarCuentasList(Map filtro);", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n List<EnquiryModel> filteredList = new ArrayList<>();\n\n if(constraint == null || constraint.length() == 0){\n //show all data\n filteredList.addAll(enquiryAll);\n }else {\n //filter using keys\n String filterPattern = constraint.toString().toLowerCase().trim();\n for(EnquiryModel enquiryModel : enquiryAll){\n if(enquiryModel.getUser_name().toLowerCase().contains(filterPattern) || enquiryModel.getUser_email().toLowerCase().contains(filterPattern)|| enquiryModel.getHostel_name().contains(filterPattern)|| enquiryModel.getEnquiry_status().contains(filterPattern)){\n filteredList.add(enquiryModel); //store those enquiry whose hostel name contains list as asked.\n }\n }\n }\n\n FilterResults filterResults = new FilterResults();\n filterResults.values = filteredList;\n\n return filterResults;\n }", "public static void main(String[] args) {\n System.out.println(\"hola la concha de tu madre\");\n Persona persona1 = new Persona(\"allan\",28,19040012);\n Persona persona2 = new Persona(\"federico\", 14,40794525);\n Persona persona3 = new Persona(\"pablito\", 66,56654456);\n\n List<Persona> personas= new ArrayList<Persona>();\n personas.add(persona1);\n personas.add(persona2);\n personas.add(persona3);\n\n System.out.println(\"--------Para imprimir la list completa--------\");\n System.out.println(String.format(\"Personas: %s\",personas));\n\n System.out.println(\"----------MAYORES A 21-------------\");\n // mayores a 21\n System.out.println(String.format(\"Mayores a 21: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21)\n .collect(Collectors.toList())));\n\n System.out.println(\"-----------MENORES A 18-------------------\");\n // menores 18\n System.out.println(String.format(\"menores 18: %s\",personas.stream()\n .filter(persona->persona.getEdad() < 18)\n .collect(Collectors.toList())));\n\n System.out.println(\"---------MAYORES A 21 + DNI >20000000 -------------------\");\n System.out.println(String.format(\"MAYORES A 21 + DNI >20000000: %s\",personas.stream()\n .filter(persona->persona.getEdad() > 21 && persona.getDni()>20000000)\n //.filter( persona->persona.getDni() >20000000) // tambien funciona con este\n .collect(Collectors.toList())));\n\n }", "List<Videogioco> retriveByNome(String nome);", "private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }", "public void filterTable(String filter) {\n\t\tif (fullBackup.isEmpty() || fullBackup == null) {\n\t\t\tfullBackup.addAll(list);\n\t\t}\n\n\t\t// always clear selected items\n\t\tselectionModel.clear();\n\t\tlist.clear();\n\n\t\tif (filter.equalsIgnoreCase(\"\")) {\n\t\t\tlist.addAll(fullBackup);\n\t\t} else {\n\t\t\tfor (Attribute attr : fullBackup){\n\t\t\t\t// store facility by filter\n\t\t\t\tif (attr.getFriendlyName().toLowerCase().startsWith(filter.toLowerCase())) {\n\t\t\t\t\tlist.add(attr);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tdataProvider.flush();\n\t\tdataProvider.refresh();\n\t\tloaderImage.loadingFinished();\n\n\t}", "@Override\n protected FilterResults performFiltering(CharSequence constraint) {\n FilterResults results = new FilterResults();\n if (constraint != null && constraint.length() > 0) {\n //CONSTARINT TO UPPER\n constraint = constraint.toString().toUpperCase();\n List<Product> filters = new ArrayList<Product>();\n //get specific items\n for (int i = 0; i < filterList.size(); i++) {\n if (filterList.get(i).getAdi().toUpperCase().contains(constraint)) {\n Product p = new Product(filterList.get(i).getIncKey(),filterList.get(i).getCicekPasta(),filterList.get(i).getUrunKodu(),\n filterList.get(i).getSatisFiyat(),filterList.get(i).getKdv(),filterList.get(i).getResimKucuk(),\n filterList.get(i).getSiparisSayi(),filterList.get(i).getDefaultKategori(),filterList.get(i).getCicekFiloFiyat(),\n filterList.get(i).getAdi(), filterList.get(i).getResimBuyuk(), filterList.get(i).getIcerik());\n filters.add(p);\n }\n }\n results.count = filters.size();\n results.values = filters;\n if(filters.size()==0){ // if not found result\n TextView tv= (TextView) mainActivity.findViewById(R.id.sonucyok);\n tv.setText(\"Üzgünüz, aradığınız sonucu bulamadık..\");\n Log.e(\"bbı\",\"oıfnot\");\n }\n else\n mainActivity.findViewById(R.id.sonucyok).setVisibility(View.INVISIBLE);\n\n } else {\n results.count = filterList.size();\n results.values = filterList;\n }\n return results;\n }", "@Override\n public List<Dependente> todosOsDepentendes() {\n return dBC.todosOsDepentendes();\n\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<Cidadao> filtrados(FiltroServidor filtro) \n\t{\n\t\tCriteria criteria = criarCriteriaParaFiltro(filtro);\n\t\t\n\t\tcriteria.setFirstResult(filtro.getPrimeiroRegistro());\n\t\tcriteria.setMaxResults(filtro.getQuantidadeRegistros());\n\t\t\n\t\tif (filtro.isAscendente() && filtro.getPropriedadeOrdenacao() != null) \n\t\t{\n\t\t\tcriteria.addOrder(Order.asc(filtro.getPropriedadeOrdenacao()));\n\t\t} \n\t\telse if (filtro.getPropriedadeOrdenacao() != null) \n\t\t{\n\t\t\tcriteria.addOrder(Order.desc(filtro.getPropriedadeOrdenacao()));\n\t\t}\n\t\t\n\t\treturn criteria.list();\n\t}", "public List<MascotaExtraviadaEntity> darProcesosExtraviadaConTipoIgualA(String tipo)throws Exception{\n \n if(!tipo.equals(MascotaEntity.PERRO) && !tipo.equals(MascotaEntity.GATO)){\n throw new BusinessLogicException(\"Las mascotas solo son de tipo gato o perro\");\n }\n \n List<MascotaExtraviadaEntity> procesos = mascotaExtraviadaPersistence.findAll();\n List<MascotaExtraviadaEntity> procesosFiltrados = new LinkedList<>();\n \n for( MascotaExtraviadaEntity p : procesos){\n if(p.getMascota().getTipo().equals(tipo)){\n procesosFiltrados.add(p);\n }\n }\n \n return procesosFiltrados;\n }", "public abstract void filter();", "@Override\n\tpublic synchronized List<Plantilla> findAll(String filtro){\n\t\tList<Plantilla> lista = new ArrayList<>();\n\t\tfor(Plantilla p:listaPlantillas()){\n\t\t\ttry{\n\t\t\t\tboolean pasoFiltro = (filtro==null||filtro.isEmpty())\n\t\t\t\t\t\t||p.getNombrePlantilla().toLowerCase().contains(filtro.toLowerCase());\n\t\t\t\tif(pasoFiltro){\n\t\t\t\t\tlista.add(p.clone());\n\t\t\t\t}\n\t\t\t}catch(CloneNotSupportedException ex) {\n\t\t\t\tLogger.getLogger(ServicioPlantillaImpl.class.getName()).log(null, ex);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(lista, new Comparator<Plantilla>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Plantilla o1, Plantilla o2) {\n\t\t\t\treturn (int) (o2.getId() - o1.getId());\n\t\t\t}});\n\t\t\n\t\treturn lista;\n\t}", "@Test\n public void filterDishes2() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Garlic Paradise Salad\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Garlic Paradise Salad\");\n }", "public interface ArmorFilter {\n List<Equipment> filter(List<Equipment> equipmentList);\n}", "public List<HQ> buscaPorFiltro(TipoFiltro tipoFiltro, String filtro){\n\t\tif(tipoFiltro.equals(TipoFiltro.TITULO)) {\n\t\t\tlogger.info(\"Buscando por filtro de titulo :\"+filtro);\n\t\t\treturn itemRepository.filtraPorTitulo(UserServiceImpl.authenticated().getId(), filtro);\n\t\t}\n\t\t\n\t\telse if (tipoFiltro.equals(TipoFiltro.UNIVERSO)) {\n\t\t\tlogger.info(\"Buscando por filtro de universo: \"+filtro);\n\t\t\treturn itemRepository.filtraPorUniverso(UserServiceImpl.authenticated().getId(), filtro);\n\t\t}\n\t\t\n\t\telse if (tipoFiltro.equals(TipoFiltro.EDITORA)) {\n\t\t\tlogger.info(\"Buscando por filtro de editora: \"+filtro);\n\t\t\treturn itemRepository.filtraPorEditora(UserServiceImpl.authenticated().getId(), filtro);\n\t\t}\n\t\t\n\t\treturn itemRepository.findAll(UserServiceImpl.authenticated().getId());\n\t}", "@Test\n public void filterDishes4() {\n\n DishSearchCriteriaTo criteria = new DishSearchCriteriaTo();\n List<CategoryEto> categories = new ArrayList<>();\n criteria.setCategories(categories);\n criteria.setSearchBy(\"Thai Peanut Beef\");\n PageRequest pageable = PageRequest.of(0, 100, Sort.by(Direction.DESC, \"id\"));\n criteria.setPageable(pageable);\n Page<DishCto> result = this.dishmanagement.findDishCtos(criteria);\n\n assertThat(result).isNotNull();\n assertThat(result.getContent().size()).isGreaterThan(0);\n assertThat(result.getContent().get(0).getDish().getName()).isEqualTo(\"Thai Peanut Beef\");\n }", "@Override\n public void filter(String type) {\n\n List<Doctor> newDocs = new ArrayList<>();\n \n for (Doctor doctor : doctors) {\n //If doctor's specialization matches user searched specialization add to new doctor list\n if (doctor.getSpecialization()!=null && doctor.getSpecialization().equals(type)) {\n newDocs.add(doctor);\n }\n }\n \n //Set new doctor list as the doctor list\n doctors = newDocs;\n }", "public void buscar() {\r\n sessionProyecto.getProyectos().clear();\r\n sessionProyecto.getFilterProyectos().clear();\r\n try {\r\n List<ProyectoCarreraOferta> proyectoCarreraOfertas = proyectoCarreraOfertaService.buscar(\r\n new ProyectoCarreraOferta(null, sessionProyecto.getCarreraSeleccionada().getId() != null\r\n ? sessionProyecto.getCarreraSeleccionada().getId() : null, null, Boolean.TRUE));\r\n \r\n if (proyectoCarreraOfertas == null) {\r\n return;\r\n }\r\n for (ProyectoCarreraOferta proyectoCarreraOferta : proyectoCarreraOfertas) {\r\n proyectoCarreraOferta.getProyectoId().setEstado(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getEstadoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setCatalogo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getCatalogoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setTipo(itemService.buscarPorId(proyectoCarreraOferta.getProyectoId().\r\n getTipoProyectoId()).getNombre());\r\n proyectoCarreraOferta.getProyectoId().setAutores(autores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setDirectores(directores(proyectoCarreraOferta.getProyectoId()));\r\n proyectoCarreraOferta.getProyectoId().setNombreOferta(ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId()).getNombre());\r\n if (!this.sessionProyecto.getProyectos().contains(proyectoCarreraOferta.getProyectoId())) {\r\n proyectoCarreraOferta.getProyectoId().setCarrera(carreraService.find(proyectoCarreraOferta.getCarreraId()).getNombre());\r\n this.sessionProyecto.getProyectos().add(proyectoCarreraOferta.getProyectoId());\r\n }\r\n }\r\n sessionProyecto.setFilterProyectos(sessionProyecto.getProyectos());\r\n } catch (Exception e) {\r\n LOG.info(e.getMessage());\r\n }\r\n }", "public static void main(String[] args) {\n\t\tList<Employee> emplist = EmployeeRepository.list;\r\n\t\t\r\n\t\t\r\n\t\tList<Employee> elist = emplist.stream().filter(emp -> emp.getDepartment()!=null).collect(Collectors.toList());\r\n\t\t\r\n\t}", "@Override\n\tpublic List<Receta> filtrarRecetas(Usuario unUser, List<Receta> recetasAFiltrar) {\n\t\tif(!(recetasAFiltrar.isEmpty())){\n\t\t\tList<Receta> copiaDeRecetasAFiltrar = new ArrayList<Receta>();\n\t\t\tfor(Receta unaReceta : recetasAFiltrar){\n\t\t\t\tif(!(unaReceta.ingredientes.stream().anyMatch(ingrediente -> this.getIngredientesCaros().contains(ingrediente.nombre)))){\n\t\t\t\t\tcopiaDeRecetasAFiltrar.add(unaReceta);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\treturn copiaDeRecetasAFiltrar;\n\t\t}else{\n\t\t\treturn recetasAFiltrar;\n\t\t}\n\t\t\n\t\t\n\t}", "public void filterByFoDisplayAll(){\n // add them into the new list\n for (int i = 0; i < moodListBeforeFilterFo.getCount(); i++ ){\n moodListAfterFilter.add(moodListBeforeFilterFo.getMoodEvent(i));\n }\n }", "private void cargarProductos() {\r\n\t\tproductos = productoEJB.listarInventariosProductos();\r\n\r\n\t\tif (productos.size() == 0) {\r\n\r\n\t\t\tList<Producto> listaProductos = productoEJB.listarProductos();\r\n\r\n\t\t\tif (listaProductos.size() > 0) {\r\n\r\n\t\t\t\tMessages.addFlashGlobalWarn(\"Para realizar una venta debe agregar los productos a un inventario\");\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}" ]
[ "0.6551343", "0.6295074", "0.6220416", "0.6020513", "0.5948642", "0.59188443", "0.5880084", "0.5865196", "0.5818973", "0.5806275", "0.57920426", "0.57207155", "0.57158095", "0.56948346", "0.566332", "0.5646434", "0.5633895", "0.56139123", "0.5612946", "0.5601631", "0.55713147", "0.55539536", "0.554353", "0.5539078", "0.55380994", "0.55362487", "0.55112284", "0.55016613", "0.5491212", "0.5465806", "0.544963", "0.5448154", "0.54274726", "0.5417675", "0.5410661", "0.53996223", "0.5388706", "0.5386115", "0.5381861", "0.5376044", "0.53724706", "0.5355106", "0.535389", "0.5353016", "0.5341606", "0.5328845", "0.53286415", "0.5328586", "0.53276235", "0.53260595", "0.5320308", "0.5319461", "0.53190774", "0.53171283", "0.53130203", "0.53122956", "0.53122765", "0.5310451", "0.5300429", "0.5299171", "0.52946126", "0.5291416", "0.5290044", "0.52895707", "0.5287798", "0.5286165", "0.52792424", "0.5278627", "0.52784914", "0.5276393", "0.5276284", "0.527171", "0.5270006", "0.52645195", "0.52607995", "0.5259586", "0.5252034", "0.5248861", "0.5248395", "0.5241839", "0.5237707", "0.5232687", "0.5231966", "0.52307546", "0.52302754", "0.5228397", "0.522693", "0.52184284", "0.5211273", "0.5210768", "0.5204557", "0.52038753", "0.52014965", "0.51997745", "0.5199678", "0.5187798", "0.51860833", "0.518498", "0.51834846", "0.5180354", "0.5180335" ]
0.0
-1
is it a point click?
private void showPopupMenu(MouseEvent event) { boolean isPointClick = drawnX1.equals(drawnX2) && drawnY1.equals(drawnY2); miEditStaircaseGroup.setEnabled(false); if (isPointClick) { miAddRoom.setEnabled(false); miAddLink.setEnabled(false); miAddStaircase.setEnabled(false); if (current.selected() != null && !current.selected().isEmpty()) { miRemoveSelection.setEnabled(true); miRenameArea.setEnabled(true); } if (current.selected().size() > 1) { miRenameArea.setEnabled(false); } if (current.isGroupCreatePossible()) { miCreateGroup.setEnabled(true); } else { miCreateGroup.setEnabled(false); } if (current.isGroupRemovePossible()) { miRemoveGroup.setEnabled(true); } else { miRemoveGroup.setEnabled(false); } if (this.hoveringOverStaircaseId != null) miEditStaircaseGroup.setEnabled(true); } else { miAddRoom.setEnabled(true); miAddLink.setEnabled(true); miAddStaircase.setEnabled(true); miRemoveSelection.setEnabled(false); miRenameArea.setEnabled(false); miCreateGroup.setEnabled(false); miRemoveGroup.setEnabled(false); } //update the floors mSwitchToFloor.removeAll(); floorItems = null; ButtonGroup group = new ButtonGroup(); if (Database.getInstance().getNumberOfFloors() > 0) { floorItems = new HashSet<JRadioButtonMenuItem>(); for (int i = 0; i < current.numberOfFloors(); ++i) { JRadioButtonMenuItem item = new JRadioButtonMenuItem("Floor #" + i); item.addActionListener(this); mSwitchToFloor.add(item); floorItems.add(item); group.add(item); } mSwitchToFloor.setEnabled(true); } else { mSwitchToFloor.setEnabled(false); } popupMenu.show(event.getComponent(), drawnX2, drawnY2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Point userClickPoint();", "public boolean mouseClicked(MouseEvent e)\r\n {\r\n double x = e.getX();\r\n double y = e.getY();\r\n \r\n //find if coordinates are in a \"button\"\r\n for (int i = 0; i < towerButtons.length; i++)\r\n {\r\n if (towerButtons[i].contains(x,y))\r\n {\r\n display.setUnit(dummyList.get(i));\r\n selectedIndex = i;\r\n }\r\n }\r\n \r\n //within bounds\r\n if ((new Rectangle2D.Double(initX, 0, width, height)).contains(x,y))\r\n return true;\r\n return false;\r\n }", "boolean hasClickView();", "public boolean isClicked(int x, int y) {\n boolean in_flag = false ;\n int i ;\n int j=0 ;\n for (i=1; i<4; i++) {\n j=i-1 ;\n if ((((ypoints[i] <= y) && (y < ypoints[j])) || ((ypoints[j] <= y) && (y < ypoints[i]))) \n && (x < (xpoints[j] - xpoints[i]) * (y - ypoints[i]) / (ypoints[j] - ypoints[i]) + xpoints[i])) {\n in_flag = !in_flag ;\n }\n } // end for\n return in_flag ;\n //System.out.println(\"IN_FLAG=\"+in_flag+VIDStr(100)) ;\n /*\n int dx = x - pos.x ;\n int dy = y - pos.y ;\n double dist = Math.sqrt(dx*dx+dy*dy) ;\n if (dist<=length) {\n return true ;\n } else {\n return false ; \n }\n */\n }", "public boolean isMouseClicked() {\n\t\treturn input.isMouseClicked();\n\t}", "public boolean isClicked() {\n\t\tif(GameMouse.getInstance().getX() < x || GameMouse.getInstance().getX() > x + width) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\tif(GameMouse.getInstance().getY() < y || GameMouse.getInstance().getY() > y + height) {\n\t\t\treturn false; //X is outside our button\n\t\t}\n\t\treturn GameMouse.getInstance().isClicked(GameMouse.LEFT_BUTTON);\n\t}", "public boolean isMouseClicked(){\n\t\treturn mouseClick;\n\t}", "boolean wasHit();", "public boolean zoneClicked(int x1, int x2, int y1, int y2, Point pt){\r\n\t\tint xPrime = (int) pt.getX();\r\n\t\tint yPrime = (int) pt.getY();\r\n\t\tboolean horiz = false, vert = false;\r\n\t\tif (x1 < xPrime && x2 > xPrime){\r\n\t\t\thoriz = true;\r\n\t\t}\r\n\t\tif (y1 < yPrime && y2 > yPrime){\r\n\t\t\tvert = true;\r\n\t\t}\r\n\t\tif (horiz && vert){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean wasClicked(int mouseX, int mouseY) {\n\t\t// If this is the blank piece, we leave immediately\n\t\t// because it can't be swapped\n\t\tif(num == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// Checks to see if the user's click location is within the \n\t\t// square location of this Piece\n\t\tif(mouseX > x && mouseX < (x + size) && mouseY > y && mouseY < (y + size)) {\n\t\t\treturn true;\n\t\t} \n\t\t\n\t\treturn false;\n\t}", "public Point getclickedPoint() {\r\n return clickedPoint;\r\n }", "public boolean isClicked() { return clicked; }", "private boolean isPointOnLine(Location loc, Line line) {\n\n\n //System.out.println(\"SX: \"+line.getStart().getxCoord()+\" SY: \"+line.getStart().getyCoord()+\" EX: \"+line.getEnd().getxCoord()+\" EY: \"+line.getEnd().getyCoord());\n //System.out.println(\"Weight: \" + line.getWeight());\n if (isInBounds(loc, line)) {\n Vector edge = new Vector(line.getStart(), line.getEnd());\n Vector click = new Vector(line.getStart(), loc);\n\n double weight = line.getWeight();\n if (weight <= 5) {\n weight = 12;\n }\n\n double scalarProj = click.scalarProjection(edge); // scalar project of click onto edge\n double yCompClick = Math.sqrt(Math.pow(click.magntiude(), 2) - Math.pow(scalarProj, 2)); // get y component of clicked location\n //System.out.println(\"Click Magnitude: \" + click.magntiude() + \" Scalar Projection: \" + scalarProj + \" yComponent of Click: \" + yCompClick);\n\n return (yCompClick <= weight / 2);\n }\n return false;\n\n\n\n }", "public abstract void mousePressed(Point p);", "public boolean isClicked(int mouseX, int mouseY) {\t\t\t\t\n\t\t\n\t\tif(mouseX >= x && mouseX < (x + 64)) {\n\t\t\tif(mouseY >= y && mouseY < (y + 64)) {\n\t\t\t\tSystem.out.println(\"Clicked tile at \" + x + \", \" + y);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tPoint point = new Point();\r\n\t\tpoint.x = e.getX();\r\n\t\tpoint.y = e.getY();\r\n\r\n\t switch (shape) {\r\n\t \r\n\t case LINE :\r\n\r\n\t \tthis.clicksforLine.add(point);\r\n\t \tbreak;\r\n\t case CIRCLE:\r\n\r\n\t \tthis.clicksforCircle.add(point);\r\n\t \tbreak;\r\n\t case POLYGON:\r\n\r\n\t \tthis.clicksforPoly.add(point);\r\n\t \tbreak;\r\n\t case CURVE:\r\n\r\n\t \tthis.clicksforCurve.add(point);\r\n\t \tbreak;\r\n\t case CLEAR:\r\n\t {\r\n\t }\r\n\t \tbreak;\r\n\t default:\r\n\t \tbreak;\r\n\t }\r\n \r\n\t\tSystem.out.println(point.x+ \",\"+point.y);\r\n repaint();\r\n\t\t\r\n\t}", "public boolean onTap(PointF pointF) {\n long execute = new MarkerHitResolver(this.mapboxMap).execute(getMarkerHitFromTouchArea(pointF));\n if (execute != -1 && isClickHandledForMarker(execute)) {\n return true;\n }\n Annotation execute2 = new ShapeAnnotationHitResolver(this.shapeAnnotations).execute(getShapeAnnotationHitFromTap(pointF));\n if (execute2 == null || !handleClickForShapeAnnotation(execute2)) {\n return false;\n }\n return true;\n }", "void mouseClicked(double x, double y, MouseEvent e );", "private int clickOnWaypoint(int a_x, int a_y)\n {\n Vector2d click = new Vector2d(a_x,a_y);\n int drawRadius = Ship.SHIP_RADIUS * Waypoint.RADIUS;\n for(int i = 0; i < m_waypoints.size(); ++i)\n {\n Vector2d v = m_waypoints.get(i);\n if(click.dist(v) < drawRadius * 0.5)\n {\n return i;\n }\n\n }\n return -1;\n }", "abstract public boolean isPickedBy(Point p);", "public void mousePressed(MouseEvent e) // When mouse is pressed:\n {\n Location pt = new Location(e.getX(),e.getY());\n origPress = pt;\n\n if(hLine.contains(pt)) // If press is on hLine:\n {\n hLineGrabbed = true; // hLine is grabbed\n }\n\n if(vLine.contains(pt)) // If press is on vLine:\n {\n vLineGrabbed = true; // vLine is grabbed\n }\n\n lastPt = pt; // Set the point to lastPt\n }", "public abstract boolean pointerInside(int iPosX, int iPosY);", "public boolean getIsClick() {return isClick;}", "public boolean pointWhithin(Point point) {\n\t\treturn false;\n\t}", "public boolean isContextClickable() {\n/* 1178 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private boolean isDoubleClickedElement(MouseEvent evt) {\n\t\tif (evt.getButton() == Constants.LEFT_MOUSE_BUTTON && !aufzugschacht.mainFrameIsAnyButtonSelected) {\n\t\t\tCalendar thisTime = Calendar.getInstance();\n\t\t\tif (clicked) {\n\t\t\t\tlong millis = thisTime.getTimeInMillis();\n\t\t\t\tif (millis - oldTime.getTimeInMillis() < 300) {\n\t\t\t\t\tclicked = false;\n\t\t\t\t\toldTime = thisTime;\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\toldTime = thisTime;\n\t\t\t} else {\n\t\t\t\tclicked = true;\n\t\t\t\toldTime = thisTime;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void mouseClicked( MouseEvent event ){}", "public boolean containsPoint( Point p ) {\r\n return (( p.x > drawx-getWidth()/2) && ( p.x < drawx+getWidth()/2) \r\n && ( p.y > drawy-getHeight()/2) && ( p.y < drawy+getHeight()/2));\r\n }", "protected boolean isPoint( SimpleFeature feature )\n \t{\n \t\t// A better way to do this ?\n \t\treturn( feature.getType().getGeometryDescriptor().getType().getBinding() == com.vividsolutions.jts.geom.Point.class );\n \t}", "private boolean isValidClick(Point p)\n {\n final double TOP_CARD_HEIGHT = cards.lastElement().getBounds().getHeight();\n final double OTHER_CARDS_HEIGHT = OFFSET_PIXELS * (cards.size() - 1);\n final double CARD_STACK_HEIGHT = TOP_CARD_HEIGHT + OTHER_CARDS_HEIGHT;\n \n if (!isEmpty() && (int) p.getY() > CARD_STACK_HEIGHT)\n return false;\n else\n return true;\n }", "@Override\n\tpublic boolean tap(float x, float y, int count, int button) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean mousePressed(Point p) {\n\t\tif (isVisible()) {\n\t\t\tif (buildShipButton.mousePressed(p)) {return true;}\n\t\t\tif (buildingsButton.mousePressed(p)) {return true;}\n\t\t\tif (this.contains(p)) {return true;}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (recruitMenu.isVisible()) {\n\t\t\treturn recruitMenu.mousePressed(p);\n\t\t} else if (buildingMenu.isVisible()) {\n\t\t\treturn buildingMenu.mousePressed(p);\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic void drawPoint(MouseEvent e, int state) {\n\n\t}", "public void mousePressed(MouseEvent evt) {\n Location x = new Location( evt.getX(), evt.getY() );\n pond.checkAxis( x );\n\n }", "void mousePressed(double x, double y, MouseEvent e );", "public boolean getMouseClick () {\r\n return myMouseClick;\r\n }", "public boolean canProceedWithTapAction() {\n return ClickDelayHelper.canProceedWithTapAction();\n }", "public void mouseClicked(MouseEvent event){}", "void onMouseClicked(MouseEventContext mouseEvent);", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "void mouseClicked(MouseEvent mouseEvent);", "private void checkMouseClick()\n {\n MouseInfo userClick = Greenfoot.getMouseInfo();\n \n int columnNum;\n int rowNum;\n \n if( Greenfoot.mouseClicked(this) )\n {\n columnNum = userClick.getX() / ( getWidth() / 3 );\n rowNum = userClick.getY() / ( getHeight() / 3 );\n \n if( board[rowNum][columnNum] == \"\" )\n {\n if( PlayerOneTurn == true )\n {\n board[rowNum][columnNum] = \"X\";\n \n PlayerOneTurn = false;\n messageShown = false;\n }\n else\n {\n board[rowNum][columnNum] = \"O\";\n \n PlayerOneTurn = true;\n messageShown = false;\n }\n }\n else\n {\n JOptionPane.showMessageDialog( null, \"you should select a different spot.\", \"Wrong step\", JOptionPane.PLAIN_MESSAGE );\n }\n }\n \n }", "public abstract void mouseClicked(MouseEvent e);", "boolean onLeftClick(double mouseX, double mouseY);", "public boolean onSingleTap(MotionEvent point) {\n\t\t\tif (active\n\t\t\t\t\t&& (drawType == POLYGON || drawType == POLYLINE || drawType == MULTI_POINT)) {\n\t\t\t\tif (ptStart == null)\n\t\t\t\t\tdrawLayer.removeAll();// 第一次开始前,清空全部graphic\n\n\t\t\t\tPoint ptCurrent = mapView.toMapPoint(new Point(point.getX(),\n\t\t\t\t\t\tpoint.getY()));\n\t\t\t\tpoints.add(ptCurrent);// 将当前点加入点集合中\n\t\t\t\tif (drawType == MULTI_POINT) {\n\t\t\t\t\t// 多选\n\t\t\t\t\t// Log.d(\"map\",\n\t\t\t\t\t// \"------点选-多选 ------SingleTap--x:\"+point.getX()+\" y: \"+point.getY());\n\t\t\t\t\tptOnly = null;\n\t\t\t\t\tptOnly = mapView.toMapPoint(point.getX(), point.getY());\n\n\t\t\t\t\tdrawLayer.removeAll();\n\t\t\t\t\tqueryAttribute4OnlyOnePonit(ptOnly);\n\t\t\t\t} else {\n\t\t\t\t\tif (ptStart == null) {// 画线或多边形的第一个点\n\t\t\t\t\t\tptStart = ptCurrent;\n\n\t\t\t\t\t\tmarkerSymbol = new SimpleMarkerSymbol(Color.BLUE, 10,\n\t\t\t\t\t\t\t\tSimpleMarkerSymbol.STYLE.CIRCLE);\n\t\t\t\t\t\t// 绘制第一个点\n\t\t\t\t\t\tGraphic graphic = new Graphic(ptStart, markerSymbol);\n\t\t\t\t\t\tdrawLayer.addGraphic(graphic);\n\t\t\t\t\t} else {// 画线或多边形的其他点\n\t\t\t\t\t\t// 绘制其他点\n\t\t\t\t\t\tmarkerSymbol = new SimpleMarkerSymbol(Color.BLUE, 15,\n\t\t\t\t\t\t\t\tSimpleMarkerSymbol.STYLE.DIAMOND);\n\t\t\t\t\t\tGraphic graphic = new Graphic(ptCurrent, markerSymbol);\n\t\t\t\t\t\tdrawLayer.addGraphic(graphic);\n\n\t\t\t\t\t\t// 生成当前线段(由当前点和上一个点构成)\n\t\t\t\t\t\tLine line = new Line();\n\t\t\t\t\t\tline.setStart(ptPrevious);\n\t\t\t\t\t\tline.setEnd(ptCurrent);\n\n\t\t\t\t\t\tif (drawType == DrawTool.POLYLINE) {\n\t\t\t\t\t\t\t// 绘制当前线段\n\t\t\t\t\t\t\tPolyline polyline = new Polyline();\n\t\t\t\t\t\t\tpolyline.addSegment(line, true);\n\t\t\t\t\t\t\tGraphic g = new Graphic(polyline, lineSymbol);\n\t\t\t\t\t\t\tdrawLayer.addGraphic(g);\n\n\t\t\t\t\t\t\tdouble len = GeometryEngine.geodesicLength(\n\t\t\t\t\t\t\t\t\tpolyline, mapView.getSpatialReference(),\n\t\t\t\t\t\t\t\t\tnull);\n\t\t\t\t\t\t\tString length = \"\";\n\t\t\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.00\");\n\t\t\t\t\t\t\tdouble temp = BigDecimal.valueOf(len)\n\t\t\t\t\t\t\t\t\t.divide(new BigDecimal(1000)).doubleValue();\n\t\t\t\t\t\t\tlength = df.format(temp) + \" 千米\";\n\t\t\t\t\t\t\tToast.makeText(mapView.getContext(),\n\t\t\t\t\t\t\t\t\t\"长度: \" + length, Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tif (tempPolygon == null)\n\t\t\t\t\t\t\t\ttempPolygon = new Polygon();\n\n\t\t\t\t\t\t\tif (uid == -1) {\n\t\t\t\t\t\t\t\ttempPolygon.addSegment(line, false);\n\t\t\t\t\t\t\t\tGraphic g = new Graphic(tempPolygon, fillSymbol);\n\t\t\t\t\t\t\t\tuid = drawLayer.addGraphic(g);\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttempPolygon.addSegment(line, false);\n\t\t\t\t\t\t\t\tdrawLayer.updateGraphic(uid, tempPolygon);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlines.add(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tptPrevious = ptCurrent;\n\t\t\t\t// tempLayer.postInvalidate();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n clicked = true;\n }", "public void mouseClicked(MouseEvent e) { \r\n }", "boolean hasPerformAt();", "@Override\n\tboolean isClicked(double x, double y) {\n\n\t\tif (segment.ptLineDist(x, y) < 10 && segment.ptLineDist(x, y) > -10) {\n\t\t\tthis.setColor(Color.BLUE);\n\t\t\tAssignment.frame.repaint();\n\t\t\treturn true;\n\t\t} else {\n\t\t\tthis.setColor(Color.BLACK);\n\t\t\tAssignment.frame.repaint();\n\t\t\treturn false;\n\t\t}\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\tdouble[] pointLocation = new double[3];\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\t\n\t\tplotContent.Click(x, y, pointLocation);\n\t\tif(pointLocation[0]==0.0&&pointLocation[1]==0.0&&pointLocation[2]==0.0) {\n\t\t\t\n\t\t}else {\n\t\t\ttradedetail.setText(\"\\n\"+\"Yield = \"+pointLocation[0]+\"\\n\"+\"Days_To_Maturity = \"+pointLocation[1]+\"\\n\"+\"Amount_CHF = \"+pointLocation[2]);\n\t\t}\n\t}", "public void mousePressed(MouseEvent event){\n\t\t// We recognized pressing the mouse with a flag\n\t\tclickflag = true;\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "boolean touchingPoint(float x, float y) {\n if (_hitbox.length == 1) return dist(x,y,_hitboxCenter.x, _hitboxCenter.y) < _hitbox[0].x;\n return _ptPoly(new PVector(x,y), _getPoints());\n }", "public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }", "public boolean isClicked() {\n\t\treturn clicked;\n\t}", "public boolean isClicked() {\n\n// Cycles through all menu cursors\n for (MenuCursor cursor : Main.cursors) {\n\n// If the cursor has a controller and the select button is clicked, return true\n if (cursor.controller != null) {\n if (Main.contains(Main.recentButtons.get(cursor.controller), ControllerButtons.A)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n\n// Otherwise, if the cursor is using a keyboard and the select button is pressed, return true\n } else {\n if (Gdx.input.isKeyJustPressed(Keys.MENU_SELECT)) {\n if (isCursorOver(cursor)) {\n this.cursor = cursor;\n return true;\n }\n }\n }\n }\n// If none of these events occur, return false\n return false;\n }", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n//\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n//\t\tPoint2D.Double worldPoint = new Point2D.Double();\n//\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n//\t\tviewToWorld.transform(view, worldPoint);\n//\t\n//\t\t// check here if clicking a waypoint\n//\t\tint index = data.hitWaypointTest(worldPoint.getX(), worldPoint.getY());\n//\t\tif(index != -1) {\n////\t\t\tWaypoint w = data.getWaypoint(index);\n//\t\t\tGUIFunctions.updateWaypointDataFields(w);\n//\t\t} else \n//\t\t\tGUIFunctions.updateWaypointDataFields(null);\n\t}", "public boolean onPosition(Point p)\n {\n for(Point pellet : pellets) // iterate over all the pellets\n {\n if (pellet.equals(p))\n return true;\n }\n return false;\n }", "public void situerClick() {\n\n\tSystem.out.println(\"Allez-y, cliquez donc.\") ;\n\t\n\tif (dessin.waitClick()) {\n\t float lon = dessin.getClickLon() ;\n\t float lat = dessin.getClickLat() ;\n\t \n\t System.out.println(\"Clic aux coordonnees lon = \" + lon + \" lat = \" + lat) ;\n\n\t // On cherche le noeud le plus proche. O(n)\n\t float minDist = Float.MAX_VALUE ;\n\t Noeud noeud = null ;\n\t \n\t for(Map.Entry<Integer, Noeud> entry : noeuds.entrySet())\t{\r\n\t \tNoeud n = entry.getValue();\r\n\t \tfloat londiff = n.getLongitude() - lon;\r\n\t \tfloat latdiff = n.getLatitude() - lat;\r\n\t \tfloat dist = londiff*londiff + latdiff*latdiff ;\r\n\t \tif(dist < minDist)\t{\r\n\t \t\tnoeud = n;\r\n\t \t\tminDist = dist;\r\n\t \t}\r\n\t }\n\n\t System.out.println(\"Noeud le plus proche : \" + noeud) ;\n\t System.out.println() ;\n\t dessin.setColor(java.awt.Color.red) ;\n\t dessin.drawPoint(noeud.getLongitude(), noeud.getLatitude(), 5) ;\n\t}\n }", "public boolean TapCard(float x, float y) { return false; }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tif (e.getX()>getX()&&getX()+getW()>e.getX())\n\t\t\tif (e.getY()>getY()&&getY()+getH()>e.getY())\n\t\t\t\tJOptionPane.showMessageDialog(null, \"oof\");\n\t}", "public abstract boolean isHit(int x, int y);", "public boolean isClickable() {\n/* 899 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "boolean _mousePressed(MouseEvent ev) {\n\t\treturn false;\n\t}", "public void mouseClicked(MouseEvent e)\n {}", "public void checkClickedArea(int xMouse,int yMouse)\n {\n\n isSelected=false;\n if(targetable==true&&(xMouse>=xBeginMap+15&&xMouse<=xEndMap-15\n &&yMouse>=yBeginMap+15&&yMouse<=yEndMap-15))\n {\n\n isSelected=true;\n }\n\n }", "@Override\npublic void mouseClicked(MouseEvent e)\n{\n\tSystem.out.println(e.getX() + \" :: \" + e.getY());\n}", "public boolean locatePoint(Point2D p, VisualItem item) {\n Shape s = getShape(item);\n if ( s == null ) {\n return false;\n } else {\n double width = Math.max(2, getLineWidth(item));\n double halfWidth = width/2.0;\n \n EdgeItem edge = (EdgeItem)item;\n CallEdge callEdge = ReacherDisplay.Instance.getCallEdge(item);\n \n boolean retVal;\n //if (callEdge.isBranching())\n //{\n \tretVal = line1.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width) || \n \t\t\tline2.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n /*}\n else\n {\n \tretVal = curve.intersects(p.getX()-halfWidth, p.getY()-halfWidth, width,width);\n } */ \n return retVal;\n }\n }", "public abstract boolean handlePointerEvent(int type, PointerTracker pointer);", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\tlastClick = e.getPoint();\n\t\t\t// Process the hotspots in REVERSE order, so that he who is plotted last (frontmost) is detected first\n\t\t\tfor(int i=hotspot.length-1; i>=0; i--) {\n\t\t\t\tint dx = lastClick.x - hotspot[i].x, dy = lastClick.y - hotspot[i].y;\n\t\t\t\tif(dx*dx + dy*dy <= hotspot[i].r*hotspot[i].r) {\n\t\t\t\t\tactiveHotspot = i;\n\t\t\t\t\tdisplacement.x = displacement.y = 0;\n\t\t\t\t\taddMouseMotionListener(mouseFollower);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void setclickedPoint(Point cp) {\r\n this.clickedPoint = cp;\r\n }", "@Override\r\n public boolean onMapPoiClick(MapPoi arg0) {\n return false;\r\n }", "@Override\n public void clicked(InputEvent e, float x, float y) {\n }", "public boolean clickedInside( int x, int y ) {\n\t\tif ( x > this.x ) {\n\t\t\tif ( y > this.y ) {\n\t\t\t\tif ( x < ( this.x + this.width ) ) {\n\t\t\t\t\tif ( y < ( this.y + this.height ) ) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}", "public void mouseClicked(MouseEvent e){\r\n\t\tif (e.getButton() == MouseEvent.BUTTON1){\r\n\t\t\tboolean b = myGraph.isAdjacent(roboSpot,(Spot)e.getSource()); \r\n\t\t\tSystem.out.print(e.getSource()+\" Clicked and it is\");\r\n\t\t\tif(!b) System.out.print(\" not\");\r\n\t\t\tSystem.out.println(\" adjacent\");\r\n\t\t} else { //a different button was clicked...\r\n\t\t\tArrayList<Spot> sequence = myGraph.getShortestPath(roboSpot,goalSpot);\r\n\t\t\t\r\n\t\t\tfor(int i=0; i<sequence.size(); i++){\r\n\t\t\t\tsequence.get(i).setSeqInd(i+1);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.revalidate();\r\n\t\tthis.repaint();\r\n\t}", "@Override\n public void mouseClicked(MouseEvent e){\n String boton = W.detClick( e.getButton() );\n \n System.out.println(\" Mouse: Click \" + boton ); \n }", "public void mouseClicked(MouseEvent arg0) {\n }", "@Override\n public boolean onMapPoiClick(MapPoi arg0) {\n return false;\n }", "private void drawPanelMousePressed(java.awt.event.MouseEvent evt) {\n \n clicks = evt.getPoint();\n \n clicks = getClosedPoint(clicks);\n //System.out.print(ClickSX + \", \" + ClickSY + \",\\n \" );\n \n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void onClicked();", "public void mouseClicked(MouseEvent evt) {\n }", "public abstract void mouseClicked(MouseClickedEvent event);", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "public boolean hitTarget(MouseEvent e) {\n\t\treturn (e.getX() > coord.x && e.getX() < endCoord.x && e.getY() > coord.y && e.getY() < endCoord.y);\n\t}", "public void mouseClicked(MouseEvent event) { \n\t\t\n\t}", "public boolean isHovered();", "public final boolean isClickable() {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).isClickable()\");\n return ((com.huawei.hms.maps.model.PolygonOptions) this.getHInstance()).isClickable();\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).isClickable()\");\n return ((com.google.android.gms.maps.model.PolygonOptions) this.getGInstance()).isClickable();\n }\n }", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent e) {}", "public void mousePressed(){\n\n if(mouseX >= rectX4 && mouseX <= rectX4 + rectWidth && mouseY >= rectY4 && mouseY <= rectY4 + rectHeight){\n println(\"Button 4\");\n }\n \n}", "public void mousePressed(MouseEvent e) {\n\n if(Objects.equals(ToolSelect.GetTool(), \"zoom/pan\")){\n released = false;\n sPoint = MouseInfo.getPointerInfo().getLocation();\n }else {\n\n startPoint = e.getPoint();\n shape = new ColoredRectangle(ToolSelect.GetBorderColor(), ToolSelect.GetFillColor(), new Rectangle(), ToolSelect.GetTool(), null);\n if (Objects.equals(ToolSelect.GetTool(), \"plot\") || Objects.equals(ToolSelect.GetTool(), \"line\")) {\n shape.shape.setBounds(e.getX(), e.getY(), 1, 1);\n }\n }\n\n }" ]
[ "0.7608663", "0.7085061", "0.70775145", "0.703197", "0.6918311", "0.67917824", "0.67325795", "0.6673336", "0.6666412", "0.6630225", "0.66126543", "0.6578784", "0.65785515", "0.6573499", "0.6570288", "0.6563961", "0.6555263", "0.6536522", "0.6501802", "0.6487072", "0.64635444", "0.6412474", "0.6396154", "0.6379882", "0.6375601", "0.6364611", "0.6361458", "0.63501316", "0.63463646", "0.6344565", "0.6334754", "0.6325521", "0.6308486", "0.6302909", "0.630104", "0.6297403", "0.62941575", "0.629045", "0.6277019", "0.62730175", "0.62730175", "0.62730175", "0.62730175", "0.6272688", "0.627093", "0.62631136", "0.6245639", "0.624516", "0.622436", "0.6218684", "0.6214378", "0.6208859", "0.6189038", "0.61878866", "0.61805576", "0.6176905", "0.6172392", "0.6171859", "0.6166374", "0.61648554", "0.6163221", "0.616006", "0.6153781", "0.6135149", "0.6134058", "0.6133613", "0.6128984", "0.61282754", "0.6118763", "0.61146617", "0.611457", "0.6110098", "0.60876715", "0.6083445", "0.60815454", "0.60743773", "0.60737854", "0.60678416", "0.60672355", "0.6059084", "0.60534286", "0.6048664", "0.6048462", "0.60474735", "0.60358196", "0.60335314", "0.60285544", "0.6026573", "0.60207367", "0.6014035", "0.6011905", "0.6001501", "0.60011023", "0.5991481", "0.59886473", "0.59804267", "0.5976323", "0.5976323", "0.5976323", "0.59745806", "0.59713054" ]
0.0
-1
check whether a document is already open and, if so, try to close it
private void tryToCreateNew() { if (current != null) { if (!this.tryToClose()) return; } //enter a name for this scenario String name = (String) JOptionPane.showInputDialog( this, "Name of the scenario", "Next", JOptionPane.PLAIN_MESSAGE, null, null, null); if (name == null) return; //select a directory name JFileChooser chooser = new JFileChooser(new File(".")); chooser.setDialogTitle("Select scenario file destination"); chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int result = chooser.showDialog(this, "Select"); if (result == JFileChooser.APPROVE_OPTION) { try { File dir = chooser.getSelectedFile(); String path = dir.getAbsolutePath(); String filename = path + File.separator + (name.replaceAll(" ", "_")) + ".xml"; current = new Document(filename, name, path, Database.getInstance().getNumberOfFloors()); current.save(); this.update(); } catch (Exception e) { JOptionPane.showMessageDialog(this, "ERROR: the document could not be saved!", "An Error Occured", JOptionPane.ERROR_MESSAGE); e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeDocument()\n {\n try\n {\n // close our document\n if ( m_document != null )\n {\n XCloseable closeDoc = (XCloseable)UnoRuntime.queryInterface( XCloseable.class,\n m_document.getDocument() );\n closeDoc.close( true );\n }\n }\n catch ( com.sun.star.uno.Exception e )\n {\n }\n }", "public boolean doClose() {\n\n if (canChangeDocuments()) {\n setVisible(false);\n dispose();\n fApplication.removeDocumentWindow(this);\n return true;\n }\n else {\n return false;\n }\n }", "public void fileClosed(OpenDefinitionsDocument doc) { }", "public void fileClosed(OpenDefinitionsDocument doc) { }", "@Override\n\tpublic void closeIfStillOpen() {\n\n\t}", "public boolean quitFile(OpenDefinitionsDocument doc) { return true; }", "public boolean quitFile(OpenDefinitionsDocument doc) { return true; }", "public void doOpen() {\n\n if (!canChangeDocuments()) {\n return;\n }\n\n TextDocument document = fApplication.openDocument(this);\n\n if (document != null) {\n setDocument(document);\n }\n }", "public boolean openDocument(File file) {\n String path;\n try {\n path = file.getCanonicalPath();\n for (SceneDocument doc : Application.getInstance().getDocuments()) {\n try {\n if (doc.getDocumentFile() == null) continue;\n if (doc.getDocumentFile().getCanonicalPath().equals(path)) {\n // The document is already open. Bring it to the front.\n doc.toFront();\n doc.requestFocus();\n MenuBar.addRecentFile(file);\n return true;\n }\n } catch (IOException e) {\n logger.log(Level.WARNING, \"The document \" + doc.getDocumentFile() + \" refers to path with errors\", e);\n }\n }\n } catch (IOException e) {\n logger.log(Level.WARNING, \"The document \" + file + \" refers to path with errors\", e);\n }\n\n try {\n SceneDocument doc = new SceneDocument(manager, file);\n addDocument(doc);\n MenuBar.addRecentFile(file);\n return true;\n } catch (RuntimeException e) {\n logger.log(Level.SEVERE, \"Error while loading \" + file, e);\n ExceptionDialog d = new ExceptionDialog(null, e);\n d.setVisible(true);\n return false;\n }\n }", "boolean hasCurrentDocument();", "@Override\n\tpublic boolean doReOpen() { return false; }", "protected final void ensureOpen() {\n/* 664 */ if (!checkOpen(true)) {\n/* 665 */ checkException();\n/* */ }\n/* */ }", "public boolean isFinishedWithDocument(DocText docText) {\n return false;\n }", "void closeDocument(SingleDocumentModel model);", "private void tryToOpen() {\n if (current != null) {\n if (!this.tryToClose()) return;\n }\n\n //open an existing file...\n JFileChooser chooser = new JFileChooser(new File(\".\"));\n chooser.setDialogTitle(\"Select model file\");\n chooser.setFileFilter(new FileNameExtensionFilter(\n \"Only xml files\",\"xml\"\n ));\n\n int result = chooser.showOpenDialog(this);\n if (result == JFileChooser.APPROVE_OPTION) {\n File file = chooser.getSelectedFile();\n try {\n current = new Document(file);\n this.update();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"ERROR: the file '\" + file.getName() + \"' could not be opened!\", \"An Error Occured\", JOptionPane.ERROR_MESSAGE);\n// e.printStackTrace();\n }\n }\n }", "public boolean open() {\n\t\tif (!open) {\n\t\t\ttry {\n\t\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\t\tFile file = new File(fullFileName());\t//return the full file name,including directory and filename\n\t\t\t\t\tString line;\n\t\t\t\t\tBufferedReader reader = new BufferedReader (\n\t\t\t\t\t\t// (new FileReader(file));\n\t\t\t\t\t\tnew InputStreamReader (new FileInputStream(file), JetTest.encoding));\n\t\t\t\t\tStringBuffer fileText = new StringBuffer();\t\t//store all text in filename\n\t\t\t\t\twhile((line = reader.readLine()) != null)\n\t\t\t\t\t\tfileText.append(line + \"\\n\");\n\t\t\t\t\tString text = fileText.toString(); //Store the converted text\n\t\t\t\t\tSGMLProcessor.allTags = allTags;\t\n\t\t\t\t\tSGMLProcessor.emptyTags = emptyTags;\n\t\t\t\t\tDocument doc = SGMLProcessor.sgmlToDoc (this, text, SGMLtags);\t//Because format.equals(\"sgml\")\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (format.equals(\"pos\")) {\n\t\t\t\t\tposRead();\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (e);\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t// return true if already open\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\r\n\tpublic boolean closeIt() {\n\t\tlog.info(toString());\r\n\t\t// Before Close\r\n\t\tm_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_CLOSE);\r\n\t\tif (m_processMsg != null)\r\n\t\t\treturn false;\r\n\r\n\t\t// After Close\r\n\t\tm_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_CLOSE);\r\n\t\tif (m_processMsg != null)\r\n\t\t\treturn false;\r\n\r\n\t\t\r\n\t\t//setDocAction(DOCACTION_None);\r\n\t\treturn true;\r\n\t}", "public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }", "public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }", "public boolean open() {\n\t\treturn open(false);\n\t}", "@Override\n\tpublic void openDocument(String path, String name) {\n\t\t\n\t}", "public boolean isClosed() {\n\t\treturn journalWriter == null;\n\t}", "public void fileOpened(OpenDefinitionsDocument doc) { }", "public void fileOpened(OpenDefinitionsDocument doc) { }", "@Override\n protected boolean closeLast() {\n if (!super.closeLast()) {\n return false;\n }\n\n // close the corresponding session object.\n // NOTE:\n // because the Session.close() method eventually call this method\n // indirectly after setting the session's open flag to false.\n // So call Session.close() ONLY if the session is open to avoid\n // recursion.\n Session session = getQLEditorSupport().getSession();\n if (session.isOpen()) {\n try {\n session.close();\n } catch (ConnectionException ex) {\n\n // TODO: handle exception\n Exceptions.printStackTrace(ex);\n }\n }\n\n return true;\n }", "public boolean checkAutoClose();", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "public boolean close() {\n\t\tif (_OPEN) {\n\t\t\t_OPEN = false;\n\t\t\tdoPurgeAction();\n\t\t\treturn (true);\n\t\t}\n\t\treturn (false);\n\t}", "@Override\n\tpublic boolean isFileOpen(String fileName) \n\t{\n\t\treturn false;\n\t}", "public Frysak_11_closing_document() {\r\n }", "public boolean checkDocument(String fileName) throws IOException;", "public void openDocument(L documentLocation) throws IOException;", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "public boolean isAutoCloseable();", "@Override\n public void closeCompletely()\n throws XMLStreamException\n {\n _finishDocument(true);\n }", "public boolean isDocument(Document document) {\n return false;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "private void checkOpen() {\n if (!isOpen()) {\n throw new IllegalStateException(\"not open\");\n }\n }", "public void close(){\n this.println(\"Library has been closed! See you tomorrow morning!!\");\n this.openOrNot = false;\n this.searchOrNot = false;\n this.serveOrNot = false;\n }", "public boolean isOpened() {\n return false;\n }", "public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}", "public boolean\tisClosed();", "private boolean open() {\r\n\t\tfor ( int i = 0; i < _headerObject._filenames.length; ++i) {\r\n\t\t\tFileObject fileObject = ( FileObject)_headerObject._fileObjectMap.get( _headerObject._filenames[ i]);\r\n\t\t\tif ( null == fileObject)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tif ( !fileObject.open())\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void close() {\r\n Log.d(LOG_TAG, \"close()\");\r\n if (mCurrentFileStream != null) {\r\n try {\r\n mCurrentFileStream.close();\r\n } catch (IOException e) {\r\n Log.e(LOG_TAG, \"Error closing file\", e);\r\n }\r\n }\r\n mFailedOpen = false;\r\n mCurrentFileStream = null;\r\n }", "public void open() {\n this.isClosed = false;\n }", "boolean isOpened() throws Exception;", "public boolean close() {\n \n if (writer != null)\n writer.close();\n \n if (oos != null) {\n try {\n oos.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n \n return false;\n }\n }\n \n if (ois != null) {\n try {\n ois.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n \n return false;\n }\n }\n \n return true;\n }", "public void safeClose(){\r\n\t\tthis.isRun = false;\r\n\t}", "protected void exitSafely() {\n for (int i = 0, numberOfTabs = tabs.getTabCount(); i < numberOfTabs; i++) {\n DocumentTab selectedDocument = (DocumentTab)tabs.getComponentAt(i);\n if (selectedDocument.isModified()) {\n tabs.setSelectedIndex(i);\n int answer = JOptionPane.showConfirmDialog(\n appWindow,\n \"File \" + selectedDocument.getName() + \" is modified.\\n\" +\n \"Do you want to save the file before closing?\",\n \"Warning\",\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.WARNING_MESSAGE);\n if (answer == JOptionPane.CANCEL_OPTION) {\n return;\n } else if (answer == JOptionPane.YES_OPTION) {\n saveCurrentTab(SaveMode.SAVE);\n }\n }\n }\n\n appWindow.dispose();\n }", "private boolean checkOpen(boolean recordException) {\n/* 650 */ if (!isOpen()) {\n/* 651 */ if (recordException) {\n/* 652 */ recordException(new ClosedChannelException());\n/* */ }\n/* 654 */ return false;\n/* */ } \n/* */ \n/* 657 */ return true;\n/* */ }", "public boolean close() {\n boolean operation = false;\n try {\n fileStream.close();\n operation = true;\n } catch ( Exception error ) {\n System.out.println(error.toString());\n }\n return operation;\n }", "public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}", "private final boolean isOpen()\n {\n return !closed;\n }", "public boolean isClosed() {\n\t\treturn (dbConnection == null);\n\t}", "@Override\n void execute() {\n doc.open();\n }", "public boolean updateDocument(Document document, InputStream isDocument) {\n return false;\n }", "public void ensureOpenFiles()\n throws DataOrderingException;", "private void validateDuplicateDocuments(Noc noc) {\n\t\tif (!ObjectUtils.isEmpty(noc.getDocuments())) {\n\t\t\tList<String> documentFileStoreIds = new LinkedList<String>();\n\t\t\tnoc.getDocuments().forEach(document -> {\n\t\t\t\tif (documentFileStoreIds.contains(document.getFileStoreId()))\n\t\t\t\t\tthrow new CustomException(\"NOC_DUPLICATE_DOCUMENT\", \"Same document cannot be used multiple times\");\n\t\t\t\telse\n\t\t\t\t\tdocumentFileStoreIds.add(document.getFileStoreId());\n\t\t\t});\n\t\t}\n\t}", "public boolean closeWithoutSave() {\n\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean close() {\n\t\treturn super.close();\n\t}", "public boolean quit() {\n java.util.List<SceneDocument> documents = new ArrayList<SceneDocument>(getDocuments());\n for (SceneDocument d : documents) {\n if (!d.shouldClose())\n return false;\n }\n if (hiddenFrame != null) {\n hiddenFrame.dispose();\n }\n System.exit(0);\n return true;\n }", "public void close() {\n\t\tSystem.out.println(\"WordReader.close\");\n\t}", "private static boolean checkDuplicateDocName(User user, String name) {\n\n\t\t// Check if document name is already in user's documents\n\t\tboolean isInvalid = false;\n\n\t\tfor(@SuppressWarnings(\"unchecked\")\n\t\tIterator<Document> iter = user.getDocumentList().iterator(); iter.hasNext(); ) {\n\t\t\tDocument doc = iter.next();\n\t\t\tif(doc.getDocName().equals(name)) {\n\t\t\t\tisInvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isInvalid;\n\t}", "private void tbsOpenFile(){\n String path = Environment.getExternalStorageDirectory().getPath() + \"/\" + \"android面试题及答案.docx\";\n File file=new File(path);\n if (file.exists()){\n\n\n Bundle bundle=new Bundle();\n bundle.putString(\"filePath\", file.getPath());\n bundle.putString(\"tempPath\", Environment.getExternalStorageDirectory().getPath());\n boolean result = mTbsReaderView.preOpen(\"doc\", false);//Word类型的是“doc” 、 PDF的类型是“pdf”\n\n mTbsReaderView.openFile(bundle);\n\n }else {\n Toast.makeText(this,\"文件不存在\",Toast.LENGTH_SHORT).show();\n }\n\n }", "private void closeCursor() {\n if (cursor != null) {\n cursor.close();\n }\n if (refreshedCursor != null) {\n refreshedCursor.close();\n }\n }", "public int closeFile() {\n int test=0;\n try{\n _file=null;\n rows.clear();\n _fis.close();\n _bis.close();\n _dis.close();\n test=1;\n }catch( IOException ioe){\n test=0;\n }\n return test;\n }", "public boolean removeDocument(Document document) {\n return false;\n }", "public boolean canClose(){\n return true;\n }", "public void open() {\n // no-op;\n }", "boolean hasTextDocument();", "boolean isIsClosable();", "private void closeFile() {\n if (fileSpec != null) {\n boolean modOK = modIfChanged();\n if (currentFileModified) {\n filePrefs.handleClose();\n }\n }\n currentFileModified = false;\n }", "@Override\n public boolean isopen( )\n {\n return logfile != null && out != null;\n }", "boolean hasDocument(String path);", "public boolean closed() {\r\n return closed;\r\n }", "boolean open();", "public boolean isOpened() {\r\n return opened != null;\r\n }", "boolean hasRevealDocument();", "public boolean shouldRevertFile(OpenDefinitionsDocument doc) { return true; }", "public boolean shouldRevertFile(OpenDefinitionsDocument doc) { return true; }", "public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}", "public boolean isFinishedWithDocText(DocText docText) {\n return false;\n }", "public void close() {\n close = true;\n }", "public abstract boolean processSaveDocument(Document document);", "boolean isOpened();", "@Override\n public boolean isCloseable()\n {\n return false;\n }", "public boolean hasRevealDocument() {\n return revealDocumentBuilder_ != null || revealDocument_ != null;\n }", "public boolean isOpen() {\r\n\t\treturn false;\r\n\t}", "private void closeSubFile() throws Exception {\r\n xml.closeElement();\r\n xml.close();\r\n sub.close();\r\n }", "public boolean open(){\n\t\tboolean allopen = true;\n\t\tfor (boolean element: open){\n\t\t\tif (element ==false)\n\t\t\t\tallopen = false;\n\t\t}\n\t\treturn allopen;\t\t\n\t}", "@Override\n public void ensureOpen() throws IOException {\n }", "@Override\r\n public boolean canCancel(Document document) {\n return false;\r\n }", "public boolean addDocument(Document newDocument) {\n try {\n if (searchDocumentInCourse(newDocument)) {\n throw new Exception();\n }\n\n getDocumentListInCourse().add(newDocument);\n return true;\n } catch (Exception exception) {\n System.err.println(\"This document already exists!\");\n return false;\n\n }\n\n }", "public static boolean m29804a(Cursor cursor) {\n if (cursor != null) {\n try {\n cursor.close();\n } catch (Exception unused) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic void close() {\n\t\tthis.ok = false;\n\t}" ]
[ "0.6964336", "0.6447902", "0.6125684", "0.6125684", "0.6117552", "0.59752375", "0.59752375", "0.59750766", "0.5958146", "0.59304625", "0.58676726", "0.5831801", "0.581167", "0.5796406", "0.57935655", "0.578968", "0.57824785", "0.5731609", "0.5731609", "0.57292366", "0.5667282", "0.5654948", "0.5622203", "0.5622203", "0.55981207", "0.55954427", "0.5589175", "0.5589175", "0.5589175", "0.5537681", "0.55231524", "0.5486319", "0.548495", "0.5475852", "0.5475669", "0.5475669", "0.5475669", "0.54705757", "0.5452041", "0.5437684", "0.54232794", "0.54232794", "0.54232794", "0.54199845", "0.54054993", "0.53958875", "0.53835845", "0.53761995", "0.53688174", "0.5355408", "0.534584", "0.5343341", "0.5312444", "0.5304476", "0.529897", "0.52675736", "0.5266576", "0.5257073", "0.52160406", "0.52109134", "0.5210359", "0.5209201", "0.5197842", "0.51788735", "0.51772344", "0.51770514", "0.5175886", "0.51654637", "0.5159277", "0.51506233", "0.5148428", "0.5141489", "0.51329887", "0.5127055", "0.5117814", "0.51003456", "0.5091595", "0.50893086", "0.50845736", "0.5082599", "0.5082276", "0.50778264", "0.50764495", "0.50762224", "0.5075245", "0.5075245", "0.5065345", "0.5063504", "0.50626516", "0.50539243", "0.5048666", "0.50428313", "0.50370675", "0.50318235", "0.50276905", "0.50218", "0.50128615", "0.5007553", "0.5006539", "0.4999986", "0.49964723" ]
0.0
-1
check whether a document is already open and, if so, try to close it
private void tryToOpen() { if (current != null) { if (!this.tryToClose()) return; } //open an existing file... JFileChooser chooser = new JFileChooser(new File(".")); chooser.setDialogTitle("Select model file"); chooser.setFileFilter(new FileNameExtensionFilter( "Only xml files","xml" )); int result = chooser.showOpenDialog(this); if (result == JFileChooser.APPROVE_OPTION) { File file = chooser.getSelectedFile(); try { current = new Document(file); this.update(); } catch (Exception e) { JOptionPane.showMessageDialog(this, "ERROR: the file '" + file.getName() + "' could not be opened!", "An Error Occured", JOptionPane.ERROR_MESSAGE); // e.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void closeDocument()\n {\n try\n {\n // close our document\n if ( m_document != null )\n {\n XCloseable closeDoc = (XCloseable)UnoRuntime.queryInterface( XCloseable.class,\n m_document.getDocument() );\n closeDoc.close( true );\n }\n }\n catch ( com.sun.star.uno.Exception e )\n {\n }\n }", "public boolean doClose() {\n\n if (canChangeDocuments()) {\n setVisible(false);\n dispose();\n fApplication.removeDocumentWindow(this);\n return true;\n }\n else {\n return false;\n }\n }", "public void fileClosed(OpenDefinitionsDocument doc) { }", "public void fileClosed(OpenDefinitionsDocument doc) { }", "@Override\n\tpublic void closeIfStillOpen() {\n\n\t}", "public boolean quitFile(OpenDefinitionsDocument doc) { return true; }", "public boolean quitFile(OpenDefinitionsDocument doc) { return true; }", "public void doOpen() {\n\n if (!canChangeDocuments()) {\n return;\n }\n\n TextDocument document = fApplication.openDocument(this);\n\n if (document != null) {\n setDocument(document);\n }\n }", "public boolean openDocument(File file) {\n String path;\n try {\n path = file.getCanonicalPath();\n for (SceneDocument doc : Application.getInstance().getDocuments()) {\n try {\n if (doc.getDocumentFile() == null) continue;\n if (doc.getDocumentFile().getCanonicalPath().equals(path)) {\n // The document is already open. Bring it to the front.\n doc.toFront();\n doc.requestFocus();\n MenuBar.addRecentFile(file);\n return true;\n }\n } catch (IOException e) {\n logger.log(Level.WARNING, \"The document \" + doc.getDocumentFile() + \" refers to path with errors\", e);\n }\n }\n } catch (IOException e) {\n logger.log(Level.WARNING, \"The document \" + file + \" refers to path with errors\", e);\n }\n\n try {\n SceneDocument doc = new SceneDocument(manager, file);\n addDocument(doc);\n MenuBar.addRecentFile(file);\n return true;\n } catch (RuntimeException e) {\n logger.log(Level.SEVERE, \"Error while loading \" + file, e);\n ExceptionDialog d = new ExceptionDialog(null, e);\n d.setVisible(true);\n return false;\n }\n }", "boolean hasCurrentDocument();", "@Override\n\tpublic boolean doReOpen() { return false; }", "protected final void ensureOpen() {\n/* 664 */ if (!checkOpen(true)) {\n/* 665 */ checkException();\n/* */ }\n/* */ }", "public boolean isFinishedWithDocument(DocText docText) {\n return false;\n }", "void closeDocument(SingleDocumentModel model);", "public boolean open() {\n\t\tif (!open) {\n\t\t\ttry {\n\t\t\t\tif (format.equals(\"sgml\")) {\n\t\t\t\t\tFile file = new File(fullFileName());\t//return the full file name,including directory and filename\n\t\t\t\t\tString line;\n\t\t\t\t\tBufferedReader reader = new BufferedReader (\n\t\t\t\t\t\t// (new FileReader(file));\n\t\t\t\t\t\tnew InputStreamReader (new FileInputStream(file), JetTest.encoding));\n\t\t\t\t\tStringBuffer fileText = new StringBuffer();\t\t//store all text in filename\n\t\t\t\t\twhile((line = reader.readLine()) != null)\n\t\t\t\t\t\tfileText.append(line + \"\\n\");\n\t\t\t\t\tString text = fileText.toString(); //Store the converted text\n\t\t\t\t\tSGMLProcessor.allTags = allTags;\t\n\t\t\t\t\tSGMLProcessor.emptyTags = emptyTags;\n\t\t\t\t\tDocument doc = SGMLProcessor.sgmlToDoc (this, text, SGMLtags);\t//Because format.equals(\"sgml\")\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (format.equals(\"pos\")) {\n\t\t\t\t\tposRead();\n\t\t\t\t\topen = true;\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (\"Unknown document format.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println (\"Error opening document \" + fileName);\n\t\t\t\t\tSystem.out.println (e);\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\t// return true if already open\n\t\t\treturn true;\n\t\t}\n\t}", "@Override\r\n\tpublic boolean closeIt() {\n\t\tlog.info(toString());\r\n\t\t// Before Close\r\n\t\tm_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_CLOSE);\r\n\t\tif (m_processMsg != null)\r\n\t\t\treturn false;\r\n\r\n\t\t// After Close\r\n\t\tm_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_CLOSE);\r\n\t\tif (m_processMsg != null)\r\n\t\t\treturn false;\r\n\r\n\t\t\r\n\t\t//setDocAction(DOCACTION_None);\r\n\t\treturn true;\r\n\t}", "public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }", "public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }", "public boolean open() {\n\t\treturn open(false);\n\t}", "@Override\n\tpublic void openDocument(String path, String name) {\n\t\t\n\t}", "public boolean isClosed() {\n\t\treturn journalWriter == null;\n\t}", "public void fileOpened(OpenDefinitionsDocument doc) { }", "public void fileOpened(OpenDefinitionsDocument doc) { }", "@Override\n protected boolean closeLast() {\n if (!super.closeLast()) {\n return false;\n }\n\n // close the corresponding session object.\n // NOTE:\n // because the Session.close() method eventually call this method\n // indirectly after setting the session's open flag to false.\n // So call Session.close() ONLY if the session is open to avoid\n // recursion.\n Session session = getQLEditorSupport().getSession();\n if (session.isOpen()) {\n try {\n session.close();\n } catch (ConnectionException ex) {\n\n // TODO: handle exception\n Exceptions.printStackTrace(ex);\n }\n }\n\n return true;\n }", "public boolean checkAutoClose();", "boolean hasDocument();", "boolean hasDocument();", "boolean hasDocument();", "public boolean close() {\n\t\tif (_OPEN) {\n\t\t\t_OPEN = false;\n\t\t\tdoPurgeAction();\n\t\t\treturn (true);\n\t\t}\n\t\treturn (false);\n\t}", "@Override\n\tpublic boolean isFileOpen(String fileName) \n\t{\n\t\treturn false;\n\t}", "public Frysak_11_closing_document() {\r\n }", "public boolean checkDocument(String fileName) throws IOException;", "public void openDocument(L documentLocation) throws IOException;", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "@java.lang.Override\n public boolean hasDocument() {\n return document_ != null;\n }", "public boolean isAutoCloseable();", "@Override\n public void closeCompletely()\n throws XMLStreamException\n {\n _finishDocument(true);\n }", "public boolean isDocument(Document document) {\n return false;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "public boolean hasDocument() {\n return documentBuilder_ != null || document_ != null;\n }", "private void checkOpen() {\n if (!isOpen()) {\n throw new IllegalStateException(\"not open\");\n }\n }", "public void close(){\n this.println(\"Library has been closed! See you tomorrow morning!!\");\n this.openOrNot = false;\n this.searchOrNot = false;\n this.serveOrNot = false;\n }", "public boolean isOpened() {\n return false;\n }", "public boolean isFileOpened() {\r\n \t\tif (curFile == null)\r\n \t\t\treturn false;\r\n \t\telse\r\n \t\t\treturn true;\r\n \t}", "public boolean\tisClosed();", "private boolean open() {\r\n\t\tfor ( int i = 0; i < _headerObject._filenames.length; ++i) {\r\n\t\t\tFileObject fileObject = ( FileObject)_headerObject._fileObjectMap.get( _headerObject._filenames[ i]);\r\n\t\t\tif ( null == fileObject)\r\n\t\t\t\treturn false;\r\n\r\n\t\t\tif ( !fileObject.open())\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void close() {\r\n Log.d(LOG_TAG, \"close()\");\r\n if (mCurrentFileStream != null) {\r\n try {\r\n mCurrentFileStream.close();\r\n } catch (IOException e) {\r\n Log.e(LOG_TAG, \"Error closing file\", e);\r\n }\r\n }\r\n mFailedOpen = false;\r\n mCurrentFileStream = null;\r\n }", "public void open() {\n this.isClosed = false;\n }", "boolean isOpened() throws Exception;", "public boolean close() {\n \n if (writer != null)\n writer.close();\n \n if (oos != null) {\n try {\n oos.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n \n return false;\n }\n }\n \n if (ois != null) {\n try {\n ois.close();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n \n return false;\n }\n }\n \n return true;\n }", "public void safeClose(){\r\n\t\tthis.isRun = false;\r\n\t}", "protected void exitSafely() {\n for (int i = 0, numberOfTabs = tabs.getTabCount(); i < numberOfTabs; i++) {\n DocumentTab selectedDocument = (DocumentTab)tabs.getComponentAt(i);\n if (selectedDocument.isModified()) {\n tabs.setSelectedIndex(i);\n int answer = JOptionPane.showConfirmDialog(\n appWindow,\n \"File \" + selectedDocument.getName() + \" is modified.\\n\" +\n \"Do you want to save the file before closing?\",\n \"Warning\",\n JOptionPane.YES_NO_CANCEL_OPTION,\n JOptionPane.WARNING_MESSAGE);\n if (answer == JOptionPane.CANCEL_OPTION) {\n return;\n } else if (answer == JOptionPane.YES_OPTION) {\n saveCurrentTab(SaveMode.SAVE);\n }\n }\n }\n\n appWindow.dispose();\n }", "public boolean close() {\n boolean operation = false;\n try {\n fileStream.close();\n operation = true;\n } catch ( Exception error ) {\n System.out.println(error.toString());\n }\n return operation;\n }", "private boolean checkOpen(boolean recordException) {\n/* 650 */ if (!isOpen()) {\n/* 651 */ if (recordException) {\n/* 652 */ recordException(new ClosedChannelException());\n/* */ }\n/* 654 */ return false;\n/* */ } \n/* */ \n/* 657 */ return true;\n/* */ }", "public boolean isOpen()\r\n\t{\r\n\t return (fd != null);\r\n\t}", "private final boolean isOpen()\n {\n return !closed;\n }", "public boolean isClosed() {\n\t\treturn (dbConnection == null);\n\t}", "@Override\n void execute() {\n doc.open();\n }", "public boolean updateDocument(Document document, InputStream isDocument) {\n return false;\n }", "public void ensureOpenFiles()\n throws DataOrderingException;", "@Override\n\tpublic boolean close() {\n\t\treturn super.close();\n\t}", "private void validateDuplicateDocuments(Noc noc) {\n\t\tif (!ObjectUtils.isEmpty(noc.getDocuments())) {\n\t\t\tList<String> documentFileStoreIds = new LinkedList<String>();\n\t\t\tnoc.getDocuments().forEach(document -> {\n\t\t\t\tif (documentFileStoreIds.contains(document.getFileStoreId()))\n\t\t\t\t\tthrow new CustomException(\"NOC_DUPLICATE_DOCUMENT\", \"Same document cannot be used multiple times\");\n\t\t\t\telse\n\t\t\t\t\tdocumentFileStoreIds.add(document.getFileStoreId());\n\t\t\t});\n\t\t}\n\t}", "public boolean closeWithoutSave() {\n\n\t\treturn false;\n\t}", "public boolean quit() {\n java.util.List<SceneDocument> documents = new ArrayList<SceneDocument>(getDocuments());\n for (SceneDocument d : documents) {\n if (!d.shouldClose())\n return false;\n }\n if (hiddenFrame != null) {\n hiddenFrame.dispose();\n }\n System.exit(0);\n return true;\n }", "public void close() {\n\t\tSystem.out.println(\"WordReader.close\");\n\t}", "private static boolean checkDuplicateDocName(User user, String name) {\n\n\t\t// Check if document name is already in user's documents\n\t\tboolean isInvalid = false;\n\n\t\tfor(@SuppressWarnings(\"unchecked\")\n\t\tIterator<Document> iter = user.getDocumentList().iterator(); iter.hasNext(); ) {\n\t\t\tDocument doc = iter.next();\n\t\t\tif(doc.getDocName().equals(name)) {\n\t\t\t\tisInvalid = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isInvalid;\n\t}", "private void tbsOpenFile(){\n String path = Environment.getExternalStorageDirectory().getPath() + \"/\" + \"android面试题及答案.docx\";\n File file=new File(path);\n if (file.exists()){\n\n\n Bundle bundle=new Bundle();\n bundle.putString(\"filePath\", file.getPath());\n bundle.putString(\"tempPath\", Environment.getExternalStorageDirectory().getPath());\n boolean result = mTbsReaderView.preOpen(\"doc\", false);//Word类型的是“doc” 、 PDF的类型是“pdf”\n\n mTbsReaderView.openFile(bundle);\n\n }else {\n Toast.makeText(this,\"文件不存在\",Toast.LENGTH_SHORT).show();\n }\n\n }", "private void closeCursor() {\n if (cursor != null) {\n cursor.close();\n }\n if (refreshedCursor != null) {\n refreshedCursor.close();\n }\n }", "public int closeFile() {\n int test=0;\n try{\n _file=null;\n rows.clear();\n _fis.close();\n _bis.close();\n _dis.close();\n test=1;\n }catch( IOException ioe){\n test=0;\n }\n return test;\n }", "public boolean removeDocument(Document document) {\n return false;\n }", "public boolean canClose(){\n return true;\n }", "public void open() {\n // no-op;\n }", "boolean hasTextDocument();", "boolean isIsClosable();", "private void closeFile() {\n if (fileSpec != null) {\n boolean modOK = modIfChanged();\n if (currentFileModified) {\n filePrefs.handleClose();\n }\n }\n currentFileModified = false;\n }", "@Override\n public boolean isopen( )\n {\n return logfile != null && out != null;\n }", "public boolean closed() {\r\n return closed;\r\n }", "boolean hasDocument(String path);", "boolean open();", "public boolean isOpened() {\r\n return opened != null;\r\n }", "boolean hasRevealDocument();", "public boolean shouldRevertFile(OpenDefinitionsDocument doc) { return true; }", "public boolean shouldRevertFile(OpenDefinitionsDocument doc) { return true; }", "public void checkInDocument()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tif (itemlay.isMultirowLayout() && itemset.selectRows()==0)\n\t\t{\n\t\t\tmgr.showAlert(mgr.translate(\"DOCMAWDOCREFERENCENOROWS: No Rows Selected.\"));\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, start\n\t\tif (CheckFileOperationEnable()) \n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t//Bug Id 67336, end\n\n\t\ttransferToEdmMacro(\"ORIGINAL\",\"CHECKIN\");\n\t}", "public boolean isFinishedWithDocText(DocText docText) {\n return false;\n }", "public void close() {\n close = true;\n }", "public abstract boolean processSaveDocument(Document document);", "boolean isOpened();", "@Override\n public boolean isCloseable()\n {\n return false;\n }", "public boolean hasRevealDocument() {\n return revealDocumentBuilder_ != null || revealDocument_ != null;\n }", "public boolean isOpen() {\r\n\t\treturn false;\r\n\t}", "private void closeSubFile() throws Exception {\r\n xml.closeElement();\r\n xml.close();\r\n sub.close();\r\n }", "public boolean open(){\n\t\tboolean allopen = true;\n\t\tfor (boolean element: open){\n\t\t\tif (element ==false)\n\t\t\t\tallopen = false;\n\t\t}\n\t\treturn allopen;\t\t\n\t}", "@Override\n public void ensureOpen() throws IOException {\n }", "@Override\r\n public boolean canCancel(Document document) {\n return false;\r\n }", "public boolean addDocument(Document newDocument) {\n try {\n if (searchDocumentInCourse(newDocument)) {\n throw new Exception();\n }\n\n getDocumentListInCourse().add(newDocument);\n return true;\n } catch (Exception exception) {\n System.err.println(\"This document already exists!\");\n return false;\n\n }\n\n }", "public static boolean m29804a(Cursor cursor) {\n if (cursor != null) {\n try {\n cursor.close();\n } catch (Exception unused) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic void close() {\n\t\tthis.ok = false;\n\t}" ]
[ "0.69648504", "0.6449817", "0.6125967", "0.6125967", "0.61179566", "0.59759766", "0.59759766", "0.59749407", "0.59583473", "0.5931799", "0.5868255", "0.58312297", "0.5812687", "0.5797614", "0.5789741", "0.5783971", "0.57305783", "0.57305783", "0.5730292", "0.56676006", "0.5656977", "0.56211793", "0.56211793", "0.5600122", "0.55973303", "0.5589717", "0.5589717", "0.5589717", "0.55399764", "0.552403", "0.5486542", "0.5485819", "0.54755104", "0.547534", "0.547534", "0.547534", "0.5471936", "0.5452723", "0.5436643", "0.54232645", "0.54232645", "0.54232645", "0.54199237", "0.54070115", "0.5396935", "0.53844506", "0.53785366", "0.53694", "0.5356341", "0.5346409", "0.53446776", "0.5314903", "0.5304933", "0.5299943", "0.5268646", "0.5267554", "0.52583176", "0.52171814", "0.52123016", "0.5209801", "0.5208989", "0.5197911", "0.5178625", "0.51785886", "0.5178431", "0.5177847", "0.5166638", "0.51600474", "0.51495785", "0.5148977", "0.5143326", "0.513297", "0.51279944", "0.51172954", "0.5101308", "0.5093333", "0.5090712", "0.50850713", "0.50842935", "0.5083423", "0.50788945", "0.50774753", "0.5076963", "0.5074568", "0.5074568", "0.506483", "0.50645894", "0.5064582", "0.5053651", "0.50501287", "0.5043429", "0.50375557", "0.50326353", "0.50280595", "0.50215626", "0.50132155", "0.50066185", "0.5006533", "0.5000129", "0.49980345" ]
0.5793167
14
initialises Map based on data
@Override public void start(final Stage primaryStage) { loadDemoData(demoDataFile); ProcessingProfiler.setVerboseOutputState(true); ProcessingProfiler.setLoggerOutputState(true); ProcessingProfiler.setDebugState(false); DefaultErrorDataSet bubbleDataSet1a = new DefaultErrorDataSet("women"); DefaultErrorDataSet bubbleDataSet1b = new DefaultErrorDataSet("men"); DefaultDataSet bubbleDataSet2a = new DefaultDataSet("women"); DefaultDataSet bubbleDataSet2b = new DefaultDataSet("men"); Map<String, Double> sortedGDP = gdpPerCapita.entrySet().stream().sorted(Entry.comparingByValue()).collect(Collectors.toMap(Entry::getKey, Entry::getValue, (e1, e2) -> e2, LinkedHashMap::new)); // N.B. for the time the being the Zoomer plugin and Data reduction algorithm require // DataSets to be sorted along the x coordinate int count = 0; for (Entry<String, Double> entry : sortedGDP.entrySet()) { final String country = entry.getKey(); final double gdp = entry.getValue(); final double popSize = 0.2 * population.get(country) / maxPopulation; // set bubble size as error of y (also possible to set it as error of X or both) // N.B. Tip: Math.sqrt(..) since for the observer the surface are is more important than the diameter bubbleDataSet1a.add(gdp, lifeExpectancyWomen.get(country), Math.sqrt(popSize), Math.sqrt(popSize), country); bubbleDataSet1b.add(gdp, lifeExpectancyMen.get(country), Math.sqrt(popSize), Math.sqrt(popSize), country); // set markerSize according to bubble size bubbleDataSet2a.add(gdp, lifeExpectancyWomen.get(country), country); bubbleDataSet2b.add(gdp, lifeExpectancyMen.get(country), country); // N.B. markerSize is in pixel regardless of the xAxis or yAxis scale String markerSize = "markerSize=" + 40 * Math.sqrt(population.get(country) / maxPopulation) + "; index=" + count + ";"; bubbleDataSet2a.addDataStyle(count, markerSize); bubbleDataSet2b.addDataStyle(count, markerSize); if ("FRA".equals(country)) { bubbleDataSet2a.addDataStyle(count, markerSize + "markerColor=darkblue; markerType=circle2;"); bubbleDataSet2b.addDataStyle(count, markerSize + "markerColor=darkred; markerType=circle2;"); } else if ("JPN".equals(country)) { bubbleDataSet2a.addDataStyle(count, markerSize + "markerColor=green; markerType=diamond;"); bubbleDataSet2b.addDataStyle(count, markerSize + "markerColor=lightgreen; markerType=diamond;"); } // for more marker types see DefaultMarker count++; } Chart chart1 = getDefaultChart("Bubble-Chart via DataSetError interface"); final ErrorDataSetRenderer errorRenderer1 = new ErrorDataSetRenderer(); errorRenderer1.setMarkerSize(1); errorRenderer1.setPolyLineStyle(LineStyle.NONE); errorRenderer1.setErrorType(ErrorStyle.ERRORBARS); errorRenderer1.setDrawMarker(false); errorRenderer1.setDrawBubbles(true); errorRenderer1.setAssumeSortedData(false); // !! important since DS is likely unsorted chart1.getRenderers().setAll(errorRenderer1); errorRenderer1.getDatasets().addAll(bubbleDataSet1a, bubbleDataSet1b); primaryStage.setTitle(this.getClass().getSimpleName()); primaryStage.setScene(new Scene(chart1, 800, 600)); primaryStage.setOnCloseRequest(evt -> Platform.exit()); primaryStage.show(); // alternative solution using Marker and DataSet style Stage secondaryStage = new Stage(); Chart chart2 = getDefaultChart("Scatter-Chart via addDataStyle(<index>, <String>) interface"); final ErrorDataSetRenderer errorRenderer2 = new ErrorDataSetRenderer(); errorRenderer2.setMarkerSize(5); errorRenderer2.setPolyLineStyle(LineStyle.NONE); errorRenderer2.setErrorType(ErrorStyle.NONE); errorRenderer2.setDrawMarker(true); errorRenderer2.setAssumeSortedData(false); // !! important since DS is likely unsorted // set default marker either via bubbleDataSet2a.setStyle("markerType=circle;"); bubbleDataSet2b.setStyle("markerType=circle;"); // or via global default, this also allows to set custom marker implementing the 'Marker' interface errorRenderer2.setMarker(DefaultMarker.DIAMOND); errorRenderer2.setDrawBubbles(false); chart2.getRenderers().setAll(errorRenderer2); errorRenderer2.getDatasets().addAll(bubbleDataSet2a, bubbleDataSet2b); secondaryStage.setTitle(this.getClass().getSimpleName()); secondaryStage.setScene(new Scene(chart2, 800, 600)); secondaryStage.setOnCloseRequest(evt -> System.exit(0)); // NOPMD by rstein on 05/08/2019 secondaryStage.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map initMap(){\n\t\tif (map == null){\n\t\t\tmap = createMap();\n\t\t}\n\t\treturn map;\n\t}", "private static void initializeMaps()\n\t{\n\t\taddedPoints = new HashMap<String,String[][][]>();\n\t\tpopulatedList = new HashMap<String,Boolean>();\n\t\tloadedAndGenerated = new HashMap<String,Boolean>();\n\t}", "private void init() {\n\t\tmap = new LinkedHashMap<String, HeaderData>();\r\n\t\tList<HeaderData> list = config.getColumns();\r\n\t\tfor(HeaderData info: list){\r\n\t\t\tString id = info.getId();\r\n\t\t\tif(id == null) throw new IllegalArgumentException(\"Null id found for \"+info.getClass().getName());\r\n\t\t\t// Map the id to info\r\n\t\t\tmap.put(info.getId(), info);\r\n\t\t}\r\n\t}", "private void initMaps()\r\n\t{\r\n\t\tenergiesForCurrentKOppParity = new LinkedHashMap<Integer, Double>();\r\n\t\tinputBranchWithJ = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedR = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedP = new LinkedHashMap<Integer, Double>();\r\n\t\tassociatedQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularP = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularQ = new LinkedHashMap<Integer, Double>();\r\n\t\ttriangularR = new LinkedHashMap<Integer, Double>();\r\n\t\tupperEnergyValuesWithJ = new LinkedHashMap<Integer, Double>();\r\n\t}", "private void fillData() {\n\t\tfor(Entry<String, HashMap<String, Double>> entry : m.map.entrySet()) {\n\t\t\tfor(Entry<String, Double> subEntry : entry.getValue().entrySet()) {\n\t\t\t\tMappingData item = new MappingData(entry.getKey(), subEntry.getKey(), subEntry.getValue());\n\t\t\t\tdataList.add(item);\n\t\t\t}\n\t\t}\n\t}", "public void setUp()\n {\n map = new Map(5, 5, null);\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }", "protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}", "public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "private void populateMaps() {\n\t\t//populate the conversion map.\n\t\tconvertMap.put(SPACE,(byte)0);\n\t\tconvertMap.put(VERTICAL,(byte)1);\n\t\tconvertMap.put(HORIZONTAL,(byte)2);\n\n\t\t//build the hashed numbers based on the training input. 1-9\n\t\tString trainingBulk[] = new String[]{train1,train2,train3,\"\"};\n\t\tbyte[][] trainer = Transform(trainingBulk);\n\t\tfor(int i=0; i < 9 ;++i) {\n\t\t\tint val = hashDigit(trainer, i);\n\t\t\tnumbers.put(val,i+1);\n\t\t}\n\t\t//train Zero\n\t\ttrainingBulk = new String[]{trainz1,trainz2,trainz3,\"\"};\n\t\tint zeroVal = hashDigit(Transform(trainingBulk), 0);\n\t\tnumbers.put(zeroVal,0);\n\n\n\t}", "private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "private IMapData<Integer, String> getLinkedHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"c\"),\n KeyValueNode.make(1, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(3, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(1, \"a\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "private void generateMaps() {\r\n\t\tthis.tablesLocksMap = new LinkedHashMap<>();\r\n\t\tthis.blocksLocksMap = new LinkedHashMap<>();\r\n\t\tthis.rowsLocksMap = new LinkedHashMap<>();\r\n\t\tthis.waitMap = new LinkedHashMap<>();\r\n\t}", "public Map() {\n\t\t//intially empty\n\t}", "public Map() {\n\n\t\t}", "private static void initializeMap() {\n\t\tmap = new HashMap<String, MimeTransferEncoding>();\n\t\tfor (MimeTransferEncoding mte : MimeTransferEncoding.values()) {\n\t\t\tmap.put(mte.string, mte);\n\t\t}\n\t}", "private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public void fillMap() {\n this.months.put(\"янв\", Month.JANUARY);\n this.months.put(\"фев\", Month.FEBRUARY);\n this.months.put(\"мар\", Month.MARCH);\n this.months.put(\"апр\", Month.APRIL);\n this.months.put(\"май\", Month.MAY);\n this.months.put(\"июн\", Month.JUNE);\n this.months.put(\"июл\", Month.JULY);\n this.months.put(\"авг\", Month.AUGUST);\n this.months.put(\"сен\", Month.SEPTEMBER);\n this.months.put(\"окт\", Month.OCTOBER);\n this.months.put(\"ноя\", Month.NOVEMBER);\n this.months.put(\"дек\", Month.DECEMBER);\n }", "private Map<Integer, MessageEncoder> initialiseMap() {\n Map<Integer, MessageEncoder> composerMap = new HashMap<>();\n composerMap.put(AC35MessageType.BOAT_ACTION.getCode(), new BoatActionEncoder());\n composerMap.put(AC35MessageType.REQUEST.getCode(), new RequestEncoder());\n composerMap.put(AC35MessageType.COLOUR.getCode(), new ColourEncoder());\n\n return Collections.unmodifiableMap(composerMap);\n }", "private Map<String, Object> createDefaultMap() {\n Map<String, Object> result = new LinkedHashMap<>();\n result.put(\"stream_speed0\", 1);\n result.put(\"stream_start0\", 0);\n result.put(\"stream_end0\", 7);\n result.put(\"stream_speed1\", -2);\n result.put(\"stream_start1\", 15);\n result.put(\"stream_end1\", 19);\n\n result.put(\"fish_quantity\", numFishes);\n result.put(\"fish_reproduction\", 3);\n result.put(\"fish_live\", 10);\n result.put(\"fish_speed\", 2);\n result.put(\"fish_radius\", 4);\n\n result.put(\"shark_quantity\", numSharks);\n result.put(\"shark_live\", 20);\n result.put(\"shark_hungry\", 7);\n result.put(\"shark_speed\", 2);\n result.put(\"shark_radius\", 5);\n\n return result;\n }", "private void initialize() {\n\t\tplayerMap = new HashMap<>();\n\t\ttypeMap = new HashMap<>();\n\t\tfor (ProductType type : ProductType.values()) {\n\t\t\tMap<ProductState, Map<Integer, Set<Product>>> stateMap = new HashMap<>();\n\t\t\tfor (ProductState state : ProductState.values()) {\n\t\t\t\tMap<Integer, Set<Product>> map = new HashMap<>();\n\t\t\t\tstateMap.put(state, map);\n\t\t\t}\n\t\t\ttypeMap.put(type, stateMap);\n\t\t}\n\t}", "private IMapData<Integer, String> getLinkedHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }", "public void initializeMap() {\n\t\tgameMap = new GameMap(GameMap.MAP_HEIGHT, GameMap.MAP_WIDTH);\n\t\tgameMap.initializeFields();\n\t}", "private static synchronized void initializeMeasureMaps() {\n\t\tintensityMeasuresList=ExerciseIntensityMeasure.getAll();\n\t\tquantityMeasuresList=ExerciseQuantityMeasure.getAll();\n\t\tintensityCodesToNamesMap=new HashMap(intensityMeasuresList.size());\n\t\tquantityCodesToNamesMap=new HashMap(quantityMeasuresList.size());\n\n\t\t// these (and the lists above) come from the db, but they can be static \n\t\t// because they change so infrequently (haven't changed in five years and\n\t\t// counting), and only manually via the db.\n\t\tfor (int i=0; i<intensityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseIntensityMeasure m=(ExerciseIntensityMeasure)intensityMeasuresList.get(i);\n\t\t\tintensityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tfor (int i=0; i<quantityMeasuresList.size(); i++) {\n\t\t\tfinal ExerciseQuantityMeasure m=(ExerciseQuantityMeasure)quantityMeasuresList.get(i);\n\t\t\tquantityCodesToNamesMap.put(m.getCode(),m.getName());\n\t\t}\n\t\tmeasureMapsInitialized=true;\n\t\t\n\t}", "public abstract void createMap();", "private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}", "public void initialilzeMapEntry(String file){\n\t\tmap.put(file, new LinkedList<HashMap<Integer, Integer>>());\n\t}", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }", "@Before\n public void initialize()\n {\n map = new MapAdapter();\n }", "public void buildMap(){\n this.map = new HashMap<String, String>();\n map.put(\"user\", \"user\");\n map.put(\"pw\", \"pass\");\n map.put(\"quit\", \"quit\");\n map.put(\"features\", \"feat\");\n map.put(\"cd\", \"cwd\");\n map.put(\"dir\", \"list\");\n map.put(\"get\", \"retr\");\n }", "private void initializeMaps(){\n\t\t\n\t\tsteps = new HashMap<Integer, Set<PlanGraphStep>>();\n\t\tfacts = new HashMap<Integer, Set<PlanGraphLiteral>>();\n\t\tinconsistencies = new HashMap<Integer, Set<LPGInconsistency>>();\n\t\t\n\t\tfor(int i = 0; i <= maxLevel; i++) {\n\t\t\tsteps.put(i, new HashSet<PlanGraphStep>());\n\t\t\tfacts.put(i, new HashSet<PlanGraphLiteral>());\n\t\t\tinconsistencies.put(i, new HashSet<LPGInconsistency>());\n\t\t}\n\t\t\n\t\t/* This level holds only the special action end which has the goals as preconditions */\n\t\tsteps.put(maxLevel + 1, new HashSet<PlanGraphStep>());\n\t}", "public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }", "public CountingMap() {\n this( new HashMap<K, Integer>() );\n }", "private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }", "InfiniteMap<K,V> build(MapTypes type);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap() {\r\n\t\tdata = (Node<MapEntry<K, V>>[])new Node[INITIAL_SIZE];\r\n\t\tfor(int i = 0; i < data.length; i++)\t\t\t\t\t\t\t//For every element in data...\r\n\t\t\tdata[i] = new Node<MapEntry<K,V>>(new MapEntry<K,V>(null));\t//Add a head node to it.\r\n\t\t\r\n\t\t//TODO: May have to just default as null and in the put method, if the slot is null, then put a head node in it. The post-ceding code after that is logically correct!\r\n\t\r\n\t\tsize = 0;\t//Redundant but helpful to see that the size is 0\r\n\t}", "private Map(int typeMap ) throws IllegalArgumentException\n {\n switch (typeMap){\n case 1:\n createMapOfFirstType();\n setAdjForFirstType();\n break;\n case 2:\n createMapOfSecondType();\n setAdjForSecondType();\n break;\n case 3:\n createMapOfThirdType();\n setAdjForThirdType();\n break;\n case 4:\n createMapOfFourthType();\n setAdjForFourthType();\n break;\n default:\n throw new IllegalArgumentException();\n }\n }", "public MapToken() {\n\t\tmData = new FastMap<String, Object>();\n\t}", "public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }", "MAP createMAP();", "protected void createMaps() {\n\t\tBlueSchellingCell bCell = new BlueSchellingCell();\n\t\tOrangeSchellingCell oCell = new OrangeSchellingCell();\n\t\tEmptyCell eCell = new EmptyCell();\n\t\tTreeCell tCell = new TreeCell();\n\t\tBurningTreeCell bTCell = new BurningTreeCell();\n\t\tEmptyLandCell eLCell = new EmptyLandCell();\n\n\t\tLiveCell lCell = new LiveCell();\n\t\tDeadCell dCell = new DeadCell();\n\t\tGreenRPSCell gcell = new GreenRPSCell();\n\t\tRedRPSCell rcell = new RedRPSCell();\n\t\tBlueRPSCell blcell = new BlueRPSCell();\n\t\tWhiteRPSCell wcell = new WhiteRPSCell();\n\n\t\tFishCell fCell = new FishCell();\n\t\tSharkCell sCell = new SharkCell();\n\n\t\tAntGroupCell aCell = new AntGroupCell();\n\n\t\tsegregation.put('b', bCell);\n\t\tsegregation.put('o', oCell);\n\t\tsegregation.put('e', eCell);\n\n\t\tgameOfLife.put('l', lCell);\n\t\tgameOfLife.put('d', dCell);\n\n\t\trps.put('g', gcell);\n\t\trps.put('r', rcell);\n\t\trps.put('b', blcell);\n\t\trps.put('w', wcell);\n\n\t\tspreadingWildfire.put('t', tCell);\n\t\tspreadingWildfire.put('b', bTCell);\n\t\tspreadingWildfire.put('e', eLCell);\n\n\t\twaTor.put('f', fCell);\n\t\twaTor.put('s', sCell);\n\t\twaTor.put('e', eCell);\n\n\t\tforagingAnts.put('a', aCell);\n\t\tforagingAnts.put('e', eCell);\n\t\tinitExportMap();\n\n\t\tinitCountMap();\n\t}", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }", "public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}", "public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }", "private void setUpHashMap(int number)\n {\n switch (number)\n {\n case 1:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n break;\n }\n case 2:\n {\n this.hourly.put(\"Today\",new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }\n case 3:\n {\n this.hourly.put(\"Today\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Tomorrow\", new ArrayList<HourlyForecast>());\n this.hourly.put(\"Day After Tomorrow\", new ArrayList<HourlyForecast>());\n break;\n }default:\n break;\n }\n }", "protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }", "public TimeMap2() {\n map = new HashMap<>();\n }", "private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}", "InfiniteMap<K,V> build();", "void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}", "public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}", "private void mapValues() {\n\t\tmap.put(1, \"I\");\r\n\t\tmap.put(5, \"V\");\r\n\t\tmap.put(10, \"X\");\r\n\t\tmap.put(50, \"L\");\r\n\t\tmap.put(100, \"C\");\r\n\t\tmap.put(500, \"D\");\r\n\t\tmap.put(1000, \"M\");\r\n\t}", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "private void initCountMap() {\n\t\tcountMap.put(\"cells.BlueSchellingCell\", 0);\n\t\tcountMap.put(\"cells.OrangeSchellingCell\", 0);\n\t\tcountMap.put(\"cells.LiveCell\", 0);\n\t\tcountMap.put(\"cells.DeadCell\", 0);\n\t\tcountMap.put(\"cells.TreeCell\", 0);\n\t\tcountMap.put(\"cells.BurningTreeCell\", 0);\n\t\tcountMap.put(\"cells.EmptyLandCell\", 0);\n\t\tcountMap.put(\"cells.EmptyCell\", 0);\n\t\tcountMap.put(\"cells.SharkCell\", 0);\n\t\tcountMap.put(\"cells.FishCell\", 0);\n\t\tcountMap.put(\"cells.AntGroupCell\", 0);\n\t\tcountMap.put(\"cells.BlueRPSCell\", 0);\n\t\tcountMap.put(\"cells.GreenRPSCell\", 0);\n\t\tcountMap.put(\"cells.RedRPSCell\", 0);\n\t\tcountMap.put(\"cells.WhiteRPSCell\", 0);\n\t}", "private void mapSetUp() {\n\t\tfor (int i = 0; i < allChar.length; i++) {\n\t\t\tmap.put(allChar[i], shuffledChar[i]);\n\t\t}\n\t}", "private void placesInit()\n {\n\n for(Map.Entry<String,Place> placeEntry: placesMap.entrySet())\n {\n addPlace(placeEntry.getKey(),placeEntry.getValue());\n }\n\n }", "public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }", "private static void createTypeMap() {\n\n }", "public void initMap() {\r\n\r\n\t\tproviders = new AbstractMapProvider[3];\t\r\n\t\tproviders[0] = new Microsoft.HybridProvider();\r\n\t\tproviders[1] = new Microsoft.RoadProvider();\r\n\t\tproviders[2] = new Microsoft.AerialProvider();\r\n\t\t/*\r\n\t\t * providers[3] = new Yahoo.AerialProvider(); providers[4] = new\r\n\t\t * Yahoo.RoadProvider(); providers[5] = new OpenStreetMapProvider();\r\n\t\t */\r\n\t\tcurrentProviderIndex = 0;\r\n\r\n\t\tmap = new InteractiveMap(this, providers[currentProviderIndex],\r\n\t\t\t\tUtilities.mapOffset.x, Utilities.mapOffset.y,\r\n\t\t\t\tUtilities.mapSize.x, Utilities.mapSize.y);\r\n\t\tmap.panTo(locationUSA);\r\n\t\tmap.setZoom(minZoom);\r\n\r\n\t\tupdateCoordinatesLimits();\r\n\t}", "public void initEvaluatorMap() {\n putObject(CoreConstants.EVALUATOR_MAP, new HashMap());\n }", "public CountingMap( Map<K, Integer> map ) {\n this.map = map;\n }", "private MapTransformer(Map map) {\n super();\n iMap = map;\n }", "public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }", "public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }", "@Override\n public HashMap<String, List<String>> initializeMapping(HashMap<String, List<String>> mapping) {\n mapping.put(\"xEncoder\", Arrays.asList(\"outtakeMotor1\", \"outtake1\"));\n mapping.put(\"yEncoder\", Arrays.asList(\"wobbleMotor\"));\n\n return mapping;\n }", "@Override\n public void create() {\n theMap = new ObjectSet<>(2048, 0.5f);\n generate();\n }", "private void initializeMap() {\n FLMotor = hardwareMap.get(DcMotor.class, \"FLMotor\");\n FRMotor = hardwareMap.get(DcMotor.class, \"FRMotor\");\n BLMotor = hardwareMap.get(DcMotor.class, \"BLMotor\");\n BRMotor = hardwareMap.get(DcMotor.class, \"BRMotor\");\n //ods = hardwareMap.get(OpticalDistanceSensor.class, \"ods\");\n //color = hardwareMap.get(ColorSensor.class, \"color\");\n //touch = hardwareMap.get(TouchSensor.class, \"touch\");\n gyro = hardwareMap.get(GyroSensor.class, \"gyro\");\n\n // Most robots need the motor on one side to be reversed to drive forward\n // Reverse the motor that runs backwards when connected directly to the battery\n BRMotor.setDirection(DcMotorSimple.Direction.FORWARD);\n BLMotor.setDirection(DcMotorSimple.Direction.REVERSE);\n FRMotor.setDirection(DcMotorSimple.Direction.FORWARD);\n FLMotor.setDirection(DcMotorSimple.Direction.REVERSE);\n }", "public static <K, V> HashMap<K, V> initHashMap() {\n\t\treturn new HashMap<K, V>();\n\t}", "protected WumpusMap() {\n\t\t\n\t}", "public Map(){\n this.matrix = new int[10][10];\n }", "public MapSum() {\n map = new HashMap<>();\n }", "public MyHashMap() {\n map = new HashMap();\n }", "public CjtMap(){\r\n cjtMap = new TreeMap();\r\n sequence = new Sequence(1, 0, 1, false);\r\n }", "public void method_9396() {\r\n super();\r\n this.field_8914 = Maps.newConcurrentMap();\r\n }", "public IntObjectHashMap() {\n resetToDefault();\n }", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "public void buildMap()\n {\n for(int letterNum=0; letterNum < myText.length()-myNum; letterNum++) {\n String key = myText.substring(letterNum,letterNum+myNum);\n String nextLetter = String.valueOf(myText.charAt(letterNum + myNum));\n if (!map.containsKey(key)) {\n ArrayList<String> lettersArray = new ArrayList<String>();\n lettersArray.add(nextLetter);\n map.put(key,lettersArray);\n }else\n {\n map.get(key).add(nextLetter);\n }\n }\n }", "private static void fillupmap(Map<String, Object> m) {\n\t\tRectangle r =new Rectangle(\"A\",2,3);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tr =new Rectangle(\"B\",4,1);\r\n\t\tm.put(r.getRname(), r);\r\n\t\tCircle c =new Circle(\"C\",3);\r\n\t\tm.put(c.getCname(),c);\r\n\t\tc =new Circle(\"D\",4);\r\n\t\tm.put(c.getCname(),c);\r\n\t\t\r\n\t}", "protected Map createPropertiesMap() {\n return new HashMap();\n }", "private void init() {\n UNIGRAM = new HashMap<>();\n }", "@PostConstruct\r\n public void init() {\n List<Person> personList = personRepository.findAll();\r\n for(Person person:personList)\r\n personHashMap.put(person.getId(),person);\r\n }", "public TimeMap() {\n timeMap = new HashMap<>();\n }", "protected void initBoatMap() {}", "public static void fill_map(){\n\t\tcategory_links_map.put(\"Categories\", \"Movies\");\n\t\tcategory_links_map.put(\"Actors\", \"Movies\");\n\t\tcategory_links_map.put(\"Movies\", \"Actors\");\n\t\tcategory_links_map.put(\"Artists\", \"Creations\");\n\t\tcategory_links_map.put(\"Creations\", \"Artists\");\n\t\tcategory_links_map.put(\"Countries\", \"Locations\");\n\t\tcategory_links_map.put(\"Locations\", \"Countries\");\n\t\tcategory_links_map.put(\"NBA players\", \"NBA teams\");\n\t\tcategory_links_map.put(\"NBA teams\", \"NBA players\");\n\t\tcategory_links_map.put(\"Israeli soccer players\", \"Israeli soccer teams\");\n\t\tcategory_links_map.put(\"Israeli soccer teams\", \"Israeli soccer players\");\n\t\tcategory_links_map.put(\"World soccer players\", \"World soccer teams\");\n\t\tcategory_links_map.put(\"World soccer teams\", \"World soccer players\");\n\t}", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "protected MapImpl() {\n }", "private void initMap(String day,int colIndex){\n position.put(day+\" 08\",new Pair(colIndex,1));\n position.put(day+\" 09\",new Pair(colIndex,2));\n position.put(day+\" 10\",new Pair(colIndex,3));\n position.put(day+\" 11\",new Pair(colIndex,4));\n position.put(day+\" 12\",new Pair(colIndex,5));\n position.put(day+\" 13\",new Pair(colIndex,6));\n position.put(day+\" 14\",new Pair(colIndex,7));\n position.put(day+\" 15\",new Pair(colIndex,8));\n position.put(day+\" 16\",new Pair(colIndex,9));\n position.put(day+\" 17\",new Pair(colIndex,10));\n position.put(day+\" 18\",new Pair(colIndex,11));\n position.put(day+\" 19\",new Pair(colIndex,12));\n position.put(day+\" 20\",new Pair(colIndex,13));\n }", "private Map(int id) {\n\t\tthis.id = Integer.valueOf(id);\n\t\tSystem.out.println(\"Initializing map: \" + this.toString() + \" (\" + this.id + \")\");\n\t}", "private void initData() {\n\t}", "private void createMapOfFirstType() {\n\n this.typeOfMap=1;\n matrixOfSquares[0][0] = createSquare( ColorOfFigure_Square.BLUE, true, 0, 0);\n matrixOfSquares[0][1] = createSquare( ColorOfFigure_Square.BLUE, false, 0, 1);\n matrixOfSquares[0][2] = createSquare(true, ColorOfFigure_Square.BLUE, true,0,2);\n matrixOfSquares[0][3] = null;\n matrixOfSquares[1][1] = createSquare( ColorOfFigure_Square.RED, true,1,1);\n matrixOfSquares[1][0] = createSquare(true, ColorOfFigure_Square.RED, true,1,0);\n matrixOfSquares[1][2] = createSquare( ColorOfFigure_Square.RED, true,1,2);\n matrixOfSquares[1][3] = createSquare( ColorOfFigure_Square.YELLOW, true,1,3);\n matrixOfSquares[2][0] = null;\n matrixOfSquares[2][1] = createSquare( ColorOfFigure_Square.GREY, true,2,1);\n matrixOfSquares[2][2] = createSquare( ColorOfFigure_Square.GREY, true,2,2);\n matrixOfSquares[2][3] = createSquare(true, ColorOfFigure_Square.YELLOW, true,2,3);\n\n }", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "public Map<String, Integer> getDataMap() {\n\t\tMap<String, Integer> dataMap = new HashMap<>();\n\t\tdataMap.putAll(temperature.getDataMap());\n\t\tdataMap.putAll(wind.getDataMap());\n\t\tdataMap.putAll(precipitation.getDataMap());\n\t\tdataMap.putAll(condition.getDataMap());\n\t\tdataMap.putAll(hazard.getDataMap());\n\t\tdataMap.putAll(wave.getDataMap());\n\t\t\n\t\treturn dataMap;\n\t}", "@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n private void populateMap(Map map, Node node) {\n Map.Entry entry = getMapEntry(node);\n if (entry != null) {\n map.put(entry.getKey(), entry.getValue());\n }\n }", "private void buildMap(int count, char type, String typeName) {\r\n\t\tfor (int i = 1; i <= count; i++) {\r\n\t\t\toriginalMaps.add(new MapType(\"map_\" + type + i, typeName, \"colony/map_\" + type + i));\r\n\t\t}\r\n\t}", "private void initData() {\n }" ]
[ "0.7555387", "0.7204864", "0.71369654", "0.6990948", "0.69277", "0.69098556", "0.687907", "0.6851686", "0.6830019", "0.6811185", "0.67502874", "0.6668687", "0.6645965", "0.66290015", "0.6612709", "0.6588077", "0.6579133", "0.6570574", "0.6564436", "0.6541919", "0.6528441", "0.65112597", "0.6504971", "0.6495382", "0.64936", "0.6483882", "0.64485806", "0.6448416", "0.6443597", "0.6427109", "0.63930523", "0.636328", "0.635849", "0.6356176", "0.6314757", "0.6297172", "0.6267004", "0.62564355", "0.62518394", "0.623244", "0.62298846", "0.62292707", "0.6223522", "0.620759", "0.61968184", "0.6177844", "0.6164514", "0.61524266", "0.6139091", "0.61229855", "0.61207247", "0.6117678", "0.6117673", "0.61150265", "0.6112521", "0.61096853", "0.6105202", "0.6095001", "0.6088806", "0.6077885", "0.6073126", "0.606569", "0.6057794", "0.60553384", "0.6039964", "0.6039408", "0.6033173", "0.60239923", "0.6017508", "0.6017217", "0.6002009", "0.5999583", "0.59932417", "0.59926975", "0.59814185", "0.59730804", "0.5971805", "0.597166", "0.59570044", "0.5953689", "0.5949968", "0.59451663", "0.59435844", "0.5942464", "0.5921447", "0.59165186", "0.59145015", "0.59106386", "0.5910295", "0.5904141", "0.5902625", "0.5893163", "0.58921903", "0.5891019", "0.58881944", "0.5883933", "0.58759177", "0.5874878", "0.5871798", "0.5866414", "0.5864473" ]
0.0
-1
Use nested for loops to create a square that is 4 4
public static void main(String Args[]) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n // **\r\n\r\n int rows = 6;\r\n int columns = 4;\r\n int i;\r\n int j;\r\n\r\n for (i = 1; i <= rows; i++) {\r\n //System.out.print(\"*\");\r\n //this inner loop runs its course (completely) for EACH TIME the outer loop runs.\r\n for (j = 1; j <= columns; j++) {\r\n if (j == 1 || j == columns || i == 1 || i == rows) {\r\n System.out.print(\"*\");\r\n } else\r\n System.out.print(\"#\");\r\n }\r\n //System.out.print(\"*\");\r\n System.out.println();\r\n }\r\n }", "public static void main(String[] args) {\n \n int num = 5;\n\n for(int i=1; i<=num; i++){\n\n for (int x=1; x<=i; x++){\n System.out.print(\" \");\n }\n for(int y = i; y<=num; y++ ) System.out.print(\"*\");\n\n System.out.println();\n }\n }", "public static void main(String[] args) {\n int i= 1; int j=1;\r\n\t\t/*for(i=1; i<=6; i++){\r\n\t\t\tfor(j=1; j<=6-i; j++){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t }\r\n\t\t\t for(j=1; j<=i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t } for(j=1; j<=6; j++){\r\n\t\t} System.out.print(\"*\");\r\n\t\t System.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\r\nfor(i=1; i<=7;i++){\r\n\tfor(j=1; j<=7-i; j++){\r\n\t\tSystem.out.println(\" \");\r\n\t}\r\n\tfor(j=1; j<=i; j++){\r\n\t\tSystem.out.print(\"*\");\r\n\t\r\n\t}\r\n}\r\n\r\n\t\t\r\n\t\t/*int num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+1-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t*/\r\n\t\t\r\n\t\tint num = 6;\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=num+6-i; j++){\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t/******* i=1 *=6\r\n\t\t***** i=2 *=5\r\n\t\t**** i=3 *=4\r\n\t\t*** i=4 *=3\r\n\t\t** i=5 *=2\r\n\t\t* i=6 *=1\r\n\t\t *=7 -i=6+1-i=num+1-i\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t/*\t****** i=1 * =6\r\n\t\t ***** i=2 * = 5\r\n\t\t ***\r\n\t\t **\r\n\t\t *\r\n\t\t\r\n\t*/\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(i=1; i<=num; i++){\r\n\t\t\tfor(j=1; j<=i-1; j++){\r\n\t\t\t\tSystem.out.println(\" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void createSquares() {\n for (int row = 0; row < BOARD_SIZE; row++) {\n for (int col = 0; col < BOARD_SIZE; col++) {\n playingBoard[row][col] = new Square();\n }\n }\n }", "public static void main(String[] args) {\n for (int i = 1; i <= 5; i++) {\n for (int j = 1; j <= 5; j++) {\n System.out.println(i + \" \" + j);\n }\n\n /*\n * I J\n * 1 1\n * 1 2\n * 1 3\n * 1 4\n * 1 5\n * 2 1\n * 2 2\n * 2 3\n * 2 4\n * 2 5\n * 3 1\n * --------\n * 5 1\n * 5 2\n * 5 3\n * 5 4\n * 5 5\n *\n *\n * */\n /*\n for(int i=1;i<=5;i++){\n }\n for i = 1\n ---------\n * i=1 , i = i+1 = 1 + 1 = 2\n * i=2 , = 2 + 1 = 3\n * i=3 , = 3 + 1 = 4\n * i=4,\n * */\n\n /*\n\n for i = 2\n ---------\n * i=2 , i = i+1 = 2 + 1 = 3\n * i=3 , = 3 + 1 = 4\n * i=4,\n * */\n /*int l;\n for ( l= 1;l <=10; l++){\n System.out.println(l);\n }*/\n\n /*int l =0;\n for ( ;; l++){\n System.out.println(l);\n }\n*/\n }\n }", "public static void main(String[] args) {\n\t\tint length = 9;\n\t\tint counter = 1;\n\t\t\tfor ( int x = (length+1)/2; x<=length;x++){\n\t\t\t\tfor (int j = x-counter; j>=0; j--){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tfor (int i =1;i<=counter;i++){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tcounter+=2;\n\t\t\t}\n\t\t\tcounter = length-2;\n\t\t\t\n\t\t\t// length = 9, counter is 7 , j = 1, i = 7, x=8\n\t\t\tfor ( int x = (length-1); x>=(length+1)/2; x--){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tfor (int j = 1; j<=x-counter; j++){\n\t\t\t\t\t//System.out.println(\"j is \"+ j);\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\t\n\t\t\t\t\n\t\t\t\tfor (int i =counter;i>=1;i--){\n\t\t\t\t\t\t\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tcounter-=2;\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tfor(int i=1; i<=4; i++) {\n\t\t\tfor(int j=1; j<=4; j++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//1, 1 2, 1 2 3\n\t\tfor(int i=1; i<=5; i++) {\n\t\t\tfor(int j=1; j<=i; j++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//5, 5 4, 5 4 3.....\n\t\tfor(int i=5; i>=1; i--) {\n\t\t\tfor(int j=5; j>=i; j--) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(j+ \" \");\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t//5, 4 4, 3 3 3.....\n\t\t\t\tfor(int i=5; i>=1; i--) {\n\t\t\t\t\tfor(int j=5; j>=i; j--) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.print(i+ \" \");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\n\t}", "public static void main(String[] args) {\n\r\n\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\tSystem.out.print(\"*\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\");\r\n\t\t\r\n\t\t\r\n\t\tfor(int j = 1; j <= 4; j++) {\r\n\t\t\tfor(int i = 1; i <= 6; i++) {\r\n\t\t\t\tSystem.out.print('*');\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\r\n\t\t*\t\t\t\t1\t\t\t1\r\n\t\t**\t\t\t\t2\t\t\t2\r\n\t\t***\t\t\t\t3\t\t\t3\r\n\t\t****\t\t\t4\t\t\t4\r\n\t\t*****\t\t\t5\t\t\t5\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 5;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t/*\t\t\t\tj(行号)\t\tk(*的个数)\t规律:j + k = 5 换句话说:k = 5 - j;\r\n\t\t****\t\t\t1\t\t\t4\r\n\t\t***\t\t\t\t2\t\t\t3\r\n\t\t**\t\t\t\t3\t\t\t2\r\n\t\t*\t\t\t\t4\t\t\t1\r\n\t\t*/\r\n\t\t\r\n\t\tfor (int j = 1; j <= 4;j++) {//控制行数\r\n\t\t\tfor(int k = 1; k <= 5 - j; k++) {//控制列数\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "private static void nestedFor(int i) {\n\t\tif (i == pows.length) {\n\t\t\tsjekkTall();\n\t\t\treturn;\n\t\t}\n\t\tint pow = pows[i];\n\t\t\n\t\tfor (int pow1 = 0; pow1 <= pow; pow1++) {\n\t\t\tpows1[i] = pow1;\n\t\t\tfor (int pow2 = 0; pow2+pow1 <= pow; pow2++) {\n\t\t\t\tpows2[i] = pow2;\n\t\t\t\tint pow3 = pow-pow1-pow2;\n\t\t\t\tpows3[i] = pow3;\n\t\t\t\tnestedFor(i+1);\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\t\n\t\t for(int j=1;j<=i;j++) {\n\t\t\t \n\t\t\t \n\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t}\n\t\t\t\n\t\t System.out.println(\"\");\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=1;i<=5;i++) {\n\t\t\t\t\t\t\n\t\t for(int j=5;j>=i;j--) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\tSystem.out.print(\"*\");\t\n\t\t}\n System.out.println();\t\t\n \n }\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(int a=1;a<=5;a++) {\n\t\t\t\n\t\t \n\t\t\tfor(int b=1;b<=a;b++) {\n\t\t\t\n\t\t \n\t\t\t\tSystem.out.print(\"*\");\n\t\t\n\t\t }\n\t\t System.out.println();\t\n\t\t\n\t\t}\n\t\t\n\t\t for(int c=1;c<=5;c++) {\n\t\t\t\n\t\t\t\n\t\t for(int d=4;d>=c;d--) {\n\t\t\t\n\t\t System.out.print(\"*\");\t\n\t\t\t\n\t\t}\n\t\t System.out.println();\t\n\t\t}\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t}", "public static void main (String[] args) {\n int[][] twoD = new int[3][4];\n// Where x is an integer\n// [[x, x, x, x],\n// [x, x, x, x],\n// [x, x, x, x]]\n\n// int[][][] threeD = new int[3][4][3];\n\n// 4x3\n int[][] twoDInit = {{1, 3, 5}, {4, 3, 5}, {1, 4, 5}, {4, 3, 5}};\n\n for (int i = 0; i < twoDInit.length; i++) {\n for (int j = 0; j < twoDInit[i].length; j++) {\n System.out.println(twoDInit[i][j]);\n }\n }\n\n for (int[] ints : twoDInit) {\n for (int anInt : ints) {\n System.out.println(anInt);\n }\n }\n\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 7; j++) {\n System.out.print(\"*\");\n }\n System.out.println();\n }\n\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < i + 1; j++) {\n System.out.print(\"*\");\n }\n System.out.println();\n }\n }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=1;i<=n;i++)\n\t\t{\n\t\t\tfor(int j=n;j>=i;j--)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=1;k<2*i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\t/*for(int l=2;l<=i;l++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}*/\n\t\t\tSystem.out.println();\n\t\t}\n\t\tfor(int i=1;i<=5;i++)\n\t\t{\n\t\t\tfor(int j=3;j<=30;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tfor(int k=1;k<=i;k++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint num=4;\r\n\t\tfor(int i=0;i<=num;i++) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int j=0;j<=num;j++) {\r\n\t\t\t\t\t\tif(j<=i && i+j>=num) \r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t\t\t\telse \r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t}", "public static void main(String[] args) {\n\t\tint n = 4;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= n; j++) {\n\t\t\t\tSystem.out.print(i * j + \"\\t\");// \\t means tab to make nice space\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t}", "public static void part1(){\n \n\t\tfor (int i = 1; i <= 15; i += 2){ \n \n \t\n \tfor (int j = 0; j < i; j++){\n \tSystem.out.print(\"*\");\n \n \t\t}\n \n \t\tSystem.out.println(\"\");\n\t\t\t\n \t}\n \n \t}", "private static long[][] generatePerfectSquares() {\n ArrayList<Long> a = new ArrayList<>(10000);\n ArrayList<Long> b = new ArrayList<>(10000);\n\n for (long i = 1; i < 1000000; i += 2) {\n long sqr = i * i;\n if ((i + 1) % 4 == 0) {\n a.add(sqr);\n }\n\n if ((i + 1) % 3 == 0) {\n b.add(sqr);\n }\n }\n\n long[][] res = new long[2][];\n res[0] = new long[a.size()];\n res[1] = new long[b.size()];\n\n for (int i = 0; i < a.size(); i++) {\n res[0][i] = a.get(i);\n }\n\n for (int i = 0; i < b.size(); i++) {\n res[1][i] = b.get(i);\n }\n\n return res;\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tchar space = ' ';\n\t\t\n\t\tfor(int i = 1; i <= 5; i++){\n\t\t\tfor(int l=5-i; l>=1; l--){\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tfor(int j = 1; j <= i; j++){\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tfor(int i = 1; i <= 5; i++){\n\t\t\tfor(int l = 1; l<i; l++){\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tfor(int j = 5; j >= i; j--){\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\tSystem.out.print(space);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint num = 5;\n\t\tfor(int i = 1;i<=num;i++) {\n\t\t\tfor(int j=1; j<=num;j++) {\n\t\t\t\tif(i==j || i+j ==num+1)\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\telse {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "private void createPointers() {\n\t\tSquare[] tempSquares = new Square[size*size];\n\t\tint counter = 0;\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int j = 0; j < size; j++) {\n\t\t\t\ttempSquares[counter] = squares[i][j];\n\t\t\t\tif (counter != 0) {\n\t\t\t\t tempSquares[counter - 1].setNext(tempSquares[counter]);\n\t\t\t\t}\n\t\t\t\tcounter++;\n\t\t }\n\t\t}\n\n\t\tfor (Row r: rows) {\n\t\t r.tellSquares(this);\n\t\t}\n\t\tfor (Column c: columns) {\n\t\t c.tellSquares(this);\n\t\t}\n\n/*\n\t\tSystem.out.println(\"_________\");\n\t\tSystem.out.println(\"kol paa min, length her er: \"+length);\n\t\tSystem.out.println(\"rad paa min, hoyde her er: \"+height);\n\t\tSystem.out.println(\"boks length: \"+boxes[0].length);\n\t\tSystem.out.println(\"boks length: \"+boxes[1].length);\n*/\n\n\t\tfor (int i = 0; i < length; i++) {\n\t\t for (int j = 0; j < height; j++) {\n\t\t\t\tboxes[j][i].tellSquares(this);\n\t\t }\n\t\t}\n }", "private void generateRows() {\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\trows[i]=new Row(squares[i]);\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\t for(int i =1; i<=5;i++){\n\n\t\t /*for (int j = 1 ; j<=5 ; j++){\n\n\t\t System.out.print(j+\" \");\n\n\t\t }*/\n\n\t\t for (int l =5 ;l >i ; l--){\n\n\t\t System.out.print(\" \");\n\n\t\t }\n\n\t\t for (int k =1; k<=i;k++){\n\n\t\t System.out.print(i);\n\n\t\t System.out.print(\" \");\n\n\t\t }\n\n\t\t System.out.println(\" layer no :\"+i);\n\n\t\t }\n\n\t\t for(int i =5; i>=1;i--){\n\n\t\t for (int j = 1 ; j<=5 ; j++){\n\n\t\t System.out.print(j+\" \");\n\n\t\t }\n\n\t\t for (int l =i ;l <5 ; l++){\n\n\t\t System.out.print(\" \");\n\n\t\t }\n\n\t\t for (int k =1; k<=i;k++){\n\n\t\t System.out.print(\"*\");\n\n\t\t System.out.print(\" \");\n\n\t\t }\n \n\t\t System.out.println(\" layer no :\"+i); \n\n\t\t }\n\n\t}", "private static void drawSquare(Graphics2D g, int pSize, int numOfSqr, int startX) {\r\n \r\n for(int i = 0; i < numOfSqr; i++) {\r\n g.setColor(Color.BLACK);\r\n g.fillRect(startX * i - numOfSqr, 0, numOfSqr, pSize);\r\n g.fillRect(0, startX * i - numOfSqr, pSize, numOfSqr);\r\n drawSquare(g, startX, numOfSqr, startX * i, pSize);\r\n \r\n }\r\n }", "public static void main(String[] args) {\n\t\tfor (int i = 9; i >= 1; --i) {\n\t\t\tfor (int j = 9; j > 2; j--)\n\t\t\n\t\t\n\t\tSystem.out.printf(\"%3d X %d = %3d \", j, i, j*i);\n\t\tSystem.out.println();\n\t\t}\n\t}", "public static void fourthProgram() {\n\t\tfor (int i = 1; i <= 4; i++) {\n\t\t\tfor (int j = 4; j > i; j--) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int k = 1; k <= i; k++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void main(String[] args){\n int i=1;\n int j, k;\n while(i<4){\n j=0;\n while(j<10){\n k=0;\n while(k<10){\n System.out.println(i+\"\"+j+\"\"+k); // i,j values must be inside of the inner loop\n k++;\n }\n j++;\n }\n i++;\n }\n\n }", "private static void assignment6() {\n\n\n for (int i = 0; i < 4;i++){\n System.out.println();\n for (int j = 0; j < 4; j++){\n// System.out.print(\" * \");\n if (i <= j){\n System.out.print(\" * \");\n } else {\n System.out.print(\" \");\n }\n }\n }\n }", "public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tint num=5;\r\n\t\tint c=num*2-1;//5\r\n\t\tfor(int j=0 ; j< c ; j++){//j: 0, 1, 2,3 4\r\n\t\t\t\r\n\t\t\tif(j<num) {///j: 0, 1, 2\r\n\t\t\t\t// 1 ,2,3 : 0+1, 1+1, 2+1\r\n\t\t\t\tfor(int i=0; i<j+1 ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}else {//j: 3,4\r\n\t\t\t\t//2,1 : 5-3, 5-4\r\n\t\t\t\tfor(int i=0; i<c-j ; i++) {\r\n\t\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static void calculateSquareOfNumbers() {\n int[] squareArray = new int[10];\n int squareOfNumber = 0;\n for (int i = 0; i < squareArray.length; i++) {\n squareOfNumber = (i + 1) * (i + 1);\n squareArray[i] = squareOfNumber;\n System.out.println((i + 1) + \" \" + squareOfNumber);\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tfor (int i = 1; i <= 5; i++) {\r\n\t\t\tfor (int j = 1; j <= i; j++) {\r\n\t\t\t\tif (j<=1) {\r\n\t\t\t\tfor (int m = 5 - j; m >= i; m--) {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}}\r\n\t\t\t\tSystem.out.print(\"* \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void sanjiao() {\n\t\t\tfor (int i = 1; i <5; i++) {\n\t\t\t\tfor(int j=1;j<=2*i-1;j++){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t}", "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 void generateSinglyEven(int size)\n\t{\n\t\tint[][] ranges = new int[4][2];\t\t//Array to store the min and max value, and min and max index for each quadrant\n\t\tint boxesInEachRowQ = size/2;\n\t\tint currentVal = 0;\n\t\tint nBoxesInEachQ = boxesInEachRowQ*boxesInEachRowQ;\n\t\tfor (int i=0; i<ranges.length; i++)\n\t\t{\n\t\t\tranges[i][0] = currentVal + 1;\t\t//Min value\n\t\t\tcurrentVal += nBoxesInEachQ;\n\t\t\tranges[i][1] = currentVal;\t\t\t//Max Value\n\t\t}\n\t\t//Switch the ranges\n\t\t/*\n\t\t * Switch Quadrant 3 and 4\n\t\t * Switch Quadrant 2 and 4\n\t\t */\n\t\tint[] temp = ranges[2];\n\t\tranges[2] = ranges[3];\n\t\tranges[3] = temp;\n\t\ttemp = ranges[1];\n\t\tranges[1] = ranges[3];\n\t\tranges[3] = temp;\n\t\t\n\t\t//Calculate the start and end indexes for each quadrant\n\t\tPoint[][] indexes = new Point[4][2];\n\t\tint currentRow = 0;\n\t\tint currentCol = 0;\n\t\tfor (int i=0; i<indexes.length; i++)\n\t\t{\n\t\t\tPoint start = new Point(currentRow, currentCol);\n\t\t\tindexes[i][0] = start;\n\t\t\tPoint end = new Point(start.x + boxesInEachRowQ-1, start.y + boxesInEachRowQ-1);\n\t\t\tindexes[i][1] = end;\n\t\t\tcurrentCol = end.y + 1;\n\t\t\tif (currentCol > size-1)\n\t\t\t{\n\t\t\t\tcurrentCol = 0;\n\t\t\t\tcurrentRow += boxesInEachRowQ;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Fill in the numbers\n\t\tfor (int i=0; i<ranges.length; i++)\n\t\t{\n\t\t\tthis.generateOdd(size, \n\t\t\t\t\t\t\t\t\tranges[i][0], \n\t\t\t\t\t\t\t\t\tranges[i][1], \n\t\t\t\t\t\t\t\t\tindexes[i][0], \n\t\t\t\t\t\t\t\t\tindexes[i][1]);\n\t\t}\n\t\t\n\t\t//Swap quadrant A and D\n\t\tint indexMiddle = boxesInEachRowQ/2;\n\t\tint rowsSwapped = 0;\n\t\tfor (int i=0, j=boxesInEachRowQ, k=indexMiddle+1, l=1 + boxesInEachRowQ + indexMiddle; i<indexMiddle; i++, j++, k++, l++)\n\t\t{\n\t\t\tfor (int a=0; a<indexMiddle; a++)\n\t\t\t{\n\t\t\t\t//Swap top\n\t\t\t\tint num = this.matrix[i][a];\n\t\t\t\tthis.matrix[i][a] = this.matrix[j][a];\n\t\t\t\tthis.matrix[j][a] = num;\n\t\t\t\t\n\t\t\t\t//Swap bottom\n\t\t\t\tnum = this.matrix[k][a];\n\t\t\t\tthis.matrix[k][a] = this.matrix[l][a];\n\t\t\t\tthis.matrix[l][a] = num;\n\t\t\t}\n\t\t\trowsSwapped++;\n\t\t}\n\t\t//Swap Center\n\t\tfor (int i=0; i<rowsSwapped; i++)\n\t\t{\n\t\t\tint num = this.matrix[indexMiddle][i+1];\n\t\t\tthis.matrix[indexMiddle][i+1] = this.matrix[boxesInEachRowQ + indexMiddle][i+1];\n\t\t\tthis.matrix[boxesInEachRowQ + indexMiddle][i+1] = num;\n\t\t}\n\t\t\n\t\t//Identify points to be swapped between B and C\n\t\tint highlightEachRow = boxesInEachRowQ/2-1;\n\t\tfor (int i=0, j=boxesInEachRowQ; i<boxesInEachRowQ; i++, j++)\n\t\t{\n\t\t\tfor (int a=size-highlightEachRow; a<size; a++)\t//because get second last index\n\t\t\t{\n\t\t\t\tint num = this.matrix[i][a];\n\t\t\t\tthis.matrix[i][a] = this.matrix[j][a];\n\t\t\t\tthis.matrix[j][a] = num;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n for (int i = 1; i < 3; i++){\n for(int j = 0; j < 4; j++){\n System.out.println(\"i=\" + i + \" j=\" + j);\n }\n }\n //2D arrays put arrays inside of arrays\n int[][] grid = {\n {1,2,3},\n {4,5,6},\n {7,8,9}\n };\n }", "public static int formingMagicSquare(List<List<Integer>> s) {\r\n // Write your code here\r\n int cost[] = {0,0,0,0,0,0,0,0};\r\n int t[][] = \r\n {\r\n {4,9,2,3,5,7,8,1,6},\r\n {4,3,8,9,5,1,2,7,6},\r\n {2,9,4,7,5,3,6,1,8},\r\n {2,7,6,9,5,1,4,3,8},\r\n {8,1,6,3,5,7,4,9,2},\r\n {8,3,4,1,5,9,6,7,2},\r\n {6,7,2,1,5,9,8,3,4},\r\n {6,1,8,7,5,3,2,9,4},\r\n };\r\n\r\n for(int i=0;i<8;i++)\r\n { \r\n cost[i] = Math.abs(t[i][0]-s.get(0).get(0)) + Math.abs(t[i][1]-s.get(0).get(1)) + Math.abs(t[i][2]-s.get(0).get(2));\r\n cost[i] = cost[i] + Math.abs(t[i][3]-s.get(1).get(0)) + Math.abs(t[i][4]-s.get(1).get(1)) + Math.abs(t[i][5]-s.get(1).get(2));\r\n cost[i] = cost[i] + Math.abs(t[i][6]-s.get(2).get(0)) + Math.abs(t[i][7]-s.get(2).get(1)) + Math.abs(t[i][8]-s.get(2).get(2));\r\n } \r\n\r\n Arrays.sort(cost);\r\n return cost[0];\r\n\r\n }", "public static void main(String[] args) {\n\t\tfor(int i=0; i<4; i++) {\n\t\t\tfor(int j=0; j<i; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int k=0; k<=i; k++) {\n\t\t\t\tSystem.out.print(i+\"\"+k);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t//*\n\t\t//**\n\t\t//***\n\t\t//****\n\t\tfor(int i=0; i<4; i++) {\n\t\t\tSystem.out.print(\"*\");\n\t\t\tfor(int j=0; j<i; j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0; i<4; i++) {\n\t\t\tfor(int j=1; j<=i; j++) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\tfor(int k=0; k<=i; k++) {\n\t\t\t\tSystem.out.print(i+\"\"+k);\n\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\n\t\t//향상된 for문\n\t\tint[]arr=new int[5];\n\t\tfor(int tmp : arr ) {\n\t\t\tSystem.out.println(tmp);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tfor (int i = 1; i <= 7; i++) { //outer loop for 7 rows\n\t\t String print=\"\";\n\t\t for(int j = 1; j <= i; j++) { //inner loop\n\t\t print=print+i;\n\t\t }\n\t\t System.out.println(print);\n\t\t}\n\n\t}", "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 }", "public void makeBoard2d() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n this.board2d[i][j] = this.board[(i * 3) + j];\n }\n }\n }", "public static void main(String[] args){\n\n String [] myStings = { \"N\", \"10*N\", \"100*N\", \"1000*N\" };\n\n int [][][][][] myNumbers = {{},{},{},{},{} }; \n\n for (String i : myStings){\n\n System.out.println(i);\n }\n\n // System.out.println(\"N \\n\" ); \n for(int a = 1; a <= 1000; a = a*10){\n\n \n for(int b = 2; b <= 2000; b = b *10){\n\n \n for(int c = 3; c <= 3000; c = c *10){\n \n \n for(int d = 4; d <= 4000; d = d *10){\n \n \n for(int e = 5; e <= 5000; e = e *10){\n\n \n }\n \n }\n \n }\n \n }\n\n }\n\n \n\n////////////////////////////////////////////\n\n /** //\n\n\n String [] myStings = { \"N\", \"10*N\", \"100*N\", \"1000*N\" };\n\n for (String i : myStings){\n\n System.out.println(i);\n }\n\n System.out.println(\"N \\t\"+\"10*N \\t\"+\"100*n \\t\"+\"1000*N\");\n\n // System.out.println(\"N \\n\" );\n for(int a = 1; a <= 1000; a = a*10){\n \n System.out.println(a);\n\n }\n\n\n // System.out.println(\"10*N \\n\" );\n for(int b = 2; b <= 2000; b = b *10){\n\n System.out.println(b);\n\n }\n\n \n // System.out.println(\"10*N \\n\" );\n for(int c = 3; c <= 3000; c = c *10){\n\n System.out.println(c);\n\n }\n\n\n // System.out.println(\"100*N \\n\" );\n for(int d = 4; d <= 4000; d = d *10){\n\n System.out.println(d);\n\n }\n \n\n // System.out.println(\"1000*N \\n\" );\n for(int e = 5; e <= 5000; e = e *10){\n\n System.out.println(e);\n\n }\n */\n \n//////////////////////////\n /** \n \n System.out.println(\"N \\n\" ); \n\n for(int x = 1; x <= 5; x++){\n\n System.out.println(x);\n\n }\n\n System.out.println(\"10*N \\n\" );\n for(int y = 10; y <= 50; y = y + 10){\n\n System.out.println(y);\n\n }\n\n System.out.println(\"100*N \\n\" );\n for(int z = 100; z <= 500; z = z + 100){\n\n System.out.println(z);\n\n }\n \n System.out.println(\"1000*N \\n\" );\n for(int q = 1000; q <= 5000; q = q + 1000){\n\n System.out.println(q);\n\n } \n \n\n String [] myNumbers = { \"N\", \"N*10\", \"N*100\", \"N*1000\" };\n\n\n for(String x : myNumbers ){\n\n System.out.println(x + \"\\t\");\n\n\n for(int y = 10; y <= 50; y = y + 10){\n\n System.out.println(y);\n \n }\n\n \n \n }\n*/\n\n////////////////////////////\n /** \n\n int [][][][] myNumbers = { {}, {}, {}, {} };\n\n for(int x = 1; x <= 5; x++){\n\n System.out.println(x +\"\\n\");\n \n for(int y = 10; y <= 50; y = y + 10){\n\n System.out.println( y +\"\\t\");\n \n for(int z = 100; z <= 500; z = z + 100){\n\n System.out.println( z +\"\\t\");\n\n \n for(int q = 1000; q <= 5000; q = q + 1000){\n\n // System.out.println( myNumbers[x][y][z][q]);\n\n // System.out.println( q +\"\\n\");\n \n } \n \n // System.out.println( z +\"\\t\");\n \n }\n \n // System.out.println( y +\"\\t\");\n \n }\n\n // System.out.println(x +\"\\t\");\n }\n*/\n \n\n////////////////////////////////////\n\n\n // System.out.println(x +\"\\t\" + y+\"\\t\" + z +\"\\t\" + q); \n\n /** // System.out.println(x +\"\\t\" + y+\"\\t\" + z +\"\\t\" + q +\"\\n\");\n\n\n int [][][][] myNumbers = { {1,2,3,4,5}, {10, 20, 30, 40, 50}, {100, 200, 300, 400, 500}, {1000, 2000, 3000, 4000, 5000} };\n \n for(int x = 1; x <= myNumbers.length; ++x){\n\n // System.out.println(myNumbers[x] +\"\\n\");\n \n for(int y = 10; y <= myNumbers.length; ++y){\n\n // System.out.println( myNumbers[][y] +\"\\t\");\n \n for(int z = 100; z <= myNumbers.length; ++z){\n\n // System.out.println( myNumbers[][][z] +\"\\t\");\n\n \n for(int q = 1000; q <= myNumbers.length; ++q){\n\n System.out.println( myNumbers[x][y][z][q]);\n } \n \n \n }\n \n \n }\n\n \n }\n\n */\n }", "private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }", "public static void main(String[] args) {\n\t\t\n\t\tint i, j;\n\n\t\tfor (i = 1; i <= 5; i++) {\n\n\t\t\tfor (j = 1; j <= i; j++) {\n\n\t\t\t\tSystem.out.print(j);\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "int main()\n{\n int n;\n cin >>n;\n int m = 11;\n for(int i=0; i<n; i++){\n cout << m*m << \" \";\n m += 4;\n }\n}", "public static void main(String[] args) {\n\t\tfor(int i=2;i<=9;i+=3)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=9;j++)\r\n\t\t\t{\r\n\t\t\t\tfor(int k=i;k<i+3&&k!=10;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(k+\"*\"+j+\"=\"+k*j+\"\\t\");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"\\n\\n\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n \n System.out.println(\"Enter value\");\n int n = sc.nextInt();\n \n for (int rowCount = 1; rowCount <= n; rowCount++){\n for (int space = 1; space <=n-rowCount; space++){\n System.out.print(\" \");\n }\n for (int star = 1; star<=rowCount; star++ ){\n System.out.print(\"*\");\n }\n System.out.println(\" \");\n }\n \n \n \n }", "public static void main(String[] args) {\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j <10 ; j++) {\n System.out.print(\"* \");\n\n }\n System.out.println();\n\n }\n }", "public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}", "public static void m6() {\r\n\tfor(int i=1;i<=5;i++) {\r\n\t\t\r\n\t\tfor(int j=1;j<=(5-i);j++) {\r\n\t\tSystem.out.print(\" \");\t\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int k =1;k<=i;k++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\n\t\tfor(int i = 0; i<=4; i++) {\r\n\t\t\tfor(int j = 5; j>i; j--) {\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=1;j<=8;j=j*2)\r\n\t\t\t{\r\n\t\t\t\tif(j%2==0)\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.print(\"#\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\r\n\t}\r\n\r\n}", "public static void main(String[] args) {\n\r\n\r\n\t\t\tfor (int i = 0; i < 3; i++) {\r\n\r\n\t\t\t\tfor (int j=0; j < 4; j++) {\r\n\r\n\t\t\t\t\tSystem.out.println(i * j);\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\r\n\r\n\t\t}", "public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }", "public static void main(String[] args) {\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n for( int x = 1 ; x <= 5 ; x++){\n System.out.print(x + \" \");\n }\n System.out.println();\n\n\n\n // count from 1 to 5\n // repeat this 3 times\n\n for( int i = 1 ; i <= 3 ; i++){// nested loop, write inside loop first , then\n // outside loop ,then put entire inside loop into outside loop\n System.out.println(\"ITERATION : \" +i);\n\n for( int x = 1 ; x <= 5 ; x++){ // this is inside loop print 1-5\n System.out.print(x + \" \");\n }\n System.out.println();\n }\n // count from 1 to 10-->> print only odd numbers\n // repeat this 4 times\n\n }", "public static void main(String[] args) {\n\n for (int i = 1; i <= 6; i++) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tSystem.out.print(\"*\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n }", "public static void m9() {\r\n\tfor(int i =1;i<=5;i++) {\r\n\t\t\r\n\t for(int j =1;j<=i;j++) {\r\n\t\t System.out.print(\" \");\r\n\t }\r\n\t char ch ='A';\r\n\t for(int k=0;k<=(5-i);k++) {\r\n\t System.out.print(ch);\r\n\t ch++;\r\n\t }\r\n\t System.out.println();\r\n\t}\r\n}", "public static void m13() {\r\n\tfor(int i=1;i<=4;i++) {\r\n\t\tfor(int j =1;j<=(4-i);j++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int j=1;j<=i;j++) {\r\n\t\t\tSystem.out.print(ch+\" \");\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\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 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}", "public static void main(String[] args) {\n\t\tint[][] mat = {\n\t\t\t\t{1,2,3,4,5},\n\t\t\t\t{6,7,8,9,10},\n\t\t\t\t{11,12,13,14,15},\n\t\t\t\t{16,17,18,19,20}\n\t\t};\n\t\tfor(int x: generate(4,5,mat)){\n System.out.print(x +\" \");\n\t\t}\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tArrayList<ArrayList> matrix = new ArrayList<ArrayList>();\r\n\r\n\t\tfor (int i = 0; i <= 10; i++) {\r\n\t\t\tArrayList<Integer> row = new ArrayList<Integer>();\r\n\r\n\t\t\tfor (int j = 0; j <= 10; j++)\r\n\t\t\t\trow.add(i * j);\r\n\r\n\t\t\tmatrix.add(row);\r\n\r\n\t\t}\r\n\t\tfor (ArrayList ar : matrix)\r\n\t\t\tSystem.out.println(ar);\r\n\t}", "public static void main(String[] args) {\n\n\t\tint i, j, k;\n\n\t\tfor (i = 1; i <= 9; i++)\n\t\t{\n\t\t for (j = 1; j <= i; ++j)\n\t\t System.out.print(j);\n\n\t\t for (k = 9 - i; k >= 1; k--)\n\t\t System.out.print(\"*\");\n\n\t\t System.out.println(\"\");\n\t\t}\n\n\t}", "public void printIsoceles() {\n int n = rows;\n //the number of stars on the bottom row is just less than twice the number of rows\n //until you reach the number of stars needed for the bottom row increment each row by two stars starting with the first star (1, 3, 5, 7)\n for (int c = 1; c < n*2; c += 2 ) {\n //add the number of spaces based on what row you are. First row's number of spaces is half of the last row (which is n) minus one to account for center star. Rate of number of spaces decreasing is half that of the row increment. This number decreases as the row number increases.\n for (int d = 0; d < ((n-1)-c/2); d++){\n System.out.print(\" \");\n }\n //add the number of star for each iteration increasing the stars\n for (int k = 0; k < c ; k++){\n System.out.print(\"*\");\n }\n System.out.println();\n }\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 static void m12() {\r\n\tint m =1;\r\n\tfor(int i =1;i<=4;i++) {\r\n\t\tfor(int j =1;j<=(4-i);j++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tchar ch ='A';\r\n\t\tfor(int k =1;k<=m;k++) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tm+=2;\r\n\t\tSystem.out.println();\r\n\t}\r\n}", "public static void main(String[] args) {\r\n\t\tint numRows = 15;\r\n\t\tfor(List<Integer> list : generate(numRows)){\r\n\t\t\tfor( Integer i : list ){\r\n\t\t\t\tSystem.out.print(i + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }", "public static void main(String[] args) {\t\t\r\n\t\tint row=8;\r\n\t\tint column=8;\t\t\r\n\t\tfor (int i=1; i<=row; i++) {\r\n\t\t\t\t\t\t\r\n\t\t\tfor (int j=1; i%2==1&&j<=column; j+=2) {\t\t\t\t\r\n\t\t \tSystem.out.print(\"B\");\r\n\t\t \tSystem.out.print(\"W\");\r\n\t\t\t}\t\r\n\t\t\tfor(int k=1;i%2==0 && k<=column; k+=2) {\r\n\t\t\t\tSystem.out.print(\"W\");\r\n\t\t\t\tSystem.out.print(\"B\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\t\t\r\n\t\t/*!!!! BETTER !!!\r\n\t\t * \r\n\t\t * for(int i=1;i<=8;i++) {\r\n \r\n \t\t\t for(int j=1;j<=8;j++) {\r\n \t\t\t if ((i+j)%2!=0) {\r\n \t\t\t System.out.print(\"W \");\r\n \t\t\t }else {\r\n \t\t\t System.out.print(\"B \");\r\n \t\t }\r\n \t\t }\r\n \t \tSystem.out.println();\r\n\t\t }\r\n\r\n\t\t */\r\n\t}", "public static void main(String args[]) \n {\n int i, j, row=6;\n //OUTER LOOP FOR ROWS \n for(i=0; i<row; i++) \n { \n //INNER LOOP FOR COLUMN \n for(j=0; j<=i; j++) \n { \n //USING PRINT NOT PRINTLN BECAUSE WE WANT THE STARS ON THE SAME LINE \n System.out.print(\"* \"); \n } \n //CHANGES LINE OF THE STARS\n System.out.println(); \n } \n }", "public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }", "public void resetSquares(){\n int x = 0;\n int y = 0;\n for (int i = 0; i < board.length;i++){\n if(x == row){\n x = 0;\n }\n x++;\n for(int j = 0; j < board.length; j++){\n if(y == column){\n y = 0;\n }\n y++;\n board[i][j] = new Square(x, y);\n }\n }\n }", "public static void main(String[] args) {\n int height;\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Nhập chiều cao hình tam giác\");\n height = scan.nextInt();\n for(int i = 1; i <= height; ++i) {\n for(int j = height; j >i; --j) \n System.out.print(\" \");\n for(int j = 1 ; j <= 2 * i - 1; ++j) \n System.out.print(\"*\");\n System.out.println(\"\");\n }\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}", "public void addSquaresToList()\n {\n int i = 0;\n int size = 50;\n int spacing = 0;\n int interval = size + spacing;\n\n while (i < 8)\n {\n sqList.add(new Square(interval * i, 0, size, \"red\"));\n i++;\n }\n }", "public static void pyramid2(int rowCount) {\n\t\tint number = 1;\n\t\tfor (int i = rowCount; i > 0; i--) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor (int k = 1; k <= number; k++) {\n\t\t\t\tSystem.out.print(k + \" \");\n\t\t\t}\n\t\t\tnumber++;\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void multTable(int n) {\n int row, col;\n\n for (row = 1; row <= n; row += 1) {\n for (col = 1; col <= n; col += 1) {\n System.out.print(row * col + \" \");\n }\n System.out.println();\n }\n }", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tfor(int i=0;i<7;i++){\r\n\t\t\tfor(int j=0;j<4;j++){\r\n\t\t\t\t\r\n\t\t\t\tif((i==0 || i==3 || i==6) && j<4){\r\n\t\t\t\t\tSystem.out.print(\" * \");\r\n\t\t\t\t}else if((j==0 || j==3) && i<7){\r\n\t\t\t\t\tSystem.out.print(\" * \");\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}", "private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }", "public static void main(String[] args) {\n\t\tfor (int i =1; i<=10;i++){\r\n\t\t\tfor (int n=1;n<=10;n++ ){\r\n\t\t\t\tSystem.out.print(i*n + \" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "private void generateCombination() {\r\n\r\n\t\tfor (byte x = 0; x < field.length; x++) {\r\n\t\t\tfor (byte y = 0; y < field[x].length; y++) {\r\n\t\t\t\tfield[x][y].setValue((byte) newFigure(Constants.getRandom()));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}", "private static void eval7(){\n int z = 0;\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n for(int n = m + 1; n < 51; n++){\n for(int o = n + 1; o < 52; o++){\n Evaluator.evaluate(i, j, k, l, m, n, o);\n }\n }\n }\n }\n }\n }\n }\n }", "public static void main(String[] args) {\nint i,space,rows,k=0;\n Scanner sc=new Scanner(System.in);\nSystem.out.print(\"Enter number of rows\");\nrows=sc.nextInt();\nfor(i=1;i<=rows;i++)\n{\n\tfor(space=1;space<=(rows-i);space++)\n\t{\n\t\tSystem.out.print(\" \");\n\t}\n\twhile(k !=(2*i-1))\n\t{\n\t\tSystem.out.print(\"* \");\n\t\tk++;\n\t}\n\tk=0;\n\tSystem.out.println();\n}\n\t}", "public static void main(String[] args) {\n\r\nint sale[][][] = new int[][][] {{{1,2,3,4},{5,6,7,8}},{{9,10,11,12,13},{14,15,16,17}}};\r\n\r\nfor(int i=0; i<2; i++)\r\n\tfor(int j=0; j<2; j++)\r\n\t\tfor( int k=0; k<2; k++)\r\n\t\t\tSystem.out.println(sale[i][j][k]);\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tint a=4;\r\n\t\tint b=16;\r\n\t\tfor (int i=1; i<5; i++){\r\n\t\t\tfor (int j=b; j>=a; j=j-4){\r\n\t\t\t\tSystem.out.print(j);\r\n\t\t\t\tSystem.out.print(\"\\t\");\r\n\t\t\t}\r\n\t\t\tb--;\r\n\t\t\ta--;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\tfor(int row = 1; row <= 10; row++)\r\n\t{\r\n\t\tfor(int column=1; column <=10; column++)\r\n\t\t{\r\n\t\t\tSystem.out.print(String.format(\"%4d\", row * column));\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public static void main (String[] args){\n Scanner s=new Scanner(System.in);\n int n=s.nextInt();\n if(n%2==1)\n {\n n=n/2;\n n++;\n }\n else\n {\n n=n/2;\n }\n for(int i=1;i<=n;i++)\n {\n for(int k=1;k<=i-1;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<=((2*n-1)-2*(i-1));j++)\n {\n if(j==1||j==((2*n-1)-2*(i-1)))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n for(int i=2;i<=n;i++)\n {\n for(int k=1;k<=n-i;k++)\n {\n System.out.print(\" \");\n }\n for(int j=1;j<i*2;j++)\n {\n if(j==1||j==(i*2-1))\n System.out.print(\"*\");\n else\n System.out.print(\" \");\n }\n System.out.println();\n }\n\t}", "public static void main(String[] args) {\n\t\tint c = 7;\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(c+\" \");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }", "public void print() {\n\t\tcounter++;\n\t\tSystem.out.print(counter + \" \");\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int j = 0; j < size; j++) {\n\t\t\t\tSystem.out.print(squares[j][i].getValue());\n\t\t }\n\t\t System.out.print(\"//\");\n\t\t}\n\t\tSystem.out.println();\n }", "public static int Main()\n\t{\n\t\tint x;\n\t\tint y;\n\t\tint i;\n\t\tint j;\n\t\tx = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\ty = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\tfor (i = 1;x / i > 0;i = i * 2)\n\t\t{\n\t\t;\n\t\t}\n\t\tfor (j = 1;y / j > 0;j = j * 2)\n\t\t{\n\t\t;\n\t\t}\n\t\ti = i / 2;\n\t\tj = j / 2; //i,j????2?????\n\t\tif (i > j)\n\t\t{\n\t\t\tx = x * j / i;\n\t\t}\n\t\telse\n\t\t{\n\t\t\ty = y * i / j;\n\t\t}\n\t\twhile (x != y)\n\t\t{\n\t\t\tx = x / 2;\n\t\t\ty = y / 2;\n\t\t}\n\t\tSystem.out.print(x);\n\n\n\n\n\n\n\t}", "public static void tenthProgram() {\n\t\tfor(int i=1;i<=4;i++) {\n\t\t\tfor(int j=1;j<=i-1;j++) {\n\t\t\t\tSystem.out.print(\" \");\t\t\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}", "public static void main(String[] args) {\n\n int level = 50;\n for(int j=0; j<level; j++){\n for(int i=0; i<level-j; i++){\n System.out.print(\" \");\n }\n for(int k=0; k<=j; k++){\n System.out.print(\"* \");\n }\n System.out.println(\"\");\n }\n }", "public static void main(String[] args) {\n\t\tfor(int i = 1, j = i + 10; i < 5; i++, j = i * 2) \r\n\t\t{\r\n System.out.println(\"i= \" + i + \" j= \" + j);\r\n\t\t}\r\n\t\tfor(int i=0, j=i+99; i<101; i++, j=i/2 ) {\r\n\t\t\tSystem.out.println(\"i= \" +i + \" j= \"+j);\r\n\t}\r\n\t\t\r\n\t\tint n=0;\r\n\t\twhile(n<10)\r\n\t\t{ System.out.println(n);\r\n\t\tn++;\r\n\t\t}\r\n\t\t\r\n//\t int a = 1;\r\n//\t int b = 2;\r\n//\t int c = 3;\r\n//\t \r\n//\t a += 5;\r\n//\t b *= 4;\r\n//\t c += a * b;\r\n//\t c %= 6;\r\n//\t System.out.println(\"a = \" + a);\r\n//\t System.out.println(\"b = \" + b);\r\n//\t System.out.println(\"c = \" + c);\r\n\r\n\r\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"Iput the number of rows \");\n\t\tint row = sc.nextInt();\n\t\tfor (int i=1;i<=row;i++) {\n\t\t\tfor (int j=row;j>=i;j--) {\n\t\t\tSystem.out.print(\" \");\n\t\t\tfor(j=1;j<=i;j++) {\n\t\t\t\tSystem.out.print(\" *\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t\t}\n\t}\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 static void main(String[] args) {\r\n\t\t\r\n\t\tfor(int i = 1;i<= 7; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<= i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\tfor(int i = 6; i>=1; i--)\r\n\t\t{\r\n\t\t\tfor(int j = 1;j<=i; j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(j+\" \");\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\nint a1=0;\r\nint a2=1;\r\nint a3=a1+a2;\r\nfor(int row=1;row<=5;row++)\r\n{\r\n\tfor(int col=1;col<row;col++)\r\n\t{\r\n\t\tSystem.out.print(a3+\" \");\r\n\t\ta3=a1+a2;\t//0+1=1\t\t1+1=2 \r\n\t\ta1=a2;\t\t//0=1 1=1\t2=2\r\n\t\ta2=a3;\t\t//1=1 1=1\t1=1\r\n\t}\r\n\tSystem.out.println();\r\n}\r\n\t\r\n}", "public static void main(String[] args) {\n for(int i = 0; i < 10; i++) {\n for(int j = 0; j < 10; j++) {\n System.out.printf(\"[%d %d]\", i, j);\n }\n System.out.println();\n }\n\n }", "public static void main(String[] args) {\n\tfor(int k=1; k<=3;k++)\r\n\t{\r\n\t\tfor(int i=1; i<=9; i++)\r\n\t\t {\r\n\t\t\tSystem.out.println();\r\n\t\t for(int j=3*k-1; j<=3*k+1;j++)\r\n\t\t {\r\n\t\t if(j!=10)\r\n\t\t System.out.printf(j+\"*\"+i+\"=\"+i*j+\"\\t\");\r\n\t\t }\r\n\t\t }\r\n\t}\t\r\n }" ]
[ "0.67458975", "0.66819984", "0.6629231", "0.65628386", "0.6489601", "0.6476295", "0.63325536", "0.62806886", "0.6271943", "0.62716013", "0.6263503", "0.62319905", "0.622995", "0.6216099", "0.6215063", "0.6200041", "0.6183899", "0.61773586", "0.61735636", "0.6167504", "0.6152242", "0.61516875", "0.6150791", "0.6138819", "0.6119259", "0.611146", "0.6110852", "0.61005366", "0.6093734", "0.6093515", "0.6086748", "0.60833144", "0.60660815", "0.60584456", "0.6051816", "0.6039081", "0.6011455", "0.6008097", "0.6000739", "0.5984079", "0.59809154", "0.5980385", "0.5964495", "0.59487295", "0.59418696", "0.5940215", "0.5937919", "0.59355646", "0.5934778", "0.5931055", "0.59284556", "0.5921252", "0.59131753", "0.5903615", "0.58991563", "0.5888473", "0.58767503", "0.5860174", "0.5857221", "0.5853774", "0.58485657", "0.58467305", "0.5830656", "0.5810092", "0.5803158", "0.57901436", "0.5782679", "0.5778128", "0.57746434", "0.5767245", "0.57561904", "0.5754798", "0.57483006", "0.57340467", "0.57338005", "0.57133776", "0.5710108", "0.5698777", "0.56937736", "0.56764823", "0.56672955", "0.5665145", "0.5648781", "0.5648645", "0.56462765", "0.56308216", "0.56291854", "0.5624234", "0.56219214", "0.5620187", "0.56174165", "0.56124794", "0.5608309", "0.55974567", "0.55940473", "0.55938345", "0.5587149", "0.5584559", "0.55771035", "0.5575507", "0.5571805" ]
0.0
-1
System.out.println("Setting up")); score += 5;}
@Before public void setUp() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hitAlienScore() {\r\n //Add 5 to the score\r\n score += 5;\r\n System.out.println(\"Current Score = \"+score);\r\n }", "public void addScore()\n {\n score += 1;\n }", "public static void incrementScore() {\n\t\tscore++;\n\t}", "void increaseScore(){\n\t\t currentScore = currentScore + 10;\n\t\t com.triviagame.Trivia_Game.finalScore = currentScore;\n\t }", "public void setBonusScore() {\r\n count = count+50;\r\n }", "public static void score() {\n\t\tSystem.out.println(\"SCORE: \");\n\t\tSystem.out.println(player1 + \": \" + score1);\n\t\tSystem.out.println(player2 + \": \" + score2);\n\t}", "public void addOneToScore() {\r\n score++;\r\n }", "public void setScore(int score)\n\t{\n\t\tthis.score += score;\n\t}", "public void setScore(int score) { this.score = score; }", "public void setScore(int score) {this.score = score;}", "public void updatePlayerScore()\n\t{\n\t\tthis.score = (int)(getBalance() - 500) - (getNumberOfLoans()*500); \n\t}", "public static void calculateScore(){\n boolean gameOver = false;\n int score = 3000;\n int levelCompleted = 8;\n int bonus = 200;\n\n System.out.println(\"Running method calculateScore: \");\n\n if(score < 4000){\n int finalScore = score + (levelCompleted*bonus);\n System.out.println(\"Your final score = \" + finalScore);\n }else{\n System.out.println(\"The game is still on\");\n }\n\n System.out.println(\"Exit method calculateScore--\\n\");\n }", "public void rightScored()\n\t{\n\t\tscoreR++;\n\t}", "public void addScore(int n){\n\t\tscore += n;\n\t}", "public static void main(String[] args) {\n\n // if else statements\n boolean gameOver = false;\n int score = 5000;\n int levelCompleted = 5;\n int bonus = 100;\n\n // Run the method here\n calculateScore();\n calculateScore2(true, 800, 8, 200); // Pass information into method through arguments\n\n if(score > 4000){\n //gameOver = false;\n System.out.println(\"Is it game over = \" + gameOver);\n System.out.println(\"New score! Your score is = \" + score);\n }else{\n gameOver = true;\n System.out.println(\"Is it game over = \" + gameOver);\n System.out.println(\"Try again! Your score is = \" + score);\n }\n\n if(gameOver){\n int finalScore = score + (levelCompleted*bonus);\n System.out.println(\"Your final score = \" + finalScore);\n }else{\n System.out.println(\"The game is still on\");\n }\n\n }", "private void scoregain() {\n \tif (playerturn%2==0) {\n \tscoreplayer1 = scoreplayer1+2;}\n if(playerturn%2==1) {\n \tscoreplayer2 = scoreplayer2+2;\n }\n }", "@Override\n\tpublic void printScore() {\n\n\t}", "public void updateScore() {\n\n Main.rw.readFile();\n setScore(Main.rw.getStackInfo());\n\n\n }", "public static void main(String[] args) {\n\n\t\tcalculateScore();\n\t\t\n\t\tcalculateScoreParameters(true, 800, 5, 100);\n\t\tcalculateScoreParameters(true, 10000, 8, 200);\n\t\t\n\t\t\n\t\tint highScore = calcuateScoreInt(true, 800, 5, 100);\n\t\tSystem.out.println(\"Your high score was \" +highScore);\n\t\t\n\t\t\n\t\tboolean gameOver = true;\n\t\tint score = 800;\n\t\tint levelCompleted = 5;\n\t\tint bonus = 100;\n\t\t\n\t\tif(gameOver)\n\t\t{\n\t\t\tint finalScore = score +(levelCompleted*bonus);\n\t\t\tSystem.out.println(\"Your final score was \" + finalScore);\n\t\t}\n\t\t\n\t\tscore = 10000;\n\t\tlevelCompleted= 8;\n\t\tbonus = 200;\n\t\t\n\t\tif(gameOver)\n\t\t{\n\t\t\tint finalScore = score +(levelCompleted*bonus);\n\t\t\tSystem.out.println(\"Your final score was \" + finalScore);\n\t\t}\n\t\t\n\t}", "public void addScore(int score) {\n currentScore += score;\n }", "public void addPoints(int earnedPoints) {score = score + earnedPoints;}", "public void updateScore(int score){ bot.updateScore(score); }", "public synchronized void setScore(Integer score) {\n this.score += score;\n }", "public void incrementScore(int increment) {\n score = score + increment;\n }", "void setScore(long score);", "static void bonus() {\n\t\tSystem.out.println(\"Yearly bonus is 20000\");\n\n\t}", "public void increaseScore(){\n this.inc.seekTo(0);\n this.inc.start();\n this.currentScore++;\n }", "void updateScore () {\n scoreOutput.setText(Integer.toString(score));\n }", "public void train() {\r\n\t\texp += 2;\r\n\t\tenergy -= 5;\r\n\t\tSystem.out.println(\"Gained 2 experience.\");\t\r\n\t}", "public static void main(String[] args) {\n int newScore = calculateScore(\"Rain\", 500);\n System.out.println(\"New score is \" + newScore);\n calculateScore(75); // rida 18-20 jaoks\n }", "public static void main(String[] args) {\n\t\tboolean isComplete = true;\n \n // set the int variable to 121\n\t\tint awesomeLevel = 121;\n \n // set the int variable equal to awesomeLevel multiplied by 2\n\t\tint epicLevel = awesomeLevel * 2;\t\n \n // uncomment the line below\n\t\tSystem.out.println(epicLevel);\n\n\t}", "public void updatescore() {\n scorelabel.setText(\"\" + score + \" points\");\n if (100 - score <= 10) win();\n }", "public static void main(String[] args) {\n int score = 100; // statement. Expression is score = 100\n if (score > 99) { // expression is score > 99\n System.out.println(\"You got the high score\"); // expression is \"You got the high score\"\n score = 0; // expression\n }\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tint startGame;\n\n\n\t\t\n\t\tScanner numb = new Scanner(System.in);\n\t\tScanner str = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please to start enter a username: \");\n\t\tusername = str.nextLine();\n\t\tSystem.out.println(\"\\n\\n\\t\\t\"+username+\", You are welcome to....\\n\\t\\tWho Wins A Million!!\");\n\t\tSystem.out.println(\"\\n\\t\\tPress 1 to enter\\n\\t\\t(Or 0 to quit)\");\n\t\tstartGame = numb.nextInt();\n\t\t\n\t\t\n\t\tif (startGame == 1) {\n\t\t\t\n\t\t\t//if(totalScore >= 0) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"So how well do you know Cameroon ?\\n\\n\");\n\t\t\t\t\n\t\t\t\tquestionNo = 1;\n\t\t\t\tSystem.out.println(questionNo+\". Who is the President of Cameroon? \\n\\na. Maurice Kamto \\tb. Paul Biya \\nc. Cabral Libii \\td. Joshua Oshi\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". How many administrative divisions does Cameroon have ?\\n\\na. 15 \\t\\t\\tb. 12 \\nc. 8 \\t\\t\\td. 10\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". Which of the following is the most populated town ?\\n\\na. Yaounde \\t\\tb. Bafoussam \\nc. Douala \\t\\td. Bamenda\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". When did Cameroon gained its independence ?\\n\\na. 1950 \\t\\tb. 1960 \\nc. 1961 \\t\\td. 1951\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\tquestionNo++;\n\t\t\t\t\n\t\t\t\tSystem.out.println(questionNo+\". What is the total area of Cameroon in square kilometers ?\\n\\na. 475 441 \\t\\tb. 475 442 \\nc. 475 443 \\t\\td. 475 444\");\n\t\t\t\tuserAnswer = str.nextLine();\n\t\t\t\tanswerTest();\n\t\t\t\tquestionScores();\n\t\t\t\tSystem.out.println(\"\\t\\t\\tScore: \"+userScore()+\"\\n\\n\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tSystem.out.println(\".....................................\");\n\t\t\t\tSystem.out.println(username+\" Statistics\");\n\t\t\t\tSystem.out.println(\".....................................\\n\");\n\t\t\t\tSystem.out.println(\"Total Questions Attempted: \"+questionNo);\n\t\t\t\tSystem.out.println(\"Total Correct Answers: \"+correctQuestions);\n\t\t\t\tSystem.out.println(\"Total Score: \"+totalScore);\n\t\t\t\tSystem.out.println(\"Money obtained: \"+prizeMoney);\n\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\n\t\t}else System.out.println(\"Exiting\");\n\t\t\n\t\tSystem.out.println(\"\\nEnd of the game!\");\n\t}", "@Override\n\tpublic void inputScore() {\n\n\t}", "public void run() {\n if(ClickerGame.CPS > ClickerGame.CPSHighscore || ClickerGame.CPSHighscore.equals(0)) {\n ClickerGame.CPSHighscore = ClickerGame.CPS;\n }\n\n ClickerGame.CPS = 0;\n ClickerGame.button.setText(\"CPS: \" + ClickerGame.CPS);\n }", "public void gameOver(){ // will be more complex in processing (like a fadey screen or whatever, more dramatic)\n System.out.println();\n System.out.println(\"Three strikes and you're out! You're FIRED!\");\n gameOver = true;\n }", "private static void Firstcommentary() {\n\t\tSystem.out.println(\" Sachin Scored highest Score \");\n\t\t\n\t}", "protected void setScore(int s)\r\n\t{\r\n\t\tGame.score = s;\r\n\t}", "public void setAwayScore(int a);", "public static void createScore(){\n\t}", "public void updateScore(){\n scoreChange++;\n if(scoreChange % 2 == 0){\n if(score_val < 999999999)\n score_val += 1;\n if(score_val > 999999999)\n score_val = 999999999;\n score.setText(\"Score:\" + String.format(\"%09d\", score_val));\n if(scoreChange == 10000)\n scoreChange = 0;\n }\n }", "public void addToScore(int score)\n {\n this.score += score;\n }", "public void addScore(int s) {\n setScore(getScore() + s);\n }", "public void setScore(int score)\n {\n this.score = score;\n }", "public void addScore(int score);", "@Override\npublic void update(int score) {\n\t\n}", "private void sketchScore() {\r\n View.sketch(score, this.getSize().width + 15, 0);\r\n }", "void programming() {\n\t\tSystem.out.println(\"Programming is amazing\");\n\t}", "public void add_to_score(int num){\n score+=num;\n }", "public static void main(String[] args) {\n\t\tint score = 0;\n\t\t// 2. Ask the user a question \n\t\tString answer = JOptionPane.showInputDialog(\"Who is the greatest basketball player of all time?\");\n\t\t// 3. Use an if statement to check if their answer is correct\n\t\tif (answer.equalsIgnoreCase(\"Michael Jordan\") || answer.equalsIgnoreCase(\"Jordan\") ) {\n\t\t// 4. if the user's answer was correct, add one to their score \n\t\t\tscore = score + 1; }\n\t\t// 5. Create more questions by repeating steps 1, 2, and 3 below. \n\t\tanswer = JOptionPane.showInputDialog(\"How many rings does Michael Jordan have?\");\n\t\tif (answer.equalsIgnoreCase(\"6\") || answer.equalsIgnoreCase(\"six\") ) {\n\t\tscore = score + 1; \n\t\t}\n\t\tanswer = JOptionPane.showInputDialog(\"What player scored the most points in one game?\");\n\t\tif (answer.equalsIgnoreCase(\"Wilt Chamberlain\")) {\n\t\tscore = score + 1;\n\t\t}\n\t\tanswer = JOptionPane.showInputDialog(\"Who won the most career NBA championships as a player?\");\n\t\tif (answer.equalsIgnoreCase(\"Bill Russell\")) {\n\t\tscore = score + 1;\n\t\t}\n\t\tanswer = JOptionPane.showInputDialog(\"What team drafted Kobe Brayant?\");\n\t\tif (answer.equalsIgnoreCase(\"Charlotte Hornets\") || answer.equalsIgnoreCase(\"Hornets\") ) {\n\t\tscore = score + 1;\n\t\t}\n\t\tanswer = JOptionPane.showInputDialog(\"Who is the shortest player of all-time?\");\n\t\tif (answer.equalsIgnoreCase(\"Muggsy Bogues\") || answer.equalsIgnoreCase(\"Tyrone Bogues\") ) {\n\t\tscore = score + 1;\n\t\t}\n\t\t// 6. After all the questions have been asked, print the user's score\n\t\tJOptionPane.showMessageDialog(null, \"You scored \" + score + \".\");\n\t\t\n\t}", "private void updateScore() {\n\t\tscoreString.updateString(Integer.toString(score));\n\t}", "public static void main(String[] args) {\n\t\tint a = 10;\n\t\tSystem.out.println(\"the score is\" + a);\n\t\t\n\t\t\n\t\t// a = a + 2\n\t\ta+=2;\n\t\tSystem.out.println(a);\n\t\t\t\t\n\t\t\n\t\t\n\t\tint k = 10;\n\t\t\n\t\tk -= 1; // k = k - 1;\n\t\t\n\t\tSystem.out.println(k);\n\t\t\n\t\tk/= 2; // k = k/2\n\t\tSystem.out.println(k);\n\t\t\n\t\tint j = 10;\n\t\tj = j + 2;\n\t\tj += 2;\n\t\tj++; // ++j;\n\t\tSystem.out.println(j);\n\t\tint c = 10;\n\t\tc++;\n\t\tSystem.out.println(\"c++ is \" + c);\n\t\tint d = 10;\n\t\t++d;\n\t\tSystem.out.println(\"s++ is \" + d);\n\t\t\n\t}", "public void showScore()\n {\n showText(\"Score:\" + score,550,50);\n }", "public void addScore(){\n\n // ong nuoc 1\n if(birdS.getX() == waterPipeS.getX1() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX1() + 50){\n score++;\n bl = false;\n }\n\n //ong nuoc 2\n if(birdS.getX() == waterPipeS.getX2() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX2() + 50){\n score++;\n bl = false;\n }\n\n // ong nuoc 3\n if(birdS.getX() == waterPipeS.getX3() +50){\n bl = true;\n }\n if (bl == true && birdS.getX() > waterPipeS.getX3() + 50){\n score++;\n bl = false;\n }\n\n }", "public void topScore() {\n\t\tif (playern.getExp() >= 100) {\n\t\t\tSystem.out.println(\"You become a Warrior and win the game\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "public void setScore (int newScore)\n {\n this.score = newScore;\n }", "public static void main(String[] args) {\n\n\t\tint result = 1 + 2 ; // 1 + 2 = 3\n\t\tSystem.out.println(\" 1 + 2 = \" + result );\n\t\tint previousResult = result ;\n\t\tSystem.out.println(\" previousResult = \" + previousResult );\n\t\t\n\t\tresult = result - 1; // 3 - 1 = 2\n\t\tSystem.out.println(\" 3 - 1 = \" + result );\n\t\tSystem.out.println(\" previousResult = \" + previousResult );\n\t\t \n\t\tresult = result * 10; // 2 * 10 = 20\n\t System.out.println(\" 2 * 10 = \" + result );\n\t \n\t result = result / 5; // 20 / 5 = 4\n\t System.out.println(\" 20 / 5 = \" + result );\n\t \n\t result = result % 3; // the reminder of(4 % 3)\n\t System.out.println(\" 4 % 3 = \" + result );\n\t \n\t // result = result + 1;\n\t result++; // 1 + 1 = 2\n\t System.out.println(\" 1 + 1 = \" + result );\n\t \n\t // result = result - 1;\n\t result--; // 2 - 1 = 2\n\t System.out.println(\" 2 - 1 = \" + result );\n\t \n\t //result = result + 2;\n\t result += 2; // 1 + 2 = 3\n\t System.out.println(\" 1 + 2 = \" + result );\n\t \n\t //result = result * 10;\n\t result *= 10; // 3 * 10 = 30\n\t System.out.println(\" 3 * 10 = \" + result );\n\t \n\t //result = result / 3\n\t result /= 3; // 30 / 3 = 10\n\t System.out.println(\" 30 / 3 = \" + result );\n\t \n\t //result = result - 2\n\t result -= 2; // 10 - 2 = 8\n\t System.out.println(\" 10 - 2 =\" + result );\n\t \t\t\n// IF THEN STATEMENT\n\t \n\t boolean isAlien = false;\n\t if (isAlien == false) {\n\t System.out.println(\"It is not an alien!\");\n\t System.out.println(\" And I am scared of aliens\");\n\t \n\t }\n\t \n\t int topscore = 100;\n\t if (topscore >= 100){\n\t System.out.println(\" you got the high score\");\n\t \n\t }\n\t \n\t int secondtopscore = 90;\n\t if (topscore > secondtopscore && topscore > 90) {\n\t System.out.println(\"topscore is greater than secondtopscore and equal to topscore\");\n\t }\n\n\t \n\t \n\t if ((topscore > 100 ) || (secondtopscore < 100 ) ) {\n\t\t System.out.println(\"Either or both of the condition are true\");\n\t }\n\t \n\t \n\t ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t \n\t \n\t \n\t \n\t \n\t \t\t\n\t \t\n\n\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t \n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\t}", "public static void main(String[] args) {\n\t\tint score = 0;\n\n\t\t// 3. Ask the user a riddle. Here are some ideas: bit.ly/some-riddles\n\t\tString answer1 = JOptionPane.showInputDialog(\"What gets wetter and wetter the more it dries?\");\n\n\t\t// 4. If they got the answer right, pop up \"correct!\" and increase the score by one\n\t\t// 5. Otherwise, say \"wrong\" and tell them the answer\n\t\tif (answer1.equals(\"towel\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: towel.\");\n\t\t}\n\n\t\t// 6. Add some more riddles\n\n\t\tString answer2 = JOptionPane.showInputDialog(\"What kind of room has no doors or windows?\");\n\n\t\tif (answer2.equals(\"mushroom\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: mushroom.\");\n\t\t}\n\n\t\tString answer3 = JOptionPane.showInputDialog(\"Which word in the dictionary is spelled incorrectly?\");\n\n\t\tif (answer3.equals(\"incorrectly\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: incorrectly.\");\n\t\t}\n\n\t\tString answer4 = JOptionPane.showInputDialog(\"What invention lets you look right through a wall?\");\n\n\t\tif (answer4.equals(\"window\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: window.\");\n\t\t}\n\n\t\tString answer5 = JOptionPane.showInputDialog(\"What has a neck but no head?\");\n\n\t\tif (answer5.equals(\"bottle\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Correct!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Wrong! The correct answer is: bottle.\");\n\t\t}\n\n\t\t// 2. Make a pop up to show the score.\n\t\tJOptionPane.showMessageDialog(null, \"Your score is: \" + score);\n\n\t}", "public void calcScore(int score) {\r\n\t\tif (initFinish)\r\n\t\t\tthis.score += score * this.multy;\r\n\t\t// TODO delete\r\n//\t\tSystem.out.println(\"score: \" + this.score + \"multy: \" + this.multy);\r\n\t}", "int score();", "int score();", "@Override\n\tpublic void checkScore() {\n\t\t\n\t}", "public void setScore(int score){\n\t\tthis.score = score;\n\t}", "public void awardPoints(int points)\n {\n score += points ;\n }", "public static void main(String[] args) {\n\t\tint score = 0;\n\t\t// 2. Ask the user a question\n\t\tString input = JOptionPane.showInputDialog(null, \"What is a?: 2a-18=-4a:\");\n\t\t// 3. Use an if statement to check if their answer is correct\n\t\tif (input.equals(\"3\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You are correct, good job!\");\n\n\t\t\tscore++;\n\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"You are incorrect, sorry. But don't worry, every mistake is a learning experience!\");\n\t\t}\n\t\t// 4. if the user's answer was correct, add one to their score\n\n\t\t// 5. Create more questions by repeating steps 1, 2, and 3 below.\n\t\tString answer = JOptionPane.showInputDialog(null, \"Which side of the Roman Empire fell? A: Eastern B: Western\");\n\t\tif (answer.equals(\"B\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Congrants, you got it correct!\");\n\t\t\tscore++;\n\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"Sorry, but wrong answer. Nice try though!\");\n\t\t}\n\t\tJOptionPane.showMessageDialog(null,\"You have now completed the quiz, good job!\");\n\t\t// 6. After all the questions have been asked, print the user's score\n\t\tSystem.out.println(score);\n\t}", "public void setScore(int score) {\r\n this.score = score;\r\n }", "public void setScore(int score) {\r\n this.score = score;\r\n }", "manExp15(){ \r\n\r\n\tcount++; \r\n\r\n\tSystem.out.println(count); \r\n\r\n\t}", "@Test\r\n\tpublic void incrementScoretest() \r\n\t{\r\n\t\tscoreBehavior.incrementScore();\r\n\t\tassertEquals(1, scoreBehavior.score());\r\n\t\t\r\n\t\tscoreBehavior.incrementScore();\r\n\t\tassertEquals(2, scoreBehavior.score());\r\n\t}", "public double getTotalScore(){\n // System.out.print(\"\\nQUIZZ TOTAL \" + quizTotal);\n return quizTotal;\n}", "public void incrementWin(){wins += 1;}", "void addScore(double score){\n\t\tsumScore+=score;\n\t\tnumScores++;\n\t\taverage = sumScore/numScores;\n\t}", "public void setScore(int score) {\n this.score = score;\n }", "public static void main(String[] args) {\n\t\tint score = 0;\n\t\t// 2. Ask the user a question\n\t\tString q1 = JOptionPane.showInputDialog(\"what is the square root of nine ?\");\n\t\tif (q1.equals(\"three\") || q1.equals(\"3\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\tString q2 = JOptionPane.showInputDialog(\"12 x 12\");\n\t\tif (q2.equals(\"144\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\tString q3 = JOptionPane.showInputDialog(\"what is 1+2+3+4+5+6+7+8+9+10 ?\");\n\t\tif (q3.equals(\"55\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\tString q4 = JOptionPane.showInputDialog(\"what is the strongest substance on earth ?\");\n\t\tif (q4.equals(\"diamond\")) {\n\t\t\tJOptionPane.showMessageDialog(null, \"you got it right!!\");\n\t\t\tscore++;\n\t\t} else {\n\t\t\tJOptionPane.showMessageDialog(null, \"sorry you were wrong\");\n\t\t}\n\t\t// 3. Use an if statement to check if their answer is correct\n\n\t\t// 4. if the user's answer is correct\n\n\t\t// -- add one to their score\n\n\t\t// 5. Create more questions by repeating steps 1, 2, and 3 below.\n\n\t\t// 6. After all the questions have been asked, print the user's score\n\t\tJOptionPane.showMessageDialog(null, \"you got \" + score + \" out of 4, great job!\");\n\t}", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setScore(int score) {\n this.score = score;\n }", "public void setup(){\n\t\tprogramGrade = keyboard.nextInt();\n\t\texamGrade = keyboard.nextInt();\n\t}", "public void incrementScore(int amount){\n\t\tthis.score += amount;\n\t}", "void bake() {\n\t\tSystem.out.println(\"Bake for 25 mins at 350\\u00b0\");\n\t}", "public void setScore(int score)\n\t{\n\t\tthis.score=score;\n\t}", "public void incrementScore(int val) {\n score += val;\n }", "public static void experience(){\n PlayerStats.currentEXP += (12*AC + 8*totalHP);\n System.out.println(\"You gained \" +(12*AC + 8*totalHP)+ \" experience!\");\n }", "public int getScore(){\n \treturn 100;\n }", "public void increaseScore(int p) {\n score += p;\n //Minden novelesnel megnezzuk, hogy elertuk-e a gyozelem szukseges pandaszamot.\n if(score >= 25 && game.getSelectedMode() == Game.GameMode.FinitPanda){\n //Ha elertuk, szolunk a jateknak hogy vege.\n game.SaveHighScore(score);\n game.gameOver();\n }\n }", "public Score(){\n\t\tscore = 0;\n\t\tincrement = 0; //how many points for eating a kibble. Changed to zero here because adjustScoreIncrement's extra points begin at 1 anyway\n\t}", "public static void main(String[] args) {\nint score = 91;\nString grade;\nif (score >90)\n{\n\tgrade = \"A\";\n}\n\n\n\nelse if (score>=80)\n{\n\tgrade = \"B\";\n}\n//THis is to test Git\n//THis is to test Git\n//THis is to test Git2\n//This is to test the brach made by gitdemo\n//Change from GitX\nelse \n{\n\tgrade = \"C\";\n}\nSystem.out.println(grade);\n}", "public void setScore(double score) {\r\n this.score = score;\r\n }", "public void addToScore(int ammount){\n\t\tscore+=ammount;\n\t}", "public static void main(String[] agrs){\n double kilometers = (1.609334 * 100);\n int highScore=50;\n\n if(highScore==50) {\n System.out.println(\"This is an expression\");\n }\n\n //Challenge\n //In the following code that i will type below, write downd\n //what parts of the code are expressinos\n\n int score = 100;\n if(score>90) {\n System.out.println(\"You got the high score!\");\n score=0;\n }\n\n //The expressions above are =,100, sout, the string in sout\n\n\n\n\n\n\n\n\n\n }", "public void incrementScore(int inc){\n\t\tscoreboard.incrementScore(inc);\n\t}", "public static void AdditonGameMethod() {\n\t\t\t\t\n\t\t\t\tint hardness = 5;\n\t\t\t\tint hardnessStep = 2;\n\t\t\t\tint score = 0;\n\t\t\t\t\n\t\t\t\t// Set up my for loop to go through the number of rounds\n\t\t\t\tint numberOfRounds = 3;\n\t\t\t\tfor(int roundNumber = 1; \n\t\t\t\troundNumber <= numberOfRounds; \n\t\t\t\troundNumber = roundNumber + 1){\n\t\t\t\t\t//System.out.println(\"Inside the for loop. Round: \" + roundNumber);\n\t\t\t\t\tSystem.out.print(\"Round \" + roundNumber + \" of \" + numberOfRounds + \". \");\n\t\t\t\t\tboolean isAnswerCorrect = getAndCheckStudentAnswer(hardness);\n\t\t\t\t\tif(isAnswerCorrect){\n\t\t\t\t\t\tSystem.out.print(\"Your score was \" + score + \" and is now \");\n\t\t\t\t\t\tscore = score + hardness;\n\t\t\t\t\t\tSystem.out.print(score + \". \");\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(roundNumber<numberOfRounds){\n\t\t\t\t\t\t\tSystem.out.print(\"Your hardness was \" + hardness + \" and is now \");\n\t\t\t\t\t\t\thardness = hardness * hardnessStep;\n\t\t\t\t\t\t\tSystem.out.println(hardness + \".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"Your score is \" + score + \". \");\n\t\t\t\t\t\tif(roundNumber<numberOfRounds){\n\t\t\t\t\t\t\tSystem.out.print(\"Your hardness was \" + hardness + \" and is now \");\n\t\t\t\t\t\t\tif(hardness>5){\n\t\t\t\t\t\t\t\thardness = hardness / hardnessStep;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println(hardness + \".\");\n\t\t\t\t\t\t\t\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\tSystem.out.print(\"\\nThe game is complete. \");\n\t\t\t\tSystem.out.println(\"Your final score was \" + score );\n\t\t\t}", "public void scoringTrick(){\n wizardRule();\n winner.tricksWon++;\n winner = new Player();\n }", "SpeechAwardPoints(int rating){\n\n currentPoints = rating;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }", "private static void SecondUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "public void setScore(int paScore) {\n this.score = paScore;\n }", "public void calculateScore() {\n\n turnScore();\n\n if (turn == 1) {\n p1.setScore(p1.getScore() - turnScore);\n\n } else if (turn == 2) {\n p2.setScore(p2.getScore() - turnScore);\n\n }\n\n\n }", "public void incGamesPlayed() {\n gamesPlayed++;\n }", "public void incrementScore(int scoreToAdd) {\n this.score += scoreToAdd;\n }" ]
[ "0.7210809", "0.7193922", "0.7177763", "0.7021652", "0.68845195", "0.6788975", "0.6728954", "0.66268426", "0.65340745", "0.65258676", "0.65161043", "0.65102154", "0.6502849", "0.64501506", "0.64367586", "0.64363307", "0.6421206", "0.6417718", "0.6413713", "0.63987726", "0.639027", "0.6377", "0.63754404", "0.6374472", "0.6363619", "0.6356945", "0.63550127", "0.634376", "0.63356006", "0.6335232", "0.632788", "0.6322994", "0.6315346", "0.6311601", "0.6278626", "0.6269556", "0.62604743", "0.624284", "0.62426734", "0.6239944", "0.6234207", "0.62336886", "0.6224851", "0.62214154", "0.62207496", "0.62152433", "0.6203788", "0.6201384", "0.61963445", "0.61945397", "0.61941195", "0.6191844", "0.6180275", "0.6178424", "0.617822", "0.6164465", "0.616133", "0.61551875", "0.61539507", "0.61525464", "0.61495256", "0.61495256", "0.614717", "0.6144131", "0.61362565", "0.6135163", "0.6135127", "0.6135127", "0.6131314", "0.6125768", "0.6121878", "0.61159676", "0.6112036", "0.61070365", "0.6106771", "0.6098889", "0.6098889", "0.6098889", "0.6098889", "0.6097758", "0.60947603", "0.60936755", "0.60933906", "0.6093234", "0.6084513", "0.6080581", "0.60779697", "0.6071663", "0.6071366", "0.6068843", "0.6065593", "0.60638076", "0.6062339", "0.605984", "0.6059372", "0.6057958", "0.6042627", "0.6025279", "0.60209525", "0.60152656", "0.601498" ]
0.0
-1
Ang's suggestion on getting annotation values
public static String getClassAnnotationValue(Class<RegExp> classType, Class<Author> annotationType, String attributeName) { String value = null; Annotation annotation = classType.getAnnotation(annotationType); if (annotation != null) { try { value = (String) annotation.annotationType().getMethod(attributeName) .invoke(annotation); } catch (Exception ex) { System.out.println("Failed loading class annotations"); } } return value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAnnotation();", "public Object handleAnnotation(AnnotationMirror annotation) {\n @SuppressWarnings(\"unchecked\")\n List<AnnotationValue> arrayMembers = (List<AnnotationValue>)annotation.getElementValues().values().iterator().next().getValue();\n return (String)arrayMembers.iterator().next().getValue();\n }", "DataMap getCustomAnnotations();", "int getAnnotationSourceValue();", "Annotation getAnnotation();", "@Override\n public String getAnnotation() {\n return annotation;\n }", "public String getAnnotation () {\n return annotation;\n }", "public interface AnnotationValue {\n}", "public interface Annotation {\n\t\n\t/** Return the unique ID associated with the annotation */\n\tpublic String getId();\n\n\t/** Return the type of the annotation (such as \"laughter\", \"speaker\") according to Alveo */\n\tpublic String getType();\n\n\t/** Return the label assigned to the annotation\n\t */\n\tpublic String getLabel();\n\n\t/** Return the start offset of the annotation\n\t */\n\tpublic double getStart();\n\n\t/** Return the end offset of the annotation\n\t */\n\tpublic double getEnd();\n\n\t/** Return the <a href=\"http://www.w3.org/TR/json-ld/#typed-values\">JSON-LD value type</a>\n\t */\n\tpublic String getValueType();\n\n\t/** Return a mapping containing URIs as keys corresponding to fields, and their matching values\n\t * This is used for converting to and from JSON\n\t *\n\t * The URIs correspond to JSON-LD URIs and therefore also to RDF predicate URIs on the server side\n\t *\n\t * @return a URI to value mapping\n\t */\n\tpublic Map<String, Object> uriToValueMap();\n\n\tpublic Document getAnnotationTarget();\n\n\n}", "com.google.cloud.datalabeling.v1beta1.AnnotationValue getAnnotationValue();", "public String getAnnotation() {\n return annotation;\n }", "public Vector getSampleAnnotationFieldNames();", "public Annotation getAnnotation() {\n return annotation;\n }", "Set<String> annotations();", "public ElementMap[] getAnnotations() {\r\n return union.value();\r\n }", "boolean hasAnnotationValue();", "public Element[] getAnnotations() {\r\n return union.value();\r\n }", "public ElementList[] getAnnotations() {\r\n return union.value();\r\n }", "com.google.cloud.datalabeling.v1beta1.AnnotationValueOrBuilder getAnnotationValueOrBuilder();", "@PropertyGetter(role = ANNOTATION)\n\tList<CtAnnotation<? extends Annotation>> getAnnotations();", "public String getAnnotations() {\n\t\treturn annotations;\n\t}", "public String annotation() {\n return this.innerProperties() == null ? null : this.innerProperties().annotation();\n }", "public String[] getAnnotationList(String annotationKeyType);", "public String[] getAllFilledAnnotationFields();", "public String\n getAnnotationName() \n {\n return pAnnotationName;\n }", "public String getSampleAnnotation(int column, String key);", "public Annotations getAnnotations() {\n\t\treturn annotations;\n\t}", "public abstract Annotations mo30682c();", "public org.tigr.microarray.mev.cgh.CGHDataObj.ICGHDataRegion[][] getAnnotations();", "public List<Annotation> getAnnotations() {\n return this.annotations.obtainAll();\n }", "public Annotation getAnnotation(long j) {\n return this.annotations.obtainBy(j);\n }", "Annotation readAnnotation(int annotationID);", "public DrawingComponent getAnnotation()\n\t{\n\t\treturn this.annotation;\n\t}", "public JavaAnnotation getAnnotation( String name );", "public abstract AnnotationMap mo30683d();", "public XSObjectList getAnnotations() {\n\treturn (fAnnotations != null) ? fAnnotations : XSObjectListImpl.EMPTY_LIST;\n }", "public String[] getElementAnnotation(int index, String attr);", "public Annotation getAnnotationParam()\n\t{\n\t\treturn annotationParam;\n\t}", "public\r\n interface IAnnotation {\r\n\r\n /**\r\n * @return The type of the annotation\r\n */\r\n IType getAnnotationType() throws CompileException;\r\n\r\n /**\r\n * Returns the value of the <var>name</var>d element:\r\n * <dl>\r\n * <dt>{@link Boolean}</dt>\r\n * <dt>{@link Byte}</dt>\r\n * <dt>{@link Character}</dt>\r\n * <dt>{@link Double}</dt>\r\n * <dt>{@link Float}</dt>\r\n * <dt>{@link Integer}</dt>\r\n * <dt>{@link Long}</dt>\r\n * <dt>{@link Short}</dt>\r\n * <dd>\r\n * A primitive value\r\n * </dd>\r\n * <dt>{@link String}</dt>\r\n * <dd>\r\n * A string value\r\n * </dd>\r\n * <dt>{@link IField}</dt>\r\n * <dd>\r\n * An enum constant\r\n * </dd>\r\n * <dt>{@link IClass}</dt>\r\n * <dd>\r\n * A class literal\r\n * </dd>\r\n * <dt>{@link IAnnotation}</dt>\r\n * <dd>\r\n * An annotation\r\n * </dd>\r\n * <dt>{@link Object}{@code []}</dt>\r\n * <dd>\r\n * An array value\r\n * </dd>\r\n * </dl>\r\n * <p>\r\n * Notice that {@code null} is <em>not</em> a valid return value.\r\n * </p>\r\n */\r\n Object getElementValue(String name) throws CompileException;\r\n }", "@Override\n\tpublic Annotation[] getAnnotations() {\n\t\treturn null;\n\t}", "public abstract Annotations getClassAnnotations();", "public List<Annotation> getMembers();", "public String [] getAnnotationList(String fieldName, int [] indices);", "@Override\r\n public void annotate(Annotation annotation) {\r\n// System.out.println(\"Tokens\");\r\n// for(CoreLabel token : annotation.get(CoreAnnotations.TokensAnnotation.class)){\r\n for(int i=0;i<annotation.get(CoreAnnotations.TokensAnnotation.class).size();i++){\r\n CoreLabel token = annotation.get(CoreAnnotations.TokensAnnotation.class).get(i);\r\n// System.out.println(token.word() +\", tokenIndex = \"+i);\r\n if(token.word().equals(sch)) {\r\n// positions.add(token.index());\r\n token.set(SearchAnnotation.class,i); //index of the token is saved\r\n\r\n }\r\n }\r\n }", "public AnnotationJava[] getAnnotations() {\n\t\treturn annotations;\n\t}", "public static String getUser() {\n return annotation != null ? annotation.user() : \"Unknown\";\n }", "public AnnotationLocation getAnnotationLocation() {\n return annotationLocation;\n }", "public interface SourceAnnotation {\n\n void annotate(AnnotationHolder holder, Document document, int sourceOffset);\n\n}", "private static Set<String> getAnnotationParameters(DetailAST annotationNode) {\n final Set<String> annotationParameters = new TreeSet<>();\n DetailAST annotationChildNode = annotationNode.getFirstChild();\n\n while (annotationChildNode != null) {\n if (annotationChildNode.getType() == TokenTypes.ANNOTATION_MEMBER_VALUE_PAIR) {\n annotationParameters.add(annotationChildNode.getFirstChild().getText());\n }\n annotationChildNode = annotationChildNode.getNextSibling();\n }\n return annotationParameters;\n }", "@Override\r\n\tpublic Annotation annotate() {\n\t\treturn null;\r\n\t}", "public XbaseWithAnnotationsGrammarAccess.XAnnotationElementValuePairElements getXAnnotationElementValuePairAccess() {\n\t\treturn gaXbaseWithAnnotations.getXAnnotationElementValuePairAccess();\n\t}", "public static void main(String[] args) throws Exception {\n\n getAnnotationValue();\n }", "public A annotation() {\n\t\treturn proxy(annotation, loader, className, map);\n\t}", "public abstract ArrayList<DrawingComponent> getAnnotationList();", "public VariableAnnotationCollection getAnnotations(ITextSelection selection) {\r\n\t\t\r\n\r\n\t\tif(selection==null)\r\n\t\t\tthrow new IllegalArgumentException(\"Not allowed no mo'!\");\r\n\t\t\r\n\t\tVariableAnnotationCollection allAnnotations = \r\n\t\t\tnew VariableAnnotationCollection();\r\n\t\t\r\n\t\tEnumeration<Color> colors = ColorManager.getColors();\r\n\t\t\r\n\t\tfor(TempVariableWithDependencies var : variablesInSelection(selection)){\r\n\t\t\tVariableAnnotationCollection collection = \r\n\t\t\t\tvar.dependencyAnnotations(selection);\r\n\t\t\tif(collection.hasDependencies()){\r\n\t\t\t\tcollection.addVariableAnnotations(var);\r\n\t\t\t\tcollection.setColor(colors.nextElement());\r\n\t\t\t\tallAnnotations.merge(collection);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//if there is more than one return value, set them as conflicting\r\n\t\tallAnnotations.checkForMultiReturn();\r\n\t\t\r\n\t\treturn allAnnotations;\r\n\t}", "@DISPID(1610940430) //= 0x6005000e. The runtime will prefer the VTID if present\n @VTID(36)\n Collection annotationSets();", "int getAnnotationCount();", "org.jetbrains.kotlin.backend.common.serialization.proto.IrConstructorCall getAnnotation(int index);", "@Projection(name = \"inlineParameterData\", types = Parameter.class)\n@SuppressWarnings(\"unused\")\npublic interface InlineParameterData extends InlineAliasesProjection {\n Long getId();\n\n String getNomenclature();\n\n @Value(\"#{target.aliases.![nomenclature]}\")\n Set<String> getAliases();\n\n String getCas();\n\n @Value(\"#{target.type.nomenclature}\")\n String getType();\n}", "public List<Annotation> getAnnotations() {\r\n\t\treturn rootAnnotations;\r\n\t}", "private String getMetaAnnotationType(Class<?> clazz, Collection<Class<? extends Annotation>> annotationSet) {\n for (Class<? extends Annotation> annotType : annotationSet) {\n Annotation annotInstance = clazz.getAnnotation(annotType);\n if (annotInstance != null) {\n return (String) invoke(annotInstance, \"value\", null, null);\n }\n }\n return null;\n }", "public interface AddressLabelDetails {\n String getFirstName();\n\n String getLastName();\n\n String getAddressline();\n\n String getAddressline2();\n\n String getAddressline3();\n\n String getPostalCode();\n\n String getCity();\n\n String getRegion();\n\n String getCountry();\n\n String getCountryCode();\n}", "public void testGetEAnnotationsDetails() {\r\n\t\t// any model element should do\r\n\t\tEModelElement modelElement = new Emf().getEcorePackage();\r\n\t\tEAnnotation eAnnotation = _emfAnnotations.annotationOf(modelElement, \"http://rcpviewer.berlios.de/test/source\");\r\n\t\tMap<String,String> details = new HashMap<String,String>();\r\n\t\tdetails.put(\"foo\", \"bar\");\r\n\t\tdetails.put(\"baz\", \"boz\");\r\n\t\t_emfAnnotations.putAnnotationDetails(eAnnotation, details);\r\n\t\t\r\n\t\tMap<String,String> retrievedDetails = _emfAnnotations.getAnnotationDetails(eAnnotation);\r\n\t\tassertEquals(2, retrievedDetails.size());\r\n\t\tassertEquals(\"bar\", retrievedDetails.get(\"foo\"));\r\n\t\tassertEquals(\"boz\", retrievedDetails.get(\"baz\"));\r\n\t}", "@Override\n\tpublic Annotation[] getParameterAnnotations() {\n\t\treturn new Annotation[]{};\n\t}", "public interface JobResultProjection {\n @Value(\"#{target.jobName}\")\n String getName();\n\n @Value(\"#{target.result}\")\n boolean isSuccess();\n\n @Value(\"#{target.alerts}\")\n List<String> getAlerts();\n\n}", "public Map<String, Object> getAnnotations() {\n return ImmutableMap.copyOf(annotations);\n }", "public interface Annotator {\n\n\t/**\n\t * @param pamDataBlock Annotated datablock\n\t * @return the number of annotations\n\t */\n\tpublic int getNumAnnotations(PamDataBlock pamDataBlock);\n\t\n\t/**\n\t * Get an Annotation\n\t * @param pamDataBlock Annotated datablock\n\t * @param iAnnotation annotation number\n\t * @return Annotation\n\t */\n\tpublic Annotation getAnnotation(PamDataBlock pamDataBlock, int iAnnotation);\n}", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeParameters != null) {\n allAnnotations.addAll(typeParameters.getAnnotations());\n }\n if (returnTypeExpression instanceof AnnotatedType) {\n allAnnotations.addAll(((AnnotatedType) returnTypeExpression).getAnnotations());\n }\n allAnnotations.addAll(name.getAnnotations());\n return allAnnotations;\n }", "public static Map<String, Integer> getAnnotations(String text) throws IOException, ParseException\n\t{\n\t \tMap<String, Integer> concepts = new HashMap<String, Integer>();\n\t\tString request = URL + URLEncoder.encode(text, \"UTF-8\") ; ; \n\t\tString jRespond= restcalls.get(request,apikey) ;\n\t\tSystem.out.println(jRespond);\n\t\t\n\t\tJSONParser parser = new JSONParser();\n\t\tObject obj = parser.parse(jRespond) ;\n\t\tJSONArray msgs = (JSONArray) obj;\n\t\tIterator item = msgs.iterator();\n\n\t\t // take each value from the json array separately\n\t while (item.hasNext()) \n\t {\n\t \tJSONObject innerObj = (JSONObject) item.next();\n\t \tJSONArray msg = (JSONArray) innerObj.get(\"annotations\") ;\n\t \tSystem.out.println(msg.toString());\n\n\t Iterator iterator = msg.iterator();\n\t while (iterator.hasNext()) \n\t {\n\t \tJSONObject annotinnerObj = (JSONObject) iterator.next();\n\t System.out.println(annotinnerObj.get(\"matchType\").toString());\n\t // if (annotinnerObj.get(\"matchType\").toString().equals(\"PREF\"))\n\t {\n\t \tconcepts.put(annotinnerObj.get(\"text\").toString(), 1) ;\n\t }\n \n\t }\n\n\t }\n\t \n\t return concepts ;\n\t\t\n\t}", "public Framework_annotation<T> build_annotation();", "public T caseAnnotationAnnotationValue(AnnotationAnnotationValue object)\n {\n return null;\n }", "public interface IJavaAnnotation extends ITextSourceReference {\n \n \t/**\n \t * Returns resource that declares this annotation.\n \t * \n \t * @return resource that declares this annotation\n \t */\n \tpublic IResource getResource();\n \n \t/**\n \t * Returns fully qualified type name if resolved or element name otherwise.\n \t * \n \t * @return fully qualified type name if resolved or element name otherwise\n \t */\n \tpublic String getTypeName();\n \n \t/**\n\t * Returns annotation type or null if it cannot be resolved.\n \t * \n\t * @return annotation type or null if it cannot be resolved\n \t */\n \tpublic IType getType();\n \t/**\n \t * Returns Java element on which or for which this annotation was created.\n \t * \n \t * @return Java element on which or for which this annotation was created\n \t */\n \tpublic IMember getParentMember();\n \n \t/**\n \t * Returns member value pairs as IAnnotation does.\n \t * \n \t * @return member value pairs as IAnnotation does\n \t */\n \tpublic IMemberValuePair[] getMemberValuePairs();\n \n }", "@Override\n\tpublic Set<String> getAnnotations(OWLEntity cpt) {\n\t\treturn new HashSet<String>();\n\t}", "public abstract ArrayList<CustomPath> getAnnotationPathList();", "int getAnnotationSentimentValue();", "public interface ISVNAnnotations {\n\n\t/**\n\t * Get the date of the last change for the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return date of last change\n\t */\n\tpublic abstract Date getChanged(int lineNumber);\n\n\t/**\n\t * Get the revision of the last change for the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return the revision of last change\n\t */\n\tpublic abstract long getRevision(int lineNumber);\n\n\t/**\n\t * Get the author of the last change for the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return the author of last change or null\n\t */\n\tpublic abstract String getAuthor(int lineNumber);\n\n\t/**\n\t * Get the content (line itself) of the given <code>lineNumber</code>\n\t * \n\t * @param lineNumber\n\t * @return the line content\n\t */\n\tpublic abstract String getLine(int lineNumber);\n\n\t/**\n\t * Get an input stream providing the content of the file being annotated.\n\t * \n\t * @return an inputstream of the content of the file\n\t */\n\tpublic abstract InputStream getInputStream();\n\n\t/**\n\t * Get the number of annotated lines\n\t * \n\t * @return number of lines of file being annotated\n\t */\n\tpublic abstract int numberOfLines();\n}", "AnnotationProvider getClassAnnotationProvider();", "public interface AnnotationAccess\n{\n /**\n * Returns a provider for annotations on the service class and interface. This will reflect annotations defined by\n * the implementation class itself, plus annotations defined by the service interface (implementation class\n * annotations take precedence).\n * @return an AnnotationProvider instance.\n */\n AnnotationProvider getClassAnnotationProvider();\n\n /**\n * Returns a provider for annotations of a method of the class. This includes annotations on\n * the implementation method, plus annotations on the corresponding service interface method\n * (if such a method exists), with precedence on the implementation class method annotations.\n * @param methodName the name of the method.\n * @param parameterTypes the types of the parameters of the method.\n * @return an AnnotationProvider instance. * \n */\n AnnotationProvider getMethodAnnotationProvider(String methodName, Class... parameterTypes);\n\n}", "private static void processAnnotation(Annotation annotation, Map<String, Object> fieldsCollector)\n {\n for (Method field : annotation.annotationType().getMethods()) {\n // if the field is annotated with the descriptor key\n DescriptorKey descriptorKey = field.getAnnotation(DescriptorKey.class);\n if (descriptorKey == null) {\n continue;\n }\n\n // name is the name of the method\n String name = descriptorKey.value();\n\n // invoke method to get the value\n Object value;\n try {\n value = field.invoke(annotation);\n }\n catch (Exception e) {\n Throwable cause = e;\n if (e instanceof InvocationTargetException) {\n cause = e.getCause();\n }\n throw new JmxException(Reason.INVALID_ANNOTATION, cause,\n \"Unexpected exception getting value from @DescriptorKey field type: annotationClass=%s, field=%s\",\n annotation.annotationType().getName(), field.getName());\n }\n\n // skip null values, since that is the default\n if (value == null) {\n continue;\n }\n\n // Convert Class and Enum value or array value to String or String array\n // see DescriptorKey javadocs for more info\n if (value instanceof Class) {\n value = ((Class<?>) value).getName();\n }\n else if (value instanceof Enum) {\n value = ((Enum<?>) value).name();\n }\n else if (value.getClass().isArray()) {\n Class<?> componentType = value.getClass().getComponentType();\n if (Class.class.equals(componentType)) {\n Class<?>[] classArray = (Class<?>[]) value;\n String[] stringArray = new String[classArray.length];\n for (int i = 0; i < classArray.length; i++) {\n if (classArray[i] != null) {\n stringArray[i] = classArray[i].getName();\n }\n }\n value = stringArray;\n }\n else if (componentType.isEnum()) {\n Enum<?>[] enumArray = (Enum<?>[]) value;\n String[] stringArray = new String[enumArray.length];\n for (int i = 0; i < enumArray.length; i++) {\n if (enumArray[i] != null) {\n stringArray[i] = enumArray[i].name();\n }\n }\n value = stringArray;\n }\n }\n else if (value instanceof Annotation) {\n throw new JmxException(Reason.INVALID_ANNOTATION,\n \"@DescriptorKey can not be applied to an annotation field type: annotationClass=%s, field=%s\",\n annotation.annotationType().getName(),\n field.getName());\n }\n\n fieldsCollector.put(name, value);\n }\n }", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n if (typeExpression != null && typeExpression instanceof J.AnnotatedType) {\n allAnnotations.addAll(((J.AnnotatedType) typeExpression).getAnnotations());\n }\n return allAnnotations;\n }", "Annotation createAnnotation();", "Annotation createAnnotation();", "public interface AttrValue {\n\n /**\n * 执行属性规则\n *\n * @return 返回Map以attrName为Key属性值正确的格式为value\n */\n Object getAttrValue(Map<String, Object> attrValueContext, String empId) throws Exception;\n\n /**\n * 获取属性的排序\n *\n * @return 排序值越小越靠前\n */\n int getOrder();\n\n}", "@Override\n protected Annotations extractAnnotations(ObjectNode deviceNode, CodecContext context) {\n ObjectNode annotationsNode = get(deviceNode, \"annotations\");\n if (annotationsNode != null) {\n // add needed fields to the annotations of the Device object\n if (deviceNode.get(AVAILABLE) != null) {\n annotationsNode.put(AVAILABLE, deviceNode.get(AVAILABLE).asText());\n }\n return context.codec(Annotations.class).decode(annotationsNode, context);\n } else {\n return DefaultAnnotations.EMPTY;\n }\n }", "public List<AnnotationMirror> getAnnotations() {\n\t\treturn new ArrayList<>(annotations);\n\t}", "public String[] getSelectedTaxonDetails() {\n if (hasValidAnnotatedItemSelected()) {\n Comboitem si = ((Comboitem)autoComplete.getSelection());\n if (shouldUseRawName()) {\n return new String[]{autoComplete.getValue(), \"unmatched\"};\n } else {\n String taxon = autoComplete.getValue();\n String rank;\n\n String spVal = si.getDescription();\n if (spVal.trim().contains(\": \")) {\n taxon = spVal.trim().substring(spVal.trim().indexOf(\":\") + 1, spVal.trim().indexOf(\"-\")).trim() + \" (\" + taxon + \")\";\n rank = spVal.trim().substring(0, spVal.trim().indexOf(\":\"));\n } else {\n rank = StringUtils.substringBefore(spVal, \" \").toLowerCase();\n LOGGER.debug(\"mapping rank and species: \" + rank + \" - \" + taxon);\n }\n if (StringConstants.SCIENTIFICNAME.equalsIgnoreCase(rank) || StringConstants.SCIENTIFIC.equalsIgnoreCase(rank)) {\n rank = StringConstants.TAXON;\n }\n return new String[]{taxon, rank};\n }\n } else {\n return new String[0];\n }\n }", "private double[] getMaxAnnotations() {\n \n double[] maxAnnoNo = new double[]{0, 0, 0};\n for (int i = 0; i < 3; ++i) {\n for (String term : annotations.getColumnIdentifiers()) {\n if (this.ontologyFromGOTerm.containsKey(term) && this.ontologyFromGOTerm.get(term) == i) {\n maxAnnoNo[i] = Math.max(maxAnnoNo[i], annotations.countNumberOfGenesForGOTerm(term));\n }\n }\n }\n return maxAnnoNo;\n }", "public List<DetailParam> getParameterWithAnnotation(Class<?> annotation) {\n List<DetailParam> params = new ArrayList<>();\n this.allClass.stream().forEach(cla -> params.addAll(this.getParameterFromClassWithAnnotation(cla, annotation)));\n return params;\n\n }", "com.google.cloud.dialogflow.v2beta1.MessageAnnotation getMessageAnnotation();", "@Test\n public void testRead() throws Exception {\n String data = \"\\n/*\\n * @Description(value=\\\"Her er en forklaring\\\")\\n\"+\n \"@Parameter(name=\\\"text\\\",type=\\\"String\\\") \\n*/\"+\n \"@Parameter(name=\\\"illegal\\\",type=\\\"String\\\")\";\n System.out.println(\"read\");\n InputStream inputStream = new ByteArrayInputStream(data.getBytes());\n List<ScriptAnnotation.Annotation> result = ScriptAnnotation.read(inputStream);\n \n assertEquals(2, result.size());\n assertEquals(\"Description\", result.get(0).getName());\n assertEquals(\"Parameter\", result.get(1).getName());\n assertEquals(\"text\", result.get(1).getMap().get(\"name\"));\n \n \n }", "com.google.cloud.dialogflow.v2beta1.MessageAnnotationOrBuilder getMessageAnnotationOrBuilder();", "default List<AnnotationContext<?>> allAnnotations() {\n\n return annotations().stream()\n .flatMap(annotation -> annotation.valueType().<Stream<AnnotationContext<?>>>map(valueType -> {\n if (valueType.isArray()) {\n final TypeContext componentType = valueType.arrayComponentType();\n final AnnotationContext<Repeatable> rep = componentType.annotation(Repeatable.class);\n if (rep != null && rep.value().equals(annotation.annotationType())) {\n final Annotation[] repeated = annotation.value();\n return Arrays.stream(repeated).map(AnnotationContext::new);\n }\n }\n return Stream.of(annotation);\n }).orElseGet(() -> Stream.of(annotation)))\n .collect(Collectors.toList());\n }", "TemplateModel[] getValues();", "@Override\n\t\t\tpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass) {\n\t\t\t\treturn null;\n\t\t\t}", "@PropertyGetter(role = ANNOTATION)\n\t<A extends Annotation> CtAnnotation<A> getAnnotation(\n\t\t\tCtTypeReference<A> annotationType);", "TemplateModel getValue();", "@ApiModelProperty(example = \"null\", value = \"The anntation data for the repoting task. This is how the custom UI relays configuration to the reporting task.\")\n public String getAnnotationData() {\n return annotationData;\n }", "public final Set<Annotation> annotations() throws RecognitionException {\n Set<Annotation> annotations = null;\n\n\n Annotation annotation201 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1219:3: ( ^( I_ANNOTATIONS ( annotation )* ) )\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1219:5: ^( I_ANNOTATIONS ( annotation )* )\n {\n HashMap<String, Annotation> annotationMap = Maps.newHashMap();\n match(input, I_ANNOTATIONS, FOLLOW_I_ANNOTATIONS_in_annotations3421);\n if (input.LA(1) == Token.DOWN) {\n match(input, Token.DOWN, null);\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1220:21: ( annotation )*\n loop39:\n while (true) {\n int alt39 = 2;\n int LA39_0 = input.LA(1);\n if ((LA39_0 == I_ANNOTATION)) {\n alt39 = 1;\n }\n\n switch (alt39) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:1220:22: annotation\n {\n pushFollow(FOLLOW_annotation_in_annotations3424);\n annotation201 = annotation();\n state._fsp--;\n\n\n Annotation anno = annotation201;\n Annotation old = annotationMap.put(anno.getType(), anno);\n if (old != null) {\n throw new SemanticException(input, \"Multiple annotations of type %s\", anno.getType());\n }\n\n }\n break;\n\n default:\n break loop39;\n }\n }\n\n match(input, Token.UP, null);\n }\n\n\n if (annotationMap.size() > 0) {\n annotations = ImmutableSet.copyOf(annotationMap.values());\n }\n\n }\n\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return annotations;\n }", "@Override\n public String visit(MarkerAnnotationExpr n, Object arg) {\n return null;\n }", "public List<J.Annotation> getAllAnnotations() {\n List<Annotation> allAnnotations = new ArrayList<>(leadingAnnotations);\n for (J.Modifier modifier : modifiers) {\n allAnnotations.addAll(modifier.getAnnotations());\n }\n allAnnotations.addAll(kind.getAnnotations());\n return allAnnotations;\n }" ]
[ "0.7063759", "0.6972973", "0.69667536", "0.6811737", "0.64701676", "0.64121985", "0.63828677", "0.634164", "0.630248", "0.626618", "0.6253825", "0.6247944", "0.62264603", "0.61959", "0.61359394", "0.60949373", "0.60948247", "0.60853034", "0.5953995", "0.5942778", "0.5941738", "0.59144217", "0.5906986", "0.59015137", "0.58963114", "0.5879073", "0.58550316", "0.58548725", "0.58474666", "0.5837267", "0.58207715", "0.5771691", "0.57661957", "0.5756971", "0.57444555", "0.57389575", "0.5733233", "0.5624289", "0.5618234", "0.56125015", "0.55798066", "0.5553177", "0.5545526", "0.55303806", "0.5497426", "0.54972196", "0.5493906", "0.54806656", "0.547739", "0.5473884", "0.546948", "0.5459386", "0.5450434", "0.5443535", "0.5429157", "0.54182124", "0.5391522", "0.5387104", "0.538655", "0.53619426", "0.53546286", "0.5350927", "0.5340596", "0.5337326", "0.53323215", "0.52962875", "0.529196", "0.52879155", "0.52856505", "0.5269221", "0.5239211", "0.52388704", "0.5228035", "0.5221841", "0.5219961", "0.5212514", "0.52107424", "0.5179744", "0.5174077", "0.5158002", "0.51522833", "0.51522833", "0.51266664", "0.51214767", "0.5114637", "0.510818", "0.51076394", "0.5103553", "0.50851375", "0.507723", "0.50693697", "0.50646394", "0.50631213", "0.5062292", "0.50587165", "0.50449085", "0.5041363", "0.5040625", "0.50397277", "0.50131226" ]
0.5144161
82
Gets the data repository in write mode
public static boolean insertData(SQLiteOpenHelper dbHelper, String date, long nowTimestamp) { SQLiteDatabase db = dbHelper.getWritableDatabase(); // Create a new map of values, where column names are the keys ContentValues values = new ContentValues(); //日期 values.put(StepCountContract.StepData.COLUMN_NAME_DATE, date); //今日步数 values.put(StepCountContract.StepData.COLUMN_NAME_TODAY_FINAL_STEP_COUNT, "0"); //最后一步时间戳 values.put(StepCountContract.StepData.COLUMN_NAME_TIMESTAMP, "0"); //写入数据库时间戳 values.put(StepCountContract.StepData.WRITE_DATABASE_TIMESTAMP, Long.toString(nowTimestamp)); // Insert the new row, returning the primary key value of the new row long newRowId = db.insert(StepCountContract.StepData.TABLE_NAME, null, values); return newRowId != -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public WriteMode getWriteMode()\n {\n return writeMode;\n }", "public LdDaoWritable getDaoWritable() {\r\n return getMyDao();\r\n }", "Path getWritePath()\n {\n return writePath;\n }", "public DatabaseField getWriteLockField() {\r\n return writeLockField;\r\n }", "@Override\n\tpublic boolean isReadWrite() {\n\t\treturn true;\n\t}", "public long getWriteId() {\n return writeId;\n }", "DataStore getDataStore ();", "@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tMemoryStore store = new MemoryStore(IWBFileUtil.getFileInDataFolder(Config.getConfig().getRepositoryName()));\n\t\t\t\n\t\t\t// create a lucenesail to wrap the memorystore\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// let the lucene index store its data in ram\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t\t// wrap memorystore in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\t\t\t\n\t\t\t// create a Repository to access the sails\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}", "boolean isWriteAccess();", "public ReadWriteLock getReadWriteLock() {\n\t\treturn rwLock;\n\t}", "public boolean isWriteable();", "@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tNativeStore store = ReadDataManagerImpl.getNativeStore(IWBFileUtil.getFileInDataFolder(repositoryName));\n\n\t\t\t// create a lucenesail to wrap the store\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// store the lucene index on disk\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_DIR_KEY, IWBFileUtil.getLuceneIndexFolder().getAbsolutePath());\n\t\t\t// wrap store in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\n\t\t\t// create a Repository to access the sail\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}", "public File getDataSaveFile() {\n return dataSaveFile;\n }", "private Object writeReplace () {\n return new java.io.Serializable () {\n /** serial version UID */\n static final long serialVersionUID=-3874531277726540941L;\n\n private void writeObject (ObjectOutputStream oos) throws IOException {\n TopManager.getDefault ().getRepository ().writeExternal (oos);\n }\n\n private void readObject (ObjectInputStream ois)\n throws IOException, ClassNotFoundException {\n TopManager.getDefault ().getRepository ().readExternal (ois);\n }\n\n /** @return the default pool */\n public Object readResolve () {\n return TopManager.getDefault ().getRepository ();\n }\n };\n }", "Repository getRepository();", "public synchronized SQLiteDatabase getMyWritableDatabase() {\r\n if ((myWritableDb == null) || (!myWritableDb.isOpen())) {\r\n myWritableDb = this.getWritableDatabase();\r\n }\r\n return myWritableDb;\r\n }", "@Override\n\tpublic boolean getCanWrite()\n\t{\n\t\treturn false;\n\t}", "public com.mongodb.WriteResult getWriteResult() {\n return writeResult;\n }", "@Override\n\tpublic SQLiteDatabase getWritableDatabase() {\n \t// TODO Auto-generated method stub\n \tsynchronized(DBOpenHelper.class) {\n \t\tif ((myWritableDb == null) || (!myWritableDb.isOpen())) {\n \t\t\treturn super.getWritableDatabase();\n \t\t}\n \t}\n \treturn myWritableDb;\n\t}", "public Repository getRepository() {\n return mRepository;\n }", "public boolean write() {\n return this.write;\n }", "public WriteConcern getWriteConcern() {\n return writeConcern;\n }", "@Override\n\tpublic Datastore getDatastore() {\n\t\treturn SKBeanUtils.getDatastore();\n\t}", "public Object getReadWriteObjectProperty() {\r\n return readWriteObjectProperty;\r\n }", "public DataStorage getDataStorage();", "boolean getDurableWrites();", "public Method getWriteMethod() { // basically unused in DBFlute, use gateway instead\n return _writeMethod;\n }", "public File getRepo() {\n return _repo;\n }", "boolean canWrite();", "@Override\n public StateRepository getStateRepository() {\n\tFile tmp = null;\n\ttry {\n\t tmp = File.createTempFile(\"features\", \"properties\");\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n\treturn new FileBasedStateRepository(tmp);\n }", "Write createWrite();", "public String getRepository() {\n return repository;\n }", "public String getRepository() {\n return repository;\n }", "public boolean otherWrite(IDataHolder dc, Object data);", "org.zenoss.cloud.dataRegistry.UpdateMode getUpdateMode();", "public File getDataStoreDir() {\n\t\treturn this.localDataStoreDir;\n\t}", "long getLastWriteAccess();", "public File getOutputDb();", "@Override\r\n public void read() {\n System.out.println('\\n' + \"DB repo: \");\r\n //Idk, probably search for a person and read data??\r\n\r\n }", "@Override\n public boolean getDurableWrites() {\n return durableWrites_;\n }", "@Override\n\tpublic GenericRepository<Consulta, Long> getRepository() {\n\t\treturn this.consultaRepository;\n\t}", "private void setWrite() {\n db = handler.getWritableDatabase();\n }", "public WrapperNBT getData(){\r\n\t\tif(!world.isRemote){\r\n\t\t\tif(savedDataAccessor == null){\r\n\t\t\t\tsavedDataAccessor = (InterfaceWorldSavedData) world.getPerWorldStorage().getOrLoadData(InterfaceWorldSavedData.class, STORED_WORLD_DATA_ID);\r\n\t\t\t\tif(savedDataAccessor == null){\r\n\t\t\t\t\tsavedDataAccessor = new InterfaceWorldSavedData(STORED_WORLD_DATA_ID);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}else if(savedDataAccessor == null){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn new WrapperNBT(savedDataAccessor.internalData);\r\n\t}", "Database getDataBase() {\n return database;\n }", "protected SVNRepository getRepository() {\n\t\treturn repository;\n\t}", "@Override\n public boolean getDurableWrites() {\n return durableWrites_;\n }", "@Override\r\n\tpublic ReadWriteLock getReadWriteLock() {\n\t\treturn null;\r\n\t}", "ISModificationRepository createISModificationRepository();", "public IPersistence<T> getPersistence();", "public ODatabaseDocumentTx getOrCreateDB();", "public AzureSearchIndexWriteBehaviorType writeBehavior() {\n return this.writeBehavior;\n }", "public String getLocalRepository() {\r\n return localRepository;\r\n }", "public boolean ownWrite(Object data);", "public ContextReadWrite getReadWrite(String contextId, PermitSet permits) {\n\t\treturn permits.add(new WritePermit(contextId)).context();\n\t}", "public interface WriteReadContentDAO\n extends ReadContentDAO {\n void putContent(EntryMetaData entry, String content);\n\n void deleteContent(EntryMetaData entry);\n\n void deleteAllContent(String workspace);\n\n void deleteAllContent(String workspace, String collection);\n\n void deleteAllRowsFromContent();\n}", "public Data storeData(String repository,byte[] data){\n Data result = null;\n\n //Check if the repository exists\n if(!storage.containsKey(repository)){\n //Create it if it doesn't\n storage.put(repository,new HashMap<>());\n }\n\n //Create the counter for the new object\n String id = String.valueOf(idCounter++);\n\n //Create the Object that will store the data\n result = new Data(id,data);\n\n //Get the repository and store\n storage.get(repository).put(id,result);\n\n return result;\n }", "public int getMyWriteValue()\n\t{\n\t\treturn myWriteValue;\n\t}", "boolean isWritePermissionGranted();", "private Object writeReplace() {\n if (Channel.current() == null) {\n return this;\n }\n if (kubeconfigSource == null || kubeconfigSource.isSnapshotSource()) {\n return this;\n }\n return CredentialsProvider.snapshot(this);\n }", "@Override\n public GeneralRepositoryConfig getGeneralRepositoryConfig(){\n outObject = \"getGeneralRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (GeneralRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (GeneralRepositoryConfig) inObject;\n }", "protected SlingRepository getRepository() {\n return repository;\n }", "public IData getStoreddata();", "public FSArray getRepositoryRec() {\n if (GEDCOMType_Type.featOkTst && ((GEDCOMType_Type)jcasType).casFeat_repositoryRec == null)\n jcasType.jcas.throwFeatMissing(\"repositoryRec\", \"net.myerichsen.gedcom.GEDCOMType\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((GEDCOMType_Type)jcasType).casFeatCode_repositoryRec)));}", "@Override\n public void getWriteLock( Object resource, Transaction tx ) throws DeadlockDetectedException,\n IllegalResourceException\n {\n LockGrabber grabber = null;\n if ( resource instanceof Node ) grabber = LockGrabber.NODE_WRITE;\n else if ( resource instanceof Relationship ) grabber = LockGrabber.RELATIONSHIP_WRITE;\n else if ( resource instanceof GraphProperties ) grabber = LockGrabber.GRAPH_WRITE;\n else if ( resource instanceof IndexLock ) grabber = LockGrabber.INDEX_WRITE;\n\n try\n {\n if ( grabber == null )\n {\n super.getWriteLock( resource, tx );\n return;\n }\n\n initializeTxIfFirst();\n LockResult result = null;\n do\n {\n int eventIdentifier = getLocalTxId();\n result = databaseOperations.receive( grabber.acquireLock( broker.getMaster().first(),\n databaseOperations.getSlaveContext( eventIdentifier ), resource ) );\n switch ( result.getStatus() )\n {\n case OK_LOCKED:\n super.getWriteLock( resource, tx );\n return;\n case DEAD_LOCKED:\n throw new DeadlockDetectedException( result.getDeadlockMessage() );\n }\n }\n while ( result.getStatus() == LockStatus.NOT_LOCKED );\n }\n catch ( RuntimeException e )\n {\n databaseOperations.exceptionHappened( e );\n throw e;\n }\n }", "public Handler getWriteHandler() {\n return writeHandler;\n }", "@Override\n\tprotected IGenericRepo<Estudiante, Integer> getRepo() {\n\t\treturn repo;\n\t}", "protected abstract byte getWriteVersion();", "@ReturnsLock(\"RW\")\n public ReadWriteLock getLock() {\n return rwLock;\n }", "public void writeDatabase();", "RepositoryConfiguration getRepositoryConfiguration();", "public Date getWriteDate() {\n return writeDate;\n }", "public Date getWriteDate() {\n return writeDate;\n }", "public Date getWriteDate() {\n return writeDate;\n }", "public Date getWriteDate() {\n return writeDate;\n }", "public Date getWriteDate() {\n return writeDate;\n }", "@Override\n public ConfigRepositoryConfig getConfigRepositoryConfig(){\n outObject = \"getConfigRepositoryConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (ConfigRepositoryConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (ConfigRepositoryConfig) inObject;\n }", "@PersistField\n public WorldData getWorldData()\n {\n return worldData;\n }", "public File getDataFolder() {\n return dataFolder;\n }", "synchronized Repository getRepository(String name) {\n\t\treturn repositoryMap.get(name);\n\t}", "public Driving getDB() {\n\t\treturn this.db;\n\t}", "public interface DataManager {\n void saveData(String key, String data);\n String getData(String key);\n}", "public Data getData(String repository,String id) {\n\n Data result = null;\n\n //Check if the repository is there\n if(doesDataExist(repository,id)){\n //Fetch the data\n result = storage.get(repository).get(id);\n }\n\n return result;\n }", "public long getWritePointer();", "public VirtualChannelSelector getWriteSelector() {\n return write_selector;\n }", "public interface CacheWrite {\n\n /**\n * Gets the {@link Blob} to write as the layer contents.\n *\n * @return the layer {@link Blob}\n */\n Blob getLayerBlob();\n\n /**\n * Gets the optional selector digest to also reference this layer data. A selector digest may be a\n * secondary identifier for a layer that is distinct from the default layer digest.\n *\n * <p>For example, it is useful as an inexpensive alternative reference to a layer compared to\n * calculating the primary layer digest (SHA256 of compressed tarball).\n *\n * @return the selector digest\n */\n Optional<DescriptorDigest> getSelector();\n\n /**\n * Gets the optional {@link Blob} to write as the arbitrary layer metadata.\n *\n * <p>For example, the metadata could contain last modified time, layer types, layer sources, etc.\n *\n * @return the metadata {@link Blob}\n */\n Optional<Blob> getMetadataBlob();\n}", "public DynamicsSinkWriteBehavior getWriteBehavior() {\n return this.writeBehavior;\n }", "public SimpleLock writeLock() {\n\n\t\treturn writerLock;\n\t}", "private RepositoryService getRepositoryService() {\n\t\tif (repositoryService == null && getServletContext() != null) {\n\t\t\tthis.repositoryService = (RepositoryService) getServletContext().getAttribute(\"repositoryService\");\n\t\t}\n\t\treturn this.repositoryService;\n\t}", "public static synchronized Datastore getDataStore() {\n\n if (datastore == null) {\n synchronized (ConnectionHelper.class) {\n \t/*\n \t * Check again to guarantee an unique datastore instance is created, if any thread was preempted.\n \t */\n if (datastore == null) {\n \tdatastore = getMorphia().createDatastore(new MongoClient(), database);\n }\n }\n }\n\n return datastore;\n }", "private String getDataDirectory() {\n Session session = getSession();\n String dataDirectory;\n try {\n dataDirectory = (String) session.createSQLQuery(DATA_DIRECTORY_QUERY).list().get(0);\n } finally {\n releaseSession(session);\n }\n return dataDirectory;\n }", "public static APIRepository getRepositoryInstance() {\n if (mApiRepository == null) {\n mApiRepository = new APIRepository();\n }\n if (mApiInterface == null) {\n mApiInterface = RetrofitClientInstance.getRetrofitInstance(AppRoot.getInstance()).create(APIInterface.class);\n }\n return mApiRepository;\n }", "OStorage getStorage();", "@Override\r\n\tpublic Idao getDao() {\n\t\treturn new FilesystemIdao();\r\n\t}", "public abstract int getPersistence();", "public interface MainRepository {\n\n\tMain getMain(Main main) throws DataAccessException;\n\n\tvoid putMain(Main main) throws DataAccessException;\n\n}", "public Integer getWriteUid() {\n return writeUid;\n }", "public Integer getWriteUid() {\n return writeUid;\n }", "public Integer getWriteUid() {\n return writeUid;\n }", "public Integer getWriteUid() {\n return writeUid;\n }", "public Integer getWriteUid() {\n return writeUid;\n }", "public interface DBWritable {\r\n\t/**\r\n\t * @return current object converted to DBObject\r\n\t */\r\n\tpublic DBObject asDBObject();\r\n}" ]
[ "0.6290822", "0.6120451", "0.595885", "0.58538646", "0.58458114", "0.5841957", "0.5746884", "0.5737026", "0.5720388", "0.5709278", "0.5705298", "0.5642926", "0.5629342", "0.56252414", "0.56147224", "0.55951107", "0.556929", "0.55675375", "0.5556779", "0.5540779", "0.5517618", "0.55024654", "0.5500616", "0.54882693", "0.54560596", "0.54499906", "0.54170734", "0.5412304", "0.53881836", "0.5380312", "0.53788817", "0.53678286", "0.53678286", "0.53575623", "0.5344045", "0.53375673", "0.53284305", "0.5324003", "0.53186625", "0.5315191", "0.53093874", "0.52917844", "0.5287168", "0.5286984", "0.5285291", "0.5263654", "0.52459425", "0.5237416", "0.5227415", "0.5222607", "0.5215538", "0.52049005", "0.5196844", "0.51861954", "0.5178683", "0.5176688", "0.51630306", "0.5152009", "0.5151861", "0.5138632", "0.5136891", "0.51260304", "0.51193196", "0.5113398", "0.51082236", "0.51033103", "0.5097281", "0.5083437", "0.50770456", "0.50762767", "0.50760525", "0.50760525", "0.50760525", "0.50760525", "0.50760525", "0.50682205", "0.506785", "0.5065795", "0.50580627", "0.5057953", "0.5044644", "0.5041621", "0.5035931", "0.50277877", "0.50197095", "0.50161827", "0.5016121", "0.5015384", "0.5015172", "0.50095123", "0.5003119", "0.50030315", "0.49990162", "0.49980485", "0.49900383", "0.49894822", "0.49894822", "0.49894822", "0.49894822", "0.49894822", "0.49843717" ]
0.0
-1
ByteStream.test(); CharStream.test(); ProcessStream.test(); RandomAccess.test(); DecoratorPattern.test(); MyThread.test(); SynThread.test(); Singleton.test(); DeallockThread.test(); ProducerConsumer.test(); TimerThread.test(); NativeHello.test(); InetAddress01.test(); Datagram.test(); Test.test(); security.Test.test(); reflection.Test.test(); jdbc.Test.test(); regular.Test.test(); script.Test.test(); javassist.Test.test(); enum_type.Test.test(); gof23.Test.test(); gof23.proxy.dynamicproxy.Test.test(); gof23.proxy.dynamicproxy.timelog.Test.test(); loader.Test.test(); nestedclass.Test.test(); concurrent.Test.test();
public static void main(String[] args) { nio.Test.test(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic void testClasses() throws Exception {\n\t\ttestWith(String.class);\n\t}", "public static void main (String[] args) {\n \n doTest (\"hello\");\n doTest (\"query\");\n doTest (\"Mississippi\");\n doTest (\"elephant\");\n doTest (\"Qatar\");\n System.out.println();\n \n }", "public interface FastTest {\n}", "public static void main(String[] args) {\n\t\tString className = \"TryWithResourcesTestCode\";\n\t\tStringBuilder builder=new StringBuilder();\n String[] testStrings = getTestStrings();\n\n\t\tbuilder.append(\n\t\t\"public class \"+className+\" {\\n\"\n\t\t);\n\t for (int i=0; i< testStrings.length; i++) {\n\t\tbuilder.append(\n\t\t\" static boolean s\"+i+\"=false;\\n\"\n\t\t);\n\t }\n\t for (int i=0; i< testStrings.length; i++) {\n\t\tbuilder.append(\n\t\t\" class \"+testStrings[i]+\" implements AutoCloseable{\\n\"+\n\t\t\" \"+testStrings[i]+\"() {\\n\"+\n\t\t\" //System.out.println(\\\"\"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" }\\n\"+\n\t\t\" public String toString(){\\n\"+\n\t\t\" return \\\"\"+testStrings[i]+\"\\\";\\n\"+\n\t\t\" }\\n\"+\n\t\t\" public void close() throws Exception{\\n\"+\n\t\t\" s\"+i+\" = true;\\n\"+\n\t\t\"\t//System.out.println(\\\"closing \"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" }\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\t }\n\t\tbuilder.append(\n\t\t\" public \"+className+\"() {\\n\"+\n\t\t\" boolean flag = false;\\n\"+\n\t\t\" try(\\n\"\n\t\t);\n\t for (int i=0; i< testStrings.length-1; i++) {\n\t builder.append(\n\t\t\" \"+testStrings[i]+\" s\"+i+\" = new \"+testStrings[i]+\"();\\n\"\n\t\t);\n\t }\n\t\t// The lastone should not have ';'.\n\t\tint index = testStrings.length-1;\n\t builder.append(\n\t\t\" \"+testStrings[index]+\" s\"+index+\" = new \"+testStrings[index]+\"()\\n\"+\n\t\t\" ){\\n\"\n\t\t);\n\t for (int i=0; i< testStrings.length; i++) {\n\t builder.append(\n\t\t\" if (!s\"+i+\".toString().equals(\\\"\"+testStrings[i]+\"\\\")){\\n\"+\n\t\t\" System.out.println(\\\"Error: mismatch \\\"+s\"+i+\"+\\\" - \"+\n\t\t className+\"$\"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" flag = true;\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\t }\n\t builder.append(\n\t\t\" }catch(Exception e){\\n\"+\n\t\t\" System.out.println(e);\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\n\t for (int i=0; i< testStrings.length; i++) {\n\t builder.append(\n\t\t\" if (!s\"+i+\"){\\n\"+\n\t\t\" System.out.println(\\\"Error: Not closed of \"+testStrings[i]+\"\\\");\\n\"+\n\t\t\" flag = true;\\n\"+\n\t\t\" }\\n\"\n\t\t);\n\t }\n\n\t\tbuilder.append(\n\t\t\" if (!flag){\\n\"+\n\t\t\" System.out.println(\\\"Try-with-resources test passed\\\");\\n\"+\n\t\t\" }else{\\n\"+\n\t\t\" System.out.println(\\\"Try-with-resources test failed\\\");\\n\"+\n\t\t\" }\\n\"+\n\t\t\" }\\n\"+\n\t\t\" public static void main(String[] args) {\\n\"+\n\t\t\" \"+className+\" test = new \"+className+\"();\\n\"+\n\t\t\" }\\n\"+\n\t\t\"}\\n\"\n\t\t);\n\n\t\tSystem.out.println(builder.toString());\n\t\tCompilerAPI compiler = new CompilerAPI(className, builder.toString());\n\t}", "public static void main(String[] args) throws Exception {\n\n Class<?> rcc = Class.forName(\"com.flyex.testNoUse.ReflectTest\");\n\n Object rccc = rcc.newInstance();\n Object rcccc = rcc.newInstance();\n\n\n }", "public static void main(String[] args) {\n\t\tTestGeneric t=new TestGeneric();\n\t\tt.testAdd();\n\t\tt.testForEach();\n\t\tt.testChild();\n\t\tt.testForEach();\n\t\tt.testBasicType();\n\t\t\n\n\t}", "@Test\r\n public void testCodeExamples() throws SecurityException, NoSuchMethodException, ScriptException\r\n {\n \t// http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/\r\n \t\r\n \t// Code Example 1: Create a ScriptEngine object using the engine name.\r\n \t//\r\n \tScriptEngineManager mgr = new ScriptEngineManager();\r\n \tScriptEngine jsEngine = mgr.getEngineByName(\"jav8\");\r\n \t\r\n \tjsEngine.put(\"print\", this.getClass().getMethod(\"print\", String.class));\r\n \tjsEngine.put(\"println\", this.getClass().getMethod(\"println\", String.class));\r\n \r\n \tjsEngine.eval(\"print('Hello, world!')\");\r\n \t\r\n \t// Code Example 2: You can retrieve a list of all engines installed to your Java platform.\r\n \t//\r\n \tList<ScriptEngineFactory> factories = mgr.getEngineFactories();\r\n \t\r\n \tassertFalse(factories.isEmpty());\r\n \t\r\n \t// Code Example 3: A ScriptEngineFactory object provides detailed information about the engine it provides.\r\n \t//\r\n \tfor (ScriptEngineFactory factory: factories) {\r\n \t System.out.println(\"ScriptEngineFactory Info\");\r\n \t \r\n \t String engName = factory.getEngineName();\r\n \t String engVersion = factory.getEngineVersion();\r\n \t String langName = factory.getLanguageName();\r\n \t String langVersion = factory.getLanguageVersion();\r\n \t System.out.printf(\"\\tScript Engine: %s (%s)\\n\", engName, engVersion);\r\n \t \r\n \t List<String> engNames = factory.getNames();\r\n \t for(String name: engNames) {\r\n \t System.out.printf(\"\\tEngine Alias: %s\\n\", name);\r\n \t }\r\n \t System.out.printf(\"\\tLanguage: %s (%s)\\n\", langName, langVersion);\r\n \t}\r\n \t \t\r\n \t// Code Example 6: The eval method can read script files.\r\n \t//\r\n \tInputStream is = this.getClass().getResourceAsStream(\"/scripts/F1.js\");\r\n \t/*\r\n \ttry {\r\n \t Reader reader = new InputStreamReader(is);\r\n \t engine.eval(reader);\r\n \t} catch (ScriptException ex) {\r\n \t ex.printStackTrace();\r\n \t}\r\n \t*/\r\n \t// Code Example 7: You can use the Invocable interface to call specific methods in a script.\r\n \t//\r\n \tjsEngine.eval(\"function sayHello() {\" +\r\n \t \" println('Hello, world!');\" +\r\n \t \"}\");\r\n \tInvocable invocableEngine = (Invocable) jsEngine;\r\n \tinvocableEngine.invokeFunction(\"sayHello\");\r\n \t\r\n \t// Code Example 8: Java programming language code adds names to a list.\r\n \t//\r\n \tList<String> namesList = new ArrayList<String>();\r\n \t\r\n \tnamesList.add(\"Jill\");\r\n \tnamesList.add(\"Bob\");\r\n \tnamesList.add(\"Laureen\");\r\n \tnamesList.add(\"Ed\");\r\n \t\r\n \t// Code Example 9: Script code can both access and modify native Java objects.\r\n \t//\r\n \tjsEngine.put(\"namesListKey\", namesList);\r\n \t \r\n \tSystem.out.println(\"Executing in script environment...\");\r\n \t\r\n \tjsEngine.eval(\"var x;\" +\r\n \t \"var names = namesListKey.toArray();\" +\r\n \t \"for(x in names) {\" +\r\n \t //\" println(names[x]);\" +\r\n \t \"}\" +\r\n \t \"namesListKey.add('Dana');\");\r\n \t\r\n \tSystem.out.println(\"Executing in Java environment...\");\r\n \t\r\n \tfor (String name: namesList) {\r\n \t System.out.println(name);\r\n \t} \r\n \t\r\n \t// Code Example 10: Applications can pass values to script using the Invocable interface.\r\n \t// \t \t\r\n \t jsEngine.eval(\"function printNames1(namesList) {\" +\r\n \t \" var x;\" +\r\n \t \" var names = namesList.toArray();\" +\r\n \t \" for(x in names) {\" +\r\n \t \" println(names[x]);\" +\r\n \t \" }\" +\r\n \t \"}\" +\r\n \r\n \t \"function addName(namesList, name) {\" +\r\n \t \" namesList.add(name);\" +\r\n \t \"}\");\r\n \t invocableEngine.invokeFunction(\"printNames1\", namesList);\r\n \t invocableEngine.invokeFunction(\"addName\", namesList, \"Dana\");\r\n }", "public static void main(String[] args) {\n\t\n\tList<Class<?>> test_classes = new ArrayList<Class<?>>(); //List of loaded classes\n\tList<String> class_names = new ArrayList<String>(); \n\tString[] jar_pathes = new String[args.length -1];\n\tSystem.arraycopy(args, 0, jar_pathes, 0, args.length-1);\n\t\n\tfor (String jar_path : jar_pathes) {\t\n\t\ttry {\n\t\t\tJarFile jarFile = new java.util.jar.JarFile(jar_path);\n\t\t\tEnumeration<JarEntry> jar_entries_enum = jarFile.entries();\n\t\t\t\n\t\t\tURL[] urls = { new URL(\"jar:file:\" + jar_pathes[0]+\"!/\") };\n\t\t\tURLClassLoader cl = URLClassLoader.newInstance(urls);\n\t\t\t\n\t\t\twhile (jar_entries_enum.hasMoreElements()) {\n\t\t JarEntry jar_entry = (JarEntry) jar_entries_enum.nextElement();\n\t\t if(jar_entry.isDirectory() || !jar_entry.getName().endsWith(\".class\")) {\n\t\t \tcontinue;\n\t\t }\n\n\t\t\t String className = jar_entry.getName().substring(0,jar_entry.getName().length()-6); //-6 == len(\".class\")\n\t\t\t className = className.replace('/', '.');\n\t\t\t \n\t\t\t Class<?> c = cl.loadClass(className);\n\t\t\t if (TestCase.class.isAssignableFrom(c) || has_annotations(c)){ \n\t\t\t \ttest_classes.add(c);\n\t\t\t \tclass_names.add(className);\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tjarFile.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t}\n\t\n\tif (test_classes.isEmpty())\n\t{\n\t\tSystem.err.println(\"There is nothing to test.\");\n\t\tSystem.exit(1);\n\t}\n\telse{\n\t\tSystem.out.println(Arrays.toString(class_names.toArray()));\n\t\t\n\tJUnitCore runner = new JUnitCore();\n\tCustomListener custom_listener = new CustomListener();\n\tcustom_listener.reporter = new Reporter(args[args.length-1]);\n\trunner.addListener(custom_listener);\n\trunner.run(test_classes.toArray(new Class[test_classes.size()]));\n\t\t}\n\t}", "private void test() {\n\n\t}", "public static void main(String[] args) {\n ListTest lt = new ListTest();\n lt.testAdd();\n// lt.testGet();\n lt.testIterator();\n lt.testListContains();\n }", "public static void main(String... args) throws Exception {\n //testHelloWorld();\n //testExchange();\n //testParentChild();\n //testLinking();\n //testListener();\n //testParse(\"1\");\n //testOuterInner();\n //testResourceARM();\n //testExecuteAround();\n testExecuteAroundARM();\n }", "@Test\n public void multipleClassTest() throws CharSequenceCompilerException, InstantiationException, IllegalAccessException, NoSuchMethodException, SecurityException, IllegalArgumentException, InvocationTargetException {\n String s = \"public interface MyPredicate { public boolean accept(int i); }\";\n // Implementation for even numbers\n String s2 = \"public class EvenPredicate implements MyPredicate { public boolean accept(int i) { return i%2==0;}}\";\n\n Map<String, CharSequence> classesToCompile = new LinkedHashMap<String, CharSequence>();\n\n // put them in wrong order\n classesToCompile.put(\"EvenPredicate\", s2);\n classesToCompile.put(\"MyPredicate\", s);\n\n // Compile them\n CharSequenceCompiler<Object> compiler = new CharSequenceCompiler<Object>();\n Map<String, Class<Object>> compileClasses = compiler.compile(classesToCompile);\n\n // Invoke accept method\n Class<Object> implementationClass = compileClasses.get(\"EvenPredicate\");\n Object object = implementationClass.newInstance();\n Method method = implementationClass.getMethod(\"accept\", int.class);\n boolean res = (Boolean) method.invoke(object, 2);\n assertTrue(res);\n\n Class<Object> interfaceClass = compileClasses.get(\"MyPredicate\");\n\n try {\n interfaceClass.newInstance();\n fail(\"Can't instantiate an interface!\");\n } catch (InstantiationException e) {\n\n }\n }", "@Test(timeout = 4000)\n public void test003() throws Throwable {\n StringReader stringReader0 = new StringReader(\"void\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.MoreLexicalActions();\n }", "@Test(timeout = 4000)\n public void test106() throws Throwable {\n StringReader stringReader0 = new StringReader(\"a\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 17);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(74, token0.kind);\n assertEquals(\"a\", token0.toString());\n }", "@Test(timeout = 4000)\n public void test76() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.toString();\n assertEquals(\"weka.core.stemmers.LovinsStemmer\", string0);\n }", "public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}", "@Test(timeout = 4000)\n public void test101() throws Throwable {\n StringReader stringReader0 = new StringReader(\"q,rv8PAfKjbSw`H(r\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[8];\n stringReader0.read(charArray0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "@Test\n public void testLength() {\n System.out.println(\"length\"); \n Charset cs;\n //BufferedCharSequence instance;\n int result; \n cs = Charset.forName(UTF_8);\n for(TypeOfStream stype: TypeOfStream.values()) {\n result = getLenght(stype, TypeOfContent.BYTE_10, cs, 10);\n assertEquals(10, result);\n\n result = getLenght(stype, TypeOfContent.BYTE_0, cs, 0);\n assertEquals(0, result);\n\n result = getLenght(stype, TypeOfContent.BYTE_1, cs, 1);\n assertEquals(1, result);\n }\n }", "public void testPerformance() {\n \t}", "public void test642_smartLifting4() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl4Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl4_1 t = new Team642sl4_4();\\n\" +\n\t\t\t \" T642sl4_2 o = new T642sl4_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_4 extends Team642sl4_3 {\\n\" +\n\t\t\t \" public class Role642sl4_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_4.this.toString() + \\\".Role642sl4_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_3 extends Team642sl4_2 {\\n\" +\n\t\t\t \" public class Role642sl4_5 extends Role642sl4_3 playedBy T642sl4_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_3.this.toString() + \\\".Role642sl4_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_6 extends T642sl4_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl4_2 extends T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_3 extends T642sl4_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_1 {\\n\" +\n\t\t\t \" public class Role642sl4_1 extends T642sl4_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_1.this.toString() + \\\".Role642sl4_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl4_2 extends Role642sl4_1 playedBy T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_1.this.toString() + \\\".Role642sl4_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl4_3 extends Role642sl4_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_1.this.toString() + \\\".Role642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl4_2 as Role642sl4_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_4 extends T642sl4_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl4_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl4_2 extends Team642sl4_1 {\\n\" +\n\t\t\t \" public class Role642sl4_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_2.this.toString() + \\\".Role642sl4_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl4_4 extends Role642sl4_3 playedBy T642sl4_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl4_2.this.toString() + \\\".Role642sl4_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl4_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_5 extends T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl4_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl4_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl4_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl4_4.Role642sl4_4\");\n }", "public static void main(String[] args) {\n\r\n\t\tint rand = (int) (10.0*Math.random());\r\n\t\tSystem.out.println(rand);\r\n\t\tif(rand<1)\r\n\t\t\tmain(new String[]{});\r\n\t\telse\r\n\t\t\tSystem.out.println(\"exit\");\r\n\t\t\r\n\t\t\tParentClass p = new ParentClass();\r\n\t\t\tMethod[] m;\r\n\t\t\tm = p.getClass().getDeclaredMethods();\r\n\t\t\tSystem.out.println(m.length);\r\n\t\t\tSystem.out.println(m[0].getName());\r\n\t\t\tParentClass.staticFunction();\r\n\t\t\tSystem.out.println(p.p1(new ParentClass()).toString());\r\n\t\t\tSystem.out.println(p.runn(2));\r\n\t\t\tSystem.out.println(p.runn(12, 2));\r\n\t\t\tSystem.out.println(p.runn(1, \"fd\"));\r\n\t\t\ttry {\r\n\t\t\t\tint i=0;\r\n\t\t\t\tSystem.out.println(i/0);\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {}\r\n\t\t\tfinally {\r\n\t\t\t\tSystem.out.println(\"F'ed up\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tT1 t1 = new T1(\"Jay\");\r\n\t\t\t\r\n\t\t\tThread newT = new Thread(t1);\r\n\t\t\tnewT.start();\r\n\t\t\t\r\n\t\t\tchar[] j = {'J','a','y','a','n','t','h',' ','R','e','d','d','y',' ','.',' ','P'};\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<50;i++) {\r\n\t\t\t\ttry{Thread.sleep(100);\r\n\t\t\t\tSystem.out.print(\"|\");}catch(Exception e) {}\r\n\t\t\t\ttry{Thread.sleep(100);\r\n\t\t\t\tSystem.out.print(\"-\");}catch(Exception e) {}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int i=0;i<j.length;i++) {\r\n\t\t\t\ttry{Thread.sleep(100);\r\n\t\t\t\tSystem.out.print(j[i]);}catch(Exception e) {}\r\n\t\t\t}\r\n\t\t}", "public static void main(String[] args) {\n\t\t\n\t\tglobalTest();\n//\t\ttimeTest();\n//\t\ttestPrefixSearch();\n//\t\ttestSearch();\n//\t\ttestPrediction();\n//\t\ttestTrieSearch();\n//\t\ttestRebuid();\n//\t\ttest13();\n//\t\ttest14();\n\t}", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n StringReader stringReader0 = new StringReader(\"interface\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(8, javaCharStream0.bufpos);\n assertEquals(\"interface\", token0.toString());\n }", "public void test642_smartLifting8() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl8Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl8Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl8_1 t = new Team642sl8_4();\\n\" +\n\t\t\t \" T642sl8_2 o = new T642sl8_4();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl8_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl8_4 extends Team642sl8_3 {\\n\" +\n\t\t\t \" public class Role642sl8_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl8_4.this.toString() + \\\".Role642sl8_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl8_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl8_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl8_3 extends Team642sl8_2 {\\n\" +\n\t\t\t \" public class Role642sl8_5 extends Role642sl8_3 playedBy T642sl8_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl8_3.this.toString() + \\\".Role642sl8_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl8_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl8_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl8_6 extends T642sl8_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl8_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl8_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl8_2 extends T642sl8_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl8_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl8_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl8_3 extends T642sl8_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl8_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl8_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl8_1 {\\n\" +\n\t\t\t \" public class Role642sl8_1 extends T642sl8_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl8_1.this.toString() + \\\".Role642sl8_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl8_2 extends Role642sl8_1 playedBy T642sl8_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl8_1.this.toString() + \\\".Role642sl8_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl8_3 extends Role642sl8_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl8_1.this.toString() + \\\".Role642sl8_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl8_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl8_2 as Role642sl8_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl8_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl8_4 extends T642sl8_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl8_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl8_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl8_2 extends Team642sl8_1 {\\n\" +\n\t\t\t \" public class Role642sl8_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl8_2.this.toString() + \\\".Role642sl8_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl8_4 extends Role642sl8_3 playedBy T642sl8_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl8_2.this.toString() + \\\".Role642sl8_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl8_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl8_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl8_5 extends T642sl8_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl8_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl8_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl8_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl8_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl8_4.Role642sl8_3\");\n }", "@Test(timeout = 4000)\n public void test006() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(108);\n classWriter0.newFloat(113.627F);\n String[] stringArray0 = new String[5];\n stringArray0[0] = \"PiF-CQ~dbi\";\n stringArray0[1] = \"PiF-CQ~dbi\";\n stringArray0[2] = \"PiF-CQ~dbi\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, false);\n stringArray0[3] = \"PiF-CQ~dbi\";\n stringArray0[4] = \"PiF-CQ~dbi\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-6285), \"TET-!0-b\", \"PJB7-L5CQMFxAZ\", \"PiF-CQ~dbi\", stringArray0, false, false);\n methodWriter0.signature = \"PiF-CQ~dbi\";\n methodWriter0.visitMethodInsn(2, \"TET-!0-b\", \"RuntimeVisibleAnnotations\", \"PiF-CQ~dbi\");\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n methodWriter0.visitMethodInsn(202, \"PJB7-L5CQMFxAZ\", \"PJB7-L5CQMFxAZ\", \"Cxq@K@@*{Iat!J{\");\n ObjectInputStream objectInputStream0 = null;\n try {\n objectInputStream0 = new ObjectInputStream(pipedInputStream0);\n fail(\"Expecting exception: IOException\");\n \n } catch(Throwable e) {\n //\n // Pipe not connected\n //\n verifyException(\"java.io.PipedInputStream\", e);\n }\n }", "@Test(timeout = 4000)\n public void test108() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-4015));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"dVw2Z7M){e/Y(#j\";\n stringArray0[1] = \"+5vu,cm9U5+I\";\n stringArray0[2] = \"P{Vxct7w\";\n stringArray0[3] = \"dVw2Z7M){e/Y(#j\";\n stringArray0[4] = \"P{Vxct7w\";\n stringArray0[5] = \"+5vu,cm9U5+I\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 928, \"P{Vxct7w\", \"+5vu,cm9U5+I\", \"+5vu,cm9U5+I\", stringArray0, false, false);\n classWriter0.lastMethod = methodWriter0;\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n methodWriter1.visitInsn(14);\n FieldWriter fieldWriter0 = classWriter0.firstField;\n classWriter0.firstField = null;\n Label label0 = new Label();\n Frame frame0 = new Frame();\n label0.frame = frame0;\n methodWriter1.visitLabel(label0);\n Attribute attribute0 = new Attribute(\"org.objectweb.asm.jip.ClassAdapter\");\n ClassReader classReader0 = null;\n try {\n classReader0 = new ClassReader(\"+5vu,cm9U5+I\");\n fail(\"Expecting exception: IOException\");\n \n } catch(Throwable e) {\n //\n // Class not found\n //\n verifyException(\"org.objectweb.asm.jip.ClassReader\", e);\n }\n }", "public static void main(String[] args) {\n String obj=new String();\n obj.getData();\n obj.operation1();\n obj.operation2();\n obj.operation3();\n obj.operation4();\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tClass<?> class1 = null;\r\n Class<?> class2 = null;\r\n Class<?> class3 = null;\r\n // 一般采用这种形式\r\n try {\r\n\t\t\tclass1 = Class.forName(\"net.xsoftlab.baike.TestReflect\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n// class2 = new TestReflect().getClass();\r\n// class3 = TestReflect.class;\r\n System.out.println(\"类名称 \" + class1.getName());\r\n System.out.println(\"类名称 \" + class2.getName());\r\n System.out.println(\"类名称 \" + class3.getName());\r\n\r\n}", "public void test642_smartLifting7() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl7Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl7_1 t = new Team642sl7_3();\\n\" +\n\t\t\t \" T642sl7_2 o = new T642sl7_4();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_4 extends Team642sl7_3 {\\n\" +\n\t\t\t \" public class Role642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_4.this.toString() + \\\".Role642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_3 extends T642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_1 {\\n\" +\n\t\t\t \" public class Role642sl7_1 extends T642sl7_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl7_2 extends Role642sl7_1 playedBy T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl7_3 extends Role642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl7_2 as Role642sl7_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_4 extends T642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_2 extends Team642sl7_1 {\\n\" +\n\t\t\t \" public class Role642sl7_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_2.this.toString() + \\\".Role642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl7_4 extends Role642sl7_3 playedBy T642sl7_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_2.this.toString() + \\\".Role642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_5 extends T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_3 extends Team642sl7_2 {\\n\" +\n\t\t\t \" public class Role642sl7_5 extends Role642sl7_3 playedBy T642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_3.this.toString() + \\\".Role642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_6 extends T642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl7_2 extends T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl7_3.Role642sl7_3\");\n }", "@Test(timeout = 4000)\n public void test20() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer0);\n stringReader0.reset();\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n streamTokenizer0.commentChar((-4));\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader0);\n streamTokenizer6.ordinaryChars((-1), (-322070664));\n streamTokenizer1.parseNumbers();\n jSTerm0.add((Object) \"JSTerm: Error reading control parameters: \");\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader0);\n streamTokenizer7.pushBack();\n streamTokenizer1.nextToken();\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader0);\n streamTokenizer2.slashSlashComments(false);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer5);\n streamTokenizer1.slashStarComments(false);\n streamTokenizer3.eolIsSignificant(false);\n streamTokenizer7.commentChar((-4));\n StreamTokenizer streamTokenizer9 = new StreamTokenizer(stringReader0);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSSubstitution0.listIterator();\n JSSubstitution jSSubstitution1 = jSTerm1.matches((JSPredicateForm) jSTerm0, jSSubstitution0);\n assertTrue(jSSubstitution1.fail());\n }", "@Test\n\tpublic void testGetStreamSourcesByID_00() {\n\t\ttry {\n\t\t\tClass c = Class.forName(\"InternalMemory\");\n\t\t\tMethod method = c.getDeclaredMethod(\"getStreamSourcesByID\", new Class[] { String.class });\n\t\t\tmethod.setAccessible(true);\n\t\t\tObject i = c.newInstance();\n\n\t\t\tConcurrentHashMap<String, ArrayList<String>> map = new ConcurrentHashMap<String, ArrayList<String>>();\n\t\t\tArrayList<String> links = new ArrayList<String>();\n\t\t\tlinks.add(\"a\");\n\t\t\tlinks.add(\"b\");\n\t\t\tlinks.add(\"c\");\n\t\t\tmap.put(\"randomString\", links);\n\n\t\t\tField field = c.getDeclaredField(\"_streamerToStreamSourcesMap\");\n\t\t\tfield.setAccessible(true);\n\t\t\tfield.set(i, map);\n\n\t\t\tObject r = method.invoke(i, new Object[] { \"randomString\" });\n\t\t\tassertEquals(r, \"a b c \");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\n\t\t}\n\n\t}", "public static void main(String [] args) {\n TestFListInteger test = new TestFListInteger();\n \n test.testIsEmpty();\n test.testGet();\n test.testSet();\n test.testSize();\n test.testToString();\n test.testEquals();\n \n test.summarize();\n \n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_06() {\n CuteNetlibCase.doTest(\"PDS-06.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\t\ttestStreamMapReduce();\r\n\t\t//testMethodReference();\r\n\t}", "public interface PerformanceTest {}", "@Test(timeout = 4000)\n public void test091() throws Throwable {\n StringReader stringReader0 = new StringReader(\"void\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(\"void\", token0.toString());\n }", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "private ProtomakEngineTestHelper() {\r\n\t}", "public void test642_smartLifting6() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl6Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl6Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl6_1 t = new Team642sl6_2();\\n\" +\n\t\t\t \" T642sl6_2 o = new T642sl6_4();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl6_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl6_4 extends Team642sl6_3 {\\n\" +\n\t\t\t \" public class Role642sl6_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl6_4.this.toString() + \\\".Role642sl6_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl6_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl6_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl6_1 {\\n\" +\n\t\t\t \" public class Role642sl6_1 extends T642sl6_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl6_1.this.toString() + \\\".Role642sl6_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl6_2 extends Role642sl6_1 playedBy T642sl6_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl6_1.this.toString() + \\\".Role642sl6_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl6_3 extends Role642sl6_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl6_1.this.toString() + \\\".Role642sl6_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl6_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl6_2 as Role642sl6_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl6_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl6_4 extends T642sl6_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl6_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl6_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl6_2 extends Team642sl6_1 {\\n\" +\n\t\t\t \" public class Role642sl6_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl6_2.this.toString() + \\\".Role642sl6_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl6_4 extends Role642sl6_3 playedBy T642sl6_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl6_2.this.toString() + \\\".Role642sl6_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl6_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl6_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl6_5 extends T642sl6_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl6_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl6_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl6_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl6_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl6_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl6_3 extends Team642sl6_2 {\\n\" +\n\t\t\t \" public class Role642sl6_5 extends Role642sl6_3 playedBy T642sl6_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl6_3.this.toString() + \\\".Role642sl6_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl6_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl6_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl6_6 extends T642sl6_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl6_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl6_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl6_2 extends T642sl6_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl6_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl6_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl6_3 extends T642sl6_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl6_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl6_2.Role642sl6_3\");\n }", "@Test\n\tpublic void testPrimitives() throws Exception {\n\t\ttestWith(TestClassWithPrimitives.getInstance());\n\t}", "public static void main1(String[] args) {\n\t\tTest t=new Test();\r\n\t\tSystem.out.println(t.genTok());\r\n\t\tSystem.out.println(t.genPwd());\r\n\t\tSystem.out.println(t.genericEncode(\"sreedhar\"));\r\n\t}", "@Test\r\n public void testImportStringPriorities() throws ClassNotFoundException\r\n {\r\n TypeParser typeParser0 = TypeParsers.create();\r\n typeParser0.addImport(\"java.awt.List\");\r\n typeParser0.addImport(\"java.util.*\");\r\n\r\n Type t0 = typeParser0.parse(\"List\");\r\n assertEquals(t0, java.awt.List.class);\r\n \r\n TypeParser typeParser1 = TypeParsers.create();\r\n typeParser1.addImport(\"java.awt.*\");\r\n typeParser1.addImport(\"java.util.List\");\r\n\r\n Type t1 = typeParser1.parse(\"List\");\r\n assertEquals(t1, java.util.List.class);\r\n \r\n }", "public void test642_smartLifting1() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl1Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl1_1 t = new Team642sl1_1();\\n\" +\n\t\t\t \" T642sl1_2 o = new T642sl1_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_4 extends Team642sl1_3 {\\n\" +\n\t\t\t \" public class Role642sl1_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_4.this.toString() + \\\".Role642sl1_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_2 extends Team642sl1_1 {\\n\" +\n\t\t\t \" public class Role642sl1_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_2.this.toString() + \\\".Role642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl1_4 extends Role642sl1_3 playedBy T642sl1_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_2.this.toString() + \\\".Role642sl1_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_5 extends T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_3 extends Team642sl1_2 {\\n\" +\n\t\t\t \" public class Role642sl1_5 extends Role642sl1_3 playedBy T642sl1_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_3.this.toString() + \\\".Role642sl1_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_6 extends T642sl1_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl1_2 extends T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_3 extends T642sl1_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl1_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl1_1 {\\n\" +\n\t\t\t \" public class Role642sl1_1 extends T642sl1_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_1.this.toString() + \\\".Role642sl1_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl1_2 extends Role642sl1_1 playedBy T642sl1_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_1.this.toString() + \\\".Role642sl1_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl1_3 extends Role642sl1_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl1_1.this.toString() + \\\".Role642sl1_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl1_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl1_2 as Role642sl1_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl1_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl1_4 extends T642sl1_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl1_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl1_1.Role642sl1_3\");\n }", "@Test\n\tpublic void testHw1_1000000LOC26method5_4()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_7()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_10() {\n CuteNetlibCase.doTest(\"PDS-10.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "private test5() {\r\n\t\r\n\t}", "@Test\n\tpublic void testPerformance()\n\t{\n\t\tString\t\ttestName\t= logTestName();\n\n\t\tint\t\tcPass\t\t\t= 5;\n\t\tint\t\tiMax\t\t\t= 1000 * 1000;\n//\t\tint[]\tcThreadList\t\t= { 1, 2, 4, 6, 8 };\n\t\tint[]\tcThreadList\t\t= { 1, 2, 4 };\n\n\t\tStringGroup\t\t\t\tnameList\t\t\t= new StringGroup(testName);\n\t\tLockCounterFamily\t\tcounterFamily\t\t= new LockCounterFamily(nameList);\n\t\tMagicNamedCounter\t\tnamedCounter\t\t= new MagicNamedCounter(counterFamily);\n\t\tfor (int cThread : cThreadList)\n\t\t{\n\t\t\tmeasurePerformance(new SynchronizedCounter(),\tcPass, iMax, cThread);\n\t\t\tmeasurePerformance(new AtomicCounter(),\t\t\tcPass, iMax, cThread);\n\t\t\tmeasurePerformance(new MagicReadCounter(),\t\tcPass, iMax, cThread);\n\t\t\tmeasurePerformance(new PlainWriteCounter(),\t\tcPass, iMax / 20, cThread);\n\t\t\tmeasurePerformance(new MagicWriteCounter(),\tcPass, iMax, cThread);\n\n\t\t\tmeasurePerformance(namedCounter,\t\t\tcPass, iMax, cThread);\n\t\t}\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testDFL001() {\n CuteNetlibCase.doTest(\"DFL001.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testHw1_1000000LOC26method5_2()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_3()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_6()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test(timeout = 4000)\n public void test52() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n SystemInUtil.addInputLine(\"%I\");\n streamTokenizer0.ordinaryChars((-4), (-4));\n SystemInUtil.addInputLine(\"%I\");\n streamTokenizer0.ordinaryChars((-2202), 689);\n SystemInUtil.addInputLine(\"0(u\");\n streamTokenizer0.ordinaryChar(3008);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n stringReader0.reset();\n SystemInUtil.addInputLine((String) null);\n streamTokenizer0.wordChars(1911, 689);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n streamTokenizer2.eolIsSignificant(true);\n streamTokenizer1.commentChar(3008);\n StringReader stringReader1 = new StringReader(\"0(u\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n stringReader1.close();\n streamTokenizer3.eolIsSignificant(true);\n SystemInUtil.addInputLine((String) null);\n System.setCurrentTimeMillis((-2));\n JSPredicateForm jSPredicateForm0 = null;\n try {\n jSPredicateForm0 = new JSPredicateForm(streamTokenizer3);\n fail(\"Expecting exception: System.SystemExitException\");\n \n } catch(System.SystemExitException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.System\", e);\n }\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer2);\n stringReader0.reset();\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n streamTokenizer5.ordinaryChars((-4), 0);\n streamTokenizer1.parseNumbers();\n streamTokenizer1.nextToken();\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm1 = new JSTerm();\n streamTokenizer0.commentChar(58);\n jSTerm0.equals((JSPredicateForm) jSTerm1);\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader0);\n assertFalse(streamTokenizer8.equals((Object)streamTokenizer6));\n }", "public void test642_smartLifting5() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl5Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl5Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl5_1 t = new Team642sl5_1();\\n\" +\n\t\t\t \" T642sl5_2 o = new T642sl5_4();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl5_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl5_4 extends Team642sl5_3 {\\n\" +\n\t\t\t \" public class Role642sl5_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl5_4.this.toString() + \\\".Role642sl5_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl5_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl5_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl5_2 extends Team642sl5_1 {\\n\" +\n\t\t\t \" public class Role642sl5_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl5_2.this.toString() + \\\".Role642sl5_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl5_4 extends Role642sl5_3 playedBy T642sl5_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl5_2.this.toString() + \\\".Role642sl5_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl5_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl5_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl5_5 extends T642sl5_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl5_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl5_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl5_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl5_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl5_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl5_3 extends Team642sl5_2 {\\n\" +\n\t\t\t \" public class Role642sl5_5 extends Role642sl5_3 playedBy T642sl5_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl5_3.this.toString() + \\\".Role642sl5_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl5_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl5_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl5_6 extends T642sl5_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl5_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl5_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl5_2 extends T642sl5_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl5_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl5_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl5_3 extends T642sl5_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl5_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl5_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl5_1 {\\n\" +\n\t\t\t \" public class Role642sl5_1 extends T642sl5_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl5_1.this.toString() + \\\".Role642sl5_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl5_2 extends Role642sl5_1 playedBy T642sl5_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl5_1.this.toString() + \\\".Role642sl5_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl5_3 extends Role642sl5_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl5_1.this.toString() + \\\".Role642sl5_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl5_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl5_2 as Role642sl5_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl5_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl5_4 extends T642sl5_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl5_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl5_1.Role642sl5_3\");\n }", "public void test642_smartLifting2() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl2Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl2_1 t = new Team642sl2_2();\\n\" +\n\t\t\t \" T642sl2_2 o = new T642sl2_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_4 extends Team642sl2_3 {\\n\" +\n\t\t\t \" public class Role642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_4.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_1 extends T642sl2_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl2_2 extends Role642sl2_1 playedBy T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl2_3 extends Role642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_1.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl2_2 as Role642sl2_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_4 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_2 extends Team642sl2_1 {\\n\" +\n\t\t\t \" public class Role642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl2_4 extends Role642sl2_3 playedBy T642sl2_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_2.this.toString() + \\\".Role642sl2_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_5 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl2_3 extends Team642sl2_2 {\\n\" +\n\t\t\t \" public class Role642sl2_5 extends Role642sl2_3 playedBy T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl2_3.this.toString() + \\\".Role642sl2_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_6 extends T642sl2_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl2_2 extends T642sl2_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl2_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl2_3 extends T642sl2_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl2_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl2_2.Role642sl2_4\");\n }", "public void test() {\n\t}", "@Test(timeout = 4000)\n public void test35() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm();\n stringReader0.reset();\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n streamTokenizer0.commentChar((-4));\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader0);\n streamTokenizer4.pushBack();\n streamTokenizer0.nval = 1.0;\n streamTokenizer6.ordinaryChars((-1), (-322070664));\n streamTokenizer1.parseNumbers();\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader0);\n streamTokenizer7.slashSlashComments(false);\n streamTokenizer7.pushBack();\n streamTokenizer1.nextToken();\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader0);\n streamTokenizer2.slashSlashComments(false);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer5);\n streamTokenizer1.slashStarComments(false);\n streamTokenizer3.eolIsSignificant(false);\n streamTokenizer7.commentChar((-4));\n StreamTokenizer streamTokenizer9 = new StreamTokenizer(stringReader0);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSSubstitution0.listIterator();\n JSSubstitution jSSubstitution1 = jSTerm1.matches((JSPredicateForm) jSTerm0, jSSubstitution0);\n assertTrue(jSSubstitution1.fail());\n }", "@Test\n\tpublic void testHw1_1000000LOC26method5_1()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC26method5_5()\n\t\tthrows Exception {\n\t\tbyte var0 = (byte) 1;\n\t\thw1_1000000LOC16 var1 = new hw1_1000000LOC16();\n\t\thw1_1000000LOC17 var2 = new hw1_1000000LOC17();\n\t\tbyte var3 = (byte) 1;\n\t\tString var4 = \"\";\n\t\thw1_1000000LOC22 var5 = new hw1_1000000LOC22();\n\t\tchar var6 = '\u0001';\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method5(var0, var1, var2, var3, var4, var5, var6);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n StringReader stringReader0 = new StringReader(\"oh\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 89, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n char[] charArray0 = new char[1];\n stringReader0.read(charArray0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(74, token0.kind);\n assertEquals(\"h\", token0.toString());\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(u\");\n stringReader0.reset();\n stringReader0.ready();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer1);\n stringReader0.reset();\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n StringReader stringReader1 = new StringReader(\"call\");\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader1);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader1);\n streamTokenizer4.nextToken();\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader1);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer2);\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader1);\n streamTokenizer7.slashStarComments(true);\n streamTokenizer2.commentChar((-4));\n boolean boolean0 = jSTerm1.equals((JSPredicateForm) jSTerm0);\n assertTrue(boolean0);\n \n StringReader stringReader2 = new StringReader(\"c}^$\");\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader2);\n boolean boolean1 = jSTerm1.equals((JSPredicateForm) null);\n assertFalse(boolean1);\n }", "public static void dummyTest(){}", "public static void dummyTest(){}", "@Test(timeout = TIMEOUT)\n public void testPublicMethods() {\n Class sortingClass = Sorting.class;\n Method[] methods = sortingClass.getMethods();\n String[] methodStrings = new String[methods.length];\n for (int i = 0; i < methods.length; i++) {\n methodStrings[i] = methods[i].toString();\n }\n String[] validMethodStrings = {\n \"public static void Sorting.insertionSort(java.lang.Object[],java.util.Comparator)\",\n \"public static void Sorting.cocktailSort(java.lang.Object[],java.util.Comparator)\",\n \"public static void Sorting.lsdRadixSort(int[])\",\n \"public static void Sorting.quickSort(java.lang.Object[],java.util.Comparator,java.util.Random)\",\n \"public static void Sorting.mergeSort(java.lang.Object[],java.util.Comparator)\",\n \"public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException\",\n \"public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException\",\n \"public final void java.lang.Object.wait() throws java.lang.InterruptedException\",\n \"public boolean java.lang.Object.equals(java.lang.Object)\",\n \"public java.lang.String java.lang.Object.toString()\",\n \"public native int java.lang.Object.hashCode()\",\n \"public final native java.lang.Class java.lang.Object.getClass()\",\n \"public final native void java.lang.Object.notify()\",\n \"public final native void java.lang.Object.notifyAll()\"\n };\n Arrays.sort(methodStrings);\n Arrays.sort(validMethodStrings);\n assertArrayEquals(methodStrings, validMethodStrings);\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n String[] stringArray0 = new String[7];\n Discretize.main(stringArray0);\n assertEquals(7, stringArray0.length);\n }", "public void testForNThreads();", "public void test642_smartLifting3() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl3Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl3_1 t = new Team642sl3_3();\\n\" +\n\t\t\t \" T642sl3_2 o = new T642sl3_3();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_4 extends Team642sl3_3 {\\n\" +\n\t\t\t \" public class Role642sl3_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_4.this.toString() + \\\".Role642sl3_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_3 extends T642sl3_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_1 {\\n\" +\n\t\t\t \" public class Role642sl3_1 extends T642sl3_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_1.this.toString() + \\\".Role642sl3_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl3_2 extends Role642sl3_1 playedBy T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_1.this.toString() + \\\".Role642sl3_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl3_3 extends Role642sl3_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_1.this.toString() + \\\".Role642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl3_2 as Role642sl3_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_4 extends T642sl3_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_2 extends Team642sl3_1 {\\n\" +\n\t\t\t \" public class Role642sl3_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_2.this.toString() + \\\".Role642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl3_4 extends Role642sl3_3 playedBy T642sl3_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_2.this.toString() + \\\".Role642sl3_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_5 extends T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl3_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl3_3 extends Team642sl3_2 {\\n\" +\n\t\t\t \" public class Role642sl3_5 extends Role642sl3_3 playedBy T642sl3_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl3_3.this.toString() + \\\".Role642sl3_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl3_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl3_6 extends T642sl3_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl3_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl3_2 extends T642sl3_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl3_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl3_3.Role642sl3_4\");\n }", "@Test(timeout = 4000)\n public void test062() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180372));\n classWriter0.addType(\"H\");\n classWriter0.visitOuterClass(\"H\", \"H\", \"9iniWt>\");\n classWriter0.newField(\"H\", \"H\", \"UNp|{*'V\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"<T'RwU+).UKJX>\";\n stringArray0[1] = \"9iniWt>\";\n stringArray0[2] = \"H\";\n stringArray0[3] = \"UNp|{*'V\";\n boolean boolean0 = true;\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180372), \"H\", \"<T'RwU+).UKJX>\", \"H\", stringArray0, true, false);\n classWriter0.newNameTypeItem(\"9iniWt>\", \"UNp|{*'V\");\n Item item0 = new Item();\n methodWriter0.visitInsn(186);\n Label label0 = new Label();\n Attribute attribute0 = new Attribute(\"9iniWt>\");\n classWriter0.addType(\"<T'RwU+).UKJX>\");\n methodWriter0.visitLocalVariable(\"UNp|{*'V\", \"UNp|{*'V\", \"dVw27M){e/Y(#j\", label0, label0, 1);\n ClassReader classReader0 = null;\n try {\n classReader0 = new ClassReader(\"HL)rLXrkh@[\");\n fail(\"Expecting exception: IOException\");\n \n } catch(Throwable e) {\n //\n // Class not found\n //\n verifyException(\"org.objectweb.asm.jip.ClassReader\", e);\n }\n }", "@Test\n public void testGetDecalredClasses() {\n for (Class clazz : TestClass.class.getDeclaredClasses()) {\n System.out.println(clazz.getName());\n }\n }", "@Test\n public void testToString() {\n System.out.println(\"toString\");\n for(TypeOfStream stype: TypeOfStream.values()) {\n InputStream stream = getInputStream(stype, TypeOfContent.BYTE_10, cs_UTF_8);\n @SuppressWarnings(\"deprecation\")\n BufferedCharSequence instance = new BufferedCharSequence(stream, cs_UTF_8.newDecoder(), 10);\n instance.setMaxBufferSize(5);\n String expResult = TypeOfContent.BYTE_10.getContent();\n String result = instance.toString();\n assertEquals(expResult, result);\n }\n }", "@Test(timeout = 4000)\n public void test68() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.toString();\n assertEquals(\"weka.core.stemmers.LovinsStemmer\", string0);\n }", "@Test(timeout = 4000)\n public void test41() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer0);\n stringReader0.reset();\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n streamTokenizer0.commentChar((-4));\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader0);\n streamTokenizer6.ordinaryChars((-1), (-322070664));\n streamTokenizer1.parseNumbers();\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader0);\n streamTokenizer7.pushBack();\n streamTokenizer1.nextToken();\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader0);\n streamTokenizer2.slashSlashComments(false);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer5);\n streamTokenizer1.slashStarComments(false);\n streamTokenizer3.eolIsSignificant(false);\n streamTokenizer7.commentChar((-4));\n StreamTokenizer streamTokenizer9 = new StreamTokenizer(stringReader0);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSSubstitution0.listIterator();\n JSSubstitution jSSubstitution1 = jSTerm1.matches((JSPredicateForm) jSTerm0, jSSubstitution0);\n assertTrue(jSSubstitution1.fail());\n }", "public static void main(String[] args)\r\n\t{\n\t\tMyStringBuilder msb;\r\n\t\tStringBuilder sb;\r\n\t\tString s;\r\n\t\t//Loop iterating 3 times testing each method for all types one by one\r\n\t\tfor(int i = 0; i < 3; i++)\r\n\t\t{\r\n\t\t\t//Initialize variables\r\n\t\t\tmsb = new MyStringBuilder(\"\");\r\n\t\t\tsb = new StringBuilder(\"\");\r\n\t\t\ts = new String(\"\");\r\n\t\t\t//Test fill, delete, and insert with each iteration of the loop respectively\r\n\t\t\tswitch(i)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tfill(msb, args[0]);\r\n\t\t\t\t\tfill(sb, args[0]);\r\n\t\t\t\t\tfill(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tdelete(msb, args[0]);\r\n\t\t\t\t\tdelete(sb, args[0]);\r\n\t\t\t\t\tdelete(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tinsert(msb, args[0]);\r\n\t\t\t\t\tinsert(sb, args[0]);\r\n\t\t\t\t\tinsert(s, args[0]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n StringReader stringReader0 = new StringReader(\"U3kE.1/hk@Tuvel]`L\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "@Test(timeout = 4000)\n public void test124() throws Throwable {\n StringReader stringReader0 = new StringReader(\"J..!IK9I\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"J\", token0.toString());\n assertEquals(74, token0.kind);\n }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n StringReader stringReader0 = new StringReader(\".wa]!^8?,%1IG\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(85, token0.kind);\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n StringReader stringReader0 = new StringReader(\"0(Hu\");\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer1 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer2 = new StreamTokenizer(stringReader0);\n JSTerm jSTerm0 = new JSTerm(streamTokenizer0);\n stringReader0.reset();\n StreamTokenizer streamTokenizer3 = new StreamTokenizer(stringReader0);\n SystemInUtil.addInputLine((String) null);\n StreamTokenizer streamTokenizer4 = new StreamTokenizer(stringReader0);\n StreamTokenizer streamTokenizer5 = new StreamTokenizer(stringReader0);\n streamTokenizer0.commentChar((-4));\n StreamTokenizer streamTokenizer6 = new StreamTokenizer(stringReader0);\n streamTokenizer0.nval = 13.010465232034644;\n streamTokenizer6.ordinaryChars((-1), (-322070664));\n streamTokenizer1.parseNumbers();\n StreamTokenizer streamTokenizer7 = new StreamTokenizer(stringReader0);\n streamTokenizer7.pushBack();\n streamTokenizer1.nextToken();\n StreamTokenizer streamTokenizer8 = new StreamTokenizer(stringReader0);\n streamTokenizer2.slashSlashComments(false);\n JSTerm jSTerm1 = new JSTerm(streamTokenizer5);\n streamTokenizer1.slashStarComments(false);\n streamTokenizer3.eolIsSignificant(false);\n streamTokenizer7.commentChar((-4));\n StreamTokenizer streamTokenizer9 = new StreamTokenizer(stringReader0);\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSSubstitution0.listIterator();\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n JSSubstitution jSSubstitution2 = jSTerm0.matches((JSPredicateForm) jSTerm1);\n assertTrue(jSSubstitution2.fail());\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n jSTerm0.add((Object) \"umd.cs.shop.JSParserError\");\n jSSubstitution0.add((Object) jSTerm0);\n JSSubstitution jSSubstitution1 = new JSSubstitution();\n JSTerm jSTerm1 = new JSTerm();\n jSTerm1.add((Object) jSTerm0);\n JSJshopVars.exclamation = (-3277);\n JSPredicateForm jSPredicateForm0 = jSTerm0.clonePF();\n JSPredicateForm jSPredicateForm1 = jSTerm0.applySubstitutionPF(jSSubstitution0);\n Object object0 = new Object();\n SystemInUtil.addInputLine(\"umd.cs.shop.JSParserError\");\n jSPredicateForm0.stream();\n Predicate<String> predicate0 = Predicate.isEqual((Object) \"mI!\");\n Predicate<String> predicate1 = predicate0.negate();\n predicate1.negate();\n Predicate<String> predicate2 = predicate1.negate();\n Predicate<String> predicate3 = predicate1.and(predicate0);\n predicate2.or(predicate3);\n SystemInUtil.addInputLine(\"mI!\");\n predicate0.negate();\n JSSubstitution jSSubstitution2 = new JSSubstitution();\n jSTerm0.print();\n jSTerm1.toStr();\n // Undeclared exception!\n try { \n jSPredicateForm1.matches((JSPredicateForm) jSTerm1);\n fail(\"Expecting exception: ClassCastException\");\n \n } catch(ClassCastException e) {\n //\n // umd.cs.shop.JSTerm cannot be cast to java.lang.String\n //\n verifyException(\"umd.cs.shop.JSPredicateForm\", e);\n }\n }", "@Test(timeout = 4000)\n public void test045() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259326));\n classWriter0.newInteger((-2013884533));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1790259326), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"LocalVariableTable\", stringArray0, true, false);\n methodWriter0.visitVarInsn(191, (-2013884533));\n ClassWriter classWriter1 = new ClassWriter((-2013884533));\n int int0 = 24;\n MethodWriter methodWriter1 = new MethodWriter(classWriter1, 24, \"m%zy9g>,\\\"3fC$\", \"Deprecated\", \"l\", stringArray0, false, false);\n methodWriter1.visitVarInsn((-1855), 2);\n MethodWriter methodWriter2 = classWriter1.firstMethod;\n Edge edge0 = new Edge();\n PipedInputStream pipedInputStream0 = new PipedInputStream();\n PipedOutputStream pipedOutputStream0 = new PipedOutputStream(pipedInputStream0);\n PipedInputStream pipedInputStream1 = null;\n try {\n pipedInputStream1 = new PipedInputStream(pipedOutputStream0, 1);\n fail(\"Expecting exception: IOException\");\n \n } catch(Throwable e) {\n //\n // Already connected\n //\n verifyException(\"java.io.PipedOutputStream\", e);\n }\n }", "public static void loadTest(){\n }", "@Test\n public void testGetClasses() throws Exception {\n for (Class clazz : TestClass.class.getClasses()) {\n System.out.println(clazz.getName());\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testPDS_20() {\n CuteNetlibCase.doTest(\"PDS-20.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n ClassWriter classWriter0 = new ClassWriter((-1878));\n classWriter0.addType(\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\\\"\";\n stringArray0[1] = \"\\\"\";\n classWriter0.newLong(0L);\n stringArray0[2] = \"\";\n stringArray0[3] = \"\\\"\";\n classWriter0.newClass(\"\\\"\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1878), \"\", \"<T'RwU+).UKJX>\", \"\", stringArray0, true, true);\n methodWriter0.visitAnnotation(\"\", true);\n methodWriter0.visitFieldInsn(1, \"\\\"\", \"char\", \"3<|siktz\");\n Label label0 = new Label();\n String string0 = label0.toString();\n assertEquals(\"L23\", string0);\n \n ByteVector byteVector0 = classWriter0.pool;\n methodWriter0.signature = \"\";\n methodWriter0.getSize();\n methodWriter0.visitFieldInsn(102, \"char\", \"Code\", \"\");\n methodWriter0.visitLocalVariable(\"\\\"\", \"Code\", \"7,9%\\\"lXhsy+;K+!\", label0, label0, 16777239);\n int int0 = methodWriter0.getSize();\n assertEquals(116, int0);\n }", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.toString();\n assertEquals(\"weka.core.stemmers.LovinsStemmer\", string0);\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-946));\n classWriter0.version = (-946);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (-946), \"?H+TLs Gws\", \"\", \"AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHAFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII\", \"AAAAAAAAAAAAAAAABCKLLDDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAADDDDDEEEEEEEEEEEEEEEEEEEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAAAAAAAAAAAAAAIIIIIIIIIIIIIIIIDNOAAAAAAGGGGGGGHAFBFAAFFAAQPIIJJIIIIIIIIIIIIIIIIII\");\n ByteVector byteVector0 = new ByteVector(723);\n fieldWriter0.put(byteVector0);\n }", "public static void main(String[] args) {\r\n\t\tnew Test0().tc1() ;\r\n\t\tnew Test0().tc2() ;\r\n\t\tnew Test0().tc3() ;\r\n\t\tnew Test0().tc4() ;\r\n\t\tnew Test0().tc5() ;\r\n\t\tnew Test0().tc6() ;\r\n\t}", "@Test\n public void test1(){\n CDLListFineRW<String> list = new CDLListFineRW<String>(\"hi\");\n CDLListFineRW<String>.Element head = list.head();\n CDLListFineRW<String>.Cursor c = list.reader(list.head());\n \n for(int i = 74; i >= 65; i--) {\n char val = (char) i;\n c.writer().insertAfter(\"\" + val);\n }\n \n List<Thread> threadList = new ArrayList<Thread>();\n for (int i = 0; i < 50; i++) {\n NormalThreadrwf nt = new NormalThreadrwf(list, i);\n threadList.add(nt);\n }\n \n\tRandomThreadrwf rt = new RandomThreadrwf(list);\n\tthreadList.add(rt);\n\t\n try {\n for(Thread t : threadList){\n \tt.start();\n }\n for (Thread t : threadList) {\n \tt.join();\n }\n } catch(InterruptedException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n list.print();\n// YOU MAY WANT TO INCLUDE A PRINT METHOD TO VIEW ALL THE ELEMENTS\n// list.print();\n \n }", "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 }", "private void installBasicClasses() {\n \tAbstractSymbol filename \n \t = AbstractTable.stringtable.addString(\"<basic class>\");\n \t\n \t// The following demonstrates how to create dummy parse trees to\n \t// refer to basic Cool classes. There's no need for method\n \t// bodies -- these are already built into the runtime system.\n \n \t// IMPORTANT: The results of the following expressions are\n \t// stored in local variables. You will want to do something\n \t// with those variables at the end of this method to make this\n \t// code meaningful.\n \n \t// The Object class has no parent class. Its methods are\n \t// cool_abort() : Object aborts the program\n \t// type_name() : Str returns a string representation \n \t// of class name\n \t// copy() : SELF_TYPE returns a copy of the object\n \n \tclass_c Object_class = \n \t new class_c(0, \n \t\t TreeConstants.Object_, \n \t\t TreeConstants.No_class,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0, \n \t\t\t\t\t TreeConstants.cool_abort, \n \t\t\t\t\t new Formals(0), \n \t\t\t\t\t TreeConstants.Object_, \n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.type_name,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.copy,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \t\n \t// The IO class inherits from Object. Its methods are\n \t// out_string(Str) : SELF_TYPE writes a string to the output\n \t// out_int(Int) : SELF_TYPE \" an int \" \" \"\n \t// in_string() : Str reads a string from the input\n \t// in_int() : Int \" an int \" \" \"\n \n \tclass_c IO_class = \n \t new class_c(0,\n \t\t TreeConstants.IO,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_string,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.out_int,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.SELF_TYPE,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_string,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.in_int,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The Int class has no methods and only a single attribute, the\n \t// \"val\" for the integer.\n \n \tclass_c Int_class = \n \t new class_c(0,\n \t\t TreeConstants.Int,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// Bool also has only the \"val\" slot.\n \tclass_c Bool_class = \n \t new class_c(0,\n \t\t TreeConstants.Bool,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t// The class Str has a number of slots and operations:\n \t// val the length of the string\n \t// str_field the string itself\n \t// length() : Int returns length of the string\n \t// concat(arg: Str) : Str performs string concatenation\n \t// substr(arg: Int, arg2: Int): Str substring selection\n \n \tclass_c Str_class =\n \t new class_c(0,\n \t\t TreeConstants.Str,\n \t\t TreeConstants.Object_,\n \t\t new Features(0)\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.val,\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new attr(0,\n \t\t\t\t\t TreeConstants.str_field,\n \t\t\t\t\t TreeConstants.prim_slot,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.length,\n \t\t\t\t\t new Formals(0),\n \t\t\t\t\t TreeConstants.Int,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.concat,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg, \n \t\t\t\t\t\t\t\t TreeConstants.Str)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0)))\n \t\t\t .appendElement(new method(0,\n \t\t\t\t\t TreeConstants.substr,\n \t\t\t\t\t new Formals(0)\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg,\n \t\t\t\t\t\t\t\t TreeConstants.Int))\n \t\t\t\t\t\t .appendElement(new formalc(0,\n \t\t\t\t\t\t\t\t TreeConstants.arg2,\n \t\t\t\t\t\t\t\t TreeConstants.Int)),\n \t\t\t\t\t TreeConstants.Str,\n \t\t\t\t\t new no_expr(0))),\n \t\t filename);\n \n \t/* Do somethind with Object_class, IO_class, Int_class,\n Bool_class, and Str_class here */\n nameToClass.put(TreeConstants.Object_.getString(), Object_class);\n nameToClass.put(TreeConstants.IO.getString(), IO_class);\n nameToClass.put(TreeConstants.Int.getString(), Int_class);\n nameToClass.put(TreeConstants.Bool.getString(), Bool_class);\n nameToClass.put(TreeConstants.Str.getString(), Str_class);\n adjacencyList.put(TreeConstants.Object_.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.IO.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Int.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Bool.getString(), new ArrayList<String>() );\n adjacencyList.put(TreeConstants.Str.getString(), new ArrayList<String>() );\n // Do the same for other basic classes\n basicClassList = new Classes(0);\n basicClassList.appendElement(Object_class);\n basicClassList.appendElement(IO_class);\n basicClassList.appendElement(Int_class);\n basicClassList.appendElement(Bool_class);\n basicClassList.appendElement(Str_class);\n \n }", "public interface SlowTests {\n \n}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_18() {\n CuteNetlibCase.doTest(\"KEN-18.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tpublic void testFtoC(){\n\t}", "public void test5() {\n\t\t\n\t}", "static void test(){\n\t }", "@Ignore\n\t@Test\n\tpublic void test() throws IOException {\n\n\t\tClient.main(new String[] {\"localhost\", \"6700\"});\n\n\t\tSystem.out.println(\"free\");\n\t\tSystem.out.println(\"in\");\n\t\tSystem.out.println(\"in\");\n\t\tSystem.out.println(\"free\");\n\t\tSystem.out.println(\"out\");\n\t\tSystem.out.println(\"free\");\n\n\t}", "@Override\n\tpublic void test() {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test053() throws Throwable {\n StringReader stringReader0 = new StringReader(\"ej.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1076), 115);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n String[] stringArray0 = new String[0];\n classWriter0.visit(1, 1, \"InnerClasses\", \"\", \"EQIUR?\", stringArray0);\n classWriter0.newField(\"\", \"\", \"\\\"\");\n String[] stringArray1 = new String[4];\n stringArray1[0] = \"\\\"\";\n stringArray1[1] = \"char\";\n stringArray1[2] = \"boolean\";\n stringArray1[3] = \" ,G\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \" ,G\", \"<T'RwU+)i.UKJX>\", \"\", stringArray1, true, true);\n methodWriter0.visitCode();\n }" ]
[ "0.5860477", "0.5751892", "0.56756604", "0.55022603", "0.54303277", "0.5429744", "0.5402908", "0.53902614", "0.5385037", "0.53420204", "0.5310177", "0.5297083", "0.5280433", "0.5279506", "0.5271147", "0.5267354", "0.5259463", "0.5255861", "0.52558035", "0.52479905", "0.52457166", "0.5242037", "0.52368414", "0.52298754", "0.52290076", "0.52272916", "0.522375", "0.52225864", "0.52196103", "0.5209152", "0.52089757", "0.5207778", "0.52052075", "0.5204074", "0.5192929", "0.51832336", "0.51805913", "0.518009", "0.5178517", "0.5176944", "0.5175909", "0.5169452", "0.5159669", "0.5158209", "0.5154794", "0.51540446", "0.51492715", "0.514686", "0.5145538", "0.5142544", "0.5139286", "0.513862", "0.5137536", "0.5136199", "0.5132993", "0.51327354", "0.51272327", "0.5127151", "0.51252216", "0.51228434", "0.5122591", "0.51211196", "0.5117197", "0.51170945", "0.51170945", "0.51082736", "0.5092959", "0.50929356", "0.5090273", "0.5080436", "0.50757915", "0.50725704", "0.5072145", "0.50690544", "0.50674915", "0.50640917", "0.5061657", "0.5060423", "0.50602573", "0.5059335", "0.50575197", "0.5056697", "0.5056261", "0.5055902", "0.5052426", "0.5051541", "0.5049233", "0.50417066", "0.50306135", "0.50291467", "0.50279236", "0.5021418", "0.50190645", "0.5012808", "0.5008978", "0.500719", "0.5006707", "0.50062203", "0.4998657", "0.4995838", "0.49935776" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { ArrayTest at = new ArrayTest(); int[] array = new int[300000]; at.creatArray(array); // at.printArray(array); Calendar cal = Calendar.getInstance(); System.out.println(cal.getTime()); // at.insertSort(array); // at.bubbleSort(array); // at.selectSort(array); at.quickSort(array, 0, at.len - 1); // at.printArray(array); cal = Calendar.getInstance(); System.out.println(cal.getTime()); }
{ "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
name; surname; forename; email; address1; address2; address3; phone; fax; mobile; bio;
private void initBroker() throws URISyntaxException, IOException { ClassLoader classloader = Thread.currentThread().getContextClassLoader(); // InputStream is = classloader.getResourceAsStream("data/merchant.csv"); URL brokerURL = classloader.getResource("data/broker/"); String[] merchantFiles = new File(brokerURL.toURI()).list(); int j = 0; while (j < merchantFiles.length) { InputStream is = classloader.getResourceAsStream("data/broker/" + merchantFiles[j]); CSVReader reader = new CSVReader(new InputStreamReader(is, "UTF-8")); String[] nextLine; while ((nextLine = reader.readNext()) != null) { String tradeName = nextLine[FORENAME]; if (StringUtils.isBlank(tradeName)) { continue; } brokerImportService.saveOrUpdateBroker(fillUpBrokerImportVO(nextLine)); } j++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) throws IOException {\n\t\tint id_telefone = 4;\n\t\t\n\t\tFileInputStream fis = new FileInputStream(SAMPLE_CSV_FILE_PATH);\n\t\tInputStreamReader isr = new InputStreamReader(fis, \"UTF-8\");\n\t\t\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tCSVReader reader = new CSVReader(isr, ';' , '\"' , 0);\n \tString[] nextLine;\n \t\n// \tWriter writer = Files.newBufferedWriter(Paths.get(\"saida.csv\"));\n// \tCSVWriter csvWriter = new CSVWriter(writer,\n// CSVWriter.DEFAULT_SEPARATOR,\n// CSVWriter.NO_QUOTE_CHARACTER,\n// CSVWriter.DEFAULT_ESCAPE_CHARACTER,\n// CSVWriter.DEFAULT_LINE_END);\n \t\n \tFile file = new File(\"Clientes.sql\");\n \n BufferedWriter fr = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),\"UTF-8\"));\n \t\n \twhile ((nextLine = reader.readNext()) != null) {\n \t\t\n if (nextLine != null) {\n \t\n// \tSystem.out.println(nextLine.length);\n \t\n \tString id = nextLine[0];\n \tif(!id.isEmpty()) {\n \t\n \t\tid = id.substring(5);\n \t\tid = id.replace(\".\", \"\");\n \t\t\n \t\tboolean temCEP = false;\n \t\t\n \t\tif(nextLine.length > 12) temCEP = true;\n \t\t\n \t\tString CEP = \"\";\n \t\tif(temCEP) {\n \t\t CEP = nextLine[12];\n CEP = CEP.replace(\".\", \"\");\n CEP = CEP.replaceAll(\"-\",\"\");\n CEP = CEP.replaceAll(\" \",\"\");\n \t\t};\n \n \t\n \n \tfr.write(\"INSERT INTO hmprojetos.cliente values (\" \n + id \n + \",'\" + nextLine[1]\n \t\t+ \"','\" + nextLine[2]\n \t\t\t\t+ \"','\" + nextLine[3]\n \t\t\t\t\t\t+ \"','\" + nextLine[4]\n \t\t\t\t\t\t\t\t+ \"','\" + nextLine[5]\n \t\t\t\t\t\t\t\t\t\t+ \"','\" + CEP\n \t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[10]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[11]\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"','\" + nextLine[6]\n + \"');\\n\");\n \t\n \t//Criação dos INSERTS dos telefones\n \tif(!nextLine[7].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[7]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[8].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[8]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \tif(!nextLine[9].isEmpty()) {\n \tfr.write(\"INSERT INTO hmprojetos.telefone values (\"\n \t\t\t+ id_telefone\n \t\t\t+ \",'','\" + nextLine[9]\n \t\t\t+ \"',\"\n \t\t\t+ id \n \t\t\t+ \");\\n\"\n \t\t\t);\n \t\tid_telefone++;\n \t}\n \t\n \t}\n }\n \t}\n \t\n \tfr.close();\n \tSystem.out.println(\"Done\");\n\t}", "public void parseClients(String[] lines) {\r\n // For each line, add a value mapped to the associated column name\r\n for (int i = 0; i < lines.length; i++) {\r\n String[] info = lines[i].split(\";\");\r\n ContentValues values = new ContentValues();\r\n values.put(\"email\", info[2]);\r\n values.put(\"expiry\", info[5]);\r\n values.put(\"personalAddress\", info[3]);\r\n values.put(\"creditCardNumber\", info[4]);\r\n values.put(\"firstName\", info[1]);\r\n values.put(\"lastName\", info[0]);\r\n // Add or update the database with the parsed info\r\n sqlExecutor.updateOrAddRecords(\"clients\", values);\r\n }\r\n }", "public static List readFromACsv(String addressbookname){\n final String COMMA_DELIMITER = \",\";\n String PATH=\"C:/Users/Sukrutha Manjunath/IdeaProjects/Parctice+\" + addressbookname;\n List<Person> personList=new ArrayList<Person>();\n BufferedReader br =null;\n try{\n br=new BufferedReader(new FileReader(PATH));\n String line = \"\";\n br.readLine();\n while ((line = br.readLine()) != null)\n {\n String[] personDetails = line.split(COMMA_DELIMITER);\n\n if(personDetails.length > 0 )\n {\n //Save the employee details in Employee object\n Person person = new Person(personDetails[0],personDetails[1],personDetails[2],\n personDetails[3],personDetails[4], personDetails[5],personDetails[6]);\n personList.add(person);\n }\n }\n\n }catch (Exception ex){\n ex.printStackTrace();\n }\n finally {\n try{\n br.close();\n }\n catch (IOException e){\n e.printStackTrace();\n }\n }\n return personList;\n }", "public void importUserMadeTable(BufferedReader br) {\r\n\t\tString line;\r\n\t\tTable table = null;\r\n\t\ttry {\r\n\t\t\tString tableName = br.readLine();\r\n\t\t\ttable = new Table(tableName);\r\n\t\t\tint[] types = convertTypes(br.readLine().split(\",\"));\r\n\t\t\tString[] names = br.readLine().split(\",\");\r\n\t\t\tassert (types.length == names.length);\r\n\t\t\tfor (int i = 0 ; i < types.length; i++) {\r\n\t\t\t\ttable.newAttribute(names[i], types[i]);\r\n\t\t\t}\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tString[] entries = line.split(\",\");\r\n\t\t\t\tfor (int i = 0; i < entries.length; i++) {\r\n\t\t\t\t\tif (!table.getAttributes(i + 1).checkType(entries[i]))\r\n\t\t\t\t\t\tentries[i] = \"--\";\r\n\t\t\t\t}\r\n\t\t\t\ttable.newEntry(entries);\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttable.delete();\r\n\t\t}\r\n\t}", "public void readRecord() {\n\t\ttry {\n\t\t\tScanner scan = new Scanner(recordFile);\n\t\t\tString temp = \"\";\n\t\t\tboolean foundAddress = false;\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString member = scan.nextLine();\n\t\t\t\tScanner sc = new Scanner(member);\n\t\t\t\tString keyword, param;\n\t\t\t\tif(sc.hasNext()) {\n\t\t\t\t\tkeyword = sc.next();\n\t\t\t\t\t\n\t\t\t\t\tif(keyword.equalsIgnoreCase(\"address\")) {\n\t\t\t\t\t\tfoundAddress = true;\n\t\t\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\t\t\tparam = sc.nextLine();\n\t\t\t\t\t\t\ttemp = temp + \"; \" + keyword.toLowerCase() + \" \" + param;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if(keyword.equalsIgnoreCase(\"name\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"birthday\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"postcode\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"phone\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"recipient\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"donation\")) {\n\t\t\t\t\t\tfoundAddress = false;\n\t\t\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\t\t\tparam = sc.nextLine();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttemp = temp + \"; \" + keyword.toLowerCase() + \" \" + param;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// if found extended address in a new line\n\t\t\t\t\tif(!keyword.equalsIgnoreCase(\"address\") \n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"name\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"birthday\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"postcode\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"phone\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"recipient\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"donation\")\n\t\t\t\t\t\t\t&& foundAddress) {\n\t\t\t\t\t\ttemp = temp + \" \" + keyword;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(member.equals(\"\") || !scan.hasNextLine()) {\n\t\t\t\t\trecord.addDonator(temp);\n\t\t\t\t\ttemp = \"\";\n\t\t\t\t}\n\t\t\t\tsc.close();\n\t\t\t} \n\t\t\tscan.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void queryLimitedAttributes() {\r\n\t\tFile file = null;\r\n\t\tSystem.out.println(\"select from the options\");\r\n\t\tSystem.out.println(\"1. query only name and mobile number\\n2. query only name and email\");\r\n\t\tint choice = Integer.parseInt(scanner.nextLine());\r\n\t\t\r\n\t\t \r\n\t\tList<Contact> contactList = service.getContactList();\r\n\t\tMap<String, String[]> transformedContacts = service.getMappedTranform(contactList, choice);\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"1. show in console\\n2. write to a file\");\r\n\t\tint option = Integer.parseInt(scanner.nextLine());\r\n\t\tif(option==1) {\r\n\t\t\tshowTransformedContacts(transformedContacts);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif(choice==1) {\r\n\t\t\t\tfile = new File(\"nameNumber.txt\");\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tfile = new File(\"nameEmail.txt\");\r\n\t\t\t}\r\n\t\t\tservice.writeTransformedContacts(transformedContacts,file);\r\n\t\t\tSystem.out.println(\"contacts written to a file\");\r\n\t\t}\r\n\t}", "public void readValuesfromtableWithoutHeadings()\n\t {\n\t\t open();\n\t\t List<Map<Object, String>> tab1= withColumns(\"Last Name \" ,\"First Name\",\"Email\", \"Due\" , \"Web Site\" , \"My Test\") \n\t\t\t\t .readRowsFrom(table);\n\t\t System.out.println(tab1);\n\t }", "public static void main(String args[]) throws IOException\n {\n String path = \"user.csv\";\n Reader reader = Files.newBufferedReader(Paths.get(path));\n CSVReader csvReader = new CSVReader(reader);\n //Reading all records one by one\n String[] nextRecords;\n while ((nextRecords = csvReader.readNext()) != null) {\n System.out.println(\"Name:\" + nextRecords[0]);\n System.out.println(\"Email:\" + nextRecords[1]);\n System.out.println(\"Phone no:\" + nextRecords[2]);\n System.out.println(\"Country:\" + nextRecords[3]);\n System.out.println(\"=======================\");\n }\n //Reading all records at once\n List<String[]> records = csvReader.readAll();\n for (String[] record : records) {\n System.out.println(\"Name:\" + record[0]);\n System.out.println(\"Email:\" + record[1]);\n System.out.println(\"Phone No:\" + record[2]);\n System.out.println(\"Country:\" + record[3]);\n System.out.println(\"========================\");\n }\n }", "public static void main(String[] args) {\n \tScanner s = null;\n try{\n s = new Scanner(new File(args[0]));\n }catch (FileNotFoundException e) {\t\t\n \tSystem.out.println(\"File not found!\");\n }catch (Exception e){\t\t\n \tSystem.out.println(\"Something else went wrong!\");\n \te.printStackTrace();\n }\n \t \t\n //Read Line by Line\n s.nextLine();\n while(s.hasNext()){\n\t\t\tString Line=s.nextLine();\n\t\t\tString tokens[] = Line.split(\";\");//4 tokens created(MAIN LINE)\n\t\t\tString personCode=tokens[0];\t\t\n\t\t\tString name[] = tokens[1].split(\", \");//String name created split with comas\t\n\t\t\t\n\t\t\tName personName =new Name (name[0],name[1]);//personName object created under Name class, both name are passed\n\t\t\tSystem.out.println(name[0]);\n\t\t\tpersonName.setFirstName(name[0]);\n \t\tpersonName.setLastName(name[1]);\t\t\t\n \t\tString address[] = tokens[2].split(\",\");\n \t\tAddress personAddress =new Address (address[0],address[1],address[2],address[3],address[4]);\n\t\t\tSystem.out.println(tokens[2]);\t\n\t\t\tif(tokens.length==4) {\n \t\t\tString emailAdress=tokens[3];\n \t\t\tSystem.out.println(tokens[3]);\t\n \n \t\t}\n \n \t}\n\t}", "private static Ms3Person convertDataToRequiredDataType(String[] personArray,int index) {\r\n\t\t\r\n\t\tString firstName = \"\", lastName = \"\", email = \"\", gender = \"\", urlLink = \"\", card = \"\", city = \"\";\r\n\t\tfloat charges = 0f;\r\n\t\tboolean h_column = false, i_column = false;\r\n\t\t\r\n\t\tboolean flag = false;\r\n\t\tint i = 0;\r\n\t\t//ignore the bad data if read\r\n\t\tif(personArray.length<2 || personArray.length >11)\r\n\t\t\treturn null;\r\n\t\t//iterate the person details & set details in PErson object\r\n\t\tfor (; i < personArray.length; i++) {\r\n\t\t\tString temp = personArray[i];\r\n\t\t\tif(temp.length()<=1)\r\n\t\t\t\treturn null;\r\n\t\t\t// if current string is empty or null\r\n\t\t\tif (temp == null || temp.length() <=1) {\r\n\t\t\t\t// contains bad data\r\n\t\t\t\t// so new file is to be created & append\r\n\t\t\t\treturn null;\r\n\t\t\t} else {\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tfirstName = personArray[0];\r\n\t\t\t\t} else if (i == 1) {\r\n\t\t\t\t\tlastName = personArray[1];\r\n\t\t\t\t} else if (i == 2) {\r\n\t\t\t\t\temail = personArray[2];\r\n\t\t\t\t} else if (i == 3) {\r\n\t\t\t\t\tgender = personArray[3];\r\n\t\t\t\t} else if (i == 4) {//urllink contains comma in it we need to be careful for this\r\n\t\t\t\t\turlLink = personArray[4] + personArray[i + 1];\r\n\t\t\t\t\ti = 5;\r\n\t\t\t\t} else if (i == 6) {//card name\r\n\t\t\t\t\tcard = personArray[6];\r\n\t\t\t\t} else if (i == 7) {//// $0.02 we need to trim $ from it\r\n\t\t\t\t\t//few ccolumns contains empty data so we need to check that as well\r\n\t\t\t\t\tString stringCharge = personArray[7];\r\n\t\t\t\t\tstringCharge = stringCharge.substring(1);\r\n\t\t\t\t\t//parse String to double to take care of \r\n\t\t\t\t\t//exception\r\n\t\t\t\t\t//System.out.println(\"Cost: \"+stringCharge);\r\n\t\t\t\t\tcharges = (float)Double.parseDouble(stringCharge);\r\n\t\t\t\t} else if (i == 8) {//parse String to Boolean \r\n\t\t\t\t\th_column = Boolean.parseBoolean(personArray[8]);\r\n\t\t\t\t} else if (i == 9) {\r\n\t\t\t\t\ti_column = Boolean.parseBoolean(personArray[9]);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (i == 10)\r\n\t\t\t\t\t\tcity = personArray[10];\r\n \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t} // while loop ends\r\n\r\n\t\t//create object & initialise all data members\r\n\t\tMs3Person person = new Ms3Person(firstName, lastName, email, gender, urlLink, card, charges, h_column, i_column,\r\n\t\t\t\tcity);\r\n\t\tlineCount++;\r\n\t\t//know how many lines are being read\r\n\t\tSystem.out.println(person + \" lineNo: \" + lineCount);\r\n\t\treturn person;//return the PErson object\r\n \r\n\t}", "private ImportCommand parseLinesFromFile(BufferedReader br) {\n boolean hasContactWithInvalidField = false;\n boolean hasContactWithoutName = false;\n try {\n String line = br.readLine();\n while (line != null) {\n String[] attributes = line.split(\",\", -1);\n int numAttributes = attributes.length;\n\n if (attributes[NAME_FIELD].equalsIgnoreCase(\"Name\")\n || attributes[NAME_FIELD].equalsIgnoreCase(\"Name:\")) { // ignore headers\n line = br.readLine();\n continue;\n }\n\n if (contactHasNoName(attributes, numAttributes)) {\n hasContactWithoutName = true;\n line = br.readLine();\n continue;\n }\n\n Name name = null;\n Optional<Phone> phone = Optional.empty();\n Optional<Email> email = Optional.empty();\n Optional<Address> address = Optional.empty();\n Meeting meeting = null;\n\n try {\n name = ParserUtil.parseName(attributes[NAME_FIELD]);\n if (!attributes[PHONE_FIELD].matches(\"\")) {\n phone = Optional.of(ParserUtil.parsePhone(attributes[PHONE_FIELD]));\n }\n if (!attributes[EMAIL_FIELD].matches(\"\")) {\n email = Optional.of(ParserUtil.parseEmail(attributes[EMAIL_FIELD]));\n }\n if (!attributes[ADDRESS_FIELD].matches(\"\")) {\n address = Optional.of(ParserUtil.parseAddress(attributes[ADDRESS_FIELD]));\n }\n if (!attributes[MEETING_FIELD].matches(\"\")) {\n meeting = ParserUtil.parseMeeting(attributes[MEETING_FIELD]);\n }\n } catch (ParseException pe) {\n hasContactWithInvalidField = true;\n line = br.readLine();\n continue;\n }\n\n ArrayList<String> tags = new ArrayList<>();\n //Check for tags\n if (numAttributes > TAG_FIELD_START) {\n for (int i = TAG_FIELD_START; i < numAttributes; i++) {\n if (!attributes[i].matches(\"\")) {\n tags.add(attributes[i]);\n }\n }\n }\n\n Set<Tag> tagList = null;\n try {\n tagList = ParserUtil.parseTags(tags);\n } catch (ParseException e) {\n line = br.readLine();\n continue;\n }\n if (meeting == null) {\n persons.add(new Person(name, phone, email, address, tagList));\n } else {\n persons.add(new Person(name, phone, email, address, tagList, meeting));\n }\n line = br.readLine();\n }\n br.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n return new ImportCommand(persons, hasContactWithInvalidField, hasContactWithoutName);\n }", "public interface Columns {\r\n public static final String LOGIN_ID = \"login_id\";\r\n public static final String PASSWORD = \"password\";\r\n public static final String ADDRESS = \"address\";\r\n public static final String FEE = \"fee\";\r\n public static final String GRACE_PERIOD = \"grace_period\";\r\n public static final String USEREMAIL = \"user_email\";\r\n }", "public void dataFileCreate() {\r\n\t\tString COMMA_DELIMITER = \",\";\r\n\t\tString NEW_LINE_SEPERATOR = \"\\n\";\r\n\t\tString FILE_HEADER = \"Title,First Name,Last Name,Email,Phone Number\";\r\n\t\ttry {\r\n\t\t\tList<Customer> dataList = new ArrayList<Customer>();\r\n\t\t\tdataList.add(\r\n\t\t\t\t\tnew Customer(title, customerFirstName, customerLastName, custromerEmailId, customerPhoneNumber));\r\n\r\n\t\t\tFileWriter fileWriter = new FileWriter(\"CustomerDetails.csv\");\r\n\t\t\tBufferedWriter bufferWriter = new BufferedWriter(fileWriter);\r\n\t\t\tbufferWriter.append(FILE_HEADER);\r\n\r\n\t\t\tfor (Customer c : dataList) {\r\n\t\t\t\tbufferWriter.write(NEW_LINE_SEPERATOR);\r\n\t\t\t\tbufferWriter.write(c.getTitle());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getFirstName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getLastName());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(c.getEmailAddress());\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t\tbufferWriter.write(String.valueOf(c.getPhone()));\r\n\t\t\t\tbufferWriter.write(COMMA_DELIMITER);\r\n\t\t\t}\r\n\r\n\t\t\tbufferWriter.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public static void test000(String[] args) throws IOException\n {\n\n\n //System.out.println(sql_insert_shipto_template);\n\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SALES_ORGANIZATION_CODE%\", \"261\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%DC_SHORTNAME%\", \"PF\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SHIPTO_CODE%\", \"10156409\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%PRODUCT_CODE%\", \"10104574\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%STARTDATE%\", \"01.02.2014\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%FINISHDATE%\", \"31.12.9999\");\n\n\n // String test = \"1\\t2\\t3\\n4\\t5\\t6\";\n\n String test = \"SO;SHIPTO;SHIPTO;DCSHORT;REP;GRD;Name;start date;end date\\n\" +\n \"261;10156405PF;10156405;PF;249394;10104570;A.KORKUNOV DARK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"261;10156405CH;10156405;CH;249410;10104542;A.KORKUNOV MILK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"377;10156409PF;10156409;PF;249399;10104574;A.KORKUNOV DARK ALMOND 5*10*100G;07.10.2014;31.12.9999\\n\";\n\n\n //CSVParser parser = CSVParser.parse(test, CSVFormat.newFormat(';'));\n File file = new File(\"c:\\\\MATDET_SHIPTO_EXAMPLE.csv\");\n CSVParser parser = CSVParser.parse(file, java.nio.charset.Charset.defaultCharset(), CSVFormat.newFormat(';'));\n\n int rownum = 0;\n for (CSVRecord strings : parser)\n {\n\n if (rownum++ == 0)\n continue;\n String SO = strings.get(0);\n String SHIPTO = strings.get(2);\n String DCSHORT = strings.get(3);\n //String REP = strings.get(4);\n String PRODUCT = strings.get(5);\n String START = strings.get(7);\n String END = strings.get(8);\n\n String temp = SQL_INSERT_TMATDET_SHIPTO_TEMPLATE;\n temp = temp.replaceAll(\"%SALES_ORGANIZATION_CODE%\", SO);\n temp = temp.replaceAll(\"%DC_SHORTNAME%\", DCSHORT);\n temp = temp.replaceAll(\"%SHIPTO_CODE%\", SHIPTO);\n temp = temp.replaceAll(\"%PRODUCT_CODE%\", PRODUCT);\n temp = temp.replaceAll(\"%STARTDATE%\", START);\n temp = temp.replaceAll(\"%FINISHDATE%\", END);\n\n\n System.out.println(temp);\n }\n\n System.out.println(\"rows=\" + rownum);\n\n\n// CsvParser parser = new CsvParserImpl();\n// CSV\n// parser.\n// List parsed = parser.parse(\"1\\t2\\t3\\n4\\t5\\t6\");\n// System.out.println(parsed.get(0));\n\n //System.out.println(sql_insert_shipto_template);\n\n }", "private List<User> readFromFile() {\n\n List<String> lines = new ArrayList<>();\n List<User> contactList = new ArrayList<>();\n Map<String, PhoneNumber> phoneNumbersNewUser = new HashMap<>();\n\n try (BufferedReader in = new BufferedReader(new FileReader(contactsFile))) {\n String line;\n while ((line = in.readLine()) != null) {\n lines.add(line);\n }\n\n } catch (IOException ex) {\n System.out.println(\"File not found \\n\" + ex);\n ;\n }\n\n for (String line : lines) {\n String[] userProperties = line.split(\"\\\\|\");\n\n int id = Integer.parseInt(userProperties[0]);\n String fName = userProperties[1];\n String lName = userProperties[2];\n String email = userProperties[3];\n int age = Integer.parseInt(userProperties[4]);\n String[] phones = userProperties[5].split(\"\\\\,\");\n String[] homePhone = phones[0].split(\"\\\\_\");\n String[] mobilePhone = phones[1].split(\"\\\\_\");\n String[] workPhone = phones[2].split(\"\\\\_\");\n phoneNumbersNewUser.put(homePhone[0], new PhoneNumber(homePhone[1], homePhone[2]));\n phoneNumbersNewUser.put(mobilePhone[0], new PhoneNumber(mobilePhone[1], mobilePhone[2]));\n phoneNumbersNewUser.put(workPhone[0], new PhoneNumber(workPhone[1], workPhone[2]));\n String[] homeAdress = userProperties[6].split(\"\\\\,\");\n Address homeAdressNewUser = new Address(homeAdress[0], Integer.parseInt(homeAdress[1]), Integer.parseInt(homeAdress[2]),\n homeAdress[3], homeAdress[4], homeAdress[5], homeAdress[6]);\n String title = userProperties[7];\n String[] companyProperties = userProperties[8].split(\"\\\\_\");\n String[] companyAddress = companyProperties[1].split(\"\\\\,\");\n Address companyAddressNewUser = new Address(companyAddress[0], Integer.parseInt(companyAddress[1]),\n Integer.parseInt(companyAddress[2]), companyAddress[3], companyAddress[4], companyAddress[5],\n companyAddress[6]);\n String companyName = companyProperties[0];\n Company companyNewUser = new Company(companyName, companyAddressNewUser);\n boolean isFav = Boolean.parseBoolean(userProperties[9]);\n User user = new User(id, fName, lName, email, age, phoneNumbersNewUser, homeAdressNewUser, title, companyNewUser, isFav);\n contactList.add(user);\n }\n\n\n return contactList;\n }", "public static void WriteToACsv(AddressbookModel addressbook,String addressbookname){\n final String COMMA_DELIMITER = \",\";\n final String LINE_SEPARATOR = \"\\n\";\n String PATH=\"C:\\\\Users\\\\Srikar\\\\IdeaProjects\\\\Addressbook\\\\src\\\\com\\\\mphasis\\\\data\"+\"\\\\\"+addressbookname;\n final String HEADER = \"Firstname,LastName,Address,City,Pincode,Number\";\n List personList=addressbook.getAddressbook();\n FileWriter fileWriter=null;\n try{\n fileWriter=new FileWriter(PATH);\n fileWriter.append(HEADER);\n fileWriter.append(\"\\n\");\n Iterator it=personList.iterator();\n while (it.hasNext()){\n Person person=(Person) it.next();\n fileWriter.append(person.getFirstname());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getLastname());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getAddress());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getCity());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getZip());\n fileWriter.append(COMMA_DELIMITER);\n fileWriter.append(person.getPhone());\n fileWriter.append(LINE_SEPARATOR);\n }\n }\n catch(Exception ee)\n {\n ee.printStackTrace();\n }\n finally\n {\n try\n {\n fileWriter.close();\n }\n catch(IOException ie)\n {\n System.out.println(\"Error occured while closing the fileWriter\");\n ie.printStackTrace();\n }\n }\n }", "public void importUsers(String filename) throws Exception {\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br = new BufferedReader(fr);\r\n\t\t\r\n\t\twhile(true) {\r\n\t\t\tString line = br.readLine();\r\n\t\t\tif (line == null)\r\n\t\t\t\tbreak;\r\n\t\t\tString[] tokens = line.split(\",\");\r\n\t\t\tString userLastName = tokens[0].trim();\r\n\t\t\tString userFirstName = tokens[1].trim();\r\n\t\t\tString userMiddleName = tokens[2].trim();\t\t\t\r\n\t\t\tString email = tokens[3].trim();\r\n\t\t\tString userName = tokens[4].trim();\r\n\t\t\tString password = tokens[5].trim();\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Line:\"+line);\r\n\t\t\tSystem.out.println(\"LastName:\"+userLastName);\r\n\t\t\tSystem.out.println(\"FirstName:\"+userFirstName);\r\n\t\t\tSystem.out.println(\"MiddleName:\"+userMiddleName);\r\n\t\t\tSystem.out.println(\"Email:\"+email);\r\n\t\t\tSystem.out.println(\"UserName:\"+userName);\r\n\t\t\tSystem.out.println(\"Password:\"+password);\r\n\t\t\t\r\n\t\t\tUser user = new User();\r\n\t\t\tuser.setLastName(userLastName);\r\n\t\t\tuser.setFirstName(userFirstName);\r\n\t\t\tuser.setMiddleName(userMiddleName);\r\n\t\t\tuser.setEmailAddress(email);\r\n\t\t\tuser.setUserName(userName);\r\n\t\t\tuser.setPassword(password);\t\t\t\r\n\t\t\tuser.setStatus(UserStatus.ACTIVE);\r\n\t\t\t\r\n\t\t\tem.persist(user);\r\n\t\t}\r\n\t\t\r\n\t\tbr.close();\r\n\t\tfr.close();\r\n\t}", "public void displayRecords() {\n\t\tSystem.out.println(\"****Display Records****\");\n\t\tSystem.out.print(\"Firstname \\tLastname \\tAddress \\t\\tCity \\t\\tState \\t\\t\\tZIP \\t\\tPhone \\n\");\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tif (details[i] == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(details[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}", "private void putPersonalInformation() throws SQLException, FileNotFoundException, IOException {\n AdUserPersonalData personal;\n try {\n personal = PersonalDataController.getInstance().getPersonalData(username);\n staff_name = personal.getGbStaffName();\n staff_surname = personal.getGbStaffSurname();\n id_type = \"\"+personal.getGbIdType();\n id_number = personal.getGbIdNumber();\n putProfPic(personal.getGbPhoto());\n phone_number = personal.getGbPhoneNumber();\n mobile_number = personal.getGbMobileNumber();\n email = personal.getGbEmail();\n birthdate = personal.getGbBirthdate();\n gender = \"\"+personal.getGbGender();\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putException(ex);\n }\n }", "public void createArrayList() throws IOException,ParseException\r\n\t {\n\t \t\r\n\t try(ICsvBeanReader beanReader = new CsvBeanReader(new FileReader(CSV_FILENAME), \r\n\t \t\tCsvPreference.STANDARD_PREFERENCE))\r\n\t {\r\n\t // the header elements are used to map the values to the bean\r\n\t final String[] headers = beanReader.getHeader(true);\r\n\t final CellProcessor[] processors = getProcessors();\r\n\t Complete customer;\r\n\t String gender,fullname;\r\n\t while ((customer = beanReader.read(Complete.class, headers, processors)) != null)\r\n\t {\r\n\t fullname = customer.getFirstname() + \" \" + customer.getLastname();\r\n\t if(customer.getGender().equals(\"f\"))\r\n\t \t gender = \"female\";\r\n\t \telse\r\n\t gender = \"male\";\r\n\t Date dob=new SimpleDateFormat(\"MM/dd/yyyy\").parse(customer.getDob()); \r\n\t String pattern = \"dd/MM/yyyy\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n \tString date = simpleDateFormat.format(dob);\r\n\t String age = calcAge(date);\r\n\t if(customer.getCategory().equals(\"student\"))\r\n\t {\r\n\t \tString grade = calcGrade(customer.getSec_percent());\r\n\t \tstudentList.add(new Student(customer.getId(),fullname,gender,date,age,customer.getAadhar_number(),customer.getCity(),\r\n\t \tcustomer.getContact_number(),Integer.parseInt(customer.getRoll_no()),customer.getClass_no(),Integer.parseInt(customer.getTotal_marks())\r\n\t \t,grade,Integer.parseInt(customer.getSec_percent()),customer.getHs_stream()));\r\n\t \t\t\r\n\t } \r\n\t else //for teacher\r\n\t {\r\n\t \tDate doj=new SimpleDateFormat(\"MM/dd/yyyy\").parse(customer.getDoj()); \r\n\t \tString pattern1 = \"dd/MM/yyyy\";\r\n\t SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat(pattern);\r\n \tString join_date = simpleDateFormat.format(doj);\r\n\t \tString str_sub_teachers = customer.getSubject_teaches();\r\n\t \tString service_period = calService(join_date);\r\n\t \tList<String> sub_teachers = new ArrayList<String>(Arrays.asList(str_sub_teachers.split(\"-\")));\r\n\t \t\t\t\r\n\t \t\tteacherList.add(new Teacher(customer.getId(),fullname,gender,date,age,customer.getAadhar_number(),customer.getCity(),\r\n \t\t\t\tcustomer.getContact_number(),customer.getEmp_no(),customer.getClass_teacher_of(),join_date,service_period\r\n \t\t\t\t,customer.getPrevious_school(),customer.getPost(),Integer.parseInt(customer.getSalary()),sub_teachers));\r\n }\r\n\t \r\n\t } //while\r\n\t }\r\n\t System.out.println(\"ArrayList Sucessfully Created\");\t\r\n\t \t\r\n\t }", "public static void readRecords() {\n\t\t\n\t\tSystem.out.printf(\"%-10s%-12s%-12s%10s%n\", \"Account\", \"First Name\", \"Last Name\", \"Balance\");\n\t\t\n\t\ttry {\n\t\t\twhile (input.hasNext()) {\n\t\t\t\tSystem.out.printf(\"%-10s%-12s%-12s%10.2f%n\", input.nextInt(), input.next(), input.next(), input.nextDouble());\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (NoSuchElementException elementException) {\n\t\t\tSystem.out.println(elementException);\n\t\t\tSystem.err.println(\"File improperly formed. Terminating.\");\n\t\t}\n\t\tcatch (IllegalStateException stateException)\n\t\t{\n\t\t\tSystem.err.println(\"Error reading from file. Terminating.\");\n\t\t}\n\t\t\t\n\t\t}", "private String[] parseLine(final String nextLine, final boolean readLine)\n throws IOException {\n String line = nextLine;\n if (line.length() == 0) {\n return new String[0];\n } else {\n\n final List<String> fields = new ArrayList<String>();\n StringBuilder sb = new StringBuilder();\n boolean inQuotes = false;\n boolean hadQuotes = false;\n do {\n if (inQuotes && readLine) {\n sb.append(\"\\n\");\n line = getNextLine();\n if (line == null) {\n break;\n }\n }\n for (int i = 0; i < line.length(); i++) {\n final char c = line.charAt(i);\n if (c == CsvConstants.QUOTE_CHARACTER) {\n hadQuotes = true;\n if (inQuotes && line.length() > i + 1\n && line.charAt(i + 1) == CsvConstants.QUOTE_CHARACTER) {\n sb.append(line.charAt(i + 1));\n i++;\n } else {\n inQuotes = !inQuotes;\n if (i > 2 && line.charAt(i - 1) != this.fieldSeparator\n && line.length() > i + 1\n && line.charAt(i + 1) != this.fieldSeparator) {\n sb.append(c);\n }\n }\n } else if (c == this.fieldSeparator && !inQuotes) {\n hadQuotes = false;\n if (hadQuotes || sb.length() > 0) {\n fields.add(sb.toString());\n } else {\n fields.add(null);\n }\n sb = new StringBuilder();\n } else {\n sb.append(c);\n }\n }\n } while (inQuotes);\n if (sb.length() > 0 || fields.size() > 0) {\n if (hadQuotes || sb.length() > 0) {\n fields.add(sb.toString());\n } else {\n fields.add(null);\n }\n }\n return fields.toArray(new String[0]);\n }\n }", "private void processRecords()\n {\n // This is the way to connect the file to an inputstream in android\n InputStream inputStream = getResources().openRawResource(R.raw.products);\n\n Scanner scanner = new Scanner(inputStream);\n\n\n // skipping first row by reading it before loop and displaying it as column names\n String[] tableRow = scanner.nextLine().split(\",\");\n\n //Log.e(\"COLUMN NAMES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN NAMES SIZE\", String.valueOf(tableRow.length));\n\n\n // --- Truncate table (delete all rows and reset auto increment --\n // this line of code will be useful because for now we are forced to read file\n // everytime we open app, this way we do not have duplicate data.\n db.resetTable();\n\n while (scanner.hasNextLine())\n {\n tableRow = scanner.nextLine().split(\",\");\n //Log.e(\"COLUMN VALUES\", Arrays.toString(tableRow));\n //Log.e(\"COLUMN VALUES SIZE\", String.valueOf(tableRow.length));\n\n /*\n * Possible Change:\n * On each iteration a new Product() can be created and call the setter to set\n * its fields to the elements of the String array, example\n * product = new Product();\n * product.setNumber(tableRow[0]);\n * product.setBusinessName(tableRow[1]);\n * ...\n * db.insertData(product); // because the new insertData method would expect a\n * Product object instead\n *\n */\n\n // insert data\n if (db.insertData(tableRow))\n {\n //Log.e(\"Insert\", \"SUCCESSFUL INSERT AT \" + tableRow[0]);\n }\n else\n {\n //Log.e(\"Insert\", \"UNSUCCESSFUL INSERT\");\n }\n\n }\n }", "public void parseAndPrintRecords() {\n ArrayList<Employee> employees;\n\n employees = parseData(data);\n\n System.out.printf(\"%10s%10s%10s\\n\", \"Last\", \"First\", \"Salary\");\n for(Employee employee : employees) {\n System.out.printf(\"%10s%10s%10d\\n\", employee.lName, employee.fName, employee.salary);\n }\n\n }", "CSV createCSV();", "private String[] readLine( String line ) throws IOException {\n if ( StringUtils.isBlank( line ) ) {\n return null;\n }\n if ( line.startsWith( \"#\" ) ) {\n return null;\n }\n\n String[] fields = StringUtils.splitPreserveAllTokens( line, '\\t' );\n if ( fields.length < 2 ) {\n throw new IOException( \"Illegal format, expected at least 2 columns, got \" + fields.length );\n }\n return fields;\n\n }", "@Test\r\n\tvoid testImportRecordsShouldReadTheTempFileAndSave3Persons() throws IOException {\r\n\t\tFile temp = File.createTempFile(\"temp\", \"tmp\");\r\n\t\tFileWriter writer = new FileWriter(temp);\r\n\t\twriter.write(\"Costley, Dukie, Male, Green, 1947-07-13\\n\"\r\n\t\t\t\t+ \"Bettley | Abbe | Female | Purple | 1930-01-01\\n\"\r\n\t\t\t\t+ \"Kindall Rici Female Aquamarine 2004-01-14\\n\");\r\n\t\twriter.flush();\r\n\t\twriter.close();\r\n\t\ttemp.deleteOnExit();\r\n\t\tRecordParser parser = new RecordParser();\r\n\t\ttry {\r\n\t\t\tassertTrue(parser.importRecords(temp));\r\n\t\t\tassertEquals(3, parser.getPeople().size());\r\n\t\t\tassertEquals(\"Costley Dukie male Green 7/13/1947 \", parser.getPeople().get(0).getDetails());\r\n\t\t} catch (FileNotFoundException fnfe) {\r\n\t\t\tfnfe.printStackTrace();\r\n\t\t}\r\n\t}", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"./first_and_last_names.csv\"));\n\t\tPrintWriter writer = new PrintWriter(\"./first_and_last_names_fix.csv\", \"UTF-8\");\n\t\tString line = br.readLine();\n\t\twriter.println(line);\n\t\tline = br.readLine();\n\t\t\n\t\twhile (line!=null)\n\t\t{\n\t\t\tif (line.length()>0)\n\t\t\t{\n\t\t\t\tif (Character.isDigit(line.charAt(0)))\n\t\t\t\t{\t\n\t\t\t\t\tif (line.endsWith(\"\\\"\"))\n\t\t\t\t\twriter.println(line);\n\t\t\t\t\telse\n\t\t\t\t\twriter.print(line);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(line.endsWith(\"\\\"\"))\n\t\t\t\t\t{\t\n\t\t\t\t\t\twriter.print(\"\\\"\");\n\t\t\t\t\t\tline = line.substring(line.indexOf(\",\"), line.length());\n\t\t\t\t\t\twriter.println(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tline = br.readLine();\n\t\t\tactualLine++;\n\t\t\tif(actualLine%1000==0)\n\t\t\t\tSystem.out.println(actualLine);\n\t\t\t\n\t\t\t\n\t\t\n\t\t}\n\t\tbr.close();\n\t\twriter.close();\n\t}", "public static void addRecords() {\n\t\t\n\t\ttry {\n\t\t\twhile(fileInput.hasNextLine()) {\n\t\t\t\t// get user input to add contact to list. \n\t\t\t\tSystem.out.print(\"\\n\\nEnter contact first name: \");\t\n\t\t\t\tString firstName = input.next();\n\t\t\t\tSystem.out.print(\"\\nEnter contact last name: \");\n\t\t\t\tString lastName = input.next();\n\t\t\t\tSystem.out.print(\"\\nEnter contact phone number: \"); \n\t\t\t\tString phoneNumber = input.next();\n\t\t\t\tSystem.out.print(\"\\nEnter contact email address: \");\n\t\t\t\tString email = input.next();\n\t\t\t\t\n\t\t\t\tString[] contactInfo = { firstName, lastName, phoneNumber, email };\n\t\t\t\t\n\t\t\t\tList<String> newInput = Arrays.asList(contactInfo);\n\t\t\t\tSystem.out.printf(\"Unsorted array elements: %s%n\", list);\n\t\t\t\t\n\t\t\t\tCollections.sort(list); // sort ArrayList\n\t\t\t\tSystem.out.printf(\"Sorted array elements: %s%n\", list);\n\t\t\t\t\n\t\t\t\t// output new record to file.\n\n\t\t}\n\t\tcatch (FormatterClosedException f) {\n\t\t\tSystem.err.println(\"Error writing to file. Terminating.\"); break;\n\t\t}\n\t\tcatch (NoSuchElementException e) {\n\t\t\tSystem.err.println(\"Invalid input. Please try again.\");\n\t\t\tinput.nextLine(); // discard input so user can try again. \n\t\t}\n\t\t\t\n\t\tSystem.out.println(\"Enter another contact? 0 for no, 1 for yes: \");\n\t\tswitch(input.nextInt()) {\n\t\t\tcase 0: moreInput = false; break;\n\t\t\tcase 1: moreInput = true; break;\n\t\t}\n\t\t\t\n\t\t\t\n\t\t} // end while. \n\n\t\tSystem.out.println();\n\t}", "private void processCSVFile( BufferedReader csvFile ) throws IOException {\r\n\t\t\r\n\t\tboolean headerRowRead = false;\r\n\t\tString[] headerArray = null;\r\n\t\t\r\n\t\t//loop through all rows and create contacts\r\n\t\tString row = csvFile.readLine();\r\n\t\t\r\n\t\twhile (row != null) {\r\n\t\t\t\r\n\t\t\tif (row.length()==0 || row.startsWith(\"#\") || row.startsWith(\";\") ) {\t\t\r\n\t\t\t\t\r\n\t\t\t\t//empty or comment row: skip\r\n\t\t\t\t\r\n\t\t\t} else if (!headerRowRead) {\r\n\t\t\t\t\r\n\t\t\t\t//header row is the first non-blank, not-comment row in the CSV file\r\n\t\t\t\t//the required header row contains the attribute names\r\n\t\t\t\t\r\n\t\t\t\theaderRowRead = true;\r\n\t\t\t\t\r\n\t\t\t\t//read header\r\n\t\t\t\theaderArray = parseCSVLine( row, true); \t\t\r\n\t\t\t\tLogger.debug(\"header: \" + row);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\r\n\t\t\t\tHashMap<String,String> contactObject = ContactsImport.getRowValues(headerArray, row);\r\n\t\t\t\tcreateContact(contactObject);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trow = csvFile.readLine(); //read next line form csv file\r\n\t\t}\r\n\t\t\r\n\t\tLogger.debug(\"finished\");\r\n\r\n\t}", "public interface CSVBean{\n \n}", "public void new_record()\n {\n /*\n Prompt for data:\n Last name\n First name\n Phone\n */\n \n //Craete a scanner object\n Scanner kb = new Scanner(System.in);\n \n //prompt for the last name\n System.out.print(\"Last name: \");\n \n //input the last name\n String lastName = kb.nextLine();\n \n //the Last_name must not be empty\n if(lastName.length() > 0 )\n {\n //get the first name and the phone\n System.out.print(\"First name: \");\n String firstName = kb.nextLine();\n \n System.out.print(\"Phone: \");\n String phone = kb.nextLine(); \n \n \n \n //create the output string\n \n \n \n \n //delare variables to hold file types\n FileWriter fWrite = null;\n \n //try to open the file for writing - append the data\n try\n {\n fWrite = new FileWriter(new File(filename), true);\n \n }\n catch(IOException ioe)\n {\n System.out.println(\"new_record: Exception opening the file for writing\");\n }\n //try to wrtie the data\n try\n {\n fWrite.write(lastName + \",\" + firstName + \",\" + phone + \"\\n\");\n \n }\n catch(IOException ioe)\n {\n System.out.println(\"new_record: Exception writing to the file\");\n }\n //try to close the file\n try\n {\n fWrite.close();\n \n }\n catch(IOException ioe)\n {\n System.out.println(\"new_record: Exception closing the file\");\n }\n \n }//end of test of Last_name\n \n }", "public Entry(String firstName, String lastName, String phone, String email) {\r\n this.firstName = firstName;\r\n this.lastName = lastName;\r\n this.phone = phone;\r\n this.email = email;\r\n }", "public static void main(String[] args) {\n ArrayList<arrayset> list = new ArrayList<>();\n String [] newarray= new String[97];\n File data = new File(\"records.txt\");\n try {\n Scanner input = new Scanner(data);\n while (input.hasNextLine()) {\n String line = input.nextLine();\n firstName = line.split(\",\")[0];\n\n lastName = line.split(\",\")[1];\n\n gender = line.split(\",\")[2];\n\n age = Integer.parseInt(line.split(\",\")[3]);\n\n phoneNo = line.split(\",\")[4];\n\n email = line.split(\",\")[5];\n\n firstName = Character.toUpperCase(firstName.charAt(0)) + firstName.substring(1, firstName.length());\n lastName = Character.toUpperCase(lastName.charAt(0)) + lastName.substring(1, lastName.length());\n\n if (gender.toLowerCase() == \"male\" || gender.toLowerCase() == \"female\") {\n gender = gender.toLowerCase();\n }\n if (age > 1 || age < 129) {\n age = age;\n }\n else if(age <1 || age > 129) {\n System.out.println(\"Error person not valid\");\n }\n if (phoneNo.length() == 13) {\n phoneNo = phoneNo;\n }\n else if(phoneNo.length()<13) {\n System.out.println(\"Error person not valid\");\n }\n if (email.matches(\"[A-Z][0-9].@\")) {\n email = email;\n }\n else if(email.matches(\"[A-Z][0-9].@\")) {\n System.out.println(\"Error person not valid\");\n }\n list.add(new arrayset(firstName, lastName, gender, age, phoneNo, email));\n }\n input.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"Error Wrong File!\");\n }\n System.out.println(\"Error: Person 4 is not valid, since age = -89\\n\" +\n \"Error: Person 12 is not valid, since last name = Lara22\\n\" +\n \"Error: Person 21 is not valid, since age = 179\\n\" +\n \"Error: Person 32 is not valid, since last name = Mccullough\\n\" +\n \"Error: Person 52 is not valid, since email = MMaddenMadden.net\\n\" +\n \"Error: Person 96 is not valid, since age = 0\");\n System.out.format(\"%-20s%-15s%-15s%-10s%-20s%7s \", \"First Name\", \"Last Name\", \"Gender\", \"Age\", \"Number\", \"Email\");\n\n int i = 0;\n while (i < list.size()) {\n String printarray= String.format(\"%-20s%-15s%-15s%-10s%-20s%7s \", list.get(i).getFirstName(), list.get(i).getLastName(),\n list.get(i).getGender(), list.get(i).getAge(), list.get(i).getPhoneNo(), list.get(i).getEmail());\n newarray[i]=printarray;\n i++;\n\n }\n for(int j=0; j<newarray.length; j++) {\n System.out.println(newarray[j]);\n\n }\n}", "private void viewAllInfo(){\r\n try{\r\n Scanner scanner = new Scanner(file);\r\n String info;\r\n\r\n while (scanner.hasNext()){\r\n String line = scanner.nextLine();\r\n String[] components = line.split(separator);\r\n info = \" Name: \" + components[0] + \"\\n\";\r\n info += \" Phone No.: \"+components[1]+\"\\n\";\r\n info += \" Email: \"+components[2]+\"\\n\";\r\n info += \" Address: \"+components[3]+\"\\n\";\r\n textAreaFromAllInfo.append(info+\"\\n\");\r\n }\r\n\r\n }catch (IOException e){\r\n fileError();\r\n }\r\n }", "public void fillContactInfoFields(String firstName, String lastName, String phone, String email) {\n\t\tfillInputField(inputFirstName, firstName);\n\t\tfillInputField(inputLastName, lastName);\n\t\tfillInputField(inputPhone, phone);\n\t\tfillInputField(inputEmail, email);\n\t}", "private static ArrayList<Ms3Person> readCSV(String fileName) {\r\n\t\tArrayList<Ms3Person> personsList = new ArrayList<>();\r\n\t\ttry (Scanner sc = new Scanner(new File(fileName))) {\r\n\t\t\t// skip the first line which is having column headers name\r\n\t\t\tsc.nextLine();\r\n\t\t\tint index = 1;\r\n\t\t\t// loop will go till end of file is reached ie.\r\n\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t// read single line at a time\r\n\t\t\t\tString personData = sc.nextLine();\r\n\t\t\t\tif(index >=5999)\r\n\t\t\t\t\tSystem.out.println(index+\" index\"+personData);\r\n\t\t\t\t//System.out.println(personData);\r\n\t\t\t\t//split the string by delimiter ,\r\n\t\t\t\tif(personData.length()>2) {\r\n\t\t\t\t\tString singlePersonRecord[] = personData.split(\",\");\r\n\t\t\t\t\t//the data we get is in form of sTring we need to convert\r\n\t\t\t\t\t//it to required data type for usage\r\n\t\t\t\t\tMs3Person person = convertDataToRequiredDataType(singlePersonRecord,index);\r\n\t\t\t\t\tif (person != null) {\r\n\t\t\t\t\t\t// add the person object in ArrayList\r\n\t\t\t\t\t\tpersonsList.add(person);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// bad data so create new file & write data\r\n // writing to the logfile\r\n \r\n \r\n\t\t\t\t\t}\r\n\t\t\t\t\tSystem.out.println(\"index: \" + index);\r\n\t\t\t\t}else {\r\n\t\t\t\t\tif(personData.length()<1) {//if no more line is there or only empty lines left\r\n\t\t\t\t\t\tSystem.out.println(\"finished reading the file...\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// if any exception arises while reading the file data that exception\r\n\t\t\t// will be caught in this block\r\n\t\t\tSystem.out.println(\"EXCEPTION: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn personsList;\r\n\t}", "final String [] getPersonalInfo(Object value) {\n int countInfo = 3; //Cound of the personal information fields\n String toString [] = new String[countInfo];\n //Extract some information\n toString[0] = (String) ((AbstractPerson) value).getFirstName();\n toString[1] = (String) ((AbstractPerson) value).getLastName();\n toString[2] = (String) ((AbstractPerson) value).getEmail();\n return toString;\n }", "public void insertdata(String file) {\n\r\n\r\n final String csvFile = file;\r\n\r\n try (BufferedReader br = new BufferedReader(new FileReader(csvFile))) {\r\n\r\n\r\n while ((line = br.readLine()) != null) {\r\n\r\n\r\n // use comma as separator\r\n String[] country = line.split(\",\");\r\n\r\n if (country.length == 12) {\r\n model_lacakMobil = new Model_LacakMobil();\r\n realmHelper = new RealmHelper(realm);\r\n\r\n model_lacakMobil.setNama_mobil(country[1]);\r\n model_lacakMobil.setNo_plat(country[2]);\r\n model_lacakMobil.setNamaunit(country[3]);\r\n model_lacakMobil.setFinance(country[4]);\r\n model_lacakMobil.setOvd(country[5]);\r\n model_lacakMobil.setSaldo(country[6]);\r\n model_lacakMobil.setCabang(country[7]);\r\n model_lacakMobil.setNoka(country[8]);\r\n model_lacakMobil.setNosin(country[9]);\r\n model_lacakMobil.setTahun(country[10]);\r\n model_lacakMobil.setWarna(country[11]);\r\n realmHelper.save(model_lacakMobil);\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n } finally {\r\n// fixing_data();\r\n\r\n }\r\n }", "@Test(timeout=100)\r\n\tpublic void testQuotedFields() {\r\n\t\tString [] r1 = {\"An Apple\", \"or Orange\"};\r\n\t\t// should not remove space inside of quotes\r\n\t\tString [] r2 = {\"\",\"a b\",\" has space \"};\r\n\t\tquoteline(r1);\r\n\t\tquoteline(r2);\r\n\t\tout.close();\r\n\t\r\n\t\tCSVReader csv = new CSVReader(getInstream());\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tassertArrayEquals( r1, csv.next() );\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\t}", "private void buildTable() {\n rowData = new Object[4];\n infoTable = new JTable();\n tableModel = new DefaultTableModel();\n tableModel.setColumnIdentifiers(columnNames);\n infoTable.setModel(tableModel);\n String line;\n \n try {\n FileInputStream fin = new FileInputStream(\"ContactInfo.txt\");\n BufferedReader br = new BufferedReader(new InputStreamReader(fin)); \n \n while((line = br.readLine()) != null)\n {\n rowData[0] = line;\n for(int i = 1; i < 4; i++) {\n rowData[i] = br.readLine();\n }\n tableModel.addRow(rowData);\n } \n br.close();\n }\n catch (FileNotFoundException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n catch (IOException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }", "public interface Contact {\n public String getId();\n\n public String getFirstName();\n\n public String getLastName();\n\n public String getEmailAddress();\n}", "public static void main(String[] args) {\n File data = new File(\"C:\" + File.separatorChar + \"temp\" + File.separatorChar \r\n + \"labFile.txt\");\r\n \r\n BufferedReader in = null;\r\n int count = 0;\r\n int recordCount = 0;\r\n try {\r\n //FileReader is being decorated by BufferedReader to make it read faster\r\n //buffered allows us to talk to file\r\n //open the stream\r\n in = new BufferedReader(new FileReader(data));\r\n //read the first line\r\n String line = in.readLine();\r\n //so long as line we just read is not null then continue reading file\r\n //if line is null it's end of file\r\n while (line != null) {\r\n \r\n \r\n if (count == 0) {\r\n String[] myStringArray = line.split(\" \");\r\n \r\n System.out.println(\"First Name: \" + myStringArray[0]);\r\n System.out.println(\"Last Name: \" + myStringArray[1]); \r\n } else if (count == 1) {\r\n \r\n System.out.println(\"Street Address: \" + line); \r\n } else if (count == 2) {\r\n \r\n String[] myStringArray = line.split(\" \");\r\n System.out.println(\"City: \" + myStringArray[0].replace(\",\", \" \"));\r\n System.out.println(\"State: \" + myStringArray[1]);\r\n System.out.println(\"Zip: \" + myStringArray[2]);\r\n \r\n count = -1;\r\n recordCount++;\r\n System.out.println(\"\");\r\n System.out.println(\"Number of records read: \" + recordCount);\r\n System.out.println(\"\");\r\n } \r\n count++;\r\n \r\n //reads next line\r\n line = in.readLine(); // strips out any carriage return chars\r\n \r\n }\r\n\r\n } catch (IOException ioe) {\r\n System.out.println(\"Houston, we have a problem! reading this file\");\r\n //want to close regardless if there is an error or not\r\n } finally {\r\n try {\r\n //close the stream\r\n //closing the file throws a checked exception that has to be surrounded by try catch\r\n in.close();\r\n } catch (Exception e) {\r\n\r\n }\r\n }\r\n }", "private static String writeRows(List<StudentRecord> records) {\n\t\tint maxJMBAG = getMax(records, FieldValueGetters.JMBAG);\n\t\tint maxLast = getMax(records, FieldValueGetters.LAST_NAME);\n\t\tint maxFirst = getMax(records, FieldValueGetters.FIRST_NAME);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (StudentRecord record : records) {\n\t\t\tsb.append(\"| \");\n\t\t\tsb.append(record.getJmbag() + \" | \");\n\t\t\tfor (int i = 0; i < maxJMBAG - record.getJmbag().length(); i++) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t\tsb.append(record.getLastName());\n\t\t\tfor (int i = 0; i < maxLast - record.getLastName().length(); i++) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t\tsb.append(\" | \");\n\t\t\tsb.append(record.getFirstName());\n\t\t\tfor (int i = 0; i < maxFirst - record.getFirstName().length(); i++) {\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t\tsb.append(\" | \" + record.getFinalGrade() + \" |\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public void importTable(BufferedReader br) {\r\n\t\tString line;\r\n\t\tTable table = null;\r\n\t\ttry {\r\n\t\t\tString tableName = br.readLine();\r\n\t\t\ttable = new Table(tableName);\r\n\t\t\tint[] types = convertTypes(br.readLine().split(\",\"));\r\n\t\t\tString[] names = br.readLine().split(\",\");\r\n\t\t\tassert (types.length == names.length);\r\n\t\t\tfor (int i = 0 ; i < types.length - 1; i++) {\r\n\t\t\t\ttable.newAttribute(names[i], types[i]);\r\n\t\t\t}\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tString[] entries = line.split(\",\");\r\n\t\t\t\tString[] entriesMinusLastModified = new String[entries.length - 1];\r\n\t\t\t\tfor (int i = 0; i < entriesMinusLastModified.length; i++) {\r\n\t\t\t\t\tentriesMinusLastModified[i] = entries[i];\r\n\t\t\t\t\tif (!table.getAttributes(i + 1).checkType(\r\n\t\t\t\t\t\t\tentriesMinusLastModified[i])) {\r\n\t\t\t\t\t\tentriesMinusLastModified[i] = \"--\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttable.newEntry(entriesMinusLastModified);\r\n\t\t\t\ttable.getAttributes(table.getAttributeNumber() - 1).\r\n\t\t\t\tchangeField(table.getLines() - 1, entries[entries.length - 1]);\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttable.delete();\r\n\t\t}\r\n\t}", "@Override\n public void importCSV(File file) {\n System.out.println(\"oi\");\n System.out.println(file.isFile()+\" \"+file.getAbsolutePath());\n if(file.isFile() && file.getPath().toLowerCase().contains(\".csv\")){\n System.out.println(\"Entro\");\n try {\n final Reader reader = new FileReader(file);\n final BufferedReader bufferReader = new BufferedReader(reader);\n String[] cabecalho = bufferReader.readLine().split(\",\");\n int tipo;\n if(cabecalho.length == 3){\n if(cabecalho[2].equalsIgnoreCase(\"SIGLA\")){\n tipo = 1;\n System.out.println(\"TIPO PAIS\");\n }\n else {\n tipo = 2;\n System.out.println(\"TIPO CIDADE\");\n }\n }else {\n tipo = 3;\n System.out.println(\"TIPO ESTADO\");\n }\n \n while(true){\n String linha = bufferReader.readLine();\n if(linha == null){\n break;\n }\n String[] row = linha.split(\",\");\n switch (tipo) {\n case 1:\n Pais pais = new Pais();\n pais.setId(Long.parseLong(row[0]));\n pais.setNome(row[1]);\n pais.setSigla(row[2]);\n new PaisDaoImpl().insert(pais);\n break;\n case 2:\n Cidade cidade = new Cidade();\n cidade.setId(Long.parseLong(row[0]));\n cidade.setNome(row[1]);\n cidade.setEstado(Long.parseLong(row[2]));\n new CidadeDaoImpl().insert(cidade);\n break;\n default:\n Estado estado = new Estado();\n estado.setId(Long.parseLong(row[0]));\n estado.setNome(row[1]);\n estado.setUf(row[2]);\n estado.setPais(Long.parseLong(row[3]));\n new EstadoDaoImpl().insert(estado);\n break;\n }\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public static void main(String[] args) throws IOException {\n\t\tScanner fileLine = new Scanner(new File (\"/Users/bsandi/eclipse-workspace/5511/src/assignment_4/ds17s-Asg4-data\"));\n\n\t\t// Length of the array\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(new File (\"/Users/bsandi/eclipse-workspace/5511/src/assignment_4/ds17s-Asg4-data\")));\n\t\tlnr.skip(Long.MAX_VALUE);\n\t\tint total_entries = lnr.getLineNumber()+1;\n\n\t\tfileLine.useDelimiter(\"\\\\n|:\");\n\t\tint col_num = 4;\n\n\n\t\t//Read data from text file\n\t\tString[][] inputArr = new String[total_entries][col_num];\t\n\t\tint j = 0;\n\t\tint l = 0;\n\t\twhile (l< total_entries ) {//fileLine.hasNext()) {\n\n\t\t\tfor (int k=0 ; k<col_num ; k++) {\n\t\t\t\tinputArr[j][k] = (fileLine.next());\n\t\t\t}\n\t\t\tl++;\n\t\t\tj++;\n\t\t}\n\t\tfileLine.close();\n\t\tlnr.close();\n\n\n\n\t\t// Ask for the the string to be searched \n\t\tint searchedField =-1;\n\t\tSystem.out.println(\"Choose a field to execute the search (1) Person’s name. (2) Email address. (3) Organization \");\n\t\tScanner field = new Scanner(System.in);\n\t\twhile (searchedField<1 || searchedField>3) {\t\n\t\t\tfield = new Scanner(System.in);\n\t\t\ttry {\n\t\t\t\tsearchedField = Integer.parseInt(field.nextLine());\n\t\t\t\tif (searchedField<1 || searchedField>3) {\n\t\t\t\t\tSystem.out.println(\"Input 1, 2 or 3 ((1) Person’s name. (2) Email address. (3) Organization) \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Input 1, 2 or 3 ((1) Person’s name. (2) Email address. (3) Organization) \");\n\t\t\t}\n\t\t}\n\n\t\t\n\n\n\n\n\n\t\t// Ask for the the string to be searched \n\t\tSystem.out.println(\"Give a string you would like to search: \");\n\t\tScanner item = new Scanner(System.in);\n\t\tString searchedItem = item.nextLine();\n\t\t\n\t\t\n\t\tfield.close();\n\t\titem.close();\n\n\t\t\n\t\t\n\t\t// Create output array\n\t\tint outputIndex = 0;\n\t\tint outputItems = 0;\n\t\tString[] output = new String[total_entries]; //Change to dynamic \n\t\tfor (int i = 0 ; i< output.length ; i++) {\n\t\t\tif (bma(searchedItem,inputArr[i][searchedField-1])) {\n\t\t\t\toutput[outputIndex]= inputArr[i][0] + \" - \" + inputArr[i][1] + \" - \" +inputArr[i][2] + \" - \" + inputArr[i][3];\n\t\t\t\toutputIndex = outputIndex +1;\n\t\t\t\toutputItems = outputItems +1;\n\t\t\t}\n\t\t}\n\n\n\t\t// Print output array\n\t\tfor (int i=0 ; i < outputItems ; i++) {\n\t\t\tSystem.out.println(output[i]);\n\t\t}\n\t\tif (outputItems==0) {\n\t\t\tSystem.out.println(\"No items found\");\n\t\t}\n\n\n\n\t}", "private OSPARRecords parseExcelFile(String excelFilePath) {\n\n\t\ttry {\n\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tbuilder.setPrettyPrinting();\n\t\t\tGson gson = builder.create();\n\t\t\t\n\t\t\t\n\t\t\tOSPARRecords or = new OSPARRecords();\n\n\t\t\tFile file = new File(excelFilePath);\n\t\t\tFileInputStream inputStream = new FileInputStream(new File(excelFilePath));\n\n\t\t\tWorkbook workbook = new HSSFWorkbook(inputStream);\n\t\t\tSheet firstSheet = workbook.getSheetAt(0);\n\n\t\t\tint row = 0;\n\n\t\t\tDataFormatter formatter = new DataFormatter();\n\t\t\t\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tRow nextRow = firstSheet.getRow(row);\n\n\t\t\t\tif (nextRow == null) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tString value=nextRow.getCell(0)+\"\";\n\t\t\t\t\n\t\t\t\tif (value.equals(\"\")) {\n\t\t\t\t\t\n\t\t\t\t\tString v3=nextRow.getCell(3)+\"\";\n\t\t\t\t\t\n\t\t\t\t\tif (!v3.equals(\"Source/Reference\")) {\n\t\t\t\t\t\tSystem.out.println(excelFilePath+\"\\t\"+or.CasNo+\"\\t\"+v3+\"\\t\"+value);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trow++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (value.equals(\"null\")) break;\n\t\t\t\t\n\t\t\t\tfloat fvalue=Float.parseFloat(value);\n\t\t\t\tDecimalFormat decform=new DecimalFormat(\"0.0\");\n\t\t\t\tString svalue=decform.format(fvalue);\n\t\t\t\t\n//\t\t\t\tSystem.out.println(or.CasNo+\"\\t\"+svalue);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tdata_field df = createDataField(nextRow);\n\t\t\t\t\n\t\t\t\tif (df.Value.equals(\"\") && df.Source_Reference.equals(\"\")) {\n\t\t\t\t\trow++;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t\tif (svalue.equals(\"0.0\")) \n\t\t\t\t\tor.Name=df.Value;\n\t\t\t\tif (svalue.equals(\"1.1\"))\n\t\t\t\t\tor.CasNo=convertCAS(df.Value);\n\t\t\t\tif (svalue.equals(\"1.2\"))\n\t\t\t\t\tor.EINECS=df.Value;\n\t\t\t\tif (svalue.equals(\"1.3\"))\n\t\t\t\t\tor.Synonym=df.Value;\n\t\t\t\tif (svalue.equals(\"1.4\"))\n\t\t\t\t\tor.Group_Function=df.Value;\n\t\t\t\tif (svalue.equals(\"1.5\"))\n\t\t\t\t\tor.Initial_Selection=df.Value;\n\t\t\t\tif (svalue.equals(\"1.6\"))\n\t\t\t\t\tor.Prioritized_For_Action=df.Value;\n\n\t\t\t\tif (svalue.equals(\"2.1\"))\n\t\t\t\t\tor.Molecular_weight.add(df);\n\t\t\t\tif (svalue.equals(\"2.2\"))\n\t\t\t\t\tor.Water_Solubility.add(df);\n\t\t\t\tif (svalue.equals(\"2.3\"))\n\t\t\t\t\tor.Vapor_Pressure.add(df);\n\n\t\t\t\tif (svalue.equals(\"3.1\"))\n\t\t\t\t\tor.Abiotic_OH_Oxidation_t1_2_d.add(df);\n\t\t\t\tif (svalue.equals(\"3.2\"))\n\t\t\t\t\tor.Photolysis_t1_2_d.add(df);\n\t\t\t\tif (svalue.equals(\"3.3\"))\n\t\t\t\t\tor.Ready_Biodegradability.add(df);\n\t\t\t\tif (svalue.equals(\"3.4\"))\n\t\t\t\t\tor.Halflife.add(df);\n\t\t\t\tif (svalue.equals(\"3.5\"))\n\t\t\t\t\tor.Inherent_Biodegradability.add(df);\n\t\t\t\tif (svalue.equals(\"3.6\"))\n\t\t\t\t\tor.Biodeg_QSAR.add(df);\n\t\t\t\t\n\t\t\t\tif (svalue.equals(\"4.1\"))\n\t\t\t\t\tor.logKow.add(df);\n\t\t\t\tif (svalue.equals(\"4.2\"))\n\t\t\t\t\tor.Bcf.add(df);\n\n\t\t\t\tif (svalue.equals(\"5.1\"))\n\t\t\t\t\tor.Acute_toxicity_algae.add(df);\n\t\t\t\tif (svalue.equals(\"5.2\"))\n\t\t\t\t\tor.Acute_toxicity_daphnia.add(df);\n\t\t\t\tif (svalue.equals(\"5.3\"))\n\t\t\t\t\tor.Acute_toxicity_fish.add(df);\n\t\t\t\tif (svalue.equals(\"5.4\"))\n\t\t\t\t\tor.Chronic_toxicity_daphnia.add(df);\n\t\t\t\tif (svalue.equals(\"5.5\"))\n\t\t\t\t\tor.Chronic_toxicity_fish.add(df);\n\t\t\t\tif (svalue.equals(\"5.6\"))\n\t\t\t\t\tor.Aquatox_QSAR.add(df);\n\t\t\t\tif (svalue.equals(\"5.7\"))\n\t\t\t\t\tor.Aquatic_toxicity_Other.add(df);\n\n\n\t\t\t\tif (svalue.equals(\"6.1\"))\n\t\t\t\t\tor.Acute_toxicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.2\"))\n\t\t\t\t\tor.Carcinogenicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.3\"))\n\t\t\t\t\tor.Chronic_toxicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.4\"))\n\t\t\t\t\tor.Mutagenicity.add(df);\n\t\t\t\tif (svalue.equals(\"6.5\"))\n\t\t\t\t\tor.Reprotoxicity.add(df);\n\n\n\t\t\t\tif (svalue.equals(\"7.1\"))\n\t\t\t\t\tor.Production_Volume.add(df);\n\t\t\t\tif (svalue.equals(\"7.2\"))\n\t\t\t\t\tor.Use_Industry_Category.add(df);\n\t\t\t\tif (svalue.equals(\"7.3\"))\n\t\t\t\t\tor.Use_in_articles.add(df);\n\t\t\t\tif (svalue.equals(\"7.4\"))\n\t\t\t\t\tor.Environm_Occur_Measured.add(df);\n\t\t\t\tif (svalue.equals(\"7.5\"))\n\t\t\t\t\tor.Environm_Occur_Modelled.add(df);\n\n\t\t\t\tif (svalue.equals(\"8.1\"))\n\t\t\t\t\tor.Dir_67_548_EEC_Classification.add(df);\n\t\t\t\tif (svalue.equals(\"8.2\"))\n\t\t\t\t\tor.Reg_793_93_EEC_Existing_substances.add(df);\n\t\t\t\tif (svalue.equals(\"8.3\"))\n\t\t\t\t\tor.Dir_2000_60_EEC_WFD.add(df);\n\t\t\t\tif (svalue.equals(\"8.4\"))\n\t\t\t\t\tor.Dir_76_769_EEC_M_U.add(df);\n\t\t\t\tif (svalue.equals(\"8.5\"))\n\t\t\t\t\tor.Dir_76_464_EEC_water.add(df);\n\t\t\t\tif (svalue.equals(\"8.6\"))\n\t\t\t\t\tor.Dir_91_414_EEC_ppp.add(df);\n\t\t\t\tif (svalue.equals(\"8.7\"))\n\t\t\t\t\tor.Dir_98_8_EEC_biocid.add(df);\n\n\t\t\t\tif (svalue.equals(\"9.1\"))\n\t\t\t\t\tor.Hazard_assessment_OECD.add(df);\n\t\t\t\tif (svalue.equals(\"9.2\"))\n\t\t\t\t\tor.Other_risk_assessments.add(df);\n\n\t\t\t\trow++;\n\n\t\t\t}\n\n\t\t\tinputStream.close();\n\t\t\treturn or;\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public void setEmail_address(String email_address);", "private static List<StudentRecord> convert(List<String> lines) {\n\t\tObjects.requireNonNull(lines);\n\t\t\n\t\tArrayList<StudentRecord> result = new ArrayList<>(lines.size());\n\t\t\n\t\tfor(String data : lines) {\n\t\t\tif(data.length() == 0) continue; //preskoci prazne linije\n\t\t\tScanner sc = new Scanner(data);\n\t\t\tsc.useDelimiter(\"\\t\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tresult.add(new StudentRecord(sc.next(), sc.next(), sc.next(), sc.next(), sc.next(), sc.next(), sc.next()));\n\t\t\t}catch(NoSuchElementException e) {\n\t\t\t\tsc.close();\n\t\t\t\tthrow new NoSuchElementException(\"Data not formatted correctly.\");\n\t\t\t}\n\t\t\tsc.close();\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "private void readData () throws SQLException {\n int currentFetchSize = getFetchSize();\n setFetchSize(0);\n close();\n setFetchSize(currentFetchSize);\n moveToInsertRow();\n\n CSVRecord record;\n\n for (int i = 1; i <= getFetchSize(); i++) {\n lineNumber++;\n try {\n\n if (this.records.iterator().hasNext()) {\n record = this.records.iterator().next();\n\n for (int j = 0; j <= this.columnsTypes.length - 1; j++) {\n\n switch (this.columnsTypes[j]) {\n case \"VARCHAR\":\n case \"CHAR\":\n case \"LONGVARCHAR\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n case \"INTEGER\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateInt(j + 1, Integer.parseInt(record.get(j)));\n break;\n case \"TINYINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateByte(j + 1, Byte.parseByte(record.get(j)));\n break;\n case \"SMALLINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateShort(j + 1, Short.parseShort(record.get(j)));\n break;\n case \"BIGINT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateLong(j + 1, Long.parseLong(record.get(j)));\n break;\n case \"NUMERIC\":\n case \"DECIMAL\":\n /*\n * \"0\" [0,0]\n * \"0.00\" [0,2]\n * \"123\" [123,0]\n * \"-123\" [-123,0]\n * \"1.23E3\" [123,-1]\n * \"1.23E+3\" [123,-1]\n * \"12.3E+7\" [123,-6]\n * \"12.0\" [120,1]\n * \"12.3\" [123,1]\n * \"0.00123\" [123,5]\n * \"-1.23E-12\" [-123,14]\n * \"1234.5E-4\" [12345,5]\n * \"0E+7\" [0,-7]\n * \"-0\" [0,0]\n */\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBigDecimal(j + 1, new BigDecimal(record.get(j)));\n break;\n case \"DOUBLE\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDouble(j + 1, Double.parseDouble(record.get(j)));\n break;\n case \"FLOAT\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateFloat(j + 1, Float.parseFloat(record.get(j)));\n break;\n case \"DATE\":\n // yyyy-[m]m-[d]d\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateDate(j + 1, Date.valueOf(record.get(j)));\n break;\n case \"TIMESTAMP\":\n // yyyy-[m]m-[d]d hh:mm:ss[.f...]\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTimestamp(j + 1, Timestamp.valueOf(record.get(j)));\n break;\n case \"TIME\":\n // hh:mm:ss\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateTime(j + 1, Time.valueOf(record.get(j)));\n break;\n case \"BOOLEAN\":\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateBoolean(j + 1, convertToBoolean(record.get(j)));\n break;\n default:\n if (getStringOrNull(record.get(j)) == null) updateNull(j + 1);\n else updateString(j + 1, record.get(j));\n break;\n }\n }\n\n insertRow();\n incrementRowCount();\n }\n } catch (Exception e) {\n LOG.error(\"An error has occurred reading line number {} of the CSV file\", lineNumber, e);\n throw e;\n }\n }\n\n moveToCurrentRow();\n beforeFirst(); \n }", "public interface Address {\n\n String getAddressLine1();\n\n String getAddressLine2();\n\n String getAddressLine3();\n\n String getAddressLine4();\n\n String getAddressLine5();\n\n String getPostCode();\n\n}", "public static void main(String[] args) throws FileNotFoundException, IOException {\r\n \r\n Directory d = new Directory();\r\n \r\n if (args.length != 1) {\r\n System.out.println(\"Usage: java CSVReaderTest <filename>\");\r\n }\r\n else {\r\n FileReader fr = new FileReader(args[0]);\r\n BufferedReader c = new BufferedReader(fr);\r\n\r\n int lineNum = 0;\r\n boolean eof = false;\r\n \r\n while (!eof) {\r\n String line = c.readLine();\r\n \r\n if (line == null) {\r\n eof = true;\r\n }\r\n else{\r\n // Allocate an array of the necessary size to return the strings\r\n String[] values = new String[4];\r\n // Start beginIndex at the beginning of the String, position 0\r\n int beginIndex = 0;\r\n\r\n for (int i = 0; i < 3; i++) {\r\n int endIndex;\r\n endIndex = line.indexOf(',', beginIndex);\r\n\r\n // if the argument begins and ends with quotes, remove them\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(endIndex - 1) == '\"') {\r\n values[i] = line.substring(beginIndex + 1, endIndex - 1);\r\n\r\n } else {\r\n values[i] = line.substring(beginIndex, endIndex);\r\n }\r\n\r\n beginIndex = endIndex + 1;\r\n }\r\n\r\n if (line.charAt(beginIndex) == '\"' && line.charAt(line.length() - 1) == '\"') {\r\n values[3] = line.substring(beginIndex + 1, line.length() - 1);\r\n } else {\r\n values[3] = line.substring(beginIndex, line.length());\r\n }\r\n \r\n if (lineNum > 1) {\r\n lineNum = lineNum + 1;\r\n Student s = new Student(values[0]);\r\n s.setFirstName(values[1]);\r\n s.setLastName(values[2]);\r\n s.setPhoneNumber(values[3]);\r\n d.addStudent(s);\r\n System.out.println(s);\r\n }\r\n\r\n }\r\n }\r\n c.close();\r\n }\r\n \r\n Student c = new Student(\"mengl1\");\r\n c.setFirstName(\"Meng\");\r\n c.setLastName(\"Li\");\r\n c.setPhoneNumber(\"412-807-0153\");\r\n \r\n Student a = new Student(\"mengl2\");\r\n a.setFirstName(\"Mengl\");\r\n a.setLastName(\"Li\");\r\n a.setPhoneNumber(\"412-807-0154\");\r\n \r\n Student b = new Student(\"terryhong\");\r\n b.setFirstName(\"terry\");\r\n b.setLastName(\"hong\");\r\n b.setPhoneNumber(\"412-464-475\");\r\n\r\n d.addStudent(c);\r\n d.addStudent(a);\r\n d.addStudent(b);\r\n \r\n //System.out.println(d.searchByAndrewId(\"mengl2\"));\r\n //d.deleteStudent(\"terryhong\");\r\n System.out.println(d.size());\r\n // System.out.println(d.searchByLastName(\"Li\"));\r\n\r\n }", "private MyPersonModelProvider(String inputdata) {\n\t\t\tList<String> contents = UtilFile.readFile(inputdata);\n\t\t\tList<List<String>> tableContents = UtilFile.convertTableContents(contents);\n\n\t\t\tpersons = new ArrayList<MyPerson>();\n\t\t\tfor (List<String> iList : tableContents) {\n\t\t\t\tpersons.add(new MyPerson(iList.get(0), iList.get(1), iList.get(2), Boolean.valueOf(iList.get(3))));\n\t\t\t}\n\t\t}", "@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response) \n throws IOException{\n String firstName = Jsoup.clean(request.getParameter(\"firstname\"), Whitelist.none());\n String lastName = Jsoup.clean(request.getParameter(\"lastname\"), Whitelist.none());\n String email = Jsoup.clean(request.getParameter(\"email\"), Whitelist.none());\n String phoneNumber = Jsoup.clean(request.getParameter(\"phonenum\"), Whitelist.none());\n String restName = Jsoup.clean(request.getParameter(\"restName\"), Whitelist.none());\n String restAdd = Jsoup.clean(request.getParameter(\"restAdd\"), Whitelist.none());\n String restDes = Jsoup.clean(request.getParameter(\"restDes\"), Whitelist.none());\n String dateTime = Jsoup.clean(request.getParameter(\"datetime\"), Whitelist.none());\n String maxSize = Jsoup.clean(request.getParameter(\"maxsize\"), Whitelist.none());\n String otherNotes = Jsoup.clean(request.getParameter(\"subject\"), Whitelist.none());\n String latString = Jsoup.clean(request.getParameter(\"lat\"), Whitelist.none());\n String lngString = Jsoup.clean(request.getParameter(\"lng\"), Whitelist.none());\n double lat;\n double lng;\n try {\n lat = Double.parseDouble(latString);\n lng = Double.parseDouble(lngString);\n }\n catch (NumberFormatException e) {\n lat = 0.0;\n lng = 0.0;\n }\n\n int max;\n try {\n max = Integer.parseInt(maxSize);\n }\n catch (NumberFormatException e) {\n max = 8;\n }\n List<String> members = new ArrayList<>(max);\n\n Table table = new Table(firstName, lastName, email, phoneNumber, restName, restAdd, restDes, dateTime, maxSize, otherNotes, members, lat, lng);\n storeTable(table);\n response.sendRedirect(\"/\");\n \n }", "public static void read(String fname){\r\n\t\t\t\r\n\t\t\tString line = \"\";\r\n\t\t\ttry {\r\n\t // FileReader reads text files in the default encoding.\r\n\t FileReader fileReader = new FileReader(fname);\r\n\t \r\n\t // Always wrap FileReader in BufferedReader.\r\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\r\n\t header=bufferedReader.readLine();\r\n\t \r\n\t data = new ArrayList<alldata>();\r\n\r\n\t while((line = bufferedReader.readLine()) != null) {\r\n\t \t\r\n\t //parse line and divide data by comma\r\n\t \r\n\t \t\r\n\t \tString[] lineStr = line.split(\",\");\r\n\t \t\r\n\t //create object row into which data from each line is stored and then added to array list\t\r\n\t \t\r\n\t if(lineStr.length >0) {\r\n\t \talldata row = new alldata();\r\n\t \trow.Name = lineStr[0]+ \",\" + lineStr[1];\r\n\t \trow.Num = lineStr[2];\r\n\t \trow.State = lineStr[3];\r\n\t \trow.Zip = lineStr[4];\r\n\t \trow.Age = Integer.parseInt(lineStr[6]);\r\n\t \trow.Sex = lineStr[7];\r\n\t \t\r\n\t \tdata.add(row);\r\n\t }\r\n\t \r\n\t \r\n\t } \r\n\t bufferedReader.close(); // Always close files. \r\n\t }catch(FileNotFoundException ex) {\r\n\t System.out.println(\"Unable to open file '\" + fname + \"'\"); \r\n\t }catch(IOException ex) {\r\n\t System.out.println(\"Error reading file '\" + fname + \"'\"); \r\n\t }\r\n\t\t\tSystem.out.println(\"Finish reading data from file \"+ fname);\r\n\t\t}", "public DataProcessor(String filename) throws FileNotFoundException{\n\tlst = new ArrayList();\n\tScanner input = new Scanner(new FileReader(filename));\n //skip the first line of the csv file\n\tString escapedLine = input.nextLine();\n \twhile(input.hasNextLine()){\n\t recordCount++;\n\t String line = input.nextLine();\n\t //CORRECTION BLOC to skip quoted commas\n\t if (line.contains(\"\\\"\")){\n\t\tint first= line.indexOf(\"\\\"\");\n\t\twhile(first >0 ){\n\t\t String problem = line.substring(first,line.indexOf(\"\\\"\",first+1)+1);\n\t\t \tint second = line.indexOf(\"\\\"\",first+1);\n\t\t\t//look for comma between quoted\n\t\t\tif(problem.contains(\",\")){\n\t\t\t //replace comma by space not to change string indices\n\t\t\t problem=problem.replace(\",\",\" \");\n\t\t\t line=line.replace(line.substring(first,line.indexOf(\"\\\"\",first+1)+1),problem);\n\t\t\t}\n\t\t\t//look for another quote symbol\n\t\t\tfirst = line.indexOf(\"\\\"\",second+1);\n\t\t}\n\t }\n\t String[] fields = line.split(\",\");\n\t //create Person object to store the suspect's data\n\t Person suspect = new Person(fields[SEX].charAt(0),fields[RACE].charAt(0),Integer.parseInt(fields[DOB]),Integer.parseInt(fields[HEIGHTFT]),fields[EYECOLOR],fields[BUILD].charAt(0));\n\t lst.add(suspect);\n\t}\n\t//close scanner\n\tinput.close();\n }", "public interface Columns {\r\n public static final String USERNAME = \"username\";\r\n public static final String EMAIL = \"email\";\r\n public static final String PW = \"password\";\r\n public static final String TIME = \"create_time\";\r\n public static final String AUTHORITY = \"authority_id\";\r\n }", "public List<String> readFields() throws IOException\n {\n List<String> fields = new ArrayList<String>();\n StringBuffer sb = new StringBuffer();\n String line = in.readLine();\n\n if (line == null)\n return null;\n\n if (line.length() == 0)\n {\n fields.add(line);\n return fields;\n }\n\n int i = 0;\n do\n {\n sb.setLength(0);\n if (i < line.length() && line.charAt(i) == textQualifier)\n {\n i = handleQuotedField(line, sb, ++i); // skip quote\n }\n else\n {\n i = handlePlainField(line, sb, i);\n }\n\n // Make sure the field name is trimmed before adding it\n fields.add(sb.toString().trim());\n i++;\n }\n while (i < line.length());\n\n return fields;\n }", "@Test(timeout=100)\r\n\tpublic void testEmptyFields() {\r\n\t\tString [] r1 = {\"a\",\"\",\"c\"}; // 3 fields\r\n\t\tString [] r2 = {\"\",\"\",\"c\"}; // 3 fields\r\n\t\tString [] r3 = {\"\",\"b\"}; // 2 fields\r\n\t\tString [] r4 = {\"a\",\"\",\"\",\"\",\"\",\"d\"}; // many fields\r\n\t\twriteArrayToLine(r1);\r\n\t\twriteArrayToLine(r2);\r\n\t\twriteArrayToLine(r3);\r\n\t\twriteArrayToLine(r4);\r\n\t\tout.close();\r\n\t\t\r\n\t\tCSVReader csv = new CSVReader(getInstream());\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tassertArrayEquals( r1, csv.next() );\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\t\tassertArrayEquals( r3, csv.next() );\r\n\t\tassertArrayEquals( r4, csv.next() );\r\n\t}", "@Override \n public String toString() \n { \n return \"user\" + \n \"\\n\\t RecordNo: \" + this.recordNo + \n \"\\n\\t EmployeeName: \" + this.name + \n \"\\n\\t Age: \" + this.age + \n \"\\n\\t Sex: \" + this.sex + \n \"\\n\\t Date of Birth: \" + this.dob + \n \"\\n\\t Remark: \" + this.remark; \n }", "public void ach_doc_type_csv_test () {\n\t\t\n\t}", "void insertCSV(String file_path) {\n try {\n InputStream fileStream = new FileInputStream(file_path);\n Reader decoder = new InputStreamReader(fileStream, \"UTF-8\");\n BufferedReader buffered = new BufferedReader(decoder);\n\n for (String line = buffered.readLine(); line != null; line = buffered.readLine()) {\n // process line\n String[] tokens = line.trim().split(\"\\\\s+\"); // split line into different fields\n\n // valid table row should have 16 fields\n if (tokens.length == 16) {\n insertSingleRow(tokens);\n } else {\n continue;\n }\n }\n } catch (Exception e) {\n logger.log(Level.WARNING, \"insertGZip error \", e);\n }\n }", "public static void main(String[] args) {\r\n\r\n\r\n\tCsvPipeDecoder csvdeco = new CsvPipeDecoder();\r\n\r\n//\tSystem.out.println(cvsde.getHasHeader());\r\n\r\n\tList<String> inputRecordLines = new ArrayList<String>();\r\n\r\n\tinputRecordLines.add(\"FIRST NAME|LAST NAME|STREET ADDRESS|CITY|STATE|ZIP\");\r\n\tinputRecordLines.add(\"Machi|Gulinski|5367 Eastway|Greendale|WI|53129\");\r\n\tinputRecordLines.add(\"Ola|Druzny|5467 Blue St.|Milwaukee|WI|53209\");\r\n\tinputRecordLines.add(\"Les|Klimek|919 St. Paul St.|Wauwatosa|WI|53217\");\r\n\r\n\tcsvdeco.setHasHeader(true);\r\n\r\n\tList< LinkedHashMap<String, String>> decodedData;\r\n\r\n\tdecodedData = csvdeco.decodeData(inputRecordLines);\r\n\r\n\r\n\tfor (LinkedHashMap r : decodedData) {\r\n\r\n\t Set<String> keys = r.keySet();\r\n\r\n\t for (String key : keys) {\r\n\r\n//\t String record = r.get(key).toString();\r\n\t\tSystem.out.println(key + \": \" + r.get(key).toString());\r\n\t }\r\n\r\n//\t System.out.println(r.keySet() + \": \" + r.entrySet());\r\n\t}\r\n\r\n }", "private static void setData() {\n attributeDisplaySeq = new ArrayList<String>();\n attributeDisplaySeq.add(\"email\");\n\n signUpFieldsC2O = new HashMap<String, String>();\n signUpFieldsC2O.put(\"Email\",\"email\");\n\n\n signUpFieldsO2C = new HashMap<String, String>();\n signUpFieldsO2C.put(\"email\", \"Email\");\n\n\n }", "@SuppressWarnings(\"resource\")\r\n\tpublic static ArrayList<UserInfo> getUserDataFromCsvFile()\r\n\t{\r\n\t\t\r\n\t\tArrayList<UserInfo> unfList=null;\r\n\t\ttry{\r\n\t\t\tFile myObj= new File(\"E:\\\\Selenium Setup\\\\datadriven.csv\");\r\n\t\t\tunfList = new ArrayList<UserInfo>();\r\n\t\t\tScanner myReader= new Scanner(myObj);\r\n\t\t\tint count=0;\r\n\t\t\twhile (myReader.hasNextLine()) \r\n\t\t\t{\r\n\t\t\t\tString data= myReader.nextLine();\r\n\t\t\t\tif (count !=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tString[] info =data.split(\"\\\\,\");\r\n\t\t\t\t\tunfList.add(new UserInfo(info[0],info[1]));\r\n\t\t\t\t\t//unfList.add(new UserInfo(info[0], info[1]));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t++count;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch (Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t}\r\n\t\t\treturn unfList;\r\n\t}", "public static void main(String[] args) {\n\n ArrayList<Person> addressBook = new ArrayList<>();\n\n\n\n Person individual; //create an object of type Person\n Scanner scan = new Scanner(System.in);\n\n for(int i=1; i <= 5; i++) {\n\n individual = new Person();\n\n\n System.out.println(\"Please enter your first name \");\n individual.setFirstName(scan.nextLine());\n\n\n System.out.println(\"Please enter your last name \");\n individual.setLastName(scan.nextLine());\n\n\n System.out.println(\"Please enter address \");\n individual.setAddress(scan.nextLine());\n\n\n System.out.println(\"Please enter phone \");\n individual.setPhone(scan.nextLine());\n\n System.out.println(\"Enter email \");\n individual.setEmail(scan.nextLine());\n\n addressBook.add(individual); //adding an individual to the arraylist\n\n\n }\n\n for(Person eachPerson: addressBook){\n System.out.println(\"First names are \" + eachPerson.getFirstName() );\n\n }\n }", "private static SendGridRequest.EmailAddress [] getPersonalizationAddresses(String addresses) {\n if (addresses != null) {\n return Arrays.stream(addresses.split(\";\"))\n .map(String::trim)\n .map(address -> {\n SendGridRequest.EmailAddress emailAddress = new SendGridRequest.EmailAddress();\n emailAddress.setEmail(address);\n return emailAddress;\n })\n .toArray(SendGridRequest.EmailAddress []::new);\n } else {\n return null;\n }\n }", "public void read() {\r\n\t\tJTextField txtCustomerNo = new JTextField();\r\n\t\ttxtCustomerNo.setText(\"\" + this.getCustomerNo());\r\n\t\tJTextField txtTitle = new JTextField();\r\n\t\ttxtTitle.requestFocus();\r\n\t\tJTextField txtFirstName = new JTextField();\r\n\t\tJTextField txtSurname = new JTextField();\r\n\t\tJTextField txtAddress = new JTextField();\r\n\t\tJTextField txtPhoneNo = new JTextField();\r\n\t\tJTextField txtEmail = new JTextField();\r\n\r\n\t\t\r\n\t\tObject[] message = { \"Customer Number:\", txtCustomerNo, \"Title:\", txtTitle, \"First Name:\", txtFirstName,\r\n\t\t\t\t\"Surname:\", txtSurname, \"Address:\", txtAddress, \"Phone Number:\", txtPhoneNo, \"Email:\", txtEmail, };\r\n\t\t\r\n\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"Enter customer details\",\r\n\t\t\t\tJOptionPane.OK_CANCEL_OPTION);\r\n\t\t\r\n\t\tName txtName = new Name(txtTitle.getText(), txtFirstName.getText(), txtSurname.getText());\r\n\r\n\t\tif (option == JOptionPane.OK_OPTION) {\r\n\t\t\tthis.name = txtName;\r\n\t\t\tthis.address = txtAddress.getText();\r\n\t\t\tthis.phoneNo = txtPhoneNo.getText();\r\n\t\t\tthis.emailAddress = txtEmail.getText();\r\n\t\t}\r\n\t}", "void fileReader(String filename) \r\n\t\t{\r\n\r\n\t\ttry (Scanner s = new Scanner(new FileReader(filename))) { \r\n\t\t while (s.hasNext()) { \r\n\t\t \tString name = s.nextLine(); // read name untill space\r\n\t\t \tString str[] = name.split(\",\");\r\n\t\t \tString nam = str[0]; \r\n\t\t \tint number = Integer.parseInt(str[1]); // read number untill space\r\n\t\t this.addContact(nam, number);\r\n\t\t\r\n\t\t }\t\t \r\n\t\t \r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t}", "private void fillFieldsList(List<String> lines, int numberOfFields) throws Exception {\n for (int index = 1; index < numberOfFields; index++) {\n String[] fieldTypes = lines.get(index).split(\" \");\n switch (fieldTypes[0]) {\n case \"property\":\n fields.add(new PropertyField());\n break;\n case \"service\":\n fields.add(new ServiceField(Integer.parseInt(fieldTypes[1])));\n break;\n case \"lucky\":\n fields.add(new LuckyField(Integer.parseInt(fieldTypes[1])));\n break;\n default:\n throw new Exception(\"No field defined for this board \");\n }\n }\n\n }", "void fillblanks(String templateVelocity, DatosEmail datosEmail,Map<String,Object> model) throws IOException;", "public Entry buildEntry(String line) {\n\t\tlog.debug(\"line : \" + line);\n\t\t\n\t\tEntry entry = new Entry();\n\t\ttry {\n\t\t\tString[] strList = line.split(\",\");\n\t\t\tint length = strList.length;\n\t\t\t//Checking for phone number values\n\t\t\tif (length == 5)\n\t\t\t{\n\t\t\t\tif(FlatFileUtil.isPhone(strList[2]))\n\t\t\t\t{\n\t\t\t\t\tlog.debug(\"LastName, FirstName, (703)-711-0996, Blue, 11013 - format\");\n\t\t\t\t\tentry.setLastname(strList[0].trim());\n\t\t\t\t\tentry.setFirstname(strList[1].trim());\n\t\t\t\t\tentry.setPhonenumber(strList[2].replaceAll(\"\\\\D+\",\"\"));\n\t\t\t\t\tentry.setColor(strList[3].trim());\n\t\t\t\t\tentry.setZipcode(strList[4].trim());\n\t\t\t\t\t\n\t\t\t\t}else if(FlatFileUtil.isPhone(strList[3])) {\n\t\t\t\t\tlog.debug(\"FirstName, LastName, 12023, 636 121 1111, Yellow - format\");\n\t\t\t\t\tentry.setFirstname(strList[0].trim());\n\t\t\t\t\tentry.setLastname(strList[1].trim());\n\t\t\t\t\tentry.setZipcode(strList[2].trim());\n\t\t\t\t\tentry.setPhonenumber(strList[3].replaceAll(\"\\\\D+\",\"\"));\n\t\t\t\t\tentry.setColor(strList[4].trim());\n\t\t\t\t}\n\t\t\t} else if (length == 4) { \n\t\t\t\tlog.debug(\"FirstName LastName, Purple, 14537, 713 905 0383 - format\");\n\t\t\t\tString[] nameStrList = strList[0].split(\" \");\n\t\t\t\tentry.setFirstname(nameStrList[0].trim());\n\t\t\t\tentry.setLastname(nameStrList[1].trim());\n\t\t\t\tentry.setColor(strList[1].trim());\n\t\t\t\tentry.setZipcode(strList[2].trim());\n\t\t\t\tentry.setPhonenumber(strList[3].replaceAll(\"\\\\D+\",\"\"));\n\t\t\t}\n\t\t} catch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn entry;\n\t}", "public ArrayList<Contact> read_contact_list()\n {\n ArrayList<Contact> result = new ArrayList<Contact>();\n String[] current_data = read();\n\n for (int i = 0; i < current_data.length; i++)\n {\n String line = current_data[i];\n if (line != null)\n {\n String[] split = line.split(\":\");\n if (split.length >= 5)\n {\n result.add(new Contact(split[0], split[1], split[2], split[3], split[4]));\n }\n }\n }\n return result;\n }", "public void readRecords()\r\n {\r\n RandomAccessAccountRecord record = new RandomAccessAccountRecord();\r\n\r\n System.out.printf( \"%-10s%-15s%-15s%10s\\n\", \"Account\",\r\n \"First Name\", \"Last Name\", \"Balance\" );\r\n\r\n try // read a record and display\r\n {\r\n while ( true )\r\n {\r\n do\r\n {\r\n record.read( input );\r\n } while ( record.getAccount() == 0 );\r\n\r\n // display record contents\r\n System.out.printf( \"%-10d%-12s%-12s%10.2f\\n\",\r\n record.getAccount(), record.getFirstName(),\r\n record.getLastName(), record.getBalance() );\r\n } // end while\r\n } // end try\r\n catch ( EOFException eofException ) // close file\r\n {\r\n return; // end of file was reached\r\n } // end catch\r\n catch ( IOException ioException )\r\n {\r\n System.err.println( \"Error reading file.\" );\r\n System.exit( 1 );\r\n } // end catch\r\n }", "public List<BarrioCovid> readAll(String email);", "private void putDefaultInformation() throws FileNotFoundException, SQLException, IOException {\n staff_name = \"Sin informacion\";\n staff_surname = \"Sin informacion\";\n id_type = \"Sin informacion\";\n id_number = \"Sin informacion\";\n putProfPic(null);\n phone_number = \"Sin informacion\";\n mobile_number = \"Sin informacion\";\n email = \"Sin informacion\";\n birthdate = GBEnvironment.getInstance().serverDate();\n gender = \"Seleccione sexo\";\n }", "public void populateContactsTable() {\n Contact contact1 = createContactFromFile(\"DummyContact1.json\");\n Contact contact2 = createContactFromFile(\"DummyContact2.json\");\n contacts = new ArrayList<>();\n contacts.add(contact1);\n contacts.add(contact2);\n\n contactService.postContact(contact1);\n contactService.postContact(contact2);\n }", "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Person person = (Person) o;\n //Leveraging edit distance to compare strings requiring certain number of edits to be equal\n //can add or remove attributes based on your preference \n //currently will display records that are exactly equal on mentioned properties\n return ReadAndProcessCSV.editDist(this.getFirst_name(),person.getFirst_name(),this.first_name.length(),person.getFirst_name().length())==0 &&\n ReadAndProcessCSV.editDist(this.getLast_name(),person.getLast_name(),this.last_name.length(),person.getLast_name().length())==0 &&\n ReadAndProcessCSV.editDist(this.getCompany(),person.getCompany(),this.company.length(),person.getCompany().length())==0 &&\n ReadAndProcessCSV.editDist(this.getEmail(),person.getEmail(),this.email.length(),person.getEmail().length())==0 &&\n //Objects.equals(company, person.company) &&\n Objects.equals(id, person.id)&&\n Objects.equals(address1, person.address1) &&\n Objects.equals(address2, person.address2) &&\n Objects.equals(zip, person.zip) &&\n Objects.equals(city, person.city) &&\n Objects.equals(state_long, person.state_long) &&\n Objects.equals(state, person.state) &&\n Objects.equals(phone, person.phone);\n }", "public ArrayList<String[]> searchField(String phone)\n\t{\n\t\tArrayList<Customer> customers = CustomerContainer.getInstance().getCustomers();\t\n\t\tArrayList<String[]> data = new ArrayList<>();\n\t\tif (customers == null)\n\t\t{\n\t\t\treturn data;\n\t\t}\n\t\tfor (Customer customer : customers)\n\t\t{\n\t\t\tif (Integer.toString(customer.getPhone()).contains(phone))\n\t\t\t{\n\t\t\t\tdata.add(customer.tableFill());\n\t\t\t}\n\t\t}\n\t\treturn data;\n\t}", "private void readContactInfo() {\n\t\tScanner console = new Scanner(System.in);\n\t\tPerson tempPerson = new Person();\n\t\tString stringInput;\n\t\t\n\t\tSystem.out.println(\"Please press enter after each input, or \"\n\t\t\t\t\t\t\t+ \"input only 'c' to cancel.\");\n\t\tSystem.out.print(\"Last name: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else if (stringInput.isEmpty()) { //terminates if last name is blank\n\t\t\tSystem.err.println(\"Last name is required. No contact added!\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setLastName(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"First name: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else if (stringInput.isEmpty()) { //terminates if first name is blank\n\t\t\tSystem.err.println(\"First name is required. No contact added!\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setFirstName(stringInput);\n\t\t}\n\t\t\n\t\t\n\t\tStreetAddress address = new StreetAddress();\n\t\tSystem.out.println(\"Address: \");\n\t\tSystem.out.print(\"\\tHouse/Apartment: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setHouse(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tCity: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setCity(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tState: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setState(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tZip code: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setZip(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\tCountry: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\taddress.setCountry(stringInput);\n\t\t\ttempPerson.setAddress(address);\n\t\t}\n\t\t\t\n\t\tSystem.out.print(\"Email address: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setEmail(stringInput);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"Phone number(XXX XXX XXXX): \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setPhone(stringInput);\n\t\t}\n\t\n\t\tSystem.out.print(\"Notes: \");\n\t\tstringInput = console.nextLine().trim();\n\t\tif (isCancelled(stringInput)) { //terminates if user enters \"c\"\n\t\t\tSystem.out.println(\"No contact added.\");\n\t\t\treturn;\n\t\t} else {\n\t\t\ttempPerson.setNotes(stringInput);\n\t\t}\n\t\t\n\t\tcontactList[contactCounter] = tempPerson;\n\t\tSystem.out.println(\"New contact added!\");\n\t\tcontactCounter++;\n\t}", "public UserData prepareUserData() throws IOException {\n\n String userName = dataGenerator.prepareUserName();\n String firstName = dataGenerator.prepareFirstName();\n String lastName = dataGenerator.prepareLastName() ;\n String email = dataGenerator.prepareEmail();\n String password = dataGenerator.preparePassword();\n\n return new UserData(userName,firstName,lastName,email,password);\n }", "public void addRecord() {\n int numOverflowRecords = Integer.parseInt(getNumberOfRecords(\"overflow\"));\n\n int rankForNewRecord = Integer.parseInt(getHighestRank()) + 1;\n\n byte [] companyNameBytes = new byte[Constants.NUM_BYTES_COMPANY_NAME];\n byte [] companyCityBytes = new byte[Constants.NUM_BYTES_COMPANY_CITY];\n byte [] companyStateBytes = new byte[Constants.NUM_BYTES_COMPANY_STATE];\n byte [] companyZipCodeBytes = new byte[Constants.NUM_BYTES_COMPANY_ZIP];\n byte [] companyEmployeesBytes = new byte[Constants.NUM_BYTES_COMPANY_EMPLOYEES];\n\n // User input for each of the fields ******************\n byte [] companyRankBytes = HelperFunctions.addWhitespacesToEnd(Integer.toString(rankForNewRecord), Constants.NUM_BYTES_RANK).getBytes();\n\n // Input for name of company\n System.out.println(\"Please enter the name of the company (truncated at \" + Constants.NUM_BYTES_COMPANY_NAME + \" characters): \");\n companyNameBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_NAME);\n\n // Input for city the company is located in\n System.out.println(\"Please enter the city the company is located in (truncated at \" + Constants.NUM_BYTES_COMPANY_CITY + \" characters): \");\n companyCityBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_CITY);\n\n // Input for state the company is located in\n System.out.println(\"Please enter the state the company is located in (truncated at \" + Constants.NUM_BYTES_COMPANY_STATE + \" characters): \");\n companyStateBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_STATE);\n\n // Input for zip code of company\n System.out.println(\"Please enter the zip code of the company (truncated at \" + Constants.NUM_BYTES_COMPANY_ZIP + \" characters): \");\n companyZipCodeBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_ZIP);\n\n // Input for number of employees of company\n System.out.println(\"Please enter the company's number of employees (truncated at \" + Constants.NUM_BYTES_COMPANY_EMPLOYEES + \" charactes): \");\n companyEmployeesBytes = HelperFunctions.getInputDataBytes(Constants.NUM_BYTES_COMPANY_EMPLOYEES);\n\n byte [] newLineBytes = System.getProperty(\"line.separator\").getBytes();\n\n // End user input ************************************\n\n // Add bytes to overflow file\n addRecordToOverflow(companyRankBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD);\n addRecordToOverflow(companyNameBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 5);\n addRecordToOverflow(companyCityBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 45);\n addRecordToOverflow(companyStateBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 65);\n addRecordToOverflow(companyZipCodeBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 68);\n addRecordToOverflow(companyEmployeesBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 74);\n addRecordToOverflow(newLineBytes, numOverflowRecords * Constants.NUM_BYTES_LINUX_RECORD + 84);\n\n numOverflowRecords++;\n\n if (numOverflowRecords > 4) {\n mergeSortRecords(numOverflowRecords);\n updateNumRecords(\"overflow\", 0);\n\n try {\n PrintWriter clearOverflow = new PrintWriter(this.databaseName + \".overflow\");\n clearOverflow.write(\"\");\n clearOverflow.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n } else {\n updateNumRecords(\"overflow\", numOverflowRecords);\n }\n\n String currentHighestRank = getHighestRank().trim();\n updateHighestRank(Integer.parseInt(currentHighestRank) + 1);\n\n System.out.println(\"Record Added...\");\n }", "private static Customer readCustomerString(String data) throws ApplicationException {\r\n String[] elements = data.split(DELIMITER2);\r\n if (elements.length != Customer.ATTRIBUTE_COUNT) {\r\n throw new ApplicationException(String.format(\"Expected %d but got %d: %s\", Customer.ATTRIBUTE_COUNT, elements.length, Arrays.toString(elements)));\r\n }\r\n\r\n int index = 0;\r\n long id = Integer.parseInt(elements[index++]);\r\n String firstName = elements[index++];\r\n String lastName = elements[index++];\r\n String street = elements[index++];\r\n String city = elements[index++];\r\n String postalCode = elements[index++];\r\n String phone = elements[index++];\r\n // should the email validation be performed here or in the customer class? I'm leaning towards putting it here.\r\n String emailAddress = elements[index++];\r\n if (!Validator.validateEmail(emailAddress)) {\r\n throw new ApplicationException(String.format(\"Invalid email: %s\", emailAddress));\r\n }\r\n String yyyymmdd = elements[index];\r\n if (!Validator.validateJoinedDate(yyyymmdd)) {\r\n throw new ApplicationException(String.format(\"Invalid joined date: %s for customer %d\", yyyymmdd, id));\r\n }\r\n int year = Integer.parseInt(yyyymmdd.substring(0, 4));\r\n int month = Integer.parseInt(yyyymmdd.substring(4, 6));\r\n int day = Integer.parseInt(yyyymmdd.substring(6, 8));\r\n\r\n return new Customer.Builder(id, phone).//\r\n firstName(firstName).//\r\n lastName(lastName).//\r\n streetName(street).//\r\n city(city).//\r\n postalCode(postalCode).//\r\n emailAddress(emailAddress).//\r\n joinDate(year, month, day).build();\r\n }", "public interface StringTable {\n List<StringRecord> getAllRecords();\n List<StringRecord> getRecordsWhere(Predicate<StringRecord> predicate);\n void addFieldEncoder(FieldEncoder encoder);\n}", "private void loadData() {\n columnName = new String[]{\"姓名\", \"邮箱\"};\n adlMainVector = new Vector<Vector<String>>();\n adlmainTableModel = new AbstractTableModel() { // 实现表格抽象类的接口\n\n private static final long serialVersionUID = 500000L;\n\n @Override\n public Class<? extends Object> getColumnClass(int c) // 获取列标所对的类\n {\n return getValueAt(0, c).getClass();\n }\n\n @Override\n public int getColumnCount() { // 获取列数\n return columnName.length;\n }\n\n @Override\n public String getColumnName(int column) // 获取列标\n {\n return columnName[column];\n }\n\n @Override\n public int getRowCount() { // 获取行数\n return adlMainVector.size();\n }\n\n @Override\n public Object getValueAt(int row, int column) { // 获取row行column列的值\n if (!adlMainVector.isEmpty()) {\n return ((Vector<?>) adlMainVector.elementAt(row)).elementAt(column);\n } else {\n return null;\n }\n }\n\n @Override\n public boolean isCellEditable(int row, int column) {\n return false;\n }\n\n @Override\n public void setValueAt(Object value, int row, int column) // 设定row行column列的值\n {\n }\n };\n EmailTable.setModel(adlmainTableModel);\n EmailTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);\n listShow(\"Select * From ADDRESSLISTTABLE ORDER BY ID+10000\");\n }", "private void parseData(String data) {\n String[] item = data.split(\";\");\n for(int i = 0; i < item.length; i++) {\n String[] property = item[i].split(\",\");\n MAC_Addresses.add(property[0]);\n }\n }", "public void readEntityCSV(String line) {\n List<String> items = Arrays.asList(line.split(\",\"));\n this.setId(Long.valueOf(items.get(0)));\n this.noOfRounds = Integer.parseInt(items.get(1));\n this.caliber = Float.parseFloat(items.get(2));\n this.manufacturer = items.get(3);\n this.price = Float.parseFloat(items.get(4));\n }", "@Override\n\tpublic void getFields(List<String> table) {\n\t\t\n\t}", "private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"enter your first name, last name, company seperated by space\");\n String firstName, lastName, company, email;\n firstName = scan.next(); //(\"Dilmurod\");\n lastName = scan.next(); //(\"Yakubov\");\n company = scan.next();//(\"Verizon\");\n email = (firstName+\"_\"+lastName+\"@\"+company+\".com\");\n System.out.println(\"My name is \"+lastName+\", \"+firstName+\" and I work for \"+ company+\" and my email is: \"\n + email);\n\n\n\n }", "private static List<Address> parseAddress(String source) throws IOException {\n FileReader file = new FileReader(source);\n reader = new BufferedReader(file);\n List<Address> addresses = new ArrayList<>();\n String line;\n\n while((line = reader.readLine()) != null){\n int length = 0;\n String number = line.substring(0, line.indexOf(\" \"));\n length += number.length() + 1;\n String street = line.substring(length, line.indexOf(\",\"));\n length += street.length() + 2;\n String city = line.substring(length, line.indexOf(\",\", length));\n length += city.length() + 2;\n String zip = line.substring(length);\n\n addresses.add(new Address(city, zip, number, street));\n }\n\n reader.close();\n return addresses;\n }", "private static void populateTable(String name, File fileObj, Statement stat) {\n\t\tString tableName = \"\";\n\t\tScanner scan = null;\n\t\tString line = \"\";\n\t\tString[] splitLine = null;\n\t\t\n\t\ttableName = \"stevenwbroussard.\" + name;\n\t\ttry {\n\t\t\tscan = new Scanner(fileObj);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Failed make thread with file.\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t//use a for loop to go through, later use a while loop\n\t\twhile (scan.hasNext() != false) {\n\t\t//for (int i = 0; i < 10; i++) {\n\t\t\tline = scan.nextLine();\n\t\t\tsplitLine = line.split(\"\\\\,\");\n\t\t\t\n\t\t\t//if the type for integer column is NULL\n\t\t\tif (splitLine[0].equals(\"NULL\")) {\n\t\t\t\tsplitLine[0] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[1].equals(\"NULL\")) {\n\t\t\t\tsplitLine[1] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[4].equals(\"NULL\")) {\n\t\t\t\tsplitLine[4] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[5].equals(\"NULL\")) {\n\t\t\t\tsplitLine[5] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[7].equals(\"NULL\")) {\n\t\t\t\tsplitLine[7] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[9].equals(\"NULL\")) {\n\t\t\t\tsplitLine[9] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[11].equals(\"NULL\")) {\n\t\t\t\tsplitLine[11] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[13].equals(\"NULL\")) {\n\t\t\t\tsplitLine[13] = \"-1\";\n\t\t\t}\n\t\t\t\n\t\t\t//if the type for double column is NULL\n\t\t\tif (splitLine[6].equals(\"NULL\")) {\n\t\t\t\tsplitLine[6] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[8].equals(\"NULL\")) {\n\t\t\t\tsplitLine[8] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[10].equals(\"NULL\")) {\n\t\t\t\tsplitLine[10] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[12].equals(\"NULL\")) {\n\t\t\t\tsplitLine[12] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[14].equals(\"NULL\")) {\n\t\t\t\tsplitLine[14] = \"-1.0\";\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tstat.executeQuery(comd.insert(tableName, \n\t\t\t\t\t \t Integer.parseInt(splitLine[0]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[1]), \n\t\t\t\t\t \t splitLine[2], \n\t\t\t\t\t \t splitLine[3], \n\t\t\t\t\t \t Integer.parseInt(splitLine[4]),\n\t\t\t\t\t \t Integer.parseInt(splitLine[5]),\n\t\t\t\t\t \t Double.parseDouble(splitLine[6]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[7]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[8]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[9]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[10]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[11]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[12]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[13]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[14])));\n\t\t\t}\n\t\t\tcatch(SQLException s) {\n\t\t\t\tSystem.out.println(\"SQL insert statement failed.\");\n\t\t\t\ts.printStackTrace();\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void setDetails() {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n//\t\tList<String> list1 = new ArrayList<String>();\n//\t\tlist1.add(\"Jhone\");\n//\t\tlist1.add(\"Jim\");\n\t\t\n//\t\tList<String> list2 = new ArrayList<String>();\n//\t\tlist2.add(\"USA\");\n//\t\tlist2.add(\"CA\");\n\n\t\tSystem.out.println(\"Enter Names : \");\n\t\tString names = input.nextLine();\n\t\tScanner tokenizer = new Scanner(names);\n\t\ttokenizer.useDelimiter(\" \");\n\t\tArrayList<String> arr = new ArrayList<String>();\n\t\twhile (tokenizer.hasNext()) {\n\t\t\tarr.add(tokenizer.next());\n//\t\t\tSystem.out.println(arr.get(arr.size() - 1));\n\t\t}\n\t\tSystem.out.println(arr);\n\t\t\n\t\tSystem.out.println(\"Enter Names : \");\n\t\tString address = input.nextLine();\n\t\tScanner tokenizerAdd = new Scanner(names);\n\t\ttokenizer.useDelimiter(\" \");\n\t\tArrayList<String> arr1 = new ArrayList<String>();\n\t\twhile (tokenizerAdd.hasNext()) {\n\t\t\tarr1.add(tokenizerAdd.next());\n//\t\t\tSystem.out.println(arr.get(arr.size() - 1));\n\t\t}\n\t\tSystem.out.println(arr1);\n\t\t\n\t\t\n\t\t// using addAll( ) method to concatenate the lists\n\t\tList<String> concatenated_list = new ArrayList<String>();\n\t\tconcatenated_list.addAll(arr);\n\t\tconcatenated_list.addAll(arr1);\n\t\tSystem.out.println(\"Name : \" + arr + \" Address : \" + arr1);\n\t}", "private void callForRecords() throws SQLException, NumberFormatException, ClassNotFoundException{\n\t\tResultSet rs;\n\t\toutputTA.setText(\"PURCHASE ID\"\n\t\t\t\t+\"\\t\"+\"| CUSTOMER\"\n\t\t\t\t+\"\\t\\t\"+\"| NO. OF ITEMS\"\n\t\t\t\t+\"\\t\"+\"| AMOUNT\"\n\t\t\t\t+\"\\t\"+\"| MODE OF PAYMENT\"\n\t\t\t\t+\"\\t\"+\"| TIME OF PURCHASE\"\n\t\t\t\t+\"\\n\");\n\t\tif(custTypeCB.getSelectedIndex() == 3)\n\t\t\trs = dBConnection.getRecords(Integer.parseInt(custIdTF.getText()));\n\t\telse\n\t\t\trs = dBConnection.getRecords(custTypeCB.getSelectedIndex());\n\t\t\n\t\twhile(rs.next()){\n\t\t\tString name = rs.getString(2);\n\t\t\t\n\t\t\t//trick to make all name length same so that they line up correctly in output textarea.\n\t\t\tif(name.length()<20){\n\t\t\t\tint spacesRequired = 20 - name.length();\n\t\t\t\tfor(int i = 0; i< spacesRequired; i++)\n\t\t\t\t\tname.concat(\" \");\n\t\t\t}\n\t\t\t\n\t\t\toutputTA.append(\"_________________________________________________________________\"\n\t\t\t\t\t+ \"___________________________________________\\n\");\n\t\t\toutputTA.append(rs.getString(1)\n\t\t\t\t\t+\"\\t \"+name\n\t\t\t\t\t+\"\\t\\t \"+rs.getString(3)\n\t\t\t\t\t+\"\\t \"+rs.getString(4)\n\t\t\t\t\t+\"\\t \"+rs.getString(5)\n\t\t\t\t\t+\"\\t\\t \"+rs.getString(6)+\"\\n\");\n\t\t}\n\t\tdBConnection.disconnect();\n\t}", "public static ArrayList<User> readUsers(String filename) throws IOException {\r\n ArrayList<User> users = new ArrayList<User>();\r\n try {\r\n BufferedReader in = new BufferedReader(\r\n new FileReader(filename));\r\n String line = in.readLine();\r\n while (line != null) {\r\n StringTokenizer t = new StringTokenizer(line, \"|\");\r\n String emailAddress = t.nextToken();\r\n String firstName = t.nextToken();\r\n String lastName = t.nextToken();\r\n User user = new User(firstName, lastName, emailAddress);\r\n users.add(user);\r\n line = in.readLine();\r\n }\r\n in.close();\r\n return users;\r\n } catch (FileNotFoundException e) {\r\n return new ArrayList<User>();\r\n }\r\n }", "public List<Utilisateur> generateData() throws FileNotFoundException, IOException {\n Reader reader = new FileReader(\"F:\\\\Bibliothèques\\\\Documents\\\\MIAGE M1\\\\WEB\\\\TPWeb\\\\src\\\\main\\\\webapp\\\\data.csv\");\n\n CSVReader<Utilisateur> csvPersonReader = new CSVReaderBuilder<Utilisateur>(reader).entryParser(new UtilisateurEntryParser()).build();\n\n List<Utilisateur> persons = csvPersonReader.readAll();\n\n return persons;\n\n }", "private static void setupRecords(String[] arr, AllDataRecords rec) {\r\n\t\t\r\n\t\tif(!arr[0].equals(\"\")) rec.setCpscCase(Integer.parseInt(arr[0]));\r\n\t\telse rec.setCpscCase(-1);\r\n\t\trec.setTrmt_date(arr[1]);\r\n\t\tif(!arr[2].equals(\"\")) rec.setPsu(Integer.parseInt(arr[2]));\r\n\t\telse rec.setPsu(-1);\r\n\t\tif(!arr[3].equals(\"\")) rec.setWeight(Double.parseDouble(arr[3]));\r\n\t\telse rec.setWeight(-1);\r\n\t\trec.setStratum(arr[4]);\r\n\t\tif(!arr[5].equals(\"\")) rec.setAge(Integer.parseInt(arr[5]));\r\n\t\telse rec.setAge(-1);\r\n\t\tif(!arr[6].equals(\"\")) rec.setSex(Integer.parseInt(arr[6]));\r\n\t\telse rec.setSex(-1);\r\n\t\tif(!arr[7].equals(\"\")) rec.setRace(Integer.parseInt(arr[7]));\r\n\t\telse rec.setRace(-1);\r\n\t\trec.setRace_other(arr[8]);\r\n\t\tif(!arr[9].equals(\"\")) rec.setDiag(Integer.parseInt(arr[9]));\r\n\t\telse rec.setDiag(-1);\r\n\t\trec.setDiag_other(arr[10]);\r\n\t\tif(!arr[11].equals(\"\")) rec.setBody_part(Integer.parseInt(arr[11]));\r\n\t\telse rec.setBody_part(-1);\r\n\t\tif(!arr[12].equals(\"\")) rec.setDisposition(Integer.parseInt(arr[12]));\r\n\t\telse rec.setDisposition(-1);\r\n\t\tif(!arr[13].equals(\"\")) rec.setLocation(Integer.parseInt(arr[13]));\r\n\t\telse rec.setLocation(-1);\r\n\t\tif(!arr[14].equals(\"\")) rec.setFmv(Integer.parseInt(arr[14]));\r\n\t\telse rec.setFmv(-1);\r\n\t\tif(!arr[15].equals(\"\")) rec.setProd1(Integer.parseInt(arr[15]));\r\n\t\telse rec.setProd1(-1);\r\n\t\tif(!arr[16].equals(\"\")) rec.setProd2(Integer.parseInt(arr[16]));\r\n\t\telse rec.setProd2(-1);\r\n\t\trec.setNarr1(arr[17]);\r\n\t\trec.setNarr2(arr[18]);\r\n\t}", "public void readToCsv() {\r\n\r\n String seperator = \";\";\r\n\r\n try (BufferedReader reader = new BufferedReader(\r\n new FileReader(\"Products.csv\"))){\r\n\r\n String line = null;\r\n for(int i=1; (line = reader.readLine()) != null; i++) {\r\n String[] fields = line.split(seperator, -1);\r\n\r\n // For nutrients objects to read\r\n if(fields.length ==5){\r\n Nutrient object= new Nutrient();\r\n object.name = fields[0];\r\n object.price = Double.parseDouble(fields[1]);\r\n object.tag=fields[2];\r\n object.content = fields[3];\r\n object.numOfProduct = Integer.parseInt(fields[4]);\r\n //object.addFeatures(object.name,object.price,object.size,object.gender,object.tag,object.content,object.numOfProduct);\r\n NutrientList.add(object);\r\n allProducts.add(object);\r\n }\r\n // For Cosmetics objects to read\r\n if (fields.length==6){\r\n Cosmetics object2=new Cosmetics();\r\n object2.name = fields[0];\r\n object2.price = Double.parseDouble(fields[1]);\r\n object2.gender = fields[2];\r\n object2.tag=fields[3];\r\n object2.content = fields[4];\r\n object2.numOfProduct = Integer.parseInt(fields[5]);\r\n //object2.addFeatures(object2.name,object2.price,object2.size,object2.gender,object2.tag,object2.content,object2.numOfProduct);\r\n CosmeticsList.add(object2);\r\n allProducts.add(object2);\r\n }\r\n // For clothes objects to read\r\n if(fields.length ==7){\r\n\r\n Clothes object3=new Clothes();\r\n object3.name = fields[0];\r\n object3.price = Double.parseDouble(fields[1]);\r\n object3.size= fields[2];\r\n object3.tag=fields[4];\r\n object3.content = fields[5];\r\n object3.numOfProduct = Integer.parseInt(fields[6]);\r\n object3.addFeatures(object3.name,object3.price,object3.size,\"E\",object3.tag,object3.content,object3.numOfProduct);\r\n ClothesList.add(object3);\r\n allProducts.add(object3);\r\n }\r\n\r\n }}\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public void addContact() {\n Contacts contacts = new Contacts();\n System.out.println(\"Enter first name\");\n contacts.setFirstName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter last name\");\n contacts.setLastName(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter address\");\n contacts.setAddress(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter city\");\n contacts.setCity(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter state\");\n contacts.setState(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter email\");\n contacts.setEmail(scannerForAddressBook.scannerProvider().nextLine());\n System.out.println(\"Enter zip\");\n contacts.setZip(scannerForAddressBook.scannerProvider().nextInt());\n System.out.println(\"Enter phone number\");\n contacts.setPhoneNumber(scannerForAddressBook.scannerProvider().nextLine());\n contactList.add(contacts);\n }", "public void processLine(String line){\n\t\tString[] splitted = line.split(\"(\\\\s+|\\\\t+)\");\n\t\tif(splitted.length < FIELDS){\n\t\t\tSystem.err.println(\"DataRow: Cannot process line : \" + line);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tindex \t\t= Integer.parseInt(splitted[0]);\n\t\tparentIndex = Integer.parseInt(splitted[1]);\n\t\tword \t\t= splitted[2].trim();\n\t\tpos\t\t\t= splitted[3].trim();\n\t\tpredicateLabel = splitted[4].trim();\n\t\tintervenes = splitted[5];\n\t\t\n\t\tidentificationLabel = splitted[6];\n\t\tclassificationLabel = splitted[7];\n\t\t\n\t\thmmState = Integer.parseInt(splitted[8]);\n\t\tnaiveState = Integer.parseInt(splitted[9]);\n\t\tchunk = splitted[10];\n\t\tne = splitted[11];\n\t\tif(splitted.length > FIELDS){\n\t\t\tSystem.err.println(\"WARNING: data row has more than required columns: \" + line);\n\t\t}\n\t}" ]
[ "0.5498037", "0.54877734", "0.54413325", "0.53885984", "0.5354947", "0.53299135", "0.52457184", "0.5242399", "0.5127876", "0.5044463", "0.504343", "0.5040293", "0.50250256", "0.4993873", "0.49768114", "0.49492046", "0.49360564", "0.4921858", "0.49117503", "0.48958272", "0.4881289", "0.4870891", "0.48591742", "0.48527735", "0.48521954", "0.4848078", "0.48238665", "0.4808156", "0.47893995", "0.47867045", "0.47652146", "0.47569928", "0.4740965", "0.47381797", "0.47376895", "0.47303402", "0.47299516", "0.47240624", "0.47190073", "0.47111312", "0.46939355", "0.46931958", "0.46887657", "0.46854824", "0.46820527", "0.4678407", "0.46721128", "0.46666718", "0.46567744", "0.46537912", "0.4649589", "0.4636318", "0.46324342", "0.46272042", "0.46247196", "0.4617419", "0.46139133", "0.46134254", "0.4609942", "0.46045676", "0.4598595", "0.45892972", "0.45883635", "0.45822984", "0.45815018", "0.45757687", "0.4568553", "0.456771", "0.4565856", "0.4555885", "0.4548526", "0.45420337", "0.45377642", "0.45322454", "0.45292282", "0.45288512", "0.4525002", "0.45241052", "0.45183635", "0.45169327", "0.45111707", "0.45100185", "0.45098764", "0.45086366", "0.45041195", "0.4502005", "0.4492503", "0.44907793", "0.4485966", "0.44844228", "0.44817445", "0.44766155", "0.4476151", "0.4475698", "0.44740653", "0.44695944", "0.44684675", "0.44675007", "0.44645527", "0.44566584", "0.44562805" ]
0.0
-1
Must run in AWT thread (BaseKit.install() checks for that)
@Override protected boolean runInEQ() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private AWTBridge() {\n\t}", "private static native Object setupMainThread0(Object thread);", "@Override\n public void runInit() {\n }", "void connectServiceUnknownThread() {\n mMainHandler.post(() -> {\n try {\n final IAccessibilityServiceClient serviceInterface;\n final IBinder service;\n synchronized (mLock) {\n serviceInterface = mServiceInterface;\n mService = (serviceInterface == null) ? null : mServiceInterface.asBinder();\n service = mService;\n }\n // If the serviceInterface is null, the UiAutomation has been shut down on\n // another thread.\n if (serviceInterface != null) {\n service.linkToDeath(this, 0);\n serviceInterface.init(this, mId, mOverlayWindowToken);\n }\n } catch (RemoteException re) {\n Slog.w(LOG_TAG, \"Error initialized connection\", re);\n destroyUiAutomationService();\n }\n });\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public void init() {\n\t\tThread appThread = new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tSwingUtilities.invokeAndWait(doHelloWorld);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Finished on \" + Thread.currentThread());\n\t\t\t}\n\t\t};\n\t\tappThread.start();\n\t}", "@Override\n public void init() throws Exception {\n // On Mac OS X Chromium engine must be initialized in non-UI thread.\n if (Environment.isMac()) {\n BrowserCore.initialize();\n }\n }", "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n\n createAndShowGUI();\n }", "public void start(){\r\n if (isInitOk){\r\n if (firstStart) {\r\n firstStart = false;\r\n String userHome = System.getProperty(\"user.home\");\r\n String installDirName = userHome + File.separator + \".jogl_ext\"\r\n + File.separator + installDirectory; // should manage jogl versions here\r\n\r\n final File installDir = new File(installDirName);\r\n\r\n Thread refresher = new Thread() {\r\n public void run() {\r\n refreshJOGL(installDir);\r\n }\r\n };\r\n refresher.setPriority(Thread.NORM_PRIORITY - 1);\r\n refresher.start();\r\n } else if (joglStarted) {\r\n // we have to start again the applet (start can be called multiple times,\r\n // e.g once per tabbed browsing\r\n subApplet.start();\r\n }\r\n }\r\n }", "@Override\n public synchronized void start() {\n init();\n }", "public static void main(String[] args){\n try {\n //wait to initialize toolkit\n final CountDownLatch latch = new CountDownLatch(1);\n SwingUtilities.invokeLater(() -> {\n new JFXPanel(); // initializes JavaFX environment\n latch.countDown();\n });\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n Consumer consumer = new Consumer();\n }", "public void run() {\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE);\n createAndShowGUI();\n }", "@Override\r\n protected void start() throws StartException {\n\r\n if (!Main.INIT_COMPLETE.isReached()) startServer();\r\n new EDTRunner() {\r\n\r\n @Override\r\n protected void runInEDT() {\r\n initGUI();\r\n }\r\n };\r\n\r\n }", "public void init() {\n //Execute a job on the event-dispatching thread; creating this applet's GUI.\n setSize(500, 150);\n \ttry {\n SwingUtilities.invokeAndWait(new Runnable() {\n public void run() {\n createGUI();\n }\n });\n } catch (Exception e) { \n System.err.println(\"createGUI didn't complete successfully\");\n }\n \n }", "public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}", "public abstract void startup();", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "public final void mo60872a() {\n if (this.f61639i == null) {\n this.f61639i = new HandlerThread(\"Audio-Api-Thread\");\n this.f61639i.start();\n this.f61640j = new C23406a(this.f61639i.getLooper(), this);\n }\n }", "protected void start() {\r\n if (!this.init || this.started) {\r\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\r\n }\r\n }", "@Override\r\n\tprotected void doStart() throws Exception {\n\r\n\t}", "@Override\n\tpublic void run() {\n\t\tinit();\n\t}", "@Override\n public void init() {\n UserThread.setExecutor(Platform::runLater);\n UserThread.setTimerClass(UITimer.class);\n\n shutDownHandler = this::stop;\n BisqApp.shutDownHandler = this::stop;\n CommonSetup.setup(this::showErrorPopup);\n CoreSetup.setup(bisqEnvironment);\n }", "public final void run() {\n /*\n // Method dump skipped, instructions count: 803\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.oculus.deviceconfigclient.DeviceConfigClient.AsyncFetchThread.run():void\");\n }", "public void start(BundleContext context)\n {\n m_context = context;\n if (SwingUtilities.isEventDispatchThread())\n {\n run();\n }\n else\n {\n try\n {\n javax.swing.SwingUtilities.invokeAndWait(this);\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n }\n }\n }", "protected void start() {\n if (!this.init || this.started) {\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\n }\n }", "protected void start() {\n if (!this.init || this.started) {\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\n }\n }", "public void startup() throws AMPException;", "@Override\n public void autonomousInit() {\n \n }", "@Override // com.baidu.mobads.container.p227o.AbstractC2310c, com.baidu.mobads.container.AbstractC2278m\n public void doStartOnUIThread() {\n if (this.mAdState != 2) {\n displayVersion4DebugMode();\n }\n super.doStartOnUIThread();\n }", "public boolean usesAniThread() {\r\n\t\treturn false;\r\n\t}", "protected void start() {\n if (!this.init || this.started) {\n \tthrow new RuntimeException(\"start() should not be called by hand: to create a new component, use newComponent().\");\n }\n }", "public static void main(String[] args) {\n try {\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n } catch (Exception e) {\n }\n\n transferITThreadFactory = new TransferITThreadFactory();\n transferITModel = new TransferITModel();\n initSettings(transferITModel);\n\n transferITController = new TransferITController(transferITModel);\n\n SwingUtilities.invokeLater(new Runnable() {\n\n public void run() {\n gUIView = new GUIView(transferITModel, transferITController);\n }\n });\n\n /*gUIView.appendToLog(\"Thread count \" + Thread.activeCount());\n gUIView.appendToLog(\"wid \" + gUIView.getTransferToServer().getBounds().getWidth());*/\n }", "@Override\r\n\tpublic synchronized void start() {\n\t\tsuper.start();\r\n\t}", "public void autonomousInit() {\n \n }", "@Override\n public synchronized void startIT() {\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n Tracer.emitEvent(Tracer.Event.START.getId(), Tracer.Event.START.getType());\n }\n\n // Console Log\n Thread.currentThread().setName(\"APPLICATION\");\n if (COMPSs_VERSION == null) {\n LOGGER.warn(\"Starting COMPSs Runtime\");\n } else if (COMPSs_BUILDNUMBER == null) {\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION);\n } else if (COMPSs_BUILDNUMBER.endsWith(\"rnull\")) {\n COMPSs_BUILDNUMBER = COMPSs_BUILDNUMBER.substring(0, COMPSs_BUILDNUMBER.length() - 6);\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION + \" (build \" + COMPSs_BUILDNUMBER + \")\");\n } else {\n LOGGER.warn(\"Starting COMPSs Runtime v\" + COMPSs_VERSION + \" (build \" + COMPSs_BUILDNUMBER + \")\");\n }\n\n // Init Runtime\n if (!initialized) {\n // Application\n synchronized (this) {\n LOGGER.debug(\"Initializing components\");\n\n // Initialize object registry for bindings if needed\n // String lang = System.getProperty(COMPSsConstants.LANG);\n // if (lang != COMPSsConstants.Lang.JAVA.name() && oReg == null) {\n // oReg = new ObjectRegistry(this);\n // }\n\n // Initialize main runtime components\n td = new TaskDispatcher();\n ap = new AccessProcessor(td);\n\n // Initialize runtime tools components\n if (GraphGenerator.isEnabled()) {\n graphMonitor = new GraphGenerator();\n ap.setGM(graphMonitor);\n }\n if (RuntimeMonitor.isEnabled()) {\n runtimeMonitor = new RuntimeMonitor(ap, td, graphMonitor, Long.parseLong(System.getProperty(COMPSsConstants.MONITOR)));\n }\n\n // Log initialization\n initialized = true;\n LOGGER.debug(\"Ready to process tasks\");\n }\n } else {\n // Service\n String className = Thread.currentThread().getStackTrace()[2].getClassName();\n LOGGER.debug(\"Initializing \" + className + \"Itf\");\n try {\n td.addInterface(Class.forName(className + \"Itf\"));\n } catch (ClassNotFoundException cnfe) {\n ErrorManager.fatal(\"Error adding interface \" + className + \"Itf\", cnfe);\n }\n }\n\n if (Tracer.isActivated()) {\n Tracer.emitEvent(Tracer.EVENT_END, Tracer.getRuntimeEventsType());\n }\n\n }", "void installIfNeeded()\n throws Exception;", "@Override\r\n public void start() {\r\n }", "public static void main(String[] args) \r\n {\r\n SwingUtilities.invokeLater(() -> new ITC_tuition_booking_system().Startup() );\r\n }", "protected void start() {\n }", "private void start() {\n\n\t}", "public static void m7339a() {\n final String sdcardAPPPath = NavMapAdapter.getInstance().getDataPath() + File.separator + \"bnav\";\n BMExecutorsManager.CACHED_EXECUTOR_SERVICE.execute(new Runnable() {\n public void run() {\n BaseTTSPlayer.loadTTSSO();\n BaseTTSPlayer.getInstance().initPlayer(C1157a.m3876a(), sdcardAPPPath);\n }\n });\n }", "@Override\n public void run() {\n startup();\n }", "protected void installComponents() {\n }", "@Override\n public void startup() {\n }", "public void initializer() {\r\n runLater(() -> this.main = new ApplicationMain(handler));\r\n }", "@Override\n public void start() {}", "private static void initAndShowGUI() {\n }", "@Override\n public void start() {\n }", "@Override\n\tpublic void autonomousInit() {\n\t}", "public void run() {\n\t\t\t\tUIManager.put(\"swing.boldMetal\", Boolean.FALSE);\r\n\t\t\t\tcreateAndShowGUI();\r\n\t\t\t}", "@Override\n protected void startUp() {\n }", "@Override\n public void initialize() {\n CallInvokerHolderImpl jsCallInvokerHolder = (CallInvokerHolderImpl) getReactApplicationContext().getCatalystInstance().getJSCallInvokerHolder();\n setupFlushUiQueue(jsCallInvokerHolder);\n }", "public void autonomousInit() {\n }", "public void autonomousInit() {\n }", "@Override\n protected void setup() {\n // exception handling for invoke the main2();\n try {\n main2();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // create central agent of the application\n try {\n AgentController Main = main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n try {\n showResualt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void run () {\n boolean activateStatus;\n\n startUp(); \n if (loaded) {\n File fi = new File(fileLoadedFrom);\n clientSite = load_object(fileLoadedFrom);\n message(AX_PROGRESS,\"Client Site found: \" + clientSite);\n if (! fi.delete()) {\n message(AX_ERROR,\"Failed to delete temporary file: \" + fileLoadedFrom);\n }\n } else { \n clientSite = insertObjectFromActiveXModes(modes, hWndHandle);\n }\n if (clientSite == AX_NO_CLIENT_SITE) {\n // Just progress because the C code will handle communicating\n // this failure.\n message(AX_PROGRESS, \"Error: client site was null\");\n return;\n }\n NativeMethodBroker.registerProxy(clientSite, this);\n try {\n if((! loaded) || (wrapper.getActivateOnLoad()))\n wrapper.activate();\n if (loaded) {\n addAllActiveXListeners();\n restoreTransientEventSets(); \n }\n }\n catch (ActiveXException e) \n { \n e.printStackTrace();\n }\n while (true) {\n long timeBefore = 0;\n long timeAfter;\n int counter = 0;\n if (messagesWaiting.isEmpty()) {\n try {\n // if (wrapper.isOpenInWindow) {\n // We should want to only call update_stuff when isOpenInWindow\n // is true. However, the call to OnShowWindow, which the only\n // thing which changes the value of isOpenInWindow, obviously\n // must come before the control has shut down. Therefore,\n // we can't immediately stop listening at that point. Perhaps\n // it would work to continue to listen for a few seconds after\n // receiving the notification, or perhaps even not acting on\n // the notification for a few seconds. Either of those seem\n // enormously hacky, however, so for now, every object will\n // just poll constantly.\n \n if (traceTime)\n timeBefore = System.currentTimeMillis(); \n update_stuff();\n \n Thread.sleep(UPDATE_HEARTBEAT);\n\n if (traceTime) {\n timeAfter = System.currentTimeMillis();\n System.out.println(\"Update and sleep took \" + (timeAfter - timeBefore) +\n \"(millis)\");\n }\n } \n catch (InterruptedException e) {\n message(AX_ERROR, \"INTERRUPTED EXCEPTION. \");\n message(AX_DATA_DUMPS, \"(This should never happen.)\");\n } \n }\n notifyMessage = messagesWaiting.pop();\n \n\n if (notifyMessage != null) {\n \n synchronized (notifyMessage) { \n message(AX_PROGRESS, notifyMessage.toString());\n switch (notifyMessage.messageType) {\n case OTR_ERROR:\n message(AX_ERROR, \"ERROR: thread was activated without an action.\\n\");\n return;\n case DELETE:\n try {\n removeAllActiveXListeners();\n }\n catch (ActiveXException e)\n {\n }\n deleteObject(clientSite);\n break; \n case UPDATE: \n update_stuff();\n break;\n case ACTIVATE:\n activateStatus =\n activate_object(clientSite, hWndHandle,\n notifyMessage.top, notifyMessage.left,\n notifyMessage.bottom, notifyMessage.right,\n false);\n if (activateStatus) {\n resize(notifyMessage.top, notifyMessage.left,\n notifyMessage.bottom, notifyMessage.right);\n } else {\n message(AX_ERROR, \"ERROR: unable to activate object. Quitting thread.\");\n return;\n }\n break;\n case RENDER:\n render_object(clientSite, hWndHandle,\n notifyMessage.top, notifyMessage.left,\n notifyMessage.bottom, notifyMessage.right);\n break;\n case RESIZE:\n resize_object(clientSite,\n notifyMessage.top, notifyMessage.left,\n notifyMessage.bottom, notifyMessage.right);\n break;\n case COPY:\n copy_object(clientSite, \n notifyMessage.top, notifyMessage.left,\n notifyMessage.bottom, notifyMessage.right);\n break;\n case INVOKE:\n if (traceTime)\n timeBefore = System.currentTimeMillis();\n comInvokeWithinThread(notifyMessage);\n if (traceTime) {\n timeAfter = System.currentTimeMillis();\n System.out.println(\"Invoke within thread took \" + (timeAfter - timeBefore) +\n \"(millis)\");\n }\n break;\n case SAVE:\n notifyMessage.name = save_object(clientSite, notifyMessage.name);\n break;\n case CHECK_CAST:\n notifyMessage.returnCheck \n = check_cast(clientSite,\n notifyMessage.dispatchPointer,\n notifyMessage.classID);\n break;\n case GET_CLSID:\n notifyMessage.returnClsid = \n get_clsid(clientSite,\n notifyMessage.dispatchPointer);\n break;\n case EVENT_LISTEN:\n event_listen(clientSite, \n notifyMessage.dispatchPointer, \n notifyMessage.classID,\n notifyMessage.add);\n break;\n case EVENT:\n forwardActiveXEvent1(notifyMessage.classID,\n notifyMessage.dispid,\n notifyMessage.eventName,\n notifyMessage.eventArguments);\n break;\n case MARSHAL_INTERFACE:\n notifyMessage.dispatchPointer = \n marshal_interface(clientSite, notifyMessage.dispatchPointer);\n break;\n case GET_MARSHALED_INTERFACE:\n notifyMessage.dispatchPointer = get_marshaled_interface(clientSite, notifyMessage.dispatchPointer);\n break;\n default:\n message(AX_ERROR, \"ERROR: unknown action:\" + notifyMessage);\n } \n notifyMessage.finished = true;\n notifyMessage.notifyAll();\n if ((notifyMessage.messageType == DELETE) ||\n (notifyMessage.messageType == DIE))\n {\n message(AX_PROGRESS, \"*** STOPING ***\");\n return;\n }\n \n }\n }\n }\n }", "private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }", "protected void install() {\n\t\t//\n\t}", "@Override\n\tpublic void runMBA() {\n\t\t\n\t}", "@Override\n public void start() { }", "void run() {\n System.out.println(\"PC Visual application run\");\n data = new Data(this);\n window = new Window(this);\n window.setup();\n mote = new MoteIF(PrintStreamMessenger.err);\n mote.registerListener(new OscilloscopeMsg(), this);\n }", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "protected abstract void setup();", "protected void installComponents() {\n\t}", "@EncoderThread\n protected abstract void onStart();", "@Override\n public void onCoreInitFinished() {\n }", "@Override\n public void onCoreInitFinished() {\n }", "public void init()\n\t{\n\t\ttry\n\t\t{\n\t\t\tjavax.swing.SwingUtilities.invokeAndWait(new Runnable()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tcreateGUI();\n\t\t\t\t}\n\t\t\t});\n\t\t} catch (Exception e)\n\t\t{\n\t\t\tSystem.err.println(\"createGUI didn't successfully complete: \"\n\t\t\t\t\t+ e.toString());\n\t\t}\n\t}", "public void start(){\n JmeFormatter formatter = new JmeFormatter();\n\n Handler consoleHandler = new ConsoleHandler();\n consoleHandler.setFormatter(formatter);\n\n Logger.getLogger(\"\").removeHandler(Logger.getLogger(\"\").getHandlers()[0]);\n Logger.getLogger(\"\").addHandler(consoleHandler);\n \n createCanvas(appClass);\n \n try {\n Thread.sleep(500);\n } catch (InterruptedException ex) {\n }\n \n SwingUtilities.invokeLater(new Runnable(){\n public void run(){\n JPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\n createFrame();\n \n //currentPanel.add(canvas, BorderLayout.CENTER);\n mMainFrame.pack();\n startApp();\n mMainFrame.setLocationRelativeTo(null);\n mMainFrame.setVisible(true);\n }\n });\n \n \n }", "public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}", "public void run() {\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionStart();\n\n /**\n * create an archetype for the new application\n */\n executeArchetypeCommand();\n\n /**\n * Provide some delay to allow thread to create the archetype\n */\n splash = new SplashScreen();\n\n for (int i = 0; i < 7; i++) {\n updateStatus(i);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n\n hideSplashScreen();\n splash = null;\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionEnd();\n }", "protected abstract void onShowRuntime();", "public void init()\n {\n _appContext = SubAppContext.createOMM(System.out);\n _serviceName = CommandLine.variable(\"serviceName\");\n initGUI();\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "private native void setupFlushUiQueue(CallInvokerHolderImpl callInvoker);", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t try {\n\t\t\t\t\tUIManager.setLookAndFeel(\"com.seaglasslookandfeel.SeaGlassLookAndFeel\");\n\t\t\t\t} catch (ClassNotFoundException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (InstantiationException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (IllegalAccessException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t} catch (UnsupportedLookAndFeelException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tsetupLibVLC();\n\t\t\t\t} catch (LibraryNotFoundException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tNative.loadLibrary(RuntimeUtil.getLibVlcLibraryName(), LibVlc.class);\n\t\t\t\t\n\t\t\t\tExtendedFrame frame = new ExtendedFrame();\n\t\t\t\tframe.setResizable(true);\n\t\t\t\tframe.setSize(800, 600);\n\t\t\t\tframe.setMinimumSize(new Dimension(500, 400));\n\t\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\t\tframe.setLocationRelativeTo(null);\n\t\t\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\t\tframe.setVisible(true);\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Welcome to Vamix!\\n\\nHope you enjoy using vamix!\\nFor help, please click in the Help menu.\\nRefer to user manual for detailed help.\\n\");\n\t\t\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public static void assertMainThread() {\n if (!isMainThread()) {\n e(new Exception(), \"UI thread assertion failed\");\n if (CardConfig.DEV_BUILD)\n throw new RuntimeException(\"UI thread assertion failed!\");\n }\n }", "@Override\n public synchronized void start() {\n super.start(); //To change body of generated methods, choose Tools | Templates.\n }", "private void runAcquisition() {\n class AcqThread extends Thread {\n\n AcqThread(String threadName) {\n super(threadName);\n }\n\n @Override\n public void run() {\n String acq;\n try {\n acq = SAIMCommon.runAcquisition(gui_, prefs_, acqdirRootField_.getText(),\n acqnamePrefixField_.getText(), true, saveImagesCheckBox_.isSelected());\n gui_.closeAcquisition(acq);\n } catch (SAIMException saimEx) {\n ij.IJ.error(saimEx.getMessage());\n } catch (Exception ex) {\n ij.IJ.log(ex.getMessage());\n ij.IJ.error(\"Something went wrong. Aborting!\");\n } finally {\n runButton_.setSelected(false);\n runButton_.setText(\"Run Acquisition\");\n }\n }\n\n }\n AcqThread acqT = new AcqThread(\"SAIM Acquisition\");\n acqT.start();\n\n }", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "@Override\n public void threadStarted() {\n }", "private CoinTracker() {\n api = new CryptoCompare();\n new SymbolThread().start();\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n e = new Elements(api);\n e.frames.mainFrame.setTitle(TITLE + \" : \" + api.HOME);\n e.frames.mainFrame.setVisible(true);\n new HttpThread().start();\n new HistThread().start();\n }\n });\n }", "private void initUI() {\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}", "@Override public void start() {\n }", "@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}" ]
[ "0.6528792", "0.63402724", "0.6273298", "0.6211527", "0.61992824", "0.61992824", "0.61992824", "0.61121947", "0.6087573", "0.6025567", "0.5987274", "0.5923513", "0.5916144", "0.5914881", "0.58933914", "0.5888144", "0.5883405", "0.58788395", "0.5868807", "0.5868807", "0.58617723", "0.5855963", "0.5854928", "0.5853961", "0.58536655", "0.5853103", "0.5842579", "0.58268636", "0.58268636", "0.5822924", "0.5814667", "0.58138824", "0.5811585", "0.57907903", "0.57900757", "0.5788572", "0.5773721", "0.5773365", "0.5770053", "0.5759474", "0.5747418", "0.57471126", "0.5742453", "0.57405955", "0.5730855", "0.5724034", "0.57179904", "0.5715368", "0.5714894", "0.57133305", "0.5711011", "0.57106537", "0.5710452", "0.570749", "0.5699452", "0.56990796", "0.56990796", "0.56979", "0.56971866", "0.56928146", "0.56878316", "0.56804526", "0.56786746", "0.5676936", "0.5670529", "0.56684816", "0.5667249", "0.5666648", "0.56654364", "0.56654364", "0.5664078", "0.5658507", "0.5655711", "0.5655655", "0.5651639", "0.5645744", "0.56424886", "0.56424886", "0.56424886", "0.56424886", "0.56424886", "0.56424886", "0.56424886", "0.5641593", "0.5640046", "0.5638562", "0.56347746", "0.56347746", "0.56347746", "0.5634315", "0.5630424", "0.5629616", "0.5626444", "0.56263816", "0.5618905", "0.56138486", "0.5608927", "0.5608676", "0.5604032", "0.5601023", "0.5595441" ]
0.0
-1
Returns the privilege definitions retrieved from the input stream.
public PrivilegeDefinition[] getPrivilegeDefinitions() { return privilegeDefinitions; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> getDefinitions () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase()\r\n definitions.add(scanner.nextLine());\r\n }\r\n return definitions;\r\n }", "Credential<?>[] readAuthorization(HttpServletRequest request)\n throws IOException,ServletException;", "public List<Privilege> get() throws Exception {\n\t\treturn get(null);\r\n\t}", "public List<PGPSecretKeyRing> load(InputStream stream)\r\n\t\t\tthrows IOException, PGPException {\r\n\t\tArrayList<PGPSecretKeyRing> keys = new ArrayList<PGPSecretKeyRing>();\r\n\r\n\t\tIterator packets = parse(unarmor(stream));\r\n\t\twhile (packets.hasNext()) {\r\n\t\t\tObject packet = packets.next();\r\n\r\n\t\t\tif (packet instanceof PGPSecretKeyRing)\r\n\t\t\t\tkeys.add((PGPSecretKeyRing) packet);\r\n\t\t\t// else if (packet instanceof PGPPublicKeyRing)\r\n\t\t\t// keys.add(newKey((PGPPublicKeyRing) packet));\r\n\t\t}\r\n\r\n\t\tthis.keys.addAll(keys);\r\n\t\treturn keys;\r\n\t}", "@Override\n\tpublic Enumeration elements() {\n\t return Collections.enumeration(perms);\n\t}", "Map<String, Object> getPermStorage();", "public Set<ContextualActivity> read() {\n Set<ContextualActivity> defaultActivities = new HashSet<ContextualActivity>();\n try {\n\n Scanner s = new Scanner(input);\n while (s.hasNextLine()) {\n // verb, noun, locations, times, duration\n String infos[] = (s.nextLine()).split(\",\");\n\n Set<String> locations = new HashSet<String>();\n Collections.addAll(locations, infos[2].split(Cons.ENTRY_SEPARATOR_REG));\n\n Set<TimeOfDay> times = new HashSet<TimeOfDay>();\n for (String tm : infos[3].split(Cons.ENTRY_SEPARATOR_REG)) {\n try {\n times.add(TimeOfDay.valueOf(tm.toUpperCase()));\n }\n catch (Exception e){\n }\n }\n\n defaultActivities.add(new DefaultActivity(infos[0], infos[1], locations, times, infos[4]));\n }\n\n return defaultActivities;\n } catch (Exception e) {\n e.printStackTrace();\n }\n return defaultActivities;\n }", "public org.landxml.schema.landXML11.DefinitionDocument.Definition[] getDefinitionArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(DEFINITION$2, targetList);\r\n org.landxml.schema.landXML11.DefinitionDocument.Definition[] result = new org.landxml.schema.landXML11.DefinitionDocument.Definition[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "private List<Privilege> convertToPrivilegeList(ResultSet set) throws SQLException {\n List<Privilege> privileges = new ArrayList<>();\n while(set.next()){\n Privilege p;\n char privilege = set.getString(\"shortname\").charAt(0);\n p = determineInstance(privilege);\n p.setId(set.getInt(\"ID\"));\n\n privileges.add(p);\n }\n return privileges;\n }", "public String findPrivileges() {\r\n\r\n String thePrivilegeType = this.getParam(\"privilegeType\");\r\n if (thePrivilegeType == null) {\r\n this.privilegeTypeEnum = ScopeEnum.IMMEDIATE;\r\n } else {\r\n this.privilegeTypeEnum = ScopeEnum.valueOf(PrivilegesRadioEnum.fromLabel(thePrivilegeType).name());\r\n }\r\n\r\n this.clearContext();\r\n\r\n // The list of groups.\r\n List < Privilege > privileges = null;\r\n\r\n List < Subject > subjects = null;\r\n\r\n ParameterGroup parameterGroup = null;\r\n Iterator < Parameter > itParam = null;\r\n Parameter parameter = null;\r\n\r\n if (this.getGroupController().getGroup() != null && !this.getGroupController().getIsCreation()) {\r\n\r\n // Dynamic parameters\r\n List < String > attributes = new ArrayList < String >();\r\n IParameterService parameterService = this.getGroupController().getParameterService();\r\n\r\n parameterGroup = parameterService\r\n .findParametersByGroup(\"org.esco.grouperui.group.privileges.attribut\");\r\n\r\n // We retrieve the parameters from the database.\r\n itParam = parameterGroup.getParameters().iterator();\r\n while (itParam.hasNext()) {\r\n parameter = itParam.next();\r\n attributes.add(parameter.getKey());\r\n }\r\n\r\n // Dynamic source\r\n Map < String, SourceTypeEnum > sources = new HashMap < String, SourceTypeEnum >();\r\n parameterGroup = parameterService.findParametersByGroup(\"org.esco.grouperui.group.privileges.map\");\r\n\r\n itParam = parameterGroup.getParameters().iterator();\r\n while (itParam.hasNext()) {\r\n parameter = itParam.next();\r\n sources.put(parameter.getValue(), SourceTypeEnum.valueOf(parameter.getKey().toUpperCase()));\r\n }\r\n\r\n // The stem name from which we want to retrieve the privileges.\r\n String groupName = this.getGroupController().getGroup().getName();\r\n\r\n // The person from which we want to open the grouper session.\r\n Person userConnected = null;\r\n try {\r\n userConnected = PersonController.getConnectedPerson();\r\n } catch (ESCOSubjectNotFoundException e1) {\r\n GroupModificationsPrivilegesController.LOGGER.error(e1, \"Subject not found\");\r\n } catch (ESCOSubjectNotUniqueException e1) {\r\n GroupModificationsPrivilegesController.LOGGER.error(e1, \"Subject not unique\");\r\n }\r\n\r\n // The Membership Type selected via the Radio Button.\r\n PrivilegesRadioEnum radioType = PrivilegesRadioEnum.fromLabel(thePrivilegeType.toUpperCase());\r\n if (radioType == null) {\r\n radioType = PrivilegesRadioEnum.IMMEDIATE;\r\n }\r\n\r\n // The list of Subject corresponding to the find parameters.\r\n privileges = this.getGroupController().getGrouperService().findGroupPrivileges(userConnected,\r\n attributes, sources, groupName, ScopeEnum.valueOf(radioType.name()));\r\n\r\n GroupPrivileges groupPrivileges = new GroupPrivileges(privileges);\r\n subjects = groupPrivileges.getSubjects();\r\n\r\n Iterator < Subject > itSubject = subjects.iterator();\r\n while (itSubject.hasNext()) {\r\n this.data.add(itSubject.next());\r\n }\r\n }\r\n this.addedItems();\r\n\r\n // Create and return the XML status.\r\n XmlProducer producer = new XmlProducer();\r\n producer.setTarget(new Status(this.isRowToReturn()));\r\n producer.setTypesOfTarget(Status.class);\r\n\r\n return this.xmlProducerWrapper.wrap(producer);\r\n }", "public Object getMSecLevelDefs(Map params) {\r\n\t\treturn dhh.getMSecLevelDefs(null);\r\n\t}", "public int getMetaPrivileges();", "String[] listGrantedTablePrivileges(HsqlName name) {\n return GranteeManager.getRightsArray(rightsMap.get(name, 0));\n }", "public abstract List<String> getValidDescriptors();", "protected List<QueryDefinition> loadQueryDefinitions() {\n try (InputStream qdStream = this.getClass().getResourceAsStream(\"/default-query-definitions.json\")) {\n if (qdStream == null) {\n LOGGER.info(\"Default query definitions file default-query-definitions.json not found\");\n return emptyList();\n }\n return loadQueryDefinitions(qdStream);\n } catch (Exception e) {\n LOGGER.error(\"Error when loading default query definitions from default-query-definitions.json\", e);\n return emptyList();\n }\n }", "public InputDirective[] getInputDirectives()\r\n {\r\n return m_inputs;\r\n }", "public AuthInfo[] getAuthInfoList();", "public ListLoadResult<UserVariableDefinitionDto> getDefinedUserVariableDefinitions() throws ServerCallFailedException;", "Set<String> getProteinAccessions(String experimentAccession);", "public Enumeration elements()\n {\n return m_permissions.elements();\n }", "public ArrayList<String> getTerms () throws FileNotFoundException {\n String inputFile = getInputFile();\r\n Scanner scanner = new Scanner (new File (inputFile));\r\n ArrayList<String> terms = new ArrayList<String>();\r\n ArrayList<String> definitions = new ArrayList<String>();\r\n while (scanner.hasNextLine()) {\r\n terms.add(scanner.nextLine()); //took out .toLowerCase() part so it prints correctly \r\n definitions.add(scanner.nextLine());\r\n }\r\n return terms;\r\n }", "public abstract List<String> getAdditionalAccessions();", "public List<String[]> getInputDetails()\n\t{\n\t\treturn inputDetails;\n\t}", "public Enumeration permissions();", "@Override\n public Map<String, List<Sensor>> getDeviceSchemaList() {\n Path path = Paths.get(config.getFILE_PATH(), Constants.SCHEMA_PATH);\n if (!Files.exists(path) || !Files.isRegularFile(path)) {\n LOGGER.error(\"Failed to find schema file in \" + path.getFileName().toString());\n System.exit(0);\n }\n Map<String, List<Sensor>> result = new HashMap<>();\n try {\n List<String> schemaLines = Files.readAllLines(path);\n for (String schemaLine : schemaLines) {\n if (schemaLine.trim().length() != 0) {\n String line[] = schemaLine.split(\" \");\n String deviceName = line[0];\n if (!result.containsKey(deviceName)) {\n result.put(deviceName, new ArrayList<>());\n }\n Sensor sensor = new Sensor(line[1], SensorType.getType(Integer.parseInt(line[2])));\n result.get(deviceName).add(sensor);\n }\n }\n } catch (IOException exception) {\n LOGGER.error(\"Failed to init register\");\n }\n return result;\n }", "public void readInSearchTokens() {\n String propFile = properties.getProperty(\"classpath.search.tokens\");\n //Try with resources\n try (InputStream inputStream = this.getClass().getResourceAsStream(propFile);\n \n InputStreamReader inputStreamReader = new InputStreamReader(inputStream);\n BufferedReader searchTokensReader = new BufferedReader(inputStreamReader)) {\n //Tells the stream that it is ready to be read\n while (searchTokensReader.ready()) {\n String line = searchTokensReader.readLine();\n //eliminating leading and trailing spaces with trim and split\n //creating a string array of tokens\n String[] tokens = line.trim().split(\"\\\\s*,\\\\s\");\n List<Integer> lArray = new ArrayList<Integer>();\n // Notes: String is the type - element is the identifier. Tokens is the name\n for (String element : tokens) {\n if (element.isEmpty() == false) {\n //using containsKey to ensure the FoundLocations is in the tokens array\n if (getFoundLocations().containsKey(element) == false) {\n getFoundLocations().put(element, lArray);\n }\n }\n }\n }\n } catch (IOException inputOutputException) {\n inputOutputException.printStackTrace();\n } catch (Exception exception) {\n exception.printStackTrace();\n }\n }", "public static Object[] getUserData(){\n String name, password;\n\n System.out.println(\"\\n1. Manager\\n2. Customer\");\n int res = ConsoleReader.getInt();\n System.out.print(\"\\nEnter your name :\");\n ConsoleReader.getString();\n name = ConsoleReader.getString();\n System.out.print(\"Enter your password :\");\n password = ConsoleReader.getString();\n return new Object[] {res, name, password};\n }", "private static String[] collectInput() {\n\t\tString command = sc.next();\n\t\tString i = sc.next();\n\t\tString destination = sc.next();\n\t\treturn new String[] { command, destination };\n\t\t\n\t}", "public List<ChunkData> getAccess() {\n return access;\n }", "@Override\n @SuppressWarnings( \"unchecked\" )\n protected Set<String> getDefinitions() {\n final Set<Object> allowedDefinitions =\n commonLookups.getAllowedTargetDefinitions(\n canvasHandler.getModelRulesManager(),\n getDefinitionSetIdentifier(),\n canvasHandler.getDiagram().getGraph(),\n this.sourceNode,\n getEdgeIdentifier(),\n 0,\n 10 );\n return null;\n }", "public HashSet<String> getForbiddenPrivileges() {\r\n\t\tHashSet<String> result = new HashSet<String>();\r\n\t\tint role = getCurrentRole();\r\n\t\tif ((role & User.ROLE_ADMINISTRATOR) != 0) {\r\n\t\t\treturn result;\r\n\t\t}\r\n\t\tfor (String privilegeName : privilegeDef.keySet()) {\r\n\t\t\tint requiredRoles = privilegeDef.get(privilegeName);\r\n\t\t\tif ((requiredRoles & role) == 0) {\r\n\t\t\t\tresult.add(privilegeName);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public List<Declaration> getIntroducedMembers();", "public HashMap<String, String> getPerams() {\n HashMap<String, String> perams = new HashMap<>();\n /* get the data from the local memory\n that is to be sent to server*/\n perams.put(\"user_name\", userName.trim());\n perams.put(\"passwd\", password.trim());//use encryption's like md5 etc while storing password\n return perams;\n }", "public Stream getPermissionAndSettingRequirementsOfStream() {\n\n for (Annotation annotation : annotationList) {\n\n if (annotation instanceof RequiresPermission)\n listRequiresPermissions.add((RequiresPermission) annotation);\n\n if (annotation instanceof RequiresSetting)\n listRequiresSettings.add((RequiresSetting) annotation);\n\n if (annotation instanceof PermissionsRepeatable)\n listRequiresPermissions.addAll(Arrays.asList(((PermissionsRepeatable) annotation).value()));\n\n if (annotation instanceof SettingsRepeatable)\n listRequiresSettings.addAll(Arrays.asList(((SettingsRepeatable) annotation).value()));\n }\n\n stream.setRequiredPermissions(listRequiresPermissions);\n stream.setRequiredSettings(listRequiresSettings);\n\n return stream;\n }", "public AnalysisInputItem[] getInputItems() {\n\t\tAnalysisInputItem[] items = { new AnalysisInputItem(\"SAMXML Log\") {\n\t\t\tpublic boolean accepts(ProvidedObject object) {\n\t\t\t\tObject[] o = object.getObjects();\n\t\t\t\tfor (int i = 0; i < o.length; i++) {\n\t\t\t\t\tif (o[i] instanceof LogReader) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} };\n\t\treturn items;\n\t}", "List<Integer> fromScannerInput() throws IOException {\n\t\tfinal List<Integer> array = new ArrayList<>();\n\t\twhile (scanner.hasNext()) {\n\t\t\tarray.add(\n\t\t\t\t\tInteger.parseInt(\n\t\t\t\t\t\t\tscanner.next()));\n\t\t}\n\t\treturn array;\n\t}", "public Iterator<String> getUserDefinedProperties();", "ImmutableList<SchemaOrgType> getAccessibilityControlList();", "public Set<String> listPrivilegesForGroup(String groupName) throws SentryConfigurationException;", "public List getPrompts() {\n\t\tif (prompts == null) {\n\t\t\tprompts = new ArrayList();\n\t\t\tList nodes = doc.selectNodes(\"/metadataFieldInfo/field/prompts/prompt\");\n\t\t\tif (nodes != null) {\n\t\t\t\tfor (Iterator i = nodes.iterator(); i.hasNext();) {\n\t\t\t\t\tElement promptEl = (Element) i.next();\n\t\t\t\t\tprompts.add(promptEl.getTextTrim());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn prompts;\n\t}", "public List<UserPrivileges> findUserPrivilegesByUser(User user) {\r\n List<UserPrivileges> userPrivilegesList = null;\r\n try {\r\n\r\n\r\n String sql = \"FROM UserPrivileges u WHERE u.user = :user \";\r\n\r\n Query query = HibernateUtil.getSession().createQuery(sql).setParameter(\"user\", user);\r\n userPrivilegesList = findMany(query);\r\n\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n return userPrivilegesList;\r\n }", "public List<HospitalBean> readHospital() \n\t{\n\t\t\treturn\treadHospital(0);\n\n\t}", "@Override\r\n\tpublic List<Userprivileges> SelUserprivileges(String id)\r\n\t{\n\r\n\t\treturn Sel.HSQL(\"from Userprivileges where users.userId='\" + id + \"'\");\r\n\t}", "public List<?> getSecretInfo() {\n\t\treturn null;\r\n\t}", "private List readHeadings( PushbackInputStream stream ) throws IOException {\n List headings = new ArrayList();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\r':\n case '\\n':\n done = true;\n break;\n case ' ':\n case '\\t':\n break;\n case '\"':\n case '\\'':\n stream.unread( c );\n headings.add( readString( stream ) );\n break;\n case END:\n done = true;\n break;\n default:\n stream.unread( c );\n headings.add( readToken( stream ) );\n }\n }\n return headings;\n }", "public AttributeDefinition[] getAttributeDefinitions(int filter) {\n\t\treturn this.realOCD.getAttributeDefinitions(filter);\n\n\t}", "public synchronized final Map<String, PermissionRegion> getRegions() {\n return memoryState.getRegions();\n }", "public Set<CommandType> getAccessCommands(){\n return this.accessCommands;\n }", "public List<String> getUserPermissions(String login) throws IOException;", "public List<__Directive> getDirectives() {\n return (List<__Directive>) get(\"directives\");\n }", "public java.util.List<MetadataEntry> getAuthList() {\n if (authBuilder_ == null) {\n return java.util.Collections.unmodifiableList(auth_);\n } else {\n return authBuilder_.getMessageList();\n }\n }", "java.util.List<java.lang.String>\n getPermissionsList();", "ImmutableList<SchemaOrgType> getAccessibilityHazardList();", "private static List<GenomeSegment> loadSegments() {\n JamLogger.info(\"Loading genome segments...\");\n\n ArrayList<GenomeSegment> segments =\n new ArrayList<GenomeSegment>();\n\n DataReader reader =\n DataReader.open(resolveDefinitionFile(),\n DEFINITION_FILE_COMMENT);\n\n try {\n for (String line : reader)\n segments.add(parseSegment(line));\n }\n finally {\n reader.close();\n }\n\n segments.trimToSize();\n return Collections.unmodifiableList(segments);\n }", "static Map<String, String> readPasswdFile (File pwdFile) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new FileReader(pwdFile));\n\t\tHashtable users = new Hashtable();\n\t\tString l = r.readLine();\n\t\twhile (l != null) {\n\t\t\tint hash = l.indexOf('#');\n\t\t\tif (hash != -1)\n\t\t\t\tl = l.substring(0, hash);\n\t\t\tl = l.trim();\n\t\t\tif (l.length() != 0) {\n\t\t\t\tStringTokenizer t = new StringTokenizer(l, \":\");\n\t\t\t\tString user = t.nextToken();\n\t\t\t\tString password = t.nextToken();\n\t\t\t\tusers.put(user, password);\n\t\t\t}\n\t\t\tl = r.readLine();\n\t\t}\n\t\tr.close();\n\t\treturn users;\n\t}", "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(User user) throws UserManagementException;", "List<Permission> getPermissions();", "List<IVariableDef> getVariables();", "Input getInputs();", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.421 -0500\", hash_original_method = \"B116CF358C1D0DA8CF46DFF106939FC0\", hash_generated_method = \"B116CF358C1D0DA8CF46DFF106939FC0\")\n \nEnumeration getDeclaredPrefixes() {\n return (declarations == null) ? EMPTY_ENUMERATION : Collections.enumeration(declarations);\n }", "Map<String, String> getDirectives();", "Map<String, String> getDirectives();", "Map<String, String> getDirectives();", "public Set<String> listPrivilegesForSubject(Subject subject) throws SentryConfigurationException;", "public List<ResolvedFieldDeclaration> getAllFieldsVisibleToInheritors() {\n List<ResolvedFieldDeclaration> res = new LinkedList<>(this.getDeclaredFields().stream().filter(f -> f.accessSpecifier() != AccessSpecifier.PRIVATE).collect(Collectors.toList()));\n getDirectAncestors().forEach(a -> res.addAll(a.getAllFieldsVisibleToInheritors()));\n return res;\n }", "List<Defines> getDefines();", "public abstract Ability[] getAbilities();", "public Map<String, Object> getDirectives();", "public Set<Map.Entry<Integer, String>> entrySet() {\n return Collections.unmodifiableSet(getMacrosses().entrySet());\n }", "private String[] getKeys() {\n\t\tSharedPreferences prefs = EReaderApplication.getAppContext()\n\t\t\t\t.getSharedPreferences(ACCOUNT_PREFS_NAME, 0);\n\t\tString key = prefs.getString(ACCESS_KEY_NAME, null);\n\t\tString secret = prefs.getString(ACCESS_SECRET_NAME, null);\n\t\tif (key != null && secret != null) {\n\t\t\tString[] ret = new String[2];\n\t\t\tret[0] = key;\n\t\t\tret[1] = secret;\n\t\t\treturn ret;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public void printSettingsContents() {\n String fileName = \"collect.settings\";\n try {\n ClassLoader classLoader = getClass().getClassLoader();\n FileInputStream fin = new FileInputStream(\n classLoader.getResource(fileName).getFile());\n ObjectInputStream ois = new ObjectInputStream(fin);\n Map<?, ?> user_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : user_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"user.\" + key.toString() + \"=\" + v.toString());\n }\n Map<?, ?> admin_entries = (Map<?, ?>) ois.readObject();\n for (Map.Entry<?, ?> entry : admin_entries.entrySet()) {\n Object v = entry.getValue();\n Object key = entry.getKey();\n System.out.println(\"admin.\" + key.toString() + \"=\" + v.toString());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "Map<String, Slot> getSlots(HandlerInput input) {\n // this chunk of code gets the slots\n Request request = input.getRequestEnvelope().getRequest();\n IntentRequest intentRequest = (IntentRequest) request;\n Intent intent = intentRequest.getIntent();\n if (intent.getSlots() == null) {\n return Collections.emptyMap();\n }\n return Collections.unmodifiableMap(intent.getSlots());\n }", "Set<String> readData();", "Set<Right> getRightsFor(User user, Pad pad);", "public String getFloodPerm(String dpidStr) throws PermissionDeniedException;", "public ArrayList<String> loadToRead() {\n\n\t\tSAVE_FILE = TO_READ_FILE;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\tlist = loadIds();\n\t\treturn list;\n\t}", "public List<Lexi> directives() throws IOException {\n\t\tfinal List<Lexi> $ = new ArrayList<>();\n\t\tToken t;\n\t\twhile ((t = tokenizer.next_token()) != null)\n\t\t\tif (t.isKeyword())\n\t\t\t\t$.add(directive(wizard.newKeyword(t)));\n\t\treturn $;\n\t}", "List<ExposedOAuthCredentialModel> readExposedOAuthCredentials();", "public IInputType[] getInputTypes();", "public String[] readAllStrings(){\n\t\tString[] tokens=WHITESPACE_PATTERN.split(readAll());\n\t\tif (tokens.length==0||tokens[0].length()>0)\n\t\t\treturn tokens;\n\t\tString[] decapitokens=new String[tokens.length-1];\n\t\tfor (int i=0;i<tokens.length-1;i++){\n\t\t\tdecapitokens[i]=tokens[i+1];\n\t\t}\n\t\treturn decapitokens;\n\t}", "public List getDos() {\n\t\tif (dos == null) {\n\t\t\tdos = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/dos\");\n\t\t}\n\t\treturn dos;\n\t}", "Map<String, String> getTokens();", "Privilege getPrivilege();", "public List<Identifier> getDeclarations() \n {\n return this.declarations;\n }", "List<SecuritySchemeRef> securedBy();", "private String[] getPatterns(StreamTokenizer st) throws IOException {\n\t\t// get language\n\t\tString lang = getLanguageFromTokenizer(st);\n\n\t\tif (st.nextToken() != StreamTokenizer.TT_EOF)\n\t\t\tthrow new IOException(\n\t\t\t\t\t\"PATTERNS takes exactly one (language) or no arguments (default language)!\");\n\n\t\treturn ng.getPatterns(lang);\n\t}", "public List<Object> getDecodeParms() throws IOException {\n/* 346 */ List<Object> retval = null;\n/* */ \n/* 348 */ COSBase dp = this.stream.getDictionaryObject(COSName.DECODE_PARMS);\n/* 349 */ if (dp == null)\n/* */ {\n/* */ \n/* */ \n/* 353 */ dp = this.stream.getDictionaryObject(COSName.DP);\n/* */ }\n/* 355 */ if (dp instanceof COSDictionary) {\n/* */ \n/* */ \n/* 358 */ Map<?, ?> map = COSDictionaryMap.convertBasicTypesToMap((COSDictionary)dp);\n/* 359 */ retval = new COSArrayList(map, dp, (COSDictionary)this.stream, COSName.DECODE_PARMS);\n/* */ \n/* */ }\n/* 362 */ else if (dp instanceof COSArray) {\n/* */ \n/* 364 */ COSArray array = (COSArray)dp;\n/* 365 */ List<Object> actuals = new ArrayList();\n/* 366 */ for (int i = 0; i < array.size(); i++)\n/* */ {\n/* 368 */ actuals.add(\n/* 369 */ COSDictionaryMap.convertBasicTypesToMap((COSDictionary)array\n/* 370 */ .getObject(i)));\n/* */ }\n/* 372 */ retval = new COSArrayList(actuals, array);\n/* */ } \n/* */ \n/* 375 */ return retval;\n/* */ }", "public Collection<String> listSlices() throws PermissionDeniedException;", "public static String[] readCredentials(boolean isAdmin) {\n String[] credentials = new String[4];\n\n System.out.println(\"CREDENTIALS must be at lest three characters long and may contain \" +\n \"only letters, digits, a dot sign or an underscore sign\");\n in.nextLine();\n\n System.out.println(\"Username (at least 3 characters): \");\n credentials[0] = in.nextLine();\n System.out.println(\"Password (at least 3 characters): \");\n credentials[1] = in.nextLine();\n System.out.println(\"Email: \");\n credentials[2] = in.nextLine();\n if (isAdmin) {\n System.out.println(\"Agency: \");\n credentials[3] = in.nextLine();\n } else {\n credentials[3] = \"CUSTOMER\";\n }\n return credentials;\n }", "HashSet getGrantedClassNamesDirect() throws HsqlException {\n\n IntValueHashMap rights;\n HashSet out;\n Object key;\n int right;\n Iterator i;\n\n rights = rightsMap;\n out = new HashSet();\n i = rightsMap.keySet().iterator();\n\n while (i.hasNext()) {\n key = i.next();\n\n if (key instanceof String) {\n right = rights.get(key, 0);\n\n if (right == GranteeManager.ALL) {\n out.add(key);\n }\n }\n }\n\n return out;\n }", "public static Map<String, Object> getSchema (Request req, Response res) {\n return GTFSGraphQL.getGraphQl().execute(IntrospectionQuery.INTROSPECTION_QUERY).toSpecification();\n }", "List<ValueType> getValueTypes() throws AccessDeniedException;", "@Override\n public Set<String> getPermissions(Class<? extends AeroCommandBase<?>> command) {\n return permissions.get(command);\n }", "public abstract Map<String, String> getPermissionMap(boolean getsFromBase)\n\t\t\tthrows ConnectorException;", "public static Map<String, String> parseParameters(InputStream input) throws IOException {\n ObjectMapper mapper = new ObjectMapper();\n mapper.registerModule(new MixedContentMapModule());\n mapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);\n Actions parsedAction = mapper.readerFor(Actions.class).readValue(input);\n return parsedAction.getActions().get(0).getParameters();\n }", "public List<Declaration> declarations() {\r\n\t\treturn this.declarations;\r\n\t}", "ImmutableList<SchemaOrgType> getAccessibilityFeatureList();", "public AggregationInfo(StreamInput in) throws IOException {\n aggs = new TreeMap<>();\n final int size = in.readVInt();\n for (int i = 0; i < size; i++) {\n String key = in.readString();\n final int keys = in.readVInt();\n final Set<String> types = new TreeSet<>();\n for (int j = 0; j < keys; j++) {\n types.add(in.readString());\n }\n aggs.put(key, types);\n }\n }", "private Stream<ResourceLocation> getPoolAbilityStream() {\n return getKnownStream()\n .filter(info -> info.getAbility().getType().isPoolAbility())\n .map(MKAbilityInfo::getId);\n }" ]
[ "0.5219212", "0.5001496", "0.4950489", "0.48561096", "0.47986516", "0.47567493", "0.47258073", "0.4717442", "0.4707205", "0.4653357", "0.45850366", "0.4558051", "0.45407683", "0.45052585", "0.44862142", "0.44404337", "0.4439315", "0.4436307", "0.4382834", "0.4381761", "0.43807077", "0.4377524", "0.43720767", "0.43696967", "0.4359728", "0.43372574", "0.43342918", "0.43322474", "0.43228492", "0.43202993", "0.43066317", "0.42962235", "0.42927083", "0.42911375", "0.42879897", "0.42827857", "0.42783812", "0.42747667", "0.4268173", "0.42603973", "0.42578927", "0.42572883", "0.4255879", "0.4247469", "0.42298773", "0.42271078", "0.42189485", "0.42189285", "0.4209869", "0.42085603", "0.4202431", "0.42022586", "0.41922566", "0.41918597", "0.41917276", "0.41915658", "0.41897997", "0.41741255", "0.41675738", "0.41667366", "0.41659024", "0.41624314", "0.41624314", "0.41624314", "0.41604218", "0.41600946", "0.4159421", "0.415635", "0.41544652", "0.41530567", "0.41528443", "0.41484627", "0.4146679", "0.4145914", "0.41450667", "0.4144488", "0.41433668", "0.41328415", "0.41306564", "0.41250995", "0.4117378", "0.4112408", "0.41107613", "0.41050678", "0.41015902", "0.4098091", "0.40945578", "0.40899667", "0.4087617", "0.4085508", "0.40811577", "0.4079424", "0.40751326", "0.40748593", "0.40720826", "0.4066232", "0.40598065", "0.40480176", "0.40460515", "0.40455356" ]
0.661199
0
Returns the namespace mappings such as retrieved during parsing.
public Map<String,String> getNamespaces() { return namespaces; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Map getNamespaceMap() {\n/* 130 */ return this.nsMap;\n/* */ }", "public java.util.Map<String,String> getNamespaces() {\n return (_namespaces);\n }", "public Map<Integer, String> getAllBindingNamespaces()\n {\n Map<Integer, String> allNs = new HashMap<Integer, String>();\n \n for (BindingExpression be : bindingExpressions)\n {\n if (be.getNamespaces() != null)\n {\n allNs.putAll(be.getNamespaces());\n }\n }\n \n return allNs;\n }", "public ImmutableMap<String, String> getAliasToNamespaceMap() {\n return aliasToNamespaceMap;\n }", "Namespaces namespaces();", "private List<Namespace> namespaces() {\n\t\tList<Namespace> namespaces = new ArrayList<>();\n\t\tfor (OwnerTraceData ancestor = data; ancestor != null; ancestor = ancestor.parent) {\n\t\t\tNamespace ns = new Namespace();\n\t\t\tns.data = ancestor;\n\t\t\tnamespaces.add(ns);\n\t\t}\n\t\tCollections.reverse(namespaces);\n\t\tObject2IntMap<String> numbering = new Object2IntOpenHashMap<>(namespaces.size());\n\t\tfor (Namespace ns : namespaces) {\n\t\t\t/*\n\t\t\t * Make a copy since the alias could be changed in another thread (unlikely but possible).\n\t\t\t */\n\t\t\tString alias = ns.data.alias;\n\t\t\tif (!numbering.containsKey(alias)) {\n\t\t\t\tns.name = alias;\n\t\t\t\tnumbering.put(alias, 2);\n\t\t\t} else {\n\t\t\t\tint number = numbering.getInt(alias);\n\t\t\t\tns.name = alias + number;\n\t\t\t\tnumbering.put(alias, number + 1);\n\t\t\t}\n\t\t}\n\t\treturn namespaces;\n\t}", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\n java.util.Map returnMap = new java.util.HashMap();\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n while (namespaceIterator.hasNext()) {\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\n }\n return returnMap;\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env) {\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(), ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }", "public List<MXMLNamespaceMapping> getCompilerNamespacesManifestMappings(Configuration config)\n {\n \treturn config.getCompilerNamespacesManifestMappings();\n }", "private java.util.Map getEnvelopeNamespaces(org.apache.axiom.soap.SOAPEnvelope env){\r\n java.util.Map returnMap = new java.util.HashMap();\r\n java.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\r\n while (namespaceIterator.hasNext()) {\r\n org.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator.next();\r\n returnMap.put(ns.getPrefix(),ns.getNamespaceURI());\r\n }\r\n return returnMap;\r\n }", "private java.util.Map getEnvelopeNamespaces(\n\t\t\torg.apache.axiom.soap.SOAPEnvelope env) {\n\t\tjava.util.Map returnMap = new java.util.HashMap();\n\t\tjava.util.Iterator namespaceIterator = env.getAllDeclaredNamespaces();\n\t\twhile (namespaceIterator.hasNext()) {\n\t\t\torg.apache.axiom.om.OMNamespace ns = (org.apache.axiom.om.OMNamespace) namespaceIterator\n\t\t\t\t\t.next();\n\t\t\treturnMap.put(ns.getPrefix(), ns.getNamespaceURI());\n\t\t}\n\t\treturn returnMap;\n\t}", "public ArrayList getNamespaces() {\n return m_namespaces;\n }", "public final String[] getNamespaces() {\n return m_uris;\n }", "Collection<String> getMappingPrefixes();", "@Override\r\n\tpublic List<String> getXMLNamespaces() {\n\t\treturn null;\r\n\t}", "String getNamespace();", "String getNamespace();", "String getNamespace();", "@DISPID(1091) //= 0x443. The runtime will prefer the VTID if present\n @VTID(11)\n @ReturnValue(type=NativeType.Dispatch)\n com4j.Com4jObject namespaces();", "public String getAllBindingNamespaceDeclarations() \t \n { \t \n return BindingExpression.getNamespaceDeclarations(getAllBindingNamespaces()); \t \n }", "public String getNamespace();", "java.lang.String getNamespace();", "public NsNamespaces() {\n this(DSL.name(\"ns_namespaces\"), null);\n }", "public BidiMap<String, String> getPrefixes() {\n\t\tBidiMap<String, String> bidiMap = new DualHashBidiMap<String, String>(model.getNsPrefixMap());\n\t\treturn bidiMap;\n\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}", "public Map<String, String> getPrefixMap() {\n\t\treturn Collections.unmodifiableMap(prefixToURIMap);\n\t}", "Map<String, FileModule> getSymbolMap() {\n Map<String, FileModule> out = new LinkedHashMap<>();\n for (FileModule module : fileToModule.values()) {\n for (String symbol : module.importedNamespacesToSymbols.keySet()) {\n out.put(symbol, module);\n }\n }\n return out;\n }", "public String getNamespace() {\n\t\treturn EPPNameVerificationMapFactory.NS;\n\t}", "String getNamespacePrefix(Object ns);", "private String getNamespace(String qname) {\n StringTokenizer tok = new StringTokenizer(qname, \":\");\n String prefix;\n\n if (tok.countTokens() == 1) {\n return \"\";\n }\n prefix = tok.nextToken();\n\n NamedNodeMap map = mDoc.getDocumentElement().getAttributes();\n for (int j = 0; j < map.getLength(); j++) {\n Node n = map.item(j);\n\n if (n.getLocalName().trim().equals(prefix.trim())) {\n return n.getNodeValue();\n }\n }\n\n return \"\";\n }", "public String getNamespace()\n/* */ {\n/* 357 */ return this.namespace;\n/* */ }", "int getNamespaceUri();", "@Override\n protected void initializeNamespaces() {\n\n cds.nsUriToPrefixMap.put(XMI_NS_URI, XMI_NS_PREFIX);\n\n // Add any namespace prefix mappings used by out of type system data.\n // Need to do this before the in-typesystem namespaces so that the prefix\n // used here are reserved and won't be reused for any in-typesystem namespaces.\n\n if (cds.sharedData != null) {\n Iterator<OotsElementData> ootsIter = cds.sharedData.getOutOfTypeSystemElements().iterator();\n while (ootsIter.hasNext()) {\n OotsElementData oed = ootsIter.next();\n String nsUri = oed.elementName.nsUri; // http://... etc\n String qname = oed.elementName.qName; // xxx:yyy\n String localName = oed.elementName.localName; // yyy\n String prefix = qname.substring(0, qname.indexOf(localName) - 1); // xxx\n cds.nsUriToPrefixMap.put(nsUri, prefix);\n cds.nsPrefixesUsed.add(prefix);\n }\n }\n\n /*\n * Convert x.y.z.TypeName to prefix-uri, TypeName, and ns:TypeName\n */\n Iterator<Type> it = cds.tsi.getTypeIterator();\n while (it.hasNext()) {\n TypeImpl t = (TypeImpl) it.next();\n // this also populates the nsUriToPrefix map\n cds.typeCode2namespaceNames[t.getCode()] = uimaTypeName2XmiElementName(t.getName());\n }\n }", "public String getNamespace()\n {\n return NAMESPACE;\n }", "public XMLNamespaces() {\n this(libsbmlJNI.new_XMLNamespaces__SWIG_0(), true);\n }", "@Override\r\n\tpublic String[] getNamespacePrefixes() throws RepositoryException {\n\t\treturn null;\r\n\t}", "protected static Map<String, String> readKVPNamespaces(String argValue) throws SOSException\n {\n //if (!NS_DECL_PATTERN.matcher(argValue).matches())\n // throw new SOSException(SOSException.invalid_param_code, \"namespaces\", null, null);\n \n Map<String, String> namespaceMap = new HashMap<String, String>();\n String[] nsList = NS_DECL_SPLIT.split(argValue);\n for (String ns: nsList)\n {\n if (ns.length() > 0)\n {\n String[] nsElts = ns.split(\",\");\n namespaceMap.put(nsElts[0], nsElts[1]);\n }\n }\n \n return namespaceMap;\n }", "public String getNamespace() {\n return namespace;\n }", "@Override\n\tpublic Set<String> getNamespaces(ResourcePackType p_195759_1_) {\n\t\treturn null;\n\t}", "public void genLoadNamespaces(MethodBuilder mb) {\n \n // first create the array of namespace indexes\n int count = m_namespaces == null ? 0 : m_namespaces.size();\n mb.appendLoadConstant(count);\n mb.appendCreateArray(\"int\");\n genFillNamespaceIndexes(m_namespaces, mb);\n \n // next create the array of prefixes\n mb.appendLoadConstant(count);\n mb.appendCreateArray(\"java.lang.String\");\n genFillNamespacePrefixes(m_namespaces, mb);\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "public String getNamespace() {\n return namespace;\n }", "@Override\n\tprotected String getNamespace() {\n\t\treturn NAMESPACE;\n\t}", "String getReferenceNamespace();", "@Nullable public String getNamespace() {\n return namespace;\n }", "@Override\n\tpublic List<String> getMappings() {\n\t\treturn mappings;\n\t}", "public final String[][] getExtensionNamespaces() {\n return m_extensionUris;\n }", "public Set<String> getImportedNamespaces() {\n Set<EndpointInterface> endpointInterfaces = getEndpointInterfaces();\n if ((endpointInterfaces == null) || (endpointInterfaces.size() == 0)) {\n throw new IllegalStateException(\"WSDL for \" + getTargetNamespace() + \" has no endpoint interfaces!\");\n }\n\n HashSet<String> importedNamespaces = new HashSet<String>();\n //always import the list of known namespaces.\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/http/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/mime/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/wsdl/soap12/\");\n importedNamespaces.add(\"http://schemas.xmlsoap.org/soap/encoding/\");\n importedNamespaces.add(\"http://www.w3.org/2001/XMLSchema\");\n\n for (EndpointInterface endpointInterface : endpointInterfaces) {\n importedNamespaces.addAll(endpointInterface.getReferencedNamespaces());\n }\n\n if (isInlineSchema()) {\n SchemaInfo associatedSchema = getAssociatedSchema();\n if (associatedSchema != null) {\n importedNamespaces.addAll(associatedSchema.getReferencedNamespaces());\n }\n }\n\n return importedNamespaces;\n }", "protected MapNamespaceContext createNamespaceContext() {\r\n // create the xpath with fedora namespaces built in\r\n MapNamespaceContext nsc = new MapNamespaceContext();\r\n nsc.setNamespace(\"fedora-types\", \"http://www.fedora.info/definitions/1/0/types/\");\r\n nsc.setNamespace(\"sparql\", \"http://www.w3.org/2001/sw/DataAccess/rf1/result\");\r\n nsc.setNamespace(\"foxml\", \"info:fedora/fedora-system:def/foxml#\");\r\n nsc.setNamespace(\"rdf\", \"http://www.w3.org/1999/02/22-rdf-syntax-ns#\");\r\n nsc.setNamespace(\"fedora\", \"info:fedora/fedora-system:def/relations-external#\");\r\n nsc.setNamespace(\"rdfs\", \"http://www.w3.org/2000/01/rdf-schema#\");\r\n nsc.setNamespace(\"fedora-model\", \"info:fedora/fedora-system:def/model#\");\r\n nsc.setNamespace(\"oai\", \"http://www.openarchives.org/OAI/2.0/\");\r\n nsc.setNamespace(\"oai_dc\", \"http://www.openarchives.org/OAI/2.0/oai_dc/\", \"http://www.openarchives.org/OAI/2.0/oai_dc.xsd\");\r\n nsc.setNamespace(\"dc\", \"http://purl.org/dc/elements/1.1/\"); \r\n nsc.setNamespace(\"xsi\", \"http://www.w3.org/2001/XMLSchema-instance\");\r\n nsc.setNamespace(\"fedora-management\", \"http://www.fedora.info/definitions/1/0/management/\", \"http://www.fedora.info/definitions/1/0/datastreamHistory.xsd\");\r\n return nsc;\r\n }", "@Override\n\tpublic String getNamespace() {\n\t\treturn nameSpace;\n\t}", "@Updatable\n public String getNamespace() {\n return namespace;\n }", "String getImportedNamespace();", "public static Map<String, Namespace> getImportedNamespaces(Module module) {\n\t\tNamespace namespace = context.getNamespaceByUri(module.getNamespace());\n\t\t//TODO do we need to enforce this to be notNull ?\n\t\tif (namespace == null)\n\t\t\treturn new HashMap<String, Namespace>();\n\t\tMap<String, Namespace> importedNamespaces = NamespaceUtil.getImportedNamespaces(namespace);\n\t\tif (importedNamespaces.size() == 0) {\n\t\t\t//otherwise try the project namespace\n\t\t\tProject project = context.getProject();\n\t\t\tnamespace = context.getNamespaceByUri(project.getNamespace());\n\t\t\timportedNamespaces = NamespaceUtil.getImportedNamespaces(namespace);\n\t\t}\n\t\treturn importedNamespaces;\n\t}", "public AVM2Namespace getAVM2InternalNamespace();", "public static Set<Map.Entry<String, String>> getUndefinedNamespaces(final Element element) {\n\t\tfinal Set<Map.Entry<String, String>> prefixNamespacePairs = new HashSet<>(); //create a new set in which to store name/value pairs of prefixes and namespaces\n\t\tif(!isNamespaceDefined(element, element.getPrefix(), element.getNamespaceURI())) { //if the element doesn't have the needed declarations\n\t\t\tprefixNamespacePairs.add(new AbstractMap.SimpleImmutableEntry<>(element.getPrefix(), element.getNamespaceURI())); //add this prefix and namespace to the list of namespaces needing to be declared\n\t\t}\n\t\tfinal NamedNodeMap attributeNamedNodeMap = element.getAttributes(); //get the map of attributes\n\t\tfinal int attributeCount = attributeNamedNodeMap.getLength(); //find out how many attributes there are\n\t\tfor(int i = 0; i < attributeCount; ++i) { //look at each attribute\n\t\t\tfinal Attr attribute = (Attr)attributeNamedNodeMap.item(i); //get this attribute\n\t\t\t//as attribute namespaces are not inherited, don't check namespace\n\t\t\t// declarations for attributes if they have neither prefix nor\n\t\t\t// namespace declared\n\t\t\tif(attribute.getPrefix() != null || attribute.getNamespaceURI() != null) {\n\t\t\t\tif(!isNamespaceDefined(element, attribute.getPrefix(), attribute.getNamespaceURI())) //if the attribute doesn't have the needed declarations\n\t\t\t\t\tprefixNamespacePairs.add(new AbstractMap.SimpleImmutableEntry<>(attribute.getPrefix(), attribute.getNamespaceURI())); //add this prefix and namespace to the set of namespaces needing to be declared\n\t\t\t}\n\t\t}\n\t\treturn prefixNamespacePairs; //return the prefixes and namespaces we gathered\n\t}", "String getNamespaceStringValue(Object ns);", "Namespace getGpmlNamespace();", "private void handleNamespaceDeclaration() throws IOException {\r\n if (this.tempMapping != null) {\r\n PrefixMapping pm = null;\r\n for (int i = 0; i < tempMapping.size(); i++) {\r\n pm = (PrefixMapping)tempMapping.get(i);\r\n this.writer.write(\" xmlns\");\r\n // specify a prefix if different from \"\"\r\n if (!\"\".equals(pm.prefix)) {\r\n this.writer.write(':');\r\n this.writer.write(pm.prefix);\r\n }\r\n this.writer.write(\"=\\\"\");\r\n this.writer.write(pm.uri);\r\n this.writer.write(\"\\\"\");\r\n }\r\n this.tempMapping = null;\r\n }\r\n }", "private static String getNamespaceMappings(String atHomeFullPath) {\n\t\tStringBuilder sb = new StringBuilder(512);\n\t\tFile atHome = new File(atHomeFullPath);\n\t\tString dirs[] = atHome.list();\n\t\tfor( String dir : dirs) {\n\t\t\tFile entry = new File(atHome, dir);\n\t\t\tif (entry.isDirectory() && !entry.isHidden())\n\t\t\t\tsb.append(dir).append('=').append(entry.toString()).append(':');\n\t\t}\n\t\tsb.append(\"tmp=\"+ Constants._ENV_AT_BASE_ + Constants._AT_TEMP_FILES_PATH);\n\t\treturn sb.toString();\n\t}", "public String getNamespace() {\n return this.namespace;\n }", "Rule ScopedNamespace() {\n return Sequence(\n \"namespace \",\n ScopeAndId());\n }", "private String getNamespace(Package pkg) {\n/* */ String nsUri;\n/* 223 */ if (pkg == null) return \"\";\n/* */ \n/* */ \n/* 226 */ XmlNamespace ns = pkg.<XmlNamespace>getAnnotation(XmlNamespace.class);\n/* 227 */ if (ns != null) {\n/* 228 */ nsUri = ns.value();\n/* */ } else {\n/* 230 */ nsUri = \"\";\n/* 231 */ } return nsUri;\n/* */ }", "public Optional<String> namespace() {\n return Codegen.stringProp(\"namespace\").config(config).get();\n }", "public String getFeedNamespacePrefix(String namespace);", "public org.LexGrid.naming.Mappings getMappings() {\n return mappings;\n }", "String getTargetNamespace();", "public List<Namespace> getNamespaces(String string)\n throws UnknownLanguageException, ClassDataLoaderConfigurationException {\n return new ArrayList<Namespace>();\n }", "public ImmutableList<String> getRequiredCssNamespaces() {\n return requiredCssNamespaces;\n }", "public String getNamespace() {\n return getTypeDefinition().getNamespace();\n }", "@Override\n\tpublic Namespace getNamespace(Address addr) {\n\t\tif (addr.isMemoryAddress()) {\n\t\t\tfor (TraceSymbol sym : symbolManager.labels().getAt(program.snap, null, addr, true)) {\n\t\t\t\tif (sym instanceof TraceNamespaceSymbol /* Function */) {\n\t\t\t\t\treturn (TraceNamespaceSymbol) sym;\n\t\t\t\t}\n\t\t\t\treturn sym.getParentNamespace();\n\t\t\t}\n\t\t}\n\t\treturn symbolManager.getGlobalNamespace();\n\t}", "public ArrayList<ContentName> getRegisteredPrefixes() {\n ArrayList<ContentName> prefixes = new ArrayList<ContentName>();\n synchronized (_registeredPrefixes) {\n for (ContentName name : _registeredPrefixes.keySet()) {\n prefixes.add(name);\n }\n }\n return prefixes;\n }", "public String getNamespaceName() {\n return namespaceName;\n }", "public void setNamespaces(java.util.Map<String,String> namespaces) {\n _namespaces = namespaces;\n }", "java.util.List<KeySpace>\n getKeyspacesList();", "public int[] openNamespaces(int[] nums, String[] prefs) throws IOException {\n \n // find the number of namespaces actually being declared\n int count = 0;\n loop: for (int i = 0; i < nums.length; i++) {\n \n // set prefix only if different and not changing prefix to default\n String newpref = prefs[i];\n String oldpref = getNamespacePrefix(nums[i]);\n boolean use = false;\n if (!newpref.equals(oldpref) &&\n (!\"\".equals(newpref) || oldpref == null)) {\n use = true;\n for (int j = 0; j < i; j++) {\n if (nums[i] == nums[j]) {\n if (\"\".equals(newpref)) {\n \n // ignore replacing prefix with default in same call\n use = false;\n break;\n \n } else {\n \n // multiple prefixes for namespace, keep only last\n nums[j] = -1;\n continue loop;\n \n }\n }\n }\n }\n if (use) {\n count++;\n } else {\n nums[i] = -1;\n }\n }\n \n // check if there's actually any change\n int[] deltas = EMPTY_INT_ARRAY;\n if (count > 0) {\n \n // get the set of namespace indexes that are changing\n String[] priors = new String[count];\n if (count == nums.length) {\n \n // replace the full set, tracking the prior values\n deltas = nums;\n if (m_translateTable != null) {\n for (int i = 0; i < deltas.length; i++) {\n deltas[i] = m_translateTable[deltas[i]];\n }\n }\n for (int i = 0; i < count; i++) {\n int slot = deltas[i];\n priors[i] = getNamespacePrefix(slot);\n setNamespacePrefix(slot, prefs[i]);\n defineNamespace(slot, prefs[i]);\n }\n \n } else {\n \n // replace only changed ones, tracking both indexes and priors\n int fill = 0;\n deltas = new int[count];\n for (int i = 0; i < nums.length; i++) {\n int slot = nums[i];\n if (slot >= 0) {\n int xlate = translateNamespace(slot);\n deltas[fill] = xlate;\n priors[fill++] = getNamespacePrefix(slot);\n setNamespacePrefix(xlate, prefs[i]);\n defineNamespace(xlate, prefs[i]);\n }\n }\n }\n \n // set up for undeclaring namespaces on close of element\n m_namespaceStack.push\n (new DeclarationInfo(m_nestingDepth, deltas, priors));\n m_namespaceDepth = m_nestingDepth;\n \n }\n return deltas;\n }", "private void genFillNamespacePrefixes(ArrayList nss, MethodBuilder mb) {\n if (nss != null) {\n for (int i = 0; i < nss.size(); i++) {\n mb.appendDUP();\n mb.appendLoadConstant(i);\n String prefix = ((NamespaceDefinition)nss.get(i)).getPrefix();\n if (prefix == null) {\n prefix = \"\";\n }\n mb.appendLoadConstant(prefix);\n mb.appendAASTORE();\n }\n }\n }", "protected final Namespace getNamespace()\n {\n return m_namespace;\n }", "public String[][] getKnownPrefixes() {\n return defaultPrefixes;\n }", "public String getNameSpace() {\n return this.namespace;\n }", "org.apache.xmlbeans.XmlNMTOKEN xgetNamespace();", "public List<SynonymMap> getSynonymMaps() {\n return this.synonymMaps;\n }", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.423 -0500\", hash_original_method = \"D02303EBFA8DB4A97AF291339C2FB52B\", hash_generated_method = \"D02303EBFA8DB4A97AF291339C2FB52B\")\n \nEnumeration getPrefixes ()\n {\n if (prefixTable == null) {\n return EMPTY_ENUMERATION;\n } else {\n return prefixTable.keys();\n }\n }", "Rule XsdNamespace() {\n return Sequence(\n \"xsd_namespace\",\n Literal(),\n actions.pushXsdNamespaceNode());\n }", "Rule Namespace() {\n // No direct effect on value stack\n return FirstOf(\n ScopedNamespace(),\n PhpNamespace(),\n XsdNamespace());\n }", "public AVM2Namespace getAVM2PrivateNamespace();", "public SynonymMapsImpl synonymMaps() {\n return this.synonymMaps;\n }", "public YANG_NameSpace getNameSpace() {\n\t\treturn namespace;\n\t}", "@DSComment(\"Package priviledge\")\n @DSBan(DSCat.DEFAULT_MODIFIER)\n @DSSource({DSSourceKind.SENSITIVE_UNCATEGORIZED})\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.421 -0500\", hash_original_method = \"B116CF358C1D0DA8CF46DFF106939FC0\", hash_generated_method = \"B116CF358C1D0DA8CF46DFF106939FC0\")\n \nEnumeration getDeclaredPrefixes() {\n return (declarations == null) ? EMPTY_ENUMERATION : Collections.enumeration(declarations);\n }", "public synchronized static PrefixMapping get() {\n if (prefixes == null) {\n if (Registry.get() != null) {\n prefixes = loadPrefixes();\n } else {\n // Test situation\n prefixes = defaultPrefixes;\n }\n }\n return prefixes;\n }", "Map<Class<?>, Object> yangAugmentedInfoMap();" ]
[ "0.79569095", "0.76673186", "0.73380196", "0.712745", "0.698386", "0.6982168", "0.69658655", "0.69658655", "0.69658655", "0.69658655", "0.6943951", "0.69292355", "0.69235533", "0.69170624", "0.69140404", "0.68532586", "0.6846072", "0.6572876", "0.6499687", "0.63240284", "0.6305619", "0.6305619", "0.6305619", "0.6263038", "0.62242776", "0.6218553", "0.6190977", "0.6182753", "0.6087503", "0.6077577", "0.6077577", "0.6077577", "0.6077577", "0.6077577", "0.6045245", "0.60244304", "0.59865737", "0.596567", "0.5955489", "0.5952765", "0.592439", "0.5919603", "0.58701193", "0.5856015", "0.5838279", "0.578808", "0.5747358", "0.5733003", "0.5728868", "0.57026327", "0.57026327", "0.57026327", "0.56785196", "0.567716", "0.56629133", "0.56379795", "0.56362784", "0.5634523", "0.563308", "0.56253874", "0.56151605", "0.5608957", "0.5588288", "0.5578999", "0.55576706", "0.554485", "0.553089", "0.5524892", "0.55133575", "0.55080557", "0.550137", "0.5500764", "0.5500456", "0.54621357", "0.54432935", "0.5439369", "0.54290885", "0.5426385", "0.54150563", "0.5413376", "0.5395975", "0.5379036", "0.536945", "0.53689766", "0.53633606", "0.53483164", "0.53358734", "0.5335312", "0.531978", "0.5311629", "0.5301567", "0.53009516", "0.5280133", "0.52575946", "0.5254074", "0.52306813", "0.51618266", "0.51605195", "0.51536", "0.515137" ]
0.7690272
1
Editors are placed for free.
private void defineLayout(IPageLayout layout) { String editorArea = layout.getEditorArea(); IFolderLayout folder; // Place remote system view to left of editor area. folder = layout.createFolder(NAV_FOLDER_ID, IPageLayout.LEFT, 0.2F, editorArea); folder.addView(getRemoveSystemsViewID()); // Place properties view below remote system view. folder = layout.createFolder(PROPS_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, NAV_FOLDER_ID); folder.addView("org.eclipse.ui.views.PropertySheet"); //$NON-NLS-1$ // Place job log explorer view below editor area. folder = layout.createFolder(JOB_LOG_EXPLORER_FOLDER_ID, IPageLayout.BOTTOM, 0.0F, editorArea); folder.addView(JobLogExplorerView.ID); // Place command log view below editor area. folder = layout.createFolder(CMDLOG_FOLDER_ID, IPageLayout.BOTTOM, 0.75F, JobLogExplorerView.ID); folder.addView(getCommandLogViewID()); layout.addShowViewShortcut(getRemoveSystemsViewID()); layout.addShowViewShortcut("org.eclipse.ui.views.PropertySheet"); //$NON-NLS-1$ layout.addShowViewShortcut(getCommandLogViewID()); layout.addPerspectiveShortcut(ID); layout.setEditorAreaVisible(false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initializeEditors() {\n\t}", "public void createFieldEditors()\n\t{\n\t}", "public void createFieldEditors() {\n\t\t\n\t\taddField(new IntegerFieldEditor(PreferenceConstants.SPACES_PER_TAB, \"Spaces per tab (Re-open editor to take effect.)\", getFieldEditorParent(), 2 ) );\n\t\taddField(new IntegerFieldEditor(PreferenceConstants.SECONDS_TO_REEVALUATE, \"Seconds between syntax reevaluation\", getFieldEditorParent(), 3 ) );\n\t\t\n\t\taddField(new IntegerFieldEditor(PreferenceConstants.OUTLINE_SCALAR_MAX_LENGTH, \"Maximum display length of scalar\", getFieldEditorParent(), 4 ) );\n\t\taddField(new BooleanFieldEditor(PreferenceConstants.OUTLINE_SHOW_TAGS, \"Show tags in outline view\", getFieldEditorParent() ) );\n\n addField(new BooleanFieldEditor(PreferenceConstants.SYMFONY_COMPATIBILITY_MODE, \"Symfony compatibility mode\", getFieldEditorParent() ) );\t\t\n\t\n addField(new BooleanFieldEditor(PreferenceConstants.AUTO_EXPAND_OUTLINE, \"Expand outline on open\", getFieldEditorParent() ) );\n \n String[][] validationValues = new String[][] {\n \t\t{\"Error\", PreferenceConstants.SYNTAX_VALIDATION_ERROR}, \n \t\t{\"Warning\", PreferenceConstants.SYNTAX_VALIDATION_WARNING}, \n \t\t{\"Ignore\", PreferenceConstants.SYNTAX_VALIDATION_IGNORE}\n };\n addField(new ComboFieldEditor(PreferenceConstants.VALIDATION, \"Syntax validation severity\", validationValues, getFieldEditorParent()));\n\t\n\t}", "protected abstract void createFieldEditors();", "@Override\r\n\tpublic void edit() {\n\t\t\r\n\t}", "public static void designTextEditor() {\n\t\t\n\t}", "private void edit() {\n\n\t}", "private void makeModifiable() {\n final TableEditor editor = new TableEditor(providers);\n editor.horizontalAlignment = SWT.LEFT;\n editor.grabHorizontal = true;\n editor.minimumWidth = 50;\n\n // editing the fourth column\n final int editable = 4;\n\n providers.addSelectionListener(new SelectionListener() {\n \n @Override\n public void widgetSelected(SelectionEvent exc) {\n\n TableItem item = (TableItem) exc.item;\n\n //Column should only be editable if arguments are allowed for the provider.\n if (item.getText(3).toString().equals(\"false\") || item == null) {\n return;\n }\n\n Control oldEditor = editor.getEditor();\n\n if (oldEditor != null) {\n oldEditor.dispose();\n }\n\n \n Text newEditor = new Text(providers, SWT.NONE);\n newEditor.setText(item.getText(editable));\n newEditor.addModifyListener(new ModifyListener() {\n\n \n @Override\n public void modifyText(ModifyEvent exc) {\n Text text = (Text) editor.getEditor();\n editor.getItem().setText(editable, text.getText());\n }\n });\n \n newEditor.selectAll();\n newEditor.setFocus();\n editor.setEditor(newEditor, item, editable); \n }\n\n @Override\n public void widgetDefaultSelected(SelectionEvent exc) {\n // TODO Auto-generated method stub\n }\n });\n \n for (int i = 0; i < TITLES.length; i++) {\n providers.getColumn(i).pack();\n }\n }", "public void createFieldEditors() {\t\t\n\t\t\n//\t\taddField(new DirectoryFieldEditor(PreferenceConstants.P_PATH, \n//\t\t\t\tMessages.UMAPPreferencePage_1, getFieldEditorParent()));\n\t\tgroup = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n\t\tgroup.setText(Messages.UMAPPreferencesHeader);\n\t\tgroup.setLayout(new GridLayout());\n\t\tGridData gd = new GridData(GridData.FILL_HORIZONTAL);\n\t\tgd.horizontalSpan = 1;\n\t\tgroup.setLayoutData(gd);\t\t\n\t\t\n//\t\tgroup2 = new Group(getFieldEditorParent(), SWT.SHADOW_ETCHED_IN);\n//\t\tgroup2.setText(Messages.UmapStringButtonFieldEditor_0);\n//\t\tgd.horizontalSpan = 2;\n//\t\tgroup2.setLayoutData(gd);\n//\t\tgroup2.setLayout(new GridLayout());\n\t\t\n\t\t\n\t\tvalidation = new BooleanFieldEditor( PreferenceConstants.P_BOOLEAN,\tMessages.UMAPPreferencePage_2, group);\n\t\taddField( validation );\n\n\t\tclassAbreviation = new StringFieldEditor(PreferenceConstants.P_CLASS_NAME, Messages.UMAPPreferencePage_3, group);\n\t\tclassAbreviation.setEmptyStringAllowed(false);\n\t\tclassAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\tintfAbreviation = new StringFieldEditor(PreferenceConstants.P_INTF_NAME, Messages.UMAPPreferencePage_4, group);\n\t\tintfAbreviation.setEmptyStringAllowed(false);\n\t\tintfAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\texcAbreviation = new StringFieldEditor(PreferenceConstants.P_EXCP_NAME, Messages.UMAPPreferencePage_5, group);\n\t\texcAbreviation.setEmptyStringAllowed(false);\n\t\texcAbreviation.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(PreferenceConstants.P_BOOLEAN), group);\n\t\t\n\t\t\n//\t\tprojectAbbreviation = new StringFieldEditor(PreferenceConstants.P_PROJ_NAME, Messages.UMAPPreferencePage_6, group);\n//\t\tprojectAbbreviation.setEmptyStringAllowed(true);\n\n//\t\tStringFieldEditor name = new StringFieldEditor(PreferenceConstants.P_USER_NAME, Messages.UmapStringButtonFieldEditor_2, group2);\n//\t\t\n//\t\tStringFieldEditor pass = new StringFieldEditor(PreferenceConstants.P_PWD, Messages.UmapStringButtonFieldEditor_3, group2);\n\t\t\n//\t\tURIStringButtonFieldEditor button = new URIStringButtonFieldEditor(PreferenceConstants.P_URI, Messages.UmapStringButtonFieldEditor_1, group2);\n\t\t\n//\t\taddField(name);\n//\t\taddField(pass);\n//\t\taddField(button);\n\t\t\n\t\taddField( classAbreviation );\n\t\taddField( intfAbreviation );\n\t\taddField( excAbreviation );\n//\t\taddField( projectAbbreviation );\t\t\n\t}", "public void createFieldEditors() {\n\t\taddField(\n\t\t\tnew BooleanFieldEditor(\n\t\t\t\tPreferenceConstants.PRETTY_CML,\n\t\t\t\t\"&Pretty print CML\",\n\t\t\t\tgetFieldEditorParent()));\n\t\tbioclipseLogging = new BooleanFieldEditor(\n\t\t\tPreferenceConstants.BIOCLIPSE_LOGGING,\n\t\t\t\"&Use Bioclipse Logging\",\n\t\t\tgetFieldEditorParent());\n\t\taddField(bioclipseLogging);\n\t}", "@Override\n public void checkEditing() {\n }", "public abstract void addEditorForm();", "public void createFieldEditors() {\n\t\t\n\t\tList<String> listOfValues = PreferenceOptions.GetTreeEditorFeatureOptions();\n\t\tint count = listOfValues.size();\n\t\tpreviously = Activator.getDefault().getPreferenceStore().getString(PreferenceOptions.FeatureEditor_CHOICE);\t\t\n\t\t\n\t\tString[][] labelAndvalues = new String[count][2];\n\t\tfor (int i = 0; i < count; i++)\n\t\t\tfor (int j = 0; j < 2; j++) \n\t\t\t\tlabelAndvalues[i][j] = listOfValues.get(i);\t\t\t\n\t\t\n\t\taddField(new RadioGroupFieldEditor(\n\t\t\t\tPreferenceOptions.FeatureEditor_CHOICE,\n\t\t\t\t\"Tree Editor Feature Wizard\",\n\t\t\t\t1,\n\t\t\t\tlabelAndvalues, \n\t\t\t\tgetFieldEditorParent()));\t\n\n\t\t/*Select the Engine to execute constraint*/\n\t\t\n\t\tList<String> listOfEngines = PreferenceOptions.getEngineOptions();\n\t\tint countEngines = listOfEngines.size();\t\t\n\t\t\n\t\tif (listOfEngines.size() != 0) {\n\t\t\t\n\t\t\tpreviouslyEngine = Activator.getDefault().getPreferenceStore().getString(PreferenceOptions.ENGINE_CHOICE);\n\t\t\t\n\t\t\tString[][] labelAndvaluesEngine = new String[countEngines][2];\n\t\t\tfor (int i = 0; i < countEngines; i++)\n\t\t\t\tfor (int j = 0; j < 2; j++) \n\t\t\t\t\tlabelAndvaluesEngine[i][j] = listOfEngines.get(i);\n\t\t\t\t\n\t\t\taddField(new RadioGroupFieldEditor(\n\t\t\t\t\tPreferenceOptions.ENGINE_CHOICE,\n\t\t\t\t\t\"Engine for the execution of constraints\",\n\t\t\t\t\t1,\n\t\t\t\t\tlabelAndvaluesEngine, \n\t\t\t\t\tgetFieldEditorParent()));\t\t\t\n\t\t}\t\n\t}", "@Override\n public void createFieldEditors() {\n\n useForSysHCSteepestEditor = new BooleanFieldEditor(Preferences.P_USE4SYS_HILL_CLIMBING_STEEPEST,\n \"Use &Hill Climbing - Steepest Asc./Descent\", getFieldEditorParent());\n addField(useForSysHCSteepestEditor);\n\n useForSysHCFirstChoiceEditor = new BooleanFieldEditor(Preferences.P_USE4SYS_HILL_CLIMBING_FIRST_CHOICE,\n \"Use Hill Climbing - &First Choice\", getFieldEditorParent());\n addField(useForSysHCFirstChoiceEditor);\n\n useForSysHCTabuSearchEditor = new BooleanFieldEditor(Preferences.P_USE4SYS_TABU_SEARCH,\n \"Use &Tabu Search w Static Tenure\", getFieldEditorParent());\n addField(useForSysHCTabuSearchEditor);\n\n useForSysHCTabuSearchDynEditor = new BooleanFieldEditor(Preferences.P_USE4SYS_TABU_SEARCH_DYNAMIC,\n \"Use Tabu Search w &Dynamic Tenure\", getFieldEditorParent());\n addField(useForSysHCTabuSearchDynEditor);\n\n useForSysHCSimAnnealingEditor = new BooleanFieldEditor(Preferences.P_USE4SYS_SIMULATED_ANNEALING,\n \"Use &Simulated Annealing\", getFieldEditorParent());\n addField(useForSysHCSimAnnealingEditor);\n\n doPreoptimizeEditor = new BooleanFieldEditor(Preferences.P_DO_PREOPTIMIZE,\n \"&Pre-optimize at class/package level\", getFieldEditorParent());\n addField(doPreoptimizeEditor);\n\n logResultsEditor = new BooleanFieldEditor(Preferences.P_LOG_RESULTS, \"&Log searching moves and results\",\n getFieldEditorParent());\n addField(logResultsEditor);\n\n logPathEditor = new DirectoryFieldEditor(Preferences.P_LOG_PATH, \"Moves log path:\", getFieldEditorParent());\n logPathEditor.setEnabled(Activator.getDefault().getPreferenceStore().getBoolean(Preferences.P_LOG_RESULTS),\n getFieldEditorParent());\n logPathEditor.setEmptyStringAllowed(true);\n addField(logPathEditor);\n\n logResultsFileEditor = new FileFieldEditor(Preferences.P_LOG_RESULTS_FILE, \"Results log file:\",\n getFieldEditorParent());\n logResultsFileEditor.setEnabled(\n Activator.getDefault().getPreferenceStore().getBoolean(Preferences.P_LOG_RESULTS),\n getFieldEditorParent());\n logResultsFileEditor.setEmptyStringAllowed(true);\n addField(logResultsFileEditor);\n\n limitTimeEditor = new BooleanFieldEditor(Preferences.P_SEARCH_LIMIT_TIME, \"&Limit running time\",\n getFieldEditorParent());\n addField(limitTimeEditor);\n\n maxRunningTimeEditor = new IntegerFieldEditor(Preferences.P_SEARCH_MAX_RUNNING_TIME,\n \"Ma&x time per algorithm (sec)\", getFieldEditorParent());\n maxRunningTimeEditor.setEnabled(\n Activator.getDefault().getPreferenceStore().getBoolean(Preferences.P_SEARCH_LIMIT_TIME),\n getFieldEditorParent());\n maxRunningTimeEditor.setEmptyStringAllowed(false);\n addField(maxRunningTimeEditor);\n }", "public void createFieldEditors() \n\t{\n\t\n\tprefix = new StringFieldEditor(PreferenceConstants.PSQL_PREFIX, \"Verbindungsprefix:\", 14, getFieldEditorParent());\n\taddField(prefix);\n\t\n\tip = new StringFieldEditor(PreferenceConstants.PSQL_IP, \"IP-Adresse der Datenbank:\", 14, getFieldEditorParent());\n\taddField(ip);\n\t\n\tport = new IntegerFieldEditor(PreferenceConstants.PSQL_PORT, \"Port der Datenbank:\", getFieldEditorParent(),5);\n\taddField(port);\n\t\n\tdb = new StringFieldEditor(PreferenceConstants.PSQL_DATABASE, \"Name des Datenbankschemas:\", 14, getFieldEditorParent());\n\taddField(db);\n\t\n\tuser = new StringFieldEditor(PreferenceConstants.PSQL_USER, \"Name des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(user);\n\n\tpasswort = new StringFieldEditor(PreferenceConstants.PSQL_PASSWORT, \"Passwort des Datenbankbenutzers:\", 14, getFieldEditorParent());\n\taddField(passwort);\n\n\t}", "public void setEditor(Editor editor)\n {\n this.editor = editor;\n }", "public void createFieldEditors() {\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter &Diff on startup\", getFieldEditorParent()));\n\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter D&oclocs on startup\", getFieldEditorParent()));\n\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter &Survey on startup\", getFieldEditorParent()));\n\t}", "public void editSupplierMode() {\n\n\t\t// disable selection list\n\t\tsupplierList.setEnabled(false);\n\t\taddressTF.setBackground(Color.white);\n\n\t\tnameTF.setEditable(false);\n\t\tidTF.setEditable(false);\n\t\teMailTF.setEditable(true);\n\t\taddressTF.setEditable(true);\n\t\ttelTF.setEditable(true);\n\n\t\t// disable/enable appropriate buttons\n\t\tremoveItemButton.setEnabled(false);\n\t\tnewCustomerButton.setEnabled(false);\n\t\tsaveItemButton.setVisible(true);\n\t\tcancelBtn.setVisible(true);\n\t}", "public void configureEditor() {\n\t\tsuper.configureEditor();\n\t}", "public void newSupplierMode() {\n\n\t\tsupplierList.setEnabled(false);\n\t\taddressTF.setBackground(SystemColor.white);\n\n\t\tnameTF.setEditable(true);\n\t\tidTF.setEditable(false);\n\t\teMailTF.setEditable(true);\n\t\tnameTF.setEditable(true);\n\t\taddressTF.setEditable(true);\n\t\ttelTF.setEditable(true);\n\n\t\teditItemButton.setEnabled(false);\n\t\tremoveItemButton.setEnabled(false);\n\t\tsaveItemButton.setVisible(true);\n\t\tcancelBtn.setVisible(true);\n\n\t\tclearTextFields();\n\t}", "@Override\n\tpublic void validation() throws EditorException\n\t{\n\t}", "public UsuarioEditor() {\n initComponents();\n setLocationRelativeTo(null);\n// control = new PaisControlEditor();\n// control.registrarVentana(this);\n\n }", "void onNewTextSet(CodeEditor editor);", "@Override\n protected void validateEdit(Fornecedor post) {\n\n }", "public abstract void acceptEditing();", "@Override\n public void handleEditStart ()\n {\n\n }", "public void createFieldEditors() {\n\t\tString[][] namespaceComboData = getSynapseNamespaceComboData();\n\t\taddField(new ComboFieldEditor(PreferenceConstants.PREF_NAMESPACE,\n\t\t \"Default namespace\",namespaceComboData,\n\t\t getFieldEditorParent()));\n\t}", "public void switchToEditor() {\r\n\t\teditPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"editPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}", "public void EditorContainer() {\n\t setLayout(null);\n\t}", "protected void prepareForEditing() {\n\teditingContainer.add(editingComponent);\n }", "private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }", "public void editOperation() {\n\t\t\r\n\t}", "public void prepareEditor(){\n System.out.println(\"Prepare editor to be used !\");\r\n ((EditorScene)map.getScene()).initScene(20,20,map);\r\n ((EditorScene)map.getScene()).setController(this);\r\n builder.registerBasicEffect();\r\n ((EditorScene)map.getScene()).initListView(builder.getEffects(),selectEffects);\r\n\r\n\r\n\r\n }", "@Override\n protected void createFieldEditors() {\n /* ------------------------ CLI setup ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsCLIFieldEditors();\n\n /* -------------------------------------------------------------- */\n /* ------------------------ Log action ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsWaitForLogsInSeconds(getFieldEditorParent());\n /* -------------------------------------------------------------- */\n /* ------------------------ ERROR LEVEL ------------------------- */\n /* -------------------------------------------------------------- */\n createJenkinsLinterErrorLevelComboBox(getFieldEditorParent());\n\n /* -------------------------------------------------------------- */\n /* ------------------------ APPEARANCE -------------------------- */\n /* -------------------------------------------------------------- */\n GridData appearanceLayoutData = new GridData();\n appearanceLayoutData.horizontalAlignment = GridData.FILL;\n appearanceLayoutData.verticalAlignment = GridData.BEGINNING;\n appearanceLayoutData.grabExcessHorizontalSpace = true;\n appearanceLayoutData.grabExcessVerticalSpace = false;\n appearanceLayoutData.verticalSpan = 2;\n appearanceLayoutData.horizontalSpan = 3;\n\n Composite appearanceComposite = new Composite(getFieldEditorParent(), SWT.NONE);\n GridLayout layout = new GridLayout();\n layout.numColumns = 2;\n appearanceComposite.setLayout(layout);\n appearanceComposite.setLayoutData(appearanceLayoutData);\n\n createOtherFieldEditors(appearanceComposite);\n\n createBracketsFieldEditors(appearanceComposite);\n }", "public Editor getEditor() { return editor; }", "public StringEditor() {\n\t\tsuper();\n\t\tmEditor = new JTextField();\n\t\t\n\t}", "@Override\n\tpublic void dispose() {\n\t\tsuper.dispose();\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\tpe.setPage(null);\n\t\t\t\tpe.setPropertyChangeListener(null);\n\t\t\t\tpe.setPreferenceStore(null);\n\t\t\t}\n\t\t}\n\t}", "private void _openEditor() {\n\t\tWindow w = new Window(_caption.getValue());\n\t\tw.setId(\"tinyEditor\");\n\t\tw.setCaptionAsHtml(true);\n\t\t_tinyEditor = new TinyMCETextField();\n\t\t_tinyEditor.setValue(_hiddenField.getValue());\n\t\tw.setResizable(true);\n\t\tw.center();\n\t\tw.setWidth(800, Unit.PIXELS);\n\t\tw.setHeight(600, Unit.PIXELS);\n\t\tVerticalLayout vl = new VerticalLayout();\n\t\tvl.setSizeFull();\n\t\tw.setContent(vl);\n\t\tvl.addComponent(_tinyEditor);\n\t\tButton close = new Button(_i18n.getMessage(\"close\"));\n\t\tclose.addClickListener(evt -> w.close());\n\t\tButton accept = new Button(_i18n.getMessage(\"accept\"));\n\t\taccept.addStyleName(ValoTheme.BUTTON_PRIMARY);\n\t\taccept.addClickListener(evt -> {\n\t\t\t\t\t\t\t\t\t\tString oldValue = _hiddenField.getValue();\n\t\t\t\t\t\t\t\t\t\t_hiddenField.setValue(_tinyEditor.getValue());\n\t\t\t\t\t\t\t\t\t\tif (!oldValue.equals(_hiddenField.getValue())) {\n\t\t\t\t\t\t\t\t\t\t\tthis.fireEvent(new ValueChangeEvent<String>(this,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \toldValue,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \ttrue));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t_html.removeAllComponents();\n\t\t\t\t\t\t\t\t\t\t_html.addComponent(new Label(_tinyEditor.getValue(), ContentMode.HTML));\n\t\t\t\t\t\t\t\t\t\tw.close();\n\t\t\t\t\t\t\t\t\t });\n\t\tHorizontalLayout hl = new HorizontalLayout();\n\t\thl.addComponents(close, accept);\n\t\thl.setWidth(100, Unit.PERCENTAGE);\n\t\thl.setExpandRatio(close, 1);\n\t\thl.setComponentAlignment(accept, Alignment.BOTTOM_RIGHT);\n\t\thl.setComponentAlignment(close, Alignment.BOTTOM_RIGHT);\n\t\tvl.addComponent(hl);\n\t\tvl.setExpandRatio(_tinyEditor, 1);\n\t\tgetUI().addWindow(w);\n\t}", "@Override\r\n\tprotected boolean hasEditSupport() {\n\t\treturn false;\r\n\t}", "public CtrlEditGrupos() {\n edEsc = EditEscenario.getInstance();\n try {\n cd = CtrlDomain.getInstance();\n } catch (Exception e) {\n System.out.println(\"ERROR EN LA CARGA DEL CONTROLADOR DE DOMINIO\");\n }\n planEstudiosFinal = edEsc.getPlanEstudiosFinal();\n asignaturasFinal = edEsc.getAsignaturasFinal();\n restriccionesFinal = edEsc.getRestriccionesFinal();\n }", "protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\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\t\n\t}", "private void editTextEditorButton(){\n TextEditorTextfield.setText(textEditorPref);\n TextEditorDialog.setVisible(true);\n }", "private void editMode() {\n\t\t// Set the boolean to true to indicate in edit mode\n\t\teditableEditTexts();\n\t\thideEditDelete();\n\t\thideEmail();\n\t\tshowSaveAndAdd();\n\t\tshowThatEditable();\n\t}", "public void runEditorExisting()\r\n\t{\r\n\t\tmainFrame.runEditorExisting();\r\n\t}", "@Override\n\t\tpublic void setEditable(boolean isEditable) {\n\n\t\t}", "@NotNull\n List<NlComponentEditor> getEditors();", "public void editable() {\r\n\t\tzoneAffichage.setEditable(true);\r\n\t\tzoneAffichage.setBackground(Color.WHITE);\r\n\t\tzoneAffichage.setFocusable(true);\r\n\t\tzoneAffichage.setCursor(Cursor.getDefaultCursor());\r\n\t}", "protected void registerEditor(IFieldEditor editor, Composite parent,\r\n \t\t\tint columns) {\r\n \t\tsync.register(editor);\r\n \t\teditor.doFillIntoGrid(parent);\r\n \t}", "public boolean hasEditor()\n\t{\n\t\treturn true;\n\t}", "public void runEditorNew()\r\n\t{\r\n\t\tmainFrame.runEditorNew();\r\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tif (!edited) {\n\t\t\t\t\t\topenEdit();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcloseEdit();\n\t\t\t\t\t\tif (newly) {\n\t\t\t\t\t\t\tnewly = false;\n\t\t\t\t\t\t\tvo = getUserVO();\n\t\t\t\t\t\t\tUserController.add(vo);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tUserController.modify(vo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "public hesapekrani() {\n initComponents();\n getedits();\n \n \n }", "public boolean isEditable() {\n \t\treturn true;\n \t}", "@Override\n\tprotected void createEditPolicies()\n\t{\n\t\t\n\t}", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n\n //Simply opens a new Editor Window\n new EditorWindow().setVisible(true);\n\n }", "public override void Do()\r\n { \r\n if (TextEditor.UiScope == null)\r\n { \r\n // We dont want to process the input item if the editor has already been detached from its UiScope. \r\n return;\r\n } \r\n\r\n DoTextInput(TextEditor, _text, _isInsertKeyToggled, /*acceptControlCharacters:*/false);\r\n }", "public void setEditor(Editor editor) {\n this.currentEditor = editor;\n refreshView();\n }", "protected void checkOpenEditors(boolean checkNewSelection) {\n IEditorReference[] editorReferences = getSite().getPage()\n .getEditorReferences();\n if (editorReferences == null || editorReferences.length == 0) {\n deActivateView();\n } else if (checkNewSelection) {\n IEditorPart activeEditor = EclipseUtils.getActiveEditor();\n if (activeEditor instanceof ITextEditor) {\n ITextSelection selection = EclipseUtils\n .getSelection(((ITextEditor) activeEditor)\n .getSelectionProvider());\n handleSelectionChanged(activeEditor, selection);\n } else {\n deActivateView();\n }\n }\n }", "private void initEditorPanel() {\n\t\t\n\t\t//Remove all components from panel\n\t\tthis.editor.removeAll();\n\t\t\n\t\t//Redraw which feature\n\t\tthis.whichFeature.validate();\n\t\tthis.whichFeature.repaint();\n\t\t\n\t\t//Setting icon values\n\t\tpartL.setIcon(myParent.editor.profileImage);\n\t\tendTypeLTL.setIcon(myParent.editor.ltImage);\n\t\tendTypeRBL.setIcon(myParent.editor.rbImage);\n\t\tpfFormLL.setIcon(myParent.profileshapeImage);\n\t\tsetGo.setIcon(myParent.setImage);\n\t\tcancel.setIcon(myParent.cancelImage);\n\t\t\n\t\t//Setting values visibility\n\t\tpart.setVisible(false);\n\t\tpartL.setVisible(false);\n\t\tparts.setVisible(false);\n\t\t\n\t\tendTypeLT.setVisible(false);\n\t\tendTypeLTL.setVisible(false);\n\t\tlCut.setVisible(false);\n\t\tendTypeRB.setVisible(false);\n\t\tendTypeRBL.setVisible(false);\n\t\trCut.setVisible(false);\n\t\tpfFormL.setVisible(false);\n\t\tpfFormLL.setVisible(false);\n\t\tpfCombo.setVisible(false);\n\t\t\n\t\toffsetL.setVisible(false);\n\t\toffsetR.setVisible(false);\n\t\toffsetLT.setVisible(false);\n\t\toffsetRB.setVisible(false);\n\t\t\n\t\tbL.setVisible(false);\n\t\tbR.setVisible(false);\n\t\tdeltaL.setVisible(false);\n\t\tdeltaR.setVisible(false);\n\t\t\n\t\tsetGo.setVisible(false);\n\t\tcancel.setVisible(false);\n\t\t\n\t\tmyParent.dim.masterSelected.setEnabled(false);\n\t\tmyParent.dim.slaveSelected.setEnabled(false);\n\t\tmyParent.dim.masterSelected.setVisible(false);\n\t\tmyParent.dim.slaveSelected.setVisible(false);\n\t\tmyParent.dim.doAlign.setVisible(false);\n\t\tmyParent.dim.changeAlign.setVisible(false);\n\t\tmyParent.dim.cancelAlign.setVisible(false);\n\t\tmyParent.dim.doAlign.setEnabled(false);\n\t\tmyParent.dim.changeAlign.setEnabled(false);\n\t\t\n\t\tmyParent.alignSeq = 0;\n\t\t\n\t\t//Adding components to editor panel\n\t\teditor.add(part, new XYConstraints(1, 1, 20, 19));\n\t\teditor.add(partL, new XYConstraints(22, 1, 20, 19));\n\t\teditor.add(parts, new XYConstraints(42, 1, 140, 19));\n\t\t\n\t\teditor.add(endTypeLT, new XYConstraints(1, 23, 20, 19));\n\t\teditor.add(endTypeLTL, new XYConstraints(22, 23, 20, 19));\n\t\teditor.add(lCut, new XYConstraints(81, 23, 100, 19));\n\t\t\n\t\teditor.add(endTypeRB, new XYConstraints(1, 44, 20, 19));\n\t\teditor.add(endTypeRBL, new XYConstraints(22, 44, 20, 19));\n\t\teditor.add(rCut, new XYConstraints(81, 44, 100, 19));\n\t\t\n\t\teditor.add(pfFormL, new XYConstraints(1, 65, 20, 19));\n\t\teditor.add(pfFormLL, new XYConstraints(22, 65, 20, 19));\n\t\teditor.add(pfCombo, new XYConstraints(81, 65, 100, 19));\n\t\t\n\t\teditor.add(offsetL, new XYConstraints(1, 86, 50, 19));\n\t\teditor.add(offsetR, new XYConstraints(1, 107, 50, 19));\n\t\teditor.add(bL, new XYConstraints(1, 128, 50, 19));\n\t\teditor.add(bR, new XYConstraints(1, 149, 50, 19));\n\t\t\n\t\teditor.add(offsetLT, new XYConstraints(60, 86, 118, 19));\n\t\teditor.add(offsetRB, new XYConstraints(60, 107, 118, 19));\n\t\t\n\t\teditor.add(deltaL, new XYConstraints(60, 127, 118, 19));\n\t\teditor.add(deltaR, new XYConstraints(60, 147, 118, 19));\n\t\t\n\t\teditor.add(setGo, new XYConstraints(56, 168, 60, 19));\n\t\teditor.add(cancel, new XYConstraints(118, 168, 60, 19));\n\t\t\n\t\teditor.add(myParent.dim.masterSelected, new XYConstraints(1, 3, 120, 19));\n\t\teditor.add(myParent.dim.slaveSelected, new XYConstraints(1, 24,120, 19));\n\t\t\n\t\teditor.add(myParent.dim.doAlign, new XYConstraints(1, 50, 59, 19));\n\t\teditor.add(myParent.dim.changeAlign, new XYConstraints(61, 50, 59, 19));\n\t\teditor.add(myParent.dim.cancelAlign, new XYConstraints(121, 50, 59, 19));\n\t}", "@Override\n \tpublic void createFieldEditors() {\n\t\t\n\t\t\n\t\tGraphics3DRegistry.resetDescriptors();\n\t\tList<Graphics3DDescriptor> descr = Graphics3DRegistry.getRenderersForType(Graphics3DType.SCREEN);\n\t\tString[][] renderers = new String[descr.size()][2];\n\t\tfor (int i=0; i<descr.size(); i++) {\n\t\t\trenderers[i][0] = descr.get(i).getName();\n\t\t\trenderers[i][1] = descr.get(i).getRendererID();\n\t\t}\n\t\t\n\t\tComboFieldEditor rendererCombo = new ComboFieldEditor(PrefNames.DEFAULT_SCREEN_RENDERER, \"Default screen renderer\", \n\t\t\trenderers, getFieldEditorParent());\n\t\taddField(rendererCombo);\n\t\t\n\t\t// TODO enable\n\t\trendererCombo.setEnabled(false, getFieldEditorParent());\n\t\t\n \n \t\tString[][] cameraTypes =\n \t\t\tnew String[][] {\n \t\t\t\t{ \"Default first person camera\",\n \t\t\t\t\tFirstPersonCamera.class.getName() },\n \t\t\t\t{ \"Restricted first person camera\",\n \t\t\t\t\tRestrictedFirstPersonCamera.class.getName() } };\n \n \t\taddField(new RadioGroupFieldEditor(PrefNames.LWS_CAMERA_TYPE,\n \t\t\t\"Camera type:\", 1, cameraTypes, getFieldEditorParent()));\n \n \t\taddField(new ColorFieldEditor(PrefNames.LWS_BACKGROUND,\n \t\t\t\"Background color\", getFieldEditorParent()));\n \n \t\taddField(new BooleanFieldEditor(PrefNames.LWS_DRAW_AXES, \"Draw axes\",\n \t\t\tgetFieldEditorParent()));\n \n \t\taddField(new BooleanFieldEditor(PrefNames.LWS_DEBUG, \"Debug\",\n \t\t\tgetFieldEditorParent()));\n \n \t\tString[][] fontOptions =\n \t\t\tnew String[][] {\n \t\t\t\tnew String[] { \"Editor setting\", PrefNames.FONT_AA_EDITOR },\n \t\t\t\tnew String[] { \"Always on (ignore editor setting)\",\n \t\t\t\t\tPrefNames.FONT_AA_ON },\n \t\t\t\tnew String[] { \"Always off (ignore editor setting)\",\n \t\t\t\t\tPrefNames.FONT_AA_OFF } };\n \t\taddField(new ComboFieldEditor(PrefNames.LWS_FONT_AA,\n \t\t\t\"Font antialiasing\", fontOptions, getFieldEditorParent()));\n \t}", "public EditorContainer() {\n\t setLayout(null);\n\t}", "protected void initializeEditingDomain() {\r\n\t\t// Create an adapter factory that yields item providers.\r\n\t\t//\r\n\t\tadapterFactory = new ComposedAdapterFactory(\r\n\t\t\t\tComposedAdapterFactory.Descriptor.Registry.INSTANCE);\r\n\r\n\t\tadapterFactory\r\n\t\t\t\t.addAdapterFactory(new ResourceItemProviderAdapterFactory());\r\n//\t\tadapterFactory\r\n//\t\t\t\t.addAdapterFactory(new ConfmlItemProviderAdapterFactory());\r\n\t\tadapterFactory\r\n\t\t\t\t.addAdapterFactory(new ReflectiveItemProviderAdapterFactory());\r\n\r\n\t\t// Create the command stack that will notify this editor as commands are\r\n\t\t// executed.\r\n\t\t//\r\n\t\tBasicCommandStack commandStack = new BasicCommandStack();\r\n\r\n\t\t// Add a listener to set the most recent command's affected objects to\r\n\t\t// be the selection of the viewer with focus.\r\n\t\t//\r\n\t\tcommandStack.addCommandStackListener\r\n\t\t(new CommandStackListener() {\r\n\t\t\tpublic void commandStackChanged(final EventObject event) {\r\n\t\t\t\tgetContainer().getDisplay().asyncExec\r\n\t\t\t\t(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tfirePropertyChange(IEditorPart.PROP_DIRTY);\r\n\r\n\t\t\t\t\t\t// Try to select the affected objects.\r\n\t\t\t\t\t\t//\r\n\t\t\t\t\t\tCommand mostRecentCommand =\r\n\t\t\t\t\t\t\t((CommandStack)event.getSource()).getMostRecentCommand();\r\n\t\t\t\t\t\tif (mostRecentCommand != null) {\r\n\t\t\t\t\t\t\tsetSelectionToViewer(mostRecentCommand.getAffectedObjects());\r\n\t\t\t\t\t\t}\r\n//\t\t\t\t\t\tif (propertySheetPage != null &&\r\n//\t\t\t\t\t\t\t\t!propertySheetPage.getControl().isDisposed()) {\r\n//\t\t\t\t\t\t\tpropertySheetPage.refresh();\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});\r\n\r\n\t\t// Create the editing domain with a special command stack.\r\n\t\t//\r\n\t\teditingDomain = new AdapterFactoryEditingDomain(adapterFactory, commandStack,\r\n\t\t\t\tnew HashMap<Resource, Boolean>());\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tenterField.setEditable(editable);\t//将文本域置为可编辑的状态\r\n\t\t\t}", "private void configureAndPlaceEditorPanel(BaseDualControlDataEditor<PK, DATA> editorPanel) {\n\t\tMainPanelStackControl.getInstance().putPanel(editorPanel, ViewScreenMode.normal);\n\t\teditorPanel.addDataChangeHandlers(new DataChangedEventHandler<DATA>() {\n\t\t\t@Override\n\t\t\tpublic void handleDataChange(DATA data, EditorOperation operation) {\n\t\t\t\tdataGrid.reload();\n\t\t\t}\n\t\t});\n\t}", "private SizeModifierSettingsEditor() {\n\t\tinitComponents();\n\t\tsettings = SizeModifierSettings.getInstance();\n\t\tloadSettings();\n\t\tmainShell.pack();\n\t\tmainShell.setBounds(\n\t\t\tCrunch3.mainWindow.getShell().getBounds().x + Crunch3.mainWindow.getShell().getBounds().width / 2 - mainShell.getBounds().width / 2,\n\t\t\tCrunch3.mainWindow.getShell().getBounds().y + Crunch3.mainWindow.getShell().getBounds().height / 2 - mainShell.getBounds().height / 2,\n\t\t\tmainShell.getBounds().width,\n\t\t\tmainShell.getBounds().height);\n\t\tmainShell.open();\n\t}", "public void startEditingPlanning() {\r\n bpCoordinator.startEditingPlanning();\r\n }", "protected void exitEditMode(){\n editName.setEnabled(false);\n editEmail.setEnabled(false);\n saveButton.setVisibility(View.INVISIBLE);\n }", "protected void handleEditDataForApproval (final DATA data){\n\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t@Override\n\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\twidget.editExistingData(data);\n\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}", "public default boolean isEditable(){ return false; }", "@Override\n public void edit(User user) {\n }", "public ConfmlEditor() {\r\n\t\tsuper();\r\n\t\tinitializeEditingDomain();\r\n\t}", "protected void replaceEditor(JComponent oldEditor, JComponent newEditor) {\n spinner.remove(oldEditor);\n spinner.add(newEditor, \"Editor\"); }", "public void correcto( Editor<Tipo> editor );", "@Override\n public void testCreateAsEditor() {}", "public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}", "public void reshapeEditor() {\n if (getEditedText() != null) {\n // Update the size to fit the new document - note that it is a 2 stage process\n Dimension prefSize = getEditor().getPreferredSize();\n\n Insets pInsets = getEditedText().getInsets();\n Insets jInsets = getEditor().getInsets();\n\n int width = (getEditedText().getConstrainWidthToTextWidth()) ? (int) prefSize.getWidth() : (int) (getEditedText().getWidth() - pInsets.left - pInsets.right\n + jInsets.left + jInsets.right);\n prefSize.setSize(width, prefSize.getHeight());\n getEditor().setSize(prefSize);\n\n prefSize = getEditor().getPreferredSize();\n int height = (getEditedText().getConstrainHeightToTextHeight()) ? (int) prefSize.getHeight() : (int) (getEditedText().getHeight() - pInsets.top - pInsets.bottom\n + jInsets.top + jInsets.bottom);\n\n prefSize.setSize(width, height);\n getEditor().setSize(prefSize);\n\n // need some twiddling to make the width dance together with an editor...\n if (enforceWidth) {\n if (getWidth() < width + getPedding().getRight() - getPedding().getLeft()) {\n width = width + getPedding().getRight() - getPedding().getLeft();\n } else {\n width = width + getPedding().getLeft();\n }\n setMinConstraint(new PDimension(width, height));\n } else {\n setMinConstraint(new PDimension(0, 0));\n }\n\n reshape(false); // reshaping this component\n getCanvas().repaint();\n }\n }", "public add_edit() {\n initComponents();\n \n this.setLocationRelativeTo(null);\n }", "public interface Editable {\n\n void createValidationPatterns();\n void setUpButtonListeners();\n}", "public NBIeeeST2GovernorEditPanel() {\n initComponents();\n\n \t\tDataVerifier verifier = new DataVerifier();\n \t rTextField.setInputVerifier(verifier);\n \t fp1TextField.setInputVerifier(verifier);\n \t fp2TextField.setInputVerifier(verifier);\n \t fp3TextField.setInputVerifier(verifier);\n \t t1TextField.setInputVerifier(verifier);\n \t t2TextField.setInputVerifier(verifier);\n \t t3TextField.setInputVerifier(verifier);\n \t t4TextField.setInputVerifier(verifier);\n \t t5TextField.setInputVerifier(verifier);\n \t pmaxTextField.setInputVerifier(verifier);\n \t pminTextField.setInputVerifier(verifier);\n \t}", "public abstract void checkEditing();", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "public abstract void edit();", "public static void clear() {\n doEdit();\n mEditor.clear();\n doCommit();\n }", "public interface ACSUIEditor {\n\n ACSUIEditable getEditable(SimpleRequestContext src);\n\n ACSUIEditable getEditable();\n\n ACSUIEditable updatetEditable(SimpleRequestContext src);\n\n ACSUIEditable insertEditable(SimpleRequestContext src);\n\n ACSUIEditable deleteEditable(SimpleRequestContext src);\n\n ACSUIEditable[] getEditables(SimpleRequestContext src);\n\n String[] getColNames();\n\n String getType();\n\n boolean[] checkInputData(ACSRequestContext ctx);\n\n String getManagmentLabel();\n\n String getAddLabel();\n\n String getUpdateLabel();\n\n}", "public void edit_actionPerformed(ActionEvent e) {\n\t\t\n\t\tif (edit.isSelected()) {\n\t\t\t\n\t\t\teditor.validate();\n\t\t\teditor.repaint();\n\t\t\t\n\t\t\t//Reset edit components values\n\t\t\tresetEdit();\n\t\t\t\n\t\t\t//Configure editor panel\n\t\t\tinitEditorPanel();\n\t\t\t\n\t\t\tmyParent.editCM = true;\n\t\t\tmyParent.extendCM = false;\n\t\t\tmyParent.mullionsPanel.selectedHV = 0;\n\n //Setting type action event\n myParent.setActionTypeEvent(MenuActionEventDraw.EDIT_COUPLER_MULLION.getValue());\n\t\t\t\n\t\t\tvC.setSelected(false);\n\t\t\thC.setSelected(false);\n\t\t\tvC.setEnabled(false);\n\t\t\thC.setEnabled(false);\n\t\t\t\n\t\t\tcouplerTypeC.setEnabled(false);\n\t\t\t\n\t\t\tedit.setEnabled(false);\n\t\t\tcancel.setVisible(true);\n\t\t\tcancel.setEnabled(true);\n\t\t\tthis.enableDisableBySeries();\n\t\t\t\n\t\t\twhichFeature.validate();\n\t\t\twhichFeature.repaint();\n\t\t}\n\t}", "public EditorPanel() throws Exception {\n initComponents();\n \n //Gör Id kolumnem i min JTable osynlig men jag behöver id-numret sparat någonstans för att kunna referera till editors id-nummer när man tar \n //bort någon eller ändrar en editor.\n //Anledningen till att jag gör det osynligt för att jag tycker det är onödigt för en användare att få se den informationen.\n editorTable.getColumnModel().getColumn(0).setMinWidth(0);\n editorTable.getColumnModel().getColumn(0).setMaxWidth(0);\n \n //Sätter färgen på min Jtable\n JTableHeader headerSearch = editorTable.getTableHeader();\n headerSearch.setBackground( new Color(190, 227, 219) );\n headerSearch.setForeground( new Color(85, 91, 110) );\n \n addComboBox();\n addComboBoxTable();\n }", "private void performDirectEdit() {\n\t}", "public void update() {\n\t\tthis.editorView.update();\n\t}", "private void putEditables(boolean b) {\r\n\t\ttxUsuario.setEditable(b);\r\n\t\ttxPassword.setEditable(b);\r\n\t\tcheckAdmin.setDisable(!b);\r\n\t\tcheckTPV.setDisable(!b);\r\n\t}", "@Override\r\n\t\tpublic boolean editItem() {\n\t\t\treturn false;\r\n\t\t}", "@Override\r\n protected boolean canEdit(Object element) {\n return true;\r\n }", "protected void createEditPolicies() {\n installEditPolicy(EditPolicy.COMPONENT_ROLE, new RootComponentEditPolicy());\r\n // handles constraint changes (e.g. moving and/or resizing) of model elements\r\n // and creation of new model elements\r\n installEditPolicy(EditPolicy.LAYOUT_ROLE, new ShapesXYLayoutEditPolicy(this));\r\n installEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, null);\r\n }", "@Override\r\n\tpublic void createPages() {\r\n\t\t// Creates the model from the editor input\r\n\t\t//\r\n\t\t\r\n\t\tcreateModel();\r\n\r\n\t\t// Only creates the other pages if there is something that can be edited\r\n\t\t//\r\n\t\t// if (!getEditingDomain().getResourceSet().getResources().isEmpty()) {\r\n\t\tif (editorModel != null) {\r\n\t\t\t// Create a page for the selection tree view.\r\n\t\t\t//\r\n\r\n\t\t\t/*\r\n\t\t\t * Tree tree = new Tree(getContainer(), SWT.MULTI); selectionViewer\r\n\t\t\t * = new TreeViewer(tree); setCurrentViewer(selectionViewer);\r\n\t\t\t * \r\n\t\t\t * selectionViewer.setContentProvider(new\r\n\t\t\t * AdapterFactoryContentProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setLabelProvider(new\r\n\t\t\t * AdapterFactoryLabelProvider(adapterFactory));\r\n\t\t\t * selectionViewer.setInput(editingDomain.getResourceSet());\r\n\t\t\t * selectionViewer.setSelection(new\r\n\t\t\t * StructuredSelection(editingDomain\r\n\t\t\t * .getResourceSet().getResources().get(0)), true);\r\n\t\t\t * \r\n\t\t\t * new AdapterFactoryTreeEditor(selectionViewer.getTree(),\r\n\t\t\t * adapterFactory);\r\n\t\t\t * \r\n\t\t\t * createContextMenuFor(selectionViewer);\r\n\t\t\t */\r\n\t\t\tComposite parent = getContainer();\r\n\t\t\tformToolkit = new FormToolkit(parent.getDisplay());\r\n\t\t\tform = formToolkit.createForm(parent);\r\n//\t\t\tform.setText(\"SETTINGS - View and modify setting values in \"\r\n//\t\t\t\t\t+ editorModel.getName() + \".\");\r\n\t\t\tComposite client = form.getBody();\r\n\t\t\t// client.setBackground(Display.getCurrent().getSystemColor(\r\n\t\t\t// SWT.COLOR_WHITE));\r\n\t\t\tclient.setLayout(new FillLayout());\r\n\t\t\tfeatureViewer = new FeatureViewer(client);\r\n\r\n\t\t\tfeatureViewer.setContentProvider(new FeatureViewerContentProvider(\r\n\t\t\t\t\teditingDomain.getCommandStack(), this));\r\n\t\t\tfeatureViewer.setInput(editorModel);\r\n\t\t\tfeatureViewer.setLabelProvider(new FeatureViewerLabelProvider(CrmlBuilder.getResourceModelRoot()));\r\n\t\t\t// featureViewer.refresh();\r\n\r\n\t\t\tfeatureViewer.addSelectionChangedListener(new ISelectionChangedListener(){\r\n\t\t\t\t\r\n\t\t\t\tpublic void selectionChanged(SelectionChangedEvent event) {\r\n\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event\r\n\t\t\t\t\t.getSelection();\r\n\r\n\t\t\t\t\tsetSelection(selection);\r\n\t\t\t\t\t\r\n\t\t\t\t/*\tISelection convertSelection = convertSelectionToMainModel(selection);\r\n\t\t\t\t\tSelectionChangedEvent newEvent = new SelectionChangedEvent(\r\n\t\t\t\t\t\t\tConfmlEditor.this, convertSelection);\r\n\t\t\t\t\tfireSelection(newEvent);*/\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t});\r\n\t\t\t\r\n\t\t\tgetSite().setSelectionProvider(featureViewer);\r\n\t\t\t// create pop up menu actions\r\n\t\t\tresetToDefaults = new ResetToDefaultAction(featureViewer);\r\n\t\t\tmoveUpAction = new MoveUpAction(featureViewer,this);\r\n\t\t\tmoveDownAction = new MoveDownAction(featureViewer,this);\r\n\t\t\tduplicateAction = new DuplicateSequencesAction(featureViewer,this);\r\n\t\t\topenDataConfmlAction = new OpenDataConfmlAction(featureViewer);\r\n\t\t\topenConfmlAction = new OpenConfmlAction(featureViewer);\r\n\t\t\topenImplAction = new OpenImplementationAction(featureViewer);\r\n\t\t\t\r\n\t\t\tIWorkbenchWindow window = getSite().getWorkbenchWindow();\r\n\t\t\tresetToDefaults.init(window);\r\n\t\t\tmoveUpAction.init(window);\r\n\t\t\tmoveDownAction.init(window);\r\n\t\t\tduplicateAction.init(window);\r\n\t\t\topenDataConfmlAction.init(window);\r\n\t\t\topenConfmlAction.init(window);\r\n\t\t\topenImplAction.init(window);\r\n\t\t\tdisableActions();\r\n\t\t\t\r\n\t\t\t// create pop up menu with actions\r\n\t\t\tcontextMenuListener = contextMenuListener(form);\r\n\t\t\tmenuManager = new MenuManager();\r\n\t\t\tmenuManager.addMenuListener(contextMenuListener);\r\n\t\t\tmenuManager.setRemoveAllWhenShown(true);\r\n\t\t\tMenu menu = menuManager.createContextMenu(form);\r\n\t\t\tform.setMenu(menu);\r\n\t\t\t\r\n\t\t\tint pageIndex = addPage(form);\r\n\t\t\tsetPageText(pageIndex, getString(\"_UI_SelectionPage_label\"));\r\n\r\n\t\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tsetActivePage(0);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\r\n\t\t// featureViewer.addDirtyButtonListener(new MouseListener() {\r\n\t\t//\r\n\t\t// public void mouseDoubleClick(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseDown(MouseEvent e) {\r\n\t\t// LeafGroup selectedGroup = getSelectedGroup();\r\n\t\t// if (selectedGroup != null\r\n\t\t// && !(selectedGroup instanceof SummaryLeafGroup)) {\r\n\t\t// UIGroup group = createDirtyForGroup(selectedGroup);\r\n\t\t// settingsViewer.setInput(group);\r\n\t\t// refreshAndHandleWidgetState();\r\n\t\t// // settingsViewer.refresh();\r\n\t\t// dirtySorting = true;\r\n\t\t// errorSorting = false;\r\n\t\t// notesSorting = false;\r\n\t\t// }\r\n\t\t// }\r\n\t\t//\r\n\t\t// public void mouseUp(MouseEvent e) {\r\n\t\t//\r\n\t\t// }\r\n\t\t//\r\n\t\t// });\r\n\r\n\t\t// Ensures that this editor will only display the page's tab\r\n\t\t// area if there are more than one page\r\n\t\t//\r\n\t\tgetContainer().addControlListener(new ControlAdapter() {\r\n\t\t\tboolean guard = false;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void controlResized(ControlEvent event) {\r\n\t\t\t\tif (!guard) {\r\n\t\t\t\t\tguard = true;\r\n\t\t\t\t\thideTabs();\r\n\t\t\t\t\tguard = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n//\t\tgetSite().getShell().getDisplay().asyncExec(new Runnable() {\r\n//\t\t\tpublic void run() {\r\n//\t\t\t\tupdateProblemIndication();\r\n//\t\t\t}\r\n//\t\t});\r\n\t\t\r\n\t\tupdateErrors();\r\n\t}", "public void clearEditMode() {\n\t\tmIsEditMode = false;\n\t\tmDeList.clear();\n\t}", "@Override\n public void startEdit() {\n super.startEdit();\n\n if (text_field == null) {\n createTextField();\n }\n setText(null);\n setGraphic(text_field);\n text_field.selectAll();\n }", "@Override\n\tpublic void editExchange() {\n\t\t\n\t}", "@Override\n\tprotected void createEditPolicies() {\n\t\tinstallEditPolicy(EditPolicy.LAYOUT_ROLE, new NoRCEditLayoutPolicy());\n\t\tinstallEditPolicy(EditPolicy.COMPONENT_ROLE, new NoRCDeletePolicy());\n\t\tinstallEditPolicy(EditPolicy.SELECTION_FEEDBACK_ROLE, new NoRCEditCodePolicy());\n\t\tinstallEditPolicy(EditPolicy.GRAPHICAL_NODE_ROLE, new NoRCNodePolicy());\n\t}", "void disableEdit() {\n\t\tnameField.setEditable(false);\n\t\tssnField.setEditable(false);\n\t\ttakenDateField.setEditable(false);\n\t\ttotalScoreField.setEditable(false);\n\t\tadvisorField.setEditable(false);\n\t\t\n\t}", "public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }", "Object onCancelCreateFromEditor() {\n\t\t_mode = null;\n\t\t_facilityId = null;\n\t\treturn _editorZone.getBody();\n\t}", "public void edit() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"editButton\").click();\n\t}" ]
[ "0.7361424", "0.6961136", "0.67128104", "0.6590276", "0.6378281", "0.63432145", "0.63340324", "0.6322914", "0.62047946", "0.6143161", "0.61367524", "0.6122038", "0.60979456", "0.6091285", "0.60869664", "0.60584617", "0.60539037", "0.60511106", "0.5956875", "0.59167516", "0.5868678", "0.58537966", "0.5823806", "0.58208036", "0.5816965", "0.581116", "0.5809204", "0.5805322", "0.5799196", "0.57957083", "0.5771325", "0.57712716", "0.5758006", "0.57571507", "0.5742018", "0.569262", "0.5691344", "0.56912196", "0.56906605", "0.568701", "0.56836814", "0.5658443", "0.56535256", "0.56511694", "0.56429815", "0.56086314", "0.56047696", "0.560445", "0.5593768", "0.5592712", "0.5586789", "0.5582547", "0.55687773", "0.5568016", "0.555154", "0.5546989", "0.55389863", "0.55313516", "0.5530372", "0.5525096", "0.55232495", "0.55059475", "0.5504033", "0.54906493", "0.5485813", "0.54840934", "0.5476617", "0.5473697", "0.5473556", "0.54709244", "0.545904", "0.5457763", "0.5448615", "0.54484636", "0.5448447", "0.5439747", "0.54220414", "0.5412912", "0.5396625", "0.5393969", "0.5388552", "0.5375551", "0.5361681", "0.53604937", "0.5354574", "0.5351978", "0.53502357", "0.5349884", "0.5341636", "0.5338316", "0.5331206", "0.53204095", "0.5318936", "0.53119904", "0.5310799", "0.53087485", "0.53082126", "0.5305448", "0.5305443", "0.53013355", "0.5290097" ]
0.0
-1
creates a SQL User Authenticator from the global properties
RemoteUserManager() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ToLAuthenticator(String user, String pw) {\n username = user;\n password = pw;\n }", "public Person authenticateAndGetUser(String numCc, String password) throws RemoteException;", "abstract public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);", "public AuthInfo createAuthInfo(String username, String userid, String passwd, String ha1, String realm, String domain);", "User authenticate(String username, String password);", "private void initUser() {\n\t}", "public static void createAuthKey() {\n\n String url = \"jdbc:sqlite:c:/Carapaca/server/db/database.db\";\n\n String sql = \"CREATE TABLE IF NOT EXISTS authenticatedkeys (\\n\" + \" id integer PRIMARY KEY AUTOINCREMENT,\\n\"\n + \" id_user integer NOT NULL,\\n\"\n + \" ipaddr text NOT NULL,\\n\"\n + \" publickey text NOT NULL,\\n\"\n + \" FOREIGN KEY(id_user) REFERENCES users(id)\" + \");\";\n\n try (Connection conn = DriverManager.getConnection(url); Statement stmt = conn.createStatement()) {\n stmt.execute(sql);\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public FuzzerAuthString(){\r\n\t\tusername = \"\";\r\n\t\tpassword = \"\";\r\n\t}", "@Override\n\tpublic IUser creatUser() {\n\t\treturn new SqlServerUser();\n\t}", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public String getDatabaseUser();", "GenerateUserAccount () {\r\n }", "Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);", "public KeyStore initializeUser(UserInfo userInfo, String keyPassword) throws CertException;", "public HashUserRealm()\n {}", "public LoginOra() {\n super(\"Oracle Login\");\n\n }", "EmployeeMaster authenticateUser(int employeeId, String password);", "public static void createMysqlUser(Eleve e) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"CREATE USER '\" + e.getAbreviation() + \"'@'%' IDENTIFIED BY '\" + e.getPwd() + \"'; \";\r\n System.out.println(SQLRequest);\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }", "public static AuthenticatorConfig createFromProperties(final InputStream is)\n {\n final AuthenticatorConfig authConfig = new AuthenticatorConfig();\n LdapProperties properties = null;\n if (is != null) {\n properties = new LdapProperties(authConfig, is);\n } else {\n properties = new LdapProperties(authConfig);\n properties.useDefaultPropertiesFile();\n }\n properties.configure();\n return authConfig;\n }", "public static AuthenticatorConfig createFromProperties(final InputStream is)\n {\n final AuthenticatorConfig authConfig = new AuthenticatorConfig();\n LdapProperties properties = null;\n if (is != null) {\n properties = new LdapProperties(authConfig, is);\n } else {\n properties = new LdapProperties(authConfig);\n properties.useDefaultPropertiesFile();\n }\n properties.configure();\n return authConfig;\n }", "public AuthCredentials(String scheme,String name,String password)\n {\n this.scheme = scheme;\n this.name = name;\n this.password = password;\n }", "@ClassVersion(\"$Id: Authenticator.java 16154 2012-07-14 16:34:05Z colin $\")\r\npublic interface Authenticator\r\n{\r\n\r\n /**\r\n * Checks whether the given credentials can be used to initiate a\r\n * new session on behalf of the client with the given context.\r\n *\r\n * @param context The context.\r\n * @param user The user name.\r\n * @param password The password.\r\n *\r\n * @return True if the given credentials are acceptable.\r\n *\r\n * @throws I18NException Thrown if the authenticator encounters an\r\n * error while checking the credentials.\r\n */\r\n\r\n boolean shouldAllow\r\n (StatelessClientContext context,\r\n String user,\r\n char[] password)\r\n throws I18NException;\r\n}", "@Override\n\t\tpublic void init(AuthenticationManagerBuilder auth) throws Exception {\n\t\t\t// @formatter:off\n\t\t\tauth.jdbcAuthentication().dataSource(dataSource).withUser(\"dave\")\n\t\t\t\t\t.password(\"secret\").roles(\"USER\");\n\t\t\tauth.jdbcAuthentication().dataSource(dataSource).withUser(\"anil\")\n\t\t\t\t\t.password(\"password\").roles(\"ADMIN\");\n\t\t\t// @formatter:on\n\t\t}", "int authenticateUser(IDAOSession session, String userName, String password);", "@Test\n\tpublic void testAuthenticateAndroidUser() {\n\t\t Authenticator auth=new Authenticator();\n \n \n \n AndroidUser anUser=new AndroidUser(\"\", \"asd\", \"asd\", \"asd\", \"asd\", \"asd\", \"asd\");\n \n assertTrue(auth.authenticate(anUser));\n \n \n\t}", "int newUser(String username, String password, Time creationTime);", "private Authenticator mkAuthenticator(final User user, final String seriesId, final Date expiryTime) {\n try {\n final String token = mkToken(user.getKey(), seriesId, expiryTime);\n final String hash = crypto.calculateRFC2104HMAC(token, hashingKey);\n return new Authenticator(token, hash);\n } catch (final SignatureException ex) {\n throw new IllegalStateException(ex);\n }\n }", "java.lang.String getAuth();", "java.lang.String getAuth();", "java.lang.String getAuth();", "private HpcSystemAccountLocator() {}", "User login(Uuid id, String username, String password, Time creationTime);", "private LoginContext kinit(String principal) throws LoginException {\n LoginContext lc = new LoginContext(this.getClass().getSimpleName(), new CallbackHandler() {\n public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {\n for (Callback c : callbacks) {\n //if(c instanceof )\n if (c instanceof NameCallback)\n ((NameCallback) c).setName(principal);\n if (c instanceof PasswordCallback)\n ((PasswordCallback) c).setPassword(\"\".toCharArray()); // empty password -- use keytab ?\n }\n }\n });\n lc.login();\n return lc;\n }", "private boolean init() {\n\t\tString sql = \"SELECT v FROM user WHERE k='version'\";\t// TODO right now we are care only about is table exists of not\n //init_required = true;\n\t\tif (!this.r(sql)) {\n\t\t\tsql= \"CREATE TABLE user ( k CHAR(50), v TEXT );\";\n\t\t\tthis.r(sql);\n\t\t\tsql= \"CREATE UNIQUE INDEX kindex on user (k);\";\n\t\t\tthis.r(sql);\n\t\t\tsql= \"INSERT INTO user (k,v) VALUES ('version','1'), ('login',''), ('password',''), ('remember','1');\";\n\t\t\treturn this.r(sql);\n\t\t}\n\t\treturn true;\n\t}", "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}", "GoogleAuthenticatorKey createCredentials(String userName);", "private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}", "public UserAuthenticationDAOImpl() {\n\t\tinitUsers();\n\t}", "private final void initializeAdminUser() throws Exception {\r\n String adminEmail = server.getServerProperties().get(ADMIN_EMAIL_KEY);\r\n String adminPassword = server.getServerProperties().get(ADMIN_PASSWORD_KEY);\r\n // First, clear any existing Admin role property.\r\n for (User user : this.email2user.values()) {\r\n user.setRole(\"basic\");\r\n }\r\n // Now define the admin user with the admin property.\r\n if (this.email2user.containsKey(adminEmail)) {\r\n User user = this.email2user.get(adminEmail);\r\n user.setPassword(adminPassword);\r\n user.setRole(\"admin\");\r\n }\r\n else {\r\n User admin = new User();\r\n admin.setEmail(adminEmail);\r\n admin.setPassword(adminPassword);\r\n admin.setRole(\"admin\");\r\n this.updateCache(admin);\r\n }\r\n }", "public User getUser(String userName, String password);", "public void creatUser(String name, String phone, String email, String password);", "public void initializeUser() {\n try {\n Connection connection = connect();\n\n PreparedStatement createCategoryTable = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS user (\"\n + \"id INTEGER PRIMARY KEY, \"\n + \"username VARCHAR(100),\"\n + \"password VARCHAR(100),\"\n + \"UNIQUE(username, password)\"\n + \");\"\n );\n createCategoryTable.execute();\n createCategoryTable.close();\n\n connection.close();\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "public interface AgroalSecurityProvider {\n\n /**\n * Converts a custom principal / credential objects to properties to be passed to the JDBC driver.\n * @return null if not capable of handle the security object, otherwise return a {@link Properties} object even if empty.\n */\n Properties getSecurityProperties(Object securityObject);\n}", "String getUserPassword();", "private void authenticate(String user, String pass) {\n }", "@BeforeClass\r\n public static void init() throws ConnectionException {\r\n\r\n Authenticated<EnterpriseConnection> authenticated = Authenticator.asUser(\r\n properties.getUserName(),\r\n properties.getPassword(),\r\n Connector::newEnterpriseConnection\r\n );\r\n\r\n runner.initialize(authenticated);\r\n\r\n }", "public Authentication(String user, char[] password) {\n this.user = user;\n this.password = password;\n }", "@Override\n \t\t\t\tpublic JDBCConnectionCredentials getCleanDatabaseCredentials() {\n \t\t\t\t\treturn new JDBCConnectionCredentials(\"jdbc:virtuoso://localhost:1111/UID=dba/PWD=dba\", \"dba\", \"dba\");\n \t\t\t\t}", "final String loginAsAutoUser() {\r\n \treturn loginAsAutoUser(false);\r\n }", "private void getUserNamePwd() {\n\n try {\n // get Application Connection ID\n LogonCoreContext lgCtx = LogonCore.getInstance().getLogonContext();\n userName = lgCtx.getBackendUser();\n pwd = lgCtx.getBackendPassword();\n appConnID = LogonCore.getInstance().getLogonContext()\n .getConnId();\n } catch (LogonCoreException e) {\n LogManager.writeLogError(Constants.device_reg_failed_txt, e);\n }\n }", "User login(String username, String password);", "public void setupUser() {\n }", "AionAddress createAccount(String password);", "public AuthPacket()\n\t{\n\t\tuserID = \"\";\n\t\tpassword = \"\";\n\t\tstudentName = \"\";\n\t\tnew_password = \"\";\n\t\tchangePass = false;\n\t\tgrantAccess = false;\n\t\tstandard = -1;\n\t\terrorCode = -1;\n\t}", "private void createUser(final String email, final String password) {\n\n }", "AuthenticationMethod createAuthenticationMethod();", "@Override\r\n\tprotected void configure(AuthenticationManagerBuilder auth) throws Exception {\n\t\tauth.jdbcAuthentication().dataSource(dataSource).withDefaultSchema()\r\n\t\t\t\t.withUser(User.withUsername(\"user\").password(\"user\").roles(\"USER\"))\r\n\t\t\t\t.withUser(User.withUsername(\"admin\").password(\"admin\").roles(\"ADMIN\"))\r\n\t\t\t\t.usersByUsernameQuery(\"select username,password,enabled from users where username=?\")\r\n\t\t\t\t.authoritiesByUsernameQuery(\"select username,authority from authorities where username=?\");\r\n\t}", "public AppUser() {\r\n\t\tsuper();\r\n\t}", "public DbUser() {\r\n\t}", "public SqlUser(String user, String password, String defaultDatabase) {\n\n this.user = user;\n this.password = password;\n this.defaultDatabase = defaultDatabase;\n\n }", "public User(String _username, String _password, String _employeeType) {\n // TODO implement here\n username = _username;\n password = _password;\n employeeType = _employeeType;\n// String taskId = UUID.randomUUID().toString();\n }", "protected void setUp() \r\n {\n System.out.println(\"Setting up User Test !\");\r\n \t//lProps = new Properties();\t\r\n //lProps.put(Context.INITIAL_CONTEXT_FACTORY,lContextFactory);\r\n //lProps.put(Context.PROVIDER_URL,lURL);\r\n //lProps.put(Context.URL_PKG_PREFIXES,lPrefixes);\r\n try\r\n {\r\n lProps.list(System.out);\r\n lIC = new InitialContext(lProps);\r\n //sLog.debug(\"Created Initial Context\");\r\n System.out.println(\"Created Initial Context-looking for UserHome\");\r\n Object homeObj = lIC.lookup(lJndiName);\r\n System.out.println(\"got Object!\");\r\n lHome = (UserHome) PortableRemoteObject.narrow(homeObj,UserHome.class); \r\n \r\n //lSessionHome = (PJVTProducerSessionHome) lIC.lookup(lJndiName);\r\n \r\n System.out.println(\"User Home:\"+lHome.toString());\r\n \r\n }\r\n catch(Throwable t)\r\n {\r\n t.printStackTrace();\r\n }\r\n\t}", "@Override\n \t\t\t\tpublic JDBCConnectionCredentials getDirtyDatabaseCredentials() {\n \t\t\t\t\treturn new JDBCConnectionCredentials(\"jdbc:virtuoso://localhost:1112/UID=dba/PWD=dba\", \"dba\", \"dba\");\n \t\t\t\t}", "public BasicAuthenticator (String realm) {\n this.realm = realm;\n }", "public Optional<AuthLoginOci> authLoginOci() {\n return Codegen.objectProp(\"authLoginOci\", AuthLoginOci.class).config(config).get();\n }", "boolean authenticate(String userName, String password);", "AbstractCredentialModel createBasicCredential(String username, String password);", "ApplicationUser getUser();", "private String getUserQuery() {\n return \"select UserName,Password, Enabled from users where UserName=?\";\n //return \"select username,password, enabled from users_temp where username=?\";\n }", "BaseUser createAdminUser(Application application);", "public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }", "public SecurityUser() {\n\t\tsuper();\n\t}", "public AuthRecord(String email, String salt, String password, OffsetDateTime createdAt, String createdBy, OffsetDateTime lastModifiedAt, String lastModifiedBy) {\n super(Auth.AUTH);\n\n set(0, email);\n set(1, salt);\n set(2, password);\n set(3, createdAt);\n set(4, createdBy);\n set(5, lastModifiedAt);\n set(6, lastModifiedBy);\n }", "private AppAuth() {\n }", "public User doAuthentication(String account, String password);", "protected abstract PlayerAuth createPlayerAuthObject(P params);", "public Users(String username, String password, String email, String phone)\r\n/* 53: */ {\r\n/* 54:67 */ this.username = username;\r\n/* 55:68 */ this.password = password;\r\n/* 56:69 */ this.email = email;\r\n/* 57:70 */ this.phone = phone;\r\n/* 58: */ }", "private String createOracleConnString(String[] paramArray)\n\t\t\tthrows AFTException {\n\n\t\tLOGGER.debug(\"User passed Oracle DB type\");\n\n\t\tString connString = null;\n\n\t\tString[] connPropertyNames = new String[] { \"uid\", \"pwd\", \"host\",\n\t\t\t\t\"port\", \"sid\" };\n\n\t\tString paramList = Arrays.asList(paramArray).toString();\n\n\t\t// if user has not provided SID\n\t\tif (!paramList.toLowerCase().contains(\"sid\")) {\n\t\t\terrorMessage = \"Parameter does not include SID. \"\n\t\t\t\t\t+ \"Please refer to wiki FAQ on how to create connection string for Oracle database\";\n\t\t\tLOGGER.error(errorMessage);\n\t\t\tthrow new AFTException(errorMessage);\n\t\t}\n\n\t\t// if user has not provided UID\n\t\tif (!paramList.toLowerCase().contains(\"uid\")) {\n\t\t\terrorMessage = \"Parameter does not include Username. \"\n\t\t\t\t\t+ \"Please refer to wiki FAQ on how to create connection string for Oracle database\";\n\t\t\tLOGGER.error(errorMessage);\n\t\t\tthrow new AFTException(errorMessage);\n\t\t}\n\n\t\t// if user has not provided PWD\n\t\tif (!paramList.toLowerCase().contains(\"pwd\")) {\n\t\t\terrorMessage = \"Parameter does not include Password. \"\n\t\t\t\t\t+ \"Please refer to wiki FAQ on how to create connection string for Oracle database\";\n\t\t\tLOGGER.error(errorMessage);\n\t\t\tthrow new AFTException(errorMessage);\n\t\t}\n\n\t\tMap<String, String> connPropertyValues = new HashMap<String, String>();\n\n\t\tconnPropertyValues = extractPropertyValues(paramArray,\n\t\t\t\tconnPropertyNames);\n\n\t\tconnString = \"jdbc:oracle:thin:@\";\n\n\t\tif (connPropertyValues.containsKey(\"host\")) {\n\t\t\tconnString = connString + connPropertyValues.get(\"host\");\n\t\t}\n\n\t\tif (connPropertyValues.containsKey(\"port\")) {\n\t\t\tconnString = connString + \":\" + connPropertyValues.get(\"port\");\n\t\t}\n\n\t\tif (connPropertyValues.containsKey(\"sid\")) {\n\t\t\tconnString = connString + \":\" + connPropertyValues.get(\"sid\");\n\t\t}\n\n\t\tif (connPropertyValues.containsKey(\"uid\")) {\n\n\t\t\tconnUidPwdProp.put(\"uid\", connPropertyValues.get(\"uid\"));\n\n\t\t\tconnUidPwdProp.put(\"pwd\", connPropertyValues.get(\"pwd\"));\n\t\t}\n\n\t\tconnPropertyValues.clear();\n\n\t\treturn connString;\n\t}", "public Optional<AuthLoginUserpass> authLoginUserpass() {\n return Codegen.objectProp(\"authLoginUserpass\", AuthLoginUserpass.class).config(config).get();\n }", "AuthenticationToken authenticate(String username, CharSequence password) throws Exception;", "public void createUser(String userName, String password,\n boolean createDB) throws Exception;", "private void login() {\n setCredentials();\n setSysProperties();\n\n Properties sysProperties = System.getProperties();\n sysProperties.put(\"mail.store.protocol\", \"imaps\");\n this.session = Session.getInstance(sysProperties,\n new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return new PasswordAuthentication(username, password);\n }\n });\n }", "public AppUser(String email, String firstName, String lastName) {\n \tthis.email = email;\n \tthis.firstName = firstName;\n \tthis.lastName = lastName;\n \tthis.password = \"password\";\n }", "public void setDatabaseUser(String sDatabaseUser) throws IOException;", "@Override\n public boolean auth(String email, String pseudonyme) {\n Properties props = new Properties();\n props.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"localhost\");\n props.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n props.setProperty(\"java.naming.factory.initial\", \"com.sun.enterprise.naming.SerialInitContextFactory\");\n props.setProperty(\"java.naming.factory.url.pkgs\", \"com.sun.enterprise.naming\");\n props.setProperty(\"java.naming.factory.state\", \"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl\");\n \n StatelessDirectoryManagerBeanRemote sb = null;\n InitialContext ic;\n \n try {\n ic = new InitialContext(props);\n sb = (StatelessDirectoryManagerBeanRemote)ic.lookup(\"com.master2.datascale.directorymanager.bean.StatelessDirectoryManagerBeanRemote\");\n\t\t\t\n } catch (NamingException ex) {\n Logger.getLogger(StatefulAuctionManagerBean.class.getName()).log(Level.SEVERE, null, ex);\n }\n\t\t\t\n return sb.auth(email, pseudonyme);\n }", "java.lang.String getCred();", "private User convert(ResultSet rs) throws SQLException, NoSuchAlgorithmException {\n User user = new User(\n rs.getLong(1),\n rs.getString(2),\n new HashedString(rs.getString(3), true),\n new Email(rs.getString(4)));\n return user;\n }", "public StrColumn getAuthAsymId() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"auth_asym_id\", StrColumn::new) :\n getBinaryColumn(\"auth_asym_id\"));\n }", "public Connection connect(Properties properties, Session session) throws DatabaseException, ValidationException {\n String user = properties.getProperty(\"user\");\n DataSource dataSource = getDataSource();\n if (dataSource == null) {\n try {\n int type = lookupType;\n // If lookupType is != UNDEFINED_LOOKUP that means that a user is using the deprecated method yet so\n // we need to honor that value.\n if(lookupType == UNDEFINED_LOOKUP) {\n type = session.getServerPlatform().getJNDIConnectorLookupType();\n }\n\n //bug#2761428 and 4405389 JBoss needs to look up datasources based on a string not a composite or compound name\n if (type == STRING_LOOKUP) {\n dataSource = (DataSource)getContext().lookup(getName());\n } else if (type == COMPOSITE_NAME_LOOKUP) {\n dataSource = (DataSource)getContext().lookup(new CompositeName(name));\n } else {\n dataSource = (DataSource)getContext().lookup(new CompoundName(name, new Properties()));\n }\n this.setDataSource(dataSource);\n } catch (NamingException exception) {\n throw ValidationException.cannotAcquireDataSource(getName(), exception);\n }\n }\n\n if (!this.isCallbackRegistered && session.getPlatform().hasPartitioningCallback()) {\n session.getPlatform().getPartitioningCallback().register(dataSource, session);\n this.isCallbackRegistered = true;\n }\n try {\n // WebLogic connection pools do not require a user name and password.\n // JDBCLogin usually initializes these values with an empty string.\n // WebLogic data source does not support the getConnection() call with arguments\n // it only supports the zero argument call. DM 26/07/2000\n if ((user == null) || (user.length() == 0)) {\n return dataSource.getConnection();\n } else {\n Object passwordObject = properties.get(\"password\");\n String password = null;\n if (passwordObject instanceof char[]) {\n password = new String((char[])passwordObject);\n } else if (passwordObject instanceof String) {\n password = (String) passwordObject;\n }\n return dataSource.getConnection(user, password);\n }\n } catch (SQLException exception) {\n throw DatabaseException.sqlException(exception, true);\n }\n }", "public com.sun.jna.PointerType login(Credentials c) throws RelationException;", "@Bean\n public DaoAuthenticationProvider authenticationProvider() {\n final DaoAuthenticationProvider prov = new DaoAuthenticationProvider();\n prov.setUserDetailsService(this.userDetails());\n prov.setPasswordEncoder(this.passwordEncoder());\n return prov;\n }", "Registration(String u, char[] fPassword, char[] sPassword)\n\t{//constructor that initializes the variables above\n\t\tusername = u;\n\t\tfirstPassword = new String(fPassword);\n\t\tsecondPassword = new String(sPassword);\n\t}", "public Person login(String username, String password);", "public AppUser() {\n super();\n }", "public void addUserCredentials(String login, String password) throws SQLException;", "public static Connection AuthA(String auth, String mdp) throws SQLException {\n try {\n //Appel la methode ConnectBase de ConnectDB pour faire la requete si le login et le MDP exite\n cnx = ConnectDB.ConnectBase();\n st = cnx.createStatement();\n //utilisation de PreparedStatement afin d'eviter les injection SQL pour securiser ll'acces aux donnees\n PreparedStatement sql = cnx.prepareStatement(\"select login,mdp from admin where login=? AND mdp=?\");\n //Les champs de la methode qui se remplissent lors de la saisie\n sql.setString(1, auth);\n sql.setString(2, mdp);\n\n //Execution de la requete\n rst = sql.executeQuery();\n if (rst.next()) {\n System.out.print(\"->\");\n System.out.println(rst.getString(\"login\") + \" \");\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return cnx;\n }", "List<String> authenticateUser(String userName, String password);", "public DBCredentials() {\n try {\n // Get the inputStream\n InputStream inputStream = this.getClass().getClassLoader()\n .getResourceAsStream(file);\n\n Properties properties = new Properties();\n\n // load the inputStream using the Properties\n properties.load(inputStream);\n // get the value of the property\n this.dbUser = properties.getProperty(\"Username\");\n this.dbPassword = properties.getProperty(\"Password\");\n this.dbUrl = properties.getProperty(\"DataBase\");\n\n } catch (IOException e) {\n System.out.println(\"IOException\");\n e.printStackTrace();\n }\n }", "@Autowired\n\tpublic void configurerSecurityGlobal(AuthenticationManagerBuilder builder) throws Exception {\n\t\tbuilder.jdbcAuthentication()\n\t\t.dataSource(dataSource)\n\t\t.passwordEncoder(passEncoder)\n\t\t.authoritiesByUsernameQuery(\"select username, password, enabled from users where username=?\")\n\t\t.authoritiesByUsernameQuery(\"select u.username, r.rol from users u, roles r where r.user_id = u.Id_user and u.username=?\");\n\t}", "public UserRecord(Integer id, String phonenum, String username, String password, String email, String corporation, Integer industry, String sites, String keyword, String salt, Integer vip, LocalDateTime loginTime, LocalDateTime signupTime, LocalDateTime vipEndTime, String friend) {\n super(User.USER);\n\n set(0, id);\n set(1, phonenum);\n set(2, username);\n set(3, password);\n set(4, email);\n set(5, corporation);\n set(6, industry);\n set(7, sites);\n set(8, keyword);\n set(9, salt);\n set(10, vip);\n set(11, loginTime);\n set(12, signupTime);\n set(13, vipEndTime);\n set(14, friend);\n }" ]
[ "0.641283", "0.5965148", "0.5707399", "0.5660991", "0.56554615", "0.56212044", "0.55973107", "0.5583596", "0.55410975", "0.54881895", "0.54716015", "0.54647917", "0.5455054", "0.545173", "0.5451399", "0.54281706", "0.5365143", "0.53559625", "0.53500617", "0.53500617", "0.5335863", "0.53296566", "0.53178316", "0.53157955", "0.5304942", "0.5297952", "0.52924275", "0.52905524", "0.52905524", "0.52905524", "0.5235477", "0.5225803", "0.5224804", "0.5221032", "0.52188826", "0.52171355", "0.5203945", "0.5201812", "0.52013135", "0.5198818", "0.5186916", "0.51765436", "0.5142258", "0.5137193", "0.5131953", "0.5131641", "0.5111525", "0.51091725", "0.5099811", "0.5088166", "0.50876456", "0.5070334", "0.50643957", "0.50610673", "0.50340104", "0.50268936", "0.501724", "0.50116885", "0.5006732", "0.50038105", "0.5003544", "0.5002817", "0.49985906", "0.49816024", "0.49812058", "0.4974859", "0.4971862", "0.49706262", "0.497054", "0.49647945", "0.49630094", "0.49613014", "0.49564934", "0.49525732", "0.49470133", "0.4946481", "0.49426052", "0.49386218", "0.4935285", "0.49300504", "0.4929437", "0.49258777", "0.49123117", "0.4899419", "0.48898536", "0.48897892", "0.48890266", "0.48809168", "0.48629326", "0.48576188", "0.48564044", "0.48509115", "0.48427558", "0.4840256", "0.48306286", "0.4828122", "0.48266223", "0.4822254", "0.48221436", "0.4821266" ]
0.5025373
56
attempts to authenticate a user
public final String authenticateUser(final String email, final String tok) throws BackendRequestException { if ((email == null) || (tok == null)) { throw new InvalidDataException( "one or more parameters was null or empty"); } final Map<String, String> attribs = new HashMap<>(2); attribs.put("email", email); attribs.put("password", tok); final RESTReport rr = RESTHandler.apiRequest( RESTHandler.RestAction.GET, RESTHandler.ACCOUNT_AUTH_ENTRY_POINT, attribs); delegateExceptionGeneration(rr); return rr.getResponseValue("sessionid"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void authenticateAction() {\n if (requestModel.getUsername().equals(\"superuser\")\n && requestModel.getPassword().equals(\"\")) {\n Collection<Webres> webres = getAllWebres();\n proceedWhenAuthenticated(new User(null, null, null, \"superuser\", \"\", null) {\n @Override\n public Collection<Webres> getAllowedResources() {\n return webres;\n }\n @Override\n public ActionController getDefaultController() {\n return ActionController.EMPLOYEES_SERVLET;\n }\n });\n return;\n }\n \n // try to authenticate against other credentials from the database\n Optional<User> u = getUserByCredentials(requestModel.getUsername(), requestModel.getPassword()); \n if (u.isPresent()) {\n proceedWhenAuthenticated(u.get());\n return;\n }\n \n // report authentication failed\n LOG.log(Level.INFO, \"{0} Authentication failed. Login: {1}, Password: {2}\", new Object[]{httpSession.getId(), requestModel.getUsername(), requestModel.getPassword()});\n SignInViewModel viewModel = new SignInViewModel(true);\n renderSignInView(viewModel);\n }", "public void authenticateUser()\r\n\t{\r\n\t\tsc.nextLine(); \r\n\t\tint index=loginattempt();\r\n\t}", "@Override\r\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows AuthenticationException {\r\n\tAppUser appUser = null;\r\n\r\n\ttry {\r\n\t\tappUser = new ObjectMapper().readValue(request.getInputStream(), AppUser.class);\r\n\t} catch (IOException e) {\r\n\t\tthrow new RuntimeException(e);\r\n\t}\r\n\r\n\t\tSystem.out.println(\"user one : \"+appUser.getUsername());\r\n\t\treturn authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(appUser.getUsername(), appUser.getPassword()));\r\n\t}", "@Override\n public Authentication attemptAuthentication(\n HttpServletRequest request,\n HttpServletResponse response) throws AuthenticationException {\n\n try {\n // 1. pobieramy dane uzytkownika ktory chce sie zalogowac\n AuthenticationUser user = new ObjectMapper().readValue(request.getInputStream(), AuthenticationUser.class);\n\n // 2. dokonujemy proby logowania\n return authenticationManager.authenticate(new UsernamePasswordAuthenticationToken(\n user.getUsername(),\n user.getPassword(),\n Collections.emptyList()\n ));\n } catch ( Exception e ) {\n throw new AppException(e.getMessage());\n }\n\n }", "private void authenticate(String user, String pass) {\n }", "User authenticate(String username, String password);", "@Override\n public Authentication attemptAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)\n throws AuthenticationException, IOException, ServletException {\n AccountCredentials credentials = new ObjectMapper().readValue(httpServletRequest.getInputStream(), AccountCredentials.class);\n UsernamePasswordAuthenticationToken token = new UsernamePasswordAuthenticationToken(credentials.getUsername(), credentials.getPassword());\n return getAuthenticationManager().authenticate(token);\n }", "@Override\n public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n \t\tthrows AuthenticationException {\n \treturn super.attemptAuthentication(request, response);\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n mUsrView.setError(null);\n mPasswordView.setError(null);\n\n String usr = mUsrView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n Tuple<String, String> creds = /*getCredentials()*/ SERVER_CREDENTIALS;\n\n boolean cancel = false;\n View focusView = null;\n\n if (!TextUtils.isEmpty(password)) {\n if (!mPasswordView.getText().toString().equals(creds.y)) {\n if (Util.D) Log.i(\"attemptLogin\", \"pwd was \" + mPasswordView.getText().toString());\n mPasswordView.setError(getString(R.string.error_incorrect_creds));\n cancel = true;\n }\n focusView = mPasswordView;\n }\n\n if (TextUtils.isEmpty(usr)) {\n mUsrView.setError(getString(R.string.error_field_required));\n focusView = mUsrView;\n cancel = true;\n } else if (!usr.equals(creds.x)) {\n mUsrView.setError(getString(R.string.error_incorrect_creds));\n focusView = mUsrView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n if (prefs != null)\n prefs.edit().putBoolean(getString(R.string.settingAuthorized), true);\n showProgress(true);\n mAuthTask = new UserLoginTask(usr, password);\n mAuthTask.execute((Void) null);\n }\n }", "@Override\n public Authentication attemptAuthentication(HttpServletRequest req,\n HttpServletResponse res) throws AuthenticationException {\n log.info(\"Attempting authentication\");\n try {\n LoginRequest creds = new ObjectMapper()\n .readValue(req.getInputStream(), LoginRequest.class);\n\n return getAuthenticationManager().authenticate(\n new UsernamePasswordAuthenticationToken(\n creds.getUsername(),\n creds.getPassword(),\n new ArrayList<>())\n );\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "LoggedUser authenticate(@Valid AccountCredentials credentials) throws IOException;", "int authenticateUser(IDAOSession session, String userName, String password);", "private void attemptLogin() {\n\n String username = mEmailView.getText().toString().trim();\n String idNumber = mIdNumber.getText().toString().trim();\n String password = mPasswordView.getText().toString().trim();\n\n if (TextUtils.isEmpty(username)) {\n// usernameView.setError(errorMessageUsernameRequired);\n// errorView = usernameView;\n }\n\n if (TextUtils.isEmpty(password)) {\n// password.setError(errorMessagePasswordRequired);\n// if (errorView == null) {\n// errorView = passwordView;\n// }\n }\n\n final User user = new User();\n ((DealerManager)getApplication()).setUser(user);\n navigateTo(R.id.nav_home);\n }", "boolean authenticate(String userName, String password);", "@Override\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException {\n\t\tfinal String requestURI = request.getRequestURI();\n\t\tUserAuthentication userAuth = null;\n\t\tUser user = null;\n\n\t\tif (requestURI.endsWith(OPENID_ACTION)) {\n\t\t\tAuthentication oidAuth = super.attemptAuthentication(request, response);\n\n\t\t\tif (oidAuth == null) {\n\t\t\t\t// hang on... redirecting to openid provider\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\t//success!\n\t\t\t\tAuthenticatedUserDetails userDetails = (AuthenticatedUserDetails) oidAuth.getPrincipal();\n\t\t\t\tuserAuth = new UserAuthentication(userDetails);\n\t\t\t\tuser = userDetails.getUser();\n\t\t\t}\n\t\t}\n\n\t\treturn SecurityUtils.checkIfActive(userAuth, user, true);\n\t}", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String name = mNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid user name.\n if (TextUtils.isEmpty(name)) {\n mNameView.setError(getString(R.string.error_field_required));\n focusView = mNameView;\n cancel = true;\n } else if (!isNameValid(name)) {\n mNameView.setError(getString(R.string.error_invalid_name));\n focusView = mNameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(name, password);\n mAuthTask.execute(mUrl);\n }\n }", "public void authenticate() {\n LOGGER.info(\"Authenticating user: {}\", this.name);\n WebSession result = null;\n try {\n result =\n getContext()\n .getAuthenticationMethod()\n .authenticate(\n getContext().getSessionManagementMethod(),\n this.authenticationCredentials,\n this);\n } catch (UnsupportedAuthenticationCredentialsException e) {\n LOGGER.error(\"User does not have the expected type of credentials:\", e);\n } catch (Exception e) {\n LOGGER.error(\"An error occurred while authenticating:\", e);\n return;\n }\n // no issues appear if a simultaneous call to #queueAuthentication() is made\n synchronized (this) {\n this.getAuthenticationState().setLastSuccessfulAuthTime(System.currentTimeMillis());\n this.authenticatedSession = result;\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email.replace(\" \", \"%20\"), password.replace(\" \", \"%20\"));\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUserNameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String userName = mUserNameView.getText().toString();\n String password = mPasswordView.getText().toString();\n UserDetail user = new UserDetail(userName, password);\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n user = null;\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(userName)) {\n mUserNameView.setError(getString(R.string.error_field_required));\n focusView = mUserNameView;\n\n\n }\n else if(user!=null && isNetworkConnected()) {\n getPermissiontoAccessInternet();\n mAuthTask = new UserLoginTask(user);\n mAuthTask.execute((Void) null);\n\n }\n// } else if (!isUserNameValid(userName)) {\n// mUserNameView.setError(getString(R.string.error_invalid_email));\n// focusView = mUserNameView;\n// cancel = true;\n// }\n\n// if (cancel) {\n// // There was an error; don't attempt login and focus the first\n// // form field with an error.\n// focusView.requestFocus();\n// } else {\n// // Show a progress spinner, and kick off a background task to\n// // perform the user login attempt.\n//\n// }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password, false);\n mAuthTask.execute((Void) null);\n }\n }", "public void authenticateUser() {\n\n String username = viewUsername.getText().toString();\n String password = viewPassword.getText().toString();\n\n Timber.v(\"authenticateUser called username: \" + username);\n activity.getOnboardingViewModel().authenticateUser(username, password);\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n\n }", "private void attemptLogin() {\n String email = text_email.getText().toString();\n String password = text_password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n text_password.setError(getString(R.string.error_field_required));\n focusView = text_password;\n cancel = true;\n }\n if (!isPasswordValid(password)) {\n text_password.setError(getString(R.string.error_invalid_password));\n focusView = text_password;\n cancel = true;\n }\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n text_email.setError(getString(R.string.error_field_required));\n focusView = text_email;\n cancel = true;\n } else if (!isEmailValid(email)) {\n text_email.setError(getString(R.string.error_invalid_email));\n focusView = text_email;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n //showProgress(true);\n login(USER_NORMAL);\n }\n }", "public void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(this, email, password);\n mAuthTask.execute((Void) null);\n }\n }", "EmployeeMaster authenticateUser(int employeeId, String password);", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Reset errors.\r\n\t\tmUserView.setError(null);\r\n\t\tmPasswordView.setError(null);\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmUser = mUserView.getText().toString();\r\n\t\tmPassword = mPasswordView.getText().toString();\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 3) {\r\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = mPasswordView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\t// Check for a valid username address.\r\n\t\tif (TextUtils.isEmpty(mUser)) {\r\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\r\n\t\t\tfocusView = mUserView;\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_signing_in);\r\n\t\t\tmAuthTask = new UserLoginTask(this);\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "User login(String email, String password) throws AuthenticationException;", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n// showProgress(true);\n mEmail = email;\n mPassword = password;\n mAuthTask = new UserLoginTask(this);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n // Reset errors.\n edtID.setError(null);\n edtPassword.setError(null);\n\n // Store values at the time of the login attempt.\n String userId = edtID.getText().toString();\n String password = edtPassword.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n edtPassword.setError(\"Password is empty\");\n focusView = edtPassword;\n cancel = true;\n } else if(!isPasswordValid(password)) {\n edtPassword.setError(getString(R.string.error_invalid_password));\n focusView = edtPassword;\n cancel = true;\n }\n\n // Check for a valid user id.\n if (TextUtils.isEmpty(userId)) {\n edtID.setError(getString(R.string.error_field_required));\n focusView = edtID;\n cancel = true;\n } else if (!isUserIdValid(userId)) {\n edtID.setError(getString(R.string.error_invalid_id));\n focusView = edtID;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n JSONObject json = new JSONObject();\n try {\n json.put(\"user_id\", userId);\n json.put(\"password\", password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n reqUserID = userId;\n reqUserPW = password;\n loginConnector.request(json);\n }\n }", "@Override\n\tpublic Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows AuthenticationException, IOException, ServletException {\n\t\tString url = request.getServletPath();\n\t\tString header = request.getHeader(AUTHORIZATION);\n\t\tlogger.debug(\"[authorized] request header : \" + header + \",request url :\" + url);\n\t\tif (header != null) {\n\t\t\tfinal int space = header.indexOf(' ');\n\t\t\tif (space > 0) {\n\t\t\t\tfinal String method = header.substring(0, space);\n\t\t\t\tif (PREFIX.equalsIgnoreCase(method)) {\n\t\t\t\t\tfinal String credentials = header.substring(space + 1);\n\t\t\t\t\tAbstractAuthenticationToken userAuthenticationToken = authUserByToken(credentials);\n\t\t\t\t\tif (userAuthenticationToken == null) {\n\t\t\t\t\t\tlogger.error(\"[unauthorized] access token is empty in header ,request header : \"\n\t\t\t\t\t\t\t\t+ header + \",request url :\" + url);\n\t\t\t\t\t\tthrow new AuthTokenException(\"2.404\",\n\t\t\t\t\t\t\t\tMessageFormat.format(\"Error | {0}\", \"Bad Token\"));\n\t\t\t\t\t}\n\t\t\t\t\treturn this.getAuthenticationManager().authenticate(userAuthenticationToken);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new AnonymousAuthenticationToken(UUID.randomUUID().toString(), \"anonymousUser\",\n\t\t\t\tAuthorityUtils.createAuthorityList(\"ROLE_ANONYMOUS\"));\n\t}", "public final Session tryToAuthenticate(final String user, final String password)\r\n {\n return null;\r\n }", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "void loginAttempt(String email, String password);", "private void attemptLogin() {\n\n // Reset errors.\n mEmailField.setError(null);\n mPasswordField.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailField.getText().toString();\n String password = mPasswordField.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordField.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordField;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailField.setError(getString(R.string.error_field_required));\n focusView = mEmailField;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailField.setError(getString(R.string.error_invalid_email));\n focusView = mEmailField;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n signIn(email, password);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.kkkkkkkkl[]/\\]\n\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n\n // Intent signInActivityIntent= new Intent(this,UserProfileActivity.class);\n // startActivity(signInActivityIntent);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n login(email, password);\n\n }\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mPhoneView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String phone = mPhoneView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(getString(R.string.error_field_required));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid phone address.\r\n if (TextUtils.isEmpty(phone)) {\r\n mPhoneView.setError(getString(R.string.error_field_required));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n } else if (!isPhoneValid(phone)) {\r\n mPhoneView.setError(getString(R.string.error_invalid_phone));\r\n focusView = mPhoneView;\r\n cancel = true;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // Show a progress spinner, and kick off a background task to\r\n // perform the user login attempt.\r\n showProgress(true);\r\n mAuthTask = new UserLoginTask(phone, password);\r\n mAuthTask.execute((Void) null);\r\n }\r\n }", "private Authentication tryToAuthenticateWithUsernameAndPassword(String username, String password) {\n\t\tUsernamePasswordAuthenticationToken requestAuthentication = new UsernamePasswordAuthenticationToken(username, password);\n\t\treturn tryToAuthenticate(requestAuthentication);\n \n\t}", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n // Sets up a new login task with the provide login form\n mAuthTask = new UserLoginTask(email, password);\n try {\n // Executes login task\n mAuthTask.execute();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public User doAuthentication(String account, String password);", "public void attemptLogin() {\n\n\t\t// Reset errors.\n\t\tmUserView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Save values.\n\t\tmUser = mUserView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t// Check for a valid password.\n\t\tif (TextUtils.isEmpty(mPassword)) {\n\t\t\tmPasswordView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t} else if (mPassword.length() < 4) {\n\t\t\tmPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t\tfocusView = mPasswordView;\n\t\t\tcancel = true;\n\t\t}\n\n\t\t// Check for a valid user.\n\t\tif (TextUtils.isEmpty(mUser)) {\n\t\t\tmUserView.setError(getString(R.string.error_field_required));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t} else if (mUser.length() < 4) {\n\t\t\tmUserView.setError(getString(R.string.error_invalid_user));\n\t\t\tfocusView = mUserView;\n\t\t\tcancel = true;\n\t\t}\n\t\t\t\t\n\t\tif (cancel) {\n\t\t\t// There is an error, so registration does not success and focus on the error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Send information to server.\n\t\t\tmLoginStatusMessageView.setText(R.string.login_progress_registering);\n\t\t\tshowProgress(true);\n\t\t\tsendInfoToServer();\n\t\t}\n\t}", "boolean isAuthenticate(String username, String password) throws UserDaoException;", "private void attemptLogin() {\n if (authTask != null) {\n return;\n }\n\n // Reset errors.\n usernameView.setError(null);\n passwordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = usernameView.getText().toString();\n String password = passwordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n passwordView.setError(getString(R.string.error_invalid_password));\n focusView = passwordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n usernameView.setError(getString(R.string.error_field_required));\n focusView = usernameView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n usernameView.setError(getString(R.string.error_invalid_email));\n focusView = usernameView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n //set loginID for session\n session.setID(email);\n\n startDashboard();\n /*authTask = new UserLoginTask(email, password);\n authTask.execute((Void) null);*/\n }\n }", "private static void attemptToLogin() {\n\t\tString id = null;\n\t\tString password = null;\n\t\tString role = null;\n\t\tint chances = 3;\n\t\t//User will get 3 chances to login into the system.\n\t\twhile(chances-->0){\n\t\t\tlog.info(\"Email Id:\");\n\t\t\tid = sc.next();\n\t\t\tlog.info(\"Password:\");\n\t\t\tpassword = sc.next();\n\t\t\trole = LogInAuthentication.authenticate(id, password);\n\t\t\t//If correct credentials are entered then role of user will be fetch from the database. \n\t\t\tif(role == null) {\n\t\t\t\t//If role is not fetched, error and left chances will be shown.\n\t\t\t\tlog.error(\"Invalid EmailId or password\");\n\t\t\t\tlog.info(\"Chances left: \"+chances);\n\t\t\t}\n\t\t\telse\n\t\t\t\tbreak;\n\t\t}\n\t\t//After verifying credentials User will be on-board to its portal depending upon the role.\n\t\tonboard(id,role);\n\t}", "public Result authenticate() {\r\n // 1. Define class to send JSON response back\r\n class Login {\r\n public Long id;\r\n public String gamerTag;\r\n public String token;\r\n\r\n public Login() {\r\n }\r\n }\r\n\r\n // 2. Read email and password from request()\r\n JsonNode request = request().body().asJson();\r\n String gamerTag = request.get(\"gamerTag\").asText();\r\n String password = request.get(\"password\").asText();\r\n\r\n // 3. Find user with given gamerTag\r\n Login ret = new Login();\r\n User user = User.gamerTagLogin(gamerTag);\r\n if (user == null) {\r\n return unauthorized(Json.toJson(ret));\r\n }\r\n // 4. Compare password.\r\n String sha256 = User.getSha256(request.get(\"password\").asText());\r\n if (sha256.equals(user.getPassword())) {\r\n // Success\r\n String authToken = generateAuthToken();\r\n user.setToken(authToken);\r\n Ebean.update(user);\r\n ret.token = authToken;\r\n ret.gamerTag = user.getGamerTag();\r\n ret.id = user.getId();\r\n return ok(Json.toJson(ret));\r\n\r\n }\r\n // 5. Unauthorized access\r\n return unauthorized();\r\n }", "public boolean authenticateUser() {\r\n try {\r\n \r\n firstServerMessage();\r\n sendKeys();\r\n sessionKeyMsg();\r\n \r\n \r\n \r\n \treturn true;\r\n }\r\n \r\n catch(Exception ioe){\r\n System.out.println(\"Terminating session with Acct#: \" + currAcct.getNumber());\r\n //ioe.printStackTrace();\r\n return false;\r\n }\r\n \r\n }", "public void attemptLogin() {\n\t\t// Reset errors.\n\t\temailTextView.setError(null);\n\t\tpasswordTextView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\temail = emailTextView.getText().toString();\n\t\tpassword = passwordTextView.getText().toString();\n\n\t\tboolean cancel = false;\n\n\t\t// Check for a valid email address.\n\t\tcancel = Validate.PresenceOf(emailTextView);\n\t\tif (!cancel) cancel = Validate.PatternOf(emailTextView, Patterns.EMAIL_ADDRESS);\n\t\t\n\t\t// check valid password\n\t\tif (!cancel) cancel = Validate.PresenceOf(passwordTextView);\t\t\n\n\t\tif (!cancel) {\t\n\t\t\tKeyboard.hide(getActivity());\n\t\t\tlogin();\n\t\t}\n\t}", "@Test\n public void existingUserNOT_OK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }", "@Override\r\n public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response)\r\n\t throws AuthenticationException, IOException, ServletException {\r\n\t\r\n\t// ~~~ Token aus dem Header extrahieren\r\n\tString token;\r\n\ttry {\r\n\t token = request.getHeader(WebSecurityConfig.JWT_TOKEN_HEADER);\r\n\t token = token.substring(WebSecurityConfig.JWT_TOKEN_PREFIX.length());\r\n\t} catch (Exception e) {\r\n\t throw new FailedJWTAuthenticationException();\r\n\t}\r\n\t\r\n\t// ~~~ Token als Authentication verpackt weiterleiten\r\n\treturn getAuthenticationManager().authenticate(new JWTAuthenticationToken(JWT.decode(token)));\r\n }", "public void authenticate(LoginCredentials credentials) throws LoginException;", "public void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_user));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n\n // save data in local shared preferences\n if (savePassword.isChecked()) {\n saveLoginDetails(email, password);\n }\n\n\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\n if (mAuthTask != null) {\n return;\n }\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n boolean newUser = false;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password) || !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n } else {\n user = mDatabaseHelper.getUser(email);\n if (user.getPassword() != null) {\n if (!PasswordHash.checkHashEquality(user.getPassword(), password)) {\n mPasswordView.setError(getString(R.string.error_incorrect_password));\n focusView = mPasswordView;\n cancel = true;\n }\n } else {\n newUser = true;\n }\n }\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(email, password);\n mAuthTask.execute((Void) null);\n user = mDatabaseHelper.getUser(email);\n if (newUser) {\n Toast.makeText(this, \"New Account Created!\", Toast.LENGTH_SHORT).show();\n }\n Intent intent = new Intent(LoginActivity.this, ListActivity.class);\n intent.putExtra(\"User\", user);\n intent.putExtra(\"Target\", \"Locked\");\n startActivityForResult(intent, 0);\n }\n }", "private void attemptUsernamePasswordLogin()\n {\n if (mAuthTask != null)\n {\n return;\n }\n\n if(mLogInButton.getText().equals(getResources().getString(R.string.logout)))\n {\n mAuthTask = new RestCallerPostLoginTask(this,mStoredToken,MagazzinoService.getAuthenticationHeader(this),true);\n mAuthTask.execute(MagazzinoService.getLogoutService(this));\n return;\n }\n // Reset errors.\n mUsernameView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mUsernameView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password))\n {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email))\n {\n mUsernameView.setError(getString(R.string.error_field_required));\n focusView = mUsernameView;\n cancel = true;\n }\n else if (!isUsernameOrEmailValid(email))\n {\n mUsernameView.setError(getString(R.string.error_invalid_email));\n focusView = mUsernameView;\n cancel = true;\n }\n\n if (cancel)\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n return;\n }\n\n mAuthTask = new RestCallerPostLoginTask(this,email, password);\n mAuthTask.execute(MagazzinoService.getLoginService(this));\n\n }", "public static boolean authenticate(String username, String attemptedPassword){\n \t\tSaltHash sh = LoginDao.validate(username);\n \t\t\n \t\tString salt = sh.getsaltObject();\n String storedEncryptedPassword = sh.getpasswordObject();\n \n \n byte[] computePBKDF2AttemptedPassword = null ;\n try {\n computePBKDF2AttemptedPassword = pwdMgmtUtils.generateEncryptedPassword(attemptedPassword, pwdMgmtUtils.returnByteArray(salt)) ;\n } catch(GeneralSecurityException genSecExc) {System.out.println(genSecExc.getMessage() + \" \" + genSecExc.getCause() ) ; System.exit(1) ; } \n \n boolean successful_authentication = Arrays.equals(computePBKDF2AttemptedPassword, pwdMgmtUtils.returnByteArray(storedEncryptedPassword)) ;\n \n System.out.println(\"User authenticated ? \" + successful_authentication);\n return successful_authentication;\n }", "@Test\n public void nonExistingUser() {\n boolean result = auth.authenticateUser(\"Spiderman\", \"fido\", 0); \n //Then\n assertThat(result, is(false));\n }", "@Override\n\tpublic Authentication authenticate(Authentication authentication) throws AuthenticationException {\n\t\tString userId = authentication.getPrincipal().toString();\n\t\tString password = authentication.getCredentials().toString();\n\t\tUserInfo userAuth = Config.getInstance().getUserAuth();\n\t\tuserAuth.setUserEmail(userId);\n\t\tuserAuth.setUserPassword(password);\n\t\tLoginService loginService = Config.getInstance().getLoginService();\n\t\tUserInfo userInfo;\n\t\ttry{\n\t\t\tuserInfo = loginService.authenticateUser(userId,password);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new AuthenticationServiceException(\"1000\");\n\t\t}\n\t\tif (userInfo != null)\n\t\t{\n\t\t\treturn grantNormalRole(userInfo, authentication);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// No user with this banner id found.\n\t\t\tthrow new BadCredentialsException(\"1001\");\n\t\t}\n\t}", "@Order(1)\n\t@Test\n\tpublic void Attempt_LoginSuccess() throws AuthException\n\t{\n\t\t//Test to make certain we login correctly.\n\t\tString user = \"null\", pass = \"andVoid\";\n\t\tboolean expected = true, actual = as.authenticateUser(user, pass);\n\t\tassertEquals(expected,actual,\"This is the correct login credentials for the System Admin\");\n\t}", "String signIn(String userName, String password) throws UserNotFoundException;", "AuthenticationToken authenticate(String username, CharSequence password) throws Exception;", "public void attemptLogin() {\n\t\tif (mAuthTask != null) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Reset errors.\n\t\tmEmailView.setError(null);\n\t\tmPasswordView.setError(null);\n\n\t\t// Store values at the time of the login attempt.\n\t\tmEmail = mEmailView.getText().toString();\n\t\tmPassword = mPasswordView.getText().toString();\n\n\t\tboolean cancel = false;\n\t\tView focusView = null;\n\n\t\t/*\n\t\t * // Check for a valid password. if (TextUtils.isEmpty(mPassword)) {\n\t\t * mPasswordView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mPasswordView; cancel = true; } else if\n\t\t * (mPassword.length() < 4) {\n\t\t * mPasswordView.setError(getString(R.string.error_invalid_password));\n\t\t * focusView = mPasswordView; cancel = true; }\n\t\t * \n\t\t * // Check for a valid email address. if (TextUtils.isEmpty(mEmail)) {\n\t\t * mEmailView.setError(getString(R.string.error_field_required));\n\t\t * focusView = mEmailView; cancel = true; } else if\n\t\t * (!mEmail.contains(\"@\")) {\n\t\t * mEmailView.setError(getString(R.string.error_invalid_email));\n\t\t * focusView = mEmailView; cancel = true; }\n\t\t */\n\t\tif (cancel) {\n\t\t\t// There was an error; don't attempt login and focus the first\n\t\t\t// form field with an error.\n\t\t\tfocusView.requestFocus();\n\t\t} else {\n\t\t\t// Show a progress spinner, and kick off a background task to\n\t\t\t// perform the user login attempt.\n\t\t\tshowProgress(true);\n\t\t\tmAuthTask = new UserLoginTask();\n\t\t\tmAuthTask.execute((Void) null);\n\t\t}\n\t}", "private void attemptLogin(){\n //reset error\n et_email.setError(null);\n et_password.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = et_email.getText().toString();\n final String password = et_password.getText().toString();\n final boolean finish = false;\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n et_password.setError(getString(R.string.error_invalid_password));\n focusView = et_password;\n cancel = true;\n }else if (!isEmailValid(email)) {\n et_email.setError(getString(R.string.error_invalid_email));\n focusView = et_email;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n JSONObject json = new JSONObject();\n\n try {\n json.put(\"ctrl\", \"login\");\n json.put(\"email\", email);\n json.put(\"password\", password);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n String requete = json.toString();\n Log.v(\"req\", requete);\n HttpQuery login = new HttpQuery(requete, this);\n login.execute();\n }\n\n\n }", "public boolean authenticate(String s) {\r\n // TODO - implement User.authenticate\r\n throw new UnsupportedOperationException();\r\n }", "protected synchronized void login() {\n\t\tauthenticate();\n\t}", "private void attemptLogin() {\n final UserManager um = new UserManager();\n final String userName = userText.getText().toString();\n final String userPass = passwordText.getText().toString();\n final User attemptUser = um.login(userName, userPass);\n if (attemptUser != null) {\n SessionState.getInstance().startSession(attemptUser,\n getApplicationContext());\n resetFields();\n switch (attemptUser.getUserStatus()) {\n case USER:\n startBMS();\n break;\n case ADMIN:\n startAdmin();\n break;\n case BANNED:\n Toast.makeText(LoginActivity.this, \"Sorry, this user is \" +\n \"currently banned\", Toast\n .LENGTH_SHORT).show();\n break;\n case LOCKED:\n Toast.makeText(LoginActivity.this, \"Sorry, this user is \" +\n \"currently locked\", Toast\n .LENGTH_SHORT).show();\n break;\n\n }\n } else {\n if (!um.userExists(userName)) {\n userText.setError(\"Invalid Username\");\n } else {\n passwordText.setError(\"Invalid Password\");\n loginAttempts++;\n if (loginAttempts >= LOCK_ATTEMPTS) {\n final User attemptedUser = um.findUserById(userName);\n attemptedUser.setUserStatus(User.UserStatus.LOCKED);\n um.updateUser(attemptedUser);\n Toast.makeText(LoginActivity.this, \"Account locked: \" +\n \"too many attempts\", Toast\n .LENGTH_SHORT).show();\n }\n }\n }\n }", "public void attemptLogin() {\n\n\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n mEmail = mEmailView.getText().toString();\n mPassword = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if (TextUtils.isEmpty(mPassword)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (mPassword.length() < 4) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(mEmail)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mEmail.contains(\"@\")) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView.setText(R.string.login_progress_signing_in);\n showProgress(true);\n mAuthTask = new UserLoginTask();\n mAuthTask.execute((Void) null);\n }\n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n // Check for a valid password, if the user entered one.\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n mAuthTask = new UserLoginTask(email, password);\r\n try {\r\n Boolean logStatus = mAuthTask.execute(\"http://shubhamgoswami.me/login\").get();\r\n if(logStatus){\r\n SQLiteDatabase db = openOrCreateDatabase(\"adharShila\",MODE_PRIVATE, null);\r\n db.execSQL(\"UPDATE LOGSTATUS SET USERNAME=\\\"\"+mEmailView.getText()+\"\\\", STATUS=1 WHERE ENTRY=1\");\r\n db.close();\r\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\r\n i.putExtra(\"username\", mEmailView.getText());\r\n i.putExtra(\"password\", password);\r\n startActivity(i);\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public User loginUser(User userToAuthenticate) throws UnknownUserException, IncorrectPasswordException{\n String username = userToAuthenticate.getUsername();\n String password = userToAuthenticate.getPassword();\n\n //checking if username exists\n if(userRepository.existsByUsername(username)){\n //checking if correct password of username trying to log in\n if(userRepository.findByUsername(username).getPassword().equals(password)){\n //generating encoded token for user trying to login\n userToAuthenticate.setToken(generateToken(userToAuthenticate));\n return userToAuthenticate;\n }else { //throw error as password incorrect\n throw new IncorrectPasswordException(\"Password incorrect, please double check\");\n }\n }else{ //throw error if username doesn't exist\n throw new UnknownUserException(\"Unknown username, please correct or register\");\n }\n }", "@Test\n public void existingUserOK_PW() {\n boolean result = auth.authenticateUser(\"Ole\", \"secret\", 0); \n //Then\n assertThat(result, is(true));\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n\n if(isOnline()){\n try {\n ApiRequests.POST(\"login/\", new Callback() {\n @Override\n public void onFailure(Call call, final IOException e) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n Log.e(\"error:\", \"burda\");\n }\n });\n }\n\n @Override\n public void onResponse(Call call, final Response response) throws IOException {\n\n try {\n processTheResponse(response.body().string());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }, email, password);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n else {\n InternetConnectionError();\n }\n }\n }", "private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_email_is_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!mPresenter.isEmailValid(email)) {\n //mEmailView.setError(getString(R.string.error_invalid_email));\n customConfirmDialog(getString(R.string.message_incorrect_email), getString(R.string.message_require_format_email));\n focusView = mEmailView;\n cancel = true;\n }else if (!TextUtils.isEmpty(password) && !mPresenter.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n //customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }else if(TextUtils.isEmpty(password))\n {\n customConfirmDialog(getString(R.string.message_incorrect_password), getString(R.string.message_please_insert_valid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n if (isNetworkOffline()) {\n return;\n }\n showLoadingDialog(getString(R.string.message_please_wait));\n mPresenter.doLoginByEmail(email, password);\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !validateUtil.isPasswordValid(password)) {\n mPasswordView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!validateUtil.isEmailValid(email)) {\n mEmailView.setError(getString(net.iquesoft.android.seedprojectchat.R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n presenter.onLoginButtonClicked(mEmailView.getText().toString(), mPasswordView.getText().toString(), rememberPassword.isChecked(), (LoginActivity) getActivity(), updateCurentUser);\n }\n }", "public void authenticateUser(View view)\n {\n\n String username = userNameTextField.getText().toString().trim();\n String password = passwordTextField.getText().toString();\n if(username.equals(\"\") || password.equals(\"\"))\n {\n AlertDialog.Builder alt_bld = new AlertDialog.Builder(this);\n alt_bld.setMessage(\"Username and Password are required.\")\n .setCancelable(true);\n AlertDialog alert = alt_bld.create();\n alert.setButton(-1, \"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n } });\n alert.setTitle(\"Error\");\n alert.show();\n }\n else\n {\n\n progressDialog = ProgressDialog.show(LoginActivity.this,\n \"\", \"Please wait...\", true);\n isIMEIRequest = false;\n Thread thread = new Thread(this);\n thread.start();\n }\n }", "private void attemptLogin() {\n if (isLoggingIn) {\n return;\n }\n\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utils.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if (!Utils.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n if (!HttpUtils.isNetworkAvailable(this.getApplicationContext())) {\n Toast.makeText(this.getApplicationContext(), \"No internet\", Toast.LENGTH_SHORT).show();\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(mPasswordView.getWindowToken(), 0);\n\n LoginApi.executeLogin(this, email, password);\n }\n }", "private void attemptLogin() {\n\n // Reset errors.\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !Utility_Helper.isPasswordValid(password)) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!Utility_Helper.isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n focusView.requestFocus();\n } else {\n // if user flow not cancelled execute Simulate_Login_Task asyncronous task\n // to simulate login\n Simulate_Login_Task task = new Simulate_Login_Task(this, dummyList, email, password);\n task.setOnResultListener(asynResult);\n task.execute();\n }\n }", "public void attemptLogin()\n {\n if ( mAuthTask != null )\n {\n return;\n }\n\n // Reset errors.\n mIPView_.setError( null );\n mPortView_.setError( null );\n\n // Store values at the time of the login attempt.\n mIP_ = mIPView_.getText().toString();\n mPort_ = mPortView_.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password.\n if ( TextUtils.isEmpty( mPort_ ) )\n {\n mPortView_\n .setError( getString( R.string.error_field_required ) );\n focusView = mPortView_;\n cancel = true;\n }\n // The port should be four digits long\n else if ( mPort_.length() != 4 )\n {\n mPortView_\n .setError( getString( R.string.error_invalid_server ) );\n focusView = mPortView_;\n cancel = true;\n }\n\n // Check for a valid email address.\n if ( TextUtils.isEmpty( mIP_ ) )\n {\n mIPView_.setError( getString( R.string.error_field_required ) );\n focusView = mIPView_;\n cancel = true;\n }\n\n if ( cancel )\n {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n }\n else\n {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n mLoginStatusMessageView\n .setText( R.string.login_progress_signing_in );\n showProgress( true );\n\n // Start the asynchronous thread to connect and post to the server\n mAuthTask = new UserLoginTask();\n mAuthTask.execute( (Void) null );\n }\n }", "public abstract boolean authenticate(String userid, String password) throws\n YAuthenticationException;", "@Override\n\tpublic boolean isUserAuthenticate(String username, String password) {\n\t\t// validate username and pwd with predefined credentials\n\t\tif (username.equals(Utility.USERNAME) && password.equals(Utility.PASSWORD)) {\n\t\t\treturn true;\n\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic Authentication authenticate(Authentication auth) throws AuthenticationException {\n\t\t username = auth.getName();\n\t\tString pass = auth.getCredentials().toString();\n\t\t\n\t\tif(AppController.users.containsKey(username))\n\t\t{\n\t\tString password = AppController.users.get(username); \n\t\t\t\n\t\tif(password.equals(pass))\n\t\t\treturn new UsernamePasswordAuthenticationToken(username,pass,Collections.EMPTY_LIST);\n\t\telse\n\t\t\tthrow new BadCredentialsException(\"authentication failed\");\n\t\t\n\t\t}\n\t\telse\n\t\t\tthrow new BadCredentialsException(\"authentication failed\");\n\t}", "protected void doLogin(Authentication authentication) throws AuthenticationException {\n \n }", "private void attemptLogin() {\r\n if (mAuthTask != null) {\r\n return;\r\n }\r\n\r\n // Reset errors.\r\n mEmailView.setError(null);\r\n mPasswordView.setError(null);\r\n\r\n // Store values at the time of the login attempt.\r\n String email = mEmailView.getText().toString();\r\n String password = mPasswordView.getText().toString();\r\n\r\n boolean cancel = false;\r\n View focusView = null;\r\n\r\n //检测密码\r\n if (TextUtils.isEmpty(password)) {\r\n mPasswordView.setError(\"请输入密码\");\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid password, if the user entered one.\r\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\r\n mPasswordView.setError(getString(R.string.error_invalid_password));\r\n focusView = mPasswordView;\r\n cancel = true;\r\n }\r\n\r\n // Check for a valid email address.\r\n if (TextUtils.isEmpty(email)) {\r\n mEmailView.setError(getString(R.string.error_field_required));\r\n focusView = mEmailView;\r\n cancel = true;\r\n } else if (!isEmailValid(email)) {\r\n mEmailView.setError(getString(R.string.error_invalid_email));\r\n focusView = mEmailView;\r\n cancel = true;\r\n }\r\n\r\n SqlEngine sqlEngine = SqlEngine.getInstance(this);\r\n ArrayList<UserBean> list = sqlEngine.queryInfo();\r\n if (list.size() <= 0) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n for (int i = 0; i < list.size(); i++) {\r\n UserBean bean = list.get(i);\r\n Log.i(TAG, \"attemptLogin: 执行到此\");\r\n if (!bean.getUser().equals(email)) {\r\n Toast.makeText(this, \"没有这个账户\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n if (!bean.getPwd().equals(password)) {\r\n Toast.makeText(this, \"密码不正确\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n }\r\n\r\n String ip = (String) SpUtils.getValues(MyApplication.getContext(), Https.IP_ADDRESS, \"\");\r\n String port = (String) SpUtils.getValues(MyApplication.getContext(), Https.PORT, \"\");\r\n if (TextUtils.isEmpty(ip) || TextUtils.isEmpty(port)) {\r\n Toast.makeText(this, \"请先设置网络!\", Toast.LENGTH_SHORT).show();\r\n return;\r\n }\r\n\r\n if (cancel) {\r\n // There was an error; don't attempt login and focus the first\r\n // form field with an error.\r\n focusView.requestFocus();\r\n } else {\r\n // 显示一个进度微调,并启动一个后台任务\r\n // 执行用户登录尝试。\r\n showProgress(true);\r\n //判断是否勾选\r\n isCheckBox(email, password);\r\n mAuthTask = new UserLoginTask(email, password);\r\n mAuthTask.execute((Void) null);\r\n startActivity(new Intent(this, MainActivity.class));\r\n\r\n }\r\n }", "private void attemptLogin() {\n\n if (!Utils.isNetworkAvailable(mBaseActivity)) {\n Utils.showNetworkAlertDialog(mBaseActivity);\n return;\n }\n if (signInTask != null) {\n return;\n }\n\n // Reset errors.\n binding.email.setError(null);\n binding.password.setError(null);\n\n // Store values at the time of the login attempt.\n String email = binding.email.getText().toString();\n String password = binding.password.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n binding.email.setError(getString(R.string.error_field_required));\n focusView = binding.email;\n cancel = true;\n } else if (TextUtils.isEmpty(password)) {\n binding.password.setError(getString(R.string.error_field_required));\n focusView = binding.password;\n cancel = true;\n } else if (!isEmailValid(email)) {\n binding.email.setError(getString(R.string.error_invalid_email));\n focusView = binding.email;\n cancel = true;\n } else if (!isPasswordValid(password)) {\n binding.password.setError(getString(R.string.error_invalid_password));\n focusView = binding.password;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // perform the user login attempt.\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(email, password);\n }\n }", "private void authenticate(String username, String password) throws Exception {\n\t\tboolean autenticated = false;\n\t\tEntityManagerFactory factory = Persistence.createEntityManagerFactory(\"ForumApp\");\n\t\tEntityManager em = factory.createEntityManager();\n\n\t\tTypedQuery<User> q = em.createQuery(\"SELECT u FROM User u WHERE u.username = '\" + username + \"'\", User.class);\n\t\tUser user = q.getSingleResult();\n\n\t\tif (user != null) {\n\n\t\t\tif (user.getPassword().equals(password)) {\n\t\t\t\tautenticated = true;\n\t\t\t}\n\t\t}\n\n\t\t// Close the entity manager\n\t\tem.close();\n\t\tfactory.close();\n\n\t\t// Throw an Exception if the credentials are invalid\n\t\tif (!autenticated) {\n\t\t\tthrow new Exception();\n\t\t}\n\t}", "RequestResult loginRequest() throws Exception;", "public void attemptLogin(View v) {\n if (mAuthTask != null) {\n return;\n }\n\n // Reset errors.\n mUsernamelView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String username = mUsernamelView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(getString(R.string.error_field_required));\n focusView = mPasswordView;\n cancel = true;\n } else if(password.length() < 4) {\n mPasswordView.setError(getString(R.string.error_invalid_password));\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check if username is empty.\n if (TextUtils.isEmpty(username)) {\n mUsernamelView.setError(getString(R.string.error_field_required));\n focusView = mUsernamelView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to\n // perform the user login attempt.\n showProgress(true);\n mAuthTask = new UserLoginTask(username, password);\n mAuthTask.execute((Void) null);\n }\n }", "@Override\n public void onAuthenticationFailed() {\n }", "private boolean authenticate (HttpRequest request, HttpResponse response) throws UnsupportedEncodingException\n\t{\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\tif(requestSplit.length<2)\n\t\t\treturn false;\n\t\tString serviceName=requestSplit[1];\n\t\tfinal int BASIC_PREFIX_LENGTH=\"BASIC \".length();\n\t\tString userPass=\"\";\n\t\tString username=\"\";\n\t\tString password=\"\";\n\t\t\n\t\t//Check for authentication information in header\n\t\tif(request.hasHeaderField(AUTHENTICATION_FIELD)\n\t\t\t\t&&(request.getHeaderField(AUTHENTICATION_FIELD).length()>BASIC_PREFIX_LENGTH))\n\t\t{\n\t\t\tuserPass=request.getHeaderField(AUTHENTICATION_FIELD).substring(BASIC_PREFIX_LENGTH);\n\t\t\tuserPass=new String(Base64.decode(userPass), \"UTF-8\");\n\t\t\tint separatorPos=userPass.indexOf(':');\n\t\t\t//get username and password\n\t\t\tusername=userPass.substring(0,separatorPos);\n\t\t\tpassword=userPass.substring(separatorPos+1);\n\t\t\t\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\t\n\t\t\t\tlong userId;\n\t\t\t\tAgent userAgent;\n\t\t\t\t\n\t\t\t\tif ( username.matches (\"-?[0-9].*\") ) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tuserId = Long.valueOf(username);\n\t\t\t\t\t} catch ( NumberFormatException e ) {\n\t\t\t\t\t\tthrow new L2pSecurityException (\"The given user does not contain a valid agent id!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tuserId = l2pNode.getAgentIdForLogin(username);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tuserAgent = l2pNode.getAgent(userId);\n\t\t\t\t\n\t\t\t\tif ( ! (userAgent instanceof PassphraseAgent ))\n\t\t\t\t\tthrow new L2pSecurityException (\"Agent is not passphrase protected!\");\n\t\t\t\t((PassphraseAgent)userAgent).unlockPrivateKey(password);\n\t\t\t\t_currentUserId=userId;\n\t\t\t\t\n\t\t\t\tif(!_userSessions.containsKey(userId))//if user not registered\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\tMediator mediator = l2pNode.getOrRegisterLocalMediator(userAgent);\n\t\t\t\t\t_userSessions.put(userId, new UserSession(mediator));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_userSessions.get(userId).updateServiceTime(serviceName,new Date().getTime());//update last access time for service\n\t\t\t\t\n\t\t\t\tconnector.logMessage(\"Login: \"+username);\n\t\t\t\tconnector.logMessage(\"Sessions: \"+Integer.toString(_userSessions.size()));\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}catch (AgentNotKnownException e) {\n\t\t\t\tsendUnauthorizedResponse(response, null, request.getRemoteAddress() + \": login denied for user \" + username);\n\t\t\t} catch (L2pSecurityException e) {\n\t\t\t\tsendUnauthorizedResponse( response, null, request.getRemoteAddress() + \": unauth access - prob. login problems\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t\n\t\t\t\tsendInternalErrorResponse(\n\t\t\t\t\t\tresponse, \n\t\t\t\t\t\t\"The server was unable to process your request because of an internal exception!\", \n\t\t\t\t\t\t\"Exception in processing create session request: \" + e);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tresponse.setStatus ( HttpResponse.STATUS_BAD_REQUEST );\n\t\t\tresponse.setContentType( \"text/plain\" );\n\t\t\tresponse.print ( \"No authentication provided!\" );\n\t\t\tconnector.logError( \"No authentication provided!\" );\n\t\t}\n\t\treturn false;\n\t}", "List<String> authenticateUser(String userName, String password);", "@Override\n public void onAuthenticationFailed() {\n }", "@RequestMapping(value = \"/authenticate\", method = RequestMethod.POST)\r\n public ResponseEntity<User> login(@RequestBody User user) {\r\n\t\tlogger.info(\"Authenticate user:\"+ user);\r\n\t\t\r\n\t\t// logger.debug(\"users=\"+userService.findAllUsers() );\r\n\t\t\r\n\t\tUser dbUser = userService.findByUserName( user.getUsername() );\r\n\r\n\t\tif (dbUser != null) {\r\n\t\t\tlogger.debug(\"Start authenticate User with username [{}].\", user.getUsername() );\r\n\t\t\t//logger.debug(\"dbUser.getPassword() = \" + dbUser.getPassword() );\r\n\t\t\t//logger.debug(\"user.getPassword() = \" + user.getPassword() );\r\n\t\t\tif ( dbUser.getPassword() != null ) {\r\n\t\t\t\t//String encryptedPasword = bCryptPasswordEncoder.encode( user.getPassword() );\r\n\t\t\t\t//logger.debug(\"encryptedPasword = \" + encryptedPasword );\r\n\t\t\t\tif ( bCryptPasswordEncoder.matches( user.getPassword(), dbUser.getPassword())) {\t\t\t\t\r\n\t\t\t\t//if ( dbUser.getPassword().equals( encryptedPasword ) ) { // this won't work, not same\r\n\t\t\t\t\tlogger.info(\"User with username {} authenticated.\", user.getUsername() );\r\n\t\t\t\t\treturn new ResponseEntity<User>(dbUser, HttpStatus.OK);\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\tlogger.warn(\"Unable to authenticate. Username [{}] or password incorrect.\", user.getUsername() );\r\n\t\t// json client side not handled status 401 with message pass\r\n\t\treturn new ResponseEntity(new CustomErrorType(\"Unable to authenticate. Username or password incorrect.\"),\r\n\t\t\t\tHttpStatus.UNAUTHORIZED);\r\n\t\t\r\n\t\t//return new ResponseEntity(new CustomErrorType(\"Unable to authenticate. Username or password incorrect.\"),\r\n\t\t//\t\tHttpStatus.OK);\r\n\t\t\r\n\t\t\r\n\t}", "protected boolean authenticate() {\n \tif (mConfig == null) {\n \t\tmConfig = getConfig();\n \t}\n \tString keys[] = getKeys();\n \tif (keys != null) {\n\t mConfig = api.authenticateToken(keys[0], keys[1], mConfig);\n\t if (mConfig != null) {\n\t return true;\n\t }\n \t}\n \tshowToast(\"Failed user authentication for stored login tokens.\");\n \tclearKeys();\n \tsetLoggedIn(false);\n \treturn false;\n }", "boolean userLogin(UserDTO user) throws UserException, Exception;", "public void authenticate(LoginRequest loginRequest) {\n\n }", "private boolean authenticatedUser(String uName, String pass) {\n\t\treturn true;\n\t}", "private void attemptLogin() {\n // Reset errors.\n mEmailView.setError(null);\n\n // Store values at the time of the login attempt.\n final String email = mEmailView.getText().toString();\n \n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(getString(R.string.error_field_required));\n focusView = mEmailView;\n cancel = true;\n } else if (!isEmailValid(email)) {\n mEmailView.setError(getString(R.string.error_invalid_email));\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first form field with an error.\n focusView.requestFocus();\n } else {\n // Show a progress spinner, and kick off a background task to perform the user login attempt.\n showProgress(true);\n\n // Register user to server.\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"userId\", email);\n params.put(\"gcmToken\", UserManager.getUserGcmToken(this));\n new HttpClientAsyncTask(Constants.APP_SERVER_USER_CREATE_URL, HttpClientCallable.POST, params) {\n @Override\n protected void onPostExecute(String response) {\n showProgress(false);\n\n try {\n if (response != null) {\n JSONObject responseObj = new JSONObject(response);\n Log.d(Constants.TAG, \"User login server response: \" + responseObj);\n String errorMsg = responseObj.getString(\"error\");\n if (errorMsg.isEmpty()) {\n UserManager.setUserLoggedIn(LoginActivity.this, true);\n UserManager.setUserId(LoginActivity.this, email);\n Log.d(Constants.TAG, \"Successfully logged in. Directing to MainActivity.\");\n startActivity(new Intent(LoginActivity.this, MainActivity.class));\n finish();\n } else {\n Toast.makeText(LoginActivity.this, \"Email registration was rejected.\", Toast.LENGTH_LONG).show();\n }\n } else {\n Toast.makeText(LoginActivity.this, \"Server response was unexpected.\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n Log.e(Constants.TAG, e.getMessage());\n Toast.makeText(LoginActivity.this, \"Error while communicating with server.\", Toast.LENGTH_LONG).show();\n }\n }\n }.execute();\n }\n }", "public Users authenticateUser(Users user) {\r\n\r\n String userName = user.getEmail();\r\n String passw = user.getPassword();\r\n\r\n Query query = em.createNamedQuery(\"checkUser\");\r\n query.setParameter(\"uname\", userName);\r\n query.setParameter(\"upass\", passw);\r\n\r\n if (!query.getResultList().isEmpty()) {\r\n Users userAuthenticated = (Users) query.getSingleResult();\r\n return userAuthenticated;\r\n }\r\n return null;\r\n }", "public void attemptLogin() {\r\n\t\tif (mAuthTask != null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// Reset errors.\r\n\t\tthis.activity.getmEmailView().setError(null);\r\n\t\tthis.activity.getmPasswordView().setError(null);\r\n\r\n\t\t// Store values at the time of the login attempt.\r\n\t\tmEmail = this.activity.getmEmailView().getText().toString();\r\n\t\tmPassword = this.activity.getmPasswordView().getText().toString();\r\n\r\n\t\tboolean cancel = false;\r\n\t\tView focusView = null;\r\n\r\n\t\t// Check for a valid password.\r\n\t\tif (TextUtils.isEmpty(mPassword)) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (mPassword.length() < 4) {\r\n\t\t\tthis.activity.getmPasswordView().setError(this.activity.getString(R.string.error_invalid_password));\r\n\t\t\tfocusView = this.activity.getmPasswordView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\t// Check for a valid email address.\r\n\t\tif (TextUtils.isEmpty(mEmail)) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_field_required));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t} else if (!mEmail.contains(\"@\")) {\r\n\t\t\tthis.activity.getmEmailView().setError(this.activity.getString(R.string.error_invalid_email));\r\n\t\t\tfocusView = this.activity.getmEmailView();\r\n\t\t\tcancel = true;\r\n\t\t}\r\n\r\n\t\tif (cancel) {\r\n\t\t\t// There was an error; don't attempt login and focus the first\r\n\t\t\t// form field with an error.\r\n\t\t\tfocusView.requestFocus();\r\n\t\t} else {\r\n\t\t\t// Show a progress spinner, and kick off a background task to\r\n\t\t\t// perform the user login attempt.\r\n\t\t\tthis.activity.getmLoginStatusMessageView().setText(R.string.login_progress_signing_in);\r\n\t\t\tthis.activity.showProgress(true);\r\n\t\t\tmAuthTask = new UserLoginTask();\r\n\t\t\tmAuthTask.execute((Void) null);\r\n\t\t}\r\n\t}", "@Test\n\tpublic void testAuthenticateUserOK() {\n\t\tgiven(userRepository.findByLogin(anyString())).willReturn(new UserBuilder(USER_RETURNED).build());\n\n\t\t// make the service call\n\t\ttry {\n\t\t\tassertThat(authService.authenticateUser(USER)).isEqualTo(USER_RETURNED);\n\t\t} catch (Exception e) {\n\t\t\tfail(\"Error testing authenticateUser: \" + e.getMessage());\n\t\t}\t\n\t}", "public boolean loginUser();", "private void attemptLogin() {\n\n // Reset errors.\n trylogin = false;\n mEmailView.setError(null);\n mPasswordView.setError(null);\n\n // Store values at the time of the login attempt.\n String email = mEmailView.getText().toString();\n String password = mPasswordView.getText().toString();\n\n boolean cancel = false;\n View focusView = null;\n\n // Check for a valid password, if the user entered one.\n if (!TextUtils.isEmpty(password) && !isPasswordValid(password)) {\n mPasswordView.setError(\"Invalid Password\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n if(email.equals(null) || password.equals(null)) {\n mPasswordView.setError(\"Invalid Password\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n // Check for a valid email address.\n if (TextUtils.isEmpty(email)) {\n mEmailView.setError(\"Please enter something\");\n focusView = mEmailView;\n cancel = true;\n }\n\n else if (TextUtils.isEmpty(password)) {\n mPasswordView.setError(\"Please enter something\");\n focusView = mPasswordView;\n cancel = true;\n }\n\n else if (!isEmailValid(email)) {\n mEmailView.setError(\"Invalid Email\");\n focusView = mEmailView;\n cancel = true;\n }\n\n if (cancel) {\n // There was an error; don't attempt login and focus the first\n // form field with an error.\n focusView.requestFocus();\n } else {\n\n dialog.setMessage(\"Registering user...\");\n dialog.show();\n\n firebaseAuth.signInWithEmailAndPassword(email, password)\n .addOnCompleteListener(MainActivity.this, new OnCompleteListener<AuthResult>() {\n @Override\n public void onComplete(@NonNull Task<AuthResult> task) {\n dialog.hide();\n if(task.isSuccessful()) {\n //trylogin = true;\n Toast.makeText(MainActivity.this, \"Login Successful!\", Toast.LENGTH_SHORT).show();\n Intent i = new Intent(MainActivity.this, FoodActivity.class);\n startActivity(i);\n }\n else {\n Toast.makeText(MainActivity.this, \"Login Failed!\", Toast.LENGTH_SHORT).show();\n\n }\n }\n });\n }\n }" ]
[ "0.7472019", "0.7153129", "0.71081567", "0.7088493", "0.6957968", "0.6880301", "0.68190575", "0.67551", "0.67518854", "0.67274904", "0.67012465", "0.6664736", "0.6633426", "0.6619435", "0.6567889", "0.6549771", "0.6526036", "0.6524758", "0.6523633", "0.65131915", "0.65131915", "0.65071243", "0.6500433", "0.6495839", "0.6478114", "0.6477273", "0.646171", "0.64602673", "0.645792", "0.64559525", "0.6447146", "0.6447004", "0.6442837", "0.6440841", "0.6426463", "0.64249223", "0.6420217", "0.6414547", "0.64130497", "0.6411802", "0.64025116", "0.6401199", "0.63984376", "0.6382679", "0.637506", "0.6374311", "0.63597697", "0.6357841", "0.63531667", "0.6345728", "0.63293946", "0.6324011", "0.6296004", "0.6291193", "0.62872183", "0.6283213", "0.62769824", "0.6276713", "0.6273115", "0.6269918", "0.62658", "0.6258395", "0.6246863", "0.6237025", "0.622591", "0.6218312", "0.6217633", "0.62046784", "0.62002325", "0.6200133", "0.6191342", "0.61798453", "0.6178319", "0.61724156", "0.6155209", "0.6147254", "0.6130261", "0.6129841", "0.6124542", "0.61137307", "0.61049706", "0.6099029", "0.60932666", "0.6093235", "0.60647184", "0.60574144", "0.605163", "0.6051496", "0.6049658", "0.6042675", "0.60316074", "0.60294247", "0.60286045", "0.6027043", "0.60247934", "0.60067713", "0.5976241", "0.59753734", "0.59604055", "0.5921914", "0.59209645" ]
0.0
-1
gets a user property from the database
public String getUserProperty(final UserDataAttrib dataAttrib, final User user) throws BackendRequestException { return getUserProperty(dataAttrib, user.getEmail(), user.getTok()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserProperty getUserProperty(BaseUser u);", "public StringProperty userProperty() {\n return user;\n }", "public SUser selectOneByProperty(String property, String value) {\n\t\treturn (SUser) super.selectOneByProperty(className, property,\n\t\t\t\tvalue);\n\t}", "public final StringProperty userProperty() { return this.username; }", "People getObjUser();", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> usersRoles = genericDao.getPropertyByName(\"roleName\", \"user\");\n assertEquals(2, usersRoles.size());\n }", "User get(String name);", "@Override\n\tpublic User getProduct(long userId) {\n\t\treturn (User) openSession().load(User.class, userId);\n\t}", "public String getUserProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getUserProperty(null, propertyName);\n }", "public User getUserData();", "public User get(String emailID);", "public String getProperty(String name, User user)\r\n {\r\n if (user == null || user.isGuest())\r\n return getSessionPreferences().get(name);\r\n\r\n return getPreferences(user).get(name);\r\n }", "@Override\n\tpublic User getUser(String email) {\n\t\treturn userDatabase.get(email);\n\t}", "public People getObjUser() {\n return instance.getObjUser();\n }", "Property getProperty();", "Property getProperty();", "String getProperty(String property);", "UserSettings getByUser();", "public User getUserData(String id);", "@Test\n public void shouldReturnUserWithSpecifiedProperties() {\n User retrievedUser = userDAO.getUser(Collections.singletonMap(KEY, VALUE));\n Assert.assertEquals(user, retrievedUser);\n }", "public String getUserProperty(final UserDataAttrib dataAttrib,\n final String email,\n final String tok)\n throws BackendRequestException {\n final String property = dataAttrib.toString().toLowerCase();\n final Map<String, String> attribs = new HashMap<>(2);\n attribs.put(\"email\", email);\n attribs.put(\"tok\", tok);\n attribs.put(\"property\", property);\n final RESTReport rr = RESTHandler.apiRequest(\n RESTHandler.RestAction.GET,\n RESTHandler.ACCOUNT_USER_ENTRY_POINT,\n attribs);\n delegateExceptionGeneration(rr);\n return rr.getResponseValue(property);\n }", "java.lang.String getUserIdOne();", "@Override\n public User get(User user) {\n user.setName(\"zyq\");\n return user;\n }", "public User getUser(String email) {\n\n Query query = new Query(\"User\")\n .setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if(userEntity == null) {return null; }\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n //ArrayList<String> advisees = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisees\")).split(\" \")));\n //ArrayList<String> advisors = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisors\")).split(\" \")));\n String fn = (String) userEntity.getProperty(\"firstName\");\n String ln = (String) userEntity.getProperty(\"lastName\");\n User user = new User(email, fn, ln, aboutMe);\n return user;\n\n }", "public User getProf(String name) { return userDAO.getProfile(name); }", "String getProperty();", "String getProperty();", "String getProperty();", "public User getUser(){return this.user;}", "java.lang.String getProperty();", "UserDetails get(String id);", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "public User get(String username);", "public MetaUser getMetaUser(int iUser);", "public User read(String id);", "public String getProperty();", "Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }", "public static String getUserProperty(String key, String defaultValue){\n return DataStore.getUserProperty(context, key, defaultValue);\n }", "User getUser();", "User getUser();", "Object getProperty(Long id, String name) throws RemoteException;", "public User getUser();", "public User getUser() { return this.user; }", "User get(int userId) throws UserNotFoundException, SQLException;", "String fetchProperty(String property)\n\t{\n\t\tif(configProp==null)\n\t\t\tloadPropertiesFile();\n\t\t\n\t\treturn(configProp.getProperty(property));\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }", "People getUser();", "public String getUserId(){return userID;}", "User get(Key id);", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }", "Object getProperty(String name);", "public UserData getUser() {\n return user;\n }", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "public String getUser()\n {\n return _user;\n }", "public User getUser(){\n\t\treturn this.user;\n\t}", "User getUserInformation(Long user_id);", "@Override\n\tpublic Object get(Object key) throws Exception {\n\t\treturn propertyConfigMapper.selectByPrimaryKey(key);\n\t}", "public User getUser(){\r\n\t\treturn this.user;\r\n\t}", "User getUser(User user) ;", "@Override\n\tpublic User getByName(String name) {\n\t\treturn userDao.getByName(name);\n\t}", "public String getUser(){\n \treturn user;\n }", "public User get() {\n\t\treturn null;\n\t}", "String getProperty(String name);", "User getPassedUser();", "@Test\n public void test_get_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.get(user1.getId());\n\n assertEquals(\"'get' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'get' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'get' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'get' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'get' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'get' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'get' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'get' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'get' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "public User getUser(){\n\t\treturn user;\n\t}", "@Test\n void getByPropertySuccess() {\n List<User> users = genericDao.findByPropertyEqual(\"userName\", \"BigAl\");\n // should only find one entry with the username \"BigAl\"\n assertEquals(users.size(), 1);\n }", "public User getUser(String name);", "public User getUser(String name);", "User get(String username) throws UserNotFoundException, SQLException;", "public User getUser() {\n\treturn user;\n }", "@Override\n\t\tpublic User getEvalUser(int userNo) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.getEvalUser\", userNo);\n\t\t}", "public People getUser() {\n return instance.getUser();\n }", "@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }", "private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }", "@Override\n public Users get(Integer id) {\n String sql = sqlUsers.getGet();\n Users user = (Users) jdbcTemplate.queryForObject(sql, new Object[]{id}, new BeanPropertyRowMapper(Users.class));\n return user;\n }", "@Override\n\tpublic User getUser(String email){\n\t\tif (userExists(email) == true)\n\t\t\treturn users[searchIndex(email)];\n\t\telse\n\t\t\treturn null;\n\t}", "@Override\n\tpublic List<User> get() {\n\t\tList<User> result = new ArrayList<>();\n\t\tfor (String key : userlist.keySet()) {\n\t\t\tUser user = userlist.get(key);\n\t\t\tint dni = user.getDni();\n\t\t\tString name = user.getName();\n\t\t\tString secondName = user.getSecondName();\n\t\t\tString username = user.getUser();\n\t\t\tString pass = user.getPass();\n\t\t\tresult.add(new User(dni, name, secondName, username, pass));\n\t\t}\n\t\treturn result;\n\t}", "public User getUser(Long userId);", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "User getByName(String name);", "public static String getProperty(String propertyName){\r\n String val = userProps.getProperty(propertyName);\r\n\r\n if (val == null)\r\n return jinProps.getProperty(propertyName);\r\n else\r\n return val;\r\n }", "public UserProfile getUserProfile() {return userProfile;}", "public Hashtable getUserProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getUserProperties();\n }", "@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "Optional<User> get(String userName);", "public User getUser() {\r\n return user;\r\n }", "@Override\r\n\tpublic MemberDTO read(String userId) {\n\t\treturn session.selectOne(NAMESPACE+\".read\", userId);\r\n\t}", "public User getUserById(Long id) throws Exception;", "public interface User {\n\n /**\n * Get the id of the user.\n *\n * @return the id of the user\n * @throws RepositoryException\n */\n String getId() throws RepositoryException;\n\n /**\n * Whether this user is marked as a system user.\n *\n * @return whether this user is marked as a system user.\n * @throws RepositoryException\n */\n boolean isSystemUser() throws RepositoryException;\n\n /**\n * Whether this user is marked as active.\n *\n * @return whether this user is marked as active.\n * @throws RepositoryException\n */\n boolean isActive() throws RepositoryException;\n\n /**\n * Get the {@link Group}s this user is a member of.\n *\n * @return the {@link Group}s this user is a member of.\n * @throws RepositoryException\n */\n Iterable<Group> getMemberships() throws RepositoryException;\n\n\n /**\n * Get the first name property of this user.\n *\n * @return the first name property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n String getFirstName() throws RepositoryException;\n\n /**\n * Get the last name property of this user.\n *\n * @return the last name property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n String getLastName() throws RepositoryException;\n\n\n /**\n * Get the email property of this user.\n *\n * @return the email property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n String getEmail() throws RepositoryException;\n\n /**\n * Get the last login property of this user.\n *\n * @return the last login property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n Calendar getLastLogin() throws RepositoryException;\n\n /**\n * Get an external user property by name.\n *\n * @return the external property of the user identified by {@code propertyName},\n * or {@code null} if not present\n * @throws RepositoryException\n */\n String getProperty(String propertyName) throws RepositoryException;\n\n}", "public People getUser(int index) {\n return user_.get(index);\n }", "public String getProperty(String name);", "@Override\n public User get(int id) {\n\n String sqlGet = sqlQuery + \" where u.id=:id\";\n //Этот класс предназначен для передачи в простой Map значений параметров методам NamedParameterJdbcTemplate класса.\n MapSqlParameterSource parameterSource = new MapSqlParameterSource()\n .addValue(\"id\",id);\n List<User> list = namedParameterJdbcTemplate.query(sqlGet,parameterSource, new UserRowMapper());\n\n return DataAccessUtils.singleResult(list);//Возвращает один объект результата из данной коллекции.\n }", "public User getUserById(Long userId);", "public User getSpecificUser(String username);", "public ApplicationUser fetchProfile(String searchParam){\n ApplicationUser userProfile = new ApplicationUser();\n System.out.println(\"Query Param - \"+searchParam);\n userProfile.setAdminFName(searchParam.substring(0,searchParam.indexOf(' ')));\n userProfile.setAdminLName(searchParam.substring(searchParam.indexOf(' '), searchParam.length()));\n userProfile = mongoDbConnector.fetchProfile(userProfile);\n return userProfile;\n }", "public Long getUser() {\n return user;\n }", "@Override\r\n\tpublic LocalUser get(int id) {\n\t\treturn userDao.get(id);\r\n\t}" ]
[ "0.8058678", "0.68899006", "0.66614026", "0.655956", "0.64569277", "0.6393975", "0.6337479", "0.6333624", "0.63283235", "0.6312287", "0.6302009", "0.6289078", "0.6280881", "0.62559676", "0.62459606", "0.62459606", "0.6200459", "0.61941993", "0.61857855", "0.61622494", "0.6158465", "0.61356395", "0.61254793", "0.61235356", "0.61154014", "0.6108753", "0.6108753", "0.6108753", "0.6104916", "0.61042315", "0.60929865", "0.60919374", "0.6084487", "0.607425", "0.606554", "0.60577744", "0.6055454", "0.6054195", "0.6044679", "0.6044679", "0.60441303", "0.6039427", "0.60300946", "0.6000472", "0.59845376", "0.5976501", "0.5946662", "0.5933648", "0.5929372", "0.5928881", "0.59250677", "0.59107095", "0.59025306", "0.5899619", "0.5889231", "0.58888257", "0.58881325", "0.5874552", "0.58731514", "0.5869295", "0.58681417", "0.5866708", "0.58596724", "0.58590925", "0.5855925", "0.58556175", "0.58511984", "0.58497524", "0.58497524", "0.5842791", "0.5834608", "0.583229", "0.5828852", "0.5828473", "0.58099484", "0.5807987", "0.5802948", "0.5797739", "0.57932746", "0.57923704", "0.57923704", "0.57923704", "0.5789934", "0.57869256", "0.57806224", "0.5778899", "0.577838", "0.5776667", "0.57706803", "0.57606", "0.57605726", "0.57599443", "0.57515264", "0.573522", "0.57289916", "0.57258356", "0.5717772", "0.5710862", "0.5710656", "0.5707892" ]
0.57933813
78
gets a user property from the database
public String getUserProperty(final UserDataAttrib dataAttrib, final String email, final String tok) throws BackendRequestException { final String property = dataAttrib.toString().toLowerCase(); final Map<String, String> attribs = new HashMap<>(2); attribs.put("email", email); attribs.put("tok", tok); attribs.put("property", property); final RESTReport rr = RESTHandler.apiRequest( RESTHandler.RestAction.GET, RESTHandler.ACCOUNT_USER_ENTRY_POINT, attribs); delegateExceptionGeneration(rr); return rr.getResponseValue(property); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "UserProperty getUserProperty(BaseUser u);", "public StringProperty userProperty() {\n return user;\n }", "public SUser selectOneByProperty(String property, String value) {\n\t\treturn (SUser) super.selectOneByProperty(className, property,\n\t\t\t\tvalue);\n\t}", "public final StringProperty userProperty() { return this.username; }", "People getObjUser();", "@Test\n void getByPropertyLikeSuccess() {\n List<UserRoles> usersRoles = genericDao.getPropertyByName(\"roleName\", \"user\");\n assertEquals(2, usersRoles.size());\n }", "User get(String name);", "@Override\n\tpublic User getProduct(long userId) {\n\t\treturn (User) openSession().load(User.class, userId);\n\t}", "public String getUserProperty(String propertyName) {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return (String) ph.getUserProperty(null, propertyName);\n }", "public User getUserData();", "public User get(String emailID);", "public String getProperty(String name, User user)\r\n {\r\n if (user == null || user.isGuest())\r\n return getSessionPreferences().get(name);\r\n\r\n return getPreferences(user).get(name);\r\n }", "@Override\n\tpublic User getUser(String email) {\n\t\treturn userDatabase.get(email);\n\t}", "public People getObjUser() {\n return instance.getObjUser();\n }", "Property getProperty();", "Property getProperty();", "String getProperty(String property);", "UserSettings getByUser();", "public User getUserData(String id);", "@Test\n public void shouldReturnUserWithSpecifiedProperties() {\n User retrievedUser = userDAO.getUser(Collections.singletonMap(KEY, VALUE));\n Assert.assertEquals(user, retrievedUser);\n }", "java.lang.String getUserIdOne();", "@Override\n public User get(User user) {\n user.setName(\"zyq\");\n return user;\n }", "public User getUser(String email) {\n\n Query query = new Query(\"User\")\n .setFilter(new Query.FilterPredicate(\"email\", FilterOperator.EQUAL, email));\n PreparedQuery results = datastore.prepare(query);\n Entity userEntity = results.asSingleEntity();\n if(userEntity == null) {return null; }\n String aboutMe = (String) userEntity.getProperty(\"aboutMe\");\n //ArrayList<String> advisees = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisees\")).split(\" \")));\n //ArrayList<String> advisors = new ArrayList<String>(Arrays.asList(((String) userEntity.getProperty(\"advisors\")).split(\" \")));\n String fn = (String) userEntity.getProperty(\"firstName\");\n String ln = (String) userEntity.getProperty(\"lastName\");\n User user = new User(email, fn, ln, aboutMe);\n return user;\n\n }", "public User getProf(String name) { return userDAO.getProfile(name); }", "String getProperty();", "String getProperty();", "String getProperty();", "java.lang.String getProperty();", "public User getUser(){return this.user;}", "UserDetails get(String id);", "private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }", "public User get(String username);", "public MetaUser getMetaUser(int iUser);", "public User read(String id);", "public String getProperty();", "Object getProperty(String requestedProperty) {\n return properties.getProperty(requestedProperty);\n }", "public static String getUserProperty(String key, String defaultValue){\n return DataStore.getUserProperty(context, key, defaultValue);\n }", "Object getProperty(Long id, String name) throws RemoteException;", "User getUser();", "User getUser();", "public User getUser();", "public User getUser() { return this.user; }", "User get(int userId) throws UserNotFoundException, SQLException;", "String fetchProperty(String property)\n\t{\n\t\tif(configProp==null)\n\t\t\tloadPropertiesFile();\n\t\t\n\t\treturn(configProp.getProperty(property));\n\t}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }", "People getUser();", "public String getUserId(){return userID;}", "@gw.internal.gosu.parser.ExtendedProperty\n public entity.User getCreateUser() {\n return (entity.User)__getInternalInterface().getFieldValue(CREATEUSER_PROP.get());\n }", "User get(Key id);", "Object getProperty(String name);", "public UserData getUser() {\n return user;\n }", "public String getUser() {\r\n \t\treturn properties.getProperty(KEY_USER);\r\n \t}", "public String getUser()\n {\n return _user;\n }", "@Override\n\tpublic Object get(Object key) throws Exception {\n\t\treturn propertyConfigMapper.selectByPrimaryKey(key);\n\t}", "public User getUser(){\n\t\treturn this.user;\n\t}", "User getUserInformation(Long user_id);", "public User getUser(){\r\n\t\treturn this.user;\r\n\t}", "User getUser(User user) ;", "@Override\n\tpublic User getByName(String name) {\n\t\treturn userDao.getByName(name);\n\t}", "public String getUser(){\n \treturn user;\n }", "public User get() {\n\t\treturn null;\n\t}", "String getProperty(String name);", "User getPassedUser();", "@Test\n public void test_get_3() throws Exception {\n User user1 = createUser(1, false);\n\n User res = instance.get(user1.getId());\n\n assertEquals(\"'get' should be correct.\", user1.getUsername(), res.getUsername());\n assertEquals(\"'get' should be correct.\", user1.getDefaultTab(), res.getDefaultTab());\n assertEquals(\"'get' should be correct.\", user1.getNetworkId(), res.getNetworkId());\n assertEquals(\"'get' should be correct.\", user1.getRole().getId(), res.getRole().getId());\n assertEquals(\"'get' should be correct.\", user1.getFirstName(), res.getFirstName());\n assertEquals(\"'get' should be correct.\", user1.getLastName(), res.getLastName());\n assertEquals(\"'get' should be correct.\", user1.getEmail(), res.getEmail());\n assertEquals(\"'get' should be correct.\", user1.getTelephone(), res.getTelephone());\n assertEquals(\"'get' should be correct.\", user1.getStatus().getId(), res.getStatus().getId());\n }", "public User getUser(){\n\t\treturn user;\n\t}", "@Test\n void getByPropertySuccess() {\n List<User> users = genericDao.findByPropertyEqual(\"userName\", \"BigAl\");\n // should only find one entry with the username \"BigAl\"\n assertEquals(users.size(), 1);\n }", "public User getUser(String name);", "public User getUser(String name);", "User get(String username) throws UserNotFoundException, SQLException;", "public User getUser() {\n\treturn user;\n }", "@Override\n\t\tpublic User getEvalUser(int userNo) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.getEvalUser\", userNo);\n\t\t}", "public People getUser() {\n return instance.getUser();\n }", "@Override\n public User getUser(String userId){\n return userDAO.getUser(userId);\n }", "private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }", "@Override\n public Users get(Integer id) {\n String sql = sqlUsers.getGet();\n Users user = (Users) jdbcTemplate.queryForObject(sql, new Object[]{id}, new BeanPropertyRowMapper(Users.class));\n return user;\n }", "@Override\n\tpublic User getUser(String email){\n\t\tif (userExists(email) == true)\n\t\t\treturn users[searchIndex(email)];\n\t\telse\n\t\t\treturn null;\n\t}", "@Override\n\tpublic List<User> get() {\n\t\tList<User> result = new ArrayList<>();\n\t\tfor (String key : userlist.keySet()) {\n\t\t\tUser user = userlist.get(key);\n\t\t\tint dni = user.getDni();\n\t\t\tString name = user.getName();\n\t\t\tString secondName = user.getSecondName();\n\t\t\tString username = user.getUser();\n\t\t\tString pass = user.getPass();\n\t\t\tresult.add(new User(dni, name, secondName, username, pass));\n\t\t}\n\t\treturn result;\n\t}", "public String getUserProperty(final UserDataAttrib dataAttrib,\n final User user)\n throws BackendRequestException {\n return getUserProperty(dataAttrib, user.getEmail(), user.getTok());\n }", "public User getUser(Long userId);", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "User getByName(String name);", "public static String getProperty(String propertyName){\r\n String val = userProps.getProperty(propertyName);\r\n\r\n if (val == null)\r\n return jinProps.getProperty(propertyName);\r\n else\r\n return val;\r\n }", "public UserProfile getUserProfile() {return userProfile;}", "public Hashtable getUserProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getUserProperties();\n }", "@Override\n public User getUserById(int id) {\n Session session = this.sessionFactory.getCurrentSession(); \n User u = (User) session.load(User.class, new Integer(id));\n logger.info(\"User loaded successfully, User details=\"+u);\n return u;\n }", "Optional<User> get(String userName);", "public User getUser() {\r\n return user;\r\n }", "@Override\r\n\tpublic MemberDTO read(String userId) {\n\t\treturn session.selectOne(NAMESPACE+\".read\", userId);\r\n\t}", "public interface User {\n\n /**\n * Get the id of the user.\n *\n * @return the id of the user\n * @throws RepositoryException\n */\n String getId() throws RepositoryException;\n\n /**\n * Whether this user is marked as a system user.\n *\n * @return whether this user is marked as a system user.\n * @throws RepositoryException\n */\n boolean isSystemUser() throws RepositoryException;\n\n /**\n * Whether this user is marked as active.\n *\n * @return whether this user is marked as active.\n * @throws RepositoryException\n */\n boolean isActive() throws RepositoryException;\n\n /**\n * Get the {@link Group}s this user is a member of.\n *\n * @return the {@link Group}s this user is a member of.\n * @throws RepositoryException\n */\n Iterable<Group> getMemberships() throws RepositoryException;\n\n\n /**\n * Get the first name property of this user.\n *\n * @return the first name property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n String getFirstName() throws RepositoryException;\n\n /**\n * Get the last name property of this user.\n *\n * @return the last name property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n String getLastName() throws RepositoryException;\n\n\n /**\n * Get the email property of this user.\n *\n * @return the email property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n String getEmail() throws RepositoryException;\n\n /**\n * Get the last login property of this user.\n *\n * @return the last login property of this user or {@code null} if not present\n * @throws RepositoryException\n */\n Calendar getLastLogin() throws RepositoryException;\n\n /**\n * Get an external user property by name.\n *\n * @return the external property of the user identified by {@code propertyName},\n * or {@code null} if not present\n * @throws RepositoryException\n */\n String getProperty(String propertyName) throws RepositoryException;\n\n}", "public User getUserById(Long id) throws Exception;", "public People getUser(int index) {\n return user_.get(index);\n }", "public String getProperty(String name);", "@Override\n public User get(int id) {\n\n String sqlGet = sqlQuery + \" where u.id=:id\";\n //Этот класс предназначен для передачи в простой Map значений параметров методам NamedParameterJdbcTemplate класса.\n MapSqlParameterSource parameterSource = new MapSqlParameterSource()\n .addValue(\"id\",id);\n List<User> list = namedParameterJdbcTemplate.query(sqlGet,parameterSource, new UserRowMapper());\n\n return DataAccessUtils.singleResult(list);//Возвращает один объект результата из данной коллекции.\n }", "public User getUserById(Long userId);", "public User getSpecificUser(String username);", "public ApplicationUser fetchProfile(String searchParam){\n ApplicationUser userProfile = new ApplicationUser();\n System.out.println(\"Query Param - \"+searchParam);\n userProfile.setAdminFName(searchParam.substring(0,searchParam.indexOf(' ')));\n userProfile.setAdminLName(searchParam.substring(searchParam.indexOf(' '), searchParam.length()));\n userProfile = mongoDbConnector.fetchProfile(userProfile);\n return userProfile;\n }", "public Long getUser() {\n return user;\n }", "@Override\r\n\tpublic LocalUser get(int id) {\n\t\treturn userDao.get(id);\r\n\t}" ]
[ "0.8057702", "0.68889123", "0.66600364", "0.6557864", "0.6455771", "0.63931364", "0.6335724", "0.6332935", "0.6327166", "0.6310159", "0.6300312", "0.6289676", "0.6280227", "0.6255138", "0.62461364", "0.62461364", "0.62007916", "0.61930025", "0.61838067", "0.61611015", "0.6133189", "0.6123421", "0.61224896", "0.61142135", "0.6109301", "0.6109301", "0.6109301", "0.6104805", "0.6103286", "0.60920733", "0.609049", "0.6082448", "0.60726094", "0.6063846", "0.6058381", "0.6055976", "0.6053898", "0.60438573", "0.60433084", "0.60433084", "0.60377437", "0.6028674", "0.59989774", "0.5986253", "0.5975165", "0.5945724", "0.59313357", "0.5927517", "0.5927454", "0.59248674", "0.5909488", "0.5901843", "0.5898441", "0.58889204", "0.58883387", "0.58874655", "0.58736485", "0.5871599", "0.5867427", "0.58672124", "0.5865427", "0.5859668", "0.5857169", "0.5855457", "0.58546454", "0.5849858", "0.5847621", "0.5847621", "0.5841414", "0.58336616", "0.58309853", "0.5828192", "0.58270955", "0.580831", "0.5806947", "0.58019334", "0.579653", "0.57933617", "0.57910335", "0.57900786", "0.57900786", "0.57900786", "0.5787947", "0.57863504", "0.57793504", "0.5778776", "0.57771695", "0.5775205", "0.57695556", "0.57597375", "0.57583", "0.5758239", "0.57494867", "0.5735145", "0.57284474", "0.5723475", "0.5715491", "0.57099557", "0.5709613", "0.57063615" ]
0.6157935
20
gets the user type from a post request TODO abstract away generic protected property fetch
public final String getUserType(final String email, final String tok) throws BackendRequestException { if ((email == null) || (tok == null)) { throw new InvalidDataException( "one or more parameters was null or empty"); } final Map<String, String> attribs = new HashMap<>(2); attribs.put("email", email); attribs.put("tok", tok); attribs.put("property", "type"); final RESTReport rr = RESTHandler.apiRequest( RESTHandler.RestAction.GET, RESTHandler.ACCOUNT_USER_ENTRY_POINT, attribs); delegateExceptionGeneration(rr); return rr.getResponseValue("type"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n return userType;\n }", "public String getUserType() {\n\t\treturn _userType;\n\t}", "public int getUserType() {\n\t\treturn userType;\n\t}", "public static String getUserType()\n {\n try\n {\n if (userType == \"\")\n {\n System.out.println(\"User type not set\");\n return \"\";\n }\n else\n {\n return userType;\n }\n }\n catch (Exception exc)\n {\n System.out.println(\"User type error: \" + exc.toString());\n return \"\";\n }\n }", "public Byte getUserType() {\r\n return userType;\r\n }", "public Byte getUserType() {\n return userType;\n }", "public Short getUserType() {\r\n return userType;\r\n }", "@Override\n public String userType(int userId) {\n logger.info(\"Retrieving user type\");\n return userDaoInterface.userType(userId);\n }", "public Integer getPostType() {\n return postType;\n }", "public String getUsertype() {\n return usertype;\n }", "public String getPostUser() {\n return postUser;\n }", "private String getType(){\r\n return type;\r\n }", "UserType getType();", "public PersonUserType getUserType() throws NotLoadedException {\n return userType.getValue();\n }", "@NotNull\n\tpublic UserType getType() {\n\t\treturn super.getTypeEnum();\n\t}", "public UserType getUserType() {\n\t\tif (userType == CustomerControl.dummyUserType)\n\t\t\tuserType = CustomerControl.getUserTypeById(userTypeID);\n\t\treturn userType;\n\t}", "public Integer getUsertype() {\n return usertype;\n }", "public java.lang.String getUsertype() {\n return usertype;\n }", "pl.stormit.protobuf.UserProtos.User.UserType getUserType();", "public pl.stormit.protobuf.UserProtos.User.UserType getUserType() {\n pl.stormit.protobuf.UserProtos.User.UserType result = pl.stormit.protobuf.UserProtos.User.UserType.valueOf(userType_);\n return result == null ? pl.stormit.protobuf.UserProtos.User.UserType.NORMAL : result;\n }", "public pl.stormit.protobuf.UserProtos.User.UserType getUserType() {\n pl.stormit.protobuf.UserProtos.User.UserType result = pl.stormit.protobuf.UserProtos.User.UserType.valueOf(userType_);\n return result == null ? pl.stormit.protobuf.UserProtos.User.UserType.NORMAL : result;\n }", "public static String businessGetUserType(FormUser formUser)\n\t\t\tthrows SQLException {\n\n\t\tIUserDAO user = new UserDAO();\n\t\tString userType = user.getValidUser(formUser.getEmailID(),\n\t\t\t\tformUser.getPassword());\n\t\treturn userType;\n\n\t}", "UserProperty getUserProperty(BaseUser u);", "@Override\n\tpublic int getUserType(String userId) {\n\t\tMap<String, Object> map = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tMap<String, Object> result = joaSimpleDao.retrieve(\"tp_users\", map);\n\t\tif(null != result) {\n\t\t\treturn Integer.parseInt( result.get(\"USERTYPE\").toString());\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "@Test\n\tpublic void testGetUserType() {\n\t\tString userType = rmitAnalyticsModel.getUserType();\n\t\tAssert.assertNotNull(userType);\n\t\tAssert.assertEquals(\"unknown\", userType);\n\t}", "public boolean userType()\n {\n return false;\n }", "private String returnUserPageType(Model model, User sessionUser, String type) {\n\t\tUser pageUser = sessionUser;\n\n\t\tString urlname = pageUser.getRole().getUrlname();\n\n\t\tif (type.equals(\"profile\")) {\n\t\t\tif (urlname.equals(\"washer\")) {\n\t\t\t\tWasher pageWasher = washerService.findbyuser(pageUser);\n\t\t\t\tmodel.addAttribute(\"pageWasher\", pageWasher);\n\t\t\t} else if (urlname.equals(\"washee\")) {\n\t\t\t\tWashee pageWashee = washeeService.findbyuser(pageUser);\n\t\t\t\tmodel.addAttribute(\"pageWashee\", pageWashee);\n\t\t\t} else if (urlname.equals(\"admin\")) {\n\n\t\t\t} else {\n\t\t\t\treturn \"error\";\n\t\t\t}\n\n\t\t\tmodel.addAttribute(\"pageUser\", pageUser);\n\t\t\treturn urlname + \"Profile\";\n\n\t\t} else if (type.equals(\"dashboard\")) {\n\t\t\tif (pageUser.getRole().getUrlname().equals(\"washee\")) {\n\n\t\t\t\tWashRequest washRequest1 = new WashRequest();\n\t\t\t\twashRequest1.setAddress(addressService.findbyid(1));\n\n\t\t\t\tWashee pageWashee = washeeService.findbyuser(pageUser);\n\t\t\t\tList<WashRequest> AllRequests = washRequestService.findbywashee(pageWashee);\n\n\t\t\t\tList<WashRequestItem> PendingRequests = new ArrayList<WashRequestItem>();\n\t\t\t\tList<WashRequestItem> DoneRequests = new ArrayList<WashRequestItem>();\n\n\t\t\t\tfor (WashRequest washRequest : AllRequests) {\n\t\t\t\t\tWashRequestItem washRequestItem = washRequestItemService.findbyWashRequest(washRequest).get(0);\n\n\t\t\t\t\tif (washRequestItem.getWashStatus().getId() == 4) {\n\t\t\t\t\t\tDoneRequests.add(washRequestItem);\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tPendingRequests.add(washRequestItem);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodel.addAttribute(\"pendingRequests\", PendingRequests);\n\t\t\t\tmodel.addAttribute(\"doneRequests\", DoneRequests);\n\t\t\t\treturn urlname + \"Dashboard\";\n\n\t\t\t} else if (pageUser.getRole().getUrlname().equals(\"washer\")) {\n\n\t\t\t\tWasher pageWasher = washerService.findbyuser(pageUser);\n\t\t\t\tList<WashRequestItem> AllWasherJobs = washRequestItemService.findbywasher(pageWasher);\n\n\t\t\t\tList<WashRequestItem> PendingRequests = new ArrayList<WashRequestItem>();\n\t\t\t\tList<WashRequestItem> DoneRequests = new ArrayList<WashRequestItem>();\n\t\t\t\tList<WashRequestItem> AllAvailablewashes = washRequestItemService.findAllPendingWash();\n\n\t\t\t\tfor (WashRequestItem washRequestItem : AllWasherJobs) {\n\t\t\t\t\tif (washRequestItem.getWashStatus().getId() == 4) {\n\t\t\t\t\t\tDoneRequests.add(washRequestItem);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tPendingRequests.add(washRequestItem);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tmodel.addAttribute(\"pendingRequests\", PendingRequests);\n\t\t\t\tmodel.addAttribute(\"doneRequests\", DoneRequests);\n\t\t\t\tmodel.addAttribute(\"availableRequests\", AllAvailablewashes);\n\n\t\t\t\treturn urlname + \"Dashboard\";\n\t\t\t} else {\n\t\t\t\treturn \"error\";\n\t\t\t}\n\n\t\t} else if (type.equals(\"changepassword\")) {\n\t\t\treturn \"changePassword\";\n\t\t} else {\n\t\t\treturn \"error\";\n\t\t}\n\t}", "public String getPrincipalType(){\n return principalType;\n }", "public String getType() {\n return \"uid\";\n }", "protected String getType() {\n\t\treturn type;\n\t}", "public int getReqType()\r\n {\r\n return safeConvertInt(getAttribute(\"type\"));\r\n }", "public void setUserType(String userType) {\n this.userType = userType;\n }", "public String getType() { return type; }", "public String getType() {return type;}", "void setType(final UserType type);", "public UserType getUserType(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.usertype.v1.UserType res){\n\t\tif( res.getCode().intValue() == 1 ){\n\t\t\treturn UserType.CUSTOMER;\n\t\t}\n\t\tif( res.getCode().intValue() == 4 ){\n\t\t\treturn UserType.TRAVEL_AGENT;\n\t\t}\n\t\tif( res.getCode().intValue() == 9 ){\n\t\t\treturn UserType.RESERVATION_AGENT;\n\t\t}\n\t\tif( res.getCode().intValue() == 22 ){\n\t\t\treturn UserType.ADMINISTRATOR;\n\t\t}\n\t\tif( res.getCode().intValue() == 23 ){\n\t\t\treturn UserType.SKED_DESK;\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic Class<LoginUserAction> getActionType() {\n\t\treturn null;\n\t}", "@SuppressWarnings( \"UnusedDeclaration\" )\n\tinterface UserType<T> {\n\n\t\tvoid set( T t );\n\n\t\tT get();\n\t}", "protected abstract String getType();", "User getPassedUser();", "public static String getUserType(String email){\n Connection connect = null;\n ResultSet set = null;\n String userType = null;\n String getUserTypeSQL = \"SELECT user_type FROM users WHERE email= ?\";\n\n // Get User Type Try Block:\n try {\n // Set Connection:\n connect = DBConfig.getConnection();\n // Prepare SQL Statement:\n PreparedStatement statement = connect.prepareStatement(getUserTypeSQL);\n // Set Attributes / Parameters:\n statement.setString(1, email);\n // Execute Statement:\n set = statement.executeQuery();\n // Check For Results:\n while (set.next()){\n userType = set.getString(\"user_type\");\n }\n // End Of Check For Results:.\n\n }catch (Exception e){\n e.printStackTrace();\n }\n\n // End Of Get User Type Try Block.\n return userType;\n }", "UmType getUserManager();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public void askForUserType() {\n System.out.println(\"What type of User would you like to make? (Type Attendee, Speaker, VIP, or Organizer)\");\n }", "public String getType(){\r\n return type;\r\n }", "Object getTipo();", "@Override public io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType getType() {\n @SuppressWarnings(\"deprecation\")\n io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType result = io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.valueOf(type_);\n return result == null ? io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.UNRECOGNIZED : result;\n }", "@Override\n public io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType getType() {\n @SuppressWarnings(\"deprecation\")\n io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType result = io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.valueOf(type_);\n return result == null ? io.emqx.exhook.ClientAuthorizeRequest.AuthorizeReqType.UNRECOGNIZED : result;\n }", "@Override\n public String getTypeForDisplay() {\n return \"User\";\n }", "public Integer getUserTypeId()\n {\n return userTypeId;\n }", "public String getType(){\n \treturn this.type;\n }", "public __Type getQueryType() {\n return (__Type) get(\"queryType\");\n }", "public ChangeUserTypeRequest getChangeUserTypeRequest(HttpServletRequest req) {\n\t\tString requestId = (String) req.getParameter(\"requestId\");\n\t\t\n\t\t// Create the ChangeUserTypeRequest object\n\t\tChangeUserTypeRequest changeUserTypeRequest = new ChangeUserTypeRequest();\n\t\tchangeUserTypeRequest.setUsername(req.getParameter(\"name\" + requestId));\n\t\tchangeUserTypeRequest.setEmailAddress(req.getParameter(\"emailAddress\" + requestId));\n\t\tchangeUserTypeRequest.setNewUserType(req.getParameter(\"userType\" + requestId));\n\t\t\n\t\treturn changeUserTypeRequest;\n\t\t\n\t}", "public String get(Class requestor, String field, int type,\n String defaultString);", "public void askForUserInfo(String type) {\n switch (type) {\n case \"Username\":\n System.out.println(\"Enter username: \");\n break;\n case \"Password\":\n System.out.println(\"Enter password: \");\n break;\n case \"Name\":\n System.out.println(\"Enter Name: \");\n break;\n case \"Type\":\n System.out.println(\"Select the user type:\");\n System.out.println(\"1. Organizer\");\n System.out.println(\"2. Attendee\");\n System.out.println(\"3. VIP\");\n break;\n }\n }", "public String getType() {\n return (String) getObject(\"type\");\n }", "String getType() {\n return type;\n }", "public String getType(){\n\treturn type;\n }", "@Override\n public java.lang.String getPersonType() {\n return _entityCustomer.getPersonType();\n }", "public void setUsertype(String usertype) {\n this.usertype = usertype;\n }", "@Override\n public T get(ResolveContext context) {\n T dv = defaultValue == null ? null : defaultValue.resolve(context);\n\n String paramName = name.toString();\n if (context.userParameters != null && context.userParameters.containsKey(paramName)) {\n Object value = context.userParameters.get(paramName);\n if (dv == null) {\n //noinspection unchecked\n return (T) value;\n }\n if (dv instanceof Boolean && value instanceof String) {\n //noinspection unchecked\n return (T) (Object) \"true\".equals(value);\n }\n //noinspection unchecked\n return (T) DefaultGroovyMethods.asType(value, dv.getClass());\n } else if (dv != null) {\n return dv;\n } else if (required) {\n throw new MissingVariableException(name);\n } else {\n return null;\n }\n }", "public String getType(){\n return this.type;\n }", "@Override\n\tpublic String getType() {\n\t\treturn this.type;\n\t}", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();" ]
[ "0.6518277", "0.6518277", "0.6518277", "0.6518277", "0.63402045", "0.62188053", "0.6178791", "0.6107844", "0.6065923", "0.6058777", "0.59583914", "0.5856216", "0.5796023", "0.5721726", "0.5710215", "0.56877387", "0.56468743", "0.5629846", "0.56128585", "0.5600142", "0.5560962", "0.5493814", "0.5464423", "0.54492956", "0.5423954", "0.54174656", "0.54148865", "0.5409356", "0.54009235", "0.53783387", "0.53439415", "0.5327369", "0.53152895", "0.5310956", "0.53040963", "0.53020644", "0.5290424", "0.5283308", "0.52738756", "0.52718776", "0.5269292", "0.52658635", "0.52625", "0.52473074", "0.5237521", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.52228147", "0.5216172", "0.5204", "0.52037394", "0.5200152", "0.5193186", "0.5180189", "0.51785994", "0.51760644", "0.51753134", "0.516578", "0.51649487", "0.5163612", "0.5162786", "0.51414895", "0.5115893", "0.5112262", "0.5102462", "0.5102372", "0.510067", "0.50981885", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406", "0.5096406" ]
0.55849826
20
generates exceptions based on the results of a RESTReport NOTE: this is not done in the constructor of the RR because response codes vary by implementation and context.
protected final void delegateExceptionGeneration(final RESTReport rr) throws BackendRequestException { if (rr.wasInternalError()) { throw new BackendRequestException( "internal error during user creation: " + rr.getInternalErrorMessage()); } if (rr.rejected()) { if (rr.getHttpResponseCode() == HTTPCodes.INTERNAL_SERVER_ERROR) { throw new BackendRequestException( "an unrecoverable error occurred " + "on the server"); } else if (rr.getHttpResponseCode() == HTTPCodes.BAD_REQUEST) { throw new BackendRequestException( "an unrecoverable error occurred " + "with the request made to the server"); } else if (rr.getHttpResponseCode() == HTTPCodes.UNAUTHORIZED) { throw new AuthenticationException( "the authentication credentials " + "were rejected by the server"); } } if (!rr.success()) { if (rr.getSingleResponseMap() .get("message") .contains("credentials")) { throw new AuthenticationException( "matching account not found"); } throw new BackendRequestException( "the request was unsuccessful: " + rr.getResponseValue("message")); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract R createFailedResult(Status status);", "private void handleExceptions(Exception e,String uri) throws ServiceProxyException {\n \n //Step 1: Is error AdfInvocationRuntimeException, AdfInvocationException or AdfException? \n String exceptionPrimaryMessage = e.getLocalizedMessage();\n String exceptionSecondaryMessage = e.getCause() != null? e.getCause().getLocalizedMessage() : null;\n String combinedExceptionMessage = \"primary message:\"+exceptionPrimaryMessage+(exceptionSecondaryMessage!=null?(\"; secondary message: \"+exceptionSecondaryMessage):(\"\"));\n \n //chances are this is the Oracle MCS erro message. If so then ths message has a JSON format. A simple JSON parsing \n //test will show if our assumption is true. If JSONObject parsing fails then apparently the message is not the MCS\n //error message\n //{\n // \"type\":\".....\",\n // * \"status\": <error_code>,\n // * \"title\": \"<short description of the error>\",\n // * \"detail\": \"<long description of the error>\",\n // * \"o:ecid\": \"...\",\n // * \"o:errorCode\": \"MOBILE-<MCS error number here>\",\n // * \"o:errorPath\": \"<URI of the request>\"\n // }\n if(exceptionSecondaryMessage!=null){\n try {\n JSONObject jsonErrorObject = new JSONObject(exceptionSecondaryMessage);\n //if we get here, then its a Oracle MCS error JSON Object. Get the \n //status code or set it to 0 (means none is found)\n int statusCode = jsonErrorObject.optInt(\"status\", 0);\n throw new ServiceProxyException(statusCode, exceptionSecondaryMessage);\n \n } catch (JSONException jse) {\n //if parsing fails, the this is proof enough that the error message is not \n //an Oracle MCS message and we need to continue our analysis\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Exception message is not a Oracle MCS error JSONObject\", this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n } \n }\n \n //continue message analysis and check for known error codes for the references MCS API\n \n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Rest invocation failed with following message\"+exceptionPrimaryMessage, this.getClass().getSimpleName(), \"getCurrentUserInformation\");\n \n int httpErrorCode = -1; \n String restoredOracleMcsErrorMessage = null;\n \n /*\n * Try to identify an MCS failure from the exception message.\n */\n if(combinedExceptionMessage.contains(\"400\")){\n httpErrorCode = 400; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(400, \"Invalid JSON payload\", \"One of the following problems occurred: \" +\n \"the user does not exist, the JSON is invalid, or a property was not found.\", uri);\n }\n else if(combinedExceptionMessage.contains(\"401\")){\n httpErrorCode = 401; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(401, \"Authorization failure\", \"The user is not authorized to retrieve the information for another user.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(403, \"Functionality is not supported\", \"Functionality is not supported.\",uri); \n }\n else if(combinedExceptionMessage.contains(\"403\")){\n httpErrorCode = 404; \n restoredOracleMcsErrorMessage =\n OracleMobileErrorHelper.createOracleMobileErrorJson(404, \"User not found\", \"The user with the specified ID does not exist.\",uri);\n }\n \n else{\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request failed with Exception: \"+e.getClass().getSimpleName()+\"; message: \"+e.getLocalizedMessage(), this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(e.getLocalizedMessage(), ServiceProxyException.ERROR);\n }\n //if we get here then again its an Oracle MCS error, though one we found by inspecting the exception message\n this.getMbe().getMbeConfiguration().getLogger().logFine(\"Request succeeded successful but failed with MCS application error. HTTP response: \"+httpErrorCode+\", Error message: \"+restoredOracleMcsErrorMessage, this.getClass().getSimpleName(), \"handleExcpetion\");\n throw new ServiceProxyException(httpErrorCode, restoredOracleMcsErrorMessage);\n }", "Response.StatusType getStatus(Exception exception);", "protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) {\n res.setSampleLabel(res.getSampleLabel());\n res.setDataType(SampleResult.TEXT);\n ByteArrayOutputStream text = new ByteArrayOutputStream(200);\n e.printStackTrace(new PrintStream(text));\n res.setResponseData(text.toByteArray());\n res.setResponseCode(NON_HTTP_RESPONSE_CODE+\": \"+e.getClass().getName());\n res.setResponseMessage(NON_HTTP_RESPONSE_MESSAGE+\": \"+e.getMessage());\n res.setSuccessful(false);\n res.setMonitor(this.isMonitor());\n return res;\n }", "protected HTTPSampleResult errorResult(Throwable e, HTTPSampleResult res) {\n res.setSampleLabel(res.getSampleLabel());\n res.setDataType(SampleResult.TEXT);\n ByteArrayOutputStream text = new ByteArrayOutputStream(200);\n e.printStackTrace(new PrintStream(text));\n res.setResponseData(text.toByteArray());\n res.setResponseCode(NON_HTTP_RESPONSE_CODE+\": \" + e.getClass().getName());\n res.setResponseMessage(NON_HTTP_RESPONSE_MESSAGE+\": \" + e.getMessage());\n res.setSuccessful(false);\n res.setMonitor(this.isMonitor());\n return res;\n }", "@SuppressWarnings(\"ThrowableNotThrown\") \n public static Response getSCIMInternalErrorResponse() {\n JSONEncoder encoder = new JSONEncoder();\n CharonException exception = new CharonException(\"Internal Error\");\n String responseStr = encoder.encodeSCIMException(exception);\n return Response.status(exception.getStatus()).entity(responseStr).build();\n }", "private void mapAndThrow(Exception e) {\n int status = HttpStatus.INTERNAL_SERVER_ERROR_500;\n String code = \"INTERNAL_SERVER_ERROR\";\n\n // Resolve and map standard exceptions\n if (e.getClass().isAssignableFrom(MockingjayDataAccessException.class) ||\n e.getClass().isAssignableFrom(MockingjayGenericException.class) ||\n e.getClass().isAssignableFrom(FileWriterException.class)) {\n status = HttpStatus.INTERNAL_SERVER_ERROR_500;\n code = \"INTERNAL_SERVER_ERROR\";\n } else if (e.getClass().isAssignableFrom(JsonTransformationException.class)) {\n status = HttpStatus.BAD_REQUEST_400;\n code = \"BAD_REQUEST\";\n } else if (e.getClass().isAssignableFrom(FileNotFoundException.class)) {\n status = HttpStatus.NOT_FOUND_404;\n code = \"RESOURCE_NOT_FOUND\";\n } else if (e.getClass().isAssignableFrom(FileStorageException.class)) {\n status = HttpStatus.INSUFFICIENT_STORAGE_507;\n code = \"INSUFFICIENT_STORAGE\";\n }\n\n // Throw resource exception\n throw new ResourceException(e, status, code);\n }", "public void failReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }", "AugmentedRestLiResponseData convertExceptionToRestLiResponseData(Throwable e)\n {\n RestLiServiceException restLiServiceException;\n if (e instanceof RestLiServiceException)\n {\n restLiServiceException = (RestLiServiceException) e;\n }\n else if (e instanceof RoutingException)\n {\n RoutingException routingException = (RoutingException) e;\n\n restLiServiceException =\n new RestLiServiceException(HttpStatus.fromCode(routingException.getStatus()),\n routingException.getMessage(),\n routingException);\n }\n else\n {\n restLiServiceException = new RestLiServiceException(HttpStatus.S_500_INTERNAL_SERVER_ERROR, e.getMessage(), e);\n }\n\n Map<String, String> requestHeaders = _request.getHeaders();\n Map<String, String> headers = new HashMap<String, String>();\n headers.put(ProtocolVersionUtil.getProtocolVersionHeaderName(requestHeaders),\n ProtocolVersionUtil.extractProtocolVersion(requestHeaders).toString());\n headers.put(HeaderUtil.getErrorResponseHeaderName(requestHeaders), RestConstants.HEADER_VALUE_ERROR);\n return _responseHandler.buildExceptionResponseData(_request, _method, restLiServiceException, headers);\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n }", "public static Response createFailureResponse(\n Request request, ResponseCode code, ResponseCode headerCode) {\n\n Response response = new Response();\n response.setVer(getApiVersion(request.path()));\n response.setId(ResponseIdUtil.getApiResponseId(request.path(), request.method()));\n response.setTs(ProjectUtil.getFormattedDate());\n response.setResponseCode(headerCode);\n response.setParams(createResponseParamObj(code));\n return response;\n }", "public SkPublishAPIException(Throwable cause, int statusCode, String response) {\n super(cause);\n this.response = response;\n this.statusCode = statusCode;\n }", "@Override\n public Response toResponse(InternalException ex) {\n ExternalException externalException = new ExternalException(\n ex.getErrorCode(),\n ex.getErrorDescription());\n\n Response.ResponseBuilder builder = Response\n .status(ex.getHttpStatusCode())\n .entity(externalException)\n .type(MediaType.APPLICATION_JSON);\n\n return builder.build();\n }", "public SkPublishAPIException(int statusCode, String response) {\n super();\n this.response = response;\n this.statusCode = statusCode;\n }", "public Result createCommonExceptionResponse(\n Exception e, Request request, boolean generateTelemetry) {\n\n ProjectCommonException exception = null;\n if (e instanceof ProjectCommonException) {\n exception = (ProjectCommonException) e;\n } else {\n exception =\n new ProjectCommonException(\n ResponseCode.internalError.getErrorCode(),\n ResponseCode.internalError.getErrorMessage(),\n ResponseCode.SERVER_ERROR.getResponseCode());\n }\n\n Request req = request;\n if (req == null) {\n req = request();\n }\n\n if (generateTelemetry) {\n generateTelemetryForExceptionResponse(exception, req);\n }\n return createCommonExceptionResult(req.path(), exception, req.method());\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n e.printStackTrace();\n }", "public ResponseBase(Collection<Violation> violations) {\n this(Status.FAIL);\n this.violations = violations;\n }", "Response build(HttpStatus errorStatus);", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)\n {\n super.onFailure(statusCode, headers, responseString, throwable);\n System.out.println(\"applyBook-->onFailure\" + statusCode);\n }", "public static ProjectCommonException createExceptionForBadger(int statusCode) {\n ProjectLogger.log(\"Badger is sending status code as \" + statusCode, LoggerEnum.INFO.name());\n switch (statusCode) {\n case 400:\n return new ProjectCommonException(\n ResponseCode.invalidData.getErrorCode(),\n ResponseCode.invalidData.getErrorMessage(),\n ResponseCode.CLIENT_ERROR.getResponseCode());\n case 401:\n return new ProjectCommonException(\n ResponseCode.unAuthorized.getErrorCode(),\n ResponseCode.unAuthorized.getErrorMessage(),\n ResponseCode.UNAUTHORIZED.getResponseCode());\n case 403:\n return new ProjectCommonException(\n ResponseCode.unAuthorized.getErrorCode(),\n ResponseCode.unAuthorized.getErrorMessage(),\n ResponseCode.UNAUTHORIZED.getResponseCode());\n case 404:\n return new ProjectCommonException(\n ResponseCode.resourceNotFound.getErrorCode(),\n ResponseCode.resourceNotFound.getErrorMessage(),\n ResponseCode.RESOURCE_NOT_FOUND.getResponseCode());\n default:\n return new ProjectCommonException(\n ResponseCode.internalError.getErrorCode(),\n ResponseCode.internalError.getErrorMessage(),\n ResponseCode.SERVER_ERROR.getResponseCode());\n }\n }", "public interface ExceptionContext {\n\n String DEFUALT_EX_MSG =\"网络异常\";//默认异常信息\n\n String DEFUALT_EX_CODE =\"500\";//默认异常状态码\n\n String UNKNOW_EX_MSG =\"未知异常\";//未知异常信息\n\n}", "@Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable)\n {\n super.onFailure(statusCode, headers, responseString, throwable);\n LogUtil.i(TAG, \"getservBookResource\", \"statusCode=\" + statusCode);\n LogUtil.i(TAG, \"getservBookResource\", \"responseString=\" + responseString);\n }", "public SkPublishAPIException(String message, Throwable cause, int statusCode, String response) {\n super(message, cause);\n this.response = response;\n this.statusCode = statusCode;\n }", "@ExceptionHandler(value = Exception.class)\n @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n public ResponseEntity<?> exception(Exception exception, WebRequest request) {\n\n RestExceptionResponse response = new RestExceptionResponse();\n response.setSuccess(Boolean.FALSE);\n\n if (exception instanceof HttpMessageNotReadableException) {\n\n // Request body is not present or readable.\n LOGGER.warn(\"Request body not readable\", exception);\n response.setMessage(\"Required request body content\"\n + \" is missing or is not readable\");\n\n } else if (exception instanceof HttpMediaTypeNotAcceptableException) {\n\n // Request is not having acceptable media type representation.\n LOGGER.warn(\"Request mediatype not accetable\", exception);\n response.setMessage(\"Required acceptable mediatype representation\");\n\n } else if (exception instanceof NotFoundException) {\n\n LOGGER.warn(\"Requested resource does not exist\", exception);\n // Requested resource does not exist. NotFound means 404 and no respsonse body\n return ResponseEntity.notFound().build();\n\n } else if (exception instanceof TypeMismatchException) {\n\n // Type Mismatch Error for the request properties/attributes\n TypeMismatchException ex = (TypeMismatchException) exception;\n response.setSuccess(Boolean.FALSE);\n response.setMessage(ex.getMessage());\n response.addError(ex.getErrorCode(), ex.getInvalidReason());\n return ResponseEntity.badRequest().body(response);\n\n } else if (exception instanceof ConstraintViolationException) {\n\n // Bean validation erros are found. These errors normally violate the \n // validation annotations of the JSR-303 specification used in models.\n response.setMessage(\"Some values are missing or invalid\");\n ConstraintViolationException ex = (ConstraintViolationException) exception;\n ex.getConstraintViolations().stream().forEach(violation -> {\n response.addError(violation.getPropertyPath().toString(),\n violation.getMessage());\n });\n\n } else if (exception instanceof ValidationException) {\n\n // A ValidationException is thrown when a logical error is found.\n // Alternatively when the request conflicts with the requirements \n // of the business logic, such an exception is important.\n response.setMessage(\"Invalid request\");\n ValidationException ex = (ValidationException) exception;\n response.setMessage(ex.getMessage());\n\n } else {\n // Any other exceptions thrown\n LOGGER.error(\"Unexpected error\", exception);\n response.setMessage(\"Request couldn't be processed\");\n }\n\n return ResponseEntity.badRequest().body(response);\n }", "public static com.myfitnesspal.shared.api.ApiResponseBase mapException(com.myfitnesspal.shared.api.ApiException r2) {\n /*\n com.myfitnesspal.shared.model.mapper.ApiJsonMapper r0 = new com.myfitnesspal.shared.model.mapper.ApiJsonMapper // Catch:{ IOException -> 0x001f, Exception -> 0x001a }\n r0.<init>() // Catch:{ IOException -> 0x001f, Exception -> 0x001a }\n java.lang.Class<com.myfitnesspal.shared.api.ApiResponseBase> r1 = com.myfitnesspal.shared.api.ApiResponseBase.class\n com.myfitnesspal.shared.model.mapper.ApiJsonMapper r0 = r0.withType(r1) // Catch:{ IOException -> 0x001f, Exception -> 0x001a }\n java.lang.String r1 = r2.getBody() // Catch:{ IOException -> 0x001f, Exception -> 0x001a }\n java.lang.String r1 = com.uacf.core.util.Strings.toString(r1) // Catch:{ IOException -> 0x001f, Exception -> 0x001a }\n java.lang.Object r0 = r0.mapFrom(r1) // Catch:{ IOException -> 0x001f, Exception -> 0x001a }\n com.myfitnesspal.shared.api.ApiResponseBase r0 = (com.myfitnesspal.shared.api.ApiResponseBase) r0 // Catch:{ IOException -> 0x001f, Exception -> 0x001a }\n goto L_0x0024\n L_0x001a:\n r0 = move-exception\n com.uacf.core.util.Ln.e(r0)\n goto L_0x0023\n L_0x001f:\n r0 = move-exception\n com.uacf.core.util.Ln.e(r0)\n L_0x0023:\n r0 = 0\n L_0x0024:\n if (r0 != 0) goto L_0x0045\n com.myfitnesspal.shared.api.ApiResponseBase r0 = new com.myfitnesspal.shared.api.ApiResponseBase\n r0.<init>()\n int r1 = r2.getStatusCode()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n java.lang.String r1 = com.uacf.core.util.Strings.toString(r1)\n r0.setError(r1)\n java.lang.String r2 = r2.getBody()\n java.lang.String r2 = com.uacf.core.util.Strings.toString(r2)\n r0.setErrorDescription(r2)\n L_0x0045:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.myfitnesspal.shared.api.MfpApiUtil.mapException(com.myfitnesspal.shared.api.ApiException):com.myfitnesspal.shared.api.ApiResponseBase\");\n }", "@Override\n public void onFailure(Call<List<ReportDAO>> call, Throwable t) {\n }", "protected ErrorResponse()\n {\n super();\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, String res, Throwable t) {\n\n Log.i(\"onFailure\", res);\n }", "public ResourceException toResourceException(int defaultCode, String defaultMsg) {\n if (value instanceof Map) {\n // Convention on structuring well known exceptions with value that\n // contains\n // code : Integer matching ResourceException codes\n // (required for it to be considered a known exception definition)\n // reason : String - optional exception reason, not set this use the\n // default value\n // message : String - optional exception message, set to\n // value.toString if not present\n // detail : Map<String, Object> - optional structure with exception\n // detail\n // cause : Throwable - optional cause to chain\n JsonValue val = new JsonValue(value);\n Integer openidmCode = val.get(FIELD_CODE).asInteger();\n if (openidmCode != null) {\n String message = val.get(FIELD_MESSAGE).asString();\n if (message == null) {\n if (defaultMsg != null) {\n message = defaultMsg;\n } else {\n message = String.valueOf(value);\n }\n }\n JsonValue failureDetail = val.get(FIELD_DETAIL);\n Throwable throwable = (Throwable) val.get(\"cause\").getObject();\n if (throwable == null) {\n throwable = this;\n }\n return getException(openidmCode.intValue(), message, throwable).setDetail(\n failureDetail);\n\n }\n }\n if (defaultMsg != null) {\n return getException(defaultCode, defaultMsg, this);\n } else if (value == null) {\n return getException(defaultCode, null, this);\n } else {\n return getException(defaultCode, String.valueOf(value.toString()), this);\n }\n }", "private void generateTelemetryForExceptionResponse(\n ProjectCommonException exception, Request request) {\n ProjectLogger.log(exception.getMessage(), exception, generateTelemetryInfoForError());\n // Generate a telemetry event of type API_ACCESS\n generateTelemetry(\n request,\n exception.getMessage(),\n String.valueOf(exception.getResponseCode()),\n TelemetryConstant.LOG_LEVEL_ERROR,\n generateStackTrace(exception.getStackTrace()));\n }", "protected CustomException getException(int code, String message, Object... objects) {\n return new CustomException(code, String.format(message, objects));\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 }", "Result(Exception e) {\n empty = false;\n this.e = e;\n status = 1;\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, String rawJsonResponse, Object response){\n }", "@Override\n public ResponseEntity<?> createReport(OutputReport report) throws IOException, MessagingException {\n Date endDate = midnight();\n Date startDate = midnight();\n if (report.getReportType() == 0) {\n endDate = midnight();\n startDate = setDateBefore(1);\n } else if (report.getReportType() == 1) {\n endDate = midnight();\n startDate = setDateBefore(7);\n } else if (report.getReportType() == 2) {\n endDate = midnight();\n startDate = setDateBefore(30);\n } else if (report.getReportType() == 3) {\n endDate = new Date(report.getEndDate());\n startDate = new Date(report.getStartDate());\n }\n ExcelHelper.writeExcel(report.getReportItemList(), \"NiceJavaBooks.xls\", report.getTotalRevenue());\n Place place = placeRepository.findById(report.getPlaceId()).get();\n String content = \"\";\n if(report.getReportType() == 0){\n content = \"Daily sales report\";\n }else if(report.getReportType() == 1){\n content = \"Weekly sales report\";\n }else if(report.getReportType() == 2){\n content = \"Monthly sales report\";\n }else if(report.getReportType() == 3){\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n content = \"Sales report from \"+formatter.format(startDate)+\" to \"+formatter.format(endDate);\n }\n sendEmail(new File(\"NiceJavaBooks.xls\"), place.getMail(), content);\n return ResponseEntity.ok(\"OK\");\n }", "public static RestTestException getRestTestException(HttpMethodBase method) {\n return new RestTestException(\"\", 0);\n\n }", "@Override\n\tpublic void report() throws Exception {\n\t\t\n\t}", "public ExecutionResult execute(MessageContext messageContext, ExecutionContext executionContext) {\n\t\tfinal ExecutionResult er = ExecutionResult.SUCCESS;\n\t\tint status_code = 200;\n\t\tString reason = \"OK\";\n\t\tString errorMessage = \"\";\n\t\tString result = \"\";\n\t\tPatientList patientList = new PatientList();\n\t\tfinal FhirOpenemrConn conn = new FhirOpenemrConn();\n\t\tFhirContext context = new FhirContext();\n\t\t\n\t\t// Get the response received from server stored in apigee variable\n\t\tString inputDocument = messageContext.getVariable(\"input_openemr_response\");\n\t\tString id = messageContext.getVariable(\"id\");\n\t\tinputDocument = inputDocument.trim();\n\t\tStringReader stringReader = new StringReader(inputDocument);\n\t\t//messageContext.setVariable(\"inside_fun\", 1);\n\t\t// Check and remove any BOM character present in response.\n\t\tif (inputDocument.charAt(0) != '<' && inputDocument.charAt(0) != '{') {\n\t\t\tint start = inputDocument.indexOf(\"<\");\n\t\t\tinputDocument = inputDocument.substring(start);\n\t\t}\n\n\t\tString output_MT = messageContext.getVariable(\"outputMediaType\");\n\t\tmessageContext.setVariable(\"outputTypeFromCallout\", output_MT );\n\t\t// Get the actual Content type of response and required content type.\n\t\tString outputMediaType = \"application/json+fhir\";\n\n\t\t//messageContext.setVariable(\"inside_fun\", 2);\n\t\tif(outputMediaType == \"\" || outputMediaType == null)\n\t\t{\n\t\t\toutputMediaType = \"application/json+fhir\";\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBundle bundle;\n\t\t\tPatient patient;\n\t\t\t\n\t\t\t//messageContext.setVariable(\"inside_fun\", 4);\n\t\t\tpatientList = getPatientList(stringReader);\n\t\t \n\t\t //messageContext.setVariable(\"inside_fun1\", patientList);\n\t\t IParser parser = getParser(context, FHIRMediaType.getType(outputMediaType) );\n\t\t\tparser.setPrettyPrint(true);\n\t\t\t\n\t\t\tmessageContext.setVariable(\"inside_fun\", 5);\n\t\t\tif(id ==\"\" || id == null){\n\t\t\t\tbundle = getAllPatients(patientList);\n\t\t\t\tresult = parser.encodeResourceToString(bundle);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tpatient = getSinglePatient(patientList,0);\n\t\t\t\tresult = parser.encodeResourceToString(patient);\t\n\t\t\t}\n\t\t\t\n\t\t\tmessageContext.setVariable(\"inside_fun\", 6);\n\t\t\t\n\t\t} catch (UnsupportedOperationException e) {\n\t\t\tstatus_code = 415;\n\t\t\treason = \"Unsupported media type\";\n\t\t\terrorMessage = \"Media type not supported.\";\n\t\t} catch (Throwable e) {\n\t\t\tmessageContext.setVariable(\"inside_fun\", e);\n\t\t\tstatus_code = 500;\n\t\t\treason = \"Internal Server Error\";\n\t\t\terrorMessage = e.getMessage();\n\t\t\tmessageContext.setVariable(\"output_openemr_document\", errorMessage);\n\t\t\t\n\t\t} finally {\n\t\t\tif (stringReader != null)\n\t\t\t\tIOUtils.closeQuietly(stringReader);\n\t\t}\n\t\t\n\t\tif (status_code == 200) {\n\t\t\t// Set result and message variables for apigee flow if response converted successfully\n\t\t\tmessageContext.setVariable(\"inside_fun\", \"STATUS IS 200\");\n\t\t\tmessageContext.setVariable(\"output_openemr_document\", result);\n\t\t\tmessageContext.setVariable(\"output_media_type\", outputMediaType);\n\t\t} \n\t\telse {\n\t\t\t// Set error message variables for apigee flow if any error occur in process.\n\t\t\tmessageContext.setVariable(\"output_openemr_status\", Integer.toString(status_code));\n\t\t\tmessageContext.setVariable(\"output_openemr_reason\", reason);\n\t\t\tif (!StringUtils.isEmpty(errorMessage))\n\t\t\t\tmessageContext.setVariable(\"output_openemr_error\", errorMessage);\n\t\t}\n\t\treturn er;\n\t}", "private static SampleResult getErrorResult(final Context context, final SampleResult result, final String errorMessage, final Exception exception) {\n result.setError(true);\n result.setStatusCode(\"NL-TCP-GENERATOR_ERROR\");\n result.setResponseContent(errorMessage);\n if (exception != null) {\n context.getLogger().error(errorMessage, exception);\n } else {\n context.getLogger().error(errorMessage);\n }\n return result;\n }", "ResponseEntity<Object> handleException(HttpServletRequest request,\n HttpServletResponse response,\n Exception exception,\n List<String> errorMessages);", "public ResultProxy addStandardException(Exception e){\n\t\taddRecordToDataset(\"exceptions\", new RecordProxy()\n\t\t\t.addParam(\"opstatus\", 10500)\n\t\t\t.addParam(\"httpStatusCode\", 500)\n\t\t\t.addParam(\"message\", e.getMessage())\n\t\t\t.addParam(\"class\", e.getClass().getCanonicalName())\n\t\t\t.addParam(\"stack\", ExceptionUtils.getStackTrace(e))\n\t\t);\n\t\t//\t)\n\t\t//);\n\n\t\treturn this;\n\t}", "@ExceptionHandler({BusinessException.class, InvalidDataException.class, PersistenDataException.class,GeneralException.class})\r\n\tpublic ResponseEntity<DefaultErrorList> handlerRestException (ModelException ex, HttpServletRequest request){\r\n\t\treturn new ResponseEntity<DefaultErrorList>(new DefaultErrorList\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(new DefaultError\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(ex.getCode(), \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ex.getMessage(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ex.getLevel(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t ex.getDescription(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t request.getRequestURL().toString())\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),ex.getHttpStatus());\r\n\t}", "public abstract int statusCode();", "@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\r\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n\r\n }", "public Result createCommonExceptionResult(String path, Exception exception, String method) {\n Response reponse = createResponseOnException(path, exception, method);\n int status = ResponseCode.SERVER_ERROR.getResponseCode();\n if (exception instanceof ProjectCommonException) {\n ProjectCommonException me = (ProjectCommonException) exception;\n status = me.getResponseCode();\n }\n return Results.status(status, Json.toJson(reponse));\n }", "protected ResultEntity error(Exception ex) {\n log.error(ex);\n resultEntity.setMessage(ex.getMessage());\n if (ex instanceof CustomException) {\n CustomException customException = (CustomException) ex;\n resultEntity.setCode(customException.getCode());\n resultEntity.setData(customException.getData());\n } else {\n resultEntity.setCode(500);\n resultEntity.setMessage(\"Internal Server Error \" + ex.getMessage());\n }\n return resultEntity;\n }", "@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, String responseString, Throwable throwable) {\n\n\t\t\t\t\t}", "private static Response getErrorResponse(Exception exception) {\n Response response = new Response();\n ResponseParams resStatus = new ResponseParams();\n String message = setMessage(exception);\n resStatus.setErrmsg(message);\n resStatus.setStatus(StatusType.FAILED.name());\n if (exception instanceof ProjectCommonException) {\n ProjectCommonException me = (ProjectCommonException) exception;\n resStatus.setErr(me.getCode());\n response.setResponseCode(ResponseCode.getHeaderResponseCode(me.getResponseCode()));\n } else {\n resStatus.setErr(ResponseCode.SERVER_ERROR.name());\n response.setResponseCode(ResponseCode.SERVER_ERROR);\n }\n response.setParams(resStatus);\n return response;\n }", "@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}", "@Override\n\tpublic void onErrorResult(HttpRequest request,int requestId, int statusCode, Throwable e) {\n\t\t\n\t}", "public ResourceException(Exception exception) {\r\n super(exception);\r\n }", "private FileValidationReport createFileNotAccessibleReport() {\n\t\tFileValidationReport fileValRep = new FileValidationReport();\n\t\tfileValRep.setValidationOutcome(ValidationOutcome.NOT_VALID);\n\t\tfileValRep.setFitsExecutionOutcome(ExecutionOutcome.DID_NOT_RUN);\n\t\tfileValRep.setVeraPdfExecutionOutcome(ExecutionOutcome.DID_NOT_RUN);\n\t\tfileValRep.getErrorMessages().add(\"File can not be accessed\");\n\t\treturn fileValRep;\n\t}", "@Override\n\t\t\tpublic void onFailure(Throwable t, String errorMsg, int statusCode) {\n\t\t\t}", "public ResourceException(String reason, Exception exception) {\r\n super(reason, exception);\r\n }", "public java.util.Enumeration getFaultReport() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n\n instantiateEJB();\n return ejbRef().getFaultReport();\n }", "@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 }", "public RestApiException(final int intStatus) {\n\t\tsuper(intStatus);\n\t}", "@Test\n\t\tpublic void testRestErrorResponse() throws Exception {\n\n\t\t\tString responseBody = TestUtils.getErrorResultString();\n\t\ttry {\n\t\t\t\t\n\t\t\t\tResponseEntity<ResponseWrapper> responseEntity= prepareReponseEntity(responseBody);\n\t\t\t\t\n\t\t\t\tboolean flag=weatherService.checkForErrors(responseEntity);\n\t\t\t\tassertTrue(flag);\n\t\t\t\tthis.mockServer.verify();\n\t\t\t} catch (Exception e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }", "protected Response checkResponse(Response plainAnswer) throws WSException{\n if(plainAnswer!=null)\n switch(plainAnswer.getStatus()){\n //good answers\n case 200: {\n return plainAnswer;\n }//OK\n case 202: {\n return plainAnswer;\n }//ACCEPTED \n case 201: {\n return plainAnswer;\n }//CREATED\n //To be evaluate\n case 204: {\n return plainAnswer;\n }//NO_CONTENT\n //bad answers\n case 400: {\n throw new WSException400(\"BAD REQUEST! The action can't be completed\");\n }//BAD_REQUEST \n case 409: {\n throw new WSException409(\"CONFLICT! The action can't be completed\");\n }//CONFLICT \n case 403: {\n throw new WSException403(\"FORBIDDEN!The action can't be completed\");\n }//FORBIDDEN \n case 410: {\n throw new WSException410(\"GONE! The action can't be completed\");\n }//GONE\n case 500: {\n throw new WSException500(\"INTERNAL_SERVER_ERROR! The action can't be completed\");\n }//INTERNAL_SERVER_ERROR \n case 301: {\n throw new WSException301(\"MOVED_PERMANENTLY! The action can't be completed\");\n }//MOVED_PERMANENTLY \n case 406: {\n throw new WSException406(\"NOT_ACCEPTABLE! The action can't be completed\");\n }//NOT_ACCEPTABLE\n case 404: {\n throw new WSException404(\"NOT_FOUND! The action can't be completed\");\n }//NOT_FOUND\n case 304: {\n throw new WSException304(\"NOT_MODIFIED! The action can't be completed\");\n }//NOT_MODIFIED \n case 412: {\n throw new WSException412(\"PRECONDITION_FAILED! The action can't be completed\");\n }//PRECONDITION_FAILED \n case 303: {\n throw new WSException303(\"SEE_OTHER! The action can't be completed\");\n }//SEE_OTHER\n case 503: {\n throw new WSException503(\"SERVICE_UNAVAILABLE! The action can't be completed\");\n }//SERVICE_UNAVAILABLE\n case 307: {\n throw new WSException307(\"TEMPORARY_REDIRECT! The action can't be completed\");\n }//TEMPORARY_REDIRECT \n case 401: {\n throw new WSException401(\"UNAUTHORIZED! The action can't be completed\");\n }//UNAUTHORIZED \n case 415: {\n throw new WSException415(\"UNSUPPORTED_MEDIA_TYPE! The action can't be completed\");\n }//UNSUPPORTED_MEDIA_TYPE \n }\n return plainAnswer;\n }", "public ReportsException (final String message, final String type) {\n super(message);\n this.type = type;\n }", "public RestApiException(final Response response) {\n\t\tsuper(response);\n\t\t// logger.error(\"stackTraceToString(this) = {}\", stackTraceToString(this));\n\t}", "abstract Integer getStatusCode();", "private ResponseEntity<Object> buildExceptionResponseEntity(final Exception exception, final HttpStatus status,\n final WebRequest request, final List<String> errors) {\n final Map<String, Object> body = new LinkedHashMap<>();\n final String path = request.getDescription(false);\n body.put(TIMESTAMP, Instant.now());\n body.put(STATUS, status.value());\n body.put(ERRORS, errors);\n body.put(TYPE, exception.getClass().getSimpleName());\n body.put(PATH, path);\n body.put(MESSAGE, buildMessageForStatus(status));\n final String errorsMessage = null != errors ?\n errors.stream().filter(StringUtils::isNotEmpty).collect(Collectors.joining(STRING_JOIN_DELIMITER))\n : status.getReasonPhrase();\n logger.error(PATH_FOR_ERRORS, errorsMessage, path);\n return new ResponseEntity<>(body, status);\n }", "public SkPublishAPIException(String message, int statusCode, String response) {\n super(message);\n this.response = response;\n this.statusCode = statusCode;\n }", "public ReportDataAccessException(String message) {\n super(message);\n }", "@Override\r\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t}", "public String generalReport() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\tmodel.terminate();\r\n\t\treturn null;\r\n\t}", "public final org.xms.g.common.api.PendingResult<XS> createFailedResult(org.xms.g.common.api.Status param0) {\n if (org.xms.g.utils.GlobalEnvSetting.isHms()) {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.huawei.hms.support.api.client.ResultConvert) this.getHInstance()).newFailedPendingResult(((com.huawei.hms.support.api.client.Status) ((param0) == null ? null : (param0.getHInstance()))))\");\n com.huawei.hms.support.api.client.PendingResult hReturn = ((com.huawei.hms.support.api.client.ResultConvert) this.getHInstance()).newFailedPendingResult(((com.huawei.hms.support.api.client.Status) ((param0) == null ? null : (param0.getHInstance()))));\n return ((hReturn) == null ? null : (new org.xms.g.common.api.PendingResult.XImpl(new org.xms.g.utils.XBox(null, hReturn))));\n } else {\n org.xms.g.utils.XmsLog.d(\"XMSRouter\", \"((com.google.android.gms.common.api.ResultTransform) this.getGInstance()).createFailedResult(((com.google.android.gms.common.api.Status) ((param0) == null ? null : (param0.getGInstance()))))\");\n com.google.android.gms.common.api.PendingResult gReturn = ((com.google.android.gms.common.api.ResultTransform) this.getGInstance()).createFailedResult(((com.google.android.gms.common.api.Status) ((param0) == null ? null : (param0.getGInstance()))));\n return ((gReturn) == null ? null : (new org.xms.g.common.api.PendingResult.XImpl(new org.xms.g.utils.XBox(gReturn, null))));\n }\n }", "public interface ViewDetailsExceptionCodes extends BaseExceptionCodes {\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsManagerException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0020 = 700020;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsConfigurationException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0021 = 700021;\r\n\r\n /**\r\n * <p>\r\n * Exception code for TransactionAssessmentViewDetailsDaoException.\r\n * </p>\r\n */\r\n public final long FMS_WEB_07_ERR_0022 = 700022;\r\n}", "public String execute()\r\n/* 113: */ {\r\n/* 114: */ try\r\n/* 115: */ {\r\n/* 116:153 */ super.prepareReport();\r\n/* 117: */ }\r\n/* 118: */ catch (JRException e)\r\n/* 119: */ {\r\n/* 120:155 */ LOG.info(\"Error JRException\");\r\n/* 121:156 */ e.printStackTrace();\r\n/* 122:157 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 123: */ }\r\n/* 124: */ catch (IOException e)\r\n/* 125: */ {\r\n/* 126:159 */ LOG.info(\"Error IOException\");\r\n/* 127:160 */ e.printStackTrace();\r\n/* 128:161 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 129: */ }\r\n/* 130:164 */ return null;\r\n/* 131: */ }", "public NotFoundException() {\r\n super(Responses.notFound().build());\r\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n loopjListener.getResponse(\"Error Bro:(\");\n Log.d(TAG, \"onFailure#1: \" + errorResponse);\n }", "@Override\n public void onFailure(int statusCode, Header[] headers, Throwable throwable, JSONObject errorResponse) {\n loopjListener.getResponse(\"Error Bro:(\");\n Log.d(TAG, \"onFailure#1: \" + errorResponse);\n }", "public BcosNodeProxyException(RetCode retCode, Throwable cause) {\n super(retCode.getMessage(), cause);\n retCode.setMessage(JacksonUtils.objToString(cause.getMessage()));\n this.retCode = retCode;\n }", "@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tbyte[] responseBody, Throwable error) {\n\t\t\t\t\t\terror.printStackTrace();\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\tbyte[] responseBody, Throwable error) {\n\t\t\t\t\t\terror.printStackTrace();\n\t\t\t\t\t}", "@Override\n\tpublic Object handleDataException(DataException exc) {\n\t\tGenericResponsePayload grp = new GenericResponsePayload();\n\t\tString msg = DEFAULT_INTERNAL_SERVER_ERROR_MESSAGE;\n\t\tHttpStatus status = HttpStatus.INTERNAL_SERVER_ERROR;\n\t\tgrp.setMessage(msg);\n\t\treturn new ResponseEntity<>(grp, status);\n\t}", "public QueryTaskResult( Exception exception, String message, String reason, StatusCode status )\n\t{\n\t\tsuper( exception, message, reason );\n\t\tthis.myStatusCode = status;\n\t}", "private static String doListBuilderExceptionResponse(HttpServletRequest request, HttpServletResponse response, Paginator paginator, ListBuilderException e) {\n request.setAttribute(\"listBuilderException\", e); // save the exception\n return \"listBuilderException\"; // FormletEventHandler should check for this\n }", "abstract protected void reportResult(Result result);", "public RestResult(int responseCode, String errorMsg, String result) {\n this.responseCode = responseCode;\n this.errorMsg = errorMsg;\n this.result = result;\n }", "private void getReportReasonApi() {\n if (CommonClass.isNetworkAvailable(mActivity)) {\n String url = ApiUrl.REPORT_USER_REASON + \"?token=\" + mSessionManager.getAuthToken();\n mProgressBar.setVisibility(View.VISIBLE);\n OkHttp3Connection.doOkHttp3Connection(TAG, url, OkHttp3Connection.Request_type.GET, new JSONObject(), new OkHttp3Connection.OkHttp3RequestCallback() {\n @Override\n public void onSuccess(String result, String user_tag) {\n System.out.println(TAG + \" \" + \"get report reason res=\" + result);\n\n mProgressBar.setVisibility(View.GONE);\n System.out.println(TAG + \" \" + \"report post reason res=\" + result);\n\n Gson gson = new Gson();\n ReportProductMain reportProductMain = gson.fromJson(result, ReportProductMain.class);\n\n switch (reportProductMain.getCode()) {\n // success\n case \"200\":\n arrayListReportItem.addAll(reportProductMain.getData());\n if (arrayListReportItem != null && arrayListReportItem.size() > 0) {\n rL_submit.setVisibility(View.VISIBLE);\n ReportItemRvAdapter reportItemRvAdapter = new ReportItemRvAdapter(mActivity, arrayListReportItem, true);\n LinearLayoutManager linearLayoutManager = new LinearLayoutManager(mActivity);\n rV_reportUser.setLayoutManager(linearLayoutManager);\n rV_reportUser.setAdapter(reportItemRvAdapter);\n }\n break;\n\n // auth token expired\n case \"401\":\n CommonClass.sessionExpired(mActivity);\n break;\n\n //error\n default:\n break;\n }\n }\n\n @Override\n public void onError(String error, String user_tag) {\n\n }\n });\n } else\n CommonClass.showSnackbarMessage(rL_rootElement, getResources().getString(R.string.NoInternetAccess));\n }", "public ResourceException(String reason) {\r\n super(reason);\r\n }", "@Override\r\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\r\n\t\t\t\t\t\t\t\tString responseString, Throwable throwable) {\n\t\t\t\t\t\t\tnew ErrorServer(PropertyRepairActivity.this, responseString.toString());\r\n\t\t\t\t\t\t\tsuper.onFailure(statusCode, headers, responseString, throwable);\r\n\t\t\t\t\t\t}", "public Response handleRESTError(Throwable exception)\n\t{\n\t\tRegistryException sfException;\n\t\tif (exception instanceof RegistryException)\n\t\t{\n\t\t\tsfException = (RegistryException) exception;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tsfException = new RegistryUnknownException(exception);\n\t\t}\n\t\treturn handleRESTError(sfException);\n\t}", "public String report() throws Exception{\r\n\t\tForm16MisReportModel model = new Form16MisReportModel();\r\n\t\tmodel.initiate(context, session);\r\n\t\tif(bulkForm16.getEmpId().equals(\"\")){\r\n\t\t\tString str=model.generateUrlList(request, response,bulkForm16);\r\n\t\t\tif(!str.equals(\"1\"))\r\n\t\t\t\taddActionMessage(str);\r\n\t\t\treturn SUCCESS;\r\n\t\t} //end of if\r\n\t\telse{\r\n\t\t\tmodel.generateReport(request, response, bulkForm16);\r\n\t\t\tmodel.terminate();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "protected void performGenericAuthorizationEndpointErrorResponseValidation() {\n\t\tcallAndContinueOnFailure(CheckStateInAuthorizationResponse.class, ConditionResult.FAILURE);\n\t\t// as https://tools.ietf.org/html/draft-ietf-oauth-iss-auth-resp is still a draft we only warn if the value is wrong,\n\t\t// and do not require it to be present.\n\t\tcallAndContinueOnFailure(ValidateIssInAuthorizationResponse.class, ConditionResult.WARNING, \"OAuth2-iss-2\");\n\t\tcallAndContinueOnFailure(EnsureErrorFromAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(RejectAuthCodeInAuthorizationEndpointResponse.class, ConditionResult.FAILURE, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckForUnexpectedParametersInErrorResponseFromAuthorizationEndpoint.class, ConditionResult.WARNING, \"OIDCC-3.1.2.6\");\n\t\tcallAndContinueOnFailure(CheckErrorDescriptionFromAuthorizationEndpointResponseErrorContainsCRLFTAB.class, ConditionResult.WARNING, \"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorDescriptionFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t\tcallAndContinueOnFailure(ValidateErrorUriFromAuthorizationEndpointResponseError.class, ConditionResult.FAILURE,\"RFC6749-4.1.2.1\");\n\t}", "private ErrorDetails generateErrorDetails(Exception ex, WebRequest request) {\n\t\treturn new ErrorDetails(new Date(), ex.getMessage(),\n\t\t\t\trequest.getDescription(false));\n\t}", "private static MendelianErrorReport buildMendelianErrorReport(VariantDBIterator iterator, long numVariants) {\n Map<String, Map<String, Map<String, Integer>>> counter = new HashMap<>();\n int numErrors = 0;\n while (iterator.hasNext()) {\n Variant variant = iterator.next();\n\n // Get sampleId and error code from variant issues\n boolean foundError = false;\n for (IssueEntry issue : variant.getStudies().get(0).getIssues()) {\n if (IssueType.MENDELIAN_ERROR == issue.getType() || IssueType.DE_NOVO == issue.getType()) {\n foundError = true;\n\n String sampleId = issue.getSample().getSampleId();\n String errorCode = issue.getSample().getData().get(0);\n if (!counter.containsKey(sampleId)) {\n counter.put(sampleId, new HashMap<>());\n }\n if (!counter.get(sampleId).containsKey(variant.getChromosome())) {\n counter.get(sampleId).put(variant.getChromosome(), new HashMap<>());\n }\n int val = 0;\n if (counter.get(sampleId).get(variant.getChromosome()).containsKey(errorCode)) {\n val = counter.get(sampleId).get(variant.getChromosome()).get(errorCode);\n }\n counter.get(sampleId).get(variant.getChromosome()).put(errorCode, val + 1);\n break;\n }\n }\n if (foundError) {\n numErrors++;\n }\n }\n\n // Create mendelian error report from auxiliary map\n MendelianErrorReport meReport = new MendelianErrorReport();\n meReport.setNumErrors(numErrors);\n for (String sampleId : counter.keySet()) {\n SampleAggregation sampleAgg = new SampleAggregation();\n int numSampleErrors = 0;\n for (String chrom : counter.get(sampleId).keySet()) {\n int numChromErrors = counter.get(sampleId).get(chrom).values().stream().mapToInt(Integer::intValue).sum();\n\n ChromosomeAggregation chromAgg = new ChromosomeAggregation();\n chromAgg.setChromosome(chrom);\n chromAgg.setNumErrors(numChromErrors);\n chromAgg.setErrorCodeAggregation(counter.get(sampleId).get(chrom));\n\n // Update sample aggregation\n sampleAgg.getChromAggregation().add(chromAgg);\n numSampleErrors += numChromErrors;\n }\n sampleAgg.setSample(sampleId);\n sampleAgg.setNumErrors(numSampleErrors);\n sampleAgg.setRatio(1.0d * numSampleErrors / numVariants);\n\n meReport.getSampleAggregation().add(sampleAgg);\n }\n\n return meReport;\n }" ]
[ "0.6191881", "0.5697029", "0.56438315", "0.56103307", "0.5592545", "0.5384996", "0.53458023", "0.53273284", "0.53205675", "0.5319803", "0.53088415", "0.53088415", "0.5286482", "0.52705646", "0.5261943", "0.526037", "0.5259201", "0.5257424", "0.5256749", "0.5249057", "0.52476835", "0.52476835", "0.5239969", "0.52316463", "0.5227927", "0.52162343", "0.518497", "0.5165309", "0.5163904", "0.51385087", "0.5137398", "0.51373047", "0.5105557", "0.510021", "0.50948703", "0.5094796", "0.50918865", "0.5088312", "0.50860226", "0.50833064", "0.50833064", "0.50814587", "0.5079443", "0.50681806", "0.50675327", "0.5067285", "0.50650233", "0.5064052", "0.5060712", "0.5059683", "0.5058787", "0.5057541", "0.504922", "0.50427866", "0.50419813", "0.50286037", "0.5014076", "0.501127", "0.5010527", "0.50092584", "0.5008231", "0.4997164", "0.4993734", "0.49867603", "0.49800503", "0.49794498", "0.49736217", "0.49730614", "0.49718907", "0.49632898", "0.49546963", "0.49510986", "0.49476475", "0.49453652", "0.49414292", "0.49414292", "0.49393466", "0.49360487", "0.49242255", "0.49165994", "0.49158344", "0.49132565", "0.49132565", "0.49101424", "0.49098438", "0.49098438", "0.49064863", "0.49010965", "0.48946404", "0.48919404", "0.48905778", "0.48902762", "0.48901635", "0.48852488", "0.48852488", "0.48811987", "0.4877837", "0.4874664", "0.4869767", "0.48695594" ]
0.6636375
0
(\x y. x (x y)) (\x y. x) ((\x. x) (\x. x))
@Test public void prettyPrintingParserLamApp() throws UnsupportedEncodingException { Concrete.LocalVariable cx = ref("x"); Concrete.LocalVariable cy = ref("y"); Concrete.Expression expected = cApps(cLam(cargs(cTele(cvars(cx, cy), cPi(cUniverseInf(1), cUniverseInf(1)))), cApps(cVar(cx), cApps(cVar(cx), cVar(cy)))), cLam(cargs(cTele(cvars(cx, cy), cPi(cUniverseInf(1), cUniverseInf(1)))), cVar(cx)), cApps(cLam(cargs(cTele(cvars(cx), cPi(cUniverseInf(1), cUniverseInf(1)))), cVar(cx)), cLam(cargs(cTele(cvars(cx), cPi(cUniverseInf(1), cUniverseInf(1)))), cVar(cx)))); SingleDependentLink x = singleParam("x", Pi(Universe(1), Universe(1))); SingleDependentLink xy = singleParam(true, vars("x", "y"), Pi(Universe(1), Universe(1))); Expression expr = Apps(Lam(xy, Apps(Ref(xy), Apps(Ref(xy), Ref(xy.getNext())))), Lam(xy, Ref(xy)), Apps(Lam(x, Ref(x)), Lam(x, Ref(x)))); testExpr(expected, expr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ParenthesisExpr createParenthesisExpr();", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "@Override\n public Expression simplifyMore() {\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n // x * x -> x^2\n if (left.toString().equals(right.toString())) {\n return new Pow(left, 2);\n }\n\n // ((2.0 * x) * (x * 3.0)) -> 6x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getLeft().toString())) {\n Expression exp = new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getRight()),\n new Mult(((Mult) left).getRight(), ((Mult) right).getLeft()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // 2x * 2x -> 4x^2\n if (left instanceof Mult && right instanceof Mult) {\n if (((Mult) left).getRight().toString().equals(((Mult) right).getRight().toString())) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Pow(((Mult) left).getRight(), 2)).simplify();\n }\n }\n\n // 2x * 2y -> 4xy\n if (left instanceof Mult && right instanceof Mult) {\n return new Mult(new Mult(((Mult) left).getLeft(), ((Mult) right).getLeft()).simplify(),\n new Mult(((Mult) left).getRight(), ((Mult) right).getRight())).simplify();\n }\n\n // sin(x) * cos(x) -> 0.5 * sin(2x)\n if (right instanceof Sin && left instanceof Cos) {\n Expression exp = new Mult(0.5, new Sin(new Mult(2, ((Sin) right).getExpression())));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // cos(x) * sin(x) -> 0.5 * sin(2x)\n if (right instanceof Cos && left instanceof Sin) {\n Expression exp = new Sin(new Mult(2, ((Cos) right).getExpression()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // log(x, y) * 2 -> 2 * log(x, y)\n if (left instanceof Sin || left instanceof Cos || left instanceof Log) {\n Expression exp = new Mult(right, left);\n exp.turnBonusOn();\n return exp.simplify();\n }\n\n // x^2 * x^3 -> x^5\n if (left instanceof Pow && right instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(((Pow) right).getLeft().toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(),\n new Plus(((Pow) left).getRight(), ((Pow) right).getRight()));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n // x^2 * x -> x^3\n if (left instanceof Pow) {\n if (((Pow) left).getLeft().toString().equals(right.toString())) {\n Expression exp = new Pow(((Pow) left).getLeft(), new Plus(((Pow) left).getRight(), 1));\n exp.turnBonusOn();\n return exp.simplify();\n }\n }\n\n return this;\n }", "@Override\n\t\tprotected ParenExpression constructParenExp(\n\t\t\t\tList<Expression> subExpressions) {\n\t\t\treturn new CosineExpression(subExpressions);\n\t\t}", "public Object lambda4(Object a, Object b) {\n Object[] objArr = new Object[2];\n objArr[0] = C1259lists.cons(C1259lists.car.apply1(this.elt), a);\n Object[] objArr2 = objArr;\n objArr2[1] = C1259lists.cons(C1259lists.cadr.apply1(this.elt), b);\n return misc.values(objArr2);\n }", "@Test\n public void test1() {\n final Car car = Car.create(Car::new);\n final List<Car> cars = Collections.singletonList(car);\n final Car police = Car.create(Car::new);\n cars.forEach(police::follow);\n cars.forEach(c -> police.follow(c)); // 等价于写成lambda表达式的形式\n }", "@Test\n\tpublic void parenthesses_should_notbalanced_expr()\n\t{\n\t\tString result=\"\";String expr=\"\";\n\t\t\n\t\texpr=\"(a+b(a+c)\";\n\t\t result=com.bridgelabz.util.DataStructure.BalanaceParenthes(expr);\n\t\tassertTrue(\"not balanced\", result!=\"balaced\");\n\t}", "public SimpleLambda getTheLambda(int offset) {\n int scopedVar = offset;\n return (int x, int y) -> x + y + scopedVar;\n }", "@FunctionalInterface\r\npublic interface Semigroup<A> {\r\n\r\n public A dot(A x, A y);\r\n\r\n\r\n public default A fold(A a, List<A> as) {\r\n return as.isEmpty() ? a : fold(dot(a, as.head()), as.tail());\r\n }\r\n\r\n public default A fold(A a, A... as) {\r\n return fold(a, List.of(as));\r\n }\r\n\r\n}", "@Ignore\n\t@Test\n\tpublic void test2() {\n\t\tfinal LogicalExpression conj = TestServices\n\t\t\t\t.getCategoryServices()\n\t\t\t\t.readSemantics(\n\t\t\t\t\t\t\"(conj:<<e,t>,<<e,t>,t>> (lambda $0:e (next_to:<e,<e,t>> $0 colorado:e)) (lambda $1:e (next_to:<e,<e,t>> $1 nm:e)))\");\n\t\tfinal LogicalExpression func = TestServices\n\t\t\t\t.getCategoryServices()\n\t\t\t\t.readSemantics(\n\t\t\t\t\t\t\"(lambda $0:<e,t> (lambda $1:e (and:<t*,t> ($0 $1) (named:<e,<e,t>> $1 springfield:e))))\");\n\t\tfinal LogicalExpression expected = TestServices\n\t\t\t\t.getCategoryServices()\n\t\t\t\t.readSemantics(\n\t\t\t\t\t\t\"(lambda $0:e (and:<t*,t> (next_to:<e,<e,t>> $0 colorado:e) (next_to:<e,<e,t>> $0 nm:e) (named:<e,<e,t>> $0 springfield:e)))\");\n\t\tfinal LogicalExpression actual = services.applyCoordination(func, conj);\n\t\tAssert.assertEquals(expected, actual);\n\t}", "private Expr mult(Expr x) throws Err {\n if (x instanceof ExprUnary) {\n ExprUnary y=(ExprUnary)x;\n if (y.op==ExprUnary.Op.SOME) return ExprUnary.Op.SOMEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.LONE) return ExprUnary.Op.LONEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.ONE) return ExprUnary.Op.ONEOF.make(y.pos, y.sub);\n }\n return x;\n }", "private TreeNode<K> combine(TreeNode<K> x, TreeNode<K> y) {\n TreeNode<K> z = new TreeNode<K>();\n z.left = x;\n z.right = y;\n z.rank = x.rank + 1;\n sift(z);\n return z;\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "T compose(AbsonObject abson);", "static <X, Y, Z> Function<Function<X, Y>,\n Function<Function<Y, Z>,\n Function<X, Z>>> higherAndThen() {\n return x -> y -> z -> y.apply(x.apply(z));\n }", "public static BinaryExpression divideAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "public Function(Point x, Point y) {\n double delta = (x.y - y.y) / (x.x - y.x);\n a = -1 * delta;\n b = -(x.y - delta * x.x);\n }", "public static BinaryExpression coalesce(Expression expression0, Expression expression1, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "public void lambda22(Object obj) {\n Throwable th;\n Object pair = obj;\n Object obj2 = pair;\n Object obj3 = obj2;\n try {\n C1259lists.setCar$Ex((Pair) obj2, this.f123f.apply1(C1259lists.car.apply1(pair)));\n } catch (ClassCastException e) {\n ClassCastException classCastException = e;\n Throwable th2 = th;\n new WrongType(classCastException, \"set-car!\", 1, obj3);\n throw th2;\n }\n }", "public Object lambda101(Object x) {\n Throwable th;\n Object obj = x;\n Object obj2 = this.lis2;\n Object obj3 = this.$Eq;\n Object obj4 = obj3;\n try {\n return C1259lists.member(obj, obj2, (Procedure) obj3);\n } catch (ClassCastException e) {\n ClassCastException classCastException = e;\n Throwable th2 = th;\n new WrongType(classCastException, \"member\", 3, obj4);\n throw th2;\n }\n }", "private ParseTree parseCoverParenthesizedExpressionAndArrowParameterList() {\n if (peekType(1) == TokenType.FOR) {\n return parseGeneratorComprehension();\n }\n\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.OPEN_PAREN);\n // Case ( )\n if (peek(TokenType.CLOSE_PAREN)) {\n eat(TokenType.CLOSE_PAREN);\n if (peek(TokenType.ARROW)) {\n return new FormalParameterListTree(\n getTreeLocation(start),\n ImmutableList.<ParseTree>of(),\n /* hasTrailingComma= */ false,\n ImmutableList.<SourcePosition>of());\n } else {\n reportError(\"invalid parenthesized expression\");\n return new MissingPrimaryExpressionTree(getTreeLocation(start));\n }\n }\n // Case ( ... BindingIdentifier )\n if (peek(TokenType.ELLIPSIS)) {\n ImmutableList<ParseTree> params = ImmutableList.of(parseParameter());\n eat(TokenType.CLOSE_PAREN);\n if (peek(TokenType.ARROW)) {\n return new FormalParameterListTree(\n getTreeLocation(start),\n params,\n /* hasTrailingComma= */ false,\n ImmutableList.<SourcePosition>of());\n } else {\n reportError(\"invalid parenthesized expression\");\n return new MissingPrimaryExpressionTree(getTreeLocation(start));\n }\n }\n // For either of the three remaining cases:\n // ( Expression )\n // ( Expression, )\n // ( Expression, ...BindingIdentifier )\n // we can parse as an expression.\n ParseTree result = parseExpression();\n // If it follows with a comma, we must be in either of two cases\n // ( Expression, )\n // ( Expression, ...BindingIdentifier )\n // case.\n if (peek(TokenType.COMMA)) {\n if (peek(1, TokenType.CLOSE_PAREN)) {\n // Create the formal parameter list here so we can record\n // the trailing comma\n resetScanner(start);\n // If we fail to parse as an ArrowFunction parameter list then\n // parseFormalParameterList will take care of reporting errors.\n return parseFormalParameterList();\n } else {\n eat(TokenType.COMMA);\n // Since we already parsed as an expression, we will guaranteed reparse this expression\n // as an arrow function parameter list, but just leave it as a comma expression for now.\n result =\n new CommaExpressionTree(\n getTreeLocation(start), ImmutableList.of(result, parseParameter()));\n }\n }\n eat(TokenType.CLOSE_PAREN);\n return new ParenExpressionTree(getTreeLocation(start), result);\n }", "TupleExpr createTupleExpr();", "private static TaggedFormation _xofy(Formation x, TaggedFormation y) {\n /* create an instance of 'y' for each dancer in 'x'. */\n Map<Dancer,Formation> sub = new LinkedHashMap<Dancer,Formation>();\n MultiMap<Dancer,Tag> tags = new GenericMultiMap<Dancer,Tag>\n (Factories.enumSetFactory(Tag.class));\n for (Dancer d: x.dancers()) {\n Map<Dancer,Position> m = new LinkedHashMap<Dancer,Position>();\n for (Dancer dd : y.dancers()) {\n Dancer phantom = new PhantomDancer();\n m.put(phantom, y.location(dd));\n tags.addAll(phantom, y.tags(dd));\n }\n sub.put(d, new Formation(m));\n }\n Formation result = Breather.insert(x,sub);\n // Transfer tags from formation y.\n return new TaggedFormation(result, tags);\n }", "abstract double apply(double x, double y);", "public Rule call()\n \t{\n \t\treturn sequence(id(),\n \t\t\t\tfirstOf(\n \t\t\t\tsequence(enforcedSequence(PAR_L, optional(args()), PAR_R), optional(closure())), //params & opt. closure\n \t\t\t\tclosure())); // closure only\n \t}", "public static void main(String[] args) {\n\r\n\t\t String s1=\"Lambda\";\r\n\r\n\t\t String s2=\"Expression\";\r\n\r\n\t\t \r\n\r\n\t\t StringFormatter x=(a1,a2)->a1+\" \"+a2;\r\n\r\n\t\t StringFormatter y=(a1,a2)->a1+\"-\"+a2;\r\n\r\n\t\t StringFormatter z=(a1,a2)->a1.toUpperCase()+\" \"+a2.toUpperCase();\r\n\r\n\t\t \r\n\r\n\t\t System.out.println(x.format(s1, s2));\r\n\r\n\t\t System.out.println(y.format(s1, s2));\r\n\r\n\t\t System.out.println(z.format(s1, s2));\r\n\r\n}", "int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2);", "public abstract void mv(int y, int x);", "private Expression transform(Expression exp)\n {\n return UseContracts.execute(exp, fun, callers);\n }", "private Operation expression2(Scope scope, Vector queue)\r\n {\r\n Operation root = expression3(scope, queue);\r\n\r\n if (infix.contains(nextSymbol))\r\n root = expression2Rest(root, scope, queue);\r\n\r\n return root;\r\n }", "public abstract Shape transform(Transformation t);", "void methodInFirstLevel(int x) {\n\n\t\t\tConsumer<Integer> myConsumer = (y) -> {\n\t\t\t\tSystem.out.println(\"x = \" + x); // Statement A\n\t\t\t\tSystem.out.println(\"y = \" + y);\n\t\t\t\tSystem.out.println(\"this.x = \" + this.x);\n\t\t\t\tSystem.out.println(\"LambdaScopeTest.this.x = \" + LambdaScopeTest.this.x);\n\t\t\t};\n\n\t\t\tmyConsumer.accept(x);\n\n\t\t}", "public Object lambda58(Object x) {\n frame42 frame42;\n new frame42();\n frame42 frame422 = frame42;\n frame422.staticLink = this;\n frame42 frame423 = frame422;\n frame423.f130x = x;\n return srfi1.every$V(frame423.lambda$Fn42, this.lists, new Object[0]);\n }", "int apply(int x, int y, int origin);", "@Test\r\n public void test() {\r\n assertEquals(Arrays.asList(\"()()()\", \"(())()\"), removeInvalidParentheses(\"()())()\"));\r\n assertEquals(Arrays.asList(\"(a)()()\", \"(a())()\"), removeInvalidParentheses(\"(a)())()\"));\r\n assertEquals(Arrays.asList(\"\"), removeInvalidParentheses(\")(\"));\r\n }", "public f a(int x, int y) {\n/* 114 */ if (x < this.f || y < this.g || x >= this.f + this.h || y >= this.g + this.i) {\n/* 115 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 118 */ f cur = this;\n/* 119 */ while (cur.e) {\n/* 120 */ f hhs = cur.d;\n/* */ \n/* 122 */ if (x < hhs.f) {\n/* */ \n/* 124 */ if (y < hhs.g) {\n/* */ \n/* 126 */ cur = cur.a;\n/* */ \n/* */ continue;\n/* */ } \n/* 130 */ cur = cur.b;\n/* */ \n/* */ continue;\n/* */ } \n/* */ \n/* 135 */ if (y < hhs.g) {\n/* */ \n/* 137 */ cur = cur.c;\n/* */ \n/* */ continue;\n/* */ } \n/* 141 */ cur = cur.d;\n/* */ } \n/* */ \n/* */ \n/* 145 */ return cur;\n/* */ }", "private String removeOuterBrackets(String expr) {\r\n int openPos = expr.indexOf(BRACKET_OPEN);\r\n if (openPos == -1) {\r\n throw new IllegalArgumentException(\"No opening bracket\");\r\n }\r\n \r\n int closePos = expr.lastIndexOf(BRACKET_CLOSE);\r\n if (closePos == -1) {\r\n throw new IllegalArgumentException(\"No closing bracket\");\r\n }\r\n \r\n String before = expr.substring(0, openPos);\r\n String middle = expr.substring(openPos + 1, closePos);\r\n String after = expr.substring(closePos + 1, expr.length());\r\n \r\n return before + middle + after;\r\n }", "@Override\r\n\tpublic void visit(BinaryExpression binaryExpression) {\n\r\n\t}", "public static void main(String[] args) {\n\t\tA i2 = (a,b) -> a+b;\r\n\t\t//B i2 = new B();\r\n\t\tSystem.out.println(i2.add(\"10\",30));\r\n\t\t//System.out.println(i.squrtIt(10));\r\n\t\t\r\n\t}", "private double square(double x) {\r\n return x * x;\r\n }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression0, LambdaExpression lambdaExpression1) { throw Extensions.todo(); }", "public Y f(X v);", "AstroArg seq(AstroArg first, AstroArg second);", "public Object lambda54(Object x) {\n frame38 frame38;\n new frame38();\n frame38 frame382 = frame38;\n frame382.staticLink = this;\n frame38 frame383 = frame382;\n frame383.f128x = x;\n return srfi1.every$V(frame383.lambda$Fn38, this.lists, new Object[0]);\n }", "@Test\n public void testCyclicalIdentity() {\n Vector a = Vector.of(Variable.of(\"a1\"), Variable.of(\"a2\"), Variable.of(\"a3\"));\n Vector b = Vector.of(Variable.of(\"b1\"), Variable.of(\"b2\"), Variable.of(\"b3\"));\n Vector c = Vector.of(Variable.of(\"c1\"), Variable.of(\"c2\"), Variable.of(\"c3\"));\n Vector lhs = a.cross(b).cross(c);\n lhs = lhs.simplify();\n Vector rhs = b.times(a.dot(c)).plus(a.times(b.dot(c)).times(Constant.MINUS_ONE));\n rhs = rhs.simplify();\n Assert.assertEquals(lhs.getValues()[0], rhs.getValues()[0]);\n Assert.assertEquals(lhs.getValues()[1], rhs.getValues()[1]);\n Assert.assertEquals(lhs.getValues()[2], rhs.getValues()[2]);\n Assert.assertEquals(lhs, rhs);\n }", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "Expr expr();", "public void transform(float a11, float a12, float a21, float a22, float x, float y);", "@Test\n void doubleConstructInConstruct() {\n assertEquals(\"(1 . 2)\", Main.parseInputString(\"(display (car (cons (cons 1 2) (cons 3 4))))\"));\n }", "public void testConjoinedVariablesPropagateAccrossConjunction() throws Exception\n {\n resolveAndAssertSolutions(\"[[g(x), h(x), (f(X, Y) :- g(X), h(Y))], (?- f(X, X)), [[X <-- x]]]\");\n }", "XExpr createXExpr();", "private static double rk2(String expression, double x0, double y0, double xf, double h) throws Exception {\n double xn = x0;\n double yn = y0;\n while (xn < xf) {\n double k1 = h * ExpressionEvaluator.evaluateExpression(expression, xn, yn);\n double k2 = h * ExpressionEvaluator.evaluateExpression(expression, xn + h, yn + k1);\n double yn1 = yn + ((k1 + k2) / 2);\n double xn1 = xn + h;\n xn = xn1;\n yn = yn1;\n }\n return yn;\n }", "public void testConjunctionResolvesWhenSecondPathRevisitsFirst() throws Exception\n {\n resolveAndAssertSolutions(\"[[g, (h :- g), (f :- g, h)], (?- f), [[]]]\");\n }", "public float getX2() {\r\n return (c + 2*b + 3*a)/3;\r\n }", "public static CommonAxiom closure(Relation r){\n\t\t//build nodes\n\t\tFormulaTree allX = new FormulaTree(new UniversalQuantifier('x'));\n\t\tFormulaTree allY = new FormulaTree(new UniversalQuantifier('y'));\n\t\tFormulaTree existsZ = new FormulaTree(new ExistentialQuantifier('z'));\n\t\tFormulaTree closurePredicate = new FormulaTree(new Predicate(r, new char[]{'x','y','z'}));\n\t\t\n\t\t//construct tree\n\t\tallX.setRight(null);\n\t\tallX.setLeft(allY);\n\t\tallY.setRight(null);\n\t\tallY.setLeft(existsZ);\n\t\texistsZ.setRight(null);\n\t\texistsZ.setLeft(closurePredicate);\n\n\t\t//return top node\n\t\treturn new CommonAxiom(allX, \"closure (\" + r.name() + \")\");\n\t}", "static void a(bu bu2, y.c.y y2) {\n Object object;\n Object object2;\n A a2;\n block8 : {\n boolean bl2;\n block7 : {\n bl2 = fj.z;\n a2 = bu2.t();\n y.c.x x2 = y2.a();\n while (x2.f()) {\n object2 = x2.e();\n a2.a(object2, true);\n x2.g();\n if (!bl2) {\n if (!bl2) continue;\n }\n break block7;\n }\n bu2.a(d.a, a2);\n }\n boolean bl3 = bu2.c(d) != null;\n object2 = new d();\n object2.b(3);\n object2.a(2);\n if (bl3) {\n object = new v();\n object.b(2);\n object.a(e);\n object.f(true);\n object.d(4);\n object.e(false);\n object.c(5);\n object.c(true);\n object.a(1);\n object.b(true);\n object.c(1);\n object.a(\"routingPreferMiddleOfNode\", (Object)Boolean.TRUE);\n i i2 = new i(new n(new ab(new y.f.i.X((ah)object))));\n object2.b(new hX(i2));\n if (!bl2) break block8;\n }\n object2.c(2);\n }\n object2.d(5);\n object2.a(true);\n object2.b(false);\n try {\n object = new bI(1);\n object.a(false);\n object.b(true);\n object.d().a(true);\n object.a(bu2, (ah)object2);\n return;\n }\n finally {\n bu2.d_(d.a);\n bu2.a(a2);\n }\n }", "void union(int [] parent, int x, int y)\n\t\t{\n\t\t\tint x_set_parent = find(parent, x);\n\t\t\tint y_set_parent = find(parent, y);\n\t\t\tparent[y_set_parent] = x_set_parent;\n\t\t}", "public void testConjunctionResolvesWhenFirstPathRevisitsSecond() throws Exception\n {\n resolveAndAssertSolutions(\"[[g, (h :- g), (f :- h, g)], (?- f), [[]]]\");\n }", "@Override \n\tpublic void caseAMethodCallExpr(AMethodCallExpr node){\n\t\t inAMethodCallExpr(node);\n\t if(node.getTarget() != null)\n\t {\n\t node.getTarget().apply(this);\n\t }\n\t if(node.getId() != null)\n\t {\n\t node.getId().apply(this);\n\t }\n\t {\n\t List<PExpr> copy = new ArrayList<PExpr>(node.getExpr());\n\t for(PExpr e : copy)\n\t {\n\t e.apply(this);\n\t \n\t boxIt(nodeTypes.get(e));\n\t }\n\t }\n\t outAMethodCallExpr(node);\n\t\t\n\t}", "inner(int y) {\r\n\t\t\t\r\n\t\t\tthis.y = y;\r\n\t\t}", "public static SquareCoordinate makeCoordinate(int x, int y)\n {\n \treturn new SquareCoordinate(x, y);\n }", "private void helper(StringBuilder sb, List<String> result, \n int n, int left, int right) {\n if (left == n && right == n) { // base case: left and right parentheses used out\n result.add(sb.toString());\n return;\n }\n \n // case 1: still have left parenthesis left, add '('\n if (left <= n) {\n sb.append('(');\n helper(sb, result, n, left + 1, right);\n sb.deleteCharAt(sb.length() - 1);\n }\n \n // case 2: still have left parenthesis need to be matched, add ')'\n if (left > right) {\n sb.append(')');\n helper(sb, result, n, left, right + 1);\n sb.deleteCharAt(sb.length() - 1);\n }\n }", "@Override\n public lj<ow> a(lj<ow> ox2, int n2, int n3) {\n lj<Bitmap> lj2 = ((ow)ox2.b()).b();\n lj<on> lj3 = ((ow)ox2.b()).c();\n if (lj2 != null && this.a != null) {\n lj<Bitmap> lj4 = this.a.a(lj2, n2, n3);\n if (lj2.equals(lj4)) return ox2;\n return new ox(new ow(lj4, ((ow)ox2.b()).c()));\n }\n if (lj3 == null) return ox2;\n if (this.b == null) return ox2;\n lj<on> lj5 = this.b.a(lj3, n2, n3);\n if (lj3.equals(lj5)) return ox2;\n return new ox(new ow(((ow)ox2.b()).b(), lj5));\n }", "public Object lambda52(Object obj, Object obj2) {\n frame36 frame36;\n Throwable th;\n Object obj3;\n Object pair = obj;\n Object ans = obj2;\n new frame36();\n frame36 frame362 = frame36;\n frame362.staticLink = this;\n frame36 frame363 = frame362;\n frame363.elt = C1259lists.car.apply1(pair);\n if (srfi1.any$V(frame363.lambda$Fn36, ans, new Object[0]) != Boolean.FALSE) {\n obj3 = ans;\n } else {\n Object obj4 = pair;\n Object obj5 = obj4;\n try {\n C1259lists.setCdr$Ex((Pair) obj4, ans);\n obj3 = pair;\n } catch (ClassCastException e) {\n ClassCastException classCastException = e;\n Throwable th2 = th;\n new WrongType(classCastException, \"set-cdr!\", 1, obj5);\n throw th2;\n }\n }\n return obj3;\n }", "public Object lambda7(Object a, Object b, Object c) {\n Object[] objArr = new Object[3];\n objArr[0] = C1259lists.cons(C1259lists.car.apply1(this.elt), a);\n Object[] objArr2 = objArr;\n objArr2[1] = C1259lists.cons(C1259lists.cadr.apply1(this.elt), b);\n Object[] objArr3 = objArr2;\n objArr3[2] = C1259lists.cons(C1259lists.caddr.apply1(this.elt), c);\n return misc.values(objArr3);\n }", "@Override public JannotTreeJCExpression getLeftOperand()\n{\n return createTree(getNode().getLeftOperand()); \n}", "private Proof contra(Expression a, Expression b) {\n return new Proof(Reconstructor.reconstructProof(Reconstructor.contraProof, a, b, null));\n }", "@Override\r\n\tpublic void visit(RoundBracketExpression roundBracketExpression) {\n\r\n\t}", "@Override\n public R visit(CFunctionCallExpression exp) throws X {\n return visit((AFunctionCallExpression) exp);\n }", "public boolean apply(int x0, int y0, int x, int y);", "public Object lambda43(Object obj, Object obj2) {\n Object apply2;\n Object next$Mnheads = obj;\n Object next$Mntails = obj2;\n if (C1259lists.isPair(next$Mnheads)) {\n Object x = Scheme.apply.apply2(this.staticLink.staticLink.pred, this.heads);\n apply2 = x != Boolean.FALSE ? this.staticLink.lambda41lp(next$Mnheads, next$Mntails) : x;\n } else {\n apply2 = Scheme.apply.apply2(this.staticLink.staticLink.pred, this.heads);\n }\n return apply2;\n }", "public Object lambda40(Object obj, Object obj2) {\n frame28 frame28;\n Object lambda41lp;\n Object heads = obj;\n Object tails = obj2;\n new frame28();\n frame28 frame282 = frame28;\n frame282.staticLink = this;\n frame28 frame283 = frame282;\n boolean x = ((C1259lists.isPair(heads) ? 1 : 0) + true) & true;\n if (x) {\n lambda41lp = x ? Boolean.TRUE : Boolean.FALSE;\n } else {\n lambda41lp = frame283.lambda41lp(heads, tails);\n }\n return lambda41lp;\n }", "public node simplify() {\n node n = null;\n Object[] o = children().toArray();\n int l = o.length;\n if ( l == 1 )\n return (node) o[0];\n\n node orr = (node) o[0];\n node atmost1 = (node) o[0];\n\n for ( int i=1; i<l; i++ ) {\n orr = new or( orr, (node) o[i] );\n atmost1 = new atmostone( atmost1, (node) o[i] );\n }\n node result = (new and(orr, atmost1)).simplify();\n return result;\n }", "O transform(R result);", "public Object lambda51(Object obj, Object obj2) {\n Object pairFold$V;\n Object lis = obj;\n Object ans = obj2;\n if (C1259lists.isNull(lis)) {\n pairFold$V = ans;\n } else if (C1259lists.isNull(ans)) {\n pairFold$V = lis;\n } else if (lis == ans) {\n pairFold$V = ans;\n } else {\n pairFold$V = srfi1.pairFold$V(this.lambda$Fn35, ans, lis, new Object[0]);\n }\n return pairFold$V;\n }", "@Override\r\n\tpublic void visit(FunctionCallExpression functionCallExpression) {\n\r\n\t}", "public Object lambda53(Object x) {\n return this.staticLink.$Eq.apply2(x, this.elt);\n }", "private static double square (double x)\r\n\t{\r\n\t\treturn x * x;\r\n\t}", "@Override\n public R visit(BrackettedExpression n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.expression.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }", "Object transform(Object o);", "public Object lambda47(Object obj, Object obj2) {\n Object elt = obj;\n Object ans = obj2;\n return C1259lists.member(elt, ans, this.$Eq) != Boolean.FALSE ? ans : C1259lists.cons(elt, ans);\n }", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n return new TreeNode(expr); // you fill this in\n } else {\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n for (int k = 1; k < expr.length() - 1; k++) {\n // you supply the missing code\n \tif (nesting == 0) {\n \t\tif (expr.charAt(k) == '+' || expr.charAt(k) == '*') {\n \t\t\topPos = k;\n \t\t}\n \t}\n \tif (expr.charAt(k) == '(') {\n \t\tnesting++;\n \t} else if (expr.charAt(k) == ')') {\n \t\tnesting--;\n \t}\n }\n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op, exprTreeHelper(opnd1), exprTreeHelper(opnd2)); // you fill this in\n }\n }", "public static void main(String[] args) {\n String s = \"(ed(et(oc))el)\";\n// String s = \"a(bcdefghijkl(mno)p)q\";\n System.out.println(reverseParentheses(s));\n }", "public abstract void substitute(LambdaTerm N, Variable x);", "public Object lambda56(Object x) {\n frame40 frame40;\n new frame40();\n frame40 frame402 = frame40;\n frame402.staticLink = this;\n frame40 frame403 = frame402;\n frame403.f129x = x;\n return srfi1.every$V(frame403.lambda$Fn40, this.lists, new Object[0]);\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "Expression createExpression();", "Transform<A, B> getTransform();", "public static MethodCallExpression accept(ExpressionVisitor visitor) { throw Extensions.todo(); }", "public static int method(int x, int y){\n\n\t\tx = x + 2;\n\t\t//at this point, x is now equal to 12. (x = 10 + 2)\n\n\t\ty = x + 5;\n\t\t/*\n\t\t\tat this point, y is now equal to 17 (y = 12 + 5)\n\t\t\tremember, we just set x to 12 in the line before.\n\t\t*/\n\n\t\t//return 12 + 17\n\t\treturn x + y;\n\t\t//return 29\n\t}", "static int multiply(int x, int y) {\n\t\tif (y > 0)\n\t\t\treturn (x + multiply(x, y - 1));\n\n\t\t/* the case where y is negative */\n\t\tif (y < 0)\n\t\t\treturn -multiply(x, -y);\n\t\t/* 0 multiplied with anything gives 0 */\n\t\treturn 0;\n\t}", "public Object lambda60(Object x) {\n frame44 frame44;\n new frame44();\n frame44 frame442 = frame44;\n frame442.staticLink = this;\n frame44 frame443 = frame442;\n frame443.f131x = x;\n return srfi1.every$V(frame443.lambda$Fn44, this.lists, new Object[0]);\n }", "private void leftRotate(RBNode<T> x) {\r\n // node x must have rightChild\r\n RBNode<T> y = x.right;\r\n\r\n //1. deal with y's leftChild, move it to x's rightChild:\r\n // update x's rightChild as y's leftChild\r\n x.right = y.left;\r\n\r\n // update y.left.parent as x (only y.left is not null)\r\n if(y.left != null)\r\n y.left.parent = x;\r\n\r\n //2. deal with parent of x, move y to x's position\r\n // update y's parent as x's parent\r\n y.parent = x.parent;\r\n // if x.parent = null, set root = y\r\n if(x.parent == null) {\r\n this.root = y;\r\n } else {\r\n //if x is leftChild of parent, assign y as parent's leftChild\r\n if(x == x.parent.left)\r\n x.parent.left = y;\r\n else//if x is rightChild of parent, assign y as parent's rightChild\r\n x.parent.right = y;\r\n }\r\n\r\n //3. update y.left as x, update x.parent as y\r\n y.left = x;\r\n x.parent = y;\r\n }", "private SquareCoordinate(int x, int y)\n {\n \tthis.x = x;\n \tthis.y = y;\n }", "@Test\n public void testClosure() {\n SimpleLambda lambda1 = getTheLambda(1);\n assertEquals(lambda1.sum(2,2), 5);\n\n // get and test a lambda/closure with offset = 2\n SimpleLambda lambda2 = getTheLambda(2);\n assertEquals(lambda2.sum(2,2), 6);\n }", "Expression simplifyForSideEffect();", "public static MethodCallExpression call(Expression expression, Method method, Expression argument0, Expression argument1, Expression argument2) { throw Extensions.todo(); }", "public static ExtractedExpression extractFunctionCalls(AbstractExpression exp) {\n\t\tExtractedExpression ee = new ExtractedExpression(exp);\n\t\tAbstractFunctionCall fc = exp.getEmbeddedFunctionCall();\n\t\twhile (fc != null) {\n\t\t\tString var = FreeVarNameProvider.getFreeVariable(\"subst\");\n\t\t\tee.rewrite(var, fc);\n\t\t\tfc = ee.getExpression().getEmbeddedFunctionCall();\n\t\t}\n\t\treturn ee;\n\t}", "private TreeNode exprTreeHelper(String expr) {\n if (expr.charAt(0) != '(') {\n \n \treturn new TreeNode(expr); // you fill this in\n } else{\n // expr is a parenthesized expression.\n // Strip off the beginning and ending parentheses,\n // find the main operator (an occurrence of + or * not nested\n // in parentheses, and construct the two subtrees.\n int nesting = 0;\n int opPos = 0;\n char myChar='\\0';\n \n for (int k = 1; k < expr.length() - 1; k++) {\n myChar = expr.charAt(k);\n \tif(myChar == '('){\n \tnesting++;\n }\n if(myChar==')'){\n \tnesting--;\n }\n if(nesting == 0){\n \tif(myChar == '+' || myChar == '*'){\n \t\topPos = k;\n \t break;\t\n \t}\n }\n }\n \n String opnd1 = expr.substring(1, opPos);\n String opnd2 = expr.substring(opPos + 1, expr.length() - 1);\n String op = expr.substring(opPos, opPos + 1);\n System.out.println(\"expression = \" + expr);\n System.out.println(\"operand 1 = \" + opnd1);\n System.out.println(\"operator = \" + op);\n System.out.println(\"operand 2 = \" + opnd2);\n System.out.println();\n return new TreeNode(op,exprTreeHelper(opnd1),exprTreeHelper(opnd2));\n \n }\n }", "private final String RemoveExtraBrackets(String expression) {\r\n String newExpression = expression;\r\n int openParanthesis = 0;\r\n int closeParanthesis = 0;\r\n if ((expression.startsWith(\"(\") && expression.endsWith(\")\"))) {\r\n for (int i = 0; (i \r\n < (expression.length() - 1)); i++) {\r\n String charExpression = expression.substring(i, 1);\r\n if (charExpression.equals(\"(\")) {\r\n openParanthesis++;\r\n }\r\n else if (charExpression.equals(\")\")) {\r\n closeParanthesis++;\r\n }\r\n \r\n }\r\n \r\n if (((openParanthesis - 1) \r\n == closeParanthesis)) {\r\n newExpression = expression.substring(1, (expression.length() - 2));\r\n }\r\n \r\n }\r\n \r\n return newExpression;\r\n }" ]
[ "0.5307635", "0.50877124", "0.50563806", "0.5035672", "0.48603737", "0.48044983", "0.47776884", "0.47439566", "0.4654429", "0.46533525", "0.46225262", "0.4584397", "0.4569791", "0.4554836", "0.4546299", "0.4488765", "0.4466306", "0.44504154", "0.4447648", "0.44425127", "0.4442464", "0.44329765", "0.44088712", "0.43955028", "0.43950015", "0.4392162", "0.4379211", "0.43723333", "0.43612587", "0.43593505", "0.43360838", "0.43338075", "0.43310916", "0.43286282", "0.43273014", "0.4326298", "0.43183315", "0.43181178", "0.4293772", "0.42870402", "0.42796865", "0.42786348", "0.4271478", "0.4269569", "0.42683288", "0.4264074", "0.42637143", "0.42622745", "0.42470753", "0.42397612", "0.4227688", "0.42163146", "0.42078555", "0.42060626", "0.41986233", "0.4193946", "0.41865724", "0.41748717", "0.41733414", "0.41718453", "0.41654515", "0.41646653", "0.41610837", "0.4153027", "0.41414803", "0.41393065", "0.4135688", "0.41342148", "0.41325665", "0.41308954", "0.41293585", "0.41247374", "0.41212964", "0.41202444", "0.411771", "0.41163373", "0.41125667", "0.41114715", "0.41084912", "0.40955117", "0.4085839", "0.40752846", "0.40730768", "0.4071083", "0.4069574", "0.4063871", "0.40633255", "0.40560746", "0.4055066", "0.40529758", "0.40525925", "0.40508202", "0.4046473", "0.404609", "0.40445372", "0.40396762", "0.40384638", "0.4037218", "0.40330204", "0.40281636", "0.40272146" ]
0.0
-1
(x y z : \Type1 > \Type1 > \Type1) > \Type1 > \Type1 > (x y > y x) > z x y
@Test public void prettyPrintingParserPi() throws UnsupportedEncodingException { Concrete.LocalVariable x = ref("x"); Concrete.LocalVariable y = ref("y"); Concrete.LocalVariable z = ref("z"); Concrete.Expression expected = cPi(ctypeArgs(cTele(cvars(x, y, z), cPi(cUniverseInf(1), cPi(cUniverseInf(1), cUniverseInf(1))))), cPi(cUniverseInf(1), cPi(cUniverseInf(1), cPi(cPi(cApps(cVar(x), cVar(y)), cApps(cVar(y), cVar(x))), cApps(cVar(z), cVar(x), cVar(y)))))); SingleDependentLink xyz = singleParams(true, vars("x", "y", "z"), Pi(Universe(1), Pi(Universe(1), Universe(1)))); Expression expr = Pi(xyz, Pi(Universe(1), Pi(Universe(1), Pi(Pi(Apps(Ref(xyz), Ref(xyz.getNext())), Apps(Ref(xyz.getNext()), Ref(xyz))), Apps(Ref(xyz.getNext().getNext()), Ref(xyz), Ref(xyz.getNext())))))); testExpr(expected, expr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void collissions(int x, int y, int z, \n int xWidth, int yWidth, int zWidth) {\n LinkedNode first = tail;\n LinkedNode second = first.previous();\n while (first.previous() != null) {\n while (second != null) {\n int xCoordinate;\n int yCoordinate;\n int zCoordinate;\n if (first.value().getXorig() > second.value().getXorig()) {\n xCoordinate = first.value().getXorig();\n } \n else {\n xCoordinate = second.value().getXorig();\n }\n if (first.value().getYorig() > second.value().getYorig()) {\n yCoordinate = first.value().getYorig();\n } \n else {\n yCoordinate = second.value().getYorig();\n }\n if (first.value().getZorig() > second.value().getZorig()) {\n zCoordinate = first.value().getZorig();\n } \n else {\n zCoordinate = second.value().getZorig();\n }\n if ((x <= xCoordinate && xCoordinate <= (x + xWidth))\n && (y <= yCoordinate && yCoordinate <= (y + yWidth))\n && (z <= zCoordinate && zCoordinate <= (z + zWidth))) {\n System.out.print(first.value().toString() + \" and \");\n System.out.println(second.value().toString());\n }\n second = second.previous();\n }\n first = first.previous();\n second = first.previous();\n }\n }", "public void testNested3() throws Exception {\n String contents = \n \"(8 ?: 7) + (8 ?: 7)\";\n assertType(contents, \"java.lang.Integer\");\n }", "private String toStringBody(int depth) {\n if (depth <= 1) return \"\";\n\n String ret;\n if (operator == null) {\n ret = \"\\nOperator: null\";\n }\n else {\n ret = \"\\nOperator: \" + operator.getName().toString() + \" \"\n + operator.getUid() + \" \";\n }\n\n if (unboundedBoundSymbols!=null && unboundedBoundSymbols.length > 0) {\n ret += \"\\nUnbounded bound symbols: \";\n for (int i = 0; i < unboundedBoundSymbols.length; i++) {\n ret += Strings.indent(2,unboundedBoundSymbols[i].toString(depth-1));\n }\n }\n\n if (boundedBoundSymbols != null && boundedBoundSymbols.length > 0) {\n ret += \"\\nBounded bound symbols: \" + getNumberOfBoundedBoundSymbols();\n for (int i = 0; i < boundedBoundSymbols.length; i++) {\n if (boundedBoundSymbols[i] != null && boundedBoundSymbols[i].length > 0) {\n for (int j = 0; j < boundedBoundSymbols[i].length; j++) {\n ret += Strings.indent(2, \"\\n[\" + i + \",\" + j + \"]\" +\n Strings.indent(2,boundedBoundSymbols[i][j].toString(depth-1)));\n }\n }\n }\n }\n\n if (ranges.length > 0) {\n ret += \"\\nRanges: \";\n for (int i = 0; i < ranges.length; i++)\n ret += Strings.indent(2,(ranges[i] != null ?\n ranges[i].toString(depth-1) : \"null\" ));\n }\n\n if (tupleOrs != null && tupleOrs.length > 0 /* && tupleOrs[0] */) {\n ret += \"\\nTupleOrs: \";\n for (int i = 0; i < tupleOrs.length; i++) {\n ret += Strings.indent(2, (tupleOrs[i] ? \"\\ntrue\" : \"\\nfalse\"));\n }\n }\n\n if (operands != null) {\n if (operands.length > 0) {\n ret += \"\\nOperands: \" + operands.length;\n for (int i = 0; i < operands.length; i++) {\n ret += Strings.indent(2,\n (operands[i] == null ? \"\\nnull\" : operands[i].toString(depth-1)));\n }\n }\n }\n else {\n ret += \"\\nOperands: null\";\n }\n return Strings.indent(2, ret);\n }", "@Override\n public TreeNode parse() {\n TreeNode first = ArithmeticSubexpression.getAdditive(environment).parse();\n if (first == null) return null;\n\n // Try to parse something starting with an operator.\n List<Wrapper> wrappers = RightSideSubexpression.createKleene(\n environment, ArithmeticSubexpression.getAdditive(environment),\n BemTeVicTokenType.EQUAL, BemTeVicTokenType.DIFFERENT,\n BemTeVicTokenType.GREATER_OR_EQUALS, BemTeVicTokenType.GREATER_THAN,\n BemTeVicTokenType.LESS_OR_EQUALS, BemTeVicTokenType.LESS_THAN\n ).parse();\n\n // If did not found anything starting with an operator, return the first node.\n if (wrappers.isEmpty()) return first;\n\n // Constructs a binary operator node containing the expression.\n Iterator<Wrapper> it = wrappers.iterator();\n Wrapper secondWrapper = it.next();\n BinaryOperatorNode second = new BinaryOperatorNode(secondWrapper.getTokenType(), first, secondWrapper.getOutput());\n\n if (wrappers.size() == 1) return second;\n\n // If we reach this far, the expression has more than one operator. i.e. (x = y = z),\n // which is a shortcut for (x = y AND y = z).\n\n // Firstly, determine if the operators are compatible.\n RelationalOperatorSide side = RelationalOperatorSide.NONE;\n for (Wrapper w : wrappers) {\n side = side.next(w.getTokenType());\n }\n if (side.isMixed()) {\n environment.emitError(\"XXX\");\n }\n\n // Creates the other nodes. In the expression (a = b = c = d), The \"a = b\"\n // is in the \"second\" node. Creates \"b = c\", and \"c = d\" nodes.\n List<BinaryOperatorNode> nodes = new LinkedList<BinaryOperatorNode>();\n nodes.add(second);\n\n TreeNode prev = secondWrapper.getOutput();\n while (it.hasNext()) {\n Wrapper w = it.next();\n BinaryOperatorNode current = new BinaryOperatorNode(w.getTokenType(), prev, w.getOutput());\n prev = w.getOutput();\n nodes.add(current);\n }\n\n // Combines all of the nodes in a single one using AND.\n return new VariableArityOperatorNode(BemTeVicTokenType.AND, nodes);\n }", "static void a(bu bu2, y.c.y y2) {\n Object object;\n Object object2;\n A a2;\n block8 : {\n boolean bl2;\n block7 : {\n bl2 = fj.z;\n a2 = bu2.t();\n y.c.x x2 = y2.a();\n while (x2.f()) {\n object2 = x2.e();\n a2.a(object2, true);\n x2.g();\n if (!bl2) {\n if (!bl2) continue;\n }\n break block7;\n }\n bu2.a(d.a, a2);\n }\n boolean bl3 = bu2.c(d) != null;\n object2 = new d();\n object2.b(3);\n object2.a(2);\n if (bl3) {\n object = new v();\n object.b(2);\n object.a(e);\n object.f(true);\n object.d(4);\n object.e(false);\n object.c(5);\n object.c(true);\n object.a(1);\n object.b(true);\n object.c(1);\n object.a(\"routingPreferMiddleOfNode\", (Object)Boolean.TRUE);\n i i2 = new i(new n(new ab(new y.f.i.X((ah)object))));\n object2.b(new hX(i2));\n if (!bl2) break block8;\n }\n object2.c(2);\n }\n object2.d(5);\n object2.a(true);\n object2.b(false);\n try {\n object = new bI(1);\n object.a(false);\n object.b(true);\n object.d().a(true);\n object.a(bu2, (ah)object2);\n return;\n }\n finally {\n bu2.d_(d.a);\n bu2.a(a2);\n }\n }", "private TreeNode<K> combine(TreeNode<K> x, TreeNode<K> y) {\n TreeNode<K> z = new TreeNode<K>();\n z.left = x;\n z.right = y;\n z.rank = x.rank + 1;\n sift(z);\n return z;\n }", "private Expression divisionRelation(Expression s, Expression t) {\n return exists(var(\"z\"), equal(multi(s, var(\"z\")), t));\n }", "private Pair<SemanticType,Code<?>> expand(Code<?> root, SemanticType.Or type, int freeVar) {\n\t\tSemanticType[] elements = type.elements();\n\t\tSemanticType[] nelements = new SemanticType[elements.length];\n\t\tCode<?> invariant = null;\n\t\t// Go through each type element expanding its invariants. In the end, if\n\t\t// no elements expand to an invariant then we stick with null.\n\t\t// Otherwise, we have some invariant at the end.\n\t\tfor (int i = 0; i != elements.length; ++i) {\n\t\t\tPair<SemanticType, Code<?>> p = expand(root, elements[i], freeVar);\n\t\t\tnelements[i] = p.first();\n\t\t\tCode<?> ei = p.second();\n\t\t\tif (ei != null) {\n\t\t\t\t// This element has yielded an actual invariant. The first thing\n\t\t\t\t// is to add the test that this is the given type.\n\t\t\t\tei = implies(Code.Is(type, root, p.first()),ei);\n\t\t\t\t// Now, decide whether this it the first one, or just another\n\t\t\t\t// one.\n\t\t\t\tif (invariant == null) {\n\t\t\t\t\t// Yes, it's the first element which has given an invariant,\n\t\t\t\t\t// therefore it is the current overall invariant.\n\t\t\t\t\tinvariant = ei;\n\t\t\t\t} else {\n\t\t\t\t\t// No, this is just another element which has given an\n\t\t\t\t\t// invariant, therefore just and them together.\n\t\t\t\t\tinvariant = or(invariant, ei);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Pair<SemanticType,Code<?>>(SemanticType.Or(nelements),invariant);\n\t}", "private Pair<SemanticType,Code<?>> expand(Code<?> root, SemanticType.Tuple type, int freeVar) {\n\t\tSemanticType[] elements = type.elements();\n\t\tSemanticType[] nelements = new SemanticType[elements.length];\n\t\tCode<?> invariant = null;\n\t\t// Go through each type element expanding its invariants. In the end, if\n\t\t// no elements expand to an invariant then we stick with null.\n\t\t// Otherwise, we have some invariant at the end.\n\t\tfor (int i = 0; i != elements.length; ++i) {\n\t\t\tCode<?> ri = Code.Load(type, root, i);\n\t\t\tPair<SemanticType,Code<?>> p = expand(ri, elements[i], freeVar);\n\t\t\tCode<?> ei = p.second();\n\t\t\tnelements[i] = p.first();\n\t\t\tif (ei != null) {\n\t\t\t\t// This element has yielded an actual invariant. Now, decide\n\t\t\t\t// whether this it the first one, or just another one.\n\t\t\t\tif (invariant == null) {\n\t\t\t\t\t// Yes, it's the first element which has given an invariant,\n\t\t\t\t\t// therefore it is the current overall invariant.\n\t\t\t\t\tinvariant = ei;\n\t\t\t\t} else {\n\t\t\t\t\t// No, this is just another element which has given an\n\t\t\t\t\t// invariant, therefore just and them together.\n\t\t\t\t\tinvariant = and(invariant, ei);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Pair<SemanticType,Code<?>>(SemanticType.Tuple(nelements),invariant);\n\t}", "private Pair<SemanticType,Code<?>> expand(Code<?> root, SemanticType.Not type, int freeVar) {\n\t\tCode.Variable variable = Code.Variable(type.element(), freeVar);\n\t\tPair<SemanticType,Code<?>> p = expand(variable, type.element(), freeVar++);\n\t\tCode<?> invariant = p.second();\n\t\tif (invariant != null) {\n\t\t\tinvariant = Code.Unary(SemanticType.Bool, Code.Unary.Op.NOT, invariant);\t\t\t\n\t\t}\n\t\treturn new Pair<SemanticType,Code<?>>(SemanticType.Not(p.first()),invariant);\n\t}", "public void testNested4() throws Exception {\n createUnit(\"\", \"Foo\", \"class Foo { int prop }\");\n String contents = \n \"(new Foo().@prop) + (8 ?: 7)\";\n assertType(contents, \"java.lang.Integer\");\n }", "private void add3(int[] x3, int[] z3, int[] x2, int[] z2, int[] x1, int[] z1, int[] x, int[] z) {\r\n\t\tint[] t = fieldTX;\r\n\t\tint[] u = fieldTZ;\r\n\t\tint[] v = fieldUX;\r\n\t\tint[] w = fieldUZ;\r\n\t\tSubtractBigNbrModN(x2, z2, v, TestNbr, NumberLength); // v = x2-z2\r\n\t\tAddBigNbrModN(x1, z1, w, TestNbr, NumberLength); // w = x1+z1\r\n\t\tMontgomeryMult(v, w, u); // u = (x2-z2)*(x1+z1)\r\n\t\tAddBigNbrModN(x2, z2, w, TestNbr, NumberLength); // w = x2+z2\r\n\t\tSubtractBigNbrModN(x1, z1, t, TestNbr, NumberLength); // t = x1-z1\r\n\t\tMontgomeryMult(t, w, v); // v = (x2+z2)*(x1-z1)\r\n\t\tAddBigNbrModN(u, v, t, TestNbr, NumberLength); // t = 2*(x1*x2-z1*z2)\r\n\t\tMontgomeryMult(t, t, w); // w = 4*(x1*x2-z1*z2)^2\r\n\t\tSubtractBigNbrModN(u, v, t, TestNbr, NumberLength); // t =\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 2*(x2*z1-x1*z2)\r\n\t\tMontgomeryMult(t, t, v); // v = 4*(x2*z1-x1*z2)^2\r\n\t\tif (BigNbrAreEqual(x, x3)) {\r\n\t\t\tSystem.arraycopy(x, 0, u, 0, NumberLength);\r\n\t\t\tSystem.arraycopy(w, 0, t, 0, NumberLength);\r\n\t\t\tMontgomeryMult(z, t, w);\r\n\t\t\tMontgomeryMult(v, u, z3);\r\n\t\t\tSystem.arraycopy(w, 0, x3, 0, NumberLength);\r\n\t\t} else {\r\n\t\t\tMontgomeryMult(w, z, x3); // x3 = 4*z*(x1*x2-z1*z2)^2\r\n\t\t\tMontgomeryMult(x, v, z3); // z3 = 4*x*(x2*z1-x1*z2)^2\r\n\t\t}\r\n\t}", "public interface Pie {\n Pie accept(PieVisitor visitor);\n\n public static void main(String[] args) {\n Pie p = new Top(new Integer(3), new Top(new Integer(2), new Top(new Integer(3), new Bot())));\n System.out.println(p);//Top{t=3, p=Top{t=2, p=Top{t=3, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Integer(2))));//Top{t=3, p=Top{t=3, p=Bot{}}}\n System.out.println(p.accept(new Subst(new Integer(5), new Integer(3))));//Top{t=5, p=Top{t=2, p=Top{t=5, p=Bot{}}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Integer(3), new Top(new Zero(), new Bot())));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=3, p=Top{t=Zero{}, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Zero())));//Top{t=Anchovy{}, p=Top{t=3, p=Bot{}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Bot())))));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(p.accept(new LtdSubst(new Integer(2), new Salmon(), new Anchovy())));//Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(\"--------------\");\n }\n}", "public void printType(){\n l1= v1.distance(v2);\r\n l2= v1.distance(v3);\r\n l3= v2.distance(v3); \r\n if(l1 == l2 && l1==l3 && l2==l3)\r\n System.out.println(\"Equilateral\");\r\n if(l1 == l2 || l1==l3 || l2==l3)\r\n System.out.println(\"Isosceles\");\r\n else \r\n System.out.println(\"Scalene\"); \r\n \r\n }", "private void compose() {\n for(Group group : inputGroupList){\n if(group.getGroups().size() > 0){\n LinkedList<Integer> upperGroups = group.getGroups();\n for(int i = 0; i < upperGroups.size(); i++){\n int id = upperGroups.get(i);\n Group upper = findById(id);\n upper.addChild(group);\n }\n } else{\n root.addChild(group);\n }\n }\n for(Address adr : inputAddressList){\n if(adr.getGroups().size() > 0){\n LinkedList<Integer> upperGroups = adr.getGroups();\n for(int i = 0; i < upperGroups.size(); i++){\n int id = upperGroups.get(i);\n Group upper = findById(id);\n upper.addChild(adr);\n adr.addParent(upper);\n }\n } else{\n root.addChild(adr);\n }\n }\n\n assert(root.getChildren().size() > 0);\n }", "public void fixInsert(Node<E> z) {\n\t\twhile (z.getParent().getColor() == 'R') {\n\t\t\tif (z.getParent() == z.getParent().getParent().getLeftChild()) {\n\t\t\t\tNode<E> y = z.getParent().getParent().getRightChild();\n\t\t\t\t//case 1 if z.p is the root, then z.p is black\n\t\t\t\tif (y.getColor() == 'R') {\n\t\t\t\t\tz.getParent().setColor('B');\n\t\t\t\t\ty.setColor('B');\n\t\t\t\t\tz.getParent().getParent().setColor('R');\n\t\t\t\t\tz = z.getParent().getParent();\n\t\t\t\t} else {\n\t\t\t\t\t//case 2. z’s uncle y is black and z is a right child\n\t\t\t\t\tif (z == z.getParent().getRightChild()) {\n\t\t\t\t\t\tz = z.getParent();\n\t\t\t\t\t\tleftRotate(z);\n\t\t\t\t\t}\n\t\t\t\t\t//case 3. z’s uncle y is black and z is a left child\n\t\t\t\t\tz.getParent().setColor('B');\n\t\t\t\t\tz.getParent().getParent().setColor('R');\n\t\t\t\t\trightRotate(z.getParent().getParent());\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t//This does the same thing as the code above in the if statement\n\t\t\t\t//However, there we switch the \"left\" and \"right\" from the if statement\n\t\t\t\tNode<E> y = z.getParent().getParent().getLeftChild();\n\t\t\t\t//case 1 if z.p is the root, then z.p is black\n\t\t\t\tif (y.getColor() == 'R') {\n\t\t\t\t\tz.getParent().setColor('B');\n\t\t\t\t\ty.setColor('B');\n\t\t\t\t\tz.getParent().getParent().setColor('R');\n\t\t\t\t\tz = z.getParent().getParent();\n\t\t\t\t} else {\n\t\t\t\t\t//case 2. z’s uncle y is black and z is a right child\n\t\t\t\t\tif (z == z.getParent().getLeftChild()) {\n\t\t\t\t\t\tz = z.getParent();\n\t\t\t\t\t\trightRotate(z);\n\t\t\t\t\t}\n\t\t\t\t\t//case 3. z’s uncle y is black and z is a left child\n\t\t\t\t\tz.getParent().setColor('B');\n\t\t\t\t\tz.getParent().getParent().setColor('R');\n\t\t\t\t\tleftRotate(z.getParent().getParent());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\troot.setColor('B');\n\t\n\t}", "private Pair<SemanticType,Code<?>> expand(Code<?> root, SemanticType.And type, int freeVar) {\n\t\tSemanticType[] elements = type.elements();\n\t\tSemanticType[] nelements = new SemanticType[elements.length];\n\t\tCode<?> invariant = null;\n\t\t// Go through each type element expanding its invariants. In the end, if\n\t\t// no elements expand to an invariant then we stick with null.\n\t\t// Otherwise, we have some invariant at the end.\n\t\tfor (int i = 0; i != elements.length; ++i) {\n\t\t\tPair<SemanticType,Code<?>> p = expand(root, elements[i], freeVar);\n\t\t\tnelements[i] = p.first();\n\t\t\tCode<?> ei = p.second();\n\t\t\tif (ei != null) {\n\t\t\t\t// This element has yielded an actual invariant. Now, decide\n\t\t\t\t// whether this it the first one, or just another one.\n\t\t\t\tif (invariant == null) {\n\t\t\t\t\t// Yes, it's the first element which has given an invariant,\n\t\t\t\t\t// therefore it is the current overall invariant.\n\t\t\t\t\tinvariant = ei;\n\t\t\t\t} else {\n\t\t\t\t\t// No, this is just another element which has given an\n\t\t\t\t\t// invariant, therefore just and them together.\n\t\t\t\t\tinvariant = and(invariant, ei);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Pair<SemanticType,Code<?>>(SemanticType.And(nelements),invariant);\n\t}", "Point3D getLeftUpperBackCorner();", "public interface Category<Element, Arrow> {\t\n\tArrow identity(Element elem);\n\tArrow compose(Arrow left, Arrow right);\n}", "public static void main(String[] args){\n\t\n\t\tTentTree g1 = new TentTree(4,5,\"Tent\",\"Tree\");\n\t\tif (g1.numRows()==4 && g1.numCols()==5 && g1.getTentSymbol().equals(\"Tent\")\n\t\t\t&& g1.getTreeSymbol().equals(\"Tree\")){\n\t\t\tSystem.out.println(\"Yay 1\");\n\t\t}\n\n\t\tTentTree g2 = new TentTree(3,3);\n\t\t\n\t\t//g2.toString();\n\n\t\tif (g2.set(new Position(1,0), \"O\") && !g2.set(new Position(1,0),\"O\") &&\n\t\t\t\tg2.addTree(new Position(1,2)) && !g2.addTree(new Position(1,5))){\n\t\t\t\tSystem.out.println(\"Yay 2\");\n\t\t\t}\n\t\t\n\t\tif (g2.addTent((new Position(0,0))) && !g2.addTent(new Position(0,1)) &&\n\t\t\t\t!g2.addTent((new Position(1,0))) && g2.get((new Position(0,0))).equals(\"X\")){\n\t\t\t\tSystem.out.println(\"Yay 3\");\n\n\t\t\t}\n\t\n\t\tif (g2.hasTent(new Position(0,0)) && g2.posHasNbr((new Position(0,0)),\"O\") &&\n\t\t\t\tg2.posTouching((new Position(1,2)),\"X\") && !g2.posHasNbr((new Position(1,2)),\"X\")){\n\t\t\t\tSystem.out.println(\"Yay 4\");\n\n\t\t\t}\n\t\t\n\t\tif (!g2.removeTent(new Position(0,1)) && !g2.removeTent(new Position(2,1))\n\t\t\t&& g2.get(new Position(2,2))==null){\n\t\t\tSystem.out.println(\"Yay 5\");\n\t\t}\n\t\n\t}", "@Override\r\n public DSCP opBrackets() {\r\n /*put codegen here.*/\r\n return elementType.pushStack();\r\n }", "public Pair<Queue<BaseSingle>, boolean[][]> getBorderTroops() {\n Queue<BaseSingle> borderTroops = new LinkedList<>();\n boolean[][] inDanger = new boolean[depth][width];\n int i = 0;\n int j = 0;\n\n // First, scan the first line.\n BaseSingle troop;\n boolean oneLineLeft = false;\n for (j = 0; j < width; j++) {\n troop = aliveTroopsFormation[i][j];\n if (troop != null) {\n borderTroops.add(troop);\n inDanger[i][j] = true;\n } else {\n oneLineLeft = true;\n }\n }\n if (oneLineLeft) return new Pair<>(borderTroops, inDanger);\n\n // Then scan downward from both sides\n int heightLeft = 0;\n int heightRight = 0;\n BaseSingle troopLeft;\n BaseSingle troopRight;\n for (i = 1; i < depth; i++) {\n troopLeft = aliveTroopsFormation[i][0];\n troopRight = aliveTroopsFormation[i][width - 1];\n if (troopLeft != null) {\n borderTroops.add(troopLeft);\n heightLeft += 1;\n inDanger[i][0] = true;\n }\n if (troopRight != null) {\n borderTroops.add(troopRight);\n heightRight += 1;\n inDanger[i][width - 1] = true;\n }\n if (troopLeft == null || troopRight == null) break;\n }\n\n // Last line\n int lastLine = Math.min(heightLeft, heightRight);\n if (lastLine == depth - 1) {\n for (j = 1; j < width - 1; j++) {\n inDanger[lastLine][j] = true;\n borderTroops.add(aliveTroopsFormation[lastLine][j]);\n }\n } else {\n for (j = 1; j < width - 1; j++) {\n if (aliveTroopsFormation[lastLine + 1][j] == null) {\n inDanger[lastLine][j] = true;\n borderTroops.add(aliveTroopsFormation[lastLine][j]);\n } else {\n inDanger[lastLine + 1][j] = true;\n borderTroops.add(aliveTroopsFormation[lastLine + 1][j]);\n }\n }\n }\n return new Pair<>(borderTroops, inDanger);\n }", "godot.wire.Wire.Vector3OrBuilder getZOrBuilder();", "private Node put(Point2D p, Value val, Node x, boolean vertical) {\n if (x == null) return new Node(p, val, vertical);\n if (x.p.equals(p)) {\n x.val = val;\n }\n else if ((vertical && p.x() < x.p.x()) || (!vertical && p.y() < x.p.y())) {\n x.left = put(p, val, x.left, !x.vertical);\n }\n else {\n // if (vertical) {\n // bbox = new RectHV(x.p.x(), bbox.ymin(), bbox.xmax(), bbox.ymax());\n // }\n // else bbox = new RectHV(bbox.xmin(), x.p.y(), bbox.xmax(), bbox.ymax());\n x.right = put(p, val, x.right, !x.vertical);\n }\n return x;\n }", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "static String catAndMouse(int x, int y, int z) {\nint PosCatA ;\nint PosCatB ;\nString wins = null;\nPosCatA = Math.abs(z-x);\nPosCatB = Math.abs(z-y);\nif(PosCatA > PosCatB)\n{\n wins = \"Cat B\";\n}\nif(PosCatB > PosCatA)\n{\n wins = \"Cat A\";\n}\nif ( PosCatA == PosCatB)\n{\n wins= \"Mouse C\";\n}\n return wins;\n }", "@Test\n\tpublic void parenthesses_should_notbalanced_expr()\n\t{\n\t\tString result=\"\";String expr=\"\";\n\t\t\n\t\texpr=\"(a+b(a+c)\";\n\t\t result=com.bridgelabz.util.DataStructure.BalanaceParenthes(expr);\n\t\tassertTrue(\"not balanced\", result!=\"balaced\");\n\t}", "private boolean overlappingGateways(BpmnShape s1, BpmnShape s2) {\n\t\tdouble firstHeight = s1.getBounds().getHeight() / 2;\n\t\tdouble firstWidth = s1.getBounds().getWidth() / 2;\n\t\tdouble firstX = s1.getBounds().getX() + firstWidth;\n\t\tdouble firstY = s1.getBounds().getY() + firstHeight;\n\t\tdouble firstApothem = (s1.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\n\t\tdouble secondWidth = s2.getBounds().getWidth() / 2;\n\t\tdouble secondHeight = s2.getBounds().getHeight() / 2;\n\t\tdouble secondX = s2.getBounds().getX();\n\t\tdouble secondY = s2.getBounds().getY() + secondHeight;\n\t\tdouble secondApothem = (s2.getBounds().getHeight() * Math.sqrt(2)) / 2;\n\t\t\n\t\tif (firstX > secondX && firstY > secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY > secondY){\n\t\t\tif ((firstX + firstWidth > secondX - secondWidth && firstY - firstHeight < secondY + secondHeight) &&\n\t\t\t\t(firstX + firstApothem > secondX - secondApothem || firstY - firstApothem < secondY + secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY < secondY){\n\t\t\tif ((firstX - firstWidth < secondX + secondWidth && firstY + firstHeight > secondY - secondHeight) &&\n\t\t\t\t(firstX - firstApothem < secondX + secondApothem || firstY + firstApothem > secondY - secondApothem))\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY == secondY)\n\t\t\t\treturn true;\n\t\t\n\t\tif (firstX == secondX && firstY > secondY){\n\t\t\tif (firstY - firstHeight < secondY + secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX > secondX && firstY == secondY){\n\t\t\tif (firstX - firstWidth < secondX + secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX == secondX && firstY < secondY){\n\t\t\tif (firstY + firstHeight > secondY - secondHeight)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (firstX < secondX && firstY == secondY){\n\t\t\tif (firstX + firstWidth > secondX - secondWidth)\n\t\t\t\treturn true;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn false;\n\t}", "public static void main(String[] args) {\r\n\t\r\n\tParser open = new Symbol('(').discard();\r\n\tParser close = new Symbol(')').discard();\r\n\tParser comma = new Symbol(',').discard();\r\n\r\n\tNum num = new Num();\r\n\t\r\n\tParser coord = new Sequence()\r\n\t\t.add(open)\r\n\t\t.add(num).add(comma).add(num).add(comma).add(num)\r\n\t\t.add(close);\r\n\r\n\tAssembly out = coord.bestMatch(\r\n\t\tnew TokenAssembly(\"(23.4, 34.5, 45.6)\"));\r\n\r\n\tStack s = out.getStack();\r\n\twhile (!s.empty()) {\r\n\t\tSystem.out.println(s.pop());\r\n\t}\r\n}", "public static void levelOrderLinewiseZZ(Node node){\n Stack<Node> st1= new Stack<>();\n Stack<Node> st2= new Stack<>();\n\n int cnt=0;\n st1.push(node);\n\n while(st1.size()>0)\n {\n int n= st1.size();\n if(cnt%2==0){\n while(n>0) {\n Node nn=st1.pop();\n System.out.print(nn.data+\" \");\n for (int i = 0; i < nn.children.size(); i++) {\n st2.push(nn.children.get(i));\n }\n n--;\n }\n }\n else{\n while(n>0){\n Node nn=st1.pop();\n System.out.print(nn.data+\" \");\n for(int i=nn.children.size()-1;i>=0;i--)\n {\n st2.push(nn.children.get(i));\n }\n n--;\n }\n }\n System.out.println();\n cnt++;\n Stack<Node> temp=st1;\n st1=st2;\n st2=temp;\n }\n\n\n }", "private void createVertices(int iX, int iY, int iXO, int iYO, int num, int increment) {\n int y = iY;\n if (num == 0 && increment == 0) {\n BracketNode last = new BracketNode(\"\", iX, y - 20, iXO, 20);\n nodes.add(last);\n getChildren().addAll(new Line(iX, iY, iX + iXO, iY), last);\n last.setName(currentBracket.getBracket().get(location));\n bracketMap.put(last, location);\n nodeMap.put(location, last);\n } else {\n ArrayList<BracketNode> aNodeList = new ArrayList<>();\n for (int i = 0; i < num; i++) {\n Point2D tl = new Point2D(iX, y);\n Point2D tr = new Point2D(iX + iXO, y);\n Point2D bl = new Point2D(iX, y + iYO);\n Point2D br = new Point2D(iX + iXO, y + iYO);\n BracketNode nTop = new BracketNode(\"\", iX, y - 20, iXO, 20);\n aNodeList.add(nTop);\n nodes.add(nTop);\n BracketNode nBottom = new BracketNode(\"\", iX, y + (iYO - 20), iXO, 20);\n aNodeList.add(nBottom);\n nodes.add(nBottom);\n Line top = new Line(tl.getX(), tl.getY(), tr.getX(), tr.getY());\n Line bottom = new Line(bl.getX(), bl.getY(), br.getX(), br.getY());\n Line right = new Line(tr.getX(), tr.getY(), br.getX(), br.getY());\n getChildren().addAll(top, bottom, right, nTop, nBottom);\n isTop = !isTop;\n y += increment;\n }\n ArrayList<Integer> tmpHelp = helper(location, num);\n for (int j = 0; j < aNodeList.size(); j++) {\n //System.out.println(currentBracket.getBracket().get(tmpHelp.get(j)));\n aNodeList.get(j).setName(currentBracket.getBracket().get(tmpHelp.get(j)));\n bracketMap.put(aNodeList.get(j), tmpHelp.get(j));\n nodeMap.put(tmpHelp.get(j), aNodeList.get(j));\n //System.out.println(bracketMap.get(aNodeList.get(j)));\n }\n }\n\n }", "private Operation expression2(Scope scope, Vector queue)\r\n {\r\n Operation root = expression3(scope, queue);\r\n\r\n if (infix.contains(nextSymbol))\r\n root = expression2Rest(root, scope, queue);\r\n\r\n return root;\r\n }", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "private void duplicate(int[] x2, int[] z2, int[] x1, int[] z1) {\r\n\t\tint[] u = fieldUZ;\r\n\t\tint[] v = fieldTX;\r\n\t\tint[] w = fieldTZ;\r\n\t\tAddBigNbrModN(x1, z1, w, TestNbr, NumberLength); // w = x1+z1\r\n\t\tMontgomeryMult(w, w, u); // u = (x1+z1)^2\r\n\t\tSubtractBigNbrModN(x1, z1, w, TestNbr, NumberLength); // w = x1-z1\r\n\t\tMontgomeryMult(w, w, v); // v = (x1-z1)^2\r\n\t\tMontgomeryMult(u, v, x2); // x2 = u*v = (x1^2 - z1^2)^2\r\n\t\tSubtractBigNbrModN(u, v, w, TestNbr, NumberLength); // w = u-v = 4*x1*z1\r\n\t\tMontgomeryMult(fieldAA, w, u);\r\n\t\tAddBigNbrModN(u, v, u, TestNbr, NumberLength); // u = (v+b*w)\r\n\t\tMontgomeryMult(w, u, z2); // z2 = (w*u)\r\n\t}", "private Bounds getSubdivision(int x, int y, int z) {\n final int xStep = (maxX - minX + 1) / 2;\n final int yStep = (maxY - minY + 1) / 2;\n final int zStep = (maxZ - minZ + 1) / 2;\n final int newMinX = minX + xStep * x;\n final int newMinY = minY + yStep * y;\n final int newMinZ = minZ + zStep * z;\n return new Bounds(newMinX, newMinY, newMinZ, newMinX + xStep, newMinY + yStep, newMinZ + zStep);\n }", "public Branch3(int firstX1, int firstY1, int firstX2, int firstY2) {\n super(firstX1, firstY1, firstX2, firstY2);\n middle = null;\n }", "public Model coordinate(Model model)\n {\n ArrayList removedStmt = new ArrayList();\n ArrayList addedStmt = new ArrayList();\n\n String querystr = \" PREFIX owl: <http://www.w3.org/2002/07/owl#AllDifferent> \" \n + \" SELECT ?x ?y WHERE {?x owl:unionOf ?y} \";\n\n Query query = QueryFactory.create(querystr);\n QueryExecution qe = QueryExecutionFactory.create(query, model);\n ResultSet results = qe.execSelect();\n\n for (Iterator iter = results; iter.hasNext();) {\n QuerySolution res = (QuerySolution) iter.next();\n Resource x = (Resource) res.get(\"x\");\n Resource y = (Resource) res.get(\"y\");\n removedStmt.add(model.createStatement(x, OWL.unionOf, y));\n addedStmt.add(model.createStatement(x, RDF.type, OWL.Class));\n Resource rest = y;\n Resource first = null;\n Resource tempRest = y;\n boolean ended = false;\n while (!ended) {\n first = model.getProperty(rest, RDF.first).getResource();\n tempRest = model.getProperty(rest, RDF.rest).getResource();\n if (first == null || rest == null) {\n ended = true;\n continue;\n }\n removedStmt.add(model.createStatement(rest, RDF.first, first));\n removedStmt.add(model.createStatement(rest, RDF.rest, tempRest));\n if (!first.equals(RDF.nil)) {\n addedStmt.add(model.createStatement(first, RDFS.subClassOf,\n x));\n }\n rest = tempRest;\n if (rest.equals(RDF.nil)) {\n ended = true;\n }\n }\n }\n\n for (int i = 0; i < removedStmt.size(); i++) {\n model.remove((Statement) removedStmt.get(i));\n }\n for (int i = 0; i < addedStmt.size(); i++) {\n model.add((Statement) addedStmt.get(i));\n }\n return model;\n }", "@Test\r\n\tpublic void test3() throws IOException, LexerException, ParserException {\r\n\t\tStringReader ex = new StringReader(\"(lam^s f.\\n\\t(lam^s x.x) (f 1))\\n(lam^c y.\\n\\t(lam^s z.z) y)\");\r\n\r\n\t\tParser parser = new Parser();\r\n\t\tTerm result = parser.Parsing(ex);\r\n\t}", "public void testNested1() throws Exception {\n String contents = \n \"(true ? 2 : 7) + 9\";\n assertType(contents, \"java.lang.Integer\");\n }", "@org.junit.Test\n public void constrCompelemNested1() {\n final XQuery query = new XQuery(\n \"element elem {1, element a {2, element b {element c {}, element d {3}}, 4}}\",\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 assertSerialization(\"<elem>1<a>2<b><c/><d>3</d></b>4</a></elem>\", false)\n );\n }", "private WAVLNode swap (WAVLNode x, WAVLNode z) {\n\t WAVLNode ret = EXT_NODE;\r\n\t WAVLNode m = new WAVLNode(); // create a copy of z\r\n\t m.right=z.right;\r\n\t m.left=z.left;\r\n\t m.rank=z.rank;\r\n\t m.parent=z.parent;\r\n\t m.sizen=z.sizen;\r\n\t m.info=z.info;\r\n\t m.key=z.key;\r\n\t WAVLNode aba = x.parent;\r\n\t String side=null;\r\n\t if (x.parent!=null) { //if x is not the root\r\n\t\t side = parentside(x.parent, x); // keep the side of x related to x's parent\r\n\t }\r\n\t if(parentside(z.parent, z).equals(\"left\")) { // put the copy of z in the correct side of z's parent\r\n\t\t z.parent.left=m;\r\n\t }\r\n\t else {\r\n\t\t z.parent.right=m;\r\n\t }\r\n\t // replace x with z\r\n\t x.left.parent=z; \r\n\t x.right.parent=z;\r\n\t z.right=x.right;\r\n\t z.left=x.left;\r\n\t z.sizen=x.sizen;\r\n\t z.rank=x.rank;\r\n\t z.parent=x.parent;\r\n\t if(aba!=null) { // if x is not the root\r\n\t\t if(side.equals(\"left\")) {// put z in the correct size of x's parent\r\n\t\t\t aba.left=z;\r\n\t\t }\r\n\t\t else {\r\n\t\t\t aba.right=z;\r\n\t\t }\r\n\t }\r\n\t else { // x is the root, change root pointer to z\r\n\t\t this.root=z;\r\n\t }\r\n\t return m;\r\n }", "public static ArrayDeque<String> parseSingle (String inputString) {\n\n //using ArrayDeque here since it does everything and is flexible. Could do a linkedList though..?\n ArrayDeque inputQueue = new ArrayDeque<String>();; //input queue. not sure if i really need this\n ArrayDeque outputQueue = new ArrayDeque<String>();//output queue\n ArrayDeque operatorStack = new ArrayDeque<String>(); //operator stack\n\n //remove spaces\n inputString = inputString.replaceAll(\"\\\\s+\", \"\");\n\n String inputArray[] = inputString.split(\"(?<==>|&|~|\\\\/|<=>)|(?==>|&|~|\\\\/|<=>)\"); //TODO build this regex dynamically from Connective enum\n for (String inputElement: inputArray) {\n inputQueue.add(inputElement);\n }\n\n //convert to rpn form\n //don't worry about parentheses, do later as part of research\n while (!inputQueue.isEmpty()) {\n //check if element is a operator\n if (isOperator((String)inputQueue.peekFirst())) {\n\n //add operator to stack if empty\n if (operatorStack.isEmpty()) {\n operatorStack.addLast(inputQueue.pollFirst());\n\n //while there is an operator on the operatorStack with greater precedence than the current pop that one\n } else if (compare((String)inputQueue.peekFirst(), (String)operatorStack.peekLast()) <= 0) {\n outputQueue.add(operatorStack.pollLast());\n continue; //need to restart loop since may be operatorStack.size() > 1\n } else {\n operatorStack.addLast(inputQueue.pollFirst());\n }\n //operands\n } else {\n outputQueue.add(inputQueue.pollFirst());\n }\n }\n\n //once inputQueue is empty need to finish draining the operators\n while (!operatorStack.isEmpty()) {\n outputQueue.add(operatorStack.pollLast());\n }\n\n //TODO: maybe convert proposition symbol to Horn form\n\n return (outputQueue);\n }", "private static void binomialLink(Node y, Node z) {\n\t\ty.p = z;\n\t\ty.rightSibling = z.leftChild;\n\t\tz.leftChild = y;\n\t\tz.degree = z.degree + 1;\n\t}", "@Builds(rule=\"<sub>\")\n\t\tprivate void handleSub(Deque<Object> q)\n\t\t{\n\t\t\tDummyObject o2 = (DummyObject) q.pop(); // o2\n\t\t\tDummyObject o1 = (DummyObject) q.pop(); // o1\n\t\t\tq.pop(); // symbol\n\t\t\tAdd a = new Add();\n\t\t\ta.left = o1;\n\t\t\ta.right = o2;\n\t\t\tq.push(a);\n\t\t}", "public interface QuotedL1Node {\n\n}", "final public Expression TriplesNode(Exp stack) throws ParseException {\n Expression expression1;\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case ATLIST:\n case ATPATH:\n case LPAREN:\n case AT:\n expression1 = Collection(stack);\n break;\n case LBRACKET:\n expression1 = BlankNodePropertyList(stack);\n break;\n default:\n jj_la1[224] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n {if (true) return expression1;}\n throw new Error(\"Missing return statement in function\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tint x = 13;\n\t\tint y = 15;\n\t\tint z = 12;\n\t\t\n/*\t\tif(x>y && x>z) {\n\t\t}\n\t\t\n\t\tif (y>x && y>z) {\n\t\t}\n\t\t\n\t\tif(z>x && z>y) {\n\t\t}*/\n\t\t\n\t\t\n\t\tif(x>y && x>z) {\n\t\t\tSystem.out.println(\"X is greater\");\n\t\t}\n\t\telse if(y>z) {\n\t\t\tSystem.out.println(\"Y is greater\");\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"Z is greater\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n \n LinkedBinaryTree expr = new LinkedBinaryTree<String>();\n // a is the root of the tree\n Position a, b, c, d, e, f, g, h, i;\n a = expr.addRoot(\"*\");\n b = expr.addLeft(a, \"+\");\n c = expr.addLeft(b, \"/\");\n d = expr.addLeft(c, \"*\");\n e = expr.addLeft(d, \"+\");\n expr.addLeft(e, \"5\");\n expr.addRight(e, \"2\");\n f = expr.addRight(d, \"-\");\n expr.addLeft(f, \"2\");\n expr.addRight(f, \"1\");\n g = expr.addRight(c, \"+\");\n expr.addLeft(g, \"2\");\n expr.addRight(g, \"9\");\n h = expr.addRight(b, \"-\");\n i = expr.addLeft(h, \"-\");\n expr.addLeft(i, \"7\");\n expr.addRight(i, \"2\");\n expr.addRight(h, \"1\");\n expr.addRight(a, \"8\");\n \n System.out.println(\"The original expression:\");\n System.out.println(\"(((5+2)*(2–1)/(2+9)+((7–2)–1))*8)\\n\");\n \n System.out.println(\"Preorder traversal:\");\n Iterable<Position<String>> preIter = expr.preorder();\n for (Position<String> s : preIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Inorder traversal:\");\n Iterable<Position<String>> inIter = expr.inorder();\n for (Position<String> s : inIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Postorder traversal:\");\n Iterable<Position<String>> postIter = expr.postorder();\n for (Position<String> s : postIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Breadth traversal:\");\n Iterable<Position<String>> breadthIter = expr.breadthfirst();\n for (Position<String> s : breadthIter) {\n System.out.print(s.getElement() + \" \");\n }\n System.out.println(\"\\n\");\n \n System.out.println(\"Parenthesized representation:\"); \n printParenthesize(expr, a);\n System.out.println();\n }", "@Override\r\n\tpublic String moveForth() {\n\t\tif((0<=x && x<=50) && (0<=y && y<=10) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (40<=y && y<=50) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (0<z && z<=10))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=10) && (0<=y && y<=50) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (40<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\telse if((40<=x && x<=50) && (0<=y && y<=50) && (0<z && z<=50))\r\n\t\t{\r\n\t\t\tz--;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "private TransformGroup createBox(\n\t\tfloat x,\n\t\tfloat z,\n\t\tfloat size,\n\t\tfloat height,\n\t\tColor3f col) {\n\n\t\t//quadrilatere\n\t\tQuadArray quad =\n\t\t\tnew QuadArray(24, QuadArray.COORDINATES | QuadArray.COLOR_3);\n\t\tquad.setCoordinate(0, new Point3f(0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t1,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(2, new Point3f(size - 0.001f, 0.001f, 0.001f));\n\t\tquad.setCoordinate(3, new Point3f(0.001f, 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(4, new Point3f(0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t5,\n\t\t\tnew Point3f(size - 0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t6,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t7,\n\t\t\tnew Point3f(0.001f, height - 0.001f, size - 0.001f));\n\n\t\tquad.setCoordinate(8, new Point3f(0.001f, 0.001f, 0.001f));\n\t\tquad.setCoordinate(9, new Point3f(0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t10,\n\t\t\tnew Point3f(0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(11, new Point3f(0.001f, height - 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(\n\t\t\t12,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t13,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t14,\n\t\t\tnew Point3f(size - 0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(15, new Point3f(size - 0.001f, 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(16, new Point3f(size - 0.001f, 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t17,\n\t\t\tnew Point3f(size - 0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(18, new Point3f(0.001f, 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(19, new Point3f(0.001f, 0.001f, 0.001f));\n\n\t\tquad.setCoordinate(20, new Point3f(0.001f, height - 0.001f, 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t21,\n\t\t\tnew Point3f(0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t22,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, size - 0.001f));\n\t\tquad.setCoordinate(\n\t\t\t23,\n\t\t\tnew Point3f(size - 0.001f, height - 0.001f, 0.001f));\n\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\tquad.setColor(i, col);\n\n\t\t//dessine les aretes\n\n\t\t//quadrilatere\n\t\tQuadArray aretes =\n\t\t\tnew QuadArray(24, QuadArray.COORDINATES | QuadArray.COLOR_3);\n\t\taretes.setCoordinate(0, new Point3f(0.0f, 0.0f, 0.0f));\n\t\taretes.setCoordinate(1, new Point3f(size, 0.0f, 0.0f));\n\t\taretes.setCoordinate(2, new Point3f(size, height, 0.0f));\n\t\taretes.setCoordinate(3, new Point3f(0.0f, height, 0.0f));\n\n\t\taretes.setCoordinate(4, new Point3f(0.0f, 0.0f, size));\n\t\taretes.setCoordinate(5, new Point3f(size, 0.0f, size));\n\t\taretes.setCoordinate(6, new Point3f(size, height, size));\n\t\taretes.setCoordinate(7, new Point3f(0.0f, height, size));\n\n\t\taretes.setCoordinate(8, new Point3f(0.0f, 0.0f, 0.0f));\n\t\taretes.setCoordinate(9, new Point3f(0.0f, 0.0f, size));\n\t\taretes.setCoordinate(10, new Point3f(0.0f, height, size));\n\t\taretes.setCoordinate(11, new Point3f(0.0f, height, 0.0f));\n\n\t\taretes.setCoordinate(12, new Point3f(size, 0.0f, 0.0f));\n\t\taretes.setCoordinate(13, new Point3f(size, 0.0f, size));\n\t\taretes.setCoordinate(14, new Point3f(size, height, size));\n\t\taretes.setCoordinate(15, new Point3f(size, height, 0.0f));\n\n\t\tfor (int i = 0; i < 24; i++)\n\t\t\taretes.setColor(i, new Color3f(1f, 1f, 1f));\n\n\t\t// move the box\n\t\tTransform3D translate = new Transform3D();\n\t\ttranslate.set(new Vector3f(x, 0.0f, z));\n\n\t\tTransformGroup tg = new TransformGroup(translate);\n\n\t\t// create the box\n\t\ttg.addChild(new Shape3D(quad));\n\t\ttg.addChild(new Shape3D(aretes, lineApp()));\n\t\treturn tg;\n\t}", "public void buildPointPetriNet(){\n\t\tcreatePlace(pnet, \"int\", 3);\n\t\tcreatePlace(pnet, \"Point\", 2);\n\t\tcreatePlace(pnet, \"MyPoint\", 2);\n\t\tcreatePlace(pnet, \"void\", 2);\n\t\t\n\t\t// Create transitions for the petri-net\n\t\tpnet.createTransition(\"int<-getX(Point)\");\n\t\tpnet.createTransition(\"int<-getY(Point)\");\n\t\tpnet.createTransition(\"void<-setX(Point,int)\");\n\t\tpnet.createTransition(\"void<-setY(Point,int)\");\n\t\tpnet.createTransition(\"Point<-Point(void)\");\n\t\t\n\t\tpnet.createTransition(\"int<-getX(MyPoint)\");\n\t\tpnet.createTransition(\"int<-getY(MyPoint)\");\n\t\tpnet.createTransition(\"MyPoint<-MyPoint(int,int)\");\n\t\t\n\t\t// Create clone transitions for the petri-net\n\t\tpnet.createTransition(\"int<-clone(int)\");\n\t\tpnet.createTransition(\"Point<-clone(Point)\");\n\t\tpnet.createTransition(\"MyPoint<-clone(MyPoint)\");\n\t\tpnet.createTransition(\"void<-clone(void)\");\n\t\t\n\t\t// Create flows for the petri-net\n\t\tpnet.createFlow(\"Point\",\"int<-getX(Point)\",1);\n\t\tpnet.createFlow(\"int<-getX(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"int<-getY(Point)\",1);\n\t\tpnet.createFlow(\"int<-getY(Point)\",\"int\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setX(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setX(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"Point\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"int\",\"void<-setY(Point,int)\",1);\n\t\tpnet.createFlow(\"void<-setY(Point,int)\",\"void\",1);\n\t\tpnet.createFlow(\"void\",\"Point<-Point(void)\",1);\n\t\tpnet.createFlow(\"Point<-Point(void)\",\"Point\",1);\n\t\t\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getX(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getX(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"MyPoint\",\"int<-getY(MyPoint)\",1);\n\t\tpnet.createFlow(\"int<-getY(MyPoint)\",\"int\",1);\n\t\tpnet.createFlow(\"int\",\"MyPoint<-MyPoint(int,int)\",2);\n\t\tpnet.createFlow(\"MyPoint<-MyPoint(int,int)\",\"MyPoint\",1);\n\t\t\n\t\t// Create flows for the clone edges\n\t\tpnet.createFlow(\"int\",\"int<-clone(int)\",1);\n\t\tpnet.createFlow(\"int<-clone(int)\",\"int\",2);\n\t\tpnet.createFlow(\"Point\",\"Point<-clone(Point)\",1);\n\t\tpnet.createFlow(\"Point<-clone(Point)\",\"Point\",2);\n\t\tpnet.createFlow(\"MyPoint\",\"MyPoint<-clone(MyPoint)\",1);\n\t\tpnet.createFlow(\"MyPoint<-clone(MyPoint)\",\"MyPoint\",2);\n\t\tpnet.createFlow(\"void\",\"void<-clone(void)\",1);\n\t\tpnet.createFlow(\"void<-clone(void)\",\"void\",2);\n\t\t\n\t}", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\t\t\n\t}", "TupleExpr createTupleExpr();", "private boolean getRightOuter() throws IOException {\n while(true) {\n if(leftTuple == nullPad) {\n found = false;\n rightTuple = rightChild.getNextTuple();\n if (rightTuple == null) {\n done = true;\n return false;\n }\n }\n leftTuple = leftChild.getNextTuple();\n if (leftTuple == null) {\n if (!found) {\n leftTuple = nullPad;\n leftChild.initialize();\n return true;\n }\n rightTuple = rightChild.getNextTuple();\n if (rightTuple == null) {\n done = true;\n return false;\n }\n found = false;\n leftChild.initialize();\n }\n else\n return true;\n }\n }", "private Pair<SemanticType,Code<?>> expand(Code<?> root, SemanticType.Nominal type, int freeVar) {\n\t\ttry {\n\t\t\tWycsFile wf = builder.getModule(type.name().module());\n\t\t\tWycsFile.Type td = wf.declaration(type.name().name(),\n\t\t\t\t\tWycsFile.Type.class);\n\t\t\tPair<SemanticType,Code<?>> p = expand(root, td.type, freeVar);\n\t\t\tCode<?> invariant = p.second();\n\t\t\tCode<?> td_invariant = td.invariant;\n\t\t\tif (td_invariant != null) {\n\t\t\t\t// An explicit invariant is given. We now need to map the given\n\t\t\t\t// root to the parameter of the invariant (which is always at\n\t\t\t\t// index 0).\n\t\t\t\tHashMap<Integer,Code> binding = new HashMap<Integer,Code>();\n\t\t\t\tbinding.put(0,root);\n\t\t\t\ttd_invariant = td_invariant.substitute(binding);\n\t\t\t\t// Finally, decide whether to use as is or append to the\n\t\t\t\t// invariant generated from the element type.\n\t\t\t\tif (invariant == null) {\n\t\t\t\t\tinvariant = td_invariant;\n\t\t\t\t} else {\n\t\t\t\t\tinvariant = and(invariant, td_invariant);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn new Pair<SemanticType,Code<?>>(p.first(),invariant);\n\t\t} catch (Exception e) {\n\t\t\tinternalFailure(e.getMessage(), filename, root, e);\n\t\t\treturn null; // deadcode\n\t\t}\n\t}", "public void testGreaterThanElement() {\n\t // fail(\"testGreaterThanElement\");\n \tCircuit circuit = new Circuit();\n \tDouble x1 = 0.5;\n \tAnd and = (And) circuit.getFactory().getGate(Gate.AND);\n\t\tNot not = (Not) circuit.getFactory().getGate(Gate.NOT);\n\t\tGte gte1 = (Gte) circuit.getFactory().getGate(Gate.GTE);\n \tand.setLeftInput(x1);\n \tnot.setInput(x1);\n \tnot.eval();\n \tand.setRightInput(not.getOutput());\n\t\tand.eval();\n \tgte1.setLeftInput(and.getOutput());\n\t\tgte1.setRightInput(x1);\n \tassertEquals( new Double(0.0), gte1.eval());\n }", "public void testNested2() throws Exception {\n String contents = \n \"(true ? 2 : 7) + (true ? 2 : 7)\";\n assertType(contents, \"java.lang.Integer\");\n }", "public String toString() {\n\t\treturn \"<\" + x + \", \" + y + \", \" + z + \">\";\n\t}", "@Override\r\n\tpublic String moveBack() {\n\t\tif((0<=x && x<=50) && (0<=y && y<=10) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (40<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (0<=z && z<10))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=10) && (0<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((0<=x && x<=50) && (0<=y && y<=50) && (40<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\telse if((40<=x && x<=50) && (0<=y && y<=50) && (0<=z && z<50))\r\n\t\t{\r\n\t\t\tz++;\r\n\t\t}\r\n\t\treturn getFormatedCoordinates();\r\n\t}", "public void linewiseZigZag2() {\n\n\t\tLinkedList<Node> clq = new LinkedList<>();\n\t\tLinkedList<Node> nls = new LinkedList<>();\n\n\t\tclq.addLast(root);\n\t\tint level = 1;\n\t\twhile (clq.size() > 0) {\n\t\t\tNode temp = clq.removeFirst();\n\t\t\tSystem.out.print(temp.data + \" \");\n\t\t\tif (level % 2 == 1) {\n\t\t\t\tfor (int i = 0; i < temp.children.size(); i++) {\n\t\t\t\t\tnls.addFirst(temp.children.get(i));\n\t\t\t\t\t;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tfor (int i = temp.children.size() - 1; i >= 0; i--) {\n\t\t\t\t\tnls.addFirst(temp.children.get(i));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (clq.size() == 0) {\n\t\t\t\tSystem.out.println();\n\t\t\t\tclq = nls;\n\n\t\t\t\tlevel++;\n\t\t\t\tnls = new LinkedList<>();\n\t\t\t}\n\t\t}\n\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\t\r\n\t\tString BETTEST = \"/+8*62-9*43\";\r\n\r\n\r\n\t\tBinaryExpressionTree<String>listBET = new BinaryExpressionTree<String>();\r\n\r\n\t\tfor (int i = 0; i < BETTEST.length(); i++) {\r\n\t\t\t\r\n\t\t\tlistBET.add(\"\" + BETTEST.charAt(i));\t\t\t\r\n\t\t}\r\n\r\n\r\n\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\tlistBET.PreorderTraversal();\r\n\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\tlistBET.PostorderTraversal();\r\n\r\n\r\n\t\t String BETTEST2 =\"/+84*32\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET2 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST2.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET2.add(\"\" + BETTEST2.charAt(i));\t\r\n\t\t\r\n\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET2.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET2.PostorderTraversal();\r\n\t\t\t\r\n String BETTEST3 =\"*-92/31\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET3 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST3.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET3.add(\"\" + BETTEST3.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t System.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET3.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\t\r\n\t\t\tlistBET3.PostorderTraversal();\r\n \r\n\t\t\tString BETTEST4 =\"-/*8043\";\r\n\t\t \r\n\t\t BinaryExpressionTree<String>listBET4 = new BinaryExpressionTree<String>();\r\n\t\t\r\n\t\t for (int i = 0; i < BETTEST4.length(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tlistBET4.add(\"\" + BETTEST4.charAt(i));\t\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t}\r\n\t\t\tSystem.out.println(\"\\nPreOrder Traversal\");\r\n\t\t\tlistBET4.PreorderTraversal();\r\n\t\t\tSystem.out.println(\"\\nPostOrder Traversal\");\r\n\t\t\tlistBET4.PostorderTraversal();\r\n}", "private void union_Cells(int c1, int c2) {\r\n\t\twhile (cells[c1] >= 0)\r\n\t\t\tc1 = cells[c1];\r\n\t\twhile (cells[c2] >= 0)\r\n\t\t\tc2 = cells[c2];\r\n\r\n\t\t// the depth of the tree with c2 is deepper than Tc1, Tc1 attach to Tc2\r\n\t\tif (cells[c1] > cells[c2]) {\r\n\t\t\tcells[c1] = c2;\r\n\t\t} else {\r\n\t\t\tif (cells[c1] == cells[c2])\r\n\t\t\t\tcells[c1]--;\r\n\t\t\tcells[c2] = c1;\r\n\t\t}\r\n\t}", "private Pair<SemanticType,Code<?>> expand(Code<?> root, SemanticType type, int freeVar) {\n\t\tif (type instanceof SemanticType.Atom || type instanceof SemanticType.Var) {\n\t\t\treturn new Pair<SemanticType,Code<?>>(type,null);\n\t\t} else if (type instanceof SemanticType.Tuple) {\n\t\t\treturn expand(root, (SemanticType.Tuple) type, freeVar);\n\t\t} else if (type instanceof SemanticType.Set) {\n\t\t\treturn expand(root, (SemanticType.Set) type, freeVar);\n\t\t} else if (type instanceof SemanticType.Nominal) {\n\t\t\treturn expand(root, (SemanticType.Nominal) type, freeVar);\t\t\t\n\t\t} else if(type instanceof SemanticType.Not) {\n\t\t\treturn expand(root, (SemanticType.Not) type, freeVar);\n\t\t} else if(type instanceof SemanticType.And) {\n\t\t\treturn expand(root, (SemanticType.And) type, freeVar);\n\t\t} else if(type instanceof SemanticType.Or) {\n\t\t\treturn expand(root, (SemanticType.Or) type, freeVar);\n\t\t} else {\n\t\t\tinternalFailure(\"deadcode reached (\" + type.getClass().getName() + \")\", filename, root);\n\t\t\treturn null; // dead-code\n\t\t}\n\t}", "public void testConjunctionResolvesWhenSecondPathRevisitsFirst() throws Exception\n {\n resolveAndAssertSolutions(\"[[g, (h :- g), (f :- g, h)], (?- f), [[]]]\");\n }", "@Override\n\tpublic void visit(Parenthesis arg0) {\n\n\t}", "private ArrayList<T> constructTree(Node<T> z) {\n\t\telements = new ArrayList<T>();\n\t\tQueue<Node<T>> q = new LinkedList<Node<T>>();\n\n\t\tif (z != nil)\n\t\t\tq.add(z);\n\t\twhile (!q.isEmpty()) {\n\t\t\tNode<T> u = q.remove();\n\t\t\telements.add(u.x);\n\t\t\tif (u.left != nil)\n\t\t\t\tq.add(u.left);\n\t\t\tif (u.right != nil)\n\t\t\t\tq.add(u.right);\n\t\t}\n\t\treturn elements;\n\t}", "public static void main(String[] args) {\n\t\t\n//\t\t//PA4 a\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"b\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 b\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"a\");rhs11.add(\"b\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"c\");rhs12.add(\"d\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n//\t\t//PA4 c\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"S\");rhs11.add(\"U\");rhs11.add(\"S\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"S\");rhs12.add(\"S\");\t\t\n//\t\tArrayList<String> rhs13 = new ArrayList<>();\n//\t\trhs13.add(\"S\");rhs13.add(\"*\");\n//\t\tArrayList<String> rhs14 = new ArrayList<>();\n//\t\trhs14.add(\"(\");rhs14.add(\"S\");rhs14.add(\")\");\n//\t\tArrayList<String> rhs15 = new ArrayList<>();\n//\t\trhs15.add(\"a\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\trhs1.add(rhs13);\n//\t\trhs1.add(rhs14);\n//\t\trhs1.add(rhs15);\n//\n//\n//\t\tRule r1 = new Rule(\"S\", rhs1); // S -> Aa | b\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\t\t\n\t\t\n//\t\t//PA-3 d\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"rexpr\");rhs11.add(\"U\");rhs11.add(\"rterm\");\t\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"rterm\");\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\tRule r1 = new Rule(\"rexpr\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"rterm\");rhs21.add(\"r factor\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"r factor\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"rterm\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"r factor\");rhs31.add(\"*\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"rprimary\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"r factor\", rhs3);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs4 = new ArrayList<>();\n//\t\tArrayList<String> rhs41 = new ArrayList<>();\n//\t\trhs41.add(\"a\");\n//\t\tArrayList<String> rhs42 = new ArrayList<>();\n//\t\trhs42.add(\"b\");\n//\t\trhs4.add(rhs41);\n//\t\trhs4.add(rhs42);\n//\t\tRule r4 = new Rule(\"rprimary\", rhs4);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\trules.add(r4);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\t\n\t\t\t\n//\t\t//PA-3 e\t\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"0\");\n//\t\tArrayList<String> rhs12 = new ArrayList<>();\n//\t\trhs12.add(\"T\");rhs12.add(\"1\");\t\t\n//\t\trhs1.add(rhs11);\n//\t\trhs1.add(rhs12);\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"1\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"A\");rhs22.add(\"0\");\t\t\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\t\tRule r2 = new Rule(\"T\", rhs2);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tg.eliminateEpsilonRule();\n//\t\tg.eliminateLR();\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\n\t\t\n//\t\t//PA-3 f\n//\t\t\n//\t\tArrayList<ArrayList<String>> rhs1 = new ArrayList<>();\n//\t\tArrayList<String> rhs11 = new ArrayList<>();\n//\t\trhs11.add(\"B\");rhs11.add(\"C\");\t\n//\t\trhs1.add(rhs11);\n//\t\tRule r1 = new Rule(\"A\", rhs1);\n//\n//\t\tArrayList<ArrayList<String>> rhs2 = new ArrayList<>();\n//\t\tArrayList<String> rhs21 = new ArrayList<>();\n//\t\trhs21.add(\"B\");rhs21.add(\"b\");\n//\t\tArrayList<String> rhs22 = new ArrayList<>();\n//\t\trhs22.add(\"e\");\n//\t\trhs2.add(rhs21);\n//\t\trhs2.add(rhs22);\n//\t\tRule r2 = new Rule(\"B\", rhs2);\n//\n//\t\tArrayList<ArrayList<String>> rhs3 = new ArrayList<>();\n//\t\tArrayList<String> rhs31 = new ArrayList<>();\n//\t\trhs31.add(\"A\");rhs31.add(\"C\");\n//\t\tArrayList<String> rhs32 = new ArrayList<>();\n//\t\trhs32.add(\"a\");\n//\t\trhs3.add(rhs31);\n//\t\trhs3.add(rhs32);\n//\t\tRule r3 = new Rule(\"C\", rhs3);\n//\n//\t\tArrayList<Rule> rules = new ArrayList<>();\n//\t\trules.add(r1);\n//\t\trules.add(r2);\n//\t\trules.add(r3);\n//\t\tGrammar g = new Grammar(rules);\n//\t\tSystem.out.println(g);\n//\t\tg.eliminateEpsilonRule();\n//\t\tSystem.out.println(g);\n//\n//\t\tg.eliminateLR();\n//\n//\t\tSystem.out.println(g);\n//\t\tSystem.out.println(\"----------------------\");\n\n\t}", "public abstract T zzg(T t, T t2);", "public static void assignCompoundTokens(ArrayList<String>scan){\n\nfor(int i=0;i<scan.size();i++){\n if( isUnaryPostOperator( scan.get(i) ) ){\n \n if(isNumber(scan.get(i-1))||isVariableString(scan.get(i-1))){ \n int index=i-1;\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\ni=j+1;\n }//end if\n\n else if(isClosingBracket(scan.get(i-1))){\n int index=MBracket.getComplementIndex(false, i-1, scan);\n int j=i;\n while(isUnaryPostOperator(scan.get(j))){\n ++j;\n }\n scan.add(j, \")\");\n scan.add(index,\"(\");\n i=j+1;\n }\n \n \n \n }\n \n \n \n}\n\n\n\n}", "public static void main(String[] args) {\n String input = \"( ( 1 + sqrt ( 5 ) ) / 2 )\";\n Stack<String> ops = new Stack<String>();\n Stack<Double> vals = new Stack<Double>();\n String[] temps = input.split(\" \");\n for (String temp : temps) {\n\n if (temp.equals(\"(\")) ;\n else if (temp.equals(\"+\")) ops.push(temp);\n else if (temp.equals(\"-\")) ops.push(temp);\n else if (temp.equals(\"*\")) ops.push(temp);\n else if (temp.equals(\"/\")) ops.push(temp);\n else if (temp.equals(\"sqrt\")) ops.push(temp);\n else if (temp.equals(\")\")){\n String op = ops.pop();\n double v = vals.pop();\n if (op.equals(\"+\")) v = vals.pop() + v;\n else if (op.equals(\"-\")) v = vals.pop() - v;\n else if (op.equals(\"*\")) v = vals.pop() * v;\n else if (op.equals(\"/\")) v = vals.pop() / v;\n else if (op.equals(\"sqrt\")) v = Math.sqrt(v);\n vals.push(v);\n }else {\n vals.push(Double.parseDouble(temp));\n }\n }\n System.out.println(vals.pop());\n }", "private void split () {\n\n if (firstClassList != null && firstClassList.size() > MAX_OBJECTS && depth < MAX_DEPTH) {\n\n // Set new bounds along each axis\n double[] xBounds = new double[] {bounds.getMinX(), bounds.getCenterX(), bounds.getMaxX()};\n double[] yBounds = new double[] {bounds.getMinY(), bounds.getCenterY(), bounds.getMaxY()};\n double[] zBounds = new double[] {bounds.getMinZ(), bounds.getCenterZ(), bounds.getMaxZ()};\n\n // Create each child\n children = new SceneOctTree[8];\n for (int x = 0; x <= 1; x++) {\n for (int y = 0; y <= 1; y++) {\n for (int z = 0; z <= 1; z++) {\n Bounds childBounds = new BoundingBox (\n xBounds[x], yBounds[y], zBounds[z],\n xBounds[x+1] - xBounds[x], yBounds[y+1] - yBounds[y], zBounds[z+1] - zBounds[z]\n );\n int index = x + y*2 + z*4;\n children[index] = new SceneOctTree (childBounds, this.depth+1);\n } // for\n } // for\n } // for\n\n // Insert first class objects into children. Note that we don't know\n // if the object will be first or second class in the child so we have\n // to perform a full insert.\n for (Node object : firstClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insert (object);\n } // for\n } // for\n firstClassList = null;\n\n // Insert second class objects into children (if any exist). We know\n // that the object will be second class in the child, so we just\n // perform a second class insert.\n if (secondClassList != null) {\n for (Node object : secondClassList) {\n Bounds objectBounds = object.getBoundsInLocal();\n for (SceneOctTree child : children) {\n if (objectBounds.intersects (child.bounds))\n child.insertSecondClass (object, objectBounds);\n } // for\n } // for\n } // if\n secondClassList = null;\n\n // Perform a split on the children, just in case all the first class\n // objects that we just inserted all went into one child.\n for (SceneOctTree child : children) child.split();\n\n } // if\n\n }", "public static void buildStage2 ()\r\n {\r\n \r\n lgt.findParent(); //4\r\n lgt.findChild(0); //6\r\n lgt.insert(12);\r\n lgt.findParent();\r\n lgt.insert(13);\r\n lgt.findParent();\r\n lgt.insert(14);\r\n \r\n lgt.findRoot();\r\n lgt.findChild(0);//2\r\n lgt.findChild(0);//5\r\n lgt.insert(8);\r\n lgt.findParent();\r\n lgt.insert(9);\r\n lgt.findParent();\r\n lgt.insert(10);\r\n lgt.findParent();\r\n lgt.insert(11);\r\n \r\n }", "@Test\n public void testNesting() {\n assertThat(regex(\n seq(\n e(\"0\"),\n or(\n e(\"1\"),\n seq(\n e(\"2\"),\n opt(e(\"3\"), e(\"4\")))),\n e(\"5\"), e(\"6\"))))\n .isEqualTo(\"0(?:1|2(?:3|4)?)56\");\n }", "@Ignore\n\t@Test\n\tpublic void test2() {\n\t\tfinal LogicalExpression conj = TestServices\n\t\t\t\t.getCategoryServices()\n\t\t\t\t.readSemantics(\n\t\t\t\t\t\t\"(conj:<<e,t>,<<e,t>,t>> (lambda $0:e (next_to:<e,<e,t>> $0 colorado:e)) (lambda $1:e (next_to:<e,<e,t>> $1 nm:e)))\");\n\t\tfinal LogicalExpression func = TestServices\n\t\t\t\t.getCategoryServices()\n\t\t\t\t.readSemantics(\n\t\t\t\t\t\t\"(lambda $0:<e,t> (lambda $1:e (and:<t*,t> ($0 $1) (named:<e,<e,t>> $1 springfield:e))))\");\n\t\tfinal LogicalExpression expected = TestServices\n\t\t\t\t.getCategoryServices()\n\t\t\t\t.readSemantics(\n\t\t\t\t\t\t\"(lambda $0:e (and:<t*,t> (next_to:<e,<e,t>> $0 colorado:e) (next_to:<e,<e,t>> $0 nm:e) (named:<e,<e,t>> $0 springfield:e)))\");\n\t\tfinal LogicalExpression actual = services.applyCoordination(func, conj);\n\t\tAssert.assertEquals(expected, actual);\n\t}", "private Pair<SemanticType, Code<?>> expand(Code<?> root,\n\t\t\tSemanticType.Set type, int freeVar) {\n\t\tCode.Variable variable = Code.Variable(type.element(), freeVar);\n\t\tPair<SemanticType, Code<?>> p = expand(variable, type.element(),\n\t\t\t\t++freeVar);\n\t\tSemanticType.Set nType = SemanticType.Set(type.flag(),\n\t\t\t\tp.first());\n\t\tCode<?> invariant = p.second();\n\t\tif (invariant != null) {\n\t\t\tCode<?> elemOf = Code.Binary(nType, Code.Binary.Op.IN, variable,\n\t\t\t\t\troot);\n\t\t\tinvariant = implies(elemOf, invariant);\n\t\t\tinvariant = Code.Quantifier(SemanticType.Bool, Code.Op.FORALL,\n\t\t\t\t\tinvariant,\n\t\t\t\t\tnew Pair[] { new Pair<SemanticType, Integer>(p.first(),\n\t\t\t\t\t\t\tvariable.index) });\n\t\t}\n\t\treturn new Pair<SemanticType, Code<?>>(nType, invariant);\n\t}", "public float getX2() {\r\n return (c + 2*b + 3*a)/3;\r\n }", "private static boolean make_type_x(String query, DataDir dir, \n\t\t\t\t int query_type, Z39session zsession, boolean addOID) {\n\t StringTokenizer st = new StringTokenizer(query);\n\t nodes node[] = new nodes[st.countTokens()];\n\t int rc = 0;\n\t DataDir parm = dir;\n\n//System.out.println(\"make type x: num nodes: \" + node.length);\n\n\t if (node.length==0)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\"No query provided!\");\n\t\treturn false;\n\t }\n\n \t String q = query.trim();\n\n \t int i=0, j, o, len, nodecnt=0;\n\n try {\n \t for (o=0, len = q.length(); o < len; o=j+1) {\n \t if (q.charAt(o) == '\"') {\n\t\ti = q.indexOf('\"', o+1);\n\t\tif (i == -1)\n\t\t i = o;\n \t }\n\t else\n\t\ti = o;\n\n \t j = q.indexOf(' ', i);\n \t if (j == -1)\n\t j = q.length();\n\n // If length > 0, add new node \n if ( (j-o) > 0 ) {\n node[nodecnt] = new nodes(q.substring(o,j), query_type, zsession);\n\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t \", .term='\"+node[nodecnt].term+\"'\");\n\n \t //System.out.println(\"node[\"+nodecnt+\"].type=\" + nodes.operators[node[nodecnt].type]+\n\t\t //\", .term='\"+node[nodecnt].term+\"'\");\n\n nodecnt++; \n }\n\t }\n }\n catch (Exception e) {\n System.out.println(\"caught exception from nodemaker\");\n e.printStackTrace();\n }\n\n\n//System.out.println(\"link nodes \" + (nodecnt-1));\n\n\n\t rc=nodes.linkNodes(node, nodecnt-1); //node.length-1);\n\t if (rc != -1)\n\t {\n if (zsession != null && zsession.logger != null && \n\t\t zsession.logger.getLevel() != Z39logging.OFF)\n\t\t zsession.logger.println(\n\t\t \"Ill formed query, linkNodes returned \" + rc);\n\t\treturn false;\n\t }\n\n if (zsession != null && zsession.logger != null && \n\t\tzsession.logger.getLevel() != Z39logging.OFF)\n\t\tzsession.logger.println(\"building type-\"+query_type+\" query\");\n\n if (addOID) {\n \t parm = dir.add(query_type, ASN1.CONTEXT);\n\t parm.addOID(ASN1.OBJECTIDENTIFIER, ASN1.UNIVERSAL, \n\t\t\"1.2.840.10003.3.1\");\n }\n\t node[nodecnt-1].buildQuery(parm);\n\n\t return true;\n\t}", "@Override\n public String toString(){\n return x+\"\\n\"+y+\"\\n\"+z;\n }", "double getZ() { return pos[2]; }", "private void jetBinopExprStr(){\n\t\tBinopExpr binopExpr = (BinopExpr) rExpr;\n\t\tValue op1 = binopExpr.getOp1();\n\t\tValue op2 = binopExpr.getOp2();\n\t\tZ3Type op1Z3Type = Z3MiscFunctions.v().z3Type(op1.getType());\n\t\tZ3Type op2Z3Type = Z3MiscFunctions.v().z3Type(op2.getType());\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tBinopExprType binopType = Z3MiscFunctions.v().getBinopExprType(binopExpr);\n\t\tswitch(binopType){\n\t\t//[start]ADD\n\t\tcase ADD:\n\t\t\t//add_expr = immediate \"+\" immediate;\n\t\t\t//immediate = constant | local;\n\t\t\t//only Int, Real, String can ADD\n\t\t\t//Exceptional Cases: \"084\" + 42; we exclude them\n\t\t\tassert((op1Z3Type == Z3Type.Z3String && op2Z3Type == Z3Type.Z3String) ||\n\t\t\t\t\t(op1Z3Type != Z3Type.Z3String && op2Z3Type != Z3Type.Z3String));\n\t\t\tif(op1Z3Type == Z3Type.Z3String ){\n\t\t\t\t//( Concat \"te\" y1 )\n\t\t\t\tsb.append(\"( Concat \");\n\t\t\t}else{\n\t\t\t\t//(+ 2 i2)\n\t\t\t\tsb.append(\"(+ \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\" )\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end]ADD\n\t\tcase AND:\n\t\t\t//and_expr = immediate \"&\" immediate;\n\t\t\t//TODO\n\t\t\t//assert(false) : \"AND Expr\";\n\t\t\tbreak;\n\t\t//[start] DIV\n\t\tcase DIV:\n\t\t\t//div_expr = immediate \"/\" immediate;\n\t\t\t//(div a b) integer division\n\t\t\t//(/ a b) float division\n\t\t\tif(op1Z3Type == Z3Type.Z3Real || op2Z3Type == Z3Type.Z3Real){\n\t\t\t\tsb.append(\"(/ \");\n\t\t\t}else{\n\t\t\t\tsb.append(\"(div \");\n\t\t\t}\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] DIV\n\t\t//[start] EQ\n\t\tcase EQ:\n\t\t\t//eq_expr = immediate \"==\" immediate;\n\t\t\t//b = r1 == r2\n\t\t\t//(assert (= b (= r1 r2)))\n\t\t\tsb.append(\"(= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] EQ\n\t\t//[start] GE\n\t\tcase GE:\n\t\t\t//ge_expr = immediate \">=\" immediate;\n\t\t\t//b = r1 >= r2\n\t\t\t//(assert (= b (>= r1 r2)))\n\t\t\tsb.append(\"(>= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GE\n\t\t//[start] GT\n\t\tcase GT:\n\t\t\t//gt_expr = immediate \">\" immediate;\n\t\t\t//b = r1 > r2\n\t\t\t//(assert (= b (> r1 r2)))\n\t\t\tsb.append(\"(> \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] GT\n\t\t//[start] LE\n\t\tcase LE:\n\t\t\t//le_expr = immediate \"<=\" immediate;\n\t\t\t//b = r1 <= r2\n\t\t\t//(assert (= b (<= r1 r2)))\n\t\t\tsb.append(\"(<= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LE\n\t\t//[start] LT\n\t\tcase LT:\n\t\t\t//lt_expr = immediate \"<\" immediate;\n\t\t\t//b = r1 < r2\n\t\t\t//(assert (= b (< r1 r2)))\n\t\t\tsb.append(\"(< \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] LT\n\t\t//[start] MUL\n\t\tcase MUL:\n\t\t\t//mul_expr = immediate \"*\" immediate;\n\t\t\t//(* op1 op2)\n\t\t\tsb.append(\"(* \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] MUL\n\t\t//[start] NE\n\t\tcase NE:\n\t\t\t//ne_expr = immediate \"!=\" immediate;\n\t\t\t//(not (= op1 op2))\n\t\t\tsb.append(\"(not (= \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\"))\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] NE\n\t\tcase OR:\n\t\t\t//or_expr = immediate \"|\" immediate;\n\t\t\t//TODO\n\t\t\tassert(false) : \"OR Expr\";\n\t\t\tbreak;\n\t\t//[start] REM\n\t\tcase REM:\n\t\t\t//rem_expr = immediate \"%\" immediate;\n\t\t\t//(rem op1 op2)\n\t\t\tsb.append(\"(rem \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] REM\n\t\t//[start] SUB\n\t\tcase SUB:\n\t\t\t//sub_expr = immediate \"-\" immediate;\n\t\t\t//(- op1 op2)\n\t\t\tsb.append(\"(- \");\n\t\t\tif(op1 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op1, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op1.toString());\n\t\t\t}\n\t\t\tsb.append(\" \");\n\t\t\tif(op2 instanceof Local){\n\t\t\t\tsb.append(fileGenerator.getRenameOf(op2, false, this.stmtIdx));\n\t\t\t}else{\n\t\t\t\tsb.append(op2.toString());\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t\tbreak;\n\t\t//[end] SUB\n\t\t}\n\t}", "@Test\n void testExample1() {\n List<Token> input = Arrays.asList(\n new Token(Token.Type.IDENTIFIER, \"LET\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \":\", -1),\n new Token(Token.Type.IDENTIFIER, \"INTEGER\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"WHILE\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"!=\", -1),\n new Token(Token.Type.INTEGER, \"10\", -1),\n new Token(Token.Type.IDENTIFIER, \"DO\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"PRINT\", -1),\n new Token(Token.Type.OPERATOR, \"(\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \")\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"=\", -1),\n new Token(Token.Type.IDENTIFIER, \"first\", -1),\n new Token(Token.Type.OPERATOR, \"+\", -1),\n new Token(Token.Type.INTEGER, \"1\", -1),\n new Token(Token.Type.OPERATOR, \";\", -1),\n\n new Token(Token.Type.IDENTIFIER, \"END\", -1)\n );\n Ast.Source expected = new Ast.Source(Arrays.asList(\n new Ast.Statement.Declaration(\"first\", \"INTEGER\",\n Optional.of(new Ast.Expression.Literal(BigInteger.valueOf(1)))),\n new Ast.Statement.While(\n new Ast.Expression.Binary(\"!=\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(10))\n ),\n Arrays.asList(\n new Ast.Statement.Expression(\n new Ast.Expression.Function(\"PRINT\", Arrays.asList(\n new Ast.Expression.Variable(\"first\"))\n )\n ),\n new Ast.Statement.Assignment(\"first\",\n new Ast.Expression.Binary(\"+\",\n new Ast.Expression.Variable(\"first\"),\n new Ast.Expression.Literal(BigInteger.valueOf(1))\n )\n )\n )\n )\n ));\n test(input, expected, Parser::parseSource);\n }", "godot.wire.Wire.Vector3 getZ();", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n SimpleNode simpleNode0 = new SimpleNode(2836);\n JavaParser javaParser0 = new JavaParser(\"ConditionalAndExpression\");\n SimpleNode simpleNode1 = new SimpleNode(javaParser0, 2836);\n simpleNode0.jjtSetParent(simpleNode1);\n Node node0 = simpleNode0.jjtGetParent();\n simpleNode1.jjtSetParent(node0);\n assertSame(node0, simpleNode1);\n }", "public void testConjunctionResolvesWhenFirstPathRevisitsSecond() throws Exception\n {\n resolveAndAssertSolutions(\"[[g, (h :- g), (f :- h, g)], (?- f), [[]]]\");\n }", "private void ruleR1(Node a, Node b, Node c, Graph graph) {\n if (graph.isAdjacentTo(a, c)) {\n return;\n }\n\n if (graph.getEndpoint(a, b) == Endpoint.ARROW && graph.getEndpoint(c, b) == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, b, c)) {\n return;\n }\n\n graph.setEndpoint(c, b, Endpoint.TAIL);\n graph.setEndpoint(b, c, Endpoint.ARROW);\n }\n }", "IntermediateTuple(Tuple t1, Tuple t2) {\n\n if(t1 instanceof BaseTuple) {\n baseTuples.add((BaseTuple) t1);\n } else {\n for(BaseTuple bt : ((IntermediateTuple) t1).baseTuples) {\n baseTuples.add(bt);\n }\n }\n\n if(t2 instanceof BaseTuple) {\n baseTuples.add((BaseTuple) t2);\n } else {\n for(BaseTuple bt : ((IntermediateTuple) t2).baseTuples) {\n baseTuples.add(bt);\n }\n }\n }", "@Test\n public void testNestedAlternatives() {\n assertMetrics(\"segmentStarts:6,19,32 proximity:1\",\n \"a b c d e f\",\n \"a x b x x x a b x x x x x x x x x x x c d x x x x x x x x x x x e f\");\n assertMetrics(\"segmentStarts:6,19,47 proximity:1\",\n \"a b c d e f\",\n \"a x b x x x a b x x x x x x x x x x x c d x x x x x x x x x x x e x f x x x x x x x x x x x x e f\");\n }", "public BranchGroup cubo1(){\n\t\t\tBranchGroup objRoot = new BranchGroup();\n\n\t TransformGroup objScale = new TransformGroup();\n\t Transform3D t3d = new Transform3D();\n\t Transform3D rotate = new Transform3D();\n Transform3D tempRotate = new Transform3D();\n\t \t rotate.rotX(Math.PI/1.0d);\n tempRotate.rotY(Math.PI/1.80d);\n Matrix3d n = new Matrix3d();\n Vector3d op = new Vector3d(.5,.05,.5);\n tempRotate.setScale(op);\n Vector3d op2 = new Vector3d(-.5,.6,1);\n tempRotate.setTranslation(op2);\n rotate.mul(tempRotate);\n TransformGroup objRotate = new TransformGroup(rotate);\n\n objRoot.addChild(objRotate);\n\t \n t3d.mul(rotate);\n\t objScale.setTransform(t3d);\n\t \n\t objRoot.addChild(objScale);\n\n\tTransformGroup objTrans = new TransformGroup();\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);\n\t\tobjTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);\n\t\t\t\t\t\n\t\t\n\t\tobjScale.addChild(objTrans);\n\n\t\tint flags = ObjectFile.RESIZE;\n\t\tif (!noTriangulate) flags |= ObjectFile.TRIANGULATE;\n\t\tif (!noStripify) flags |= ObjectFile.STRIPIFY;\n\t\tObjectFile f = new ObjectFile(flags, \n\t\t (float)(creaseAngle * Math.PI / 180.0));\n\t\tScene s = null;\n\t\ttry {\n\t\t s = f.load(filename);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (ParsingErrorException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\tcatch (IncorrectFormatException e) {\n\t\t System.err.println(e);\n\t\t System.exit(1);\n\t\t}\n\t\t \n\t\tobjTrans.addChild(s.getSceneGroup());\n\t\t\n \n \n\t\tBoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);\n\n\t Color3f bgColor = new Color3f(0.05f, 0.05f, 0.5f);\n\t Background bgNode = new Background(bgColor);\n\t bgNode.setApplicationBounds(bounds);\n\t objRoot.addChild(bgNode);\n\n\t\treturn objRoot;\n\t\t \n\t }", "@Override\n public lj<ow> a(lj<ow> ox2, int n2, int n3) {\n lj<Bitmap> lj2 = ((ow)ox2.b()).b();\n lj<on> lj3 = ((ow)ox2.b()).c();\n if (lj2 != null && this.a != null) {\n lj<Bitmap> lj4 = this.a.a(lj2, n2, n3);\n if (lj2.equals(lj4)) return ox2;\n return new ox(new ow(lj4, ((ow)ox2.b()).c()));\n }\n if (lj3 == null) return ox2;\n if (this.b == null) return ox2;\n lj<on> lj5 = this.b.a(lj3, n2, n3);\n if (lj3.equals(lj5)) return ox2;\n return new ox(new ow(((ow)ox2.b()).b(), lj5));\n }", "<C> Cocartesian<Choice2<C, A>, Choice2<C, B>, P> cocartesian();", "public String toString() {\n return (\"x = \" + (p1.getX() - p2.getX()) + \" + \" + p1.getX() + \n \", y = \" + (p1.getY() - p2.getY()) + \" + \" + p1.getY() + \n \", z = \" + (p1.getZ() - p2.getZ()) + \" + \" + p1.getZ());\n }", "private static void zza(com.google.android.gms.internal.gtm.zzug r2, java.lang.Object r3) {\n /*\n com.google.android.gms.internal.gtm.zzre.checkNotNull(r3)\n int[] r0 = com.google.android.gms.internal.gtm.zzqu.zzaxr\n com.google.android.gms.internal.gtm.zzul r2 = r2.zzrs()\n int r2 = r2.ordinal()\n r2 = r0[r2]\n r0 = 1\n r1 = 0\n switch(r2) {\n case 1: goto L_0x0040;\n case 2: goto L_0x003d;\n case 3: goto L_0x003a;\n case 4: goto L_0x0037;\n case 5: goto L_0x0034;\n case 6: goto L_0x0031;\n case 7: goto L_0x0028;\n case 8: goto L_0x001e;\n case 9: goto L_0x0015;\n default: goto L_0x0014;\n }\n L_0x0014:\n goto L_0x0043\n L_0x0015:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzsk\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrn\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x001e:\n boolean r2 = r3 instanceof java.lang.Integer\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzrf\n if (r2 == 0) goto L_0x0043\n L_0x0026:\n r1 = 1\n goto L_0x0043\n L_0x0028:\n boolean r2 = r3 instanceof com.google.android.gms.internal.gtm.zzps\n if (r2 != 0) goto L_0x0026\n boolean r2 = r3 instanceof byte[]\n if (r2 == 0) goto L_0x0043\n goto L_0x0026\n L_0x0031:\n boolean r0 = r3 instanceof java.lang.String\n goto L_0x0042\n L_0x0034:\n boolean r0 = r3 instanceof java.lang.Boolean\n goto L_0x0042\n L_0x0037:\n boolean r0 = r3 instanceof java.lang.Double\n goto L_0x0042\n L_0x003a:\n boolean r0 = r3 instanceof java.lang.Float\n goto L_0x0042\n L_0x003d:\n boolean r0 = r3 instanceof java.lang.Long\n goto L_0x0042\n L_0x0040:\n boolean r0 = r3 instanceof java.lang.Integer\n L_0x0042:\n r1 = r0\n L_0x0043:\n if (r1 == 0) goto L_0x0046\n return\n L_0x0046:\n java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException\n java.lang.String r3 = \"Wrong object type used with protocol message reflection.\"\n r2.<init>(r3)\n goto L_0x004f\n L_0x004e:\n throw r2\n L_0x004f:\n goto L_0x004e\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.gtm.zzqt.zza(com.google.android.gms.internal.gtm.zzug, java.lang.Object):void\");\n }", "public Object visitRelationalExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n Long x = (Long) a;\n Long y = (Long) b;\n long zero = 0;\n long one = 1;\n \n if (op.equals(\"<\")) {\n result = x < y ? one : zero;\n }\n else if (op.equals(\"<=\")) {\n result = x <= y ? one : zero;\n }\n else if (op.equals(\">\")) {\n result = x > y ? one : zero;\n }\n else if (op.equals(\">=\")) {\n result = x >= y ? one : zero;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "public interface CommonExpression<T> extends TripleExpression<T> {\n}", "public abstract boolean zza(zzdxo<?> zzdxo, zzk zzk, zzk zzk2);", "public interface Star extends Element {\n\n /**\n * The arity of this span, i.e. the number of components.\n */\n int size();\n\n /**\n * The apex of the span, which contains relation witnesses.\n */\n Sketch apex();\n\n /**\n * Returns the i'th component of this relation.\n */\n Optional<Sketch> component(int i);\n\n /**\n * Returns the i'th projection in this span.\n */\n Optional<GraphMorphism> projection(int i);\n\n\n /**\n * Returns all components of this relation in form of a stream.\n */\n default Stream<Sketch> components() {\n return StreamExt.iterate(1, size(), 1).mapToObj(this::component).map(Optional::get);\n }\n\n /**\n * Returns all projections in this span in form of a stream.\n */\n default Stream<GraphMorphism> projections() {\n return StreamExt.iterate(1, size(), 1).mapToObj(this::projection).map(Optional::get);\n }\n\n /**\n * Given a tuple of elements from different graphs, this method\n * returns all elements in the apex graph that witness a relation between\n * the elements in the given tuple.\n */\n default Stream<Triple> witnesses(Triple... elements) {\n Set<Triple> toBeMatched = new HashSet<>(Arrays.asList(elements));\n return apex().carrier().elements().filter(witnes -> {\n return toBeMatched.stream().allMatch(target -> {\n return projections().anyMatch(morphism -> morphism.apply(witnes).map(target::equals).orElse(false));\n });\n });\n }\n\n default Stream<Triple> imagesIn(int component, Triple of) {\n OptionalInt source = StreamExt.iterate(1, size(), 1)\n .filter(i -> component(i).map(sketch -> sketch.carrier().contains(of)).orElse(false))\n .findFirst();\n if (source.isPresent()) {\n GraphMorphism m = projection(source.getAsInt()).get();\n return m.allInstances(of).flatMap(edge -> {\n if (projection(component).map(m2 -> m2.definedAt(edge)).orElse(false)) {\n return Stream.of(projection(component).get().apply(edge).get());\n } else {\n return Stream.empty();\n }\n });\n }\n return Stream.empty();\n }\n\n\n @Override\n default boolean verify() {\n return projections().allMatch(GraphMorphism::verify);\n }\n\n /**\n * Returns true if the elements in the given tuple are related somehow.\n */\n default boolean areRelated(Triple... elements) {\n return witnesses(elements).anyMatch(x -> true);\n }\n\n @Override\n default void accept(Visitor visitor) {\n visitor.beginSpan();\n visitor.handleElementName(getName());\n this.apex().accept(visitor);\n this.projections().forEach(m -> m.accept(visitor));\n visitor.endSpan();\n }\n}", "@Override\n public String toString() {\n Helpers f = new Helpers();\n Expression left = super.getLeft();\n Expression right = super.getRight();\n\n if (super.isBonus()) {\n // x * y -> xy\n if (left instanceof Var && right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * x -> 4x\n if (right instanceof Var) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // x * 4 -> 4x\n if (left instanceof Var) {\n return \"(\" + right.toString() + \"\" + left.toString() + \")\";\n }\n // 4 * (x^2) -> 4(x^2)\n if (right instanceof Pow) {\n return \"(\" + left.toString() + \"\" + right.toString() + \")\";\n }\n // 4 * (xy) -> 4xy\n if (right instanceof Mult) {\n if (((Mult) right).getLeft() instanceof Var && ((Mult) right).getRight() instanceof Var) {\n return \"(\" + left.toString() + \"\" + f.removeOuterParentheses(right.toString()) + \")\";\n }\n }\n }\n return \"(\" + left.toString() + \" * \" + right.toString() + \")\";\n }", "private static TaggedFormation _xofy(Formation x, TaggedFormation y) {\n /* create an instance of 'y' for each dancer in 'x'. */\n Map<Dancer,Formation> sub = new LinkedHashMap<Dancer,Formation>();\n MultiMap<Dancer,Tag> tags = new GenericMultiMap<Dancer,Tag>\n (Factories.enumSetFactory(Tag.class));\n for (Dancer d: x.dancers()) {\n Map<Dancer,Position> m = new LinkedHashMap<Dancer,Position>();\n for (Dancer dd : y.dancers()) {\n Dancer phantom = new PhantomDancer();\n m.put(phantom, y.location(dd));\n tags.addAll(phantom, y.tags(dd));\n }\n sub.put(d, new Formation(m));\n }\n Formation result = Breather.insert(x,sub);\n // Transfer tags from formation y.\n return new TaggedFormation(result, tags);\n }", "public static void main(String[] args) {\n\r\n\t\tboolean a = (y > 1) && (5 != 4) || (x > -4);\r\n\t\tint b = +x++ + ++x - -x-- - --x;\r\n\t\tdouble c = -2;\r\n\t\tc = c * z;\r\n\t\tint d = x | 5;\r\n\t\tboolean e = ((x == y) || (x < z * y));\r\n\t\tint f = y << y;\r\n\t\tboolean g = !((x >> 666 < y) & (z++ == x));\r\n\r\n\t\tSystem.out.println(a);\r\n\t\tSystem.out.println(b);\r\n\t\tSystem.out.println(c);\r\n\t\tSystem.out.println(d);\r\n\t\tSystem.out.println(e);\r\n\t\tSystem.out.println(f);\r\n\t\tSystem.out.println(g);\r\n\t}", "private boolean getLeftOuter() throws IOException {\n while(true) {\n if(rightTuple == nullPad) {\n found = false;\n leftTuple = leftChild.getNextTuple();\n if (leftTuple == null) {\n done = true;\n return false;\n }\n }\n rightTuple = rightChild.getNextTuple();\n if (rightTuple == null) {\n if (!found) {\n rightTuple = nullPad;\n rightChild.initialize();\n return true;\n }\n leftTuple = leftChild.getNextTuple();\n if (leftTuple == null) {\n done = true;\n return false;\n }\n found = false;\n rightChild.initialize();\n }\n else\n return true;\n }\n }", "@Override\n\t\tpublic Tuple exec(Tuple input) throws IOException {\n\t\t\tfor (Tuple t : (DataBag) input.get(0)) {\n\t\t\t\treturn wrap(t, getSign());\t\n\t\t\t}\n\t\t\t// Odd.\n\t\t\treturn tf.newTuple(bf.newDefaultBag());\n\t\t}" ]
[ "0.49801034", "0.49729592", "0.49478114", "0.4946458", "0.4834569", "0.4814623", "0.4744922", "0.47361174", "0.4707162", "0.46869227", "0.46652538", "0.4657258", "0.46471897", "0.46446776", "0.46008405", "0.45806503", "0.45518798", "0.45272753", "0.45211148", "0.45182517", "0.45161283", "0.44996148", "0.44972283", "0.44892657", "0.44823968", "0.44521818", "0.44456267", "0.44410944", "0.44392782", "0.44376042", "0.443621", "0.44228685", "0.44212386", "0.44176528", "0.44171333", "0.4414696", "0.4403316", "0.44009587", "0.43978435", "0.4386686", "0.43798056", "0.43770704", "0.4374226", "0.43730494", "0.43690234", "0.43663082", "0.43564892", "0.43508458", "0.43503836", "0.43443626", "0.4331128", "0.43303117", "0.4322831", "0.43220663", "0.43214944", "0.43211827", "0.43178523", "0.43167147", "0.4314123", "0.43095118", "0.4308205", "0.43037552", "0.4301366", "0.42969248", "0.4294952", "0.42852372", "0.42823172", "0.42785358", "0.42769837", "0.42761126", "0.42749763", "0.42743573", "0.42736754", "0.42709798", "0.42706263", "0.42696247", "0.42634347", "0.42590672", "0.42565814", "0.42545786", "0.42525685", "0.42525423", "0.42475858", "0.42462045", "0.42379543", "0.42341152", "0.423175", "0.42265934", "0.42258835", "0.42180878", "0.4216859", "0.42168048", "0.42165092", "0.4215562", "0.42136914", "0.42134717", "0.42050576", "0.42018774", "0.42001617", "0.41982847", "0.41978914" ]
0.0
-1
A : \Type a : A D : (A > A) > A > A \Pi (x : \Pi (y : A) > A) > D x (\lam y => a)
@Test public void prettyPrintPiLam() throws UnsupportedEncodingException { SingleDependentLink A = singleParam("A", Universe(0)); SingleDependentLink D = singleParam("D", Pi(Pi(Ref(A), Ref(A)), Pi(Ref(A), Ref(A)))); SingleDependentLink x = singleParam("x", Pi(singleParam("y", Ref(A)), Ref(A))); SingleDependentLink a = singleParam("a", Ref(A)); Expression actual = Pi(A, Pi(a, Pi(D, Pi(x, Apps(Ref(D), Ref(x), Lam(singleParam("y", Ref(A)), Ref(a))))))); Concrete.LocalVariable cx = ref("x"); Concrete.LocalVariable cy = ref("y"); Concrete.LocalVariable ca = ref("a"); Concrete.LocalVariable cA = ref("A"); Concrete.LocalVariable cD = ref("D"); Concrete.Expression expected = cPi(cA, cUniverseInf(0), cPi(ca, cVar(cA), cPi(cD, cPi(cPi(cVar(cA), cVar(cA)), cPi(cVar(cA), cVar(cA))), cPi(cx, cPi(cy, cVar(cA), cVar(cA)), cApps(cVar(cD), cVar(cx), cLam(cName("y"), cVar(ca))))))); testExpr(expected, actual, EnumSet.of(ToAbstractVisitor.Flag.SHOW_IMPLICIT_ARGS)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "@Ignore\n @Test\n public void untypedLambda2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n CheckTypeVisitor.Result result = typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x1 x2 x3\", null);\n assertEquals(type, result.type);\n }", "@Test\n public void untypedLambdaError2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x2 x1 x3\", null, 1);\n }", "@Test\n public void untypedLambda1() {\n DependentLink A = param(\"A\", Universe(0));\n Expression type = Pi(params(A, param(\"a\", Reference(A))), Nat());\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n typeCheckExpr(context, \"\\\\lam x1 x2 => f x1 x2\", null);\n }", "public abstract A a(com.airbnb.lottie.g.a<K> aVar, float f2);", "public interface C0028a<D> {\n }", "public abstract BoundType a();", "@Test\n public void untypedLambdaError1() {\n DependentLink A = param(\"A\", Universe(0));\n Expression type = Pi(params(A, param(\"a\", Reference(A))), Nat());\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n typeCheckExpr(context, \"\\\\lam x1 x2 => f x2 x1\", null, 1);\n }", "public interface Visitor extends DLABoxAxiom.Visitor, DLTBoxAxiom.Visitor {\n\n\t}", "public interface o<Downstream, Upstream> {\n r<? super Upstream> a(r<? super Downstream> rVar) throws Exception;\n}", "public interface ARightHandSide extends AAstNode {\n\n\n /**\n * This method returns the type of the expression.\n * If the expression is evaluated, the result of the evaluation has this type.\n * <p>\n * In some cases the parser can not determine the correct type\n * (because of missing information),\n * then this method can return a ProblemType.\n */\n public Type getExpressionType();\n\n\n}", "public void typeInference() {\n\t\tMathOperation addition = (a, b) -> a + b;\n\t\t// Data Type of a, b can be referred from MathOperation functional interface\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t}", "public a(TypeToken typeToken) {\n super(1);\n this.a = typeToken;\n }", "public abstract LambdaTerm containedLambdaTerm(LambdaTerm P);", "public interface y extends d {\n f bsZ();\n\n v bxA();\n\n boolean bxL();\n}", "public interface Lower extends BinaryExpression {\r\n}", "interface MyNumberType {\n Integer transform(Integer n1);\n\n default MyNumberType andThen(MyNumberType after) {\n Objects.requireNonNull(after);\n return (nt) -> after.transform(transform(nt));\n }\n}", "public void a(a<e> parama) {\n }", "public tree apply(A p1 ) {\n\t}", "public boolean a(double paramDouble)\r\n/* 28: */ {\r\n/* 29: 44 */ double d1 = aQ().a() * 4.0D;\r\n/* 30: 45 */ d1 *= 64.0D;\r\n/* 31: 46 */ return paramDouble < d1 * d1;\r\n/* 32: */ }", "@FunctionalInterface\npublic interface StepExpr extends Expr {\n\n /**\n * {@inheritDoc}\n *\n * @return evaluated XML node views\n */\n @Override\n <N extends Node> IterableNodeView<N> resolve(Navigator<N> navigator, NodeView<N> view, boolean greedy)\n throws XmlBuilderException;\n\n}", "public b(TypeToken typeToken) {\n super(1);\n this.a = typeToken;\n }", "@FunctionalInterface\r\npublic interface Semigroup<A> {\r\n\r\n public A dot(A x, A y);\r\n\r\n\r\n public default A fold(A a, List<A> as) {\r\n return as.isEmpty() ? a : fold(dot(a, as.head()), as.tail());\r\n }\r\n\r\n public default A fold(A a, A... as) {\r\n return fold(a, List.of(as));\r\n }\r\n\r\n}", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public void a() {\n ((a) this.a).a();\n }", "void mo1639a(ayl ayl);", "public interface IDriedAquatic {\n}", "public interface aml {\n long a(int i);\n}", "public interface Category<Element, Arrow> {\t\n\tArrow identity(Element elem);\n\tArrow compose(Arrow left, Arrow right);\n}", "public abstract C a(DiscreteDomain<C> discreteDomain);", "public interface C1493a<D> {\n @C0193h0\n @C0187e0\n /* renamed from: a */\n C1502c<D> mo6550a(int i, @C0195i0 Bundle bundle);\n\n @C0187e0\n /* renamed from: a */\n void mo6551a(@C0193h0 C1502c<D> cVar);\n\n @C0187e0\n /* renamed from: a */\n void mo6552a(@C0193h0 C1502c<D> cVar, D d);\n }", "@FunctionalInterface\npublic interface Subtrac {\n\n Double substrac (Double a, Double b);\n}", "public interface Value extends Formula {\n\n /**\n * Accepts a value visitor and gets the corresponding value/output to be used.\n *\n * @param visitor type of ValueVisitor (SumVisitor/ProductVisitor/etc)\n * @return evaluated output that will be used in other objects (namely in Product/Sum/etc.)\n */\n <R> R accept(ValueVisitor<R> visitor);\n\n}", "public interface LambdaVisitor<T> {\n T visit(ASTAbstraction node);\n T visit(ASTApplication node);\n T visit(ASTConstant node);\n T visit(ASTVariable node);\n}", "public boolean a(aog ☃) {\r\n/* 179 */ if (!☃.dK()) {\r\n/* 180 */ return false;\r\n/* */ }\r\n/* 182 */ if ((☃.bJ()).B) {\r\n/* 183 */ ☃.a(this);\r\n/* */ }", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Function p, A arg)\n {\n\n p.lambdaexpr_.accept(new LambdaExprVisitor<R,A>(), arg);\n\n return null;\n }", "public interface ATypeCheckNode {}", "static interface kk$a\n{\n\n\tpublic abstract void a(kk kk1);\n\n\tpublic abstract void b(kk kk1);\n\n\tpublic abstract void c(kk kk1);\n}", "@FunctionalInterface\npublic interface QuadFunction<P1, P2, P3, P4, R> extends MethodFinder {\n\n R apply(P1 p1, P2 p2, P3 p3, P4 p4);\n\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface PoolingLayer<A extends PoolingAxons<?>, L extends PoolingLayer<A, L>> \n extends DirectedLayer<A, L> {\n}", "public double getA();", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface a {\n void a();\n\n void a(al alVar);\n\n void b(al alVar);\n\n void c(al alVar);\n }", "public interface Pie {\n Pie accept(PieVisitor visitor);\n\n public static void main(String[] args) {\n Pie p = new Top(new Integer(3), new Top(new Integer(2), new Top(new Integer(3), new Bot())));\n System.out.println(p);//Top{t=3, p=Top{t=2, p=Top{t=3, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Integer(2))));//Top{t=3, p=Top{t=3, p=Bot{}}}\n System.out.println(p.accept(new Subst(new Integer(5), new Integer(3))));//Top{t=5, p=Top{t=2, p=Top{t=5, p=Bot{}}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Integer(3), new Top(new Zero(), new Bot())));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=3, p=Top{t=Zero{}, p=Bot{}}}}\n System.out.println(p.accept(new Rem(new Zero())));//Top{t=Anchovy{}, p=Top{t=3, p=Bot{}}}\n System.out.println(\"--------------\");\n p = new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Top(new Tuna(), new Top(new Anchovy(), new Bot())))));\n System.out.println(p);//Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(p.accept(new LtdSubst(new Integer(2), new Salmon(), new Anchovy())));//Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Salmon{}, p=Top{t=Tuna{}, p=Top{t=Anchovy{}, p=Bot{}}}}}}\n System.out.println(\"--------------\");\n }\n}", "public interface m {\n\n /* compiled from: resolvers.kt */\n public static final class a implements m {\n public static final a fjj = new a();\n\n public ao a(w wVar) {\n i.f(wVar, \"javaTypeParameter\");\n return null;\n }\n\n private a() {\n }\n }\n\n ao a(w wVar);\n}", "public interface ExpressionVisitor{\n\n void handel(BracketExpression bracketExpression);\n\n void handel(NaturalNumber naturalNumber);\n\n\n void handel(Sum sum);\n void handel(Difference difference);\n void handel(Product product);\n void handel(Quotient quotient);\n\n void handel(VariableExpression variableExpression);\n}", "@Override\n public Comparator<Object> thenComparingDouble(final ToDoubleFunction<?> p0) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // java.lang.NullPointerException\n // at com.strobel.assembler.metadata.WildcardType.containsGenericParameters(WildcardType.java:55)\n // at com.strobel.assembler.metadata.TypeReference.containsGenericParameters(TypeReference.java:48)\n // at com.strobel.assembler.metadata.MethodReference.containsGenericParameters(MethodReference.java:79)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2497)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1029)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)\n // at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1656)\n // at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:803)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:672)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:655)\n // at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:365)\n // at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:96)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:109)\n // at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:214)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformCall(AstMethodBodyBuilder.java:1162)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:1009)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformByteCode(AstMethodBodyBuilder.java:554)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformExpression(AstMethodBodyBuilder.java:540)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformNode(AstMethodBodyBuilder.java:392)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.transformBlock(AstMethodBodyBuilder.java:333)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:294)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:782)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:675)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:552)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:519)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:161)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:150)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:125)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at us.deathmarine.luyten.FileSaver.doSaveJarDecompiled(FileSaver.java:192)\n // at us.deathmarine.luyten.FileSaver.access$300(FileSaver.java:45)\n // at us.deathmarine.luyten.FileSaver$4.run(FileSaver.java:112)\n // at java.lang.Thread.run(Unknown Source)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public abstract BoundType b();", "public interface AlgorithmeAbstrait <E, A>\n{\n /**\n * Methode permettant de resoudre un probleme\n * a l'aide d'un algorithme de resolution \n * et une heuristique correspondante.\n * @param probleme celui sur lequel il faut executer l'algorithme\n * @param heuristique celle qu'il faut appliquer a l'algorithme, a condition qu'elle soit admissible\n * @return Une arraylist contenant la resolution du probleme\n */\n List<E> resoudre (\n ProblemeAbstrait <E, A> probleme, \n HeuristiqueAbstrait<E> heuristique\n );\n}", "arrowType(String a, int b)\n {\n }", "public interface UniMathOp {\n public double run(double a);\n}", "public interface e<Z, R> {\n v<R> a(v<Z> vVar, g gVar);\n}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "private Node<T> doubleWithRight(Node<T> a) {\n a.setRight(rotateWithLeft(a.getRight()));\n hAndBF(a.getRight());\n return rotateWithRight(a);\n }", "public interface AstIncreUnaryExpression extends AstUnaryExpression {\r\n}", "public interface IntegerCalculationExpression_Aspect extends IntegerCalculationExpression, IntegerExpression_Aspect {\n}", "public an b() {\n return a(this.a);\n }", "public final void a() {\n /*\n r25 = this;\n r1 = r25\n int r0 = r25.getAndIncrement()\n if (r0 == 0) goto L_0x0009\n return\n L_0x0009:\n java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.flowable.cq$b<T>[]> r2 = r1.e\n java.lang.Object r0 = r2.get()\n io.reactivex.internal.operators.flowable.cq$b[] r0 = (io.reactivex.internal.operators.flowable.cq.b[]) r0\n r3 = 1\n r4 = r0\n r5 = 1\n L_0x0014:\n java.lang.Object r0 = r1.h\n io.reactivex.internal.b.j<T> r6 = r1.j\n if (r6 == 0) goto L_0x0023\n boolean r8 = r6.isEmpty()\n if (r8 == 0) goto L_0x0021\n goto L_0x0023\n L_0x0021:\n r8 = 0\n goto L_0x0024\n L_0x0023:\n r8 = 1\n L_0x0024:\n boolean r0 = r1.a(r0, r8)\n if (r0 == 0) goto L_0x002b\n return\n L_0x002b:\n if (r8 != 0) goto L_0x0156\n int r0 = r4.length\n int r9 = r4.length\n r12 = 0\n r13 = 0\n r14 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n L_0x0036:\n r16 = -9223372036854775808\n if (r12 >= r9) goto L_0x0053\n r7 = r4[r12]\n long r18 = r7.get()\n int r20 = (r18 > r16 ? 1 : (r18 == r16 ? 0 : -1))\n if (r20 == 0) goto L_0x004e\n long r10 = r7.c\n long r10 = r18 - r10\n long r10 = java.lang.Math.min(r14, r10)\n r14 = r10\n goto L_0x0050\n L_0x004e:\n int r13 = r13 + 1\n L_0x0050:\n int r12 = r12 + 1\n goto L_0x0036\n L_0x0053:\n r9 = 1\n if (r0 != r13) goto L_0x0093\n java.lang.Object r0 = r1.h\n java.lang.Object r7 = r6.poll() // Catch:{ all -> 0x005e }\n goto L_0x0075\n L_0x005e:\n r0 = move-exception\n r6 = r0\n io.reactivex.c.b.throwIfFatal(r6)\n java.util.concurrent.atomic.AtomicReference<org.b.d> r0 = r1.g\n java.lang.Object r0 = r0.get()\n org.b.d r0 = (org.b.d) r0\n r0.cancel()\n java.lang.Object r0 = io.reactivex.internal.util.NotificationLite.error(r6)\n r1.h = r0\n r7 = 0\n L_0x0075:\n if (r7 != 0) goto L_0x0079\n r6 = 1\n goto L_0x007a\n L_0x0079:\n r6 = 0\n L_0x007a:\n boolean r0 = r1.a(r0, r6)\n if (r0 == 0) goto L_0x0081\n return\n L_0x0081:\n int r0 = r1.i\n if (r0 == r3) goto L_0x0090\n java.util.concurrent.atomic.AtomicReference<org.b.d> r0 = r1.g\n java.lang.Object r0 = r0.get()\n org.b.d r0 = (org.b.d) r0\n r0.request(r9)\n L_0x0090:\n r6 = 1\n goto L_0x0165\n L_0x0093:\n r0 = r8\n r8 = 0\n L_0x0095:\n long r11 = (long) r8\n int r13 = (r11 > r14 ? 1 : (r11 == r14 ? 0 : -1))\n if (r13 >= 0) goto L_0x0139\n java.lang.Object r0 = r1.h\n java.lang.Object r13 = r6.poll() // Catch:{ all -> 0x00a1 }\n goto L_0x00b8\n L_0x00a1:\n r0 = move-exception\n r13 = r0\n io.reactivex.c.b.throwIfFatal(r13)\n java.util.concurrent.atomic.AtomicReference<org.b.d> r0 = r1.g\n java.lang.Object r0 = r0.get()\n org.b.d r0 = (org.b.d) r0\n r0.cancel()\n java.lang.Object r0 = io.reactivex.internal.util.NotificationLite.error(r13)\n r1.h = r0\n r13 = 0\n L_0x00b8:\n if (r13 != 0) goto L_0x00bc\n r7 = 1\n goto L_0x00bd\n L_0x00bc:\n r7 = 0\n L_0x00bd:\n boolean r0 = r1.a(r0, r7)\n if (r0 == 0) goto L_0x00c4\n return\n L_0x00c4:\n if (r7 != 0) goto L_0x0135\n java.lang.Object r0 = io.reactivex.internal.util.NotificationLite.getValue(r13)\n int r11 = r4.length\n r12 = 0\n r13 = 0\n L_0x00cd:\n if (r12 >= r11) goto L_0x0103\n r3 = r4[r12]\n long r22 = r3.get()\n int r24 = (r22 > r16 ? 1 : (r22 == r16 ? 0 : -1))\n if (r24 == 0) goto L_0x00f1\n r20 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n int r24 = (r22 > r20 ? 1 : (r22 == r20 ? 0 : -1))\n r22 = r6\n r23 = r7\n if (r24 == 0) goto L_0x00eb\n long r6 = r3.c\n long r6 = r6 + r9\n r3.c = r6\n L_0x00eb:\n org.b.c<? super T> r3 = r3.f8109a\n r3.onNext(r0)\n goto L_0x00fb\n L_0x00f1:\n r22 = r6\n r23 = r7\n r20 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n r13 = 1\n L_0x00fb:\n int r12 = r12 + 1\n r6 = r22\n r7 = r23\n r3 = 1\n goto L_0x00cd\n L_0x0103:\n r22 = r6\n r23 = r7\n r20 = 9223372036854775807(0x7fffffffffffffff, double:NaN)\n int r8 = r8 + 1\n java.lang.Object r0 = r2.get()\n io.reactivex.internal.operators.flowable.cq$b[] r0 = (io.reactivex.internal.operators.flowable.cq.b[]) r0\n if (r13 != 0) goto L_0x0120\n if (r0 == r4) goto L_0x0119\n goto L_0x0120\n L_0x0119:\n r6 = r22\n r0 = r23\n r3 = 1\n goto L_0x0095\n L_0x0120:\n if (r8 == 0) goto L_0x0133\n int r3 = r1.i\n r4 = 1\n if (r3 == r4) goto L_0x0133\n java.util.concurrent.atomic.AtomicReference<org.b.d> r3 = r1.g\n java.lang.Object r3 = r3.get()\n org.b.d r3 = (org.b.d) r3\n long r6 = (long) r8\n r3.request(r6)\n L_0x0133:\n r4 = r0\n goto L_0x0165\n L_0x0135:\n r23 = r7\n r0 = r23\n L_0x0139:\n if (r8 == 0) goto L_0x014c\n int r3 = r1.i\n r6 = 1\n if (r3 == r6) goto L_0x014d\n java.util.concurrent.atomic.AtomicReference<org.b.d> r3 = r1.g\n java.lang.Object r3 = r3.get()\n org.b.d r3 = (org.b.d) r3\n r3.request(r11)\n goto L_0x014d\n L_0x014c:\n r6 = 1\n L_0x014d:\n r7 = 0\n int r3 = (r14 > r7 ? 1 : (r14 == r7 ? 0 : -1))\n if (r3 == 0) goto L_0x0157\n if (r0 == 0) goto L_0x0165\n goto L_0x0157\n L_0x0156:\n r6 = 1\n L_0x0157:\n int r0 = -r5\n int r5 = r1.addAndGet(r0)\n if (r5 == 0) goto L_0x0168\n java.lang.Object r0 = r2.get()\n r4 = r0\n io.reactivex.internal.operators.flowable.cq$b[] r4 = (io.reactivex.internal.operators.flowable.cq.b[]) r4\n L_0x0165:\n r3 = 1\n goto L_0x0014\n L_0x0168:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: io.reactivex.internal.operators.flowable.cq.c.a():void\");\n }", "void visit(Liquor liquor);", "public void visita(Attribute attribute) {\n\t\t\n\t}", "public interface lm extends mv<ll> {\n void a(ll llVar);\n}", "public interface Type extends DeclarationContainer, DeclarationWithType {\n\n public default boolean newSubtypeOf(Type other) throws LookupException {\n return sameAs(other);\n }\n\n @Override\n default SelectionResult<Declaration> updatedTo(Declaration declaration) {\n return DeclarationWithType.super.updatedTo(declaration);\n }\n\n @Override\n default List<? extends DeclarationContainerRelation> relations() throws LookupException {\n \treturn inheritanceRelations();\n }\n\n public default void accumulateSuperTypeJudge(SuperTypeJudge judge) throws LookupException {\n judge.add(this);\n List<Type> temp = getProperDirectSuperTypes();\n for(Type type:temp) {\n Type existing = judge.get(type);\n if(existing == null) {\n type.accumulateSuperTypeJudge(judge);\n }\n }\n }\n\n\n /**\n * Find the super type with the same base type as the given type.\n * \n * @param type The type with the same base type as the requested super type.\n * @return A super type of this type that has the same base type as the given\n * type. If there is no such super type, null is returned.\n * @throws LookupException\n */\n public default Type getSuperTypeWithSameBaseTypeAs(Type type) throws LookupException {\n return superTypeJudge().get(type);\n }\n\n public SuperTypeJudge superTypeJudge() throws LookupException;\n\n public void accumulateAllSuperTypes(Set<Type> acc) throws LookupException;\n\n public void newAccumulateAllSuperTypes(Set<Type> acc) throws LookupException;\n\n public void newAccumulateSelfAndAllSuperTypes(Set<Type> acc) throws LookupException;\n\n\n public Set<Type> getSelfAndAllSuperTypesView() throws LookupException;\n\n public abstract List<InheritanceRelation> explicitNonMemberInheritanceRelations();\n\n public <I extends InheritanceRelation> List<I> explicitNonMemberInheritanceRelations(Class<I> kind);\n\n public List<InheritanceRelation> implicitNonMemberInheritanceRelations();\n\n public default void reactOnDescendantAdded(Element element) {}\n\n public default void reactOnDescendantRemoved(Element element) {}\n\n public default void reactOnDescendantReplaced(Element oldElement, Element newElement) {}\n\n /**\n * Return the fully qualified name.\n * @throws LookupException \n */\n /*@\n\t @ public behavior\n\t @\n\t @ getPackage().getFullyQualifiedName().equals(\"\") ==> \\result == getName();\n\t @ ! getPackage().getFullyQualifiedName().equals(\"\") == > \\result.equals(getPackage().getFullyQualifiedName() + getName());\n\t @*/\n public String getFullyQualifiedName();\n\n /*******************\n * LEXICAL CONTEXT \n *******************/\n\n @Override\n public LocalLookupContext<?> targetContext() throws LookupException;\n\n @Override\n public LookupContext localContext() throws LookupException;\n\n /**\n * If the given element is an inheritance relation, the lookup must proceed to the parent. For other elements,\n * the context is a lexical context connected to the target context to perform a local search.\n * @throws LookupException \n */\n @Override\n public LookupContext lookupContext(Element element) throws LookupException;\n\n public List<ParameterBlock<?>> parameterBlocks();\n\n public <P extends Parameter> ParameterBlock<P> parameterBlock(Class<P> kind);\n\n public void addParameterBlock(ParameterBlock<?> block);\n\n public void removeParameterBlock(ParameterBlock<?> block);\n\n public <P extends Parameter> List<P> parameters(Class<P> kind);\n\n /**\n * Indices start at 1.\n */\n public <P extends Parameter> P parameter(Class<P> kind, int index);\n\n public <P extends Parameter> int nbTypeParameters(Class<P> kind);\n\n public <P extends Parameter> void addParameter(Class<P> kind,P parameter);\n\n public <P extends Parameter> void addAllParameters(Class<P> kind,Collection<P> parameter);\n\n public <P extends Parameter> void replaceParameter(Class<P> kind, P oldParameter, P newParameter);\n\n public <P extends Parameter> void replaceAllParameters(Class<P> kind, List<P> newParameters);\n\n /************************\n * BEING A TYPE ELEMENT *\n ************************/\n\n public List<Declaration> getIntroducedMembers();\n\n /**********\n * ACCESS *\n **********/\n\n /**\n * Add the given element to this type.\n * \n * @throws ChameleonProgrammerException\n * The given element could not be added. E.g when you try to add\n * an element to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre element != null;\n\t @\n\t @ post directlyDeclaredElements().contains(element);\n\t @*/\n public void add(Declarator element) throws ChameleonProgrammerException;\n\n /**\n * Remove the given element to this type.\n * \n * @throws ChameleonProgrammerException\n * The given element could not be added. E.g when you try to add\n * an element to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre element != null;\n\t @\n\t @ post ! directlyDeclaredElements().contains(element);\n\t @*/\n public void remove(Declarator element) throws ChameleonProgrammerException;\n\n /**\n * Add all type elements in the given collection to this type.\n * @param elements\n * @throws ChameleonProgrammerException\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre elements != null;\n\t @ pre !elements.contains(null);\n\t @\n\t @ post directlyDeclaredElements().containsAll(elements);\n\t @*/\n public default void addAll(Collection<? extends Declarator> elements) {\n \telements.forEach(e -> add(e));\n }\n\n /**************\n * SUPERTYPES *\n **************/\n\n /**\n * Return the proper direct super types of this type. A proper super type is a super type\n * that is not equal to this type. A direct super type is a super type that is specified\n * by an inheritance relation of this type, or this type.\n * \n * @return A list containing the direct super types of this type.\n * @throws LookupException The type of an inheritance relation could not be resolved.\n */\n public default List<Type> getProperDirectSuperTypes() throws LookupException {\n\t\tList<Type> result = Lists.create();\n\t\tfor(InheritanceRelation element:inheritanceRelations()) {\n\t\t\tType type = element.superType();\n\t\t\tif (type!=null) {\n\t\t\t\tresult.add(type);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n public Set<Type> getAllSuperTypes() throws LookupException;\n\n public default boolean contains(Type other, TypeFixer trace) throws LookupException {\n return sameAs(other, trace);\n }\n \n public default boolean subtypeOf(Type other) throws LookupException {\n return subtypeOf(other, new TypeFixer());\n }\n\n public default boolean subtypeOf(Type other, TypeFixer trace) throws LookupException {\n TypeFixer clone = trace.clone();\n boolean result = sameAs(other,clone);\n if(! result) {\n clone = trace.clone();\n result = uniSubtypeOf(other,clone);\n if(! result) {\n result = other.uniSupertypeOf(this, trace);\n }\n }\n return result;\n }\n\n public default boolean uniSupertypeOf(Type type, TypeFixer trace) throws LookupException {\n return false;\n }\n\n public default boolean uniSubtypeOf(Type other, TypeFixer trace) throws LookupException {\n Type sameBase = getSuperTypeWithSameBaseTypeAs(other);\n return sameBase != null && sameBase.compatibleParameters(other, trace);\n }\n\n /**\n * Check if this type is assignable to another type.\n * \n * @param other\n * @return\n * @throws LookupException\n */\n /*@\n\t @ public behavior\n\t @\n\t @ post \\result == equals(other) || subTypeOf(other);\n\t @*/\n public boolean assignableTo(Type other) throws LookupException;\n\n /**\n * Return the inheritance relations of this type.\n * \n * @throws LookupException \n */\n /*@\n\t @ public behavior\n\t @\n\t @ post \\result != null;\n\t @*/\n public default List<InheritanceRelation> inheritanceRelations() throws LookupException {\n return nonMemberInheritanceRelations();\n }\n\n public List<InheritanceRelation> nonMemberInheritanceRelations();\n\n public <I extends InheritanceRelation> List<I> nonMemberInheritanceRelations(Class<I> kind);\n\n /**\n * Add the give given inheritance relation to this type.\n * @param relation The relation to add. Cannot be null.\n * @throws ChameleonProgrammerException\n * It is not possible to add the given type. E.g. you cannot\n * add an inheritance relation to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre relation != null;\n\t @ post inheritanceRelations().contains(relation);\n\t @*/\n public void addInheritanceRelation(InheritanceRelation relation);\n\n public void addAllInheritanceRelations(Collection<InheritanceRelation> relations);\n /**\n * Remove the give given inheritance relation from this type.\n * @param relation\n * @throws ChameleonProgrammerException\n * It is not possible to remove the given type. E.g. you cannot\n * remove an inheritance relation to a computed type.\n */\n /*@\n\t @ public behavior\n\t @\n\t @ pre relation != null;\n\t @ post ! inheritanceRelations().contains(relation);\n\t @*/\n public void removeNonMemberInheritanceRelation(InheritanceRelation relation) throws ChameleonProgrammerException;\n\n public void removeAllNonMemberInheritanceRelations();\n\n /**\n * Return the members of the given kind directly declared by this type.\n * @return\n * @throws LookupException \n * @throws \n */\n public <T extends Declaration> List<T> localMembers(final Class<T> kind) throws LookupException;\n\n /**\n * Return the members that are implicitly part of this type, such as default constructors and destructors.\n * @return\n */\n public List<Declaration> implicitMembers();\n\n public <M extends Declaration> List<M> implicitMembers(Class<M> kind);\n\n /**\n * Return the members directly declared by this type. The order of the elements in the list is the order in which they\n * are written in the type.\n * @return\n * @throws LookupException \n */\n public List<Declaration> localMembers() throws LookupException;\n\n public <T extends Declaration> List<T> directlyDeclaredMembers(Class<T> kind);\n\n public <T extends Declaration> List<T> directlyDeclaredMembers(Class<T> kind, ChameleonProperty property);\n\n public List<Declaration> directlyDeclaredMembers();\n\n public <D extends Declaration> List<SelectionResult<D>> members(DeclarationSelector<D> selector) throws LookupException;\n\n public <D extends Declaration> List<? extends SelectionResult<D>> localMembers(DeclarationSelector<D> selector) throws LookupException;\n\n public List<Declaration> members() throws LookupException;\n\n /**\n * Return the members of this class.\n * @param <M>\n * @param kind\n * @return\n * @throws LookupException\n */\n public <M extends Declaration> List<M> members(final Class<M> kind) throws LookupException;\n\n /**\n * DO NOT CONFUSE THIS METHOD WITH localMembers(). This method does not\n * transform type elements into members.\n * \n * FIXME: rename to localDeclarators()\n * \n * @return\n */\n public List<? extends Declarator> directlyDeclaredElements();\n\n public <T extends Declarator> List<T> directlyDeclaredElements(Class<T> kind);\n\n @Override\n public List<? extends Declaration> declarations() throws LookupException;\n\n public Type alias(String name);\n\n public Type intersection(Type type) throws LookupException;\n\n public Type intersectionDoubleDispatch(Type type) throws LookupException;\n\n public Type intersectionDoubleDispatch(IntersectionType type) throws LookupException;\n\n public void replace(Declarator oldElement, Declarator newElement);\n\n public Type baseType();\n\n public default boolean compatibleParameters(Type other, TypeFixer trace) throws LookupException {\n int size = nbTypeParameters(TypeParameter.class);\n boolean result = true;\n for(int i=0; i< size && result;i++) {\n TypeParameter otherParameter = other.parameter(TypeParameter.class, i);\n TypeParameter myParameter = parameter(TypeParameter.class,i);\n result = otherParameter.contains(myParameter, trace.clone());\n }\n return result;\n }\n\n\n public Type union(Type lowerBound) throws LookupException;\n\n public Type unionDoubleDispatch(Type type) throws LookupException;\n\n public Type unionDoubleDispatch(UnionType type) throws LookupException;\n\n public default boolean sameAs(Type other, TypeFixer trace) throws LookupException {\n if(other == this || trace.contains(other, this)) {\n return true;\n }\n TypeFixer newTrace = trace.clone();\n newTrace.add(other, this);\n boolean result = uniSameAs(other,newTrace);\n if(! result) {\n newTrace = trace.clone();\n newTrace.add(other, this);\n result = other.uniSameAs(this,newTrace);\n }\n return result;\n }\n\n /**\n * Check if this type is equal to the given type, taking\n * recursive types into account. If a loop is encountered,\n * that branch of the check will return true: it did not\n * encounter a problem.\n * \n * @param other The type of which we want to check if it is the same as this type.\n * @param fixer The object that will ensure that we can do a fixed point computation.\n * @return\n * @throws LookupException\n */\n public boolean uniSameAs(Type other, TypeFixer fixer) throws LookupException;\n\n /**\n * <p>Return the lower bound of this type.</p>\n * \n * <p> By <b>default</b>, the current object is returned.\n * \n * @return A type representing the lower bound of this type, when consider as an interval.\n * @throws LookupException\n */\n /*@\n @ post \\result != null;\n @ post \\result.subtypeOf(this);\n @*/\n public default Type lowerBound() throws LookupException {\n return this;\n }\n\n /**\n * <p>Return the upper bound of this type.</p>\n * \n * <p> By <b>default</b>, the current object is returned.\n * \n * @return A type representing the upper bound of this type, when consider as an interval.\n * @throws LookupException\n */\n /*@\n @ post \\result != null;\n @ post subtypeOf(\\result);\n @*/\n public default Type upperBound() throws LookupException {\n return this;\n }\n\n /**\n * A name that is strictly for debugging purposes.\n * \n * @return The result is not null.\n */\n public String infoName();\n\n /**\n * Verify whether the this type is a subtype of the given other type. \n * If that is the case, then a valid verification result is returned.\n * Otherwise, a problem is reported. The message of the problem is \n * constructed using the descriptions of the meaning of\n * each type as determined by the arguments.\n * \n * @param type The type for which the subtype relation is verified.\n * @param meaningThisType A textual description of the meaning of this type.\n * @param meaningOtherType A textual description of the meaning of the other type.\n * @param cause The element in which the verification is done.\n * @return\n */\n public Verification verifySubtypeOf(Type type, String meaningThisType, String meaningOtherType, Element cause);\n\n\n /**\n * @return\n */\n public default boolean isWildCard() {\n return false;\n }\n\n}", "public interface Norm<TypeOfValue> extends Function<TypeOfValue, Double> {\n /**\n * Returns this norm of the specified value.\n * @param value Value.\n * @return Norm.\n */\n @Override\n public Double value(TypeOfValue value);\n}", "double apply(final double a);", "@Override\n\tpublic void workOn(Assembly a)\n\t{\n\t\t// logger.debug(\"start, a=\"+a);\n\t\t// Pop the the parenthesis symbols and the operand\n\t\tMathToken tokenClose = (MathToken) a.pop();\n\t\tSyntaxTreeNode e = (SyntaxTreeNode) a.pop();\n\t\tMathToken tokenOpen = (MathToken) a.pop();\n\n\t\t// Create a parenthesis math token that has references to both\n\t\t// tokens in the assembly\n\t\tMathToken t = new MathToken(tokenOpen.get(0), new ParenthesisValue());\n\t\tt.add(tokenClose.get(0));\n\n\t\t// Carry out the parenthesis \"operation\"\n\t\te = SyntaxTreeNode.op(t, e);\n\n\t\t// Return the result on the assembly stack\n\t\ta.push(e);\n\t\t// logger.debug(\"end, a=\"+a);\n\t}", "public interface IBTreeF<X,Y> {\r\n\t\r\n\t//Purpose: Returns type Y given the root value v of type X.\r\n\tpublic Y f(X v);\r\n\r\n}", "public static void main(String[] args) {\n\t\tA i2 = (a,b) -> a+b;\r\n\t\t//B i2 = new B();\r\n\t\tSystem.out.println(i2.add(\"10\",30));\r\n\t\t//System.out.println(i.squrtIt(10));\r\n\t\t\r\n\t}", "@FunctionalInterface\npublic interface PentaFunction<T, U, V, W, X, R> {\n\tR apply(T t, U u, V v, W w, X x);\n}", "public interface La<S> extends e.b {\n\n /* compiled from: ThreadContextElement.kt */\n public static final class a {\n public static <S, E extends e.b> E a(La<S> la, e.c<E> cVar) {\n j.b(cVar, \"key\");\n return e.b.a.a((e.b) la, cVar);\n }\n\n public static <S> e a(La<S> la, e eVar) {\n j.b(eVar, \"context\");\n return e.b.a.a((e.b) la, eVar);\n }\n\n public static <S, R> R a(La<S> la, R r, c<? super R, ? super e.b, ? extends R> cVar) {\n j.b(cVar, \"operation\");\n return e.b.a.a(la, r, cVar);\n }\n\n public static <S> e b(La<S> la, e.c<?> cVar) {\n j.b(cVar, \"key\");\n return e.b.a.b(la, cVar);\n }\n }\n\n S a(e eVar);\n\n void a(e eVar, S s);\n}", "public interface BoxedDoubleToBooleanFunction extends ObjectToBooleanFunction<Double> {\n\n}", "public interface LinopTransform extends Transform {\r\n public double[][] getMat();\r\n}", "Transform<A, B> getTransform();", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Association p, A arg)\n {\n\n p.arithmeticexpr_.accept(new ArithmeticExprVisitor<R,A>(), arg);\n\n return null;\n }", "@FunctionalInterface\ninterface CircleMeasurement {\n /**\n *\n * @param radius circle radius\n * @return the value of circle measure\n */\n double value(double radius);\n}", "@FunctionalInterface\n\tpublic interface Expression<V> {\n\t\tV getExpressionResult(Program p);\n\t}", "interface Formula {\n\t double calculate(int a);\n\t \n\t default double sqrt(int a) {\n\t return Math.sqrt(a);\n\t }\n\t}", "public interface b {\n void a(long j);\n\n void a(boolean z);\n\n void e();\n }", "public a<T> a(Tag.e<T> var0) {\n/* 110 */ this.a.c(var0.a(), this.c);\n/* 111 */ return this;\n/* */ }", "private int bresA(int a, int b, int d) { //A as in Axis\n int add = 0;\n err += b;\n if(2*err >= a) {\n add = d;\n err -= a;\n }\n return add;\n }", "<T extends Formula> T typeFormula(FormulaType<T> type, Formula f);", "public R visit(com.biosimilarity.lift.lib.scalar.Absyn.Transcription p, A arg)\n {\n\n p.expression_.accept(new ExpressionVisitor<R,A>(), arg);\n\n return null;\n }", "@Override // com.google.android.play.core.internal.ci\n public final /* bridge */ /* synthetic */ y1 a() {\n return new y1(this.a.a(), cg.b(this.b));\n }", "public interface One extends RelationQuantifier\n{\n}", "public interface i\n{\n\n public abstract void a(long l, a a1);\n}", "interface A {\n int summ(int x, int y);\n}", "<C> Cocartesian<Choice2<C, A>, Choice2<C, B>, P> cocartesian();", "public abstract T a();", "A adapt(C constraint);", "public interface Ka extends b<d> {\n\n /* compiled from: FragmentModule_ThirdPartyReviewFragment$app_bazaarRelease */\n public static abstract class a extends b.a<d> {\n }\n}", "public void lambaAsObjectExample() {\n }", "E tan(final E n);", "public interface Chain {\r\n public void setNextChain(Chain chain);\r\n public void calculate(Numbers numbers);\r\n}", "public interface C0219dm {\n /* renamed from: b */\n <S extends C0218dl> S mo283b();\n}", "public void a(vx paramvx) {}", "public final r.a a() {\n return r.a.TURNSTILE;\n }", "public interface a<T, R> extends i.b<R>, b<T, R> {\n }", "public interface C3235r<P1, P2, P3, P4, R> {\n}" ]
[ "0.61952585", "0.57273847", "0.54756886", "0.53706443", "0.5162605", "0.5137068", "0.5125915", "0.51072675", "0.51012295", "0.49076223", "0.49072313", "0.4854957", "0.48195058", "0.48089176", "0.48053494", "0.4758982", "0.474164", "0.47377682", "0.47309172", "0.4728625", "0.47160262", "0.471479", "0.4663499", "0.4653123", "0.46408316", "0.4622109", "0.4619944", "0.46195373", "0.4614398", "0.45735714", "0.45732707", "0.45619756", "0.45576864", "0.45506907", "0.45480356", "0.45461646", "0.4544424", "0.4541153", "0.45369184", "0.45285824", "0.45268375", "0.45264786", "0.451808", "0.451808", "0.45118052", "0.45080855", "0.45059994", "0.4503485", "0.4499047", "0.44985718", "0.44921103", "0.44728342", "0.4470601", "0.44698966", "0.44635075", "0.4446253", "0.4439421", "0.4437936", "0.44366437", "0.44356155", "0.44344547", "0.44335786", "0.44276232", "0.44225004", "0.4421372", "0.44190073", "0.44182914", "0.4407002", "0.43978208", "0.43977568", "0.43929514", "0.43736517", "0.43711755", "0.43661314", "0.43608168", "0.43568513", "0.4345117", "0.43440908", "0.43440545", "0.43439454", "0.4341542", "0.43337038", "0.4333401", "0.43329233", "0.4332637", "0.43275118", "0.43271673", "0.4323201", "0.4318613", "0.431505", "0.4311901", "0.43074256", "0.4306581", "0.43046165", "0.4303181", "0.42919257", "0.42906636", "0.4289054", "0.4284921", "0.4284201" ]
0.5446074
3
Getters and Setters methods ArrayList authors method
public void addAuthors(String author) { if (authorsList.contains(author)) { System.out.println("Author exist!!!"); } else { authorsList.add(author); System.out.println("Add author successfully!!!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<String> getAuthors() {\n\t\treturn authors;\n\t}", "public List applyAuthorRule () {\n\t\treturn authors;\n\t}", "public List<String> getAuthors() {\n return authors;\n }", "public Item2Vector<Author> getAuthorss() { return authorss; }", "public String[] getAuthors() {\n return authors;\n }", "public String getAuthor();", "String[] getAuthor();", "DefaultListModel getAuthorsModel();", "public String getAuthor(){return author;}", "public Author[] getAuthors() {\n return authors;\n }", "public Author[] getAuthors() {\n return authors;\n }", "List<String> getAuthorsList() {\r\n\t\tList<String> authorList = new ArrayList<String>() ;\r\n\t\t\r\n\t\t// Populate the list of authors\r\n\t\tfor(Collaborator c: collaborators) {\r\n\t\t\tauthorList.add(c.getAuthorName()) ;\r\n\t\t}\r\n\t\treturn authorList ;\r\n\t}", "public String getAuthor(){\n return author;\n \n }", "public List<String> getAuthors() {\n return Collections.unmodifiableList(mAuthors);\n }", "String getAuthor();", "String getAuthor();", "public String getAuthor() { return author_; }", "public void setAuthors(String _authors) { authors = _authors; }", "public Author getAuthor() {\r\n return author;\r\n }", "public abstract String getAuthor();", "@Override\r\n\tpublic List<Author> getAllAuthorDetails() {\n\t\treturn authorDAO.findAll();\r\n\t\t\r\n\t}", "public String getAuthor() {\r\n return author;\r\n }", "public String getAuthor() {\n\treturn author;\n}", "ImmutableList<SchemaOrgType> getAuthorList();", "@Override\n \tpublic void setAuthors(String authors) {\n \t\t// TODO Auto-generated method stub\n \n \t}", "DefaultListModel getAuthorsBookModel();", "String getAuthorName();", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "public String getAuthor() {\n return author;\n }", "@Override\n public String toString() {\n return getAuthor().getName();\n }", "public adminAuthor() {\n initComponents();\n List();\n\n }", "Set<URI> getAuthors();", "@Override\r\n\tpublic String getAuthor() {\n\t\treturn super.getAuthor();\r\n\t}", "public String getAuthors() {\n return getProperty(Property.AUTHORS);\n }", "protected List<AuthorNames> getAuthorNames() {\n return authors.values().stream()\n .map(a-> new AuthorNames(a.getFirstName(), a.getLastName()))\n .collect(Collectors.toList());\n }", "@Override\n public String toString() {\n String authorNames=\"\";\n for(Author a:authors){\n authorNames+=\", \"+a.toString();\n }\n return super.toString()\n +\", BookID: \"+bookID\n +\", RackNo: \"+rackNo\n +\", Edition: \"+edition\n +\", Authors: \"+(authors.length>0?authorNames.substring(2):\"\");\n }", "public java.lang.String getAuthor() {\n return author;\n }", "public String getAuthor() {\r\n\t\treturn author;\r\n\t}", "public ListProperty<Author> titlesProperty(){return authors;}", "public IAuthor getAuthor();", "@Override\n\tpublic String getAuthor() {\n\t\treturn \"\";\n\t}", "public String getAuthor() {\n return mAuthor;\n }", "@Override\n public void author_()\n {\n }", "public String getAuthor() {\r\n\t\treturn oAuthor;\r\n\t}", "java.util.List<java.lang.String>\n getAuthoritiesList();", "public java.lang.String getAuthor() {\n return author;\n }", "public Authors() {\n mAuthors = new TreeMap<>();\n }", "default String getAuthor() {\r\n\t\treturn \"unknown\";\r\n\t}", "public String getAuthor()\r\n {\r\n return (m_author);\r\n }", "public void setAuthors(String[] authors) {\n this.authors = authors;\n }", "public String getAuthor() {\n\t\treturn \"Prasoon, Vikas, Shantanu\";\n\t}", "@Nonnull @NonnullElements @Live public Collection<String> getAuthorities() {\n return authorities;\n }", "public void setAuthors(ArrayList<String> authors) throws BadParametersException {\n\t\tif (authors == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (authors.size() == 0)\n\t\t\tthrow new BadParametersException();\t\n\t\tthis.authors = authors;\n\t}", "@Override\n\tpublic String author() {\n\t\treturn author;\n\t}", "public List<Author> selectAllAuthors();", "public IPerson getAuthor() {\n\t\treturn fAuthor;\n\t}", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorName() {\n return authorName;\n }", "public String getAuthorities() {\n return authorities;\n }", "@Override\n public void author()\n {\n }", "public String getAuthor()\r\n {\r\n return(\"Judy O'Brien\");\r\n }", "public void setAuthors(Author[] authors) {\n this.authors = authors;\n }", "public void setAuthors(Author[] authors) {\n this.authors = authors;\n }", "public String getAuthor() {\n\t\treturn null;\r\n\t}", "@Override\n public String toString() {\n return bookName + \"-\" + authorName;\n }", "public String getAuthorName() {\n return this.authorName;\n }", "public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n authorities_.makeImmutable();\n return authorities_;\n }", "public String getBookAuthor() {\n return bookAuthor;\n }", "public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n return authorities_;\n }", "@Override\n\tpublic String getDescription() {\n\t\treturn author;\n\t}", "public Author getAuthor() {\n\t\treturn this.author;\n\t}", "public User getAuthor() {\n return author;\n }", "public String getAuthorName() {\n return mAuthorName;\n }", "private void addAuthorList() {\n Intent intent = new Intent();\n ArrayList<Author> authorList = new ArrayList<>(mAuthorMap.values());\n intent.putExtra(EXTRA_AUTHOR_LIST, authorList);\n setResult(RESULT_OK, intent);\n finish();\n }", "public List<Book> getByAuthor(String name );", "@Override\n public String toString() {\n String authorsList = \"\";\n for (Author a : authors) {\n String temp = \", \";\n if (a.equals(authors[authors.length - 1])) {\n temp = \"\";\n }\n authorsList += a.toString() + temp;\n }\n\n return \"\\n\" + super.toString() + \", BookID: \" + bookID + \", RackNo: \"\n + rackNo + \", Edition: \" + edition + \", Authors: \" + authorsList;\n }", "@Override\n public List<Author> selectAuthorList(Author author)\n {\n return authorMapper.selectAuthorList(author);\n }", "public AuthorInfoExtractor() {\n\t\tthis.authors = new HashMap<String, AuthorInfo>();\n\t}", "public StrColumn getSoftwareAuthorList() {\n return delegate.getColumn(\"software_author_list\", DelegatingStrColumn::new);\n }", "public void setAuthor(String author) {\n\tthis.author = author;\n}", "java.lang.String getAuthorities(int index);", "public final native String getAuthor() /*-{\n return this.getAuthor();\n }-*/;", "@Override\n\tpublic ResultSet getAuthorsResultSet() {\n\t\treturn null;\n\t}", "@Override\n\tpublic java.lang.String getAuthor() {\n\t\treturn _news_Blogs.getAuthor();\n\t}", "public void setAuthor(String author) {\r\n this.author = author;\r\n }", "public void setAuthor(String author)\r\n {\r\n m_author = author;\r\n }", "public void addAuthor(Author author){\n authors.add(author);\n }", "@GetMapping(\"/author/list\")\n public String viewAuthors(ModelMap model, @SortDefault(\"firstName\") Pageable pageable) {\n //\n //List<Author> listAuthors = authorservice.listAll();\n List<Author> listAuthors = authorservice.listAll();\n for (Author author : authorRepository.findAll()) {\n log.info(author.toString());\n }\n //\n model.addAttribute(\"authors\", authorservice.find(pageable));\n //model.addAttribute(\"authors\", book.getAuthors());\n //model.addAttribute(\"listAuthors\", listAuthors);\n return \"author/list\";\n }", "public ArrayList<Book> listOfBooksByAuthor (Author providedAuthor){\n //Array list for storing books written by provided author\n ArrayList<Book> authorBooks = new ArrayList<>();\n\n //loops through the booklist to find books with the author in the list of authors\n for (Book book : bookList) {\n //loops through the list of authors to see if the provided author is among thelist\n for (Author author1 : book.getAuthors()) {\n if (providedAuthor.equals(author1)) {\n authorBooks.add(book);\n }\n }\n }\n return authorBooks;\n }", "public Player getAuthor(){\n return this.playerAuthor;\n }", "@GetMapping\n public List<Author> getAllAuthors(){\n return authorService.getAllAuthors();\n }" ]
[ "0.77952", "0.7539974", "0.74781716", "0.7399213", "0.73950696", "0.7278098", "0.72491246", "0.7185341", "0.7178411", "0.7152821", "0.7152821", "0.7128309", "0.7087664", "0.7066501", "0.7051254", "0.7051254", "0.70099044", "0.69862974", "0.6981273", "0.6976826", "0.69601816", "0.6937548", "0.68949664", "0.6886008", "0.68591774", "0.68500316", "0.68372893", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.682661", "0.680759", "0.6778857", "0.67633426", "0.6757903", "0.67449206", "0.67274666", "0.6719847", "0.67111826", "0.67022836", "0.66992164", "0.6686351", "0.6675699", "0.66719663", "0.66509545", "0.6645852", "0.6643466", "0.6641178", "0.6605689", "0.6574215", "0.6573217", "0.65642667", "0.6562328", "0.6562304", "0.65550965", "0.6495992", "0.6484551", "0.64705026", "0.6462956", "0.6462956", "0.64399207", "0.6420445", "0.64099765", "0.639295", "0.639295", "0.6392397", "0.6381219", "0.63766", "0.6333141", "0.63329184", "0.63232696", "0.6318663", "0.62942386", "0.628487", "0.62758654", "0.6249202", "0.62427044", "0.6229369", "0.6217716", "0.6208789", "0.61925876", "0.6180126", "0.6160838", "0.6145064", "0.6136535", "0.61310315", "0.6082271", "0.608048", "0.6065605", "0.6062876", "0.6058493", "0.6037461", "0.6033013" ]
0.0
-1
Si cambian las preferencia de frecuencia, hay que comunicar con el servicio que gestiona la descarga del XML
@Override public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String key) { if(key.equals(context.getResources().getString(R.string.preferences_key_actualizacion))){ String actualizacion = sharedPreferences.getString( context.getResources().getString(R.string.preferences_key_actualizacion), context.getResources().getString(R.string.preferences_key_actualizacion_default)); Long actualizacionLong = Long.parseLong(actualizacion); //Se cancela la anterior tarea programada alarmManager.cancel(pendingIntent); //Si es distinto de 0 e, periodo de actualización, se pone en marcha de nuevo la //tarea programada con el nuevo valor if (actualizacionLong != 0) { alarmManager.setInexactRepeating( AlarmManager.RTC_WAKEUP, 0, actualizacionLong * 1000, pendingIntent); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean ReescrituraConfig(String ruta, String ws, String ip_bd, String id_portico, String chapa, String dispo, String idAdmin, List<EventoPuertaMagnetica> eventos, String loc_geo){\n try{\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n //creacion de elementos\n Element rootElement = doc.createElement(\"parametros\");\n Element urlWS = doc.createElement(\"Url_WebServices\");\n Element idPort = doc.createElement(\"Id_Portico\");\n Element ipBD = doc.createElement(\"Base_Datos_IP\");\n Element cha = doc.createElement(\"Tiene_Chapa\");\n Element disp = doc.createElement(\"Disposicion\");\n Element idAdm = doc.createElement(\"Id_Crede_Administrador\");\n Element lg = doc.createElement(\"Localizacion_Geografica\");\n\n doc.appendChild(rootElement); //ingreso de cabecera.\n\n //ingreso de datos a elementos\n urlWS.appendChild(doc.createTextNode(ws));\n idPort.appendChild(doc.createTextNode(id_portico));\n ipBD.appendChild(doc.createTextNode(ip_bd));\n cha.appendChild(doc.createTextNode(chapa));\n disp.appendChild(doc.createTextNode(dispo));\n idAdm.appendChild(doc.createTextNode(idAdmin));\n lg.appendChild(doc.createTextNode(loc_geo));\n\n //ingresos de elementos a cabecera\n rootElement.appendChild(urlWS);\n rootElement.appendChild(idPort);\n rootElement.appendChild(ipBD);\n rootElement.appendChild(cha);\n rootElement.appendChild(disp);\n rootElement.appendChild(idAdm);\n rootElement.appendChild(lg);\n\n if(chapa.equals(\"Z0B9C4B\")){\n for(int i=0; i<eventos.size(); i++){\n Element event = doc.createElement(\"Evento\");\n Element idEvent = doc.createElement(\"Id_Evento\");\n Element nombreEvent = doc.createElement(\"Nombre_Evento\");\n idEvent.appendChild(doc.createTextNode(eventos.get(i).get_U01B3F3()));\n nombreEvent.appendChild(doc.createTextNode(eventos.get(i).get_DESTINO()));\n event.appendChild(idEvent);\n event.appendChild(nombreEvent);\n rootElement.appendChild(event);\n }\n\n }\n\n //transformacion a archivo XML.\n\n TransformerFactory transFactory = TransformerFactory.newInstance();\n Transformer trans = transFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File dir = new File(ruta);\n\n Log.i(TAG, \"Se verifica la existencia del archivo apra su creacion\");\n if(dir.exists()){\n //elimino el archivo xml junto con el folder.\n\n File [] archivo = dir.listFiles();//data/data/com.civi/config/config.xml\n if(archivo.length != 0){//existen archivos.\n Log.i(TAG, \"Archivo config existe, eliminando...\");\n if(archivo[0].delete()){\n Log.i(TAG, \"Archivo Config eliminado\");\n if(dir.delete()){//elimino el folder.\n Log.i(TAG, \"Folder config eliminado\");\n }else{\n Log.i(TAG, \"No fue posible la eliminacion del folder\");\n }\n }else{\n Log.i(TAG, \"NO fue posible la eliminacion del archivo\");\n }\n }else{\n Log.i(TAG, \"Archivo Config no existe. elimino solo el folder\");\n if(dir.delete()){\n Log.i(TAG, \"Folder eliminado\");\n }\n }\n\n }\n\n //Creacion de folder.\n if(dir.mkdirs()){\n StreamResult result = new StreamResult(new File(dir, \"config.xml\"));\n trans.transform(source, result);\n }\n Log.i(TAG, \"Generacion de config.xml realizada en \"+ruta);\n\n } catch(Exception ex){\n return false;\n }\n return true;\n }", "@WebMethod(operationName = \"CalcularPP\")\n public String CalcularPP(@WebParam(name = \"xml\")String xml)\n {\n try\n {\n if(xml == null)\n return xmlVacioExpt;\n ByteArrayInputStream bais = new ByteArrayInputStream(xml.getBytes());\n DocumentBuilderFactory dbfacIN = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilderIN = dbfacIN.newDocumentBuilder();\n Document docIN = docBuilderIN.parse(bais);\n if( docIN.getDocumentElement().getNodeName().equals(\"EntradaCalculadoraPP\"))\n {\n int cliId = GetValueInt(docIN, \"CLI_ID\");\n int cliSap = GetValueInt(docIN, \"CLI_SAP\");\n String cliApePat = GetValue(docIN, \"CLI_APE_PAT\");\n String cliApeMat = GetValue(docIN, \"CLI_APE_MAT\");\n String cliNom = GetValue(docIN, \"CLI_NOM\");\n String cliFecNac = GetValue(docIN, \"CLI_FEC_NAC\");\n String cliDomCal = GetValue(docIN,\"CLI_DOM_CAL\");\n String cliDomNumExt = GetValue(docIN,\"CLI_DOM_NUM_EXT\");\n String cliDomNumInt = GetValue(docIN,\"CLI_DOM_NUM_INT\");\n String cliDomCol = GetValue(docIN,\"CLI_DOM_COL\");\n String codPosId = GetValue(docIN,\"COD_POS_ID\");\n\n int estado = GetValueInt(docIN, \"ESTADO\");\n int edad = GetValueInt(docIN, \"EDAD\");\n int ocupacion = GetValueInt(docIN, \"OCUPACION\");\n String fecha = GetValue(docIN, \"FECHA\");\n float mensualidad = GetValueInt(docIN, \"CUOTA\");\n float valor_vivienda = GetValueInt(docIN, \"VALOR_VIVIENDA\");\n\n if(estado<1 || ocupacion<1)\n return datosErrorExpt+\"ESTADO,OCUPACION\";\n if(edad<18 && edad>65)\n return ErrorEdadExpt;\n\n\n\n //Crear un XML vacio\n DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = dbfac.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n\n //Crear el Arbol XML\n\n //Añadir la raiz\n Element raiz = doc.createElement(\"SalidaCalculadoraPP\");\n doc.appendChild(raiz);\n\n //Crear hijs y adicionarlos a la raiz\n AgregarNodo(raiz,doc,\"CLI_ID\",Integer.toString(cliId));\n AgregarNodo(raiz,doc,\"CLI_SAP\",Integer.toString(cliSap));\n\n Session s = objetos.HibernateUtil.getSessionFactory().getCurrentSession();\n \n Transaction tx = s.beginTransaction();\n Query q = s.createQuery(\"from Edo as edo where edo.cal.calId = '6'\");\n List lista = (List) q.list();\n double estado_woe = ((Edo)lista.get(estado-1)).getEdoWoe();\n double recargo = ((Edo)lista.get(estado-1)).getEdoRcg();\n\n q = s.createQuery(\"from RngEda as eda where eda.calId='6' and eda.rngEdaLimInf<=\"+edad+\" and eda.rngEdaLimSup>=\"+edad);\n lista = (List) q.list();\n double edad_woe = ((RngEda)lista.get(0)).getRngEdaWoe();\n\n q = s.createQuery(\"from Ocp as ocp where ocp.cal.calId = '6' and ocp.ocpOrdPre=\"+ocupacion);\n lista = (List) q.list();\n double ocupacion_woe = ((Ocp)lista.get(0)).getOcpWoe();\n\n // double zeta = 0.018-(0.01)*estado_woe-(0.017)*edad_woe-(0.008)*ocupacion_woe;\n double zeta = 0.018146691102274-(0.00993013369427481)* estado_woe -(0.017366941566975)* edad_woe -(0.00838465419451784)* ocupacion_woe;\n double pi = Math.exp(zeta)/(1+Math.exp(zeta));\n\n q = s.createQuery(\"from IntPi as intPi where intPi.cal.calId='6' and intPi.intPiLimInf<=\"+pi+\" and intPi.intPiLimSup>=\"+pi);\n lista = (List) q.list();\n String clasificacion = ((IntPi)lista.get(0)).getIntPiDes();\n\n q = s.createQuery(\"from FtrPpr as fp where fp.ftrPprCls='\"+clasificacion+\"' and fp.ftrPprMes=\"+fecha);\n lista = (List) q.list();\n double cuota = ((FtrPpr)lista.get(0)).getFtrPprFtr();\n\n double ppr = valor_vivienda*cuota;\n double cuota_pprr = cuota * (1 + recargo);\n double pprr = valor_vivienda *cuota_pprr;\n\n\n System.out.println(estado_woe);\n System.out.println(recargo);\n System.out.println(edad_woe);\n System.out.println(ocupacion_woe);\n System.out.println(zeta);\n System.out.println(pi);\n System.out.println(clasificacion);\n System.out.println(cuota);\n System.out.println(ppr);\n System.out.println(cuota_pprr);\n System.out.println(pprr);\n\n\n AgregarNodo(raiz,doc,\"CUOTA_PURA_RIESGO\",Double.toString(cuota*100)+\"%\");\n AgregarNodo(raiz,doc,\"CUOTA_RECARGADAD\",Double.toString(cuota_pprr*100)+\"%\");\n AgregarNodo(raiz,doc,\"PRIMA_PURA_RIESGO\",\"$\"+Double.toString(ppr));\n AgregarNodo(raiz,doc,\"PRIMA_PURA_RIESO_RECARGADA\",\"$\"+Double.toString(pprr));\n //Salida del XML\n TransformerFactory transfac = TransformerFactory.newInstance();\n Transformer trans = transfac.newTransformer();\n trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, \"no\");\n trans.setOutputProperty(OutputKeys.INDENT, \"yes\");\n\n StringWriter sw = new StringWriter();\n StreamResult result = new StreamResult(sw);\n DOMSource source = new DOMSource(doc);\n trans.transform(source, result);\n String xmlString = sw.toString();\n\n return xmlString;\n }else\n return tabNoEncontradoExpt+\"EntradaCalculadoraPP\";\n } catch (ParserConfigurationException parE) {\n return xmlExpt;\n } catch (SAXException saxE) {\n return xmlExpt;\n } catch (IOException ioE) {\n return xmlExpt;\n } catch (Exception e) {\n return e.getMessage();\n }\n }", "com.synergyj.cursos.webservices.ordenes.XMLBFactura getXMLBFactura();", "public void startdirectCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge directCharge14,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/directChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n directCharge14,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directCharge\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectChargeResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultdirectCharge(\n (net.wit.webservice.TerminalServiceXmlServiceStub.DirectChargeResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrordirectCharge(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectCharge(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrordirectCharge(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrordirectCharge(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[7].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[7].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public void setFilaDatosExportarXmlAnalisisTransaCliente(AnalisisTransaCliente analisistransacliente,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(AnalisisTransaClienteConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(analisistransacliente.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(AnalisisTransaClienteConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(analisistransacliente.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(analisistransacliente.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementmodulo_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDMODULO);\r\n\t\telementmodulo_descripcion.appendChild(document.createTextNode(analisistransacliente.getmodulo_descripcion()));\r\n\t\telement.appendChild(elementmodulo_descripcion);\r\n\r\n\t\tElement elementnombre = document.createElement(AnalisisTransaClienteConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(analisistransacliente.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\r\n\t\tElement elementdescripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(analisistransacliente.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementtransaccion_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION);\r\n\t\telementtransaccion_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion_descripcion()));\r\n\t\telement.appendChild(elementtransaccion_descripcion);\r\n\r\n\t\tElement elementtransaccion1_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION1);\r\n\t\telementtransaccion1_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion1_descripcion()));\r\n\t\telement.appendChild(elementtransaccion1_descripcion);\r\n\r\n\t\tElement elementtransaccion2_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION2);\r\n\t\telementtransaccion2_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion2_descripcion()));\r\n\t\telement.appendChild(elementtransaccion2_descripcion);\r\n\r\n\t\tElement elementtransaccion3_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION3);\r\n\t\telementtransaccion3_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion3_descripcion()));\r\n\t\telement.appendChild(elementtransaccion3_descripcion);\r\n\r\n\t\tElement elementtransaccion4_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION4);\r\n\t\telementtransaccion4_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion4_descripcion()));\r\n\t\telement.appendChild(elementtransaccion4_descripcion);\r\n\r\n\t\tElement elementtransaccion5_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION5);\r\n\t\telementtransaccion5_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion5_descripcion()));\r\n\t\telement.appendChild(elementtransaccion5_descripcion);\r\n\r\n\t\tElement elementtransaccion6_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION6);\r\n\t\telementtransaccion6_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion6_descripcion()));\r\n\t\telement.appendChild(elementtransaccion6_descripcion);\r\n\r\n\t\tElement elementtransaccion7_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION7);\r\n\t\telementtransaccion7_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion7_descripcion()));\r\n\t\telement.appendChild(elementtransaccion7_descripcion);\r\n\r\n\t\tElement elementtransaccion8_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION8);\r\n\t\telementtransaccion8_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion8_descripcion()));\r\n\t\telement.appendChild(elementtransaccion8_descripcion);\r\n\r\n\t\tElement elementtransaccion9_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION9);\r\n\t\telementtransaccion9_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion9_descripcion()));\r\n\t\telement.appendChild(elementtransaccion9_descripcion);\r\n\r\n\t\tElement elementtransaccion10_descripcion = document.createElement(AnalisisTransaClienteConstantesFunciones.IDTRANSACCION10);\r\n\t\telementtransaccion10_descripcion.appendChild(document.createTextNode(analisistransacliente.gettransaccion10_descripcion()));\r\n\t\telement.appendChild(elementtransaccion10_descripcion);\r\n\t}", "public interface XmlService {\n\n\t/**\n\t * Parse response file.\n\t * \n\t * @param xmlPath\n\t * @param orderId\n\t * @param complete_on\n\t * @return\n\t * @throws JAXBException\n\t */\n ResponseMQ parseResponseFile(String xmlPath, Long orderId, Date complete_on) throws JAXBException;\n \n /**\n * \n * @param xml\n * @param orderId\n * @param complete_on\n * @return\n * @throws JAXBException\n */\n\tResponseMQ parseResponse(String xml, Long orderId, Date complete_on) throws JAXBException;\n\n\t/**\n\t * Generate change status request.\n\t * \n\t * @param requestMQ\n\t * @return result string or NULL\n\t */\n\tString generateChangeStatusRequest(RequestMQ requestMQ);\n\t\n}", "public static Parametros ConfiguracionParametros(String ruta){\n try{\n Parametros theParametros = new Parametros();\n List<EventoPuertaMagnetica> eventoPM = new ArrayList<>();\n File theXmlFile = new File(ruta + \"config.xml\");\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();\n Document doc = dBuilder.parse(theXmlFile);\n doc.getDocumentElement().normalize();\n\n String url_ws= doc.getDocumentElement().getElementsByTagName(\"Url_WebServices\").item(0).getTextContent();\n String id_port = doc.getDocumentElement().getElementsByTagName(\"Id_Portico\").item(0).getTextContent();\n String ip_bd = doc.getDocumentElement().getElementsByTagName(\"Base_Datos_IP\").item(0).getTextContent();\n String mani_puerta_chapa = doc.getDocumentElement().getElementsByTagName(\"Tiene_Chapa\").item(0).getTextContent();\n String dispo = doc.getDocumentElement().getElementsByTagName(\"Disposicion\").item(0).getTextContent();\n String crede_admin = doc.getDocumentElement().getElementsByTagName(\"Id_Crede_Administrador\").item(0).getTextContent();\n String loc_geo = doc.getDocumentElement().getElementsByTagName(\"Localizacion_Geografica\").item(0).getTextContent();\n\n NodeList events = doc.getDocumentElement().getElementsByTagName(\"Evento\"); //0 o mas ...\n for(int i=0; i< events.getLength(); i++){\n EventoPuertaMagnetica event = new EventoPuertaMagnetica();\n\n Node nodo = events.item(i);\n NodeList caracteristicasEvento = nodo.getChildNodes();\n\n String id_evento = caracteristicasEvento.item(0).getTextContent();\n String nombre_evento = caracteristicasEvento.item(1).getTextContent();\n\n event.set_U01B3F3(id_evento);\n event.set_DESTINO(nombre_evento);\n\n eventoPM.add(event);\n }\n theParametros.set_Url_WebServices(url_ws);\n theParametros.set_Id_Portico(id_port);\n theParametros.set_Base_Datos_IP(ip_bd);\n theParametros.set_Manipulacion_Puerta(mani_puerta_chapa);\n theParametros.set_Disposicion(dispo);\n theParametros.set_Id_CredencialAdmin(crede_admin);\n theParametros.set_Localizacion_Geografica(loc_geo);\n theParametros.set_Eventos(eventoPM);\n\n return theParametros;\n\n }catch (Exception ex){\n return null;\n }\n }", "public net.wit.webservice.TerminalServiceXmlServiceStub.DirectChargeResponse directCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge directCharge14)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[7].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/directChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n directCharge14,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directCharge\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectChargeResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.DirectChargeResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directCharge\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "public void setFilaDatosExportarXmlPagosAutorizados(PagosAutorizados pagosautorizados,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(PagosAutorizadosConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(pagosautorizados.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(PagosAutorizadosConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(pagosautorizados.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(PagosAutorizadosConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(pagosautorizados.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementfecha_corte = document.createElement(PagosAutorizadosConstantesFunciones.FECHACORTE0);\r\n\t\telementfecha_corte.appendChild(document.createTextNode(pagosautorizados.getfecha_corte().toString().trim()));\r\n\t\telement.appendChild(elementfecha_corte);\r\n\r\n\t\tElement elementnombre_cliente = document.createElement(PagosAutorizadosConstantesFunciones.NOMBRECLIENTE);\r\n\t\telementnombre_cliente.appendChild(document.createTextNode(pagosautorizados.getnombre_cliente().trim()));\r\n\t\telement.appendChild(elementnombre_cliente);\r\n\r\n\t\tElement elementnumero_factura = document.createElement(PagosAutorizadosConstantesFunciones.NUMEROFACTURA);\r\n\t\telementnumero_factura.appendChild(document.createTextNode(pagosautorizados.getnumero_factura().trim()));\r\n\t\telement.appendChild(elementnumero_factura);\r\n\r\n\t\tElement elementfecha_emision = document.createElement(PagosAutorizadosConstantesFunciones.FECHAEMISION);\r\n\t\telementfecha_emision.appendChild(document.createTextNode(pagosautorizados.getfecha_emision().toString().trim()));\r\n\t\telement.appendChild(elementfecha_emision);\r\n\r\n\t\tElement elementfecha_vencimiento = document.createElement(PagosAutorizadosConstantesFunciones.FECHAVENCIMIENTO);\r\n\t\telementfecha_vencimiento.appendChild(document.createTextNode(pagosautorizados.getfecha_vencimiento().toString().trim()));\r\n\t\telement.appendChild(elementfecha_vencimiento);\r\n\r\n\t\tElement elementnombre_banco = document.createElement(PagosAutorizadosConstantesFunciones.NOMBREBANCO);\r\n\t\telementnombre_banco.appendChild(document.createTextNode(pagosautorizados.getnombre_banco().trim()));\r\n\t\telement.appendChild(elementnombre_banco);\r\n\r\n\t\tElement elementvalor_por_pagar = document.createElement(PagosAutorizadosConstantesFunciones.VALORPORPAGAR);\r\n\t\telementvalor_por_pagar.appendChild(document.createTextNode(pagosautorizados.getvalor_por_pagar().toString().trim()));\r\n\t\telement.appendChild(elementvalor_por_pagar);\r\n\r\n\t\tElement elementvalor_cancelado = document.createElement(PagosAutorizadosConstantesFunciones.VALORCANCELADO);\r\n\t\telementvalor_cancelado.appendChild(document.createTextNode(pagosautorizados.getvalor_cancelado().toString().trim()));\r\n\t\telement.appendChild(elementvalor_cancelado);\r\n\r\n\t\tElement elementnumero_cuenta = document.createElement(PagosAutorizadosConstantesFunciones.NUMEROCUENTA);\r\n\t\telementnumero_cuenta.appendChild(document.createTextNode(pagosautorizados.getnumero_cuenta().trim()));\r\n\t\telement.appendChild(elementnumero_cuenta);\r\n\r\n\t\tElement elementesta_autorizado = document.createElement(PagosAutorizadosConstantesFunciones.ESTAAUTORIZADO);\r\n\t\telementesta_autorizado.appendChild(document.createTextNode(pagosautorizados.getesta_autorizado().toString().trim()));\r\n\t\telement.appendChild(elementesta_autorizado);\r\n\r\n\t\tElement elementdescripcion = document.createElement(PagosAutorizadosConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(pagosautorizados.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementfecha_corte_dato = document.createElement(PagosAutorizadosConstantesFunciones.FECHACORTE);\r\n\t\telementfecha_corte_dato.appendChild(document.createTextNode(pagosautorizados.getfecha_corte_dato().toString().trim()));\r\n\t\telement.appendChild(elementfecha_corte_dato);\r\n\r\n\t\tElement elementestado = document.createElement(PagosAutorizadosConstantesFunciones.ESTADO);\r\n\t\telementestado.appendChild(document.createTextNode(pagosautorizados.getestado().trim()));\r\n\t\telement.appendChild(elementestado);\r\n\r\n\t\tElement elementcodigo_cuenta_con_cliente = document.createElement(PagosAutorizadosConstantesFunciones.CODIGOCUENTACONCLIENTE);\r\n\t\telementcodigo_cuenta_con_cliente.appendChild(document.createTextNode(pagosautorizados.getcodigo_cuenta_con_cliente().trim()));\r\n\t\telement.appendChild(elementcodigo_cuenta_con_cliente);\r\n\r\n\t\tElement elementcodigo_cuenta_con_banco = document.createElement(PagosAutorizadosConstantesFunciones.CODIGOCUENTACONBANCO);\r\n\t\telementcodigo_cuenta_con_banco.appendChild(document.createTextNode(pagosautorizados.getcodigo_cuenta_con_banco().trim()));\r\n\t\telement.appendChild(elementcodigo_cuenta_con_banco);\r\n\t}", "public WebService_Detalle_alquiler_factura() {\n }", "public void startqqCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge qqCharge8,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/qqChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n qqCharge8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultqqCharge(\n (net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorqqCharge(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorqqCharge(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorqqCharge(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorqqCharge(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[4].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[4].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public HashMap<String, String> timbrarXML(String url_ws, String rfc, String clave,String ruta_xml,String produccion)\n\t{\n\t\tSystem.out.println(\"Ejecucion timbrarXML: \\n\\n\");\n\t\t\n\t\tString xml_tmp;\n\t\tString xml = null;\n\t\t\n\t\ttry {\n\t\t\t//LEO EL XML Y LO CONVIERTO A CADENA\n\t\t\txml_tmp = generar_Cadena(ruta_xml);\n\t\t\t//CONVIERTO EL XML A BASE64 PARA ENVIARL AL WS MULTIFACTURAS\n\t\t\txml=encode64(xml_tmp);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//SOLICITUD QUE SE ENVIARA AL WS MULTIFACTURAS\n\t\tstrRequest=\"<soapenv:Envelope xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:soapenv=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:urn=\\\"urn:wservicewsdl\\\">\"\n\t\t\t\t \t+\"<soapenv:Header/>\"\n\t\t\t\t \t\t+\"<soapenv:Body>\"\n \t\t+\"<urn:timbrar64 soapenv:encodingStyle=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\">\"\n \t\t\t+\"<rfc xsi:type=\\\"xsd:string\\\">\"+rfc+\"</rfc>\"\n \t\t\t+\"<clave xsi:type=\\\"xsd:string\\\">\"+clave+\"</clave>\"\n \t\t\t+\"<xml xsi:type=\\\"xsd:string\\\">\"+xml+\"</xml>\"\n \t\t\t+\"<produccion xsi:type=\\\"xsd:string\\\">\"+produccion+\"</produccion>\"\n \t\t+\"</urn:timbrar64>\"\n \t+\"</soapenv:Body>\"\n +\"</soapenv:Envelope>\";\n\t\t//IMPRIMIR SOLICITUD ENVIADA\n\t\t//System.out.println(strRequest);\t\t \n\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\t\tHttpPost postRequest = new HttpPost(url_ws);\n\t\tStringEntity input = null;\n\t\t\n\t\ttry {\n\t\t\tinput = new StringEntity(strRequest);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tinput.setContentType(\"text/xml\");\n\t\t//input.setContentEncoding(\"ISO-8859-1\");\n\t\t\n\t\tpostRequest.setEntity(input);\n\t\t\n\t\t//TRATAR LA RESPUESTA DEL WS\n\t\tHttpResponse response = null;\n\t\t\n\t\ttry {\n\t\t\tresponse = httpClient.execute(postRequest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tif (response.getStatusLine().getStatusCode() != 200) {\n\t\t\tthrow new RuntimeException(\"Error : C�digo de error HTTP : \" +response.getStatusLine().getStatusCode());\n\t\t}else{\n\t\t\t\n\t\t\tentity = response.getEntity();\n\t\t\tif (entity != null) {\n\t\t\t\tInputStream instream;\n try {\n\t\t\t\t\tinstream = entity.getContent();\n\t\t\t\t\tstrResponse = convertStreamToString(instream);\n\t //System.out.println(strResponse);\n\n\t\t\t\t\t//CIERRA EL INPUT STREAM PARA LIBERAR LA CONEXION PARA CONVERTIR LA RESPUESTA A STRING\n\t instream.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//OBTENER LA INFORMACION DE LA RESPUESTA DEL WS\n\t\t\tString xml_respuesta = strResponse;\n\n\t\t\tInputSource source = new InputSource(new StringReader(xml_respuesta));\n\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder db;\n\t\t\ttry {\n\t\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\t\tDocument document = db.parse(source);\n\t\t\t\t\n\t\t\t\tXPathFactory xpathFactory = XPathFactory.newInstance();\n\t\t\t\tXPath xpath = xpathFactory.newXPath();\n\n\t\t\t\tString cfdi64 = xpath.evaluate(\"//cfdi\", document);\n\t\t\t\tString png = xpath.evaluate(\"//png\", document);\n\t\t\t\tString idpac = xpath.evaluate(\"//idpac\", document);\n\t\t\t\tString produccion_ = xpath.evaluate(\"//produccion\", document);\n\t\t\t\tString codigo_mf_numero = xpath.evaluate(\"//codigo_mf_numero\", document);\n\t\t\t\tString codigo_mf_texto = xpath.evaluate(\"//codigo_mf_texto\", document);\n\t\t\t\tString mensaje_original_pac_json = xpath.evaluate(\"//mensaje_original_pac_json\", document);\n\t\t\t\tString cancelada = xpath.evaluate(\"//cancelada\", document);\n\t\t\t\tString saldo = xpath.evaluate(\"//saldo\", document);\n\t\t\t\tString uuid = xpath.evaluate(\"//uuid\", document);\n\t\t\t\tString servidor = xpath.evaluate(\"//servidor\", document);\n\t\t\t\tString ejecucion = xpath.evaluate(\"//ejecucion\", document);\n\t\t\t\t\n\t\t\t\t//convertir cfdi (base64) a xml normal\n\t\t\t\tString cfdi=decode64(cfdi64);\n\t\t\t\t\n\t\t\t\trespuestaMultifacturas= new HashMap<String, String>();\n\t\t\t\t\n\t\t\t\trespuestaMultifacturas.put(\"cfdi64\",cfdi64);\n\t\t\t\trespuestaMultifacturas.put(\"cfdi\",cfdi);\n\t\t\t\trespuestaMultifacturas.put(\"png\",png);\n\t\t\t\trespuestaMultifacturas.put(\"idpac\",idpac);\n\t\t\t\trespuestaMultifacturas.put(\"produccion\",produccion_);\n\t\t\t\trespuestaMultifacturas.put(\"codigo_mf_numero\",codigo_mf_numero);\n\t\t\t\trespuestaMultifacturas.put(\"codigo_mf_texto\",codigo_mf_texto);\n\t\t\t\trespuestaMultifacturas.put(\"mensaje_original_pac_json\",mensaje_original_pac_json);\n\t\t\t\trespuestaMultifacturas.put(\"cancelada\",cancelada);\n\t\t\t\trespuestaMultifacturas.put(\"saldo\",saldo);\n\t\t\t\trespuestaMultifacturas.put(\"uuid\",uuid);\n\t\t\t\trespuestaMultifacturas.put(\"servidor\",servidor);\n\t\t\t\trespuestaMultifacturas.put(\"ejecucion\",ejecucion);\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\tSystem.out.println(\"cfdi=\" + cfdi);\n\t\t\t\tSystem.out.println(\"xml_cfdi=\" + xml_cfdi);\n\t\t\t\tSystem.out.println(\"png=\" + png);\n\t\t\t\tSystem.out.println(\"idpac=\" + idpac);\n\t\t\t\tSystem.out.println(\"produccion=\" + produccion);\n\t\t\t\tSystem.out.println(\"codigo_mf_numero=\" + codigo_mf_numero);\n\t\t\t\tSystem.out.println(\"codigo_mf_texto=\" + codigo_mf_texto);\n\t\t\t\tSystem.out.println(\"mensaje_original_pac_json=\" + mensaje_original_pac_json);\n\t\t\t\tSystem.out.println(\"cancelada=\" + cancelada);\n\t\t\t\tSystem.out.println(\"saldo=\" + saldo);\n\t\t\t\tSystem.out.println(\"uuid=\" + uuid);\n\t\t\t\tSystem.out.println(\"servidor=\" + servidor);\n\t\t\t\tSystem.out.println(\"ejecucion=\" + ejecucion);\n\t\t\t\t*/\n\t\t\t} catch (Throwable e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t//CIERRA LA CONEXION CON EL WS\n\t\tif (httpClient != null) httpClient.getConnectionManager().shutdown();\n\t\t\n\t\treturn respuestaMultifacturas;\n\t}", "@GET\r\n @Produces(MediaType.APPLICATION_JSON)\r\n @Path(\"ServicioMonto/list\")\r\n public ArrayList<ServicioMonto> getXmlc() throws Exception {\n ArrayList<ServicioMonto> lista=new ArrayList<ServicioMonto>();\r\n lista=ServicioMonto.servicio_monto();\r\n return lista;\r\n }", "@Override\n protected Integer doInBackground(String... params) {\n int _retorno = 0;\n try{\n this.so=new SoapObject(NAMESPACE, METHOD_NAME);\n this.so.addProperty(\"id_interno\", params[0]);\n this.so.addProperty(\"rutas_cargadas\", params[1]);\n this.so.addProperty(\"fecha_movil\", params[2]);\n this.so.addProperty(\"hora_movil\", params[3]);\n this.sse=new SoapSerializationEnvelope(SoapEnvelope.VER11);\n this.sse.dotNet=true;\n this.sse.setOutputSoapObject(this.so);\n this.htse=new HttpTransportSE(URL);\n this.htse.call(SOAP_ACTION, this.sse);\n this.response=(SoapPrimitive) this.sse.getResponse();\n\n /**Inicio de tratamiento de la informacion recibida**/\n if(response.toString()==null) {\n _retorno = -1;\n }else if(response.toString().isEmpty()){\n _retorno = -2;\n }else{\n String informacion[] = response.toString().split(\"\\\\n\");\n if(informacion[0].equals(\"1\")){\n if(informacion.length>1){\n for(int i=1;i<informacion.length;i++){\n this.FcnInformacion.CargarTrabajo(informacion[i],\"\\\\|\", i);\n this.onProgressUpdate(i*100/informacion.length);\n _retorno = 1;\n }\n }else{\n _retorno = 2;\n }\n }else if(informacion[0].equals(\"-1\")){\n _retorno = -3;\n }else if(informacion[0].equals(\"-2\")){\n _retorno = -4;\n }\n }\n }catch (IOException e) {\n e.printStackTrace();\n _retorno = -5;\n }catch (Exception e) {\n e.toString();\n _retorno = -6;\n }finally{\n if(this.htse != null){\n this.htse.reset();\n try {\n this.htse.getServiceConnection().disconnect();\n } catch (IOException e) {\n e.printStackTrace();\n _retorno = -7;\n }\n }\n }\n return _retorno;\n }", "@WebService(wsdlLocation=\"http://portal.marketplace.losalpes.com.co:7001/soa-infra/services/default/ProcesoRetornoMaterial/returnmaterialadvice_client_ep?WSDL\",\n targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"ReturnMaterialAdvice\")\n@XmlSeeAlso(\n { co.com.losalpes.marketplace.ws.retornoMaterial.types.ObjectFactory.class })\npublic interface ReturnMaterialAdvice\n{\n @WebMethod(action=\"process\")\n @Action(input=\"process\", output=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice/ReturnMaterialAdvice/processResponse\")\n @ResponseWrapper(localName=\"processResponse\", targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n className=\"co.com.losalpes.marketplace.ws.retornoMaterial.types.ProcessResponse\")\n @RequestWrapper(localName=\"process\", targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n className=\"co.com.losalpes.marketplace.ws.retornoMaterial.types.Process\")\n @WebResult(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"numSeguimientoRMA\")\n public String process(@WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"causa\")\n String causa, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"fecha\")\n XMLGregorianCalendar fecha, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"cantidadProducto\")\n int cantidadProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"valorProducto\")\n long valorProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"nombreProducto\")\n String nombreProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"categoriaProducto\")\n String categoriaProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"referenciaProducto\")\n String referenciaProducto, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"numSeguimientoPO\")\n String numSeguimientoPO, @WebParam(targetNamespace=\"http://xmlns.oracle.com/MarketPlace_jws/ProcesoRetornoMaterial/ReturnMaterialAdvice\",\n name=\"numSeguimientoDA\")\n String numSeguimientoDA);\n}", "private static RetornoExtrato parse(String xmlExtrato) throws Exception\n\t{\n\t\tRetornoExtrato result = new RetornoExtrato();\n\t\t\n\t\ttry\n\t\t{\t\t\t\t\t\n\t\t\t//Obtendo os objetos necessarios para a execucao do parse do xml\n\t\t\tDocumentBuilderFactory docBuilder = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder parse = docBuilder.newDocumentBuilder();\n\t\t\tInputSource is = new InputSource(new StringReader(xmlExtrato));\n\t\t\tDocument doc = parse.parse(is);\n\n\t\t\tVector v = new Vector();\n\t\t\n\t\t\tExtrato extrato = null;\n\t\t\t\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t\n\t\t\t//Obter o índice de recarga\n\t\t\tElement elmDadosControle = (Element)doc.getElementsByTagName(\"dadosControle\").item(0);\n\t\t\tNodeList nlDadosControle = elmDadosControle.getChildNodes();\n\t\t\tif(nlDadosControle.getLength() > 0)\n\t\t\t{\n\t\t\t\tresult.setIndAssinanteLigMix(nlDadosControle.item(0).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setPlanoPreco\t\t(nlDadosControle.item(1).getChildNodes().item(0).getNodeValue());\n\t\t\t}\n\t\t\n\t\t\tfor (int i=0; i < doc.getElementsByTagName( \"detalhe\" ).getLength(); i++)\n\t\t\t{\n\t\t\t\tElement serviceElement = (Element) doc.getElementsByTagName( \"detalhe\" ).item(i);\n\t\t\t\tNodeList itemNodes = serviceElement.getChildNodes();\n\t\t\t\tif (itemNodes.getLength() > 0)\n\t\t\t\t{\t\n\t\t\t\t\textrato = new Extrato();\n\t\t\t\t\textrato.setNumeroOrigem(itemNodes.item(1).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\textrato.setData(itemNodes.item(2).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\textrato.setHoraChamada(itemNodes.item(3).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\textrato.setTipoTarifacao(itemNodes.item(4).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\textrato.setOperacao(itemNodes.item(5).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\textrato.setRegiaoOrigem(itemNodes.item(6).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\textrato.setRegiaoDestino(itemNodes.item(7).getChildNodes().item(0)!=null?itemNodes.item(7).getChildNodes().item(0).getNodeValue():\"\");\n\t\t\t\t\textrato.setNumeroDestino(itemNodes.item(8).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\textrato.setDuracaoChamada(itemNodes.item(9).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\t\n\t\t\t\t\textrato.setValorPrincipal\t(stringToDouble(itemNodes.item(10).getChildNodes().item(0).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setValorBonus\t\t(stringToDouble(itemNodes.item(10).getChildNodes().item(1).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setValorSMS\t\t\t(stringToDouble(itemNodes.item(10).getChildNodes().item(2).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setValorGPRS\t\t(stringToDouble(itemNodes.item(10).getChildNodes().item(3).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setValorPeriodico\t(stringToDouble(itemNodes.item(10).getChildNodes().item(4).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setValorTotal\t\t(stringToDouble(itemNodes.item(10).getChildNodes().item(5).getChildNodes().item(0).getNodeValue()));\n\n\t\t\t\t\textrato.setSaldoPrincipal\t(stringToDouble(itemNodes.item(11).getChildNodes().item(0).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setSaldoBonus\t\t(stringToDouble(itemNodes.item(11).getChildNodes().item(1).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setSaldoSMS\t\t\t(stringToDouble(itemNodes.item(11).getChildNodes().item(2).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setSaldoGPRS\t\t(stringToDouble(itemNodes.item(11).getChildNodes().item(3).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setSaldoPeriodico\t(stringToDouble(itemNodes.item(11).getChildNodes().item(4).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\textrato.setSaldoTotal\t\t(stringToDouble(itemNodes.item(11).getChildNodes().item(5).getChildNodes().item(0).getNodeValue()));\n\t\t\t\t\t\n\t\t\t\t\tv.add(extrato);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresult.setExtratos(v);\n\t\t\t\n\t\t\tv= new Vector();\n\t\t\t\n\t\t\tfor (int i=0; i < doc.getElementsByTagName( \"evento\" ).getLength(); i++)\n\t\t\t{\n\t\t\t\tElement serviceElement = (Element) doc.getElementsByTagName( \"evento\" ).item(i);\n\t\t\t\tNodeList itemNodes = serviceElement.getChildNodes();\n\n\t\t\t\tif (itemNodes.getLength() > 0)\n\t\t\t\t{\n\t\t\t\t\tEvento evento = new Evento();\n\t\t\t\t\tevento.setNome(itemNodes.item(1).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\tevento.setData(itemNodes.item(2).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\tevento.setHora(itemNodes.item(3).getChildNodes().item(0).getNodeValue());\n\t\t\t\t\tv.add(evento);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tresult.setEventos(v);\n\t\t\t\n\t\t\tElement serviceElement = (Element) doc.getElementsByTagName( \"totais\" ).item(0);\n\t\t\tNodeList itemNodes = serviceElement.getChildNodes();\n\t\t\tif (itemNodes.getLength() > 0)\n\t\t\t{\t\n\t\t\t\t// SaldoInicial Principal\n\t\t\t\tresult.setSaldoInicialPrincipal\t(itemNodes.item(0).getChildNodes().item(0).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoInicialBonus\t\t(itemNodes.item(0).getChildNodes().item(1).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoInicialSMS\t\t(itemNodes.item(0).getChildNodes().item(2).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoInicialGPRS\t\t(itemNodes.item(0).getChildNodes().item(3).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoInicialPeriodico\t(itemNodes.item(0).getChildNodes().item(4).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoInicialTotal\t\t(itemNodes.item(0).getChildNodes().item(5).getChildNodes().item(0).getNodeValue());\n\n\t\t\t\tresult.setTotalDebitosPrincipal\t(itemNodes.item(1).getChildNodes().item(0).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalDebitosBonus\t\t(itemNodes.item(1).getChildNodes().item(1).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalDebitosSMS\t\t(itemNodes.item(1).getChildNodes().item(2).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalDebitosGPRS\t\t(itemNodes.item(1).getChildNodes().item(3).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalDebitosPeriodico (itemNodes.item(1).getChildNodes().item(4).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalDebitosTotal\t\t(itemNodes.item(1).getChildNodes().item(5).getChildNodes().item(0).getNodeValue());\n\n\t\t\t\tresult.setTotalCreditosPrincipal(itemNodes.item(2).getChildNodes().item(0).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalCreditosBonus\t(itemNodes.item(2).getChildNodes().item(1).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalCreditosSMS\t\t(itemNodes.item(2).getChildNodes().item(2).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalCreditosGPRS\t\t(itemNodes.item(2).getChildNodes().item(3).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalCreditosPeriodico(itemNodes.item(2).getChildNodes().item(4).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setTotalCreditosTotal\t(itemNodes.item(2).getChildNodes().item(5).getChildNodes().item(0).getNodeValue());\n\n\t\t\t\tresult.setSaldoFinalPrincipal\t(itemNodes.item(3).getChildNodes().item(0).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoFinalBonus\t\t(itemNodes.item(3).getChildNodes().item(1).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoFinalSMS\t\t\t(itemNodes.item(3).getChildNodes().item(2).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoFinalGPRS\t\t(itemNodes.item(3).getChildNodes().item(3).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoFinalPeriodico\t(itemNodes.item(3).getChildNodes().item(4).getChildNodes().item(0).getNodeValue());\n\t\t\t\tresult.setSaldoFinalTotal\t\t(itemNodes.item(3).getChildNodes().item(5).getChildNodes().item(0).getNodeValue());\n\n\t\t\t\tserviceElement = (Element) doc.getElementsByTagName( \"dadosCadastrais\" ).item(0);\n\t\t\t\titemNodes = serviceElement.getChildNodes();\n\n\t\t\t\tif (itemNodes.item(2).getChildNodes().item(0) != null)\n\t\t\t\t{\n\t\t\t\t\tresult.setDataAtivacao(itemNodes.item(2).getChildNodes().item(0).getNodeValue());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (itemNodes.item(3).getChildNodes().item(0) != null)\n\t\t\t\t{\n\t\t\t\t\tresult.setPlano(itemNodes.item(3).getChildNodes().item(0).getNodeValue());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tthrow new Exception(\"Problemas com a geração do Comprovante de Serviços.\");\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "private void cargarWebService() {\n String iddoc = \"20181\";\n String url_lh = Globals.url;\n\n //String url = \"http://192.168.0.13/proyecto_dconfo/wsJSONConsultarListaCursosDocente.php?iddocente=\" + txtiddoc.getText().toString();\n\n // String url = \"http://\"+url_lh+\"/proyecto_dconfo/wsJSONConsultarListaCursosDocente.php?iddocente=\" + txtiddoc.getText().toString();\n String url = \"http://\" + url_lh + \"/proyecto_dconfo_v1/wsJSON1ConsultarListaImagenes.php\";\n // http://localhost/proyecto_dconfo/\n///wsJSONConsultarEstudiante.php?documento=\" + edt_codigo.getText().toString();\n url = url.replace(\" \", \"%20\");\n //hace el llamado a la url\n jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, this, this);\n\n final int MY_DEFAULT_TIMEOUT = 15000;\n jsonObjectRequest.setRetryPolicy(new DefaultRetryPolicy(\n MY_DEFAULT_TIMEOUT,\n DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n\n // request.add(jsonObjectRequest);\n VolleySingleton.getIntanciaVolley(getApplicationContext()).addToRequestQueue(jsonObjectRequest);//p21\n //Toast.makeText(getApplicationContext(), \"web service 1111\", Toast.LENGTH_LONG).show();\n }", "public void setFilaDatosExportarXmlFacturaPuntoVenta(FacturaPuntoVenta facturapuntoventa,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(FacturaPuntoVentaConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(facturapuntoventa.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(FacturaPuntoVentaConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(facturapuntoventa.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(facturapuntoventa.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(facturapuntoventa.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementusuario_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDUSUARIO);\r\n\t\telementusuario_descripcion.appendChild(document.createTextNode(facturapuntoventa.getusuario_descripcion()));\r\n\t\telement.appendChild(elementusuario_descripcion);\r\n\r\n\t\tElement elementvendedor_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDVENDEDOR);\r\n\t\telementvendedor_descripcion.appendChild(document.createTextNode(facturapuntoventa.getvendedor_descripcion()));\r\n\t\telement.appendChild(elementvendedor_descripcion);\r\n\r\n\t\tElement elementcliente_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDCLIENTE);\r\n\t\telementcliente_descripcion.appendChild(document.createTextNode(facturapuntoventa.getcliente_descripcion()));\r\n\t\telement.appendChild(elementcliente_descripcion);\r\n\r\n\t\tElement elementcaja_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDCAJA);\r\n\t\telementcaja_descripcion.appendChild(document.createTextNode(facturapuntoventa.getcaja_descripcion()));\r\n\t\telement.appendChild(elementcaja_descripcion);\r\n\r\n\t\tElement elementtipoprecio_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDTIPOPRECIO);\r\n\t\telementtipoprecio_descripcion.appendChild(document.createTextNode(facturapuntoventa.gettipoprecio_descripcion()));\r\n\t\telement.appendChild(elementtipoprecio_descripcion);\r\n\r\n\t\tElement elementmesa_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDMESA);\r\n\t\telementmesa_descripcion.appendChild(document.createTextNode(facturapuntoventa.getmesa_descripcion()));\r\n\t\telement.appendChild(elementmesa_descripcion);\r\n\r\n\t\tElement elementformato_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDFORMATO);\r\n\t\telementformato_descripcion.appendChild(document.createTextNode(facturapuntoventa.getformato_descripcion()));\r\n\t\telement.appendChild(elementformato_descripcion);\r\n\r\n\t\tElement elementtipofacturapuntoventa_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDTIPOFACTURAPUNTOVENTA);\r\n\t\telementtipofacturapuntoventa_descripcion.appendChild(document.createTextNode(facturapuntoventa.gettipofacturapuntoventa_descripcion()));\r\n\t\telement.appendChild(elementtipofacturapuntoventa_descripcion);\r\n\r\n\t\tElement elementestadofacturapuntoventa_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDESTADOFACTURAPUNTOVENTA);\r\n\t\telementestadofacturapuntoventa_descripcion.appendChild(document.createTextNode(facturapuntoventa.getestadofacturapuntoventa_descripcion()));\r\n\t\telement.appendChild(elementestadofacturapuntoventa_descripcion);\r\n\r\n\t\tElement elementasientocontable_descripcion = document.createElement(FacturaPuntoVentaConstantesFunciones.IDASIENTOCONTABLE);\r\n\t\telementasientocontable_descripcion.appendChild(document.createTextNode(facturapuntoventa.getasientocontable_descripcion()));\r\n\t\telement.appendChild(elementasientocontable_descripcion);\r\n\r\n\t\tElement elementnumero_secuencial = document.createElement(FacturaPuntoVentaConstantesFunciones.NUMEROSECUENCIAL);\r\n\t\telementnumero_secuencial.appendChild(document.createTextNode(facturapuntoventa.getnumero_secuencial().trim()));\r\n\t\telement.appendChild(elementnumero_secuencial);\r\n\r\n\t\tElement elementcodigo_cliente = document.createElement(FacturaPuntoVentaConstantesFunciones.CODIGOCLIENTE);\r\n\t\telementcodigo_cliente.appendChild(document.createTextNode(facturapuntoventa.getcodigo_cliente().trim()));\r\n\t\telement.appendChild(elementcodigo_cliente);\r\n\r\n\t\tElement elementnombre_cliente = document.createElement(FacturaPuntoVentaConstantesFunciones.NOMBRECLIENTE);\r\n\t\telementnombre_cliente.appendChild(document.createTextNode(facturapuntoventa.getnombre_cliente().trim()));\r\n\t\telement.appendChild(elementnombre_cliente);\r\n\r\n\t\tElement elementtarjeta_cliente = document.createElement(FacturaPuntoVentaConstantesFunciones.TARJETACLIENTE);\r\n\t\telementtarjeta_cliente.appendChild(document.createTextNode(facturapuntoventa.gettarjeta_cliente().trim()));\r\n\t\telement.appendChild(elementtarjeta_cliente);\r\n\r\n\t\tElement elementdireccion_cliente = document.createElement(FacturaPuntoVentaConstantesFunciones.DIRECCIONCLIENTE);\r\n\t\telementdireccion_cliente.appendChild(document.createTextNode(facturapuntoventa.getdireccion_cliente().trim()));\r\n\t\telement.appendChild(elementdireccion_cliente);\r\n\r\n\t\tElement elementtelefono_cliente = document.createElement(FacturaPuntoVentaConstantesFunciones.TELEFONOCLIENTE);\r\n\t\telementtelefono_cliente.appendChild(document.createTextNode(facturapuntoventa.gettelefono_cliente().trim()));\r\n\t\telement.appendChild(elementtelefono_cliente);\r\n\r\n\t\tElement elementfecha = document.createElement(FacturaPuntoVentaConstantesFunciones.FECHA);\r\n\t\telementfecha.appendChild(document.createTextNode(facturapuntoventa.getfecha().toString().trim()));\r\n\t\telement.appendChild(elementfecha);\r\n\r\n\t\tElement elementhora = document.createElement(FacturaPuntoVentaConstantesFunciones.HORA);\r\n\t\telementhora.appendChild(document.createTextNode(facturapuntoventa.gethora().toString().trim()));\r\n\t\telement.appendChild(elementhora);\r\n\r\n\t\tElement elementtotal_iva = document.createElement(FacturaPuntoVentaConstantesFunciones.TOTALIVA);\r\n\t\telementtotal_iva.appendChild(document.createTextNode(facturapuntoventa.gettotal_iva().toString().trim()));\r\n\t\telement.appendChild(elementtotal_iva);\r\n\r\n\t\tElement elementtotal_sin_iva = document.createElement(FacturaPuntoVentaConstantesFunciones.TOTALSINIVA);\r\n\t\telementtotal_sin_iva.appendChild(document.createTextNode(facturapuntoventa.gettotal_sin_iva().toString().trim()));\r\n\t\telement.appendChild(elementtotal_sin_iva);\r\n\r\n\t\tElement elementiva = document.createElement(FacturaPuntoVentaConstantesFunciones.IVA);\r\n\t\telementiva.appendChild(document.createTextNode(facturapuntoventa.getiva().toString().trim()));\r\n\t\telement.appendChild(elementiva);\r\n\r\n\t\tElement elementdescuento = document.createElement(FacturaPuntoVentaConstantesFunciones.DESCUENTO);\r\n\t\telementdescuento.appendChild(document.createTextNode(facturapuntoventa.getdescuento().toString().trim()));\r\n\t\telement.appendChild(elementdescuento);\r\n\r\n\t\tElement elementfinanciamiento = document.createElement(FacturaPuntoVentaConstantesFunciones.FINANCIAMIENTO);\r\n\t\telementfinanciamiento.appendChild(document.createTextNode(facturapuntoventa.getfinanciamiento().toString().trim()));\r\n\t\telement.appendChild(elementfinanciamiento);\r\n\r\n\t\tElement elementflete = document.createElement(FacturaPuntoVentaConstantesFunciones.FLETE);\r\n\t\telementflete.appendChild(document.createTextNode(facturapuntoventa.getflete().toString().trim()));\r\n\t\telement.appendChild(elementflete);\r\n\r\n\t\tElement elementice = document.createElement(FacturaPuntoVentaConstantesFunciones.ICE);\r\n\t\telementice.appendChild(document.createTextNode(facturapuntoventa.getice().toString().trim()));\r\n\t\telement.appendChild(elementice);\r\n\r\n\t\tElement elementotros = document.createElement(FacturaPuntoVentaConstantesFunciones.OTROS);\r\n\t\telementotros.appendChild(document.createTextNode(facturapuntoventa.getotros().toString().trim()));\r\n\t\telement.appendChild(elementotros);\r\n\r\n\t\tElement elementsub_total = document.createElement(FacturaPuntoVentaConstantesFunciones.SUBTOTAL);\r\n\t\telementsub_total.appendChild(document.createTextNode(facturapuntoventa.getsub_total().toString().trim()));\r\n\t\telement.appendChild(elementsub_total);\r\n\r\n\t\tElement elementtotal = document.createElement(FacturaPuntoVentaConstantesFunciones.TOTAL);\r\n\t\telementtotal.appendChild(document.createTextNode(facturapuntoventa.gettotal().toString().trim()));\r\n\t\telement.appendChild(elementtotal);\r\n\t}", "public void startgetDirectSrvInfo(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo getDirectSrvInfo10,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/getDirectSrvInfoRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getDirectSrvInfo10,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectSrvInfo\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectSrvInfo\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfoResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultgetDirectSrvInfo(\n (net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfoResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetDirectSrvInfo(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectSrvInfo\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectSrvInfo\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectSrvInfo\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectSrvInfo(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectSrvInfo(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectSrvInfo(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectSrvInfo(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectSrvInfo(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectSrvInfo(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectSrvInfo(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectSrvInfo(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectSrvInfo(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectSrvInfo(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectSrvInfo(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetDirectSrvInfo(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[5].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[5].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public void setFilaDatosExportarXmlCostoGastoImpor(CostoGastoImpor costogastoimpor,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(CostoGastoImporConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(costogastoimpor.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(CostoGastoImporConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(costogastoimpor.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(CostoGastoImporConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(costogastoimpor.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(CostoGastoImporConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(costogastoimpor.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementtipocostogastoimpor_descripcion = document.createElement(CostoGastoImporConstantesFunciones.IDTIPOCOSTOGASTOIMPOR);\r\n\t\telementtipocostogastoimpor_descripcion.appendChild(document.createTextNode(costogastoimpor.gettipocostogastoimpor_descripcion()));\r\n\t\telement.appendChild(elementtipocostogastoimpor_descripcion);\r\n\r\n\t\tElement elementnombre = document.createElement(CostoGastoImporConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(costogastoimpor.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\r\n\t\tElement elementes_activo = document.createElement(CostoGastoImporConstantesFunciones.ESACTIVO);\r\n\t\telementes_activo.appendChild(document.createTextNode(costogastoimpor.getes_activo().toString().trim()));\r\n\t\telement.appendChild(elementes_activo);\r\n\r\n\t\tElement elementcon_agrupa = document.createElement(CostoGastoImporConstantesFunciones.CONAGRUPA);\r\n\t\telementcon_agrupa.appendChild(document.createTextNode(costogastoimpor.getcon_agrupa().toString().trim()));\r\n\t\telement.appendChild(elementcon_agrupa);\r\n\r\n\t\tElement elementcon_prorratea = document.createElement(CostoGastoImporConstantesFunciones.CONPRORRATEA);\r\n\t\telementcon_prorratea.appendChild(document.createTextNode(costogastoimpor.getcon_prorratea().toString().trim()));\r\n\t\telement.appendChild(elementcon_prorratea);\r\n\r\n\t\tElement elementcon_factura = document.createElement(CostoGastoImporConstantesFunciones.CONFACTURA);\r\n\t\telementcon_factura.appendChild(document.createTextNode(costogastoimpor.getcon_factura().toString().trim()));\r\n\t\telement.appendChild(elementcon_factura);\r\n\r\n\t\tElement elementcon_flete = document.createElement(CostoGastoImporConstantesFunciones.CONFLETE);\r\n\t\telementcon_flete.appendChild(document.createTextNode(costogastoimpor.getcon_flete().toString().trim()));\r\n\t\telement.appendChild(elementcon_flete);\r\n\r\n\t\tElement elementcon_arancel = document.createElement(CostoGastoImporConstantesFunciones.CONARANCEL);\r\n\t\telementcon_arancel.appendChild(document.createTextNode(costogastoimpor.getcon_arancel().toString().trim()));\r\n\t\telement.appendChild(elementcon_arancel);\r\n\r\n\t\tElement elementcon_seguro = document.createElement(CostoGastoImporConstantesFunciones.CONSEGURO);\r\n\t\telementcon_seguro.appendChild(document.createTextNode(costogastoimpor.getcon_seguro().toString().trim()));\r\n\t\telement.appendChild(elementcon_seguro);\r\n\r\n\t\tElement elementcon_total_general = document.createElement(CostoGastoImporConstantesFunciones.CONTOTALGENERAL);\r\n\t\telementcon_total_general.appendChild(document.createTextNode(costogastoimpor.getcon_total_general().toString().trim()));\r\n\t\telement.appendChild(elementcon_total_general);\r\n\r\n\t\tElement elementcon_digitado = document.createElement(CostoGastoImporConstantesFunciones.CONDIGITADO);\r\n\t\telementcon_digitado.appendChild(document.createTextNode(costogastoimpor.getcon_digitado().toString().trim()));\r\n\t\telement.appendChild(elementcon_digitado);\r\n\t}", "public List<Commande> commandesAvecCriteres(Map<String, String> criteres, String idClient) {\n List<Commande> targetCommandes = new ArrayList<Commande>();\n //Trouver tous les factures correspondants\n List<String> targetFactures = new ArrayList<String>();\n for (String f : nomsFactures()) {\n if (f.contains(idClient)) {\n targetFactures.add(f);\n }\n };\n\n int targetCritere = 0;\n for (String filepath : targetFactures) {\n\n List<String> plats = new ArrayList<String>();\n List<String> films = new ArrayList<String>();\n String prix = \"\";\n String id = \"\";\n String date = \"\";\n String adresseLivraison = \"\";\n String idClientStr = \"\";\n\n boolean matchingCommand = false;\n boolean bCommande = false;\n boolean bIdPlat = false;\n boolean bIdClient = false;\n boolean bFilm = false;\n try {\n XMLInputFactory factory = XMLInputFactory.newInstance();\n XMLEventReader eventReader\n = factory.createXMLEventReader(new FileReader(\"factures/\" + filepath));\n\n while (eventReader.hasNext()) {\n XMLEvent event = eventReader.nextEvent();\n\n for (Map.Entry<String, String> o : criteres.entrySet()) {\n switch (event.getEventType()) {\n\n case XMLStreamConstants.START_ELEMENT:\n StartElement startElement = event.asStartElement();\n String qName = startElement.getName().getLocalPart();\n\n if (qName.equalsIgnoreCase(\"facture\")) {\n\n id = startElement.getAttributeByName(QName.valueOf(\"id\")).getValue();\n prix = startElement.getAttributeByName(QName.valueOf(\"prix\")).getValue();\n adresseLivraison = startElement.getAttributeByName(QName.valueOf(\"adresseLivraison\")).getValue();\n date = startElement.getAttributeByName(QName.valueOf(\"date\")).getValue();\n bCommande = true;\n } else if (qName.equalsIgnoreCase(\"idClient\")) {\n\n bIdClient = true;\n } else if (qName.equalsIgnoreCase(\"idPlat\")) {\n bIdPlat = true;\n } else if (qName.equalsIgnoreCase(\"film\")) {\n bFilm = true;\n }\n\n break;\n\n case XMLStreamConstants.CHARACTERS:\n Characters characters = event.asCharacters();\n\n if (bIdPlat) {\n plats.add(characters.getData());\n bIdPlat = false;\n } else if (bFilm) {\n films.add(characters.getData());\n bFilm = false;\n } else if (bIdClient) {\n idClientStr = characters.getData();\n bIdClient = false;\n }\n\n break;\n\n case XMLStreamConstants.END_ELEMENT:\n EndElement endElement = event.asEndElement();\n\n if (endElement.getName().getLocalPart().equalsIgnoreCase(\"facture\")) {\n\n Commande commande = new Commande();\n commande.setAdresseLivraison(adresseLivraison);\n commande.setDate(date);\n commande.setId(id);\n commande.setPrix(Double.parseDouble(prix));\n commande.setIdClient(idClientStr);\n commande.getIdFilms().addAll(films);\n commande.getIdPlats().addAll(plats);\n targetCommandes.add(commande);\n }\n break;\n }\n }\n }\n\n } catch (Exception e) {\n System.out.println(\"Exception: \" + e);\n }\n }\n return targetCommandes;\n }", "@Test\r\n public void TestEnvioXML() {\n String expected = \"{\\\"estado\\\":\\\"DEVUELTA\\\",\\\"comprobantes\\\":[{\\\"claveAcceso\\\":\\\"3110201901099000573700120010011183877400105361110\\\",\\\"mensajes\\\":[{\\\"identificador\\\":\\\"65\\\",\\\"mensaje\\\":\\\"FECHA EMISIÓN EXTEMPORANEA\\\",\\\"informacionAdicional\\\":\\\"La fecha de emisión está fuera del rango de tolerancia [43201 minutos], o es mayor a la fecha del servidor\\\",\\\"tipo\\\":\\\"ERROR\\\",\\\"__hashCodeCalc\\\":false}],\\\"__hashCodeCalc\\\":false}],\\\"__hashCodeCalc\\\":false}\";\r\n try {\r\n EnvioComprobantesWs comprobantesWs = new EnvioComprobantesWs(\r\n \"https://celcer.sri.gob.ec/comprobantes-electronicos-ws/RecepcionComprobantesOffline?wsdl\");\r\n String path = \"src/main/resources/expected/0990005737001-01-001-001-118387740-autorizado.xml\";\r\n File file = new File(path);\r\n System.out.println(\"Name file:\" + file.getName());\r\n System.out.println(\"path file:\" + file.getAbsolutePath());\r\n byte[] xml = Files.readAllBytes(file.toPath());\r\n // act\r\n RespuestaSolicitud result = comprobantesWs.enviarComprobanteLotes(\"\", xml, \"\", \"\");\r\n // assert\r\n Gson gson = new Gson();\r\n\r\n // System.out.println(comprobantesWs.obtenerMensajeRespuesta(result));\r\n String res = gson.toJson(result);\r\n System.out.println(gson.toJson(res));\r\n assertEquals(expected, res);\r\n\r\n } catch (Exception e) {\r\n\r\n System.err.println(\"\" + e.getMessage());\r\n assertEquals(expected, e.getMessage());\r\n }\r\n\r\n }", "@WebService(name = \"InformacionClientePort\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({ ObjectFactory.class })\npublic interface InformacionClientePort {\n\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.ListaCLienteType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/consultarClientes\")\n @WebResult(name = \"consultarClientesRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public ListaCLienteType consultarClientes(@WebParam(name = \"consultarClientesRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n /**\n *\n * @param parameters\n * @return\n * returns com.soaint.informacioncliente.MoraType\n */\n @WebMethod(action = \"http://www.soaint.com/InformacionCliente/clientePoseeMora\")\n @WebResult(name = \"clientePoseeMoraRs\", targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\")\n public MoraType clientePoseeMora(@WebParam(name = \"clientePoseeMoraRq\",\n targetNamespace = \"http://www.soaint.com/InformacionCliente/\",\n partName = \"parameters\") ClienteType parameters);\n\n}", "@Override\r\n\tpublic void iniciarSesion() {\n\t\tthis.contextoOrdenMenosUno = new Contexto();\r\n\t\t//Obtengo el orden del xml de configuración\r\n\t\tthis.orden = Constantes.ORDER_MAX_PPMC;\r\n\t\t//Creo tantos Ordenes como dice el XML\r\n\t\tthis.listaOrdenes = new ArrayList<Orden>(this.orden+1);\r\n\t\tthis.inicializarListas();\r\n\t\tthis.compresorAritmetico = new LogicaAritmetica();\r\n\t\tthis.initSession = true;\r\n\t\tthis.tiraBits = \"\";\r\n\t\tthis.bitsBuffer = new StringBuffer();\r\n\t\tthis.finalizada = false;\r\n\t\tthis.contextoPrevio = false;\r\n\t\tthis.contextoActual = new String();\r\n\t}", "@WebService(name = \"DomesticRemittanceByPartnerService\", targetNamespace = \"http://www.quantiguous.com/services\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface DomesticRemittanceByPartnerService {\n\n\n /**\n * \n * @param beneficiaryAccountNo\n * @param remitterToBeneficiaryInfo\n * @param remitterAddress\n * @param remitterIFSC\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param remitterName\n * @param beneficiaryAddress\n * @param uniqueResponseNo\n * @param version\n * @param requestReferenceNo\n * @param beneficiaryIFSC\n * @param debitAccountNo\n * @param uniqueRequestNo\n * @param beneficiaryName\n * @param customerID\n * @param beneficiaryContact\n * @param transferType\n * @param attemptNo\n * @param transferCurrencyCode\n * @param remitterContact\n * @param remitterAccountNo\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/remit\")\n @RequestWrapper(localName = \"remit\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.Remit\")\n @ResponseWrapper(localName = \"remitResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.RemitResponse\")\n public void remit(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"uniqueRequestNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String uniqueRequestNo,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"debitAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String debitAccountNo,\n @WebParam(name = \"remitterAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterAccountNo,\n @WebParam(name = \"remitterIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterIFSC,\n @WebParam(name = \"remitterName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterName,\n @WebParam(name = \"remitterAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType remitterAddress,\n @WebParam(name = \"remitterContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType remitterContact,\n @WebParam(name = \"beneficiaryName\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryName,\n @WebParam(name = \"beneficiaryAddress\", targetNamespace = \"http://www.quantiguous.com/services\")\n AddressType beneficiaryAddress,\n @WebParam(name = \"beneficiaryContact\", targetNamespace = \"http://www.quantiguous.com/services\")\n ContactType beneficiaryContact,\n @WebParam(name = \"beneficiaryAccountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryAccountNo,\n @WebParam(name = \"beneficiaryIFSC\", targetNamespace = \"http://www.quantiguous.com/services\")\n String beneficiaryIFSC,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n CurrencyCodeType transferCurrencyCode,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\")\n BigDecimal transferAmount,\n @WebParam(name = \"remitterToBeneficiaryInfo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String remitterToBeneficiaryInfo,\n @WebParam(name = \"uniqueResponseNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> uniqueResponseNo,\n @WebParam(name = \"attemptNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> attemptNo,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<String> requestReferenceNo,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param accountCurrencyCode\n * @param partnerCode\n * @param accountNo\n * @param accountBalanceAmount\n * @param customerID\n * @param version\n * @param lowBalanceAlert\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getBalance\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetBalanceResponse\")\n public void getBalance(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"accountCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> accountCurrencyCode,\n @WebParam(name = \"accountBalanceAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> accountBalanceAmount,\n @WebParam(name = \"lowBalanceAlert\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<Boolean> lowBalanceAlert);\n\n /**\n * \n * @param reqTransferType\n * @param partnerCode\n * @param transactionStatus\n * @param transferAmount\n * @param transferType\n * @param transactionDate\n * @param version\n * @param transferCurrencyCode\n * @param requestReferenceNo\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getRemittanceStatus\")\n @RequestWrapper(localName = \"getRemittanceStatus\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatus\")\n @ResponseWrapper(localName = \"getRemittanceStatusResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetRemittanceStatusResponse\")\n public void getRemittanceStatus(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"requestReferenceNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String requestReferenceNo,\n @WebParam(name = \"transferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> transferType,\n @WebParam(name = \"reqTransferType\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransferTypeType> reqTransferType,\n @WebParam(name = \"transactionDate\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<XMLGregorianCalendar> transactionDate,\n @WebParam(name = \"transferAmount\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> transferAmount,\n @WebParam(name = \"transferCurrencyCode\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<CurrencyCodeType> transferCurrencyCode,\n @WebParam(name = \"transactionStatus\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionStatusType> transactionStatus);\n\n /**\n * \n * @param numDebits\n * @param partnerCode\n * @param dateRange\n * @param accountNo\n * @param customerID\n * @param closingBalance\n * @param numTransactions\n * @param numCredits\n * @param version\n * @param openingBalance\n * @param transactionsArray\n */\n @WebMethod(action = \"http://www.quantiguous.com/services/DomesticRemittanceByPartnerService/getTransactions\")\n @RequestWrapper(localName = \"getTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactions\")\n @ResponseWrapper(localName = \"getTransactionsResponse\", targetNamespace = \"http://www.quantiguous.com/services\", className = \"com.quantiguous.services.GetTransactionsResponse\")\n public void getTransactions(\n @WebParam(name = \"version\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.INOUT)\n Holder<String> version,\n @WebParam(name = \"partnerCode\", targetNamespace = \"http://www.quantiguous.com/services\")\n String partnerCode,\n @WebParam(name = \"customerID\", targetNamespace = \"http://www.quantiguous.com/services\")\n String customerID,\n @WebParam(name = \"accountNo\", targetNamespace = \"http://www.quantiguous.com/services\")\n String accountNo,\n @WebParam(name = \"dateRange\", targetNamespace = \"http://www.quantiguous.com/services\")\n DateRangeType dateRange,\n @WebParam(name = \"openingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> openingBalance,\n @WebParam(name = \"numDebits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numDebits,\n @WebParam(name = \"numCredits\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numCredits,\n @WebParam(name = \"closingBalance\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigDecimal> closingBalance,\n @WebParam(name = \"numTransactions\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<BigInteger> numTransactions,\n @WebParam(name = \"transactionsArray\", targetNamespace = \"http://www.quantiguous.com/services\", mode = WebParam.Mode.OUT)\n Holder<TransactionsArrayType> transactionsArray);\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.DirectCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse qqCharge(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge qqCharge8)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[4].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/qqChargeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n qqCharge8,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"qqCharge\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.QqChargeResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"qqCharge\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }", "@WebService(targetNamespace = \"http://publicar.uytubeLogica/\", name = \"WebServices\")\r\n@XmlSeeAlso({ObjectFactory.class, net.java.dev.jaxb.array.ObjectFactory.class})\r\n@SOAPBinding(style = SOAPBinding.Style.RPC)\r\npublic interface WebServices {\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRRequest\", output = \"http://publicar.uytubeLogica/WebServices/cambiarPrivLDRResponse\")\r\n public void cambiarPrivLDR(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/operacionPruebaRequest\", output = \"http://publicar.uytubeLogica/WebServices/operacionPruebaResponse\")\r\n public void operacionPrueba();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPublicasPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPublicasPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray listarLDRPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarDispUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarDispUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCanalesPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanalArray listarCanalesPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarDatosUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtUsuario listarDatosUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/seguirUsuarioResponse\")\r\n public void seguirUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/valorarVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/valorarVideoResponse\")\r\n public void valorarVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n boolean arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccionArray infoLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/mostrarInfoCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCanal mostrarInfoCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVideoListaResponse\")\r\n public void agregarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtRequest\", output = \"http://publicar.uytubeLogica/WebServices/verDetallesVideoExtResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtInfoVideo verDetallesVideoExt(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/responderComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/responderComentarioResponse\")\r\n public void responderComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n DtFecha arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/agregarVisitaRequest\", output = \"http://publicar.uytubeLogica/WebServices/agregarVisitaResponse\")\r\n public void agregarVisita(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPorCategoriaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPorCategoria(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n Privacidad arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoUsuarioResponse\")\r\n public void nuevoUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n java.lang.String arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n DtFecha arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n byte[] arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n java.lang.String arg7,\r\n @WebParam(partName = \"arg8\", name = \"arg8\")\r\n java.lang.String arg8,\r\n @WebParam(partName = \"arg9\", name = \"arg9\")\r\n Privacidad arg9,\r\n @WebParam(partName = \"arg10\", name = \"arg10\")\r\n java.lang.String arg10\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/verificarLoginRequest\", output = \"http://publicar.uytubeLogica/WebServices/verificarLoginResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean verificarLogin(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevaListaParticularResponse\")\r\n public void nuevaListaParticular(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/nuevoComentarioResponse\")\r\n public void nuevoComentario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n DtFecha arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n java.lang.String arg3\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaRequest\", output = \"http://publicar.uytubeLogica/WebServices/eliminarVideoListaResponse\")\r\n public void eliminarVideoLista(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n int arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionRequest\", output = \"http://publicar.uytubeLogica/WebServices/getEstadoValoracionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public java.lang.String getEstadoValoracion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarCategoriasRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarCategoriasResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtCategoriaArray listarCategorias();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideoHistorialResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoHistorialArray listarVideoHistorial(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaRequest\", output = \"http://publicar.uytubeLogica/WebServices/memberListaReproduccionPropiaResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public boolean memberListaReproduccionPropia(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarComentariosRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarComentariosResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtComentarioArray listarComentarios(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/obtenerDtsVideosListaReproduccionUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray obtenerDtsVideosListaReproduccionUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoListaReproduccionResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtListaReproduccion infoListaReproduccion(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/aniadirVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/aniadirVideoResponse\")\r\n public void aniadirVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n java.lang.String arg2,\r\n @WebParam(partName = \"arg3\", name = \"arg3\")\r\n int arg3,\r\n @WebParam(partName = \"arg4\", name = \"arg4\")\r\n DtFecha arg4,\r\n @WebParam(partName = \"arg5\", name = \"arg5\")\r\n java.lang.String arg5,\r\n @WebParam(partName = \"arg6\", name = \"arg6\")\r\n DtCategoria arg6,\r\n @WebParam(partName = \"arg7\", name = \"arg7\")\r\n Privacidad arg7\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarUsuariosQueLeSigueResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarUsuariosQueLeSigue(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoVideosCanalResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray infoVideosCanal(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1,\r\n @WebParam(partName = \"arg2\", name = \"arg2\")\r\n Privacidad arg2\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarLDRdeUsuarioResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public net.java.dev.jaxb.array.StringArray listarLDRdeUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/bajaUsuarioResponse\")\r\n public void bajaUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n\t@WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/infoAddVideoRequest\", output = \"http://publicar.uytubeLogica/WebServices/infoAddVideoResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideo infoAddVideo(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n int arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/cargarDatosRequest\", output = \"http://publicar.uytubeLogica/WebServices/cargarDatosResponse\")\r\n public void cargarDatos();\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreRequest\", output = \"http://publicar.uytubeLogica/WebServices/listarVideosPublicosPorNombreResponse\")\r\n @WebResult(name = \"return\", targetNamespace = \"http://publicar.uytubeLogica/\", partName = \"return\")\r\n public DtVideoArray listarVideosPublicosPorNombre(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0\r\n );\r\n\r\n @WebMethod\r\n @Action(input = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioRequest\", output = \"http://publicar.uytubeLogica/WebServices/dejarUsuarioResponse\")\r\n public void dejarUsuario(\r\n @WebParam(partName = \"arg0\", name = \"arg0\")\r\n java.lang.String arg0,\r\n @WebParam(partName = \"arg1\", name = \"arg1\")\r\n java.lang.String arg1\r\n );\r\n}", "@Override\r\n\tpublic void startElement(String espacio_nombres, String nombre_completo, String nombre_etiqueta,\r\n\t\t\tAttributes atributos) throws SAXException {\r\n\t\tif (nombre_etiqueta.equals(\"cantidad\")) {\r\n\t\t\tSystem.out.println(\"Cantidad: \");\r\n\t\t\tetiqueta_anterior = \"cantidad\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"dia-embarque\")) {\r\n\t\t\tSystem.out.println(\"Dia de embarque de la mercancia: \");\r\n\t\t\tetiqueta_anterior = \"\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"coche\")) {\r\n\t\t\tSystem.out.println(\"Datos del Coche: \");\r\n\t\t\tif (atributos.getLength() == 1) {\r\n\t\t\t\tSystem.out.println(atributos.getValue(\"segundamano\"));\r\n\t\t\t}\r\n\t\t\tetiqueta_anterior = \"\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"marca\")) {\r\n\t\t\tSystem.out.println(\"Marca: \");\r\n\t\t\tetiqueta_anterior = \"marca\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"modelo\")) {\r\n\t\t\tSystem.out.println(\"Modelo: \");\r\n\t\t\tetiqueta_anterior = \"\";\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"precio\")) {\r\n\t\t\tSystem.out.println(\"Precio: \");\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"kilometros\")) {\r\n\t\t\tSystem.out.println(\"Kilometros reales: \");\r\n\t\t}\r\n\t\tif (nombre_etiqueta.equals(\"fecha-matriculacion\")) {\r\n\t\t\tSystem.out.println(\"Fecha de Matricualcion: \");\r\n\t\t}\r\n\r\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void startgetDownLoadCard(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard getDownLoadCard20,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[10].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/getDownLoadCardRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getDownLoadCard20,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDownLoadCard\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDownLoadCard\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCardResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultgetDownLoadCard(\n (net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCardResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetDownLoadCard(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDownLoadCard\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDownLoadCard\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDownLoadCard\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDownLoadCard(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDownLoadCard(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDownLoadCard(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDownLoadCard(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDownLoadCard(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDownLoadCard(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDownLoadCard(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDownLoadCard(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDownLoadCard(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDownLoadCard(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetDownLoadCard(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetDownLoadCard(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[10].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[10].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public void recargarDatos( ) {\n\t\tPAC_SHWEB_PROVEEDORES llamadaProv = null;\n\t\ttry {\n\t\t\tllamadaProv = new PAC_SHWEB_PROVEEDORES(service.plsqlDataSource.getConnection());\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHashMap respuestaCom = null;\n\n\t\ttry {\n\t\t\trespuestaCom = llamadaProv.ejecutaPAC_SHWEB_PROVEEDORES__F_COMUNICADOS_EXPEDIENTE(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"origen\").toString(),\n\t\t\t\t\tnew BigDecimal(UI.getCurrent().getSession().getAttribute(\"expediente\").toString())\n\t\t\t\t\t);\n\t\t\t\n\t\t} catch (Exception 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\t// Mostramos el estado del expediente\n\t\tPAC_SHWEB_PROVEEDORES llamada = null;\n\t\ttry {\n\t\t\tllamada = new PAC_SHWEB_PROVEEDORES(service.plsqlDataSource.getConnection());\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHashMap respuesta = null;\n\t\ttry {\n\t\t\trespuesta = llamada.ejecutaPAC_SHWEB_PROVEEDORES__F_ESTADO_EXPEDIENTE(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tnew BigDecimal(UI.getCurrent().getSession().getAttribute(\"expediente\").toString())\n\t\t\t\t\t);\n\t\t\t\n\t\t\tMap<String, Object> retorno = new HashMap<String, Object>(respuesta);\n\n\t\t\tUI.getCurrent().getSession().setAttribute(\"estadoExpediente\",retorno.get(\"ESTADO\").toString());\n\t\t\t\n\t\t\tprovPantallaConsultaExpedienteInicial.setCaption(\"GESTIÓN DEL EXPEDIENTE Nº \" + UI.getCurrent().getSession().getAttribute(\"expediente\")\n\t\t\t\t\t+ \" ( \" + \n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"estadoExpediente\") + \" ) \");\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\t\n\t\t\n\t\t// Maestro comunicados\n\n\t\tWS_AMA llamadaAMA = null;\n\t\ttry {\n\t\t\tllamadaAMA = new WS_AMA(service.plsqlDataSource.getConnection());\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHashMap respuestaMaestro = null;\n\t\t\n\t\t//System.out.println(\"Llamammos maestro comunicados: \" + UI.getCurrent().getSession().getAttribute(\"tipousuario\").toString().substring(1,1));;\n\t\ttry {\n\t\t\t// pPUSUARIO, pORIGEN, pTPCOMUNI, pTPUSUARIO, pESTADO)\n\t\t\t\n\t\t\trespuestaMaestro = llamadaAMA.ejecutaWS_AMA__MAESTRO_COMUNICADOS(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"origen\").toString(),\n\t\t\t\t\tnull,\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"tipousuario\").toString().substring(1,1),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"estadoExpediente\").toString()\n\t\t\t\t\t);\t\t\t\n\n\t\t\t\n\t\t\tMap<String, Object> retornoMaestro = new HashMap<String, Object>(respuestaMaestro);\n\t\t\tList<Map> valorMaestro = (List<Map>) retornoMaestro.get(\"COMUNICADOS\");\n\t\t\tUI.getCurrent().getSession().setAttribute(\"comunicadosExpediente\",valorMaestro);\n\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tUI.getCurrent().getSession().setAttribute(\"comunicadosExpediente\",null);\n\t\t}\n\t\t\n\t\t// \t\n\t\t\n\t\t\n\t\t// Validamos si tenemos que mostrar el bot�n de cerrar expediente\n\t\t\n\t\t/*if ( !ValidarComunicado.EsValido(\"CA\") && !ValidarComunicado.EsValido(\"FT\") ) {\n\t\t\tprovPantallaConsultaExpedienteInicial.provDatosDetalleExpediente.btCerrarExpediente.setVisible(false);\n\t\t}\n\t\telse {\n\t\t\tprovPantallaConsultaExpedienteInicial.provDatosDetalleExpediente.btCerrarExpediente.setVisible(true);\n\n\t\t\t\n\t\t\t\n\t\t}*/\n\t\t// Mostramos botonera de cerrar expediente\n\t\t// Validamos si tenemos que mostrar el bot�n de cerrar expediente\n\t\t\n\n\t}", "@WebService(name = \"resaService\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ResaService {\n\n\n /**\n * \n */\n @WebMethod\n @RequestWrapper(localName = \"verifEndResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResa\")\n @ResponseWrapper(localName = \"verifEndResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.VerifEndResaResponse\")\n public void verifEndResa();\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws Exception_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"mailResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResa\")\n @ResponseWrapper(localName = \"mailResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.MailResaResponse\")\n public void mailResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws Exception_Exception, FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @RequestWrapper(localName = \"deleteReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservation\")\n @ResponseWrapper(localName = \"deleteReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.DeleteReservationResponse\")\n public void deleteReservation(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @param demandeurId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"newReservation\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservation\")\n @ResponseWrapper(localName = \"newReservationResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.NewReservationResponse\")\n public Reservation newReservation(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId,\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaById\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaById\")\n @ResponseWrapper(localName = \"getResaByIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByIdResponse\")\n public Reservation getResaById(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param demandeurId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.ReservationWS>\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByUserId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserId\")\n @ResponseWrapper(localName = \"getResaByUserIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByUserIdResponse\")\n public List<ReservationWS> getResaByUserId(\n @WebParam(name = \"demandeurId\", targetNamespace = \"\")\n Integer demandeurId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n /**\n * \n * @param livreId\n * @return\n * returns java.util.List<fr.mb.biblio.webappConsumer.services.reservation.Reservation>\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getResaByLivreId\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreId\")\n @ResponseWrapper(localName = \"getResaByLivreIdResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.GetResaByLivreIdResponse\")\n public List<Reservation> getResaByLivreId(\n @WebParam(name = \"livreId\", targetNamespace = \"\")\n Integer livreId)\n throws FunctionalException_Exception\n ;\n\n /**\n * \n * @param resaId\n * @return\n * returns fr.mb.biblio.webappConsumer.services.reservation.Reservation\n * @throws NotFoundException_Exception\n * @throws FunctionalException_Exception\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"startResa\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResa\")\n @ResponseWrapper(localName = \"startResaResponse\", targetNamespace = \"http://contract.resaService.soap.biblio.mb.fr/\", className = \"fr.mb.biblio.webappConsumer.services.reservation.StartResaResponse\")\n public Reservation startResa(\n @WebParam(name = \"resaId\", targetNamespace = \"\")\n Integer resaId)\n throws FunctionalException_Exception, NotFoundException_Exception\n ;\n\n}", "public void startgetDirectAreaInfo(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo getDirectAreaInfo16,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/getDirectAreaInfoRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getDirectAreaInfo16,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectAreaInfo\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectAreaInfo\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfoResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultgetDirectAreaInfo(\n (net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfoResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetDirectAreaInfo(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectAreaInfo\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectAreaInfo\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectAreaInfo\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectAreaInfo(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectAreaInfo(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectAreaInfo(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectAreaInfo(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectAreaInfo(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectAreaInfo(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectAreaInfo(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetDirectAreaInfo(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectAreaInfo(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectAreaInfo(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetDirectAreaInfo(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetDirectAreaInfo(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[8].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[8].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "@WebService(name = \"Repositorio\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface Repositorio {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaEstatusComprobante\n * @throws RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"EstatusComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/EstatusComprobante\")\n @WebResult(name = \"RespuestaEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaEstatusComprobante estatusComprobante(\n @WebParam(name = \"SolicitudEstatusComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudEstatusComprobante parameters)\n throws RepositorioEstatusComprobanteFallaServicioFaultFaultMessage, RepositorioEstatusComprobanteFallaSesionFaultFaultMessage, RepositorioEstatusComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerComprobante\n * @throws RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage\n * @throws RepositorioObtenerComprobanteFallaSesionFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerComprobante\")\n @WebResult(name = \"RespuestaObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerComprobante obtenerComprobante(\n @WebParam(name = \"SolicitudObtenerComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerComprobante parameters)\n throws RepositorioObtenerComprobanteFallaServicioFaultFaultMessage, RepositorioObtenerComprobanteFallaSesionFaultFaultMessage, RepositorioObtenerComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaCancelaComprobante\n * @throws RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaSesionFaultFaultMessage\n * @throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"CancelaComprobante\", action = \"http://Ecodex.WS.Model/2011/CFDI/ServicioRepositorio/CancelaComprobante\")\n @WebResult(name = \"RespuestaCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaCancelaComprobante cancelaComprobante(\n @WebParam(name = \"SolicitudCancelaComprobante\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudCancelaComprobante parameters)\n throws RepositorioCancelaComprobanteFallaServicioFaultFaultMessage, RepositorioCancelaComprobanteFallaSesionFaultFaultMessage, RepositorioCancelaComprobanteFallaValidacionFaultFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns Repositorio.RespuestaObtenerQR\n * @throws RepositorioObtenerQRFallaValidacionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaSesionFaultFaultMessage\n * @throws RepositorioObtenerQRFallaServicioFaultFaultMessage\n */\n @WebMethod(operationName = \"ObtenerQR\", action = \"http://Ecodex.WS.Model/2011/CFDI/Repositorio/ObtenerQR\")\n @WebResult(name = \"RespuestaObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n public RespuestaObtenerQR obtenerQR(\n @WebParam(name = \"SolicitudObtenerQR\", targetNamespace = \"http://Ecodex.WS.Model/2011/CFDI\", partName = \"parameters\")\n SolicitudObtenerQR parameters)\n throws RepositorioObtenerQRFallaServicioFaultFaultMessage, RepositorioObtenerQRFallaSesionFaultFaultMessage, RepositorioObtenerQRFallaValidacionFaultFaultMessage\n ;\n\n}", "public static void cargarRecursos(String carpetaArchivosConf, AdministradorRecursosNvjItf recursosProyecto) \n \t\tthrows CargadorRecursosException, MapeoException, IOException{\n System.out.println(\"Comenzando la carga de NavajaFW\");\n //Listo los archivos de configuracion\n String[] listaDeArchivos = new File(carpetaArchivosConf).list();\n \n if (listaDeArchivos == null) {\n throw new CargadorRecursosCarpetaConfVaciaException(carpetaArchivosConf);\n }\n\n //Se listan los archivos de la carpeta indicada\n ArrayList<String> archivosConf = new ArrayList<String>(Arrays.asList(listaDeArchivos));\n\n //Se los itera\n for (String archivoNombre : archivosConf){\n //Si algun archivo termina con _or.xml es un mapeo\n if (archivoNombre.endsWith(NavajaConstantes.GUION_BAJO_OR_PUNTO_XML)) {\n //Muestro que el archivo se esta leyendo\n System.out.println(\"Mapeando \" + archivoNombre + \"...\");\n //Comienzo el mapeo\n Mapeador.mapearXml(carpetaArchivosConf + archivoNombre);\n System.out.println(\"Mapeado correctamente \"); \n }\n }\n \n if (Mapeador.getRaizMapeo() == null || Mapeador.getRaizMapeo().getTablas().isEmpty()) {\n throw new CargadorRecursosNoExistenArchivosMapeoException(); \t\n }\n \n //Se setea la instancia NavajaConector de la app el mapeo recien generado\n NavajaConector.getInstance().setMapeoRaiz(Mapeador.getRaizMapeo());\n \n //Se inicializa los recursos segun lo implementado en el metodo sobrescrito\n recursosProyecto.iniciarRecursos();\n \n //Se setea la instancia NavajaConector de la app el DataSource para conectarse\n DataSource dataSource = recursosProyecto.proveerDataSource();\n \n if(dataSource == null) {\n throw new org.calevin.navaja.excepciones.core.CargadorRecursosDataSourceNuloException();\n }\n\n Connection conexion = null;\n\t\ttry {\n\t\t\tconexion = dataSource.getConnection();\n\t\t\t\n\t\t\tif (conexion == null){\n\t\t\t\tthrow new CargadorRecursosConexionFallidaException(\n\t\t\t\t\t\tNavajaStringUtil.conmutarCaseChar(NavajaConstantes.CONEXION_NULA, 0)\n\t\t\t\t\t\t+ NavajaConstantes.PUNTO);\n\t\t\t} else if (!conexion.isValid(0)) {\n\t\t\t\tthrow new CargadorRecursosConexionFallidaException(\n\t\t\t\t\t\tNavajaStringUtil.conmutarCaseChar(NavajaConstantes.CONEXION_INVALIDA, 0)\n\t\t\t\t\t\t+ NavajaConstantes.COMA_ESPACIO\n\t\t\t\t\t\t+ NavajaConstantes.CONEXION\n\t\t\t\t\t\t+ NavajaConstantes.ESPACIO_COMILLA\n\t\t\t\t\t\t+ conexion\n\t\t\t\t\t\t+ NavajaConstantes.COMILLA\n\t\t\t\t\t\t+ NavajaConstantes.PUNTO);\t\t\t\t\n\t\t\t} else {\n\t\t NavajaConector.getInstance().setDataSource(dataSource);\t\t\t\t\n\t\t\t}\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new CargadorRecursosConexionFallidaException(e);\n\t\t} finally {\n\t\t\tif (conexion != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconexion.close(); \n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tthrow new CargadorRecursosConexionFallidaException(e);\n\t\t\t\t} \n\t\t\t}\n\t\t}\n }", "private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonth param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonth.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public javax.xml.stream.XMLStreamReader getPullParser(javax.xml.namespace.QName qName)\n throws org.apache.axis2.databinding.ADBException{\n\n\n \n java.util.ArrayList elementList = new java.util.ArrayList();\n java.util.ArrayList attribList = new java.util.ArrayList();\n\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"codigo\"));\n \n elementList.add(localCodigo==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCodigo));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"bloqueado\"));\n \n elementList.add(localBloqueado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localBloqueado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"estado\"));\n \n \n elementList.add(localEstado==null?null:\n localEstado);\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"fechaFacturado\"));\n \n elementList.add(localFechaFacturado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFechaFacturado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"fechaSolicitud\"));\n \n elementList.add(localFechaSolicitud==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFechaSolicitud));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"flete\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localFlete));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"motivoRechazo\"));\n \n \n elementList.add(localMotivoRechazo==null?null:\n localMotivoRechazo);\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"observacion\"));\n \n elementList.add(localObservacion==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localObservacion));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"origen\"));\n \n elementList.add(localOrigen==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localOrigen));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoDescuento\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoDescuento));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoEstimado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoEstimado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoSolicitado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoSolicitado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoFacturado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoFacturado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoFacturadoSinDescuento\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoFacturadoSinDescuento));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"percepcion\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localPercepcion));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"cantidadCUVErrado\"));\n \n elementList.add(localCantidadCUVErrado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCantidadCUVErrado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"cantidadFaltanteAnunciado\"));\n \n elementList.add(localCantidadFaltanteAnunciado==null?null:\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localCantidadFaltanteAnunciado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoPedidoRechazado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoPedidoRechazado));\n \n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"montoCatalogoEstimado\"));\n \n elementList.add(\n org.apache.axis2.databinding.utils.ConverterUtil.convertToString(localMontoCatalogoEstimado));\n \n if (localPedidoDetalle!=null) {\n for (int i = 0;i < localPedidoDetalle.length;i++){\n\n if (localPedidoDetalle[i] != null){\n elementList.add(new javax.xml.namespace.QName(\"http://www.belcorp.biz/canonico/ffvv/Vender\",\n \"pedidoDetalle\"));\n elementList.add(localPedidoDetalle[i]);\n } else {\n \n throw new org.apache.axis2.databinding.ADBException(\"pedidoDetalle cannot be null !!\");\n \n }\n\n }\n } else {\n \n throw new org.apache.axis2.databinding.ADBException(\"pedidoDetalle cannot be null!!\");\n \n }\n\n \n\n return new org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl(qName, elementList.toArray(), attribList.toArray());\n \n \n\n }", "public void setFilaDatosExportarXmlLiquidacionImpuestoImpor(LiquidacionImpuestoImpor liquidacionimpuestoimpor,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(LiquidacionImpuestoImporConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(liquidacionimpuestoimpor.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(LiquidacionImpuestoImporConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(liquidacionimpuestoimpor.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementpedidocompraimpor_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDPEDIDOCOMPRAIMPOR);\r\n\t\telementpedidocompraimpor_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getpedidocompraimpor_descripcion()));\r\n\t\telement.appendChild(elementpedidocompraimpor_descripcion);\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementcliente_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDCLIENTE);\r\n\t\telementcliente_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getcliente_descripcion()));\r\n\t\telement.appendChild(elementcliente_descripcion);\r\n\r\n\t\tElement elementfactura_descripcion = document.createElement(LiquidacionImpuestoImporConstantesFunciones.IDFACTURA);\r\n\t\telementfactura_descripcion.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfactura_descripcion()));\r\n\t\telement.appendChild(elementfactura_descripcion);\r\n\r\n\t\tElement elementnumero_comprobante = document.createElement(LiquidacionImpuestoImporConstantesFunciones.NUMEROCOMPROBANTE);\r\n\t\telementnumero_comprobante.appendChild(document.createTextNode(liquidacionimpuestoimpor.getnumero_comprobante().trim()));\r\n\t\telement.appendChild(elementnumero_comprobante);\r\n\r\n\t\tElement elementnumero_dui = document.createElement(LiquidacionImpuestoImporConstantesFunciones.NUMERODUI);\r\n\t\telementnumero_dui.appendChild(document.createTextNode(liquidacionimpuestoimpor.getnumero_dui().trim()));\r\n\t\telement.appendChild(elementnumero_dui);\r\n\r\n\t\tElement elementfecha = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FECHA);\r\n\t\telementfecha.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfecha().toString().trim()));\r\n\t\telement.appendChild(elementfecha);\r\n\r\n\t\tElement elementfecha_pago = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FECHAPAGO);\r\n\t\telementfecha_pago.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfecha_pago().toString().trim()));\r\n\t\telement.appendChild(elementfecha_pago);\r\n\r\n\t\tElement elementfob = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FOB);\r\n\t\telementfob.appendChild(document.createTextNode(liquidacionimpuestoimpor.getfob().toString().trim()));\r\n\t\telement.appendChild(elementfob);\r\n\r\n\t\tElement elementseguro = document.createElement(LiquidacionImpuestoImporConstantesFunciones.SEGURO);\r\n\t\telementseguro.appendChild(document.createTextNode(liquidacionimpuestoimpor.getseguro().toString().trim()));\r\n\t\telement.appendChild(elementseguro);\r\n\r\n\t\tElement elementflete = document.createElement(LiquidacionImpuestoImporConstantesFunciones.FLETE);\r\n\t\telementflete.appendChild(document.createTextNode(liquidacionimpuestoimpor.getflete().toString().trim()));\r\n\t\telement.appendChild(elementflete);\r\n\r\n\t\tElement elementporcentaje_fodi = document.createElement(LiquidacionImpuestoImporConstantesFunciones.PORCENTAJEFODI);\r\n\t\telementporcentaje_fodi.appendChild(document.createTextNode(liquidacionimpuestoimpor.getporcentaje_fodi().toString().trim()));\r\n\t\telement.appendChild(elementporcentaje_fodi);\r\n\r\n\t\tElement elementporcentaje_iva = document.createElement(LiquidacionImpuestoImporConstantesFunciones.PORCENTAJEIVA);\r\n\t\telementporcentaje_iva.appendChild(document.createTextNode(liquidacionimpuestoimpor.getporcentaje_iva().toString().trim()));\r\n\t\telement.appendChild(elementporcentaje_iva);\r\n\r\n\t\tElement elementtasa_control = document.createElement(LiquidacionImpuestoImporConstantesFunciones.TASACONTROL);\r\n\t\telementtasa_control.appendChild(document.createTextNode(liquidacionimpuestoimpor.gettasa_control().toString().trim()));\r\n\t\telement.appendChild(elementtasa_control);\r\n\r\n\t\tElement elementcfr = document.createElement(LiquidacionImpuestoImporConstantesFunciones.CFR);\r\n\t\telementcfr.appendChild(document.createTextNode(liquidacionimpuestoimpor.getcfr().toString().trim()));\r\n\t\telement.appendChild(elementcfr);\r\n\r\n\t\tElement elementcif = document.createElement(LiquidacionImpuestoImporConstantesFunciones.CIF);\r\n\t\telementcif.appendChild(document.createTextNode(liquidacionimpuestoimpor.getcif().toString().trim()));\r\n\t\telement.appendChild(elementcif);\r\n\r\n\t\tElement elementtotal = document.createElement(LiquidacionImpuestoImporConstantesFunciones.TOTAL);\r\n\t\telementtotal.appendChild(document.createTextNode(liquidacionimpuestoimpor.gettotal().toString().trim()));\r\n\t\telement.appendChild(elementtotal);\r\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDay param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDay.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"UtenteServant\", targetNamespace = \"http://utente.servant.car2go.it/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface UtenteServant {\n\n\n /**\n * \n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"verificaPresenzaUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsername\")\n @ResponseWrapper(localName = \"verificaPresenzaUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.VerificaPresenzaUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/verificaPresenzaUsernameResponse\")\n public boolean verificaPresenzaUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"salvaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtente\")\n @ResponseWrapper(localName = \"salvaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.SalvaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/salvaUtenteResponse\")\n public void salvaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsernamePassword\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePassword\")\n @ResponseWrapper(localName = \"getUtenteByUsernamePasswordResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernamePasswordResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernamePasswordResponse\")\n public Utente getUtenteByUsernamePassword(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0,\n @WebParam(name = \"arg1\", targetNamespace = \"\")\n String arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteByUsername\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsername\")\n @ResponseWrapper(localName = \"getUtenteByUsernameResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByUsernameResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByUsernameResponse\")\n public Utente getUtenteByUsername(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Ruolo\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getRuoloUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteById\")\n @ResponseWrapper(localName = \"getRuoloUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetRuoloUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getRuoloUtenteByIdResponse\")\n public Ruolo getRuoloUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"cancellaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtente\")\n @ResponseWrapper(localName = \"cancellaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.CancellaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/cancellaUtenteResponse\")\n public void cancellaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenti\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenti\")\n @ResponseWrapper(localName = \"getUtentiResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtentiResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtentiRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtentiResponse\")\n public List<Utente> getUtenti();\n\n /**\n * \n * @param arg0\n * @return\n * returns it.car2go.servant.utente.Utente\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"getUtenteById\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteById\")\n @ResponseWrapper(localName = \"getUtenteByIdResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.GetUtenteByIdResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/getUtenteByIdResponse\")\n public Utente getUtenteById(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns java.util.List<it.car2go.servant.utente.Utente>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"elencoUtentiSemplici\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSemplici\")\n @ResponseWrapper(localName = \"elencoUtentiSempliciResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.ElencoUtentiSempliciResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/elencoUtentiSempliciResponse\")\n public List<Utente> elencoUtentiSemplici(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n int arg0);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n @RequestWrapper(localName = \"aggiornaUtente\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtente\")\n @ResponseWrapper(localName = \"aggiornaUtenteResponse\", targetNamespace = \"http://utente.servant.car2go.it/\", className = \"it.car2go.servant.utente.AggiornaUtenteResponse\")\n @Action(input = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteRequest\", output = \"http://utente.servant.car2go.it/UtenteServant/aggiornaUtenteResponse\")\n public void aggiornaUtente(\n @WebParam(name = \"arg0\", targetNamespace = \"\")\n Utente arg0);\n\n}", "public void conectarServicio(){\n\t\tIntent intent = new Intent(this,CalcularServicio.class);\n\t\tbindService(intent, mConexion, Context.BIND_AUTO_CREATE);\n\t\tmServicioUnido = true;\n\t}", "public void startterminalDownloadQueryForMonth(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonth terminalDownloadQueryForMonth18,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/terminalDownloadQueryForMonthRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n terminalDownloadQueryForMonth18,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForMonth\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForMonth\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonthResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultterminalDownloadQueryForMonth(\n (net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonthResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorterminalDownloadQueryForMonth(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForMonth\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForMonth\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForMonth\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForMonth(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForMonth(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForMonth(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForMonth(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForMonth(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForMonth(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForMonth(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForMonth(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForMonth(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForMonth(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForMonth(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorterminalDownloadQueryForMonth(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[9].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[9].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "public void setFilaDatosExportarXmlPlantillaFactura(PlantillaFactura plantillafactura,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(PlantillaFacturaConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(plantillafactura.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(PlantillaFacturaConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(plantillafactura.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(plantillafactura.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementcodigo = document.createElement(PlantillaFacturaConstantesFunciones.CODIGO);\r\n\t\telementcodigo.appendChild(document.createTextNode(plantillafactura.getcodigo().trim()));\r\n\t\telement.appendChild(elementcodigo);\r\n\r\n\t\tElement elementnombre = document.createElement(PlantillaFacturaConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(plantillafactura.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\r\n\t\tElement elementdescripcion = document.createElement(PlantillaFacturaConstantesFunciones.DESCRIPCION);\r\n\t\telementdescripcion.appendChild(document.createTextNode(plantillafactura.getdescripcion().trim()));\r\n\t\telement.appendChild(elementdescripcion);\r\n\r\n\t\tElement elementes_proveedor = document.createElement(PlantillaFacturaConstantesFunciones.ESPROVEEDOR);\r\n\t\telementes_proveedor.appendChild(document.createTextNode(plantillafactura.getes_proveedor().toString().trim()));\r\n\t\telement.appendChild(elementes_proveedor);\r\n\r\n\t\tElement elementcuentacontableaplicada_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLEAPLICADA);\r\n\t\telementcuentacontableaplicada_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontableaplicada_descripcion()));\r\n\t\telement.appendChild(elementcuentacontableaplicada_descripcion);\r\n\r\n\t\tElement elementcuentacontablecreditobien_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLECREDITOBIEN);\r\n\t\telementcuentacontablecreditobien_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontablecreditobien_descripcion()));\r\n\t\telement.appendChild(elementcuentacontablecreditobien_descripcion);\r\n\r\n\t\tElement elementcuentacontablecreditoservicio_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLECREDITOSERVICIO);\r\n\t\telementcuentacontablecreditoservicio_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontablecreditoservicio_descripcion()));\r\n\t\telement.appendChild(elementcuentacontablecreditoservicio_descripcion);\r\n\r\n\t\tElement elementtiporetencionfuentebien_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONFUENTEBIEN);\r\n\t\telementtiporetencionfuentebien_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionfuentebien_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionfuentebien_descripcion);\r\n\r\n\t\tElement elementtiporetencionfuenteservicio_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONFUENTESERVICIO);\r\n\t\telementtiporetencionfuenteservicio_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionfuenteservicio_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionfuenteservicio_descripcion);\r\n\r\n\t\tElement elementtiporetencionivabien_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONIVABIEN);\r\n\t\telementtiporetencionivabien_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionivabien_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionivabien_descripcion);\r\n\r\n\t\tElement elementtiporetencionivaservicio_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDTIPORETENCIONIVASERVICIO);\r\n\t\telementtiporetencionivaservicio_descripcion.appendChild(document.createTextNode(plantillafactura.gettiporetencionivaservicio_descripcion()));\r\n\t\telement.appendChild(elementtiporetencionivaservicio_descripcion);\r\n\r\n\t\tElement elementcuentacontablegasto_descripcion = document.createElement(PlantillaFacturaConstantesFunciones.IDCUENTACONTABLEGASTO);\r\n\t\telementcuentacontablegasto_descripcion.appendChild(document.createTextNode(plantillafactura.getcuentacontablegasto_descripcion()));\r\n\t\telement.appendChild(elementcuentacontablegasto_descripcion);\r\n\t}", "public void setFilaDatosExportarXmlCierreCaja(CierreCaja cierrecaja,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(CierreCajaConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(cierrecaja.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(CierreCajaConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(cierrecaja.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(CierreCajaConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(cierrecaja.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementsucursal_descripcion = document.createElement(CierreCajaConstantesFunciones.IDSUCURSAL);\r\n\t\telementsucursal_descripcion.appendChild(document.createTextNode(cierrecaja.getsucursal_descripcion()));\r\n\t\telement.appendChild(elementsucursal_descripcion);\r\n\r\n\t\tElement elementusuario_descripcion = document.createElement(CierreCajaConstantesFunciones.IDUSUARIO);\r\n\t\telementusuario_descripcion.appendChild(document.createTextNode(cierrecaja.getusuario_descripcion()));\r\n\t\telement.appendChild(elementusuario_descripcion);\r\n\r\n\t\tElement elementtipoformapago_descripcion = document.createElement(CierreCajaConstantesFunciones.IDTIPOFORMAPAGO);\r\n\t\telementtipoformapago_descripcion.appendChild(document.createTextNode(cierrecaja.gettipoformapago_descripcion()));\r\n\t\telement.appendChild(elementtipoformapago_descripcion);\r\n\r\n\t\tElement elementfecha = document.createElement(CierreCajaConstantesFunciones.FECHA);\r\n\t\telementfecha.appendChild(document.createTextNode(cierrecaja.getfecha().toString().trim()));\r\n\t\telement.appendChild(elementfecha);\r\n\r\n\t\tElement elementtotal = document.createElement(CierreCajaConstantesFunciones.TOTAL);\r\n\t\telementtotal.appendChild(document.createTextNode(cierrecaja.gettotal().toString().trim()));\r\n\t\telement.appendChild(elementtotal);\r\n\r\n\t\tElement elementtotal_diferencia = document.createElement(CierreCajaConstantesFunciones.TOTALDIFERENCIA);\r\n\t\telementtotal_diferencia.appendChild(document.createTextNode(cierrecaja.gettotal_diferencia().toString().trim()));\r\n\t\telement.appendChild(elementtotal_diferencia);\r\n\r\n\t\tElement elementesta_activo = document.createElement(CierreCajaConstantesFunciones.ESTAACTIVO);\r\n\t\telementesta_activo.appendChild(document.createTextNode(cierrecaja.getesta_activo().toString().trim()));\r\n\t\telement.appendChild(elementesta_activo);\r\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetEntrancePage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetEntrancePage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@Remote\npublic interface IRClienteWSAXIS {\n\n /**\n * Realiza la invocacion con el WebService para realizar la registrar la financiacion y obtener el id del convenio\n * \n * @param financiacion\n * datos de la financiacion\n * @return Financiacion con el Numero de axis para Wla financiacion\n * @author julio.pinzon(2016-08-12)\n * @throws CirculemosNegocioException\n */\n public FinanciacionDTO registrarFinanciacion(FinanciacionDTO financiacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para anular la financiacion\n * \n * @param numeroFinanciacion\n * numero del convenio\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void anularFinanciacion(String numeroFinanciacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar la impugnacion de un comparendo\n * \n * @param comparendo\n * datos del comparendo\n * @param impugnacion\n * datos de la impugnacion\n * @author julio.pinzon(2016-08-17)\n * @throws CirculemosNegocioException\n */\n public void impugnarComparendo(ComparendoDTO comparendo, ProcesoDTO impugnacion) throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del fallo sobre la impugnacion previa\n * \n * @param fallo\n * datos del fallo\n * @return Nuevo numero de factura\n * @author julio.pinzon(2016-08-17)\n * @param idProceso\n * @param comparendoDTO\n * @throws CirculemosNegocioException\n */\n public Long registrarFalloImpugnacion(FalloImpugnacionDTO fallo, ComparendoDTO comparendoDTO, Long idProceso)\n throws CirculemosNegocioException;\n\n /**\n * Realiza la invocacion con el WebService para realizar el registro del numero de coactivo de axis\n * \n * @param coactivoDTO\n * @return CoactivoDTO\n * @throws CirculemosNegocioException\n * @author Jeison.Rodriguez (2016-09-21)\n */\n public CoactivoDTO registarCoactivo(CoactivoDTO coactivoDTO) throws CirculemosNegocioException;\n}", "public void startterminalDownloadQueryForDay(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDay terminalDownloadQueryForDay12,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/terminalDownloadQueryForDayRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n terminalDownloadQueryForDay12,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForDay\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForDay\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDayResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultterminalDownloadQueryForDay(\n (net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDayResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorterminalDownloadQueryForDay(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForDay\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForDay\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForDay\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForDay(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForDay(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForDay(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForDay(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForDay(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForDay(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForDay(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorterminalDownloadQueryForDay(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForDay(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForDay(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorterminalDownloadQueryForDay(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorterminalDownloadQueryForDay(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[6].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[6].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleBookPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfoResponse getDirectSrvInfo(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo getDirectSrvInfo10)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[5].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/getDirectSrvInfoRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getDirectSrvInfo10,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectSrvInfo\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectSrvInfo\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfoResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfoResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectSrvInfo\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectSrvInfo\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectSrvInfo\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "public static void main(String[] args) {\n\t\tMap<String, String> param = new HashMap<String, String>();\n\t\tparam.put(\"GoodsID\", \"81633\");\n\t\tString priceData = HttpUtil45.postAuth(\"http://studio69.atelier98.net/api_studio69/api_studio69.asmx/GetGoodsDetailByGoodsID\",\n\t\t\t\tparam ,new OutTimeConfig(1000*60*10,1000*60*10,1000*60*10),\"SHANGPIN\",\"2MWWKgNSxgf\");\nSystem.out.println(priceData);\n//\t\ttry {\n////\t\t\tGoodDetail goodDetail = ObjectXMLUtil.xml2Obj(GoodDetail.class, priceData);\n//\t\t\tGoodsDetail categorys = ObjectXMLUtil.xml2Obj(GoodsDetail.class, priceData);\n//\t\t\tSystem.out.println(categorys.getGoodDetials().get(0).getStock().getItemlist().size());\n//\t\t} catch (JAXBException e1) {\n//\t\t\te1.printStackTrace();\n//\t\t}\n//\t\tSystem.out.println(priceData);\n\n//\t\tMap<String, String> param = new HashMap<String, String>();\n//\t\tparam.put(\"orderID\", \"20160909121212\");\n//\t\tString buyerInfo = \"<BuyerInfo>\" +\n//\t\t\t\t\" <Name>test</Name>\" +\n//\t\t\t\t\" <Address>Via Edgardo Macrelli 107</Address>\" +\n//\t\t\t\t\" <Mobile>47521</Mobile>\" +\n//\t\t\t\t\" <Corriere>100000</Corriere>\" +\n//\t\t\t\t\" <Notes></Notes>\" +\n//\t\t\t\t\"</BuyerInfo>\";\n//\t\tString gooodsList=\"<GoodsList>\" +\n//\t\t\t\t\" <Good>\" +\n//\t\t\t\t\" <ID>36894</ID>\" +\n//\t\t\t\t\" <Size>42</Size>\" +\n//\t\t\t\t\" <Qty>1</Qty>\" +\n//\t\t\t\t\" <Price>1265</Price>\" +\n//\t\t\t\t\" </Good>\" +\n//\t\t\t\t\"</GoodsList>\";\n//\t\ttry {\n//\t\t\tbuyerInfo = URLEncoder.encode(buyerInfo,\"UTF-8\");\n//\t\t\tSystem.out.println(\"buyerInfo =\" +buyerInfo);\n//\t\t\tgooodsList = URLEncoder.encode(gooodsList,\"UTF-8\");\n//\t\t\tSystem.out.println(\"gooodsList =\" +gooodsList);\n//\t\t} catch (UnsupportedEncodingException e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n//\t\tparam.put(\"buyerInfo\", buyerInfo);\n//\n//\t\tparam.put(\"goodsList\", gooodsList);\n//\n//\t\tString priceData = HttpUtil45.postAuth(\"http://studio69.atelier98.net/api_studio69/api_studio69.asmx/CreateNewOrder\",\n//\t\t\t\tparam ,new OutTimeConfig(1000*60*10,1000*60*10,1000*60*10),\"SHANGPIN\",\"2MWWKgNSxgf\");\n//\n//\t\ttry {\n////\t\t\tGoodDetail goodDetail = ObjectXMLUtil.xml2Obj(GoodDetail.class, priceData);\n//\t\t\tGoodsDetail categorys = ObjectXMLUtil.xml2Obj(GoodsDetail.class, priceData);\n//\t\t\tSystem.out.println(categorys.getGoodDetials().get(0).getStock().getItemlist().size());\n//\t\t} catch (JAXBException e1) {\n//\t\t\te1.printStackTrace();\n//\t\t}\n//\t\tSystem.out.println(priceData);\n//\n//\n//\n//\t\tFile file = new File(\"F://studio/GetGoodsDetailByGoodsID.xml\");\n//\t\tif (!file.exists()) {\n//\t\t\ttry {\n//\t\t\t\tfile.getParentFile().mkdirs();\n//\t\t\t\tfile.createNewFile();\n//\n//\t\t\t} catch (IOException e) {\n//\t\t\t\te.printStackTrace();\n//\t\t\t}\n//\t\t}\n//\t\tFileWriter fwriter = null;\n//\t\ttry {\n//\t\t\tfwriter = new FileWriter(\"F://studio/GetGoodsDetailByGoodsID.xml\");\n//\t\t\tfwriter.write(priceData);\n//\t\t} catch (IOException ex) {\n//\t\t\tex.printStackTrace();\n//\t\t} finally {\n//\t\t\ttry {\n//\t\t\t\tfwriter.flush();\n//\t\t\t\tfwriter.close();\n//\t\t\t} catch (IOException ex) {\n//\t\t\t\tex.printStackTrace();\n//\t\t\t}\n//\t\t}\n\n\n\n\n\t}", "public void run() \n\t{\n\t\ttry {\n\t\t\tSystem.out.println(\"Ejecutando cliente del vehiculo \");\n\t\t\t// Conecta a un socket servidor\n\t\t\tSocket sock = new Socket(IP, 50000);\n\t\t\tBufferedInputStream bis = new BufferedInputStream(new FileInputStream(\"vehiculo.xml\"));\n\t\t\tBufferedOutputStream bos = new BufferedOutputStream(sock.getOutputStream());\n\t\t\tbyte[] byteArray = new byte[8192];\n\n\t\t\twhile ((in = bis.read(byteArray)) != -1) \n\t\t\t{\n\t\t\t\tbos.write(byteArray, 0, in);\n\t\t\t}\n\t\t\tbis.close();\n\t\t\tbos.close();\n\t\t\tbos.flush();\n\t\t\tSystem.out.println(\"XML recibido con exito\");\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\tSystem.err.println(e);\n\n\t\t}\n\t}", "private void exportarXML(){\n \n String nombre_archivo=IO_ES.leerCadena(\"Inserte el nombre del archivo\");\n String[] nombre_elementos= {\"Modulos\", \"Estudiantes\", \"Profesores\"};\n Document doc=XML.iniciarDocument();\n doc=XML.estructurarDocument(doc, nombre_elementos);\n \n for(Persona estudiante : LEstudiantes){\n estudiante.escribirXML(doc);\n }\n for(Persona profesor : LProfesorado){\n profesor.escribirXML(doc);\n }\n for(Modulo modulo: LModulo){\n modulo.escribirXML(doc);\n }\n \n XML.domTransformacion(doc, RUTAXML, nombre_archivo);\n \n }", "@WebService(name = \"ProductoWS\", targetNamespace = \"http://ProductoWS/\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ProductoWS {\n\n\n /**\n * \n * @return\n * returns java.util.List<com.udea.ws.Producto>\n */\n @WebMethod(operationName = \"ConsultarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ConsultarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProducto\")\n @ResponseWrapper(localName = \"ConsultarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.ConsultarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ConsultarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ConsultarProductoResponse\")\n public List<Producto> consultarProducto();\n\n /**\n * \n * @param codigo\n * @return\n * returns java.lang.String\n */\n @WebMethod(operationName = \"BuscarProducto\")\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"BuscarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProducto\")\n @ResponseWrapper(localName = \"BuscarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.BuscarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/BuscarProductoRequest\", output = \"http://ProductoWS/ProductoWS/BuscarProductoResponse\")\n public String buscarProducto(\n @WebParam(name = \"codigo\", targetNamespace = \"\")\n int codigo);\n\n /**\n * \n * @param descripcion\n * @param precio\n * @param stock\n * @param nombre\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"ingresarProducto\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProducto\")\n @ResponseWrapper(localName = \"ingresarProductoResponse\", targetNamespace = \"http://ProductoWS/\", className = \"com.udea.ws.IngresarProductoResponse\")\n @Action(input = \"http://ProductoWS/ProductoWS/ingresarProductoRequest\", output = \"http://ProductoWS/ProductoWS/ingresarProductoResponse\")\n public String ingresarProducto(\n @WebParam(name = \"nombre\", targetNamespace = \"\")\n String nombre,\n @WebParam(name = \"precio\", targetNamespace = \"\")\n double precio,\n @WebParam(name = \"stock\", targetNamespace = \"\")\n int stock,\n @WebParam(name = \"descripcion\", targetNamespace = \"\")\n String descripcion);\n\n}", "com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"CompeticionesWS\", targetNamespace = \"http://WebServices/\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface CompeticionesWS {\n\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataPartido\n * @throws ExNoExistePartidoEnCompeticion_Exception\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataPartido seleccionarPartido(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1,\n @WebParam(name = \"arg2\", partName = \"arg2\")\n int arg2)\n throws ExNoExisteCompeticion_Exception, ExNoExistePartidoEnCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanEquipo\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanEquipo listarEquipos(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listaJugadores(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarCompetencias(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugador\n * @throws ExNoExisteJugador_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugador seleccionarJugador(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteJugador_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataCompeticion\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataCompeticion verInfoCompeticion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void finalizarVerDetallesComp(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns java.lang.String\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public String getImagePath(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void agregarCompeticionSesion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanDataPartidoComp\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanDataPartidoComp listarPartidos(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n ListBeanFiltro arg1);\n\n /**\n * \n * @param arg2\n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.FloatArrayArray\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public FloatArrayArray obtenerDividendosResultadoExacto(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1,\n @WebParam(name = \"arg2\", partName = \"arg2\")\n int arg2);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugPartido\n * @throws ExNoExisteCompeticion_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugPartido verInfoPartidoFinalizado(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0)\n throws ExNoExisteCompeticion_Exception\n ;\n\n /**\n * \n * @param arg0\n */\n @WebMethod\n public void finalizarDetallesPartido(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarLigasDefinidas(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanDataEquipoLiga\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanDataEquipoLiga obtenerTablaDePosiciones(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean obtenerUltimosPartidosFinalizados(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n * @throws ExDatosNoAsignados_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean infoPartidosCompeticion(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0)\n throws ExDatosNoAsignados_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.DataJugPartido\n * @throws ExNoExistePartidoEnCompeticion_Exception\n * @throws ExDatosNoAsignados_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public DataJugPartido listarJugadoresPorBando(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExDatosNoAsignados_Exception, ExNoExistePartidoEnCompeticion_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n * @throws ExNoExisteEquipo_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarJugEquipo(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteEquipo_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns boolean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public boolean competicionEstaFinalizada(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1);\n\n /**\n * \n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBean\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBean listarPencasDisponibles(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0);\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanGoleadores\n * @throws ExNoExisteCompeticion_Exception\n * @throws Exception_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanGoleadores getJugadoresCampeonato(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception, Exception_Exception\n ;\n\n /**\n * \n * @param arg1\n * @param arg0\n * @return\n * returns WebServices.CompeticionesWS.ListBeanGoleadores\n * @throws ExNoExisteCompeticion_Exception\n * @throws Exception_Exception\n */\n @WebMethod\n @WebResult(partName = \"return\")\n public ListBeanGoleadores get5MaxGoleadores(\n @WebParam(name = \"arg0\", partName = \"arg0\")\n String arg0,\n @WebParam(name = \"arg1\", partName = \"arg1\")\n int arg1)\n throws ExNoExisteCompeticion_Exception, Exception_Exception\n ;\n\n}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.QqCharge.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@WebService(name = \"livros\", targetNamespace = \"http://servico.estoque.knight.com.br/\")\n@XmlSeeAlso({\n br.com.knight.estoque.servico.ObjectFactory.class,\n br.com.knight.estoque.servico.excecoes.ObjectFactory.class\n})\npublic interface Livros {\n\n\n /**\n * \n * @param usuario\n * @param parameters\n * @return\n * returns br.com.knight.estoque.servico.CriarLivroResponse\n * @throws UsuarioNaoAutorizadoException\n * @throws SOAPException_Exception\n */\n @WebMethod\n @WebResult(name = \"criarLivroResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", partName = \"result\")\n @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n public CriarLivroResponse criarLivro(\n @WebParam(name = \"criarLivro\", targetNamespace = \"http://servico.estoque.knight.com.br/\", partName = \"parameters\")\n CriarLivro parameters,\n @WebParam(name = \"usuario\", targetNamespace = \"http://servico.estoque.knight.com.br/\", header = true, partName = \"usuario\")\n Usuario usuario)\n throws SOAPException_Exception, UsuarioNaoAutorizadoException\n ;\n\n /**\n * \n * @return\n * returns java.util.List<br.com.knight.estoque.servico.Livro>\n */\n @WebMethod\n @WebResult(targetNamespace = \"\")\n @RequestWrapper(localName = \"listarLivros\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivros\")\n @ResponseWrapper(localName = \"listarLivrosResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosResponse\")\n public List<Livro> listarLivros();\n\n /**\n * \n * @param tamanhoDaPagina\n * @param numeroDaPagina\n * @return\n * returns java.util.List<br.com.knight.estoque.servico.Livro>\n */\n @WebMethod\n @WebResult(name = \"livro\", targetNamespace = \"\")\n @RequestWrapper(localName = \"listarLivrosPaginacao\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosPaginacao\")\n @ResponseWrapper(localName = \"listarLivrosPaginacaoResponse\", targetNamespace = \"http://servico.estoque.knight.com.br/\", className = \"br.com.knight.estoque.servico.ListarLivrosPaginacaoResponse\")\n public List<Livro> listarLivrosPaginacao(\n @WebParam(name = \"numeroDaPagina\", targetNamespace = \"\")\n int numeroDaPagina,\n @WebParam(name = \"tamanhoDaPagina\", targetNamespace = \"\")\n int tamanhoDaPagina);\n\n}", "private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}", "@Override\n\tpublic String reprocessRequest(String ecnNo, String completeXml) {\n\t\tURI partbomUri;\n\t\ttry \n\t\t{\n\t\t\t\n\t\t\t\tList<ServiceInstance> serviceInstance = discoveryClient.getInstances(\"plm-payloadprocess-ms\");\n\t\t\t\tServiceInstance bomInstance = serviceInstance.get(0);\n\t\t\t\tString urlString = \"http://\" + bomInstance.getHost() + \":\" + Integer.toString(bomInstance.getPort())\n\t\t\t\t+ \"/reprocess\";\n\t\t\t\t HashMap<String, String> mvm = new HashMap<String, String>();\n\t\t\t\t mvm.put(\"ecnNo\", ecnNo.toString());\n\t\t\t mvm.put(\"completeXml\", completeXml); \n\t\t\t\t\t\t\n\t\t\t Map result = restTemplate.postForObject( urlString, mvm , Map.class);\n\t\t\n\t\t \n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public void startgetTerminalCardType(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardType getTerminalCardType2,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/getTerminalCardTypeRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getTerminalCardType2,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getTerminalCardType\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getTerminalCardType\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardTypeResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultgetTerminalCardType(\n (net.wit.webservice.TerminalServiceXmlServiceStub.GetTerminalCardTypeResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrorgetTerminalCardType(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getTerminalCardType\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getTerminalCardType\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getTerminalCardType\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetTerminalCardType(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetTerminalCardType(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetTerminalCardType(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetTerminalCardType(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetTerminalCardType(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetTerminalCardType(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetTerminalCardType(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrorgetTerminalCardType(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetTerminalCardType(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetTerminalCardType(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrorgetTerminalCardType(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrorgetTerminalCardType(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[1].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[1].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetParkPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.AddFilesToUser param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.AddFilesToUser.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "public net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfoResponse getDirectAreaInfo(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfo getDirectAreaInfo16)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[8].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/getDirectAreaInfoRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getDirectAreaInfo16,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectAreaInfo\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDirectAreaInfo\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfoResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectAreaInfoResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectAreaInfo\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectAreaInfo\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDirectAreaInfo\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "public static void subirXMLFTP(String cotizacionId,String xml) {\n\t\tDocumentBuilderFactory factory;\r\n\t DocumentBuilder builder;\r\n\t Document doc;\r\n\t TransformerFactory tFactory;\r\n\t Transformer transformer;\r\n\t \r\n\t String nombreArchivo = cotizacionId+\".xml\";\r\n\t\ttry {\r\n\t\t\tfactory \t\t\t= DocumentBuilderFactory.newInstance();\r\n\t\t\tbuilder \t\t\t= factory.newDocumentBuilder();\r\n\t\t\tdoc \t\t\t\t= builder.parse(new InputSource(new StringReader(xml)));\r\n\t\t\t// Usamos un transformador para la salida del archivo xml generado\r\n\t\t\ttFactory \t\t\t= TransformerFactory.newInstance();\r\n\t\t transformer \t\t= tFactory.newTransformer();\r\n\t\t DOMSource source \t= new DOMSource(doc);\t\t \r\n\t\t StreamResult result = new StreamResult(new File(\"/home/insis/\"+nombreArchivo));\r\n\t\t transformer.transform(source, result);\r\n\t\t \r\n\t\t \r\n\t\t} catch (SAXException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerConfigurationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (TransformerException e) {\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t \r\n}", "public static void main (String []args){\n\t\tint i2=0;\n\t\tIntegraInformacionSalidaWMS integra = new IntegraInformacionSalidaWMS();\n\t\tprop = new Properties();\n\t\ttry{\n\t\t\t//System.out.println(\"Ruta Properties:\"+Constants.FILE_PROPERTIES);\n\t\t\tprop.load(new FileInputStream(\"/proceso_XML/\"+\"config.properties\"));\n\t\t\t//prop.load(new FileInputStream(\"proceso/\"+\"config.properties\"));\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tString mensaje = \"Mensaje 1 :\"+e.getMessage();\n\t\t\t//email.mail(mensaje);\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\tString ws=prop.getProperty(\"wsCaserita\");\n\t\t\tString dir1=prop.getProperty(\"dirInicial\");\n\t\t\tString dir2=prop.getProperty(\"dirFinal\");\n\t\t\twhile (i2==0){\n\t\t\t\t//String path = \"/home2/ftp/out/\";\n\t\t\t\t//String path = \"/RedPrairie/LCSWMSTST/LES/files/hostout/\";\n\t\t\t\tString path = dir1;\n\n\t\t\t\tString files;\n\n\t\t\t\tFile directorio = new File(path);\n\t\t\t\tFile [] ficheros = directorio.listFiles();\n\t\t\t\tString line;\n\t\t\t\t//log.info(ws);\n\t\t\t\tif (ficheros!=null){\n\t\t\t\t\tfor (int i = 0; i < ficheros.length; i++) {\n\t\t\t\t\t\t\n\t\t\t if (ficheros[i].isFile()) {\n\t\t\t \tfiles = ficheros[i].getName();\n\t\t\t if (files.endsWith(\".xml\") || files.endsWith(\".XML\")){\n\t\t\t \tlog.info(\"archivo:\"+path+ficheros[i].getName());\n\t\t\t \t\t\t\ttry{\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tBufferedReader bf = new BufferedReader(new FileReader(path+ficheros[i].getName()));\n\t\t\t \t\t\t\t\tString linea=\"\";\n\t\t\t \t\t\t\t\tString xml=\"\";\n\t\t\t \t\t\t\t\tint lin=0;\n\t\t\t \t\t\t\t\tint band=1;\n\t\t\t \t\t\t\t\tString xml1=\"\";\n\t\t\t \t\t\t\t\tFecha fecha = new Fecha();\n\n\t\t\t \t\t\t\t\twhile((linea=bf.readLine())!=null){\n\t\t\t \t\t\t\t\t\txml=xml+linea;\n\t\t\t \t\t\t\t\t\tlin++;\n\t\t\t \t\t\t\t\t\tband=1;\n\t\t\t \t\t\t\t\t\tif (lin==5000){\n\n\t\t\t \t\t\t\t\t\t\txml1=xml1+xml;\n\t\t\t \t\t\t\t\t\t\txml=\"\";\n\t\t\t \t\t\t\t\t\t\tlin=0;\n\t\t\t \t\t\t\t\t\t\tband=0;\n\t\t\t \t\t\t\t\t\t}\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\t\t//Concatena XML \n\t\t\t \t\t\t\t\tif (band==1){\n\t\t\t \t\t\t\t\t\txml1=xml1+xml;\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\t\tFecha fecha2 = new Fecha();\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tlog.info(xml1);\n\t\t\t \t\t\t\t\t//System.out.println(xml);\n\t\t\t \t\t\t\t\tbf.close();\n\t\t\t \t\t\t\t\tConfirmacionDTO confirmacion = new ConfirmacionDTO();\n\t\t\t \t\t\t\t\tconfirmacion.setXml(xml1);\n\t\t\t \t\t\t\t\tconfirmacion.setNameFile(ficheros[i].getName());\n\t\t\t \t\t\t\t\tGson gson = new Gson();\n\t\t\t \t\t\t\t\tString json = gson.toJson(confirmacion);\n\t\t\t \t\t\t\t\t//System.out.println(json);\n\t\t\t \t\t\t\t\ttry {\n\t\t\t \t\t\t\t\t\t \n\t\t\t \t\t\t\t\t\tURL url = new URL(ws.trim());\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\t//URL url = new URL(\"http://192.168.1.30:8080/ServiciosTransportistaWEB/servicioTransRest/wmsCaserita/post\");\n\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\t\t\t \t\t\t\t\t\tconn.setDoOutput(true);\n\t\t\t \t\t\t\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\t \t\t\t\t\t\tOutputStream os = conn.getOutputStream();\n\t\t\t \t\t\t\t\t\tos.write(json.getBytes());\n\t\t\t \t\t\t\t\t\t//os.write(xml.getBytes());\n\t\t\t \t\t\t\t\t\tos.flush();\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t\tif (conn.getResponseCode() != 200) {\n\t\t\t \t\t\t\t\t\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n\t\t\t \t\t\t\t\t\t\t\t\t+ conn.getResponseCode());\n\t\t\t \t\t\t\t\t\t}\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t \t\t\t\t\t\t\t(conn.getInputStream())));\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t\tString output;\n\t\t\t \t\t\t\t\t\tlog.info(\"Output from Server .... \\n\");\n\t\t\t \t\t\t\t\t\t/*while ((output = br.readLine()) != null) {\n\t\t\t \t\t\t\t\t\t\tSystem.out.println(output);\n\t\t\t \t\t\t\t\t\t}*/\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t\tconn.disconnect();\n\t\t\t \t\t\t\t\t\txml=\"\";\n\t\t\t\t\t \t\t\t\txml1=\"\";\n\t\t\t\t\t \t\t\t\tlog.info(\"Hora Inicial:\"+fecha.getHHMMSS());\n\n\t\t\t\t \t\t\t\t\tlog.info(\"Hora Final:\"+fecha2.getHHMMSS());\n\t\t\t \t\t\t\t\t } catch (MalformedURLException e) {\n\t\t\t \t\t\t\t\t\t String mensaje = \"Mensaje 2: \"+e.getMessage();\n\t\t\t \t\t\t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\t\te.printStackTrace();\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t } catch (IOException e) {\n\t\t\t \t\t\t\t\t\t String mensaje = \"Mensaje 3: \"+e.getMessage();\n\t\t\t \t\t\t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\t\te.printStackTrace();\n\t\t\t \t\t\t\t \n\t\t\t \t\t\t\t\t }\n\t\t\t \t\t\t\t\t\n\n\t\t\t \t\t\t\t}catch(Exception e){\n\t\t\t \t\t\t\t\tString mensaje = \"Mensaje 4: \"+e.getMessage();\n\t\t\t \t\t\t\t\t//email.mail(mensaje);\n\t\t\t \t\t\t\t\te.printStackTrace();\n\t\t\t \t\t\t\t}\n\t\t\t \t\t\t\tintegra.moveFile(path+ficheros[i].getName(), ficheros[i].getName(),dir2);\n\t\t\t \t\t\t\t\n\t\t\t }\n\t\t\t }\n\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tString mensaje = \"Mensaje 5: \"+e.getMessage();\n\t\t\t//email.mail(mensaje);\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void startgetFilesFromUser(\r\n\r\n registry.ClientRegistryStub.GetFilesFromUser getFilesFromUser0,\r\n\r\n final registry.ClientRegistryCallbackHandler callback)\r\n\r\n throws java.rmi.RemoteException{\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\r\n _operationClient.getOptions().setAction(\"urn:getFilesFromUser\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n \r\n \r\n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\r\n \r\n\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env=null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n \r\n //Style is Doc.\r\n \r\n \r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n getFilesFromUser0,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://registry\",\r\n \"getFilesFromUser\")), new javax.xml.namespace.QName(\"http://registry\",\r\n \"getFilesFromUser\"));\r\n \r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n\r\n \r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n \r\n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\r\n registry.ClientRegistryStub.GetFilesFromUserResponse.class,\r\n getEnvelopeNamespaces(resultEnv));\r\n callback.receiveResultgetFilesFromUser(\r\n (registry.ClientRegistryStub.GetFilesFromUserResponse)object);\r\n \r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetFilesFromUser(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\r\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\r\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getFilesFromUser\"))){\r\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\r\n\t\t\t\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getFilesFromUser\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getFilesFromUser\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetFilesFromUser(new java.rmi.RemoteException(ex.getMessage(), ex));\r\n } catch(java.lang.ClassCastException e){\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetFilesFromUser(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetFilesFromUser(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetFilesFromUser(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetFilesFromUser(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetFilesFromUser(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetFilesFromUser(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetFilesFromUser(f);\r\n }\r\n\t\t\t\t\t\t\t\t\t } else {\r\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrorgetFilesFromUser(f);\r\n\t\t\t\t\t\t\t\t\t }\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t callback.receiveErrorgetFilesFromUser(f);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t callback.receiveErrorgetFilesFromUser(error);\r\n\t\t\t\t\t\t\t\t}\r\n }\r\n\r\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetFilesFromUser(axisFault);\r\n }\r\n }\r\n });\r\n \r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[0].setMessageReceiver(\r\n _callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n\r\n }", "public net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCardResponse getDownLoadCard(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCard getDownLoadCard20)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[10].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/getDownLoadCardRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getDownLoadCard20,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDownLoadCard\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"getDownLoadCard\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCardResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.GetDownLoadCardResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDownLoadCard\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDownLoadCard\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"getDownLoadCard\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"TerminalServiceXmlService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[11];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directOrderStateQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getTerminalCardType\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalReturnCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directQuery\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"qqCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectSrvInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForDay\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"directCharge\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDirectAreaInfo\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"terminalDownloadQueryForMonth\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[9]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\", \"getDownLoadCard\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[10]=__operation;\n \n \n }", "private void procesarConfiguracion() {\n try {\n\n\n IXMLParser parser = XMLParserFactory.createDefaultXMLParser();\n IXMLReader reader = StdXMLReader.fileReader(Servidor.path_config);\n parser.setReader(reader);\n IXMLElement xml = (IXMLElement) parser.parse();\n Enumeration e = xml.enumerateChildren();\n\n Vector v, c;\n IXMLElement proc, caso;\n\n\n while (e.hasMoreElements()) {\n proc = (IXMLElement) e.nextElement();\n v = proc.getChildren();\n int n = 0;\n LinkedList<Caso> list = new LinkedList<>();\n while (n < v.size()) {\n caso = (IXMLElement) v.get(n);\n\n Caso ca = new Caso(((IXMLElement) caso.getChildrenNamed(\"solucion\").get(0)).getContent(), ((IXMLElement) caso.getChildrenNamed(\"normal\").get(0)).getContent(), ((IXMLElement) caso.getChildrenNamed(\"error\").get(0)).getContent());\n list.add(ca);\n n++;\n\n }\n config.put(proc.getName(), list);\n }\n\n\n\n\n\n } catch (XMLException | IOException | ClassNotFoundException | InstantiationException | IllegalAccessException ex) {\n Servidor.logger.severe(ex.toString());\n }\n\n\n }", "private void cargarFichaLepra_discapacidades() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleAlarmInfoPage.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, registry.ClientRegistryStub.GetClients param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\r\n throws org.apache.axis2.AxisFault{\r\n\r\n \r\n try{\r\n\r\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\r\n emptyEnvelope.getBody().addChild(param.getOMElement(registry.ClientRegistryStub.GetClients.MY_QNAME,factory));\r\n return emptyEnvelope;\r\n } catch(org.apache.axis2.databinding.ADBException e){\r\n throw org.apache.axis2.AxisFault.makeFault(e);\r\n }\r\n \r\n\r\n }", "private void parseXMLResult(String respFile, ProcureLineItem pli,\r\n\t\t\tApprovalRequest ar, BaseVector lineItems, Approvable lic)\r\n\t\t\tthrows SAXException, ParserConfigurationException, IOException {\r\n\t\tLog.customer.debug(\"After calling getVertexTaxResponse()...: %s\",\r\n\t\t\t\t\"CatTaxCustomApprover response file before parsing : - %s\",\r\n\t\t\t\tclassName, respFile);\r\n\t\t// Parsing XML and populating field in Ariba.....\r\n\t\tlic = ar.getApprovable();\r\n\t\tLog.customer.debug(\" Parsing XML file ...........: %s\", className);\r\n\t\tFile file1 = new File(respFile);\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\tDocument doc = db.parse(file1);\r\n\t\t// if(respFile!=null){\r\n\t\tdoc.getDocumentElement().normalize();\r\n\t\tNodeList nodeList = doc.getElementsByTagName(\"LineItem\");\r\n\t\tLog.customer.debug(\"%s Information of all Line Item nodeList %s\",\r\n\t\t\t\tclassName, nodeList.getLength());\r\n\r\n\t\tfor (int s = 0; s < nodeList.getLength(); s++) {\r\n\t\t\tNode fstNode = nodeList.item(s);\r\n\t\t\tElement fstElmntlnm = (Element) fstNode;\r\n\t\t\tString lineItemNumber = fstElmntlnm.getAttribute(\"lineItemNumber\");\r\n\t\t\tint index = Integer.parseInt(lineItemNumber);\r\n\t\t\ttry {\r\n\t\t\t\tint plinumber = index - 1;\r\n\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\"%s *** lineItemNumber plinumber after: %s\",\r\n\t\t\t\t\t\tclassName, plinumber);\r\n\t\t\t\tpli = (ProcureLineItem) lineItems.get(plinumber);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLog.customer.debug(\"%s *** in catch of pli : %s\", className,\r\n\t\t\t\t\t\tlineItemNumber + \" ******** \" + e.toString());\r\n\t\t\t\tLog.customer.debug(pli.toString());\r\n\t\t\t\tLog.customer.debug(e.getClass());\r\n\t\t\t}\r\n\t\t\tif (fstNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\r\n\t\t\t\tElement fstElmnt = (Element) fstNode;\r\n\t\t\t\tNodeList countryElmntLst = fstElmnt\r\n\t\t\t\t\t\t.getElementsByTagName(\"Country\");\r\n\t\t\t\tElement lstNmElmnt = (Element) countryElmntLst.item(0);\r\n\t\t\t\tNodeList lstNm = lstNmElmnt.getChildNodes();\r\n\t\t\t\tLog.customer.debug(\"%s *** Country : %s\", className,\r\n\t\t\t\t\t\t((Node) lstNm.item(0)).getNodeValue());\r\n\r\n\t\t\t\t// Total Tax\r\n\t\t\t\tNodeList totaltaxElmntLst = fstElmnt\r\n\t\t\t\t\t\t.getElementsByTagName(\"TotalTax\");\r\n\t\t\t\tElement lstNmElmnt1 = (Element) totaltaxElmntLst.item(0);\r\n\t\t\t\tNodeList lstNm1 = lstNmElmnt1.getChildNodes();\r\n\t\t\t\tString totalTax = ((Node) lstNm1.item(0)).getNodeValue();\r\n\t\t\t\tBigDecimal taxAmount = new BigDecimal(totalTax);\r\n\t\t\t\tMoney taxTotal = new Money(taxAmount, pli.getAmount()\r\n\t\t\t\t\t\t.getCurrency());\r\n\t\t\t\tpli.setFieldValue(\"TaxAmount\", taxTotal);\r\n\t\t\t\tLog.customer.debug(\"%s *** Tax Amount : %s\", className,\r\n\t\t\t\t\t\ttotalTax);\r\n\r\n\t\t\t\t// Reason code\r\n\t\t\t\tElement fstElmntRC = (Element) fstNode;\r\n\t\t\t\tNodeList lstNmElmntLstRC = fstElmntRC\r\n\t\t\t\t\t\t.getElementsByTagName(\"AssistedParameter\");\r\n\t\t\t\tString ReasonCode = \" \";\r\n\t\t\t\tfor (int b = 0; b < lstNmElmntLstRC.getLength(); b++) {\r\n\t\t\t\t\tNode fstNodeRC = lstNmElmntLstRC.item(b);\r\n\t\t\t\t\tif (fstNodeRC.getNodeType() == Node.ELEMENT_NODE) {\r\n\t\t\t\t\t\tElement fstElmntRC1 = (Element) fstNodeRC;\r\n\t\t\t\t\t\tString fieldIdRC = fstElmntRC1.getAttribute(\"phase\");\r\n\t\t\t\t\t\tLog.customer.debug(\"%s *** ReasonCode in loop : \"\r\n\t\t\t\t\t\t\t\t+ fieldIdRC);\r\n\t\t\t\t\t\tif (\"POST\".equalsIgnoreCase(fieldIdRC)) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tElement lstNmElmntRC = (Element) lstNmElmntLstRC\r\n\t\t\t\t\t\t\t\t\t\t.item(0);\r\n\t\t\t\t\t\t\t\tif (lstNmElmntRC.equals(null)\r\n\t\t\t\t\t\t\t\t\t\t|| lstNmElmntRC.equals(\"\")) {\r\n\t\t\t\t\t\t\t\t\tReasonCode = \"\";\r\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\t\t\t\t\t\"%s *** ReasonCode in if : %s\",\r\n\t\t\t\t\t\t\t\t\t\t\tclassName, ReasonCode);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tNodeList lstNmRC = lstNmElmntRC\r\n\t\t\t\t\t\t\t\t\t\t\t.getChildNodes();\r\n\t\t\t\t\t\t\t\t\tReasonCode = ((Node) lstNmRC.item(0))\r\n\t\t\t\t\t\t\t\t\t\t\t.getNodeValue();\r\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\t\t\t\t\t\"%s *** ReasonCode in else : %s\",\r\n\t\t\t\t\t\t\t\t\t\t\tclassName, ReasonCode);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} catch (NullPointerException e) {\r\n\t\t\t\t\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\t\t\t\t\"%s *** inside exception : %s\",\r\n\t\t\t\t\t\t\t\t\t\tclassName);\r\n\t\t\t\t\t\t\t}\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\tLog.customer.debug(\"inside loop still....\");\r\n\t\t\t\t}\r\n\t\t\t\tLog.customer.debug(\"outside loop .....\");\r\n\t\t\t\t// *********************************************************************************\r\n\t\t\t\t// TaxAmount = 0 and Reason code = Null then exempt Reason code\r\n\t\t\t\t// is E0.\r\n\r\n\t\t\t\t// Start : RSD 111 (FRD4.0/TD 1.2)\r\n\r\n\t\t\t\tString sapsource = null;\r\n\t\t\t\tsapsource = (String)pli.getLineItemCollection().getDottedFieldValue(\"CompanyCode.SAPSource\");\r\n\r\n\t\t\t\tLog.customer.debug(\"*** ReasonCode logic RSD111 SAPSource is: %s\",sapsource);\r\n\r\n\t\t\t\tif((sapsource.equals(\"MACH1\")) && ((ReasonCode != null) && (!\"\"\r\n\t\t\t\t\t\t.equals(ReasonCode))))\r\n\t\t\t\t{\r\n\t\t\t\t\t/** Fetching Description from Table. */\r\n\t\t\t\t\tLog.customer.debug(\"*** ReasonCode logic RSD111: \" + ReasonCode);\r\n\t\t\t\t\tString taxCodeForLookup = ReasonCode; // Please Replace with\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the Actual value\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from Web Service\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Response.\r\n\t\t\t\t\tString qryStringrc = \"Select TaxExemptDescription from cat.core.TaxExemptReasonCode where TaxExemptUniqueName = '\"\r\n\t\t\t\t\t\t\t+ taxCodeForLookup + \"'\";\r\n\t\t\t\t\tLog.customer.debug(\"%s TaxExemptReasonCode : qryString \"\r\n\t\t\t\t\t\t\t+ qryStringrc);\r\n\t\t\t\t\t// Replace the cntrctrequest - Invoice Reconciliation Object\r\n\t\t\t\t\tAQLOptions queryOptionsrc = new AQLOptions(ar\r\n\t\t\t\t\t\t\t.getPartition());\r\n\t\t\t\t\tAQLResultCollection queryResultsrc = Base.getService()\r\n\t\t\t\t\t\t\t.executeQuery(qryStringrc, queryOptionsrc);\r\n\t\t\t\t\tif (queryResultsrc != null) {\r\n\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t.debug(\" RSD111 -- TaxExemptReasonCode: Query Results not null\");\r\n\t\t\t\t\t\twhile (queryResultsrc.next()) {\r\n\t\t\t\t\t\t\tString taxdescfromLookupvalue = (String) queryResultsrc\r\n\t\t\t\t\t\t\t\t\t.getString(0);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" RSD111 TaxExemptReasonCode: taxdescfromLookupvalue = \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t\t// Change the rli to appropriate Carrier Holding\r\n\t\t\t\t\t\t\t// object, i.e. IR Line object\r\n\t\t\t\t\t\t\tif (\"\".equals(taxdescfromLookupvalue)\r\n\t\t\t\t\t\t\t\t\t|| taxdescfromLookupvalue == null\r\n\t\t\t\t\t\t\t\t\t|| \"null\".equals(taxdescfromLookupvalue)) {\r\n\t\t\t\t\t\t\t\t// if(taxdescfromLookupvalue.equals(\"\")||taxdescfromLookupvalue\r\n\t\t\t\t\t\t\t\t// ==\r\n\t\t\t\t\t\t\t\t// null||taxdescfromLookupvalue.equals(\"null\")\r\n\t\t\t\t\t\t\t\t// ){\r\n\t\t\t\t\t\t\t\ttaxdescfromLookupvalue = \"\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tpli\r\n\t\t\t\t\t\t\t\t\t.setFieldValue(\"Carrier\",\r\n\t\t\t\t\t\t\t\t\t\t\ttaxdescfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" RSD111 -- TaxExemptReasonCode Applied on Carrier: \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// End : RSD 111 (FRD4.0/TD 1.2)\r\n\r\n\r\n\t\t\t\t} else if ((\"0.0\".equals(totalTax) && ((ReasonCode == null) || (\"\"\r\n\t\t\t\t\t\t.equals(ReasonCode))))) {\r\n\t\t\t\t\tReasonCode = \"E0\";\r\n\t\t\t\t\tLog.customer.debug(\"*** ReasonCode in condition : %s\",\r\n\t\t\t\t\t\t\tclassName, ReasonCode);\r\n\t\t\t\t} else if ((\"0.0\".equals(totalTax) && ((ReasonCode != null) || (!\"\"\r\n\t\t\t\t\t\t.equals(ReasonCode))))) {\r\n\r\n\t\t\t\t\t// End Exempt Reason code logic.\r\n\t\t\t\t\t/** Fetching Description from Table. */\r\n\t\t\t\t\tLog.customer.debug(\"*** ReasonCode after : \" + ReasonCode);\r\n\t\t\t\t\tString taxCodeForLookup = ReasonCode; // Please Replace with\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the Actual value\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from Web Service\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Response.\r\n\t\t\t\t\tString qryStringrc = \"Select TaxExemptDescription from cat.core.TaxExemptReasonCode where TaxExemptUniqueName = '\"\r\n\t\t\t\t\t\t\t+ taxCodeForLookup + \"'\";\r\n\t\t\t\t\tLog.customer.debug(\"%s TaxExemptReasonCode : qryString \"\r\n\t\t\t\t\t\t\t+ qryStringrc);\r\n\t\t\t\t\t// Replace the cntrctrequest - Invoice Reconciliation Object\r\n\t\t\t\t\tAQLOptions queryOptionsrc = new AQLOptions(ar\r\n\t\t\t\t\t\t\t.getPartition());\r\n\t\t\t\t\tAQLResultCollection queryResultsrc = Base.getService()\r\n\t\t\t\t\t\t\t.executeQuery(qryStringrc, queryOptionsrc);\r\n\t\t\t\t\tif (queryResultsrc != null) {\r\n\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t.debug(\" TaxExemptReasonCode: Query Results not null\");\r\n\t\t\t\t\t\twhile (queryResultsrc.next()) {\r\n\t\t\t\t\t\t\tString taxdescfromLookupvalue = (String) queryResultsrc\r\n\t\t\t\t\t\t\t\t\t.getString(0);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" TaxExemptReasonCode: taxdescfromLookupvalue = \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t\t// Change the rli to appropriate Carrier Holding\r\n\t\t\t\t\t\t\t// object, i.e. IR Line object\r\n\t\t\t\t\t\t\tif (\"\".equals(taxdescfromLookupvalue)\r\n\t\t\t\t\t\t\t\t\t|| taxdescfromLookupvalue == null\r\n\t\t\t\t\t\t\t\t\t|| \"null\".equals(taxdescfromLookupvalue)) {\r\n\t\t\t\t\t\t\t\t// if(taxdescfromLookupvalue.equals(\"\")||taxdescfromLookupvalue\r\n\t\t\t\t\t\t\t\t// ==\r\n\t\t\t\t\t\t\t\t// null||taxdescfromLookupvalue.equals(\"null\")\r\n\t\t\t\t\t\t\t\t// ){\r\n\t\t\t\t\t\t\t\ttaxdescfromLookupvalue = \"\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tpli\r\n\t\t\t\t\t\t\t\t\t.setFieldValue(\"Carrier\",\r\n\t\t\t\t\t\t\t\t\t\t\ttaxdescfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" TaxExemptReasonCode Applied on Carrier: \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// End Exempt Reason code logic.\r\n\r\n\t\t\t\t// *****************************************************************************//*\r\n\t\t\t\t// tax code logic ...\r\n\t\t\t\tif (totalTax.equals(\"0.0\")) {\r\n\t\t\t\t\tString companyCode = (String) lic\r\n\t\t\t\t\t\t\t.getDottedFieldValue(\"CompanyCode.UniqueName\");\r\n\t\t\t\t\tString state = (String) pli\r\n\t\t\t\t\t\t\t.getDottedFieldValue(\"ShipTo.State\");\r\n\t\t\t\t\tString formattedString = companyCode + \"_\" + state + \"_\"\r\n\t\t\t\t\t\t\t+ \"B0\";\r\n\t\t\t\t\tLog.customer.debug(\"***formattedString : \"\r\n\t\t\t\t\t\t\t+ formattedString);\r\n\t\t\t\t\tString qryString = \"Select TaxCode,UniqueName, SAPTaxCode from ariba.tax.core.TaxCode where UniqueName = '\"\r\n\t\t\t\t\t\t\t+ formattedString\r\n\t\t\t\t\t\t\t+ \"' and Country.UniqueName ='\"\r\n\t\t\t\t\t\t\t+ pli\r\n\t\t\t\t\t\t\t\t\t.getDottedFieldValue(\"ShipTo.Country.UniqueName\")\r\n\t\t\t\t\t\t\t+ \"'\";\r\n\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: qryString \"\r\n\t\t\t\t\t\t\t\t\t+ qryString);\r\n\t\t\t\t\tAQLOptions queryOptions = new AQLOptions(ar.getPartition());\r\n\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage I\");\r\n\t\t\t\t\tAQLResultCollection queryResults = Base.getService()\r\n\t\t\t\t\t\t\t.executeQuery(qryString, queryOptions);\r\n\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage II- Query Executed\");\r\n\t\t\t\t\tif (queryResults != null) {\r\n\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage III - Query Results not null\");\r\n\t\t\t\t\t\twhile (queryResults.next()) {\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage IV - Entering the DO of DO-WHILE\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ queryResults.getBaseId(0).get());\r\n\t\t\t\t\t\t\tTaxCode taxfromLookupvalue = (TaxCode) queryResults\r\n\t\t\t\t\t\t\t\t\t.getBaseId(0).get();\r\n\t\t\t\t\t\t\tLog.customer.debug(\" taxfromLookupvalue\"\r\n\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: TaxCodefromLookup\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\r\n\t\t\t\t\t\t\t// Set the Value of LineItem.TaxCode.UniqueName =\r\n\t\t\t\t\t\t\t// 'formattedString'\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: Setting TaxCodefromLookup\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\r\n\t\t\t\t\t\t\tpli.setFieldValue(\"TaxCode\", taxfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: Applied \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\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\t// end Tax code...\r\n\t\t\t\tLog.customer.debug(\"*** After loop Tax code : \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// }\r\n\t}", "public void cargarSecuencia(FacturaProveedorSRI facturaProveedorSRI, PuntoDeVenta puntoDeVenta)\r\n/* 277: */ throws ExcepcionAS2\r\n/* 278: */ {\r\n/* 279:280 */ AutorizacionDocumentoSRI autorizacionDocumentoSRI = null;\r\n/* 280:283 */ if (puntoDeVenta != null) {\r\n/* 281:284 */ autorizacionDocumentoSRI = this.servicioDocumento.cargarDocumentoConAutorizacion(getFacturaProveedorSRI().getDocumento(), puntoDeVenta, facturaProveedorSRI\r\n/* 282:285 */ .getFechaEmisionRetencion());\r\n/* 283: */ }\r\n/* 284:287 */ if ((Integer.parseInt(facturaProveedorSRI.getNumeroRetencion()) == 0) || (\r\n/* 285:288 */ (facturaProveedorSRI.getDocumento() != null) && (facturaProveedorSRI.getDocumento().isIndicadorDocumentoElectronico()) && \r\n/* 286:289 */ (!facturaProveedorSRI.isTraCorregirDatos())))\r\n/* 287: */ {\r\n/* 288:290 */ String numero = this.servicioSecuencia.obtenerSecuencia(getFacturaProveedorSRI().getDocumento().getSecuencia(), facturaProveedorSRI\r\n/* 289:291 */ .getFechaEmisionRetencion());\r\n/* 290: */ \r\n/* 291:293 */ facturaProveedorSRI.setNumeroRetencion(numero);\r\n/* 292:294 */ facturaProveedorSRI.setAutorizacionRetencion(autorizacionDocumentoSRI.getAutorizacion());\r\n/* 293: */ }\r\n/* 294: */ }", "public static void main(String[] args){\n WSDLParser parser = new WSDLParser();\n \n //checar este wsdl http://www.xmethods.net/ve2/ViewListing.po?key=425856 //Elemento Symple\n Definitions wsdl = parser.parse(\"http://www.xignite.com/xAnalysts.asmx?WSDL\");\n \n //Definitions wsdl = parser.parse(\"http://www.restfulwebservices.net/wcf/BibleKJVService.svc?wsdl\");//Imports con targetnamespace mal\n //Definitions wsdl = parser.parse(\"http://www.thomas-bayer.com/axis2/services/BLZService?wsdl\");\n //Definitions wsdl = parser.parse(\"https://api.networkip.net/jaduka/?WSDL\");//http://www.xmethods.net/ve2/ViewListing.po?key=uuid:22952E44-96F9-4597-55E1-05447A4DD947\n \n //Schema schema = wsdl.getSchema(\"http://thomas-bayer.com/blz/\");\n Schema schema = wsdl.getSchema(wsdl.getTargetNamespace());\n //Schema schema = wsdl.getSchema(\"http://www.restfulwebservices.net/ServiceContracts/2008/01/Imports\");\n \n ///////////////////////////////////////////////////////////////////CODIGO PARSEO SCHEMA\n //SchemaParser parser = new SchemaParser();\n //Schema schema = parser.parse(\"samples/xsd/human-resources.xsd\");\n \n out(\"-------------- Schema Information --------------\");\n out(\" Schema TargetNamespace: \" + schema.getTargetNamespace());\n out(\" AttributeFormDefault: \" + schema.getAttributeFormDefault());\n out(\" ElementFormDefault: \" + schema.getElementFormDefault());\n out(\"\");\n \n out(\"Schema as String: \");\n out(schema.getAsString());\n \n if (schema.getImports().size() > 0) {\n out(\" Schema Imports: \");\n for (Import imp : schema.getImports()) {\n out(\" Import Namespace: \" + imp.getNamespace());\n out(\" Import Location: \" + imp.getSchemaLocation());\n }\n out(\"\");\n }\n \n if (schema.getIncludes().size() > 0) {\n out(\" Schema Includes: \");\n for (Include inc : schema.getIncludes()) {\n out(\" Include Location: \" + inc.getSchemaLocation());\n }\n out(\"\");\n }\n \n out(\" Schema Elements: \");\n for (Element e : schema.getAllElements()) {\n out(\" Element Name: \" + e.getName());\n if (e.getType() != null) {\n /*\n * schema.getType() delivers a TypeDefinition (SimpleType orComplexType)\n * object.\n */\n out(\" Element Type Name: \" + schema.getType(e.getType()).getName());\n out(\" Element minoccurs: \" + e.getMinOccurs());\n out(\" Element maxoccurs: \" + e.getMaxOccurs());\n out(\" Schema del Elemento: \" + e.getSchema().toString());\n \n if (e.getAnnotation() != null)\n annotationOut(e);\n }\n }\n out(\"\");\n \n out(\" Schema ComplexTypes: \");\n for (ComplexType ct : schema.getComplexTypes()) {\n out(\" ComplexType Name: \" + ct.getName());\n if (ct.getAnnotation() != null)\n annotationOut(ct);\n if (ct.getAttributes().size() > 0) {\n out(\" ComplexType Attributes: \");\n /*\n * If available, attributeGroup could be read as same as attribute in\n * the following.\n */\n for (Attribute attr : ct.getAttributes()) {\n out(\" Attribute Name: \" + attr.getName());\n out(\" Attribute Form: \" + attr.getForm());\n out(\" Attribute ID: \" + attr.getId());\n out(\" Attribute Use: \" + attr.getUse());\n out(\" Attribute FixedValue: \" + attr.getFixedValue());\n out(\" Attribute DefaultValue: \" + attr.getDefaultValue());\n }\n }\n /*\n * ct.getModel() delivers the child element used in complexType. In case\n * of 'sequence' you can also use the getSequence() method.\n */\n out(\" ComplexType Model: \" + ct.getModel().getClass().getSimpleName());\n if (ct.getModel() instanceof ModelGroup) {\n out(\" Model Particles: \");\n for (SchemaComponent sc : ((ModelGroup) ct.getModel()).getParticles()) {\n out(\" Particle Kind: \" + sc.getClass().getSimpleName());\n out(\" Particle Name: \" + sc.getName());\n out(\" Prefix: \" + sc.getPrefix());\n out(\" DataType: \" + ((QName)sc.getProperty(\"type\")).getQualifiedName() );\n out(\" String: \" + sc.getAsString());\n \n }\n }\n \n if (ct.getModel() instanceof ComplexContent) {\n Derivation der = ((ComplexContent) ct.getModel()).getDerivation();\n out(\" ComplexConten Derivation: \" + der.getClass().getSimpleName());\n out(\" Derivation Base: \" + der.getBase());\n }\n \n if (ct.getAbstractAttr() != null)\n out(\" ComplexType AbstractAttribute: \" + ct.getAbstractAttr());\n if (ct.getAnyAttribute() != null)\n out(\" ComplexType AnyAttribute: \" + ct.getAnyAttribute());\n \n out(\"\");\n }\n \n if (schema.getSimpleTypes().size() > 0) {\n out(\" Schema SimpleTypes: \");\n for (SimpleType st : schema.getSimpleTypes()) {\n out(\" SimpleType Name: \" + st.getName());\n out(\" SimpleType Restriction: \" + st.getRestriction());\n out(\" -----------:Base:\" + st.getRestriction().getBase().getQualifiedName());\n out(\" ----------:Prefix:\" + st.getRestriction().getBase().getPrefix());\n out(\" SimpleType Union: \" + st.getUnion());\n out(\" SimpleType List: \" + st.getList());\n }\n }\n \n \n }", "public void startdirectOrderStateQuery(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectOrderStateQuery directOrderStateQuery0,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/directOrderStateQueryRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n directOrderStateQuery0,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directOrderStateQuery\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directOrderStateQuery\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectOrderStateQueryResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultdirectOrderStateQuery(\n (net.wit.webservice.TerminalServiceXmlServiceStub.DirectOrderStateQueryResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrordirectOrderStateQuery(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directOrderStateQuery\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directOrderStateQuery\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directOrderStateQuery\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectOrderStateQuery(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectOrderStateQuery(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectOrderStateQuery(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectOrderStateQuery(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectOrderStateQuery(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectOrderStateQuery(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectOrderStateQuery(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectOrderStateQuery(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectOrderStateQuery(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrordirectOrderStateQuery(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrordirectOrderStateQuery(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrordirectOrderStateQuery(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[0].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[0].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "private void limpiarDatos() {\n\t\t\n\t}", "public net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonthResponse terminalDownloadQueryForMonth(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonth terminalDownloadQueryForMonth18)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[9].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/terminalDownloadQueryForMonthRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n terminalDownloadQueryForMonth18,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForMonth\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForMonth\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonthResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForMonthResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForMonth\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForMonth\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForMonth\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "private void saveXML_FTP(String yearId, String templateId, String schoolCode,Restrictions r) {\n String server = \"192.168.1.36\";\r\n int port = 21;\r\n String user = \"david\";\r\n String pass = \"david\";\r\n DocumentBuilderFactory icFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder icBuilder;\r\n FTPClient ftpClient = new FTPClient();\r\n try {\r\n ftpClient.connect(server, port);\r\n ftpClient.login(user, pass);\r\n\r\n ftpClient.setFileType(FTP.BINARY_FILE_TYPE);\r\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\tDate date = new Date();\r\n\t//System.out.println(dateFormat.format(date)); //2016/11/16 12:08:43\r\n String fecha = dateFormat.format(date);\r\n fecha = fecha.replace(\" \", \"_\");\r\n fecha = fecha.replace(\"/\", \"_\");\r\n fecha = fecha.replace(\":\", \"_\");\r\n String filename = yearId + \"_\" + templateId+\"_\"+fecha+\".xml\";\r\n String rutaCarpeta = \"/Schedules/\" + schoolCode;\r\n\r\n if (!ftpClient.changeWorkingDirectory(rutaCarpeta));\r\n {\r\n ftpClient.changeWorkingDirectory(\"/Schedules\");\r\n ftpClient.mkd(schoolCode);\r\n ftpClient.changeWorkingDirectory(schoolCode);\r\n }\r\n\r\n icBuilder = icFactory.newDocumentBuilder();\r\n Document doc = icBuilder.newDocument();\r\n Element mainRootElement = doc.createElementNS(\"http://eduwebgroup.ddns.net/ScheduleWeb/enviarmensaje.htm\", \"Horarios\");\r\n doc.appendChild(mainRootElement);\r\n Element students = doc.createElement(\"Students\");\r\n // append child elements to root element\r\n \r\n for (Course t : r.courses) {\r\n for (int j = 0; j < t.getArraySecciones().size(); j++) {\r\n for (int k = 0; k < t.getArraySecciones().get(j).getIdStudents().size(); k++) { \r\n students.appendChild(getStudent(doc,\"\"+t.getArraySecciones().get(j).getIdStudents().get(k),\"\"+t.getIdCourse(),\"\"+(j+1),yearId,\"\"+t.getArraySecciones().get(j).getClassId())); \r\n } \r\n }\r\n }\r\n \r\n Element cursos = doc.createElement(\"Courses\");\r\n for (Course t : r.courses) {\r\n for (int j = 1; j < t.getArraySecciones().size(); j++) {\r\n //if()\r\n cursos.appendChild(getCursos(doc,\"\"+t.getIdCourse(),\"\"+j,\"\"+t.getArraySecciones().get(j).getIdTeacher(),yearId,\"\"+t.getArraySecciones().get(j).getClassId()));\r\n }\r\n }\r\n \r\n//private Node getBloques(Document doc, String day, String begin, String tempId, String courseId, String section) {\r\n \r\n Element bloques = doc.createElement(\"Blocks\");\r\n for (Course t : r.courses) {\r\n /* for (int i = 0; i < TAMY; i++) {\r\n for (int j = 0; j < TAMX; j++) {\r\n \r\n if ( !t.getHuecos()[j][i].contains(\"0\")) {\r\n if(t.getHuecos()[j][i].contains(\"and\")){\r\n String[] partsSections = t.getHuecos()[j][i].split(\"and\");\r\n for (String partsSection : partsSections) {\r\n String seccionClean = partsSection.replace(\" \", \"\");\r\n if(!seccionClean.equals(\"0\"))bloques.appendChild(getBloques(doc,\"\"+(j+1),\"\"+(i+1),templateId,\"\"+t.getIdCourse(),seccionClean,yearId));\r\n }\r\n }\r\n else\r\n bloques.appendChild(getBloques(doc,\"\"+(j+1),\"\"+(i+1),templateId,\"\"+t.getIdCourse(),\"\"+t.getHuecos()[j][i],yearId));\r\n }\r\n }\r\n }*/\r\n for (int i = 0; i < t.getArraySecciones().size(); i++) {\r\n for (int j = 0; j < t.getArraySecciones().get(i).getPatronUsado().size(); j++) {\r\n int col = (int) t.getArraySecciones().get(i).getPatronUsado().get(j).x +1;\r\n int row = (int) t.getArraySecciones().get(i).getPatronUsado().get(j).y +1;\r\n \r\n bloques.appendChild(getBloques(doc,\"\"+(col),\"\"+(row),templateId,\"\"+t.getIdCourse(),\"\"+t.getArraySecciones().get(i).getNumSeccion(),yearId,\"\"+t.getArraySecciones().get(i).getClassId(),\"\"+t.getArraySecciones().get(i).getPatternRenweb()));\r\n }\r\n }\r\n }\r\n \r\n /* students.appendChild(getCompany(doc, \"Paypal\", \"Payment\", \"1000\"));\r\n students.appendChild(getCompany(doc, \"eBay\", \"Shopping\", \"2000\"));\r\n students.appendChild(getCompany(doc, \"Google\", \"Search\", \"3000\"));*/\r\n \r\n mainRootElement.appendChild(students);\r\n mainRootElement.appendChild(cursos);\r\n mainRootElement.appendChild(bloques);\r\n // output DOM XML to console \r\n /*Transformer transformer = TransformerFactory.newInstance().newTransformer();\r\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\r\n DOMSource source = new DOMSource(doc);\r\n StreamResult console = new StreamResult(System.out);\r\n transformer.transform(source, console);\r\n*/\r\n\r\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\r\n Source xmlSource = new DOMSource(doc);\r\n Result outputTarget = new StreamResult(outputStream);\r\n TransformerFactory.newInstance().newTransformer().transform(xmlSource, outputTarget);\r\n InputStream is = new ByteArrayInputStream(outputStream.toByteArray());\r\n\r\n ftpClient.storeFile(filename, is);\r\n ftpClient.logout();\r\n\r\n } catch (Exception ex) {\r\n System.err.println(\"\");\r\n }\r\n\r\n }", "public void startdirectQuery(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectQuery directQuery6,\n\n final net.wit.webservice.TerminalServiceXmlServiceCallbackHandler callback)\n\n throws java.rmi.RemoteException{\n\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/directQueryRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env=null;\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n //Style is Doc.\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n directQuery6,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directQuery\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"directQuery\"));\n \n // adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // create message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message context to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n\n \n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\n public void onMessage(org.apache.axis2.context.MessageContext resultContext) {\n try {\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\n \n java.lang.Object object = fromOM(resultEnv.getBody().getFirstElement(),\n net.wit.webservice.TerminalServiceXmlServiceStub.DirectQueryResponse.class,\n getEnvelopeNamespaces(resultEnv));\n callback.receiveResultdirectQuery(\n (net.wit.webservice.TerminalServiceXmlServiceStub.DirectQueryResponse)object);\n \n } catch (org.apache.axis2.AxisFault e) {\n callback.receiveErrordirectQuery(e);\n }\n }\n\n public void onError(java.lang.Exception error) {\n\t\t\t\t\t\t\t\tif (error instanceof org.apache.axis2.AxisFault) {\n\t\t\t\t\t\t\t\t\torg.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\n\t\t\t\t\t\t\t\t\torg.apache.axiom.om.OMElement faultElt = f.getDetail();\n\t\t\t\t\t\t\t\t\tif (faultElt!=null){\n\t\t\t\t\t\t\t\t\t\tif (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directQuery\"))){\n\t\t\t\t\t\t\t\t\t\t\t//make the fault by reflection\n\t\t\t\t\t\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directQuery\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n\t\t\t\t\t\t\t\t\t\t\t\t\t//message class\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"directQuery\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n\t\t\t\t\t\t\t\t\t\t\t\t\tjava.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew java.lang.Class[]{messageClass});\n\t\t\t\t\t\t\t\t\t\t\t\t\tm.invoke(ex,new java.lang.Object[]{messageObject});\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectQuery(new java.rmi.RemoteException(ex.getMessage(), ex));\n } catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectQuery(f);\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectQuery(f);\n } catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectQuery(f);\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectQuery(f);\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectQuery(f);\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectQuery(f);\n } catch (org.apache.axis2.AxisFault e) {\n // we cannot intantiate the class - throw the original Axis fault\n callback.receiveErrordirectQuery(f);\n }\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t\t callback.receiveErrordirectQuery(f);\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t callback.receiveErrordirectQuery(f);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t callback.receiveErrordirectQuery(error);\n\t\t\t\t\t\t\t\t}\n }\n\n public void onFault(org.apache.axis2.context.MessageContext faultContext) {\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\n onError(fault);\n }\n\n public void onComplete() {\n try {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n } catch (org.apache.axis2.AxisFault axisFault) {\n callback.receiveErrordirectQuery(axisFault);\n }\n }\n });\n \n\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\n if ( _operations[3].getMessageReceiver()==null && _operationClient.getOptions().isUseSeparateListener()) {\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\n _operations[3].setMessageReceiver(\n _callbackReceiver);\n }\n\n //execute the operation client\n _operationClient.execute(false);\n\n }", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl param, boolean optimizeContent)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.DoControl.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "public void aplicarDescuento();", "public void cargarPantalla() throws Exception {\n Long oidCabeceraMF = (Long)conectorParametroSesion(\"oidCabeceraMF\");\n\t\tthis.pagina(\"contenido_matriz_facturacion_consultar\");\n\n DTOOID dto = new DTOOID();\n dto.setOid(oidCabeceraMF);\n dto.setOidPais(UtilidadesSession.getPais(this));\n dto.setOidIdioma(UtilidadesSession.getIdioma(this));\n MareBusinessID id = new MareBusinessID(\"PRECargarPantallaConsultarMF\"); \n Vector parametros = new Vector();\n \t\tparametros.add(dto);\n parametros.add(id);\n \t\tDruidaConector conector = conectar(\"ConectorCargarPantallaConsultarMF\", parametros);\n if (oidCabeceraMF!=null)\n asignarAtributo(\"VAR\",\"varOidCabeceraMF\",\"valor\",oidCabeceraMF.toString());\n\t\t asignar(\"COMBO\", \"cbTiposOferta\", conector, \"dtoSalida.resultado_ROWSET\");\n\t\t///* [1]\n\n\n\n\t\ttraza(\" >>>>cargarEstrategia \");\n\t\t//this.pagina(\"contenido_catalogo_seleccion\"); \n\t\t \n\t\tComposerViewElementList cv = crearParametrosEntrada();\n\t\tConectorComposerView conectorV = new ConectorComposerView(cv, this.getRequest());\n\t\tconectorV.ejecucion();\n\t\ttraza(\" >>>Se ejecuto el conector \");\n\t\tDruidaConector resultados = conectorV.getConector();\n\t\tasignar(\"COMBO\", \"cbEstrategia\", resultados, \"PRECargarEstrategias\");\n\t\ttraza(\" >>>Se asignaron los valores \");\n\t\t// */ [1]\n\t\t\n\n }", "public void leerArchivo() {\n String rfcProveedor = produccionCigarrosHelper.getProveedor().getRfc();\n String rfcTabacalera = produccionCigarrosHelper.getTabacalera().getRfc();\n\n if (archivoFoliosService != null && desperdiciosHelper.getArchivoFolios() != null) {\n try {\n desperdiciosHelper.setNombreArchivo(desperdiciosHelper.getArchivoFolios().getFileName());\n InputStream inputStream = desperdiciosHelper.getArchivoFolios().getInputstream();\n\n desperdiciosHelper.setRangoFoliosList(archivoFoliosProduccionService.leerArchivoFolios(inputStream, desperdiciosHelper.getNombreArchivo()));\n desperdiciosHelper.setRangoFoliosListAux(validadorRangosService.generarRangosProduccion(rfcTabacalera, rfcProveedor, desperdiciosHelper.getRangoFoliosList()));\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n\n solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null);\n firmaFormHelper.setCadenaOriginal(solicitudService.generaCadenaOriginal(firmaFormHelper.getRfcSession(), sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()), null));\n desperdiciosHelper.setCantidadSolicitada(sumaRangosFolio(desperdiciosHelper.getRangoFoliosListAux()));\n\n } catch (SolicitudServiceException bE) {\n desperdiciosHelper.setMsgErrorArchivo(bE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"Error: al Leer el archivo\" + bE.getMessage(), bE);\n } catch (RangosException rE) {\n desperdiciosHelper.setMsgErrorArchivo(rE.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n super.msgError(rE.getMessage());\n } catch (IOException io) {\n desperdiciosHelper.setMsgErrorArchivo(io.getMessage());\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + io.getMessage());\n } catch (ArchivoFoliosServiceException ex) {\n LOGGER.error(\"ERROR: Al leer el Archivo : \" + ex.getMessage());\n }\n if (!desperdiciosHelper.getMsgErrorArchivo().isEmpty()) {\n desperdiciosHelper.setDeshabilitaBtnGuardar(true);\n desperdiciosHelper.setMsgExitoArchivo(\"\");\n } else {\n desperdiciosHelper.setMsgExitoArchivo(\"El archivo \" + desperdiciosHelper.getNombreArchivo() + \" se cargo con éxito\");\n desperdiciosHelper.setMsgErrorArchivo(\"\");\n }\n }\n }", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPageResponse getRoadwayPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPage getRoadwayPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"urn:getRoadwayPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getRoadwayPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getRoadwayPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetRoadwayPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "@WebService(name = \"BilesikKutukSorgulaKimlikNoServis\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface BilesikKutukSorgulaKimlikNoServis {\n\n\n /**\n * \n * @param kriterListesi\n * @return\n * returns services.kps.bilesikkutuk.BilesikKutukBilgileriSonucu\n */\n @WebMethod(operationName = \"Sorgula\", action = \"http://kps.nvi.gov.tr/2017/08/01/BilesikKutukSorgulaKimlikNoServis/Sorgula\")\n @WebResult(name = \"SorgulaResult\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n @RequestWrapper(localName = \"Sorgula\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.Sorgula\")\n @ResponseWrapper(localName = \"SorgulaResponse\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\", className = \"services.kps.bilesikkutuk.SorgulaResponse\")\n public BilesikKutukBilgileriSonucu sorgula(\n @WebParam(name = \"kriterListesi\", targetNamespace = \"http://kps.nvi.gov.tr/2017/08/01\")\n ArrayOfBilesikKutukSorgulaKimlikNoSorguKriteri kriterListesi);\n\n}", "public com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse getVehicleInfoPage(\n\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPage getVehicleInfoPage)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[1].getName());\n _operationClient.getOptions().setAction(\"urn:getVehicleInfoPage\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n getVehicleInfoPage,\n optimizeContent(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\",\n \"getVehicleInfoPage\")));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (com.drore.cloud.tdp.service.IWsPmsSdkServiceStub.GetVehicleInfoPageResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(faultElt.getQName())){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(faultElt.getQName());\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.Exception ex=\n (java.lang.Exception) exceptionClass.newInstance();\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(faultElt.getQName());\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }", "@WebService(name = \"BVAC_AGENCYSoap\", targetNamespace = \"http://tempuri.org/\")\r\n@XmlSeeAlso({\r\n ObjectFactory.class\r\n})\r\npublic interface BVACAGENCYSoap {\r\n\r\n\r\n /**\r\n * L\\u1ea5y danh sách lo\\u1ea1i \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetDMLoaiAnChi\", action = \"http://tempuri.org/GetDMLoaiAnChi\")\r\n @WebResult(name = \"GetDMLoaiAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetDMLoaiAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChi\")\r\n @ResponseWrapper(localName = \"GetDMLoaiAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetDMLoaiAnChiResponse\")\r\n public String getDMLoaiAnChi(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * L\\u1ea5y danh sách \\u1ea5n ch\\u1ec9 theo mã \\u0111\\u1ea1i lý\r\n * \r\n * @param maDaiLy\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"GetAnChiByAgency\", action = \"http://tempuri.org/GetAnChiByAgency\")\r\n @WebResult(name = \"GetAnChiByAgencyResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"GetAnChiByAgency\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgency\")\r\n @ResponseWrapper(localName = \"GetAnChiByAgencyResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.GetAnChiByAgencyResponse\")\r\n public String getAnChiByAgency(\r\n @WebParam(name = \"maDaiLy\", targetNamespace = \"http://tempuri.org/\")\r\n String maDaiLy);\r\n\r\n /**\r\n * C\\u1eadp nh\\u1eadt danh sách \\u1ea5n ch\\u1ec9 \\u0111ã s\\u1eed d\\u1ee5ng\r\n * \r\n * @param anChis\r\n * @return\r\n * returns java.lang.String\r\n */\r\n @WebMethod(operationName = \"UpdateListAnChi\", action = \"http://tempuri.org/UpdateListAnChi\")\r\n @WebResult(name = \"UpdateListAnChiResult\", targetNamespace = \"http://tempuri.org/\")\r\n @RequestWrapper(localName = \"UpdateListAnChi\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChi\")\r\n @ResponseWrapper(localName = \"UpdateListAnChiResponse\", targetNamespace = \"http://tempuri.org/\", className = \"org.tempuri.UpdateListAnChiResponse\")\r\n public String updateListAnChi(\r\n @WebParam(name = \"anChis\", targetNamespace = \"http://tempuri.org/\")\r\n String anChis);\r\n\r\n}", "private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"IWsPmsSdkService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[9];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getRoadwayPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"doControl\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleAlarmInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getEntrancePage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleRecordPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getDictionaryPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleBookPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getParkPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n }", "public void setFilaDatosExportarXmlTipoDireccion(TipoDireccion tipodireccion,Document document,Element element) {\r\n\t\t\r\n\r\n\t\tElement elementId = document.createElement(TipoDireccionConstantesFunciones.ID);\r\n\t\telementId.appendChild(document.createTextNode(tipodireccion.getId().toString().trim()));\r\n\t\telement.appendChild(elementId);\r\n\r\n\t\tif(parametroGeneralUsuario.getcon_exportar_campo_version()){\r\n\r\n\t\tElement elementVersionRow = document.createElement(TipoDireccionConstantesFunciones.VERSIONROW);\r\n\t\telementVersionRow.appendChild(document.createTextNode(tipodireccion.getVersionRow().toString().trim()));\r\n\t\telement.appendChild(elementVersionRow);\r\n\t\t}\r\n\r\n\r\n\t\tElement elementempresa_descripcion = document.createElement(TipoDireccionConstantesFunciones.IDEMPRESA);\r\n\t\telementempresa_descripcion.appendChild(document.createTextNode(tipodireccion.getempresa_descripcion()));\r\n\t\telement.appendChild(elementempresa_descripcion);\r\n\r\n\t\tElement elementcodigo = document.createElement(TipoDireccionConstantesFunciones.CODIGO);\r\n\t\telementcodigo.appendChild(document.createTextNode(tipodireccion.getcodigo().trim()));\r\n\t\telement.appendChild(elementcodigo);\r\n\r\n\t\tElement elementnombre = document.createElement(TipoDireccionConstantesFunciones.NOMBRE);\r\n\t\telementnombre.appendChild(document.createTextNode(tipodireccion.getnombre().trim()));\r\n\t\telement.appendChild(elementnombre);\r\n\t}", "private void cargarDatos() {\r\n txtRucDni.setText(objVentas.getObjCliente().getStr_rucdni());\r\n txtCliente.setText(objVentas.getObjCliente().getStr_razonSocial());\r\n txtDocumento.setText(objVentas.getStr_numeroDocumento());\r\n txtMonto.setText(String.valueOf(Util.redondeo(objVentas.getDbTotal(), 2) ));\r\n txtPaga.requestFocus();\r\n setLocationRelativeTo(null);\r\n\r\n String arr[] = objVentas.getStr_numeroDocumento().split(\"-\");\r\n \r\n \r\n \r\n \r\n List<Ventas> listaVentaDetalle = new ArrayList<>();\r\n listaVentaDetalle = PaqueteBusinessDelegate.getFlujoCajaService().\r\n listarVenta(String.valueOf(gui.getLocal().getInt_idLocal()), Util.SINPAGO, objVentas.getStr_numeroDocumento(), 2);\r\n cargarTabla(listaVentaDetalle);\r\n \r\n int cantidadDocumentos;\r\n if (!this.gui.getListaConfig().get(0).getTipoImpresion().equals(Config.TICKETERA)){\r\n //Determinar la cantidad de productos por documentos\r\n cantidadDocumentos=(listaVentaDetalle.size()/10);\r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n\r\n if(listaVentaDetalle.size()%10!=0)\r\n cantidadDocumentos++;\r\n }else{\r\n cantidadDocumentos = 1;\r\n }\r\n \r\n \r\n log.info(\"Cantidad: \"+cantidadDocumentos);\r\n \r\n// System.out.println(\"local : \"+objVentas.getObjLocal().getInt_idLocal()+\" tD :\"+arr[2].trim());\r\n txtNroDocumento.setText(PaqueteBusinessDelegate.getVentasService().\r\n consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n \r\n// System.out.println(\"consulta : \"+PaqueteBusinessDelegate.getVentasService().\r\n// consultaSiguinteCorrelativo(objVentas.getObjLocal().getInt_idLocal(), arr[2].trim()));\r\n String documento=txtNroDocumento.getText();\r\n String statico=txtNroDocumento.getText().split(\"/\")[0];\r\n// System.out.println(\"estatico : \"+statico);\r\n statico=statico.split(\"-\")[0].concat(\"-\").concat(statico.split(\"-\")[1]).concat(\"-\");\r\n \r\n\r\n if (cantidadDocumentos>1){\r\n for (int i=1;i<cantidadDocumentos;i++){\r\n \r\n if (i<cantidadDocumentos)\r\n documento+=\";\";\r\n \r\n documento+=statico.concat(String.valueOf( Util.stringTOint(\r\n txtNroDocumento.getText().split(\"/\")[0].split(\"-\")[2])+i)).\r\n concat(\"/\").concat(txtNroDocumento.getText().split(\"/\")[1]);\r\n\r\n \r\n log.info(\"NRO: \"+documento);\r\n }\r\n txtNroDocumento.setText(documento);\r\n }\r\n \r\n \r\n \r\n \r\n }", "public HashMap<String, String> saldo(String url_ws,String rfc, String clave)\n\t{\n\t\t\n\t\t//SOLICITUD ENVIADA AL WEB SERVICE\n\t\tstrRequest=\"<soapenv:Envelope xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:soapenv=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\" xmlns:urn=\\\"urn:wservicewsdl\\\">\"\n\t\t\t \t+\"<soapenv:Header/>\"\n\t\t\t \t\t+\"<soapenv:Body>\"\n\t\t\t \t\t\t+\"<urn:saldo soapenv:encodingStyle=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\">\"\n\t\t \t\t\t\t+\"<rfc xsi:type=\\\"xsd:string\\\">\"+rfc+\"</rfc>\"\n\t\t \t\t\t\t+\"<clave xsi:type= \\\"xsd:string\\\">\"+clave+\"</clave>\"\n\t\t \t\t\t+\"</urn:saldo>\"\n\t \t+\"</soapenv:Body>\"\n\t +\"</soapenv:Envelope>\";\n\t\t//System.out.println(strRequest);\t\t //IMPRIMIR SOLICITUD ENVIADA\n\t\t\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\t\tHttpPost postRequest = new HttpPost(url_ws);\n\t\tStringEntity input = null;\n\t\t\n\t\ttry {\n\t\t\tinput = new StringEntity(strRequest);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tinput.setContentType(\"text/xml\");\n\t\tinput.setContentEncoding(\"ISO-8859-1\");\n\t\t\n\t\tpostRequest.setEntity(input);\n\t\t// Tratar respuesta del servidor\n\t\tHttpResponse response = null;\n\t\t\n\t\ttry {\n\t\t\tresponse = httpClient.execute(postRequest);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (response.getStatusLine().getStatusCode() != 200) {\n\t\t\tthrow new RuntimeException(\"Error >: C�digo de error HTTP : \" +response.getStatusLine().getStatusCode());\n\t\t}else{\n\t\t\t\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tif (entity != null) {\n\n InputStream instream;\n try {\n\t\t\t\t\tinstream = entity.getContent();\n\t\t\t\t\tstrResponse = convertStreamToString(instream);\n\t //System.out.println(strResponse);\n\n\t // Closing the input stream will trigger connection release\n\t instream.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//OBTENER LA INFORMACION DE LA RESPUESTA DEL WS\n\t\t\tString xml = strResponse;\n\n\t\t\tInputSource source = new InputSource(new StringReader(xml));\n\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\t\tDocumentBuilder db;\n\t\t\ttry {\n\t\t\t\tdb = dbf.newDocumentBuilder();\n\t\t\t\tDocument document = db.parse(source);\n\t\t\t\t\n\t\t\t\tXPathFactory xpathFactory = XPathFactory.newInstance();\n\t\t\t\tXPath xpath = xpathFactory.newXPath();\n\n\t\t\t\tString codigo_mf_numero = xpath.evaluate(\"//codigo_mf_numero\", document);\n\t\t\t\tString codigo_mf_texto = xpath.evaluate(\"//codigo_mf_texto\", document);\n\t\t\t\tString saldo = xpath.evaluate(\"//saldo\", document);\n\t\t\t\t/*\n\t\t\t\tSystem.out.println(\"codigo_mf_numero=\" + codigo_mf_numero);\n\t\t\t\tSystem.out.println(\"codigo_mf_texto=\" + codigo_mf_texto);\n\t\t\t\tSystem.out.println(\"saldo=\" + saldo);\n\t\t\t\t*/\n\t\t\t\trespuestaMultifacturas= new HashMap<String, String>();\n\t\t\t\t\n\t\t\t\trespuestaMultifacturas.put(\"codigo_mf_numero\",codigo_mf_numero);\n\t\t\t\trespuestaMultifacturas.put(\"codigo_mf_texto\",codigo_mf_texto);\n\t\t\t\trespuestaMultifacturas.put(\"saldo\",saldo);\n\t\t\t\t\n\t\t\t} catch (Throwable e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//CIERRA LA CONEXION CON EL WS\n\t\t\tif (httpClient != null) httpClient.getConnectionManager().shutdown();\n\t\t\t\n\t\t\treturn respuestaMultifacturas;\n\t\t}\n\t}", "public net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDayResponse terminalDownloadQueryForDay(\n\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDay terminalDownloadQueryForDay12)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[6].getName());\n _operationClient.getOptions().setAction(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml/TerminalServiceXml/terminalDownloadQueryForDayRequest\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n terminalDownloadQueryForDay12,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForDay\")), new javax.xml.namespace.QName(\"http://www.epaylinks.cn/webservice/services/TerminalServiceXml\",\n \"terminalDownloadQueryForDay\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDayResponse.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (net.wit.webservice.TerminalServiceXmlServiceStub.TerminalDownloadQueryForDayResponse)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForDay\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForDay\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"terminalDownloadQueryForDay\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }", "public TransmitirResponse transmitirPago(TransmitirPagoRequest tramitePagoRequest) {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"======================\");\r\n\t\t\tSystem.out.println(\"Inicio: transmitirPago\");\r\n\r\n\t\t\t//1: Se recupera el CDA pagado\r\n\t\t\tBeanTasa tasa = new BeanTasa(); \r\n\t\t\ttasa.setCda(tramitePagoRequest.getCda());\r\n\t\t\ttasa.setMontoPago(tramitePagoRequest.getMonto());\r\n\t\t\ttasa.setFechaPago(tramitePagoRequest.getFechaPago());\r\n\r\n\t\t\t//2: Se actualiza el pago de la Tasa\r\n\t\t\tServicioTasa servicioTasa = new ServicioTasa();\r\n\t\t\tservicioTasa.pagarTasa(tasa);\r\n\r\n\t\t\t//3: Según el CDA pagado, se obtiene la orden y otros datos importantes\r\n\t\t\tBeanFormato formato = new BeanFormato();\r\n\t\t\tServicioOrden servicioOrden = new ServicioOrden();\r\n\t\t\tBeanOrden orden = servicioOrden.buscarOrdenPorCda(tasa.getCda());\r\n\t\t\torden = servicioOrden.buscarOrdenPorOrdenId(orden.getOrdenId(), formato);\r\n\t\t\tBeanTce tce = servicioOrden.buscarTcePorOrdenId(orden.getOrdenId());\r\n\t\t\tBeanMto mto = servicioOrden.buscarMtoVigentePorOrdenId(orden.getOrdenId());\r\n\t\t\tBeanFormatoEntidad formatoEntidad = servicioOrden.buscarFormatoEntidadPorFormato(formato.getFormato(), mto);\r\n\t\t\tBeanAdjunto adjunto = servicioOrden.buscarAdjuntoPorMto(mto);\r\n\t\t\tBeanUsuario usuarioSolicitante = servicioOrden.buscarUsuarioSolicitantePorMto(mto);\r\n\r\n\t\t\t// 2.1: Registrar estado traza 4: Pago Recibido\r\n\t\t\tBeanTraza traza = new BeanTraza();\r\n\t\t\ttraza.setEstadoTraza(4);\r\n\t\t\ttraza.setDe(4);\r\n\t\t\ttraza.setPara(3);\r\n\t\t\tservicioOrden.registrarTraza(tce, mto, null, null, traza);\r\n\r\n\t\t\t//5: Genera la SUCE\r\n\t\t\tServicioSuce servicioSuce = new ServicioSuce();\r\n\t\t\tBeanSuce suce = servicioSuce.generarSuce(orden);\r\n\r\n\t\t\t//6: Se genera el nuevo MTO\r\n\t\t\t//TODO generar nuevo mto, incluye registrar otra vez la orden\r\n\r\n\t\t\t//7: Se transmite la SUCE\r\n\t\t\tservicioSuce.transmitirSuceHaciaEntidad(formato, orden, suce, formatoEntidad, adjunto, usuarioSolicitante.getRuc());\r\n\r\n\t\t\t// 2.1: Registrar estado traza 5: Suce generada\r\n\t\t\ttraza = new BeanTraza();\r\n\t\t\ttraza.setEstadoTraza(5);\r\n\t\t\ttraza.setDe(3);\r\n\t\t\ttraza.setPara(2);\r\n\t\t\tservicioOrden.registrarTraza(tce, mto, null, null, traza);\r\n\r\n\t\t\t//8: Transmitir SUCE a Usuario\r\n\t\t\t//TODO Transmitir SUCE a Usuario\r\n\r\n\t\t\tSystem.out.println(\"Fin\");\r\n\t\t\tSystem.out.println(\"======================\");\r\n\r\n\t\t\tTransmitirResponse res = new TransmitirResponse();\r\n\t\t\tres.setCodigo(suce.getSuce()+\"\");\r\n\t\t\tres.setTexto(\"Exito\");\r\n\t\t\treturn res;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tTransmitirResponse res = new TransmitirResponse();\r\n\t\t\tres.setCodigo(\"ERR\");\r\n\t\t\tres.setTexto(\"Error\");\r\n\t\t\treturn res;\r\n\t\t}\r\n\t}", "@WebService(targetNamespace = \"http://soap.spring.com/ws/poverenik\", name = \"Poverenik\")\n@SOAPBinding(style = SOAPBinding.Style.RPC)\npublic interface Poverenik {\n\n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String sayHi(\n @WebParam(partName = \"text\", name = \"text\")\n String text\n );\n \n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String saveExplanation(\n @WebParam(partName = \"xml\", name = \"xml\")\n String xml\n );\n \n @WebMethod\n @WebResult(name = \"return\", targetNamespace = \"http://soap.spring.com/ws/poverenik\", partName = \"return\")\n public String saveReport(\n @WebParam(partName = \"izvestaj\", name = \"izvestaj\")\n String izvestaj\n );\n}", "public void buscarDocentes() {\r\n try {\r\n List<DocenteProyecto> docenteProyectos = docenteProyectoService.buscar(new DocenteProyecto(\r\n sessionProyecto.getProyectoSeleccionado(), null, null, Boolean.TRUE, null));\r\n if (docenteProyectos.isEmpty()) {\r\n return;\r\n }\r\n for (DocenteProyecto docenteProyecto : docenteProyectos) {\r\n DocenteProyectoDTO docenteProyectoDTO = new DocenteProyectoDTO(docenteProyecto, null,\r\n docenteCarreraService.buscarPorId(new DocenteCarrera(docenteProyecto.getDocenteCarreraId())));\r\n docenteProyectoDTO.setPersona(personaService.buscarPorId(new Persona(docenteProyectoDTO.getDocenteCarrera().getDocenteId().getId())));\r\n sessionProyecto.getDocentesProyectoDTO().add(docenteProyectoDTO);\r\n }\r\n sessionProyecto.setFilterDocentesProyectoDTO(sessionProyecto.getDocentesProyectoDTO());\r\n } catch (Exception e) {\r\n }\r\n }" ]
[ "0.6317517", "0.6250145", "0.61672914", "0.61348605", "0.60797113", "0.6077549", "0.59921914", "0.59790325", "0.5885835", "0.5883005", "0.5844027", "0.5831026", "0.5799474", "0.5794634", "0.576894", "0.5761776", "0.57505804", "0.57237196", "0.5723686", "0.57174957", "0.56783515", "0.5672969", "0.56693774", "0.5651051", "0.5647639", "0.5637006", "0.56328595", "0.56085646", "0.5606552", "0.5604394", "0.5599162", "0.5595047", "0.5591955", "0.5580743", "0.5577503", "0.5568762", "0.55659515", "0.55612475", "0.55602574", "0.5552063", "0.5549808", "0.55458575", "0.5539779", "0.5536588", "0.55345106", "0.552655", "0.55212426", "0.5517646", "0.5512672", "0.55112576", "0.5504245", "0.5483777", "0.54819244", "0.54817116", "0.54793257", "0.5473557", "0.5458506", "0.5442263", "0.54325455", "0.54322153", "0.5427267", "0.5421468", "0.54201394", "0.5420116", "0.541916", "0.54152346", "0.5413794", "0.5408996", "0.5407713", "0.5402105", "0.5390406", "0.5387415", "0.5385776", "0.5385477", "0.5384517", "0.53822714", "0.5380947", "0.5373352", "0.5370132", "0.5363001", "0.5361284", "0.53609407", "0.5355955", "0.53549826", "0.5344162", "0.53430015", "0.5342972", "0.5342592", "0.5341739", "0.53365374", "0.533496", "0.53328437", "0.5329438", "0.5327829", "0.5327664", "0.5323375", "0.53166693", "0.53155524", "0.53144765", "0.53122824", "0.53101325" ]
0.0
-1
Restituisce una lista di tutti i videogiochi presenti nel database
List<Videogioco> findAllVideogioco();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Videoinfo> selectAll();", "List<Video> getAll();", "public List<Video> getAllVideos() {\n\t\tList<Video> videoList = new ArrayList<Video>();\n\t\t// Select All Query\n\t\tString selectQuery = \"SELECT * FROM \" + VivaFrame.TABLE_NAME;\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tVideo video = new Video();\n\t\t\t\tvideo.setID(Integer.parseInt(cursor.getString(0)));\n\t\t\t\tvideo.setFolderNumber(Integer.parseInt(cursor.getString(1)));\n\t\t\t\tvideo.setName(cursor.getString(2));\n\t\t\t\tvideo.setPhoneNumber(cursor.getString(3));\n\t\t\t\t// Adding contact to list\n\t\t\t\tvideoList.add(video);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\t// return contact list\n\t\treturn videoList;\n\t}", "public ArrayList<MovieUrl> query(){\n ArrayList<MovieUrl> arrayList = new ArrayList<MovieUrl>();\n Cursor cursor = database.query(DATABASE_TABLE, null, null, null, null, null, null);\n cursor.moveToFirst();\n MovieUrl movieUrl;\n if (cursor.getCount() > 0){\n do {\n movieUrl = new MovieUrl();\n movieUrl.setId(cursor.getInt(cursor.getColumnIndexOrThrow(_ID)));\n movieUrl.setTitleMovie(cursor.getString(cursor.getColumnIndexOrThrow(DbMediaContract.VideoColumns.TITLE_VIDEO)));\n movieUrl.setUrlMovie(cursor.getString(cursor.getColumnIndexOrThrow(DbMediaContract.VideoColumns.URL_VIDEO)));\n\n arrayList.add(movieUrl);\n cursor.moveToNext();\n } while (!cursor.isAfterLast());\n }\n cursor.close();\n return arrayList;\n }", "public ArrayList<String> getAllVideosName() {\n\t\tArrayList<String> videoList = new ArrayList<String>();\n\n\t\tString selectQuery = \"SELECT * FROM \" + VivaFrame.TABLE_NAME;\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tString videoname = new String();\n\t\t\t\tvideoname = cursor.getString(2);\n\t\t\t\t// Adding to list\n\t\t\t\tvideoList.add(videoname);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\treturn videoList;\n\t}", "private static VideoHolder getAllVideo(String ligne) throws IOException {\n String[] vid = ligne.split(\" \");\n VideoHolder videoHolder = new VideoHolder();\n for (int i = 0; i < vid.length; i++) {\n videoHolder.add(new Video(i, Integer.parseInt(vid[i])));\n }\n return videoHolder;\n }", "private List<MusicVideo> selectAllMusicVideosFromDB(){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre\", MusicVideo.class) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "private void Query() {\n\t\tCursor cursor = db.query(\"movie\", null, null, null, null, null, null); \n while (cursor.moveToNext()) { \n String moviename = cursor.getString(0); \n String moviejianjie = cursor.getString(10);\n Movie movie = new Movie(moviename,R.drawable.poster,moviejianjie); \n\t//\t\t Toast.makeText(getActivity(), moviejianjie, Toast.LENGTH_SHORT).show();\n if(cursor.getInt(11)==2)\n \tmovieList.add(movie); \n }\n cursor.close();\n\t}", "public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }", "public ArrayList<VideoDTO> getFavouriteVideosArrayList() {\n try {\n ArrayList<VideoDTO> arrayListNewVideoDTOs = new ArrayList<VideoDTO>();\n SQLiteDatabase database = this.getWritableDatabase();\n database.enableWriteAheadLogging();\n String getFavoutiteVideosListQuery = \"SELECT * FROM \" + VideoTable.VIDEO_TABLE + \" WHERE \" + VideoTable.KEY_VIDEO_IS_FAVORITE + \"=1 \" + \" GROUP BY \" + VideoTable.KEY_VIDEO_ID + \" ORDER BY \" + VideoTable.KEY_VIDEO_NAME + \" ASC\";\n Cursor cursor = database.rawQuery(getFavoutiteVideosListQuery, null);\n if (cursor.moveToFirst()) {\n do {\n VideoDTO videoDTO = new VideoDTO();\n videoDTO.setVideoId(cursor.getLong(cursor.getColumnIndex(VideoTable.KEY_VIDEO_ID)));\n videoDTO.setVideoName(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_NAME)));\n videoDTO.setVideoShortDescription(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_SHORT_DESC)));\n videoDTO.setVideoLongDescription(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_LONG_DESC)));\n videoDTO.setVideoShortUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_SHORT_URL)));\n videoDTO.setVideoLongUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_LONG_URL)));\n videoDTO.setVideoThumbnailUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_THUMB_URL)));\n videoDTO.setVideoStillUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_STILL_URL)));\n videoDTO.setVideoCoverUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_COVER_URL)));\n videoDTO.setVideoWideStillUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_WIDE_STILL_URL)));\n videoDTO.setVideoBadgeUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_BADGE_URL)));\n videoDTO.setVideoDuration(cursor.getLong(cursor.getColumnIndex(VideoTable.KEY_VIDEO_DURATION)));\n videoDTO.setVideoTags(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_TAGS)));\n if (cursor.getInt(cursor.getColumnIndex(VideoTable.KEY_VIDEO_IS_FAVORITE)) == 0)\n videoDTO.setVideoIsFavorite(false);\n else\n videoDTO.setVideoIsFavorite(true);\n\n videoDTO.setVideoIndex(cursor.getInt(cursor.getColumnIndex(VideoTable.KEY_VIDEO_INDEX)));\n videoDTO.setPlaylistName(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_PLAYLIST_NAME)));\n videoDTO.setPlaylistId(cursor.getLong(cursor.getColumnIndex(VideoTable.KEY_PLAYLIST_ID)));\n videoDTO.setPlaylistThumbnailUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_PLAYLIST_THUMB_URL)));\n videoDTO.setPlaylistShortDescription(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_PLAYLIST_SHORT_DESC)));\n videoDTO.setPlaylistLongDescription(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_PLAYLIST_LONG_DESC)));\n videoDTO.setPlaylistTags(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_PLAYLIST_TAGS)));\n videoDTO.setPlaylistReferenceId(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_PLAYLIST_REFERENCE_ID)));\n videoDTO.setVideoSocialUrl(cursor.getString(cursor.getColumnIndex(VideoTable.KEY_VIDEO_SOCIAL_URL)));\n\n arrayListNewVideoDTOs.add(videoDTO);\n } while (cursor.moveToNext());\n }\n\n cursor.close();\n return arrayListNewVideoDTOs;\n } catch (Exception e) {\n e.printStackTrace();\n return new ArrayList<VideoDTO>();\n }\n\n }", "VideosClient getVideos();", "private void loadItems() {\n try {\n if (ServerIdUtil.isServerId(memberId)) {\n if (ServerIdUtil.containsServerId(memberId)) {\n memberId = ServerIdUtil.getLocalId(memberId);\n } else {\n return;\n }\n }\n List<VideoReference> videoReferences = new Select().from(VideoReference.class).where(VideoReference_Table.userId.is(memberId)).orderBy(OrderBy.fromProperty(VideoReference_Table.date).descending()).queryList();\n List<String> videoIds = new ArrayList<>();\n for (VideoReference videoReference : videoReferences) {\n videoIds.add(videoReference.getId());\n }\n itemList = new Select().from(Video.class).where(Video_Table.id.in(videoIds)).orderBy(OrderBy.fromProperty(Video_Table.date).descending()).queryList();\n } catch (Throwable t) {\n itemList = new ArrayList<>();\n }\n }", "private void listFileMyVideo() throws JSONException {\n\n listFileMyVideo = new JSONArray();\n\n int count = countFileMyVideo();\n\n for (int i = 0; count > i; i++) {\n\n JSONObject obj = new JSONObject();\n obj.put(\"name\", get_FileName(getPathMyVideo(), i));\n obj.put(\"path\", get_FilePath(getPathMyVideo(), i));\n\n listFileMyVideo.put(obj);\n }\n }", "@RequestMapping(value = VideoSvcApi.VIDEO_SVC_PATH, method = RequestMethod.GET)\n\tpublic @ResponseBody Collection<Video> getVideoList() {\n\t\treturn Lists.newArrayList(videos.findAll());\n\t}", "public List<Video> getVideo() {\n\t\treturn null;\n\t}", "public String[] getVideoDevicesList();", "public List<TVShow> getAllShows(){\n\tList<TVShow> shows = new ArrayList<>();\n\ttvShowRepo.findAll().forEach(show->shows.add(show));\n\treturn shows;\n}", "public int getVideos() {\n return videos;\n }", "public ArrayList<DeviceMediaItem> getAllImages(Context contx) {\n ArrayList<DeviceMediaItem> images = new ArrayList<>();\n Uri allImagesuri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n String[] projection = {MediaStore.Images.ImageColumns.DATA, MediaStore.Images.Media.DISPLAY_NAME,\n MediaStore.Images.Media.SIZE, MediaStore.Images.Media.DATE_ADDED};\n Cursor cursor = contx.getContentResolver().query(allImagesuri, projection, null, null, null);\n try {\n cursor.moveToFirst();\n do {\n DeviceMediaItem pic = new DeviceMediaItem();\n\n pic.setName(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DISPLAY_NAME)));\n pic.setPath(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA)));\n String date = getDate(cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_ADDED)));\n pic.setDate(date);\n\n images.add(pic);\n } while (cursor.moveToNext());\n cursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Uri allVideosuri = android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n String[] vidProjection = {MediaStore.Video.VideoColumns.DATA, MediaStore.Video.Media.DISPLAY_NAME,\n MediaStore.Video.Media.SIZE, MediaStore.Video.Media.DATE_ADDED};\n Cursor vidCursor = contx.getContentResolver().query(allVideosuri, vidProjection, null, null, null);\n try {\n vidCursor.moveToFirst();\n do {\n DeviceMediaItem pic = new DeviceMediaItem();\n\n pic.setName(vidCursor.getString(vidCursor.getColumnIndexOrThrow(MediaStore.Video.Media.DISPLAY_NAME)));\n pic.setPath(vidCursor.getString(vidCursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA)));\n String date = getDate(vidCursor.getLong(vidCursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_ADDED)));\n pic.setDate(date);\n\n images.add(pic);\n } while (vidCursor.moveToNext());\n vidCursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return images;\n }", "public ArrayList<VideogameEntry> getList(String id) throws Exception{\n ArrayList<VideogameEntry> videogames = new ArrayList<VideogameEntry>();\n Connection cn;\n PreparedStatement st;\n ResultSet rs;\n \n this.openConnection();\n cn = this.getConnection();\n st = cn.prepareStatement(\"SELECT Elements.name,VideogameEntries.videogameList_id, VideogameEntries.entry_id,VideogameEntries.videogame_id, VideogameEntries.valoration, VideogameEntries.status_in_list\\n\" +\n\"FROM VideogameEntries\\n\" +\n\"INNER JOIN Elements ON Elements.element_id = VideogameEntries.videogame_id WHERE VideogameEntries.videogameList_id= ?\");\n \n st.setString(1,id);\n rs = st.executeQuery();\n \n while(rs.next()){\n VideogameEntry entry = new VideogameEntry();\n entry.setEntryID(String.valueOf(rs.getString(\"entry_id\")));\n entry.setListID(id);\n entry.setName(rs.getString(\"name\"));\n entry.setStatus(rs.getString(\"status_in_list\"));\n entry.setValoration(rs.getInt(\"valoration\"));\n \n entry.setVideogameID(String.valueOf(rs.getInt(\"videogame_id\")));\n \n videogames.add(entry);\n \n }\n \n this.closeConnection();\n \n return videogames;\n }", "Videoinfo selectByPrimaryKey(Integer videoid);", "public List<Embarcation> getAllDisponible(){\n\t\tSQLiteDatabase mDb = open();\n\t\tCursor cursor = mDb.rawQuery(\"SELECT * FROM \" + TABLE_NAME +\" WHERE \"+DISPONIBLE+\" = 1\", null);\n\t\t\n\t\tList<Embarcation> resultList = cursorToEmbarcationList(cursor);\n\t\t\n\t\tmDb.close();\n\t\t\n\t\treturn resultList;\n\t}", "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.GET)\n\tpublic @ResponseBody Collection<Video> getVideos() {\n\t\t// TODONE Implement the logic to return the list of all videos.\n\t\tassert(videos != null);\n\t\t\n\t\treturn videos.values();\n\t}", "public List<Video> getVideoList() {\n return (ArrayList<Video>) mVideoServiceProxy.getVideos();\n }", "public ResultSet getFullMovieList(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\t//Connect();\r\n\t\t\tStatement dbStatement = conn.createStatement( ResultSet.TYPE_SCROLL_INSENSITIVE,\r\n\t\t\t\tResultSet.CONCUR_READ_ONLY );\r\n\t\t\t//DatabaseMetaData m = conn.getMetaData();\r\n\t\t\t//m.getColumns();\r\n\r\n\t\t\treturn dbStatement.executeQuery(\"select movieid, title from movie_title\");\r\n\r\n\t\t}catch( Exception x ){\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}", "public List<Video> getTrendingVideos() {\n\t\tIterable<History> historyVideos = historyRepo.findAll();\r\n\t\t\r\n\t\t// each hearted video has one point\r\n\t\tIterable<Heart> heartVideos = heartRepo.findAll();\r\n\t\t\r\n\t\t// initialize points\r\n\t\tHashMap<String, Integer> points = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tfor (History history : historyVideos) {\r\n\t\t\tString key = history.getHistoryKey().getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (Heart heart : heartVideos) {\r\n\t\t\tString key = heart.getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// sort by points\r\n\t\tMap<String, Integer> sortedPoints = sortByValue(points);\r\n\t\t\r\n\t\t// initialize videos\r\n\t\tList<Video> trendingVideos = new ArrayList<Video>();\r\n\t\t\r\n\t\t// iterate map (first 10 items from reverse)\r\n\t\tList<String> keyList = new ArrayList<String>(sortedPoints.keySet());\r\n\t\tfor (int i = keyList.size() - 1; i > keyList.size() - 6; i--) {\r\n\t\t String key = keyList.get(i);\r\n\t\t \r\n\t\t // init video\r\n\t\t Video video = new Video();\r\n\t\t\tvideo.setId(key);\r\n\t\t\tvideo.setTitle(getTitleQuietly(key));\r\n\t\t\tvideo.setThumbnailImageUrl(\"https://i.ytimg.com/vi/\" + key + \"/maxresdefault.jpg\");\r\n\t\t\ttrendingVideos.add(video);\t\t \r\n\t\t}\r\n\t\t\r\n\t\t// return result\r\n\t\treturn trendingVideos;\r\n\t}", "public void populateFilmListFromDatabase() throws SQLException {\r\n ArrayList<Film> films = this.film_database_controller.getFilms();\r\n\r\n for(Film current_film : films){\r\n this.addFilm(current_film);\r\n }\r\n }", "public static List getAllImgs() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT imgUrl FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String imgUrl = result.getString(\"imgUrl\");\n polovniautomobili.add(imgUrl);\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }", "public static ArrayList<VideoFile> getFilelist(Context context) {\n\t\tArrayList<VideoFile> lst = new ArrayList<VideoFile>();\n\n\t\tSQLiteDatabase conn = Globals.getDbConn(context);\n\t\tCursor result = conn.rawQuery(\"SELECT id, name, path, pic,size FROM \"\n\t\t\t\t+ Globals.TABLE_PLAYLIST, null);\n\t\tresult.moveToFirst();\n\t\twhile (!result.isAfterLast()) {\n\t\t\tint id = result.getInt(0);\n\t\t\tString name = result.getString(1);\n\t\t\tString path = result.getString(2);\n\t\t\tString pic = result.getString(3);\n\t\t\tint size = result.getInt(4);\n\t\t\tresult.moveToNext();\n\n\t\t\t// Video(int id, int chId, String vid, String site, String title,\n\t\t\t// Context context)\n\t\t\t// VideoInfo v = new VideoInfo(id, title, pic, downloadSize,\n\t\t\t// totalSize, st);\n\t\t\tVideoFile v = new VideoFile(name, path, pic, size);\n\t\t\tlst.add(v);\n\t\t}\n\t\tresult.close();\n\t\treturn lst;\n\t}", "private List<MusicVideo> selectMusicVideosFromDBMatchingTitle(String queryString){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE title LIKE :title\", MusicVideo.class) ;\n queryString = \"%\" + queryString + \"%\" ;\n query.setParameter(\"title\", queryString) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "List<TVideo> selectByExample(TVideoExample example);", "ImmutableList<SchemaOrgType> getVideoList();", "@GET\n @Produces(\"application/json\")\n public Response getAllMusicVideos(){\n \n //get all music videos from the DB\n List<MusicVideo> listOfMusicVideos = selectAllMusicVideosFromDB() ;\n \n //log the number of music videos\n LOGGER.log(Level.INFO, String.format(\"There are %d music videos on the server\", listOfMusicVideos.size())) ;\n \n //set poster image for each music video\n listOfMusicVideos = setPosterImageForMusicVideos(listOfMusicVideos) ;\n \n //sort list\n listOfMusicVideos.sort(null) ;\n \n //parse list of music videos to JSON and set JSON as entity of response\n Gson gson = new GsonBuilder()\n .excludeFieldsWithoutExposeAnnotation()\n .serializeNulls()\n .create();\n String jsonString = gson.toJson(listOfMusicVideos) ;\n Response.ResponseBuilder responseBuilder = Response.ok() ;\n responseBuilder.entity(jsonString) ;\n \n return responseBuilder.build() ;\n }", "public List<VideoBlockModel> getVideos() {\n return (List<VideoBlockModel>) (List) getVideos(false);\n }", "public static ArrayList<Song> getAll() {\n ArrayList<Song> songs = new ArrayList<>();\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\"jdbc:mysql://\" + host + \"/\" + db + \"?\" + \"user=\" + user + \"&password=\" + psw );\n\n songStatement = conn.createStatement();\n songResultSet = songStatement.executeQuery(\"SELECT * FROM spotify.track WHERE annotated = 0 LIMIT 0, 25\");\n\n songs = createSongs(songResultSet);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n close();\n }\n\n return songs;\n }", "@Query(\"SELECT * FROM song_table WHERE isRandom = 1\")\n LiveData<List<Song>> loadRandomSongsLiveData();", "public List<Voto> getVotos(){\n\t\treturn em.createQuery(\"SELECT c from Voto c\", Voto.class).getResultList();\n\t}", "private List<MusicVideo> selectMusicVideosFromDBOwnedByArtiste(int artisteId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id=:artisteId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "@Override\n\tpublic List<VideoInfo> getVideos(Map<String,Object> map) {\n\t\treturn dao.getAboutVideos(map);\n\t}", "@Override\n\tpublic ArrayList<VODRecord> getMoreVideoList(InviteUtils client, String startTime, String endTime) {\n\t\tArrayList<VODRecord> mList = new ArrayList<VODRecord>();\n\t\t\n\n\t\treturn super.getMoreVideoList(client, startTime, endTime);\n\t}", "public ArrayList<VideogameBean> doRetrieveAll() throws SQLException{\n\t\tDatabaseConnector connector = new DatabaseConnector();\n\t\tconnector.startConnection();\n\t\tPreparedStatement stateAll = connector.getJdbcConnection()\n\t\t\t\t.prepareStatement(\"SELECT * FROM Videogioco\");\n\t\tResultSet container = stateAll.executeQuery();\n\t\tArrayList<VideogameBean> allBeans = new ArrayList<VideogameBean>();\n\t\t\n\t\twhile(container.next()==true) {\n\t\t\t\n\t\t\tint codiceVideogioco = container.getInt(\"codiceVideogioco\");\n\t\t\tString titolo = container.getString(\"titolo\");\n\t\t\tString descrizione = container.getString(\"descrizione\");\n\t\t\tString console = container.getString(\"console\");\n\t\t\tdouble prezzo = container.getDouble(\"prezzo\");\n\t\t\tint disp = container.getInt(\"disponibilita\");\n\t\t\tint spedizione = container.getInt(\"spedizione\");\n\t\t\tString imgPath = container.getString(\"imgPath\");\n\t\t\tVideogameBean prod = new VideogameBean();\n\t\t\tprod.setVideogameCode(codiceVideogioco);\n\t\t\tprod.setTitle(titolo);\n\t\t\tprod.setDescription(descrizione);\n\t\t\tprod.setConsole(console);\n\t\t\tprod.setPrice(prezzo);\n\t\t\tprod.setAvailability(disp);\n\t\t\tprod.setShipment(spedizione);\n\t\t\tprod.setImgPath(imgPath);\n\t\t\tallBeans.add(prod);\n\t\t\t\n\t\t}\n\t\t\t\n\t\tif (allBeans.size()==0) {\n\t\t\tconnector.closeConnection();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tconnector.closeConnection();\n\t\treturn allBeans;\n\t\t\n\t}", "private void getVideos() {\n\n StringRequest videosRequest = new StringRequest(VIDEOS_URL+query, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //parse data from webservice to get Contracts as Java object\n Example videos = new Gson().fromJson(response, Example.class);\n\n setAdapter(videos.getItems());\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Videos\", \"Error\");\n }\n });\n\n Volley.newRequestQueue(this).add(videosRequest);\n }", "private void getMovies() {\n\n database = FirebaseDatabase.getInstance();\n reference = database.getReference().child(userId).child(\"movies\");\n reference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n movieList.clear();\n baseMovieList.clear();\n i = (int) dataSnapshot.getChildrenCount();\n for (final DataSnapshot child : dataSnapshot.getChildren())\n {\n String id = child.getKey();\n Client Client = new Client();\n Service apiService =\n Client.getClient().create(Service.class);\n Call<Movie> call;\n call = apiService.getDetails(id, BuildConfig.THE_MOVIE_DB_API_TOKEN);\n\n call.enqueue(new Callback<Movie>() {\n @Override\n public void onResponse(Call<Movie> call, Response<Movie> response) {\n Movie info;\n info = response.body();\n if(child.child(\"watched\").getValue().equals(\"true\"))\n info.setWatched(true);\n\n baseMovieList.add(info);\n\n i = i -1;\n if(i <= 0) {\n pd.dismiss();\n progressBar();\n sort();\n }\n }\n\n @Override\n public void onFailure(Call<Movie> call, Throwable t) {\n Toast.makeText(MyWatchlist.this, \"Error Fetching Data!\", Toast.LENGTH_SHORT).show();\n }\n } );\n\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }", "public ArrayList<GameItemSingle> getVirtualGameData(){\n\n ArrayList<GameItemSingle> data=new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \"+DATABASE_TABLE_SINGLE_PAGE + \" WHERE _type LIKE \" + \" '%virtual_pet_games%'\"+ \" ;\",null);\n StringBuffer stringBuffer = new StringBuffer();\n GameItemSingle singlePageItem = null;\n while (cursor.moveToNext()) {\n\n singlePageItem= new GameItemSingle();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title_rendered\"));\n String content = cursor.getString(cursor.getColumnIndexOrThrow(\"content_rendered\"));\n String date = cursor.getString(cursor.getColumnIndexOrThrow(\"date\"));\n String app_icon = cursor.getString(cursor.getColumnIndexOrThrow(\"app_icon_image\"));\n singlePageItem.setTitle_rendered(title);\n singlePageItem.setContent_rendered(content);\n singlePageItem.set_date(date);\n singlePageItem.setApp_icon(app_icon);\n singlePageItem.set_id(id);\n\n stringBuffer.append(singlePageItem);\n data.add(singlePageItem);\n }\n\n return data;\n }", "@RequestMapping(value=VideoSvcApi.VIDEO_SVC_PATH, method=RequestMethod.GET)\n\tpublic @ResponseBody Collection<Video> getVideos() {\n\t\treturn videos;\n\t}", "List<VideoDTO> getVideosList(List<Video> videos) throws TransferObjectException;", "private void list() throws JSONException, InterruptedException {\r\n\t /**Database Manager Object used to access mlab.com*/\r\n db.setDataBaseDestination(cDatabase, null, true);\r\n db.accessDatabase();\r\n MongoCollection<Document> col = db.getEntireDatabaseResults();\r\n \r\n // iterator to go through clubs in database\r\n Iterable<Document> iter;\r\n iter = col.find();\r\n \r\n // ArrayList of clubs names \r\n ArrayList<String> clubs = new ArrayList<>();\r\n \r\n // add names to list\r\n for (Document doc : iter) {\r\n JSONObject profile = new JSONObject(doc);\r\n clubs.add(profile.get(cName).toString());\r\n }\r\n \r\n Collections.sort(clubs);\r\n \r\n for (String name : clubs)\r\n \t logger.log(Level.INFO, name);\r\n \r\n displayOpen();\r\n }", "public List<Movie> dVD() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/dvds/new_releases.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }", "public ArrayList<rubro> obtenerTodoslosRubros() {\n ArrayList<rubro> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement pr = conn.prepareStatement(\"select id_rubro , nombre, descripcion, estado, ruta \\n\"\n + \" from rubros \");\n\n ResultSet rs = pr.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(1);\n String nombre = rs.getString(2);\n String descripcion = rs.getString(3);\n boolean estado = rs.getBoolean(4);\n String ruta = rs.getString(5);\n\n rubro r = new rubro(id, nombre, estado, descripcion, ruta);\n\n lista.add(r);\n }\n\n rs.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n\n }", "public ArrayList<String> consultar(){\n PreparedStatement ps = null;\n ResultSet rs = null;\n Connection con = getConexion();\n PlanDeEstudio plan = new PlanDeEstudio();\n ArrayList<String> planes = new ArrayList<>();\n \n String sql = \"SELECT * FROM plan_estudio\";\n \n try{\n ps = con.prepareStatement(sql);\n rs = ps.executeQuery();\n \n while (rs.next()) {\n plan.setiD(Integer.parseInt((rs.getString(\"id_plan_estudio\"))));\n planes.add(Integer.toString((plan.getiD())));\n }\n return planes;\n \n }catch (SQLException e){\n System.err.println(e);\n return planes;\n \n } finally {\n try {\n con.close();\n } catch (SQLException e){\n System.err.println(e);\n }\n }\n }", "public List<Playlist> findAll() {\n String sql = \"SELECT * FROM Playlists\";\n List<Playlist> list = new ArrayList();\n Connection connection = DatabaseConnection.getDatabaseConnection();\n\n try {\n Statement statement = connection.createStatement();\n ResultSet resultSet = statement.executeQuery(sql);\n while (resultSet.next()) {\n list.add(processRow(resultSet));\n }\n } catch (SQLException ex) {\n System.out.println(\"PlaylistDAO - findAll Exception: \" + ex);\n }\n\n DatabaseConnection.closeConnection(connection);\n return list;\n }", "@Override\n\tpublic List<VideoInfo> searchVideos(Map<String,Object> map) {\n\t\treturn dao.getAboutVideos(map);\n\t}", "public ArrayList<GamesItemHome> getVirtualGamesData() {\n\n ArrayList<GamesItemHome> data = new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + DATABASE_TABLE_VIRTUAL_GAMES + \" ;\", null);\n StringBuffer stringBuffer = new StringBuffer();\n GamesItemHome gamesItem = null;\n while (cursor.moveToNext()) {\n gamesItem = new GamesItemHome();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"_id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title\"));\n String category = cursor.getString(cursor.getColumnIndexOrThrow(\"category\"));\n String image = cursor.getString(cursor.getColumnIndexOrThrow(\"image\"));\n gamesItem.setTitle(title);\n gamesItem.setCategory(category);\n gamesItem.setImage(image);\n gamesItem.setID(id);\n\n stringBuffer.append(gamesItem);\n data.add(gamesItem);\n }\n\n\n return data;\n }", "@Override\n\tpublic ArrayList<VODRecord> getVideoList(InviteUtils client, String startTime, String endTime) {\n\t\tArrayList<VODRecord> mList = new ArrayList<VODRecord>();\n\t\t\n\t\t\n\t\t\n\t\treturn super.getVideoList(client, startTime, endTime);\n\t}", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "private void populateVideos(Bundle savedInstanceState) {\n LinearLayoutManager layoutManager =\n new LinearLayoutManager(this, LinearLayoutManager.HORIZONTAL, false);\n mBinding.movieVideos.videosList.setLayoutManager(layoutManager);\n mBinding.movieVideos.videosList.setHasFixedSize(true);\n mBinding.movieVideos.videosList.setNestedScrollingEnabled(false);\n\n RecyclerView.ItemDecoration itemDecoration = new HorizontalItemDecoration(this);\n mBinding.movieVideos.videosList.addItemDecoration(itemDecoration);\n\n mVideoAdapter = new VideoAdapter(this);\n mBinding.movieVideos.videosList.setAdapter(mVideoAdapter);\n\n if (savedInstanceState != null && savedInstanceState.containsKey(BUNDLE_VIDEOS)) {\n mVideoAdapter.addVideosList(savedInstanceState.\n <Video>getParcelableArrayList(BUNDLE_VIDEOS));\n if (mVideoAdapter.getItemCount() == 0) {\n mBinding.movieVideos.videosLabel.setVisibility(View.GONE);\n }\n } else {\n Call<ApiResponse<Video>> call = mApiClient.getVideos(movie.movieId);\n\n call.enqueue(new Callback<ApiResponse<Video>>() {\n @Override\n public void onResponse(Call<ApiResponse<Video>> call,\n Response<ApiResponse<Video>> response) {\n List<Video> result = response.body().results;\n mVideoAdapter.addVideosList(result);\n if (result.size() == 0) {\n mBinding.movieVideos.videosLabel.setVisibility(View.GONE);\n }\n }\n\n @Override\n public void onFailure(Call<ApiResponse<Video>> call, Throwable t) {\n Toast.makeText(DetailActivity.this,\n getString(R.string.connection_error), Toast.LENGTH_LONG).show();\n }\n });\n }\n }", "@GetMapping(\"/\")\n\tpublic List<Movie> getListMovie(){\n\t\tList<Movie> list = repo.findAll();\n\t\t\n\t\treturn list;\n\t}", "public ArrayList<String> getMovies(){\n\t\tArrayList<String> movies = new ArrayList<String>();\n\t\tString sql = \"SELECT * FROM movies\";\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = conn.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tmovies.add(rs.getString(\"name\"));\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} finally {\n\t\t\ttry {\n\t\t\t\tps.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn movies;\t\n\t}", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "@Repository(\"videoRepository\")\npublic interface VideoRepository extends JpaRepository<Video,Long> {\n List<Video> findAll();\n\n Video findByVideoid(String s);\n\n// ArrayList<String> findAllVideoId();\n\n @Query(\"SELECT videoid FROM Video\")\n ArrayList<String> findAllVideoId();\n}", "MovieVideo getMovieVideoByVideoid(String videoid);", "@Override\n\tpublic List<VideoInfo> cgdetailedVideos(Map<String,Object> map) {\n\t\treturn dao.getAboutVideos(map);\n\t}", "List<Player> getViewers();", "public ArrayList<Voto> listaDeiVoti() {\n\n\t\tDB db = getDB();\n\t\tMap<Integer, Voto> map = db.getTreeMap(\"voti\");\n\t\t\n\t\tArrayList<Voto> voti = new ArrayList<Voto>();\n\t\t\n\t\tSet<Integer> keys = map.keySet();\n\t\tfor (int key : keys) {\n\t\t\tvoti.add(map.get(key));\n\t\t}\n\t\treturn voti;\n\n\t}", "public void reloadVideoDevices();", "private static void VeureVendes (BaseDades bd) {\n ArrayList <Venda> llista = new ArrayList <Venda>();\n llista = bd.consultaVen(\"SELECT * FROM VENDES\");\n if (llista != null)\n for (int i = 0; i<llista.size(); i++) {\n Venda p = (Venda) llista.get(i);\n Producte prod = bd.consultarUnProducte(p.getIdproducte());\n System.out.println(\"ID Venda =>\"+p.getNumvenda()+\"* Producte: \"\n +prod.getDescripcio()+\"* Quantitat: \"+p.getQuantitat()\n +\"* Data: \"+p.getDatavenda());\n }\n }", "public List<Cvchannel> findAllCvchannels();", "public ArrayList<String> getMovies() {\n ArrayList<String> movies = new ArrayList<String>();\n\n try {\n // Prepare a new SQL Query & Set a timeout\n Statement statement = connection.createStatement();\n statement.setQueryTimeout(30);\n\n // The Query\n String query = \"SELECT *\" + \"\\n\" +\n \"FROM member\";\n\n // Get Result\n ResultSet results = statement.executeQuery(query);\n\n // Process all of the results\n // The \"results\" variable is similar to an array\n // We can iterate through all of the database query results\n while (results.next()) {\n // We can lookup a column of the a single record in the\n // result using the column name\n // BUT, we must be careful of the column type!\n // int id = results.getInt(\"mvnumb\");\n String movieName = results.getString(\"email\");\n // int year = results.getInt(\"yrmde\");\n // String type = results.getString(\"mvtype\");\n\n // For now we will just store the movieName and ignore the id\n movies.add(movieName);\n // members.add();\n }\n\n // Close the statement because we are done with it\n statement.close();\n } catch (SQLException e) {\n // If there is an error, lets just print the error\n System.err.println(e.getMessage());\n }\n\n // Finally we return all of the movies\n return movies;\n }", "ArrayList<Player> getAllPlayer();", "public static List getAllUrl() {\n List polovniautomobili = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT url FROM polovni\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ResultSet result = ps.executeQuery();\n while (result.next()) {\n String naziv = result.getString(\"url\");\n polovniautomobili.add(naziv);\n\n }\n\n ps.close();\n CONNECTION.close();\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);\n }\n return polovniautomobili;\n }", "public List<Movie> getAllMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<Movie> movieList = new ArrayList<>();\n String selectQuery = \" SELECT * FROM \" + MoviesEntry.TABLE_NAME;\n Cursor cursor = database.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()) {\n do {\n Movie movie = getMovieFromCursor(cursor);\n movieList.add(movie);\n } while (cursor.moveToNext());\n }\n database.close();\n\n return movieList;\n }", "public List<Player> loadAll() throws SQLException {\n\t\tfinal Connection connection = _database.getConnection();\n\t\tfinal String sql = \"SELECT * FROM \" + table_name + \" ORDER BY id ASC \";\n\t\tfinal List<Player> searchResults = listQuery(connection.prepareStatement(sql));\n\n\t\treturn searchResults;\n\t}", "public ArrayList<String> getVideosByFolder(int foldernum) {\n\t\tArrayList<String> videoList = new ArrayList<String>();\n\n\t\tString selectQuery = \"SELECT * FROM \" + VivaFrame.TABLE_NAME\n\t\t\t\t+ \" WHERE \" + VivaFrame.COLUMN_NAME_VI_FOLDER + \"=\" + foldernum;\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tString videoname = new String();\n\t\t\t\tvideoname = cursor.getString(2);\n\t\t\t\t// Adding to list\n\t\t\t\tvideoList.add(videoname);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\treturn videoList;\n\t}", "public ArrayList<Viaje> listar(){\n\t\tArrayList<Viaje> lista=new ArrayList<Viaje>();\n\t\t\n\t\tString sql=\"select * from viaje\";\n\t\t\n\t\ttry(Connection con=DB.getConexion();\n\t\t\tStatement stm=con.createStatement();){\n\t\t\t\tResultSet rs=stm.executeQuery(sql);\n\t\t\t\n\t\t\twhile(rs.next()){\n\t\t\t\tViaje v=new Viaje(rs.getInt(\"id\"),rs.getString(\"destino\"),rs.getInt(\"duracion\"),rs.getFloat(\"precio\"));\n\t\t\t\tlista.add(v);\n\t\t\t}\n\t\t\n\t\t}\n\t\tcatch(SQLException sqle){\n\t\t\tsqle.printStackTrace();\n\t\t}\n\t\treturn lista;\n\t}", "public static ArrayList<Representation> getAll() throws SQLException {\n ArrayList<Representation> arrObjRepresentation = new ArrayList<Representation>();\n Representation objRepresentation;\n ResultSet rs;\n PreparedStatement pstmt;\n Jdbc jdbc = Jdbc.getInstance();\n // préparer la requête\n String requete = \"SELECT id, daterepr, id_lieu, id_groupe, heure_debut, heure_fin, nombre_place_restante FROM Representation\";\n pstmt = jdbc.getConnexion().prepareStatement(requete);\n rs = pstmt.executeQuery();\n while (rs.next()) {\n objRepresentation = RepresentationDao.RepresentationFromResultSet(rs);\n arrObjRepresentation.add(objRepresentation);\n }\n return arrObjRepresentation;\n }", "@Override\n\tpublic List<VideoInfo> smajorVideos(Map<String,Object> map) {\n\t\treturn dao.getAboutVideos(map);\n\t}", "public List<Vendedor> listarVendedor();", "public ArrayList<DeviceMediaItem> getAllImagesByFolder(String path, Context contx) {\n ArrayList<DeviceMediaItem> media = new ArrayList<>();\n Uri allImagesuri = android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI;\n String[] projection = {MediaStore.Images.ImageColumns.DATA, MediaStore.Images.Media.DISPLAY_NAME,\n MediaStore.Images.Media.SIZE, MediaStore.Images.Media.DATE_ADDED};\n Cursor cursor = contx.getContentResolver().query(allImagesuri, projection, MediaStore.Images.Media.DATA + \" like ? \", new String[]{\"%\" + path + \"%\"}, null);\n try {\n cursor.moveToFirst();\n do {\n DeviceMediaItem pic = new DeviceMediaItem();\n\n pic.setName(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DISPLAY_NAME)));\n pic.setPath(cursor.getString(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA)));\n String date = getDate(cursor.getLong(cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_ADDED)));\n pic.setDate(date);\n\n media.add(pic);\n } while (cursor.moveToNext());\n cursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Uri allVideosuri = android.provider.MediaStore.Video.Media.EXTERNAL_CONTENT_URI;\n String[] vidProjection = {MediaStore.Video.VideoColumns.DATA, MediaStore.Video.Media.DISPLAY_NAME,\n MediaStore.Video.Media.SIZE, MediaStore.Video.Media.DATE_ADDED};\n Cursor vidCursor = contx.getContentResolver().query(allVideosuri, vidProjection, MediaStore.Images.Media.DATA + \" like ? \", new String[]{\"%\" + path + \"%\"}, null);\n try {\n vidCursor.moveToFirst();\n do {\n DeviceMediaItem pic = new DeviceMediaItem();\n\n pic.setName(vidCursor.getString(vidCursor.getColumnIndexOrThrow(MediaStore.Video.Media.DISPLAY_NAME)));\n pic.setPath(vidCursor.getString(vidCursor.getColumnIndexOrThrow(MediaStore.Video.Media.DATA)));\n String date = getDate(vidCursor.getLong(vidCursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATE_ADDED)));\n pic.setDate(date);\n\n media.add(pic);\n } while (vidCursor.moveToNext());\n vidCursor.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return media;\n }", "@Override\n public List<Venda> listar() {\n String sql = \"SELECT v FROM venda v\";\n TypedQuery<Venda> query = em.createQuery(sql, Venda.class);\n List<Venda> resultList = query.getResultList();\n\n return resultList;\n }", "public MediaList getMediaList() {\n \n MediaList mediaList = mediaPlayerFactory.newMediaList();\n for (int i = 0; i < this.moviesByGenre.size(); i++) {\n mediaList.addMedia(this.moviesByGenre.get(i).path, \n formatRtspStream(this.genre),\n \":no-sout-rtp-sap\",\n \":no-sout-standard-sap\",\n \":sout-all\",\n \":sout-keep\",\n \":ttl=128\");\n }\n\n return mediaList;\n }", "@Override\n\tpublic List<Movie> searchMovieByGen(String genere) {\n\t\tString sql=\"Select * from movie where GENERE='\"+genere+\"'\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> genMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(genMList==null||genMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn genMList;\n\t}", "public Cursor getAllMovies() {\n //Seleccionamos todas las filas de la tabla Movie\n return database.rawQuery(\n \"select * from \" + MOVIE_TABLE_NAME, null);\n }", "List<Videogioco> retriveByGenere(String genere);", "private static StringBuilder generateSqlForVideoList(IndexParams params) {\n Set<MetaDataType> mdt = params.getMetaDataTypes();\n LOG.debug(\"Getting video list for types: {}\", mdt);\n if (CollectionUtils.isNotEmpty(params.getDataItems())) {\n LOG.debug(\"Additional data items requested: {}\", params.getDataItems());\n }\n\n StringBuilder sbSQL = new StringBuilder();\n\n // add the movie entries\n if (mdt.contains(MOVIE)) {\n sbSQL.append(generateSqlForVideo(MOVIE, params));\n }\n\n // add the TV series entries\n if (mdt.contains(SERIES)) {\n if (sbSQL.length() > 0) {\n sbSQL.append(SQL_UNION_ALL);\n }\n sbSQL.append(generateSqlForSeries(params));\n }\n\n // add the TV season entries\n if (mdt.contains(SEASON)) {\n if (sbSQL.length() > 0) {\n sbSQL.append(SQL_UNION_ALL);\n }\n sbSQL.append(generateSqlForSeason(params));\n }\n\n // add the TV episode entries\n if (mdt.contains(EPISODE)) {\n if (sbSQL.length() > 0) {\n sbSQL.append(SQL_UNION_ALL);\n }\n sbSQL.append(generateSqlForVideo(EPISODE, params));\n }\n\n // Add the sort string, this will be empty if there is no sort required\n sbSQL.append(params.getSortString());\n\n LOG.debug(\"SqlForVideoList: {}\", sbSQL);\n return sbSQL;\n }", "public List<PlayerItem> getAll();", "public void obtenerListaDePeliculasTMDB(String TMDBurl, Context context, final ResultListener listenerFromView){\r\n PeliculaDAO peliculaDAO = new PeliculaDAO(context);\r\n// String url = TMDBHelper.getPopularMovies(TMDBHelper.language_ENGLISH, 1);\r\n peliculaDAO.flasehadaCreadoraDeAsync(new ContainerMovieDB(), TMDBurl, new ResultListener<Object>() {\r\n @Override\r\n public void finish(Object resultado) {\r\n listenerFromView.finish(resultado);\r\n }\r\n }\r\n ,context);\r\n }", "public static List<PolovniAutomobili> readAll() {\n List<PolovniAutomobili> listaUsera = new ArrayList<>();\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT * FROM polovni WHERE 1\";\n try (Statement st = (Statement) CONNECTION.createStatement()) {\n ResultSet rs = st.executeQuery(query);\n while (rs.next()) {\n String imgUrl = rs.getString(\"imgUrl\");\n String naziv = rs.getString(\"naziv\");\n int godiste = rs.getInt(\"godiste\");\n int cena = rs.getInt(\"cena\");\n String url = rs.getString(\"url\");\n listaUsera.add(new PolovniAutomobili(imgUrl, naziv, godiste,cena,url));\n }\n }\n CONNECTION.close();\n } catch (SQLException ex) {\n System.out.println(\"MySql Connection error...\");\n ex.printStackTrace();\n }\n return listaUsera;\n }", "private List<MusicVideo> getMusicVideosThatMatchArtisteOrGenre(int artisteId, int genreId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id = :artisteId OR mv.genre.id = :genreId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n query.setParameter(\"genreId\", genreId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "private void populateGenres(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT DISTINCT genre FROM artist ORDER BY genre\");\n\n while(results.next()){\n String genre = results.getString(1);\n genreList.add(genre);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "private ArrayList<MovieItem> getFavoriteMovies(){\n //get list of favorite movies from buffer\n ArrayList<MovieItem> movies = mMovieStaff.getMovies(PosterHelper.NAME_ID_FAVORITE);\n\n //check if favorite movie list has changed\n if(mFavoriteChanged){\n //list has changed, show new movie list\n showMovieList(movies, PosterHelper.NAME_ID_FAVORITE);\n }\n\n //return movie list\n return movies;\n }", "@Override\n public ArrayList<Zona> list(String description) {\n ArrayList<Zona> res = new ArrayList<>();\n conn = new Connector();\n conn.conectar();\n con = conn.getConexion();\n String list = \"SELECT id, name \"\n + \"FROM zone \"\n + \"WHERE concat(id,' ',name) like '%\"\n + description + \"%' \"\n + \"ORDER BY id DESC\";\n try {\n st = con.createStatement();\n \n rt = st.executeQuery(list);\n //mientras rt tenga datos se iterara\n while (rt.next()) {\n //accedes en el orden q espesificaste en el select rt.getInt(1) = id_user;\n res.add(new Zona(rt.getInt(1), rt.getString(2)));\n }\n System.out.println(\"Lista de zonas recuperadas correctamente\");\n conn.desconectar();\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, ex);\n }\n return res;\n }", "@Override\n\tpublic List<CourseVideo> getCourseVideo(int courseid) {\n\t\tSession session = DataBaseHelper.getSession();\n\t\tsession.clear();\n\t\tList list = session.createSQLQuery(\"select * from coursevideo where courseid=\"+courseid).list();\n\t\tList<CourseVideo> courseVideos;\n\t\tif (list.size() == 0) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tcourseVideos = new ArrayList<>();\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\t\tObject[] obj = (Object[]) list.get(i);\n\t\t\t\tCourseVideo courseVideo = new CourseVideo();\n\t\t\t\tcourseVideo.setId((Integer)obj[0]);\n\t\t\t\tcourseVideo.setCourseid((Integer)obj[1]);\n\t\t\t\tcourseVideo.setCoursename((String)obj[2]);\n\t\t\t\tcourseVideo.setCourseurl((String)obj[3]);\n\t\t\t\tcourseVideos.add(courseVideo);\n\t\t\t}\n\t\t\treturn courseVideos;\n\t\t}\n\t}", "private void consultarlistareportes() {\n db= con.getWritableDatabase();\n ReporteIncidente reporte= null;\n listarreportesinc =new ArrayList<ReporteIncidente>();\n Cursor cursor= db.rawQuery(\"select imagen1,asunto_reporte,estado_reporte,desc_reporte,cod_reporte from \"+ Utilitario.TABLE_REPORTE_INCIDENTE+\" where estado_reporte<>'Incompleto'\",null);\n\n while (cursor.moveToNext()){\n reporte= new ReporteIncidente();\n reporte.setImage1(cursor.getBlob(0));\n reporte.setAsunto(cursor.getString(1));\n reporte.setEstado(cursor.getString(2));\n reporte.setDescripcion(cursor.getString(3));\n reporte.setCodreporte(cursor.getInt(4));\n listarreportesinc.add(reporte);\n }\n //obtenerinformacion();\n db.close();\n }", "public void populateVitals() {\n try {\n Statement stmt = con.createStatement();\n\n ResultSet rs = stmt.executeQuery(\"select * from device\");\n while (rs.next()) {\n\n String guid = rs.getString(\"DeviceGUID\");\n int deviceId = rs.getInt(\"DeviceID\");\n int deviceTypeId = rs.getInt(\"DeviceTypeID\");\n int locationId = rs.getInt(\"LocationID\");\n float deviceProblem = rs.getFloat(\"ProblemPercentage\");\n\n String dateService = rs.getString(\"DateOfInitialService\");\n\n Device device = new Device();\n device.setDateOfInitialService(dateService);\n device.setDeviceGUID(guid);\n device.setDeviceID(deviceId);\n device.setDeviceTypeID(deviceTypeId);\n device.setLocationID(locationId);\n device.setProblemPercentage(deviceProblem);\n\n deviceList.add(device);\n\n }\n } catch (SQLException e) {\n log.error(\"Error populating devices\", e);\n }\n\n }", "public List<SampleVO> selectBoardList() {\n\t\treturn sqlSession.selectList(\"sample.selectBoardList\");\r\n\t}", "public String[] getVenueList() {\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<String> list = new Vector<String>();\n String[] result = null;\n try {\n //obtain the database connection by calling getConn()\n con = getConn();\n \n //create the PreparedStatement from the Connection object by calling prepareStatement\n //method, passing it the sql \n st = con.prepareStatement(\"select * from Venue\");\n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n //System.out.println(\"inside while....\");\n list.add(rs.getString(\"id\") + \",\" + rs.getString(\"NAME\"));\n \n }\n result = new String[list.size()];\n for (int i = 0 ; i< list.size() ; i++){\n result[i] = list.get(i);\n \n }\n }\n catch (SQLException e){\n \n }\n \n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n \n return result;\n }", "public static void showAllVilla(){\n ArrayList<Villa> villaList = getListFromCSV(FuncGeneric.EntityType.VILLA);\n displayList(villaList);\n showServices();\n }", "public static List<VideoGroup> getListVideoGroup(SlingHttpServletRequest slingRequest, String path) {\n List<VideoGroup> videoGroups = new ArrayList<VideoGroup>();\n if (org.apache.commons.lang.StringUtils.isNotBlank(path)) {\n Video video = new Video();\n video = getVideo(slingRequest, path);\n\n String wistaId = video.getWistiaId();\n if (org.apache.commons.lang.StringUtils.isNotBlank(wistaId)) {\n VideoGroup group = new VideoGroup();\n List<Video> videos = new ArrayList<Video>();\n videos.add(video);\n group.setVideos(videos);\n videoGroups.add(group);\n }\n\n }\n\n return videoGroups;\n }", "public void lookForLiveItems(){\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/live_video_title\"); //Texto\r\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/overthumb_channelLogo\"); //Logo\r\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/clipItemImage\"); //Background\r\n\t}" ]
[ "0.7432705", "0.71596426", "0.6805747", "0.6732882", "0.667564", "0.66367745", "0.6590352", "0.6549141", "0.64701885", "0.63200116", "0.6283969", "0.62658405", "0.617175", "0.6164192", "0.6158822", "0.6093411", "0.6093016", "0.6088282", "0.60733724", "0.60708225", "0.60371214", "0.6028161", "0.6000088", "0.5960402", "0.5912123", "0.5907185", "0.5903022", "0.58993536", "0.5885344", "0.58807683", "0.587215", "0.58428735", "0.58426076", "0.58362794", "0.58203596", "0.5809952", "0.5805178", "0.5800196", "0.5783544", "0.5777811", "0.577498", "0.5772884", "0.575942", "0.57582253", "0.57463926", "0.57258433", "0.571692", "0.57119185", "0.56962955", "0.5695708", "0.5670652", "0.56539005", "0.563944", "0.56190985", "0.5614442", "0.56099546", "0.5607655", "0.56025666", "0.5600065", "0.559748", "0.5590314", "0.5575142", "0.5567258", "0.55624545", "0.5561011", "0.556064", "0.5557567", "0.5552833", "0.5550931", "0.5549841", "0.55483866", "0.5541391", "0.55399024", "0.5537248", "0.5521318", "0.54994905", "0.5496185", "0.54915", "0.54914457", "0.548943", "0.5485597", "0.54840165", "0.5479255", "0.54775196", "0.5472525", "0.5471123", "0.54692036", "0.54681844", "0.5454491", "0.5453665", "0.54442865", "0.5437323", "0.5434306", "0.54283595", "0.54250467", "0.5424299", "0.5409384", "0.54087245", "0.5407083", "0.5394373" ]
0.54475135
90
Restituisce una lista limitata di videogiochi compresi tra i valori "min" e "max" passati come parametri
List<Videogioco> doRetriveVideogiocoAllRange(int min, int max);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Limits limits();", "public void setVideoPortRange(int minPort, int maxPort);", "public Range getVideoPortsRange();", "Range controlLimits();", "Range alarmLimits();", "public void initMaxMin(){\n\t\tmax = dja.max();\n\t\tmin = dja.min();\n\t}", "protected void checkMinMax(StreamParams streamParam, StreamParams streamFromList, int counter) {\n\t\tcounter++;\n\t\tlong temp = streamParam.getRxRate();\n\t\t// summs all streams for printing\n\t\tstreamParam.setRxRate((temp + streamFromList.getRxRate()));\n\t\t// Min&Max\n\t\tif (streamParam.getRxMinRate() > streamFromList.getRxRate()) {\n\t\t\tstreamParam.setRxMinRate(streamFromList.getRxRate());\n\t\t}\n\t\tif (streamParam.getRxMaxRate() < streamFromList.getRxRate()) {\n\t\t\tstreamParam.setRxMaxRate(streamFromList.getRxRate());\n\t\t}\n\t}", "@Override public void setMinMax(float minValue, float maxValue) {\n this.valueTrack.min = minValue; this.valueTrack.max = maxValue;\n }", "public MaxAndMin(){\n this.list=new ListOfData().getData();\n }", "private void calculateMinMaxPositions() {\n boundingVolume = null;\n if ( minMax == null ) {\n minMax = new double[6];\n\n double minX = Double.MAX_VALUE;\n double minY = Double.MAX_VALUE;\n double minZ = Double.MAX_VALUE;\n double maxX = -Double.MAX_VALUE;\n double maxY = -Double.MAX_VALUE;\n double maxZ = -Double.MAX_VALUE;\n int i;\n\n for ( i = 0; i < getNumVertices(); i++ ) {\n double x = vertexPositions[3*i+0];\n double y = vertexPositions[3*i+1];\n double z = vertexPositions[3*i+2];\n\n if ( x < minX ) minX = x;\n if ( y < minY ) minY = y;\n if ( z < minZ ) minZ = z;\n if ( x > maxX ) maxX = x;\n if ( y > maxY ) maxY = y;\n if ( z > maxZ ) maxZ = z;\n }\n minMax[0] = minX;\n minMax[1] = minY;\n minMax[2] = minZ;\n minMax[3] = maxX;\n minMax[4] = maxY;\n minMax[5] = maxZ;\n }\n }", "private void findMinandMaxValues(SparklineValues values) {\n minY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).min().orElse(0.0);\n maxY = values.getValues().stream().filter(value -> value.getValue() != null).mapToDouble(SparklineValues.SparklineValue::getValue).max().orElse(0.0);\n\n if (Math.abs(minY) > 1E30 || Math.abs(maxY) > 1E30) {\n // something is probably wrong\n System.out.println(\"Unexpectedly small/large min or max: \");\n values.getValues().forEach(value -> {\n System.out.print(value.getValue() + \" \");\n });\n System.out.println();\n minY = -1.0;\n maxY = 1.0;\n }\n\n if (minY.equals(maxY)) {\n if (minY.equals(0.0)) {\n minY = -1.0;\n maxY = 1.0;\n } else {\n minY = minY - 0.1 * Math.abs(minY);\n maxY = maxY + 0.1 * Math.abs(maxY);\n }\n }\n }", "public static void checkMinMax() {\r\n\t\tSystem.out.println(\"Beginning min/max test (should be -6 and 17)\");\r\n\t\tSortedIntList list = new SortedIntList();\r\n\t\tlist.add(5);\r\n\t\tlist.add(-6);\r\n\t\tlist.add(17);\r\n\t\tlist.add(2);\r\n\t\tSystem.out.println(\" min = \" + list.min());\r\n\t\tSystem.out.println(\" max = \" + list.max());\r\n\t\tSystem.out.println();\r\n\t}", "@Override\r\n public void setMinMax(Double min, Double max) {\r\n this.minIn = min;\r\n this.maxIn = max;\r\n }", "private void initLimits() {\n lowerLimit1 = quarterHolderWidth;\n lowerLimit2 = (2 * quarterHolderWidth);\n lowerLimit3 = (3 * quarterHolderWidth);\n lowerLimit4 = holderWidth;\n }", "private void findExtremes( Vector<? extends AbstractWirelessDevice> coll )\r\n {\r\n for( AbstractWirelessDevice e: coll )\r\n {\r\n double x = e.getLocation().getX();\r\n double y = e.getLocation().getY();\r\n \r\n if( x < minX )\r\n minX = x;\r\n \r\n if( x > maxX )\r\n maxX = x;\r\n \r\n if( y < minY )\r\n minY = y;\r\n \r\n if( y > maxY )\r\n maxY = y;\r\n }\r\n }", "public void setMinMax(double min, double max)\n {\n if (max == min)\n throw new IllegalArgumentException(\"Max value must be bigger than Min value!\");\n\n this.min = min;\n this.max = max;\n if (max < min)\n {\n this.max = min;\n this.min = max;\n }\n }", "static int Limit(int val, int max, int min) {\n if (val > max) {\n val = max;\n } else if (val < min) {\n val = min;\n }\n\n return val;\n }", "private void drawMinMaxSamples(Graphics G, int pixelFrom, int pixelTo,\r\n\t\t\tlong startSample, float[] samples, int sampleCount) {\r\n\t\tif (samples == null) return;\r\n\t\tif (DEBUG_DRAW) {\r\n\t\t\tdebug(\"Draw minmax samples: pixelX1=\" + pixelFrom + \" pixelX2=\"\r\n\t\t\t\t\t+ pixelTo + \" startSample=\" + startSample);\r\n\t\t}\r\n\t\tCacheElement ce = new CacheElement();\r\n\t\tint pixelX = pixelFrom;\r\n\t\t// pixelTo++;\r\n\t\twhile (pixelX <= pixelTo) {\r\n\t\t\tcalculateDisplayElement(pixelX, ce, startSample, samples,\r\n\t\t\t\t\tsampleCount);\r\n\t\t\tG.drawLine(pixelX, toPixelY(ce.min), pixelX, toPixelY(ce.max));\r\n\t\t\tpixelX++;\r\n\t\t}\r\n\t}", "public void setAudioPortRange(int minPort, int maxPort);", "public void checkCameraLimits()\n {\n //Daca camera ar vrea sa mearga prea in stanga sau prea in dreapta (Analog si pe verticala) ea e oprita (practic cand se intampla acest lucru Itemul asupra caruia se incearca centrarea nu mai e in centrul camerei )\n\n if(xOffset < 0 )\n xOffset = 0;\n else if( xOffset > refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth())\n xOffset =refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth();\n if(yOffset<0)\n yOffset = 0;\n if(yOffset > refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight())\n {\n yOffset = refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight();\n }\n }", "public void setMaximumPoints(int maximum);", "private void initSnapLimits() {\n int halfInterval = quarterHolderWidth / 2;\n snapLimit0 = halfInterval;\n snapLimit1 = lowerLimit1 + halfInterval;\n snapLimit2 = lowerLimit2 + halfInterval;\n snapLimit3 = lowerLimit3 + halfInterval;\n }", "public void minMaxChannels(MyInt min, MyInt max, MyInt preferred) {\r\n\r\n\t\tsuper.minMaxChannels(min, max, preferred);\r\n\t\tnumberOfChannels = preferred.getValue();\r\n\t}", "public static double limitRange( double val , double max , double min )\n {\n //If number is greater than maximum, it becomes the maximum.\n if( val > max )\n {\n val = max; \n }\n else if( val < min )//Else if the number is less than minimum, it becomes the minimum.\n {\n val = min;\n }\n \n //Returns the limited number.\n return val;\n }", "public SettingInteger setValidRange(int min, int max) { _minValue = min; _maxValue = max; return this; }", "private void setMax(int max) { this.max = new SimplePosition(false,false,max); }", "public int[] askNewSizes(int min, int max, String titel);", "private void initMinMax(final Configuration currentConfiguration,\n\t\t\tfinal Map<DateTime, Position> minX,\n\t\t\tfinal Map<DateTime, Position> maxX,\n\t\t\tfinal Map<DateTime, Velocity> minV,\n\t\t\tfinal Map<DateTime, Velocity> maxV,\n\t\t\tfinal Map<DateTime, Amount<Power>> minCharges) {\n\n\t\t// set minX, maxX, minV, maxV\n\t\tfor (PossibleRun possibleRun : currentConfiguration\n\t\t\t\t.getPossibleRunsConfiguration().getPossibleRuns()) {\n\t\t\tAmount<Power> minXThisDim = Amount.valueOf(Double.NaN, Power.UNIT);\n\t\t\tAmount<Power> maxXThisDim = Amount.valueOf(Double.NaN, Power.UNIT);\n\n\t\t\tswitch (possibleRun.getLoadFlexibilityOfRun()) {\n\t\t\tcase FIXED:\n\t\t\t\tfor (Slot slot : possibleRun.getNeededSlots()) {\n\t\t\t\t\tif (slot.getLoad().isLessThan(minXThisDim)) {\n\t\t\t\t\t\tminXThisDim = slot.getLoad();\n\t\t\t\t\t}\n\t\t\t\t\tif (slot.getLoad().isGreaterThan(maxXThisDim)) {\n\t\t\t\t\t\tmaxXThisDim = slot.getLoad();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase LIMITED_CHOICE:\n\t\t\t\tif (possibleRun.getPossibleLoads().isEmpty()) {\n\t\t\t\t\tthrow new UnsupportedOperationException(\n\t\t\t\t\t\t\t\"Possible Loads must contain at least one element!\");\n\t\t\t\t}\n\t\t\t\tminXThisDim = Amount.valueOf(0, Power.UNIT);\n\t\t\t\tmaxXThisDim = Amount.valueOf(possibleRun.getPossibleLoads()\n\t\t\t\t\t\t.size() - 1, Power.UNIT);\n//\t\t\t\tLOG.trace(\n//\t\t\t\t\t\t\"There are {} possibilities for run with start date {}\",\n//\t\t\t\t\t\tpossibleRun.getPossibleLoads().size(),\n//\t\t\t\t\t\tpossibleRun.getEarliestStartTime());\n\t\t\t\tbreak;\n\t\t\tcase RANGE:\n\t\t\t\tminXThisDim = possibleRun.getRangeOfPossibleLoads()\n\t\t\t\t\t\t.lowerEndpoint();\n\t\t\t\tmaxXThisDim = possibleRun.getRangeOfPossibleLoads()\n\t\t\t\t\t\t.upperEndpoint();\n\t\t\t\tLOG.trace(\n\t\t\t\t\t\t\"Run with start date {} has dimension limits {} to {}\",\n\t\t\t\t\t\tpossibleRun.getEarliestStartTime(), minXThisDim,\n\t\t\t\t\t\tmaxXThisDim);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tminX.put(possibleRun.getEarliestStartTime(), new Position(\n\t\t\t\t\tpossibleRun, minXThisDim));\n\t\t\tmaxX.put(possibleRun.getEarliestStartTime(), new Position(\n\t\t\t\t\tpossibleRun, maxXThisDim));\n\n\t\t\tminV.put(possibleRun.getEarliestStartTime(), new Velocity(\n\t\t\t\t\tpossibleRun, minXThisDim.minus(maxXThisDim)));\n\t\t\tmaxV.put(possibleRun.getEarliestStartTime(), new Velocity(\n\t\t\t\t\tpossibleRun, maxXThisDim.minus(minXThisDim)));\n\t\t}\n\n\t\t// incorporate no charging times!\n\t\tRunConstraint constraint = currentConfiguration\n\t\t\t\t.getPossibleRunsConfiguration().getRunConstraint();\n\t\tfor (DateTime noCharge : constraint.getLossOfEnergyAtPointsInTime()\n\t\t\t\t.keySet()) {\n\t\t\tif (minX.containsKey(noCharge)) {\n\t\t\t\tPossibleRun run = minX.get(noCharge).getPossibleRun();\n\n\t\t\t\tif (LoadFlexiblity.LIMITED_CHOICE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tminX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tgetZeroChargeForLimitedChoice(run));\n\t\t\t\t} else if (LoadFlexiblity.RANGE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tminX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tAmount.valueOf(0, Power.UNIT));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (maxX.containsKey(noCharge)) {\n\t\t\t\tPossibleRun run = maxX.get(noCharge).getPossibleRun();\n\n\t\t\t\tif (LoadFlexiblity.LIMITED_CHOICE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tmaxX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tgetZeroChargeForLimitedChoice(run));\n\t\t\t\t} else if (LoadFlexiblity.RANGE.equals(run\n\t\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\t\tmaxX.get(noCharge).setChosenValue(\n\t\t\t\t\t\t\tAmount.valueOf(0, Power.UNIT));\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (minV.containsKey(noCharge)) {\n\t\t\t\tminV.get(noCharge)\n\t\t\t\t\t\t.setChosenValue(Amount.valueOf(0, Power.UNIT));\n\t\t\t}\n\t\t\tif (maxV.containsKey(noCharge)) {\n\t\t\t\tmaxV.get(noCharge)\n\t\t\t\t\t\t.setChosenValue(Amount.valueOf(0, Power.UNIT));\n\t\t\t}\n\t\t}\n\n\t\t// set minCharges\n\t\tAmount<Power> powerToCharge = Amount.valueOf(0, Power.UNIT);\n\t\tAmount<Power> lastValueOfChargesAtPointsInTime = Amount.valueOf(0,\n\t\t\t\tPower.UNIT);\n\t\tSet<DateTime> reverseKeys = ImmutableSortedSet.copyOf(minX.keySet())\n\t\t\t\t.descendingSet();\n\t\tfor (DateTime now : reverseKeys) {\n\t\t\tif (!lastValueOfChargesAtPointsInTime.approximates(Amount.valueOf(\n\t\t\t\t\t0, Power.UNIT))) {\n\t\t\t\tpowerToCharge = powerToCharge\n\t\t\t\t\t\t.plus(lastValueOfChargesAtPointsInTime);\n\t\t\t\tlastValueOfChargesAtPointsInTime = Amount\n\t\t\t\t\t\t.valueOf(0, Power.UNIT);\n\t\t\t}\n\n\t\t\tif (constraint.getChargesAtPointsInTime().containsKey(now)) {\n\t\t\t\tlastValueOfChargesAtPointsInTime = constraint\n\t\t\t\t\t\t.getChargesAtPointsInTime().get(now);\n\t\t\t}\n\n\t\t\tPossibleRun run = minX.get(now).getPossibleRun();\n\n\t\t\tif (powerToCharge.approximates(Amount.valueOf(0, Power.UNIT))\n\t\t\t\t\t|| powerToCharge.isLessThan(Amount.valueOf(0, Power.UNIT))) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdouble hours = run.getLengthOfRun().toStandardMinutes()\n\t\t\t\t\t.getMinutes()\n\t\t\t\t\t/ HOUR_IN_MINUTES;\n\t\t\tAmount<Power> charge = null;\n\t\t\tif (LoadFlexiblity.LIMITED_CHOICE.equals(run\n\t\t\t\t\t.getLoadFlexibilityOfRun())) {\n\t\t\t\tfor (Amount<Power> possibleLoad : run.getPossibleLoads()) {\n\t\t\t\t\tif (possibleLoad.isLessThan(Amount.valueOf(0, Power.UNIT))) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\tcharge = possibleLoad;\n\n\t\t\t\t\tif (charge.times(hours).isGreaterThan(powerToCharge)) {\n\t\t\t\t\t\tcharge = powerToCharge.divide(hours);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (charge == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tAmount<Power> maxChargeNow = maxX.get(now).getChosenValue();\n\t\t\t\tif (powerToCharge.isGreaterThan(maxChargeNow)) {\n\t\t\t\t\tcharge = maxChargeNow;\n\t\t\t\t} else if (powerToCharge.isGreaterThan(Amount.valueOf(0,\n\t\t\t\t\t\tPower.UNIT))) {\n\t\t\t\t\tcharge = powerToCharge;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tminCharges.put(now, powerToCharge);\n\t\t\tpowerToCharge = powerToCharge.minus(charge.times(hours));\n\t\t}\n\n\t\tif (powerToCharge.isGreaterThan(Amount.valueOf(0, Power.UNIT))) {\n\t\t\tLOG.debug(\"powerToCharge is greater than 0, which means that the charging constraints cannot be satisfied!\");\n\t\t}\n\t}", "public void updateMinMax( ) {\r\n if( (data == null) || (data.size() < 1) ) {\r\n min = 0.0;\r\n max = 0.0;\r\n return;\r\n }\r\n\r\n min = data.get( 0 );\r\n max = data.get( 0 );\r\n\r\n for( int i = 1; i < data.size(); i++ ) {\r\n if( min > data.get( i ) )\r\n min = data.get( i );\r\n if( max < data.get( i ) )\r\n max = data.get( i );\r\n }\r\n\r\n }", "public void setMaxPlayers(short maxPlayer) {\n\t\tif (maxPlayer <= 0 || maxPlayer > CommonConstants.MAX_PLAYERS) {\n\t\t\tthrow new IllegalArgumentException(\"Player count must be 1..\" + CommonConstants.MAX_PLAYERS);\n\t\t}\n\n\t\tShortPoint2D[] newPlayerStarts = new ShortPoint2D[maxPlayer];\n\t\tfor (int i = 0; i < maxPlayer; i++) {\n\t\t\tnewPlayerStarts[i] = i < playerCount ? playerStarts[i] : new ShortPoint2D(width / 2, height / 2);\n\t\t}\n\t\tthis.playerCount = maxPlayer;\n\t\tthis.playerStarts = newPlayerStarts;\n\n\t}", "public static MinMaxContainer getMinMax(int[] mas){\n // functional programming part\n int min = Arrays.stream(mas).min().getAsInt();\n int max = Arrays.stream(mas).max().getAsInt();\n\n MinMaxContainer minMaxContainer = new MinMaxContainer();\n minMaxContainer.max = max;\n minMaxContainer.min = min;\n\n return minMaxContainer;\n }", "@Override\n public int between(int min, int max) {\n return super.between(min, max);\n }", "private int[] findMinMax(ArrayList<ArrayList<Integer>> objects, int featureNo) {\n\t\t\tint max = Integer.MIN_VALUE;\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\t\n\t\t\tfor(int b = 0; b < objects.size(); b++){\n\t\t\t\t\n\t\t\t\tmax = Math.max(objects.get(b).get(featureNo) , max);\n\t\t\t\tmin = Math.min(objects.get(b).get(featureNo) , min);\n\t\t\t}\n\t\t\t\n\t\t\treturn new int[]{max,min};\n\t\t}", "public void setTextPortRange(int minPort, int maxPort);", "public void setMaximum( final int value ) {\n checkWidget();\n if( 0 <= minimum && minimum < value ) {\n maximum = value;\n if( selection > maximum - thumb ) {\n selection = maximum - thumb;\n }\n }\n if( thumb >= maximum - minimum ) {\n thumb = maximum - minimum;\n selection = minimum;\n }\n }", "public DynamicPart minMax(float min, float max) {\n return this.min(min).max(max);\n }", "public AdornmentTypeRange(final int min, final int max) {\n\t\tthis.maxInteger = max;\n\t\tthis.minInteger = min;\n\t}", "protected double[] clampV(double nextVabs, double nextVarg)\r\n\t\t{\r\n//\t\t\tif(nextVabs < v_min)\r\n//\t\t\t\tnextVabs = v_min;\r\n//\t\t\telse if(nextVabs > v_max)\r\n//\t\t\t\tnextVabs = v_max;\r\n\t\t\t\r\n\t\t\treturn new double[]{nextVabs, nextVarg};\r\n\t\t}", "private void setMinMax(List<IBasicExplanation> explanationList){\n\t\t\tminSE = scoringFunction.getScore(explanationList.get(0));\n\t\t\tmaxSE = scoringFunction.getScore(explanationList.get(explanationList.size() - 1));\n\t\t}", "public void setMaxMin(long maxMin) {\n\t\tthis.maxMin = maxMin;\r\n\t}", "NumericRangeFilter(double p_min, double p_max) {\n maximum = p_max;\n minimum = p_min;\n }", "public RangeSlider(int min, int max) {\n super(min, max);\n initSlider();\n }", "protected void calcMinMax() {\n }", "public void ComputeBounds( Vec3 min, Vec3 max )\r\n\t{\r\n\t\tfor ( int iTempCount = 1; iTempCount <= 3; iTempCount++ )\r\n\t\t{\r\n\t\t\tVec3 tempPoint = m_vertices[iTempCount];\r\n\t\t\t\r\n\t\t\tif ( tempPoint.xCoord < min.xCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.xCoord = tempPoint.xCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.xCoord > max.xCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.xCoord = tempPoint.xCoord;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif ( tempPoint.yCoord < min.yCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.yCoord = tempPoint.yCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.yCoord > max.yCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.yCoord = tempPoint.yCoord;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tif ( tempPoint.zCoord < min.zCoord )\r\n\t\t\t{\r\n\t\t\t\tmin.zCoord = tempPoint.zCoord;\r\n\t\t\t}\r\n\t\t\telse if ( tempPoint.zCoord > max.zCoord )\r\n\t\t\t{\r\n\t\t\t\tmax.zCoord = tempPoint.zCoord;\r\n\t\t\t}\t\t\t\r\n\t\t}\t\t\r\n\t}", "public void setMaxPrelevabile(float max) {\n\t\tbuttonMax.setText(String.valueOf(max));\n\t\tbutton50.setEnabled((max >= 50));\n\t\tbutton100.setEnabled((max >= 100));\n\t\tbutton150.setEnabled((max >= 150));\n\t\tbutton250.setEnabled((max >= 250));\n\t\tbutton500.setEnabled((max >= 500));\n\t}", "private ArrayList<String> getProfile (float minS, float maxS, float minR, float maxR) {\n ArrayList<String> vals = new ArrayList<>();\n for (float x : values.subMap(minS, maxS).keySet()) {\n for (ArrayList<String> y : values.get(x).subMap(minR, maxR).values()) {\n // y here, represents the values of points in range...\n vals.addAll(y);\n }\n }\n return vals;\n }", "private int clamp(int val, int min, int max){\n\t\tif(val > max){\n\t\t\tval = max;\n\t\t}\n\t\telse if(val < min){\n\t\t\tval = min;\n\t\t}\n\t\treturn val;\n\t}", "private void checkValues(int yMin2, int yMax2, List<XYValue> listOfValues2) {\n\t\tif(yMin2 < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Number can not be negative!\");\n\t\t}\n\t\tif(yMax2 <= yMin2) {\n\t\t\tthrow new IllegalArgumentException(\"Max has to be greater than min!\");\n\t\t}\n\t\tfor(XYValue value : listOfValues2) {\n\t\t\tif(value.getY() < yMin2) {\n\t\t\t\tthrow new IllegalArgumentException(\"Found smaller y than minimum!\");\n\t\t\t}\n\t\t}\n\t}", "public java.util.Collection getTimeLimit();", "void makeAnalysis(double v_min, double v_max) {\n\t\t\tfmt_result = universalFormat;\n\t\t\tdouble range = v_max - v_min;\n\t\t\tscale = 0.;\n\t\t\tif (range > 0.) {\n\t\t\t\tscale = Math.pow(10., Math.floor(1.000001 * Math.log(range) / Math.log(10.0)));\n\t\t\t}\n\t\t\tif (scale == 0.) {\n\t\t\t\tscale = 1.;\n\t\t\t\tvalue_min = -1.0;\n\t\t\t\tvalue_max = +1.0;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\tif (value_min * value_max == 0. && (scale == Math.abs(value_max) || scale == Math.abs(value_min))) {\n\t\t\t\tscale = scale / 5.0;\n\t\t\t\tvalue_min = scale * Math.floor(v_min / scale);\n\t\t\t\tvalue_max = scale * Math.ceil(v_max / scale);\n\t\t\t}\n\n\t\t\tdouble[] arr = new double[3];\n\t\t\tarr[0] = scale;\n\t\t\tarr[1] = value_min;\n\t\t\tarr[2] = value_max;\n\n\t\t\tdouble zz_max = Math.max(Math.abs(arr[1]), Math.abs(arr[2]));\n\t\t\tint nV = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nV >= 0) {\n\t\t\t\tnV += 1;\n\t\t\t} else {\n\t\t\t\tnV -= 1;\n\t\t\t}\n\n\t\t\tzz_max = zz_max / Math.abs(arr[0]);\n\t\t\tint nD = (int) (Math.floor(1.0001 * Math.log(zz_max) / Math.log(10.0)));\n\t\t\tif (nD >= 0) {\n\t\t\t\tnD += 1;\n\t\t\t}\n\n\t\t\t//This is for zoom, so we want to increase number of significant digits\n\t\t\tnD = nD + 1;\n\n\t\t\tif (nV >= 4) {\n\t\t\t\tint n = Math.min(4, Math.abs(nD));\n\t\t\t\tfmt_result = scientificFormats[n];\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (nV > 0 && nV < 4) {\n\t\t\t\tif (nV >= nD) {\n\t\t\t\t\tfmt_result = simpleFormats[0];\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tint n = Math.min(4, Math.abs(nV - nD));\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (nV < 0 && nV > -4) {\n\t\t\t\tint n = Math.abs(nV) + Math.abs(nD) - 2;\n\t\t\t\tif (n <= 4) {\n\t\t\t\t\tfmt_result = simpleFormats[n];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public ArrayList<BoardGame> filterByPlayer(ArrayList<BoardGame> list) {\n //int playerCount = Integer.parseInt(numPlayers);\n int playerCount = extractInt(numPlayers);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER PLAYERS\", \"Game: \" + game.getName() + \" Min players: \" + game.getMinPlayers() +\n \" Max players: \" + game.getMaxPlayers() + \" Target players: \" + playerCount);\n //TODO: Is there some case for 10+ that would differ from the below?\n if(game.getMinPlayers() <= playerCount && game.getMaxPlayers() >= playerCount) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }", "public void setRange(int min, int max) {\n range = new PriceRange();\n range.setMaximum(max);\n range.setMinimum(min);\n }", "void setLimit(int limit);", "@Test\n\tpublic void testLimits() throws DeviceException {\n\t\tsetUpIncrement();\n\t\tdouble lastPos = INITIAL_POSITION;\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tfinal double currentPos = (double) monitor.getPosition();\n\t\t\tassertTrue(Math.abs(currentPos - lastPos) > 0.001);\n\t\t\tassertTrue(currentPos - UPPER_LIMIT < 0.001);\n\t\t\tassertTrue(currentPos - LOWER_LIMIT > 0.001);\n\t\t\tlastPos = currentPos;\n\t\t}\n\t}", "public List<PlayerRecord> display4() {\n List<PlayerRecord> l = new List<PlayerRecord>();\n int max = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n int c = curr.getShots();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = playerlist.next();\n }\n return l;\n }", "public void setRepRange(int reps, int min, int max) {\n if (isValidInterval(reps, min, max)) {\n this.reps = reps;\n repsMin = min;\n repsMax = max;\n } else {\n throw new IllegalArgumentException(\"Range must satisfy 0 < repsMin <= reps <= repsMax.\" +\n \" Found reps=\" + reps + \", [\" + min + \",\" + max +\"]\");\n }\n }", "public static void main(String[] args) {\n\t\tint a[]= {3,64,24,15,20};\r\n\t\tint max=a[0],min=a[0];\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tif(max<a[i])\r\n\t\t\t{\r\n\t\t\t\tmax=a[i];\r\n\t\t\t}\r\n\t\t\tif(min>a[i])\r\n\t\t\t{\r\n\t\t\t\tmin=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Minimum is:\"+min);\r\n\t\tSystem.out.println(\"Maximum is:\"+max);\r\n\r\n\t}", "public void setTimeRange(int itmin, int itmax) {\n _itmin = itmin;\n _itmax = itmax;\n }", "public void setMinAlturaCM(float max);", "public void setMiterLimit(float limit);", "private JSlider erstelleSchieberegler(int minimum, int maximum) {\r\n\t\tJSlider schieberegler = new JSlider(minimum, maximum);\r\n\t\tschieberegler.setPaintLabels(true);\r\n\t\tschieberegler.setPaintTicks(true);\r\n\t\tschieberegler.setMajorTickSpacing(1);\r\n\t\treturn schieberegler;\r\n\t}", "public void allMinMax() {\n\t\tthis.theMaxX();\n\t\tthis.theMinX();\n\t\tthis.theMaxY();\n\t\tthis.theMinY();\n\t}", "public void displayMaxValues() {\r\n if (deltaX > deltaXMax) {\r\n deltaXMax = deltaX;\r\n maxX.setText(Float.toString(deltaXMax));\r\n }\r\n if (deltaY > deltaYMax) {\r\n deltaYMax = deltaY;\r\n maxY.setText(Float.toString(deltaYMax));\r\n }\r\n if (deltaZ > deltaZMax) {\r\n deltaZMax = deltaZ;\r\n maxZ.setText(Float.toString(deltaZMax));\r\n }\r\n }", "void setMaximum(int max);", "public void setParamValueRange(String label, Object minValue, Object maxValue);", "public Range(int minIn, int maxIn) {\n min = minIn;\n max = maxIn;\n }", "public void setTimeLimit(java.util.Collection timeLimit);", "private static List<Integer> getMinMaxAltitude(\n List<ACARSRecord> soundingList) {\n Integer minAlt = Integer.MAX_VALUE;\n Integer maxAlt = Integer.MIN_VALUE;\n\n for (ACARSRecord rec : soundingList) {\n if ((rec != null) && (rec.getFlightLevel() != null)) {\n maxAlt = Math.max(rec.getFlightLevel(), maxAlt);\n minAlt = Math.min(rec.getFlightLevel(), minAlt);\n }\n }\n\n List<Integer> retValue = null;\n if (!maxAlt.equals(Integer.MIN_VALUE)\n && !minAlt.equals(Integer.MAX_VALUE)) {\n retValue = new ArrayList<Integer>();\n retValue.add(minAlt);\n retValue.add(maxAlt);\n }\n return retValue;\n }", "public void setBounds(Point3D minBounds, Point3D maxBounds) {\n this.minBounds = minBounds;\n this.maxBounds = maxBounds;\n }", "@Test\n\tpublic void testMaxMinMax(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( max, MaxDiTre.max(max, min, max) );\n\t}", "public List<Pregunta> getPreguntasMasVotadas(int limit);", "@JSProperty(\"maxRange\")\n double getMaxRange();", "@Test\n\tpublic void testMinMinMax(){\n\t int min=3, mid=5, max=10;\n\t assertEquals( max, MaxDiTre.max(min, min, max) );\n\t}", "private static float[] getPlanBounds(List<float[]> list) {\n float xStart = Float.MAX_VALUE;\n float yStart = Float.MAX_VALUE;\n float zStart = Float.MAX_VALUE;\n float xEnd = Float.MIN_VALUE;\n float yEnd = Float.MIN_VALUE;\n float zEnd = Float.MIN_VALUE;\n for (float[] point : list) {\n if (point[0] < xStart) {\n xStart = point[0];\n }\n if (point[0] > xEnd) {\n xEnd = point[0];\n }\n if (point[1] < yStart) {\n yStart = point[1];\n }\n if (point[1] > yEnd) {\n yEnd = point[1];\n }\n if (point[2] < zStart) {\n zStart = point[2];\n }\n if (point[2] > zEnd) {\n zEnd = point[2];\n }\n }\n return new float[]{xStart, xEnd, yStart, yEnd, zStart, zEnd};\n }", "@Override\n public void setMaxRange(int maxRange) {\n this.maxRange = maxRange;\n }", "public LongRange(long number1, long number2) {\n/* 110 */ if (number2 < number1) {\n/* 111 */ this.min = number2;\n/* 112 */ this.max = number1;\n/* */ } else {\n/* 114 */ this.min = number1;\n/* 115 */ this.max = number2;\n/* */ } \n/* */ }", "public final void adjustLimits(int max) {\n this.invalid = false;\n if (this.value < 1) {\n this.value = 1;\n this.invalid = true;\n }\n if (max > 0) {\n if (this.value > max) {\n this.value = max;\n this.invalid = true;\n }\n }\n }", "int getMaxRawImages();", "int getLimit();", "int getLimit();", "public void displayMaxValues() {\n if (deltaX > deltaXMax) {\n deltaXMax = deltaX;\n maxX.setText(_DF.format(deltaXMax));\n }\n if (deltaY > deltaYMax) {\n deltaYMax = deltaY;\n maxY.setText(_DF.format(deltaYMax));\n }\n if (deltaZ > deltaZMax) {\n deltaZMax = deltaZ;\n maxZ.setText(_DF.format(deltaZMax));\n }\n\n }", "private static void afisareSubsecventaMaxima() {\n afisareSir(citireSir().SecvMax());\n }", "public List<Double> linespace(double min, double max, int n){\n List<Double> values = new ArrayList<Double>();\n double delta = (max - min) / (n - 1);\n for (int i = 0; i < n; i++){\n values.add(min + delta * i);\n }\n \n return values;\n }", "public LongRange(long number) {\n/* 73 */ this.min = number;\n/* 74 */ this.max = number;\n/* */ }", "public Lista listarRango(Comparable elemMin, Comparable elemMax) {\n Lista listaAux = new Lista();\r\n if (this.raiz != null) {\r\n listaAux = listarRangoAux(this.raiz, listaAux, elemMin, elemMax);\r\n }\r\n return listaAux;\r\n }", "private int clamp(int value, int min, int max) {\n return Math.max(min, Math.min(value, max));\n }", "public void setXDataRange(float min, float max);", "public void setPowerRange(double min, double max) {\n\t\tsetOutputRange(new APPDriveData(min, 0, 0), new APPDriveData(max, 0, 0),\n\t\t\t\t(data1, data2) -> Double.compare(data1.power, data2.power));\n\t}", "protected final void setMax() {\n\n\tint prevmax = this.max;\n\n\tint i1 = this.high;\n\tint i2 = left.max;\n\tint i3 = right.max;\n\n\tif ((i1 >= i2) && (i1 >= i3)) {\n\t this.max = i1;\n\t} else if ((i2 >= i1) && (i2 >= i3)) {\n\t this.max = i2;\n\t} else {\n\t this.max = i3;\n\t}\n\t\n\tif ((p != IntervalNode.nullIntervalNode) &&\n\t (prevmax != this.max)) {\n \t p.setMax();\n\t}\n }", "GridEnvelope getLimits();", "public ArrayList<BoardGame> filterByTime(ArrayList<BoardGame> list) {\n int time = extractInt(playTime);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER TIME\", \"Game: \" + game.getName() + \" Min Time: \" + game.getMinPlayTime() +\n \" Max Time: \" + game.getMaxPlayTime() + \" Target Time: \" + time);\n if((game.getMinPlayTime() <= time && game.getMaxPlayTime() >= time) || game.getMaxPlayTime() <= time) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }", "public AdornmentTypeRange(final float min, final float max) {\n\t\tthis.maxFloat = max;\n\t\tthis.minFloat = min;\n\t}", "public void setYDataRange(float min, float max);", "public static void main(String[] args) {\n\t\tint [] listArr = {1,2,3,34,56,0};\n\t\tmin(listArr);\n\t\tmax(listArr);\n\t}", "private <T> List<Pair<Integer, T>> getTranslatorRange(List<Pair<Integer, T>> translators, int minVersion, int maxVersion) {\n int minIndex = Collections.binarySearch(\n translators,\n Pair.of(maxVersion, null),\n Comparator.<Pair<Integer, T>, Integer>comparing(Pair::getLeft).reversed());\n minIndex = minIndex < 0 ? -minIndex - 1 : minIndex + 1;\n int maxIndex = Collections.binarySearch(\n translators,\n Pair.of(minVersion, null),\n Comparator.<Pair<Integer, T>, Integer>comparing(Pair::getLeft).reversed());\n maxIndex = maxIndex < 0 ? -maxIndex - 1 : maxIndex + 1;\n return translators.subList(minIndex, maxIndex);\n }", "public void setMaxRange(int max_range) {\n\t\t// Do not allow negative numbers\n\t\tthis.max_range = Math.max(0, max_range);\n\t}", "public static int[] minmax(int[] a)\n {\n \tint[] b= {0,0};\n \tint min=(int)1e9;\n \tint max=(int)-1e9;\n \tfor(int i=0;i<a.length;i++)\n \t{\n \t\tmin=Math.min(min, a[i]);\n \t\tmax=Math.max(max, a[i]);\n \t}\n \tb[0]=min;\n \tb[1]=max;\n \treturn b;\n }", "public SpriteIndexRandom(int min, int max) {\n\n this.min = min;\n this.max = max;\n }", "private static JSpinner createRangedSpinner(int initialValue, int min, int max)\r\n\t\t{\r\n\t\tSpinnerModel spinnerModel = new SpinnerNumberModel(initialValue, min, max, 1); //default value,lower bound,upper bound,increment by\r\n\t\treturn new JSpinner(spinnerModel);\r\n\t\t}", "public LongRange(Number number1, Number number2) {\n/* 132 */ if (number1 == null || number2 == null) {\n/* 133 */ throw new IllegalArgumentException(\"The numbers must not be null\");\n/* */ }\n/* 135 */ long number1val = number1.longValue();\n/* 136 */ long number2val = number2.longValue();\n/* 137 */ if (number2val < number1val) {\n/* 138 */ this.min = number2val;\n/* 139 */ this.max = number1val;\n/* 140 */ if (number2 instanceof Long) {\n/* 141 */ this.minObject = (Long)number2;\n/* */ }\n/* 143 */ if (number1 instanceof Long) {\n/* 144 */ this.maxObject = (Long)number1;\n/* */ }\n/* */ } else {\n/* 147 */ this.min = number1val;\n/* 148 */ this.max = number2val;\n/* 149 */ if (number1 instanceof Long) {\n/* 150 */ this.minObject = (Long)number1;\n/* */ }\n/* 152 */ if (number2 instanceof Long) {\n/* 153 */ this.maxObject = (Long)number2;\n/* */ }\n/* */ } \n/* */ }" ]
[ "0.6928117", "0.678455", "0.65076", "0.5901774", "0.5900288", "0.5868028", "0.58605474", "0.5852694", "0.5819102", "0.5777416", "0.5758803", "0.57424515", "0.57345027", "0.5704137", "0.56377923", "0.56288666", "0.56144804", "0.56119764", "0.56084734", "0.5591371", "0.55676854", "0.5558793", "0.5545928", "0.5539884", "0.5517929", "0.54993117", "0.5473322", "0.54680514", "0.5456367", "0.5415985", "0.5407361", "0.5372255", "0.5371676", "0.53549784", "0.5352212", "0.53362375", "0.5333486", "0.53328997", "0.5331471", "0.53275603", "0.5325312", "0.53200036", "0.52904457", "0.5276544", "0.52696085", "0.5260545", "0.52586347", "0.52493775", "0.5246034", "0.5244895", "0.52267486", "0.5209425", "0.5208546", "0.5206464", "0.52059245", "0.5205348", "0.5203255", "0.51967466", "0.51934904", "0.51928765", "0.51859426", "0.5180991", "0.51758415", "0.5167438", "0.5165086", "0.5162831", "0.51611847", "0.5159827", "0.51582485", "0.5157236", "0.51547533", "0.5152609", "0.51514536", "0.5148798", "0.51472384", "0.5142679", "0.51423115", "0.51387286", "0.5133246", "0.5133246", "0.5130181", "0.51211065", "0.5120265", "0.5118108", "0.51155245", "0.5107116", "0.51043904", "0.5103906", "0.5100201", "0.5091301", "0.508813", "0.5085995", "0.50852877", "0.50836396", "0.50824183", "0.50813293", "0.50748026", "0.5065907", "0.5065203", "0.5064795" ]
0.70053315
0
restituisce il videogioco che ha come id l'intero passato come parametro
Videogioco findVideogiocoById(int id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void agregarVotoPlayLIst(Voto voto) throws ExceptionDao;", "MovieVideo getMovieVideoByVideoid(String videoid);", "private native void iniciarCamara(int idCamera);", "void setVideoResourceId(@RawRes int resId);", "Videoinfo selectByPrimaryKey(Integer videoid);", "public Video getVideo(int id) {\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t/*\n\t\t * Cursor cursor = db.query(TABLE_CONTACTS, new String[] { KEY_ID,\n\t\t * KEY_NAME, KEY_PH_NO }, KEY_ID + \"=?\", new String[] {\n\t\t * String.valueOf(id) }, null, null, null, null);\n\t\t */\n\t\tCursor cursor = db.query(VivaFrame.TABLE_NAME, new String[] {\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_ID, VivaFrame.COLUMN_NAME_VI_FOLDER,\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_NAME, VivaFrame.COLUMN_NAME_VI_URL },\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_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\n\t\tVideo video = new Video(Integer.parseInt(cursor.getString(0)),\n\t\t\t\tInteger.parseInt(cursor.getString(1)), cursor.getString(2),\n\t\t\t\tcursor.getString(3));\n\t\t// return contact\n\t\treturn video;\n\t}", "public int getVid() {\r\n return vid;\r\n }", "public void setVideoDevice(String id);", "String getVideoId() {\r\n return videoId;\r\n }", "private static VideoHolder getAllVideo(String ligne) throws IOException {\n String[] vid = ligne.split(\" \");\n VideoHolder videoHolder = new VideoHolder();\n for (int i = 0; i < vid.length; i++) {\n videoHolder.add(new Video(i, Integer.parseInt(vid[i])));\n }\n return videoHolder;\n }", "SecondSlideshow selectByPrimaryKey(Integer id);", "public void setId_movimiento(Integer id_movimiento) {\r\n this.id_movimiento = id_movimiento;\r\n }", "public Camioes( int idCamiao, String designacao)\r\n {\r\n this.designacao=validarString( designacao);\r\n this.idCamiao=validarInteger(idCamiao);\r\n //contentor= new Contentor(idContentor);\r\n posicao= new CoordenadasGeograficas(0,0);\r\n quilometrosPercorridos=0;\r\n numeroInspecoes=0;\r\n quilometrosPecorridosInspecao=0;\r\n temContentor=false;\r\n }", "@Override\n\tpublic void ingresarFicha(VideoJuego juego) {\n\t\t\n\t}", "@Override\n\tvoid postarVideo() {\n\n\t}", "TVideo selectByPrimaryKey(String uid);", "public void comprueba_maquina(String id) {\n JSONObject data = new JSONObject();\n\n try {\n data.put(Tags.ID_MAQUINA, id);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Call<String> call = RetrofitClient.getClient().create(UserServices.class)\n .get_maquina(ApiUtils.getAuthenticationWhith(data));\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n try {\n JSONObject json = new JSONObject(response.body());\n String result = json.getString(Tags.RESULT);\n if (result.contains(Tags.OK)) {\n String id = json.getString(Tags.ID_MAQUINA);\n String nombre = json.getString(Tags.NOMBRE);\n System.out.println(\"Nombre de la máquina : \"+nombre);\n System.out.println(\"Pk de la máquina : \"+id);\n\n Intent temporizador = new Intent(LectorActivity.this, TemporizadorActivity.class);\n temporizador.putExtra(\"nombre_actividad\",nombre);\n temporizador.putExtra(\"id_maquina\",id);\n startActivity(temporizador);\n finish();\n }else{\n //intentalo de nuevo dialog Intentar de nuvo-> iniciarQrDetector();\n Toast.makeText(LectorActivity.this,\"Try again\",Toast.LENGTH_LONG).show();\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n\n }\n });\n }", "String getVideoId() {\n return videoId;\n }", "public Video( int arg1 ) { \n\t\tsuper( );\n\t}", "public void setVid(int value) {\r\n this.vid = value;\r\n }", "public Pokemon (int id, String nombre, int evolucion, String tipo,String rutaImagen)\r\n\t{\r\n\t\tthis.id = id;\r\n\t\tthis.nombre = nombre;\r\n\t\tsetVidas(0);\r\n\t\tsetNivel(0);\r\n\t\tthis.tipo=tipo;\r\n\t\tthis.evolucion = evolucion;\r\n\t\tthis.rutaImagen = rutaImagen;\r\n\t}", "public void setId(int idNuevo)\n { \n this.id = idNuevo;\n }", "public Video(Integer id,String titulo) {\n\t\tthis(id, titulo, 0.0, 0);\n\t}", "@Override\n\tpublic void botonInicio(VideoJuego juego) {\n\t\t\n\t}", "public void setVideourl(String videourl) {\n this.videourl = videourl;\n }", "public Video(Integer id,String titulo, Double costo, Integer duracion) {\n\t\tsuper(id, titulo, costo);\n\t\tthis.duracion = duracion;\n\t}", "public String obtemOponente(Integer idJogador) throws RemoteException;", "public void setId_inventario(Integer id_inventario) {\r\n this.id_inventario = id_inventario;\r\n }", "public Integer getVid() {\n return vid;\n }", "public void setVid(Integer vid) {\n this.vid = vid;\n }", "@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }", "public Pokemon (int id, String nombre,int Nivel, int Vidas, int evolucion, String tipo,String rutaImagen)\r\n\t{\r\n\t\tthis.id = id;\r\n\t\tthis.nombre = nombre;\r\n\t\tsetVidas(vidas);\r\n\t\tsetNivel(nivel);\r\n\t\tthis.evolucion = evolucion;\r\n\t\tthis.tipo = tipo;\r\n\t\tthis.rutaImagen = rutaImagen;\r\n\t}", "public void leerPacientes (int id_nutricionista);", "public Socio(String nombre, int id_socio)\r\n {\r\n this.nombre = nombre;\r\n this.id_socio = id_socio;\r\n motos = new ArrayList<Moto>();\r\n System.out.println(\"Socio creado \" + id_socio + \" \" + nombre + \"\\n\");\r\n }", "Movimiento selectByPrimaryKey(Integer idMovCta);", "@Override\n\tpublic void votaRisposta(Integer id, int voto) {\n\t\t\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\tlong hashCode = id.hashCode();\n\t\tRisposta risposta = risposte.get(hashCode);\n\t\trisposta.setVoto(voto);\n\t\trisposte.put(hashCode, risposta);\n\t\tdb.commit();\n\t}", "private Long initializeVideo(Video v) {\n\t\tLong id = new Long(v.getId());\n\t\tif (id == 0 && !videos.containsKey(id)) {\n\t\t\tid = new Long(idGenerator.incrementAndGet());\n\t\t\tv.setId(id.longValue());\n\t\t\tv.setDataUrl(getUrlBaseForLocalServer() \n\t\t\t\t\t+ VideoSvcApi.VIDEO_DATA_PATH.replaceFirst(\n\t\t\t\t\t\t\t\"\\\\{id\\\\}\", id.toString()));\n\t\t\tvideos.put(id, v);\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t\treturn id;\n\t}", "public String param(String id) {\n if (online) return super.param(id);\n else return (String)params.get(id);\n}", "public Pivovar(int id, UzelTyp typ, int x, int y, Simulator sim)\n\t{\n\t\tsuper(id, typ, x, y,sim);\n\t\t\n\t\t/**\n\t\t * nastaveni defaultni hodnoty hektolitru piva v pivovaru\n\t\t */\n\t\tpivo = PRODUKCE;\n\t\tthis.vozy = new LinkedList<Auto>();\n\t}", "public Video(String nombre) {\n super(nombre);\n }", "public int getPlayerId();", "public void setIdImagen(int idImagen) {\n this.idImagen = idImagen;\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}", "public void setVid(java.lang.String param) {\r\n localVidTracker = param != null;\r\n\r\n this.localVid = param;\r\n }", "public void setIdventa( Integer idventa ) {\n this.idventa = idventa ;\n }", "public void setIdVenta(String idVenta) {\n this.idVenta = idVenta;\n }", "private String getVideoApiLink(String id) {\n String videoLink = \"https://api.themoviedb.org/3/movie/\" + id + \"/videos?api_key=8f067240d8717f510b4c79abe9f714b7&language=en-US\";\n return videoLink;\n }", "public void interactuarCon(Vehiculo4x4 vehiculo) {\r\n Vehiculo nuevoVehiculo = VehiculoMoto.nuevoVehiculo(vehiculo);\r\n this.actualizarMovimiento(nuevoVehiculo, vehiculo);\r\n observador.cambiarVehiculo(nuevoVehiculo);\r\n Logger.instance.log(\"Cambio de vehiculo! Ahora es una moto.\\n\");\r\n }", "public File getResource(Integer id) {\n Cours cours = courRepo.findById(id.longValue()).orElseThrow(()-> new RuntimeException(\"this cours does not exist \"));\n if(cours.getVideo() == null)\n throw new RuntimeException(\"this video does not exist\");\n String filePath= cours.getVideo().getUrlFile();\n File f = new File(filePath);\n return f;\n }", "public Html5Video(String id, IModel<List<MediaSource>> model)\n\t{\n\t\tsuper(id, model);\n\t}", "public interface Video extends Serializable{\n String title();\n String id();\n String thumbnail();\n String description();\n}", "public TiendaVideojuegos(String datos)\n {\n listaDeVideojuegos = new ArrayList<Videojuegos>();\n codVideojuego = 0;\n try{\n File archivo = new File(datos);\n Scanner sc = new Scanner(archivo);\n while (sc.hasNextLine()) {\n String[] datosVideojuego = sc.nextLine().split(\"#\");\n String titulo = datosVideojuego[0];\n String plataforma = datosVideojuego[1];\n int dia = Integer.parseInt(datosVideojuego[2]);\n int mes = Integer.parseInt(datosVideojuego[3]);\n int anyo = Integer.parseInt(datosVideojuego[4]);\n addVideojuego(titulo, dia, mes, anyo, plataforma);\n }\n \n sc.close();\n }\n catch (FileNotFoundException a) {\n a.printStackTrace();\n }\n \n }", "public HashVideo(int id, int s) { // s is the size passed in at construction.\n this.ID = id;\n this.size = s;\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String uri = request.getParameter(\"uriToPlay\");\n String titulo = request.getParameter(\"titulo\");\n\n boolean localVideo = isLocalFile(uri);\n SumarReproduccionClient client = new SumarReproduccionClient();\n long id = Long.valueOf(request.getParameter(\"id\"));\n String resultado = client.sumarReproduccion(String.class, String.valueOf(id));\n request.setAttribute(\"localVideo\", localVideo);\n request.setAttribute(\"uri\", uri);\n request.setAttribute(\"titulo\", titulo);\n request.getRequestDispatcher(\"reproduccionVideo.jsp\").forward(request, response);\n\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(getApplicationContext(), ActivitySonidoImagenText.class);\n //guardamos el id del boton\n intent.putExtra(\"category\", mCategory);\n intent.putExtra(\"boton\", v.getId());\n startActivityForResult(intent, RESULT_OK);\n //Log.d(\"ID DEL BOTON\", String.valueOf(v.getId()));\n }", "public String getVideourl() {\n return videourl;\n }", "public void alquilarMultimediaAlSocio(){\n lector = new Scanner(System.in);\n int opcion = -1;\n int NIF = 0;\n int pedirElemento;\n String titulo;\n Socio socio;\n\n\n\n NIF = pedirNIF(); // pido el NIF por teclado\n\n if(tienda.exiteSocio(NIF)){ // Si exite, continuo\n socio = tienda.getSocioWithNIF(NIF); // Si exite el socio, busco en la tienda y lo asigno.\n if(!socio.isAlquilando()) { // si el socio no está actualmente alquilando, no continuo\n opcion = pedirElemento(); // Pido el elemento\n\n switch (opcion) {\n case 1:\n tienda.imprimirDatos(tienda.getPeliculas());\n System.out.println(\"Introduce el titulo de la pelicula que quieres: \");\n titulo = lector.nextLine();\n if (tienda.exitePelicula(titulo)) {\n\n tienda.alquilarPeliculaSocio(NIF, titulo);\n System.out.println(\"PELICULA ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite la pelicula \" + titulo + \".\");\n }\n\n\n break;\n case 2:\n tienda.imprimirDatos(tienda.getVideojuegos());\n System.out.println(\"Introduce el titulo del videojuego que quieres: \");\n titulo = lector.nextLine();\n if (tienda.existeVideojuego(titulo)) {\n\n tienda.alquilarVideojuegoSocio(NIF, titulo);\n System.out.println(\"VIDEOJUEGO ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite el videojuego \" + titulo + \".\");\n }\n break;\n default:\n break;\n }\n }else{\n System.out.println(\"El socio \" + socio.getNombre() + \" tiene recargos pendientes.\");\n }\n\n }else{\n System.out.println(\"El socio con NIF \" + NIF + \" no exite.\");\n }\n\n\n\n\n\n\n }", "@GetMapping(path = {\"/{idtv}\"})\n public Tipovehiculo listarId(@PathVariable(\"idtv\")int idtv){\n return service.listarId(idtv);\n }", "private void NavCamera(int id){\n RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(Constants.START_POSITION, Constants.START_POSITION);\n View view = getLayoutInflater().inflate(R.layout.im_view, null);\n view.setLayoutParams(layoutParams);\n\n (view.findViewById(R.id.imm)).setId(idForNewItem);\n\n mapGeneratedImage.put(idForNewItem, new ParametersGeneratedImage(view, id));\n int temp = 1;\n if (mapForNewNote.get(mapGeneratedImage.get(idForNewItem)._type) != null)\n temp = mapForNewNote.get(mapGeneratedImage.get(idForNewItem)._type) + 1;\n mapForNewNote.put(mapGeneratedImage.get(idForNewItem)._type, temp);\n\n relativeMoveLayout.addView(view);\n\n view.setOnClickListener(this);\n view.setOnTouchListener(this);\n\n Toast.makeText(getApplicationContext(), \"count droids: \" + temp, Toast.LENGTH_SHORT).show();\n Toast.makeText(getApplicationContext(), \"id: \" + view.getId(), Toast.LENGTH_SHORT).show();\n idForNewItem++;\n }", "public void cambiarTitulo(int codVideojuego, String tituloNuevo)\n {\n if(codVideojuego>=0 && codVideojuego<=listaDeVideojuegos.size()) {\n Videojuegos Videojuego = listaDeVideojuegos.get(codVideojuego - 1);\n Videojuego.setTitulo(tituloNuevo);\n }\n else if(codVideojuego<=0 && codVideojuego>listaDeVideojuegos.size()){\n System.out.println(\"No hay videojuegos con ese codigo, introduce otro existente.\");\n }\n }", "public void setIdRichiesta(int idRichiesta) {\n this.idRichiesta = idRichiesta;\n }", "public void setIdCurso(Integer idCurso) {\r\n this.idCurso = idCurso;\r\n }", "public Recurso(int idRecurso, String descripcionRecurso){\n this.idRecurso = idRecurso; //Recibimos el numero \n this.descripcionRecurso = descripcionRecurso; //Material que deseamos\n }", "public void setNativeVideoWindowId(Object id);", "public Proyecto proyectoPorId(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto proyecto =plantilla.getForObject(\"http://localhost:5000/proyectos/\" + id, Proyecto.class);\n\t\t\treturn proyecto;\n\t\t}", "public void setIdacesso(int pIdacesso){\n this.idacesso = pIdacesso;\n }", "private void receiveId() throws Exception {\n\t\tint id = in.readInt();\n\t\t//intByteBuffer.clear();\n\t\t\n\t //if(numOfBytes < 0)\n\t // throw new Exception(\"Connection to server lost\");\n\t \n\t //if(numOfBytes < 4) {\n\t // System.err.println(\"Received only \" + numOfBytes + \" bytes in receiveId\");\n\t // return;\n\t //}\n\t \n\t GameActivity.getInstance().model().player().setId(id);\n\t \n\t System.out.println(\"id: \" + GameActivity.getInstance().model().player().id());\n\t}", "@RequestMapping(\"/movie/{id}\")\n public ApiWrapperSingle<ApiVideoDTO> getVideoById(@ModelAttribute(\"options\") OptionsIndexVideo options) {\n ApiWrapperSingle<ApiVideoDTO> wrapper = new ApiWrapperSingle<>();\n // Set the type to movie\n options.setType(\"MOVIE\");\n wrapper.setOptions(options);\n\n if (options.getId() > 0L) {\n LOG.info(\"Getting video with ID '{}'\", options.getId());\n jsonApi.getSingleVideo(wrapper);\n }\n wrapper.setStatusCheck();\n return wrapper;\n }", "public void reemplazarRutina(RutinaG rutina, String id) {\n\n ContentValues registro = prepararRegistroRutina(rutina);\n bdHelperRutinas.updateTabla(DataBaseManagerRutinas.TABLE_NAME, registro, DataBaseManagerRutinas.CN_ID + \" ='\" + id + \"'\");\n\n }", "@Override\n public void onImageButtonListner(int position, PeticionQuedadaRecibida pQuedada) {\n if(isOnlineNet()) {\n\n Bundle bundle = new Bundle();\n bundle.putSerializable(UID_USUARIO, pQuedada.getAutor_peticion());\n Fragment toFragment = new PerfilVistaPantallaVista();\n toFragment.setArguments(bundle);\n getFragmentManager()\n .beginTransaction()\n .replace(R.id.content_main, toFragment, UID_USUARIO)\n .addToBackStack(UID_USUARIO).commit();\n }else{\n Snackbar.make(myView,\"No hay conexión con internet\", Snackbar.LENGTH_SHORT).show();\n\n }\n\n }", "@Override\r\n\tpublic TVA rechercherParId(TVA t) {\n\t\treturn null;\r\n\t}", "public void videListeClient(){\n couleurs.clear();\n }", "@Override\r\n public Assunto buscarId(int id) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto a WHERE a.id =:id\");\r\n query.setParameter(\"id\", id);\r\n \r\n List<Assunto> assunto = query.getResultList();\r\n if(assunto != null && assunto.size() > 0)\r\n return assunto.get(0);\r\n return null;\r\n }", "private MusicVideo selectMusicVideoFromDB(int id){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n \n try{\n \n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo WHERE id =:id\", MusicVideo.class) ;\n query.setParameter(\"id\", id) ;\n MusicVideo musicVideo = query.getSingleResult() ;\n session.close() ;\n return musicVideo ;\n }\n catch(NoResultException ex){\n \n session.close() ;\n return null ;\n }\n }", "int getPlayerId();", "int getPlayerId();", "public void play(ExperimentalObject contenidoP) {\n\t\tif (running) {\n\t\t\tstop();\n\t\t\tstopReason =\"inicio\";\n\t\t}\n\t\tthis.running = false;\n\t\t// Crea un log nuevo\n\t\tsoundLog = new SoundLog();\n\t\t\n\t\t// Prepara la info en la clase\n\t\tcontenido = contenidoP;\n\t\tsound = contenido.sonido;\n\t\trunning = true;\n\t\tstart = TimeUtils.millis();\n\t\tends = -1;\n\t\tid = contenido.resourceId.id;\n\t\tif (secuenceId.size > 0) {\n\t\t\tif (secuenceId.peek() == id) {\n\t\t\t\tloopsNumber++;\n\t\t\t} else {\n\t\t\t\tloopsNumber = 1;\n\t\t\t}\n\t\t} else {\n\t\t\tloopsNumber = 1;\n\t\t}\n\t\tsecuenceId.add(id);\n\t\tinstance = TimeUtils.millis();\n\n\t\t// Crea el log\n\t\tsoundLog.soundInstance = instance;\n\t\tsoundLog.soundId = contenido.resourceId;\n\t\tfor (Categorias categoria : contenido.categorias) {\n\t\t\tsoundLog.categorias.add(categoria);\n\t\t}\n\t\tsoundLog.trialInstance = trial.log.trialInstance;\n\t\tsoundLog.levelInstance = trial.log.levelInstance;\n\t\tsoundLog.sessionInstance = trial.log.sessionId;\n\t\tsoundLog.trialId = trial.Id;\n\t\tif (trial.jsonTrial.modo == TIPOdeTRIAL.TEST) {\n\t\t\tif (trial.stimuliBox.contenido == contenido) {\n\t\t\t\tsoundLog.fromStimuli = true;\n\n\t\t\t} else {\n\t\t\t\tsoundLog.fromStimuli = false;\n\t\t\t}\n\t\t} else {\n\t\t\tsoundLog.fromStimuli = false;\n\t\t}\n\t\tsoundLog.tipoDeTrial = trial.jsonTrial.modo;\n\t\tsoundLog.numberOfLoop = loopsNumber;\n\t\t//soundLog.startTimeSinceTrial = timeInTrial;\n\t\tsoundLog.numberOfSoundInTrial = secuenceId.size;\n\t\tsoundLog.soundSecuenceInTrial = new Array<Integer>(secuenceId);\n\n\t\tlong idsonido;\n\t\t// Espera a q se cargue el recurso (no se porque esto funciona pero lo saque de internet)\n\t\twhile ((idsonido = sound.play(0)) == -1) {\n\t\t\tlong t = TimeUtils.nanoTime();\n\t\t\twhile (TimeUtils.nanoTime() - t < 50000000)\n\t\t\t\t;\n\t\t}\n\t\tsound.play();\n\t\tthis.running = true;\n\t}", "public void setId_joueur(int id_joueur)\r\n/* */ {\r\n/* 50 */ this.id_joueur = id_joueur;\r\n/* */ }", "public void setVidas (int vidas)\r\n\t{\r\n\t\tthis.vidas= vidas;\r\n\t}", "public Video getVideoById(Long id) {\n log.info(\"Retrieved video with id \" + id);\n return videoRepository.findById(id)\n .orElseThrow(\n () -> new IllegalArgumentException(MessageFormat.format(\"Video with id {0} not found\", id)\n )\n );\n }", "private void setVideo(){\n /* if(detailsBean==null){\n showToast(\"没有获取到信息\");\n return;\n }\n UserManager.getInstance().setDetailsBean(detailsBean);\n upCallShowSetVideoData = new UpCallShowSetVideoData();\n upCallShowSetVideoData.smobile = Preferences.getString(Preferences.UserMobile,null);\n upCallShowSetVideoData.iringid = detailsBean.iringid;\n if (callShowSetVideoProtocol == null) {\n callShowSetVideoProtocol = new CallShowSetVideoProtocol(null, upCallShowSetVideoData, handler);\n callShowSetVideoProtocol.showWaitDialog();\n }\n callShowSetVideoProtocol.stratDownloadThread(null, ServiceUri.Spcl, upCallShowSetVideoData, handler,true);*/\n }", "public static ArrayList<Vkladi> idPoiskVkladi() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint i = 0;\r\n\t\tScanner n = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Vvedite Id\");\r\n\t\tint t = n.nextInt();\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\t\t\tif (vkla.getId() == t) {\r\n\t\t\t\tfoundVkladi.add(vkla);\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn foundVkladi;\r\n\t}", "private void getVideo() {\n // create the url\n String temp = movie.getId().toString();\n String url = API_BASE_URL+\"/movie/\"+temp+\"/videos\";\n // set the request parameters\n RequestParams params = new RequestParams();\n params.put(API_KEY_PARAM, getString(R.string.api_key)); // Always needs API key\n // request a GET response expecting a JSON object response\n\n client.get(url,params, new JsonHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, JSONObject response) {\n // load the results into movies list\n\n try {\n JSONArray results = response.getJSONArray(\"results\");\n JSONObject curMovie = results.getJSONObject(0);\n key = curMovie.getString(\"key\");\n\n } catch (JSONException e) {\n logError(\"Failed to parse play_video endpoint\", e, true);\n }\n\n\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, String responseString, Throwable throwable) {\n logError(\"Failed to get data from Now_playing endpoint\", throwable, true);\n }\n });\n\n }", "public static PolovniAutomobili read(int id) {\n PolovniAutomobili s = null;\n try {\n CONNECTION = DriverManager.getConnection(URL, USERNAME, PASSWORD);\n String query = \"SELECT * FROM polovni WHERE id = ?\";\n try (PreparedStatement ps = CONNECTION.prepareStatement(query)) {\n ps.setInt(1, id);\n ResultSet result = ps.executeQuery();\n if (result.next()) {\n s = new PolovniAutomobili(result.getString(\"imgUrl\"), result.getString(\"naziv\"), result.getInt(\"godiste\"), result.getInt(\"cena\"), result.getString(\"url\"));\n }\n CONNECTION.close();\n }\n } catch (SQLException ex) {\n System.out.println(\"MySql Connection error...\");\n Logger.getLogger(PolovniFunctions.class.getName()).log(Level.SEVERE, null, ex);\n return null;\n }\n return s;\n }", "int getSrcId();", "int getSrcId();", "public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n StartVRApp.startVR(getApplicationContext(),\n videos.get(position).getName(),\n videos.get(position).getLink(),\n videos.get(position).getW(),\n videos.get(position).getH(),\n videos.get(position).getTiling(),\n videos.get(position).getDynamicEditingFN(),\n preferences);\n }", "@GET(\"movie/{id}\")\n Call<PersonagemResponse> getMovieDetails(@Path(\"id\") int id, @Query(\"api_key\") String apiKey);", "public String id2placa(String lst_id) {\n \n ArrayList<Movil> lst_movil = MovilBD.select();\n String arr_id[] = lst_id.split(\",\");\n String lst_placa = \"\";\n \n for (String id : arr_id) { \n for (Movil m : lst_movil) {\n String id_m = \"\" + m.getId();\n if (id_m.equals(id)) {\n String placa = \"'\" + m.getPlaca() + \"'\";\n lst_placa += (lst_placa == \"\") ? placa : \",\" + placa;\n break;\n }\n }\n }\n \n return lst_placa;\n }", "@Override\n\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t}", "public Result viaje_edit(Long id){\n \n Viaje viaje=Viaje.find.byId(id);\n List<Cabezal> cabezales = Cabezal.find.where().eq(\"activo\",true).findList();\n List<Cliente> clientes = Cliente.find.where().eq(\"activo\",true).findList();\n List<Motorista> motoristas = Motorista.find.where().eq(\"activo\",true).findList();\n \n if(viaje==null){\n return redirect(routes.LogisticaController.viajes());\n }\n\n return ok(viaje_edit.render(viaje,cabezales,motoristas,clientes));\n\n }", "public String getInoId();", "public void clicProgramme(final ADiffusion movie, int imageOrWeb) {\n final Dialog dialog = new Dialog(MainActivity.this);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialogbox);\n //dialog.setTitle(\"Programme\");\n\n\n // set the custom dialog components - text, image and button\n TextView text = (TextView) dialog.findViewById(R.id.titredialogbox);\n text.setText(movie.getTitre());\n\n WebView webview = (WebView) dialog.findViewById(R.id.webview);\n webview.setVisibility(View.INVISIBLE);\n final ImageView image = (ImageView) dialog.findViewById(R.id.imagedialogbox);\n image.setVisibility(View.VISIBLE);\n Picasso.with(getApplicationContext()).load(movie.getPhoto()).into(image);\n final String url = movie.getUrlDiff();\n final String titre = movie.getTitre();\n\n Button dialogButton = (Button) dialog.findViewById(R.id.dialogButtonClose);\n // if button is clicked, close the custom dialog\n dialogButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dialog.dismiss();\n }\n });\n\n ImageButton buttonimdb = (ImageButton) dialog.findViewById(R.id.buttonimdb);\n buttonimdb.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ImageView image = (ImageView) dialog.findViewById(R.id.imagedialogbox);\n image.setVisibility(View.INVISIBLE);\n WebView webview = (WebView) dialog.findViewById(R.id.webview);\n webview.setVisibility(View.VISIBLE);\n webview.setWebViewClient(new WebViewClient());\n webview.getSettings().setJavaScriptEnabled(true);\n webview.loadUrl(TV7JAPI.ENTETE_IMDB+titre);\n }\n });\n\n ImageButton buttont7j = (ImageButton) dialog.findViewById(R.id.buttont7j);\n buttont7j.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ImageView image = (ImageView) dialog.findViewById(R.id.imagedialogbox);\n image.setVisibility(View.INVISIBLE);\n WebView webview = (WebView) dialog.findViewById(R.id.webview);\n webview.setVisibility(View.VISIBLE);\n webview.setWebViewClient(new WebViewClient());\n webview.getSettings().setJavaScriptEnabled(true);\n webview.loadUrl(TV7JAPI.ENTETE_TV7+url);\n }\n });\n\n ImageButton buttontelerama = (ImageButton) dialog.findViewById(R.id.buttontelerama);\n buttontelerama.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n ImageView image = (ImageView) dialog.findViewById(R.id.imagedialogbox);\n image.setVisibility(View.INVISIBLE);\n WebView webview = (WebView) dialog.findViewById(R.id.webview);\n webview.setVisibility(View.VISIBLE);\n webview.setWebViewClient(new WebViewClient());\n webview.getSettings().setJavaScriptEnabled(true);\n webview.loadUrl(TV7JAPI.ENTETE_TELERAMA+titre);\n }\n });\n\n\n dialog.show();\n\n }", "public void setIdLocacion(Integer idLocacion);", "public String traePostInicio(int id){\r\n String src = \"\";\r\n BD.cDatos sql = new BD.cDatos(bd);\r\n try{\r\n sql.conectar();\r\n ResultSet gatito = sql.consulta(\"call _traepostinicio(\"+id+\");\");\r\n while(gatito.next()){\r\n src += \"<div class=\\\"container \\\" data-regis='\"+gatito.getString(\"idCuenta\")+\"'>\";\r\n //src += \"<div>\";\r\n \r\n \r\n src += \"<span id='spName' onclick='verPerfil(this)' >\"+gatito.getString(\"usuario\")+\"</span><br /><br />\";\r\n src+= \"<span id='spDate'>\"+gatito.getString(\"fecha\")+\"</span><br />\";\r\n src += /*<span id='imgSrc'>*/\"<img id='imgUsr' src=\\\"\"+gatito.getString(\"foto\")+\"\\\" ><br />\";\r\n src += \"<span id='spCateg'>Categoría: \"+gatito.getString(\"interes\")+\"</span>\";\r\n \r\n \r\n \r\n src += \"<span id='spTit'>\"+gatito.getString(\"titulo\")+\"</span><br />\";\r\n src += \"<span id='contPost'>\"+gatito.getString(\"texto\")+\"</span><br />\";\r\n if(!reformat(gatito.getString(\"imagenpost\")).isEmpty())src += \"<img id='imgPost' width=200 height=200 src=\\\"\"+gatito.getString(\"imagenpost\")+\"\\\" ><br /><span id='cabImg'>\"+gatito.getString(\"cabeceraimagenpost\")+\"</span><br />\"; //+gatito.getString(\"cabeceraaudiopost\")+\r\n \r\n if(!reformat(gatito.getString(\"audiopost\")).isEmpty())src += \"<span id='cabAudio'>\" + gatito.getString(\"cabeceraaudiopost\") + \"</span><br /><a id='audio' href=\\\"\"+gatito.getString(\"audiopost\")+\"\\\" download=\\\"\"+FilenameUtils.getName(gatito.getString(\"cabeceraaudiopost\"))+\"\\\"><button class='seguir' >Descargar archivo</button></a>\";\r\n //src += \"<br /><button id='verPerfil' class='seguir' onclick='verPerfil(this)' >Ver perfil</button>\";\r\n \r\n src += \"</div><br /><br />\";\r\n }\r\n }catch(Exception e){\r\n StringWriter sw = new StringWriter();\r\n PrintWriter pw = new PrintWriter(sw);\r\n e.printStackTrace(pw);\r\n this.error = sw.toString();\r\n }\r\n return src;\r\n }", "public void leerPlanDieta(int id_paciente);", "private static void idVorhanden() {\n\t\tLinkedHashSet<String> genre = new LinkedHashSet<String>();\t\t\t// benötigt, um duplikate von genres zu entfernen\n\t\tLinkedHashSet<String> darsteller = new LinkedHashSet<String>();\t\t// benötigt, um duplikate von darstellern zu entfernen\n\t\tString kinofilm = \"\";\t\t\t\t\t\t\t\t\t\t\t\t// benötigt für die Ausgabe des Filmtitels und Jahr\n\t\t\n\t\tsetSql(\"SELECT g.GENRE, m.TITLE, m.YEAR, mc.CHARACTER, p.NAME from Movie m JOIN MOVgen MG ON MG.MOVIEID = M.MOVIEID right JOIN GENRE G ON MG.GENREID = G.GENREID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tright JOIN MOVIECHARACTER MC ON M.MOVIEID = MC.MOVIEID JOIN PERSON P ON MC.PERSONID = P.PERSONID\\n\"\n\t\t\t\t\t+ \"\t\t\t\tWHERE M.MOVIEID = \" + movieID);\t// SQL Abfrage, um Genre, Title, Year, Character und Name eines Films zu bekommen\n\t\t\n\t\tsqlAbfrage();\t\t\t\t\t\t\t\t\t// SQL Abfrage ausführen und Ergebnis im ResultSet speichern\n\t\t\n\t\ttry {\n\t\t\n\t\t\tif(!rs.next()) {\t\t\t\t\t\t\t// prüfe, ob das ResultSet leer ist\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"MovieID ungültig. Bitte eine der folgenden MovieID's angeben: \"); // Meldung ausgeben, dass ID ungültig ist\n\t\t\t\tidProblem();\t\t\t\t\t\t\t// wenn movieID nicht vorhanden, führe idProblem() aus, um mögliche Filme anzuzeigen\n\t\t\t} else {\n\t\t\t\trs.isBeforeFirst();\t\t\t\t\t\t// Durch die if-Abfrage springt der Cursor des ResultSets einen weiter und muss zurück auf die erste Stelle\n\t\t\t\twhile (rs.next()) {\t\t\t\t\t\t// Zeilenweises durchgehen des ResultSets \"rs\"\n\t\t\t\t\t/*\n\t\t\t\t\t * Aufbau des ResultSets \"rs\":\n\t\t\t\t\t * eine oder mehrere Zeilen mit folgenden Spalten:\n\t\t\t\t\t * GENRE | TITLE | YEAR | CHARACTER | NAME\n\t\t\t\t\t * (1) (2) (3) (4) (5)\n\t\t\t\t\t */\n\t\t\t\t\tgenre.add(rs.getString(1));\t\t\t\t\t\t\t\t\t\t\t// speichern und entfernen der Duplikate der Genres in \"genre\"\n\t\t\t\t\tkinofilm = (rs.getString(2) + \" (\" + rs.getString(3) + \")\");\t\t// Speichern des Filmtitels und des Jahrs in \"kinolfilm\"\n\t\t\t\t\tdarsteller.add(rs.getString(4) + \": \" + rs.getString(5));\t\t\t// speichern und entfernen der Duplikate der Darsteller in \"darsteller\"\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/*\n\t\t\t\t * Zur besseres Ausgabe, werden die LinkedHashSets in ArrayLists übertragen\n\t\t\t\t * Grund: Es ist nicht möglich auf einzelne, bestimmte Elemente des HashSets zuzugreifen.\n\t\t\t\t * Bedeutet: HashSet.get(2) existiert nicht, ArrayList.get(2) existiert.\n\t\t\t\t */\n\t\t\t\tArrayList<String> genreArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : genre) {\n\t\t\t\t\t\tgenreArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\tArrayList<String> darstellerArrayList = new ArrayList<String>();\n\t\t\t\t\tfor (String s : darsteller) {\n\t\t\t\t\t\tdarstellerArrayList.add(s);\n\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t * Ausgabe der Kinofilm Daten nach vorgegebenen Format:\n\t\t\t\t\t\t\t * \n\t\t\t\t\t\t\t * Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\t * Genre: ... | ... | ..\n\t\t\t\t\t\t\t * Darsteller:\n\t\t\t\t\t\t\t * Character: Name\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Kinofilme: \" + kinofilm);\t\t// Ausgabe: Kinofilm: Filmtitel (Year)\n\t\t\t\t\t\t\tSystem.out.print(\"Genre: \" + genreArrayList.get(0)); // Ausgabe des ersten Genres, vermeidung des Zaunpfahlproblems\n\n\t\t\t\t\t\t\tfor (int i = 1; i < genreArrayList.size(); i++) {\t\t// Ausgabe weiterer Genres, solange es weitere Einträge in\t\n\t\t\t\t\t\t\t\tSystem.out.print(\" | \" + genreArrayList.get(i)); \t// der ArrayList \"genreArrayList\" gibt\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tSystem.out.println();\t\t\t\t\t\t\t\t// erzeugt Leerzeile\n\t\t\t\t\t\t\tSystem.out.println(\"Darsteller:\");\t\t\t\t\t// Ausgabe: Darsteller:\n\t\t\t\t\t\t\tfor (int i = 0; i < darstellerArrayList.size(); i++) {\t// Ausgabe der Darsteller, solange es\n\t\t\t\t\t\t\t\tSystem.out.println(\" \" + darstellerArrayList.get(i));\t// Darsteller in der \"darstellerArrayList\" gibt\n\t\t\t\t\t\t\t}\t\t\t\n\t\t\t}\n\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\tSystem.out.println(e); // Ausgabe Fehlermeldung\n\t\t}\n\t}", "public void RegresarSancion(View view){\n if(posicion >= 1){//Verificamos que no retroceda mas caciones de las que hay\n if(vector_mp[posicion].isPlaying()){//si la cancion se esta reproduciendo\n vector_mp[posicion].stop();//paramos la cancion\n\n //colocamos las canciones y posiciones ya que el metodo stop las vacio\n vector_mp[0] = MediaPlayer.create(this, R.raw.barrio);\n vector_mp[1] = MediaPlayer.create(this, R.raw.desesperado);\n vector_mp[2] = MediaPlayer.create(this, R.raw.encerrado);\n posicion--;//Decrementa una posicion para recorrer el vector hacia atras\n\n //Cambiamos las portadas\n if(posicion == 0){\n iv.setImageResource(R.drawable.portada1);;\n } else if(posicion == 1){\n iv.setImageResource(R.drawable.portada2);\n } else if(posicion == 2){\n iv.setImageResource(R.drawable.portada3);\n }\n\n vector_mp[posicion].start();//Reproduce la cancion a donde llego\n } else{\n posicion--;//Decrementa para recorrer el vector\n\n //Cambiasmos las portadas\n if(posicion == 0){\n iv.setImageResource(R.drawable.portada1);;\n } else if(posicion == 1){\n iv.setImageResource(R.drawable.portada2);\n } else if(posicion == 2){\n iv.setImageResource(R.drawable.portada3);\n }\n }\n\n } else{\n //Si nuestro inidice posicion ya recorrio el vector indicara que no hay mas canciones y asi evitar un desbordamiento de memoria\n Toast.makeText(this, \"No hay mas canciones\", Toast.LENGTH_SHORT).show();\n }\n }", "private void setupRemoteVideo(int uid) {\n int count = mRemoteContainer.getChildCount();\n View view = null;\n for (int i = 0; i < count; i++){\n View v = mRemoteContainer.getChildAt(i);\n if (v.getTag() instanceof Integer && ((int) v.getTag()) == uid) {\n view = v;\n }\n }\n\n if (view != null) {\n return;\n }\n\n mRemoteView = RtcEngine.CreateRendererView(getBaseContext());\n mRemoteContainer.addView(mRemoteView);\n mRtcEngine.setupRemoteVideo(new VideoCanvas(mRemoteView, VideoCanvas.RENDER_MODE_HIDDEN, uid));\n }", "public void playVideo() {\n }" ]
[ "0.6206375", "0.60931134", "0.6053025", "0.5919079", "0.5828608", "0.58245516", "0.58206505", "0.5796192", "0.5789724", "0.5786047", "0.5771847", "0.5716012", "0.5701352", "0.56975305", "0.56467444", "0.5646181", "0.5644238", "0.5626309", "0.56194717", "0.56054515", "0.55780214", "0.5557489", "0.5553256", "0.55436206", "0.5540565", "0.55167574", "0.5475502", "0.54710627", "0.54628515", "0.54625714", "0.54505265", "0.5435035", "0.542525", "0.54188526", "0.54173225", "0.541089", "0.5389239", "0.5380025", "0.53790915", "0.5372869", "0.53629816", "0.53532714", "0.53516066", "0.5348686", "0.53376794", "0.5334115", "0.5329925", "0.5326762", "0.531778", "0.5317469", "0.5316922", "0.53151536", "0.53123116", "0.5307108", "0.52994037", "0.52920675", "0.5290279", "0.52900916", "0.52858204", "0.52844065", "0.5277305", "0.52762353", "0.52737963", "0.5267336", "0.5254975", "0.5254494", "0.52505887", "0.52502835", "0.5239094", "0.5229484", "0.52181804", "0.5217529", "0.52134913", "0.52100766", "0.5207938", "0.5207938", "0.519183", "0.51759875", "0.5172818", "0.5171433", "0.51713365", "0.51633674", "0.5158978", "0.5157881", "0.51500326", "0.51500326", "0.5148498", "0.5148331", "0.514752", "0.51474375", "0.5144369", "0.51392573", "0.513416", "0.5132479", "0.513017", "0.5129508", "0.5128932", "0.51259595", "0.5124711", "0.512126" ]
0.63022166
0
Restitusce una lista di videogiochi avente come nome la stringa passata come argomento
List<Videogioco> retriveByNome(String nome);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static VideoHolder getAllVideo(String ligne) throws IOException {\n String[] vid = ligne.split(\" \");\n VideoHolder videoHolder = new VideoHolder();\n for (int i = 0; i < vid.length; i++) {\n videoHolder.add(new Video(i, Integer.parseInt(vid[i])));\n }\n return videoHolder;\n }", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "public ArrayList<String> getAllVideosName() {\n\t\tArrayList<String> videoList = new ArrayList<String>();\n\n\t\tString selectQuery = \"SELECT * FROM \" + VivaFrame.TABLE_NAME;\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tString videoname = new String();\n\t\t\t\tvideoname = cursor.getString(2);\n\t\t\t\t// Adding to list\n\t\t\t\tvideoList.add(videoname);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\treturn videoList;\n\t}", "private void listFileMyVideo() throws JSONException {\n\n listFileMyVideo = new JSONArray();\n\n int count = countFileMyVideo();\n\n for (int i = 0; count > i; i++) {\n\n JSONObject obj = new JSONObject();\n obj.put(\"name\", get_FileName(getPathMyVideo(), i));\n obj.put(\"path\", get_FilePath(getPathMyVideo(), i));\n\n listFileMyVideo.put(obj);\n }\n }", "public TiendaVideojuegos(String datos)\n {\n listaDeVideojuegos = new ArrayList<Videojuegos>();\n codVideojuego = 0;\n try{\n File archivo = new File(datos);\n Scanner sc = new Scanner(archivo);\n while (sc.hasNextLine()) {\n String[] datosVideojuego = sc.nextLine().split(\"#\");\n String titulo = datosVideojuego[0];\n String plataforma = datosVideojuego[1];\n int dia = Integer.parseInt(datosVideojuego[2]);\n int mes = Integer.parseInt(datosVideojuego[3]);\n int anyo = Integer.parseInt(datosVideojuego[4]);\n addVideojuego(titulo, dia, mes, anyo, plataforma);\n }\n \n sc.close();\n }\n catch (FileNotFoundException a) {\n a.printStackTrace();\n }\n \n }", "public void setVideourl(String videourl) {\n this.videourl = videourl;\n }", "public String[] getVideoDevicesList();", "void showWaitingPlayerList(List<String> waitingPlayerUsernames);", "private static void getInfos(String ligne) throws IOException {\n String[] info = ligne.split(\" \");\n nbVideo = Integer.parseInt(info[0]);\n nbEndpoint = Integer.parseInt(info[1]);\n nbDescri = Integer.parseInt(info[2]);\n nbCache = Integer.parseInt(info[3]);\n tailleCache = Integer.parseInt(info[4]);\n }", "void setTitleUnitSound(List<String> listTitle);", "private String[] readPlayers(Map<String,Object> sessionAttribute){\n Object spielerNamen2 = sessionAttribute.get(Parameter.SPIELER_NAMEN);\n System.out.println(spielerNamen2.toString());\n String convertSpielerNamen = spielerNamen2.toString();\n convertSpielerNamen = convertSpielerNamen.replace(\"[\", \"\");\n convertSpielerNamen = convertSpielerNamen.replace(\"]\", \"\");\n return convertSpielerNamen.split(\", \");\n }", "public Video(String nombre) {\n super(nombre);\n }", "public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }", "Builder addVideo(String value);", "public String showPlayListPublic(){\n String playListPublic = \"\";\n int posicion = 0;\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n if(thePlayLists[i] instanceof PublicP){\n playListPublic += \"[\"+(posicion+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n posicion++;\n }\n }\n }\n return playListPublic;\n }", "public void roomMems(){\r\n\tString[] names ={\"vivek\", \"satish\", \"neeraj\", \"Raju\", \"Dilip\"};\r\n\r\n\tfor(String i:names){ \r\n\t\tSystem.out.println(names[3]);\r\n\t}\r\n\t}", "public String autoName(String currentSearch) {\n int i = 0;\n String currentName = currentSearch + i;\n while (videoExists(currentName)){\n i++;\n currentName = currentSearch + i;\n }\n return currentName;\n }", "private void initPlayerNames() {\n\t\tlb_player1.setText(playerNames[0]);\n\t\tlb_player2.setText(playerNames[1]);\n\t\tlb_player3.setText(playerNames[2]);\n\t\tlb_player4.setText(playerNames[3]);\n\t}", "public static void main(String[] args) {\n\t\t\t\tArrayList<String> rezultat = new ArrayList<String>();\r\n\r\n\t\t\t\tPisiCitaj pisiCitaj = new PisiCitaj();\r\n\t\t\t\tArrayList<String> procitanFajl = pisiCitaj.procitajFajl(\"src\\\\konverzijaFajlova1709\\\\fajlovi\\\\Primer.sub\");\r\n\t\t\t\tint slucaj = 1;\r\n\r\n\t\t\t\tswitch (slucaj) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tMicroDVD micro0 = new MicroDVD();\r\n\t\t\t\t\trezultat = micro0.ulazMPlayerSUB(procitanFajl);\r\n\t\t\t\t\tmicro0.ispisiFajl(args[2], rezultat);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tSubRipSRT SubRip1 = new SubRipSRT();\r\n\t\t\t\t\trezultat = SubRip1.ulazMPlayerSUB(procitanFajl);\r\n\t\t\t\t\tSubRip1.ispisiFajl(\"src\\\\konverzijaFajlova1709\\\\fajlovi\\\\MplayerToSubRip.srt\", rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tMicroDVD micro2 = new MicroDVD();\r\n\t\t\t\t\trezultat = micro2.ulazSubRipSRT(procitanFajl);\r\n\t\t\t\t\tmicro2.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tMPlayerSUB mPlayer3 = new MPlayerSUB();\r\n\t\t\t\t\trezultat = mPlayer3.ulazSubRipSRT(procitanFajl);\r\n\t\t\t\t\tmPlayer3.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tSubRipSRT SubRip4 = new SubRipSRT();\r\n\t\t\t\t\trezultat = SubRip4.ulazMicroDVDtxt(procitanFajl);\r\n//\t\t\t\t\tSubRip4.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tMPlayerSUB mPlayer5 = new MPlayerSUB();\r\n\t\t\t\t\trezultat = mPlayer5.ulazMicroDVDtxt(procitanFajl);\r\n//\t\t\t\t\tmPlayer5.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "List<Videogioco> retriveByGenere(String genere);", "MovieVideo getMovieVideoByVideoid(String videoid);", "public String[] list(String text, String von, String bis) throws RemoteException;", "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(video);\n\t\tbuffer.append(\" [\");\n\t\tbuffer.append(numOwned);\n\t\tbuffer.append(\",\");\n\t\tbuffer.append(numOut);\n\t\tbuffer.append(\",\");\n\t\tbuffer.append(numRentals);\n\t\tbuffer.append(\"]\");\n\t\treturn buffer.toString();\n\t}", "public static List<String> getFilms(String acteur) {\n\t\tString movie = \"\";\n\t\tList<String> movies_list = new ArrayList<String>();\n\t\tString string_query = \"SELECT $title WHERE {\\n $film rdf:type dbo:Film;\\n\" + \n \" foaf:name $title;\\n dbo:starring $acteur.\\n\" + \n \"$acteur foaf:name \\\"ACTOR_NAME\\\"@en\\n}\".replaceAll(\"ACTOR_NAME\",acteur);\n\t\t\n\n ParameterizedSparqlString qs = new ParameterizedSparqlString(PREFIX +string_query);\n QueryExecution exec = QueryExecutionFactory.sparqlService(SERVICE, qs.asQuery());\n ResultSet results = exec.execSelect();\n \n while (results.hasNext()) {\n \tQuerySolution solution = results.nextSolution();\n \tmovie = solution.getLiteral(\"?title\").toString().replace(\"@en\", \"\");\n \tmovies_list.add(movie);\n }\n\t\t\n\t\treturn movies_list;\n\t}", "@Override\n @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_video_dialog);\n\n Bundle bundle = getArguments();\n videos_name = bundle.getStringArrayList(\"name\");\n videos_key = bundle.getStringArrayList(\"key\");\n\n\n CharSequence[] cs = videos_name.toArray(new CharSequence[videos_name.size()]);\n\n builder.setItems(cs, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri video_uri = UtilityMovieData.buildUriForTheVideo(videos_key.get(which));\n Intent intent = new Intent(Intent.ACTION_VIEW, video_uri);\n startActivity(intent);\n\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public static void main(String[] args) {\n\t\tRede plataforma = new Rede(\"Comeu Bola no Estudo\");\r\n\t\tInscrito Pessoal = new Inscrito(\"Pessoal,\");\r\n\t\tInscrito Academica = new Inscrito(\"Academica,\");\r\n\t\tInscrito Dani = new Inscrito(\"Dani,\");\r\n\t\tplataforma.subscribeToRede(Pessoal);\r\n\t\tplataforma.subscribeToRede(Academica);\r\n\t\tplataforma.subscribeToRede(Dani);\r\n\t\t\r\n\t\tplataforma.addVideo(\" 'Chorando no exame de POO!'\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "protected abstract String[] getFrameNames();", "private void getMovieIDs(String name) {\n\n Thread t1 = new Thread(new Runnable() {\n @Override\n public void run() {\n extractIDsfromJson(NetworkUtils.getMovieIDasJson(name));\n }\n });\n t1.start();\n\n\n }", "public String getVideourl() {\n return videourl;\n }", "public String showPlayList(){\n String dataPlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n thePlayLists[i].uptadeDurationFormat(thePlayLists[i].uptadeDuration());\n thePlayLists[i].changeGender(thePlayLists[i].uptadeGender());\n dataPlayList += thePlayLists[i].showDatePlayList();\n }\n }\n return dataPlayList;\n }", "private void getPlayertName() {\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public Video getVideoByName(String name) {\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\t/*\n\t\t * Cursor cursor = db.query(TABLE_CONTACTS, new String[] { KEY_ID,\n\t\t * KEY_NAME, KEY_PH_NO }, KEY_ID + \"=?\", new String[] {\n\t\t * String.valueOf(id) }, null, null, null, null);\n\t\t */\n\t\tCursor cursor = db.query(VivaFrame.TABLE_NAME, new String[] {\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_ID, VivaFrame.COLUMN_NAME_VI_FOLDER,\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_NAME, VivaFrame.COLUMN_NAME_VI_URL },\n\t\t\t\tVivaFrame.COLUMN_NAME_VI_NAME + \"=?\",\n\t\t\t\tnew String[] { String.valueOf(name) }, null, null, null, null);\n\t\tif (cursor != null)\n\t\t\tcursor.moveToFirst();\n\n\t\tVideo video = new Video(Integer.parseInt(cursor.getString(0)),\n\t\t\t\tInteger.parseInt(cursor.getString(1)), cursor.getString(2),\n\t\t\t\tcursor.getString(3));\n\t\t// return contact\n\t\treturn video;\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}", "private String[] createNamesArray(){\n\t\t//TODO just test data\n\t\t/*\n\t\tfor(int i=0; i<20; i++){\n\t\t\tReplayData rd = new ReplayData(\"Game \" + i);\n\t\t\ttotalData.replays.add(rd);\n\t\t}*/\n\t\tString[] gameNames = new String[totalData.replays.size()];\n\t\tfor(int i =0; i<totalData.replays.size(); i++){\n\t\t\tgameNames[i] = totalData.replays.get(i).getName() + \" @ \" + totalData.replays.get(i).getDate();\n\t\t}\n\t\treturn gameNames;\n\t}", "public void videoSearchDownlodedObject(String removeVideoID){}", "@Override\n public String toString()\n {\n return \"Video: \" + videoTitle + \"\\nCreated By: \" + videoCreator;\n }", "public abstract List<String> getAllInstanceStrings(String params);", "public interface Namer {\n public String name(int number, VectorDescription pos, RotationDescription rot, int lx, int ly, int lz);\n }", "public void prepareList()\n {\n listImg = new ArrayList<Drawable>();\n for(int i=0;i<n;i++)\n {\n \ta.moveToPosition(i);\n \tString immagine = a.getString(0);\n \tCaricaImmagine caricaImmagineAsync = new CaricaImmagine();\n \t\tcaricaImmagineAsync.execute(new String[]{immagine});\n }\n }", "public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }", "public void agregarRobot(String nombre);", "public List<String> getimagenames() {\n List<String> arrimg=new ArrayList<String>();\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + TABLE_NAME +\" ORDER BY \" + POSITIONNO + \" ASC\" ,null);\n if (cursor.moveToFirst()) {\n while (!cursor.isAfterLast()) {\n String name = cursor.getString(cursor.getColumnIndex(IMGNAME));\n\n arrimg.add(name);\n cursor.moveToNext();\n }\n }\n\n return arrimg;\n }", "public void cambiarTitulo(int codVideojuego, String tituloNuevo)\n {\n if(codVideojuego>=0 && codVideojuego<=listaDeVideojuegos.size()) {\n Videojuegos Videojuego = listaDeVideojuegos.get(codVideojuego - 1);\n Videojuego.setTitulo(tituloNuevo);\n }\n else if(codVideojuego<=0 && codVideojuego>listaDeVideojuegos.size()){\n System.out.println(\"No hay videojuegos con ese codigo, introduce otro existente.\");\n }\n }", "@Override\n\t\t\tpublic void onLoadVideo(String result) {\n\t\t\t}", "public String mo1736b() {\n return \"video\";\n }", "@Override\n\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t}", "protected void DisplayVenueAndPitchNames()\n {\n TextView venueName = (TextView) findViewById(R.id.venueName);\n TextView pitchName = (TextView) findViewById(R.id.pitchName);\n venueName.setText(venueNameTitle);\n pitchName.setText(pitch.getPitchName());\n }", "public Playlist(String playListName){\n\tgenresList = new Genre[6];\n\tsongList = new Song[30];\n\tthis.playListName = playListName;\n\t}", "String getNewPlayerName();", "public String[] nombres(){\n return partida.nombres();\n }", "public void recordVideosName(){\n File file=new File(\"/sdcard/\",\"DateRecording.txt\");\n try {\n FileOutputStream fileOutputStream = new FileOutputStream(file,true);//追加方式打开\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter);\n bufferedWriter.write(videosName[0]+\" \"+videosName[1]+\" \"+videosName[2]+\" \"+videosName[3]+\" \"+videosName[4]+\" \"+videosName[5]+\"\\r\\n\");\n bufferedWriter.write(\"u_1 u_2 u_3\"+\"\\r\\n\");\n bufferedWriter.close();\n outputStreamWriter.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "@Override\n public void onResponse(Response<VideosResponse> response) {\n VideosResponse mResponse = response.body();\n ArrayList<VideosResult> results = (ArrayList<VideosResult>) mResponse.getResults();\n Bundle bundle = new Bundle();\n ArrayList<String> names = new ArrayList<String>();\n ArrayList<String> keys = new ArrayList<String>();\n for ( VideosResult result: results) {\n names.add(result.getName());\n keys.add(result.getKey());\n }\n bundle.putStringArrayList(\"name\", names);\n bundle.putStringArrayList(\"key\", keys);\n final AvailableTrailersFragment dialog = new AvailableTrailersFragment();\n dialog.setArguments(bundle);\n dialog.show(getActivity().getSupportFragmentManager(), \"Videos_name\");\n }", "@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(13)\n void media(\n java.lang.String p);", "public void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t int position, long id) {\n\t\t\t\t\t String text = (String) fileNames.get(position);\n\t\t\t\t\t Intent intent = new Intent(); \n\t\t\t\t\t intent.setAction(android.content.Intent.ACTION_VIEW); \n\t\t\t\t\t File file = new File(getExternalFilesDir(null) + \"/\" + codeLearnLessons.getItemAtPosition(position).toString()); \n\t\t\t\t\t intent.setDataAndType(Uri.fromFile(file), \"video/*\"); \n\t\t\t\t\t startActivity(intent); \n\t\t\t\t }", "void showWaitingRoom(ArrayList<String> usernames);", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "public void pararPersonaje(char letra) {\n switch (letra) {\n case 'd':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Derecha\";//Guarda en la variable jugadorVista hacia donde miramos\n }\n break;\n case 's':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Abajo\";\n }\n break;\n case 'a':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Izquierda\";\n }\n break;\n case 'w':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Arriba\";\n }\n break;\n }\n\n }", "@Override\n public String getDescription() {\n return \"Just Videos\";\n }", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "public static void main(String[] args) {\n String asNombres[]=new String[TAMA];\r\n //CAPTURAR 5 NNOMBRES \r\n Scanner sCaptu = new Scanner (System.in);\r\n for (int i = 0; i < TAMA; i++) {\r\n System.out.println(\"Tu nombre :\");\r\n asNombres[i]=sCaptu.nextLine();\r\n }\r\n for (String asNombre : asNombres) {\r\n System.out.println(\"Nombre: \" + asNombre);\r\n \r\n }\r\n //CREAR UNA COPIA DEL ARREGLO\r\n /*String asCopia[]=asNombre;//Esto no funciona\r\n asNombre[0]=\"HOLA MUNDO\";\r\n System.out.println(asCopia[0]);*/\r\n \r\n String asCopia[]=new String[TAMA];\r\n for (int i = 0; i < TAMA; i++) {\r\n asCopia[i]=asNombres[i];\r\n \r\n }\r\n asNombres[0]=\"HOLA MUNDO\";\r\n System.out.println(\"Nombre = \" + asNombres[0]);\r\n System.out.println(\"Copia = \" + asCopia[0]);\r\n }", "private String getVideofilename() {\n String mFileName;\n String timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(new Date());\n String audioFileName = \"mp4_\" + timeStamp + \"_\";\n\n // Save a file: path for use with ACTION_VIEW intents\n mFileName = getExternalFilesDir(\"DIRECTORY_VIDEO\").getAbsolutePath();\n mFileName += \"/\" +audioFileName + \".mp4\";\n return mFileName;\n }", "public List<VideoFile> loadChannelNames(int broker){\n //open connection\n Socket connection = null;\n try {\n connection = new Socket(IP, broker);\n\n //request brokers list\n ObjectOutputStream out = new ObjectOutputStream(connection.getOutputStream());\n out.writeObject(\"INIT\");\n out.flush();\n\n //get answer from broker\n ObjectInputStream in = new ObjectInputStream(connection.getInputStream());\n String message = (String) in.readObject();\n //broker will send\n if(message.equals(\"FAILURE\")){\n Extras.printError(\"CONSUMER: tried to Init without publishers\");\n }else if(message.equals(\"ACCEPT\")){\n ArrayList< String> list = (ArrayList<String>) in.readObject();\n for( String s : list){\n publisherToBrokers.put(s,broker);\n }\n getBrokers(in);\n }\n } catch(IOException e){\n Extras.printError(\"CONSUMER: LOAD: ERROR: Could not get streams\");\n } catch (ClassNotFoundException e){\n Extras.printError(\"CONSUMER: LOAD: ERROR: Could not cast Object to String\");\n }\n\n disconnect(connection);\n return null;\n }", "public void getMutliParams(String name, Collection<String> list) {\n\t\tNodeList nodes = paramElem.getElementsByTagName(name);\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tElement elem = (Element) nodes.item(i);\n\t\t\tlist.add(getTextContent(elem));\n\t\t}\n\t}", "private void setdata() {\n stringArrayList = new ArrayList<>();\n stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955317188/hls/main.m3u8\");\n /*stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955657508/hls/main.m3u8\");*/\n /*stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955317188/hls/main.m3u8\");\n stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955657508/hls/main.m3u8\");*/\n /* stringArrayList.add(\"https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8\");*/\n /*stringArrayList.add(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8\");*/\n /* stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");\n stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");\n stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");*/\n }", "public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }", "public java.lang.String getVid() {\r\n return localVid;\r\n }", "public String vorschaubildFiltern(String quellcode){\r\n\t\tString bild = quellcode.substring((quellcode.indexOf(\"nivoSlider\") + 59), (quellcode.indexOf(\"slideshow-imagelink\") - 32));\r\n//\t\tSystem.out.println(bild);\r\n\r\n\t\treturn bild;\r\n\t}", "public interface LiveVideoAllCallBack extends VideoAllCallBack{\n //暂时保留standardVideo方法\n //点击了空白区域开始播放\n void onClickStartThumb(String url, Object... objects);\n\n //点击了播放中的空白区域\n void onClickBlank(String url, Object... objects);\n\n //点击了全屏播放中的空白区域\n void onClickBlankFullscreen(String url, Object... objects);\n}", "private String getPlayersInfo(List<LightPlayer> players, String name){\n StringBuilder stringBuilder = new StringBuilder();\n for (LightPlayer player : players){\n stringBuilder.append(player.getName());\n if (player.getName().equals(name)) {\n stringBuilder.append(\" (you)\");\n }\n\n stringBuilder\n .append(\"\\n\")\n .append(player.getColor().name())\n .append(\" \")\n .append(\"[\")\n .append(player.getColor().name().toCharArray()[0])\n .append(\"]\")\n .append(\"\\n\");\n\n if (player.getCard() != null) {\n stringBuilder.append(player.getCard().getName().name());\n }\n\n stringBuilder.append(\"\\n\\n\\n\");\n }\n\n return stringBuilder.toString();\n }", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "public void mostrarTurnos(String act, String sig);", "public static void main(String[] args) {\n\t\tString movies[] = new String[3];\n\t\t\n\n\t\t\tScanner scan = new Scanner(System.in);\n System.out.println(\"enter movie 1\");\n movies[0]= scan.nextLine();\n System.out.println(\"enter movie 2\");\n movies[1]= scan.nextLine();\n System.out.println(\"enter movie 3\");\n movies[2]= scan.nextLine();\n // System.out.printf(\"Enter movie %d\",i);\n for(int i=0; i<movies.length;i++)\n \t System.out.println(movies[i]);\n\t}", "@Override\n public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {\n txtName.setText(\"Playing: \" + getVideoName()[exoPlayerInstance.getCurrentWindowIndex()].toUpperCase());\n }", "public final String mo102948e() {\n return \"shoot-video\";\n }", "public void showPics(String s){\n\t\t\tString[] symbols = s.split(\"[ ]\");\n\t\t\tfor (int i = 0; i < symbols.length; i++){\n\t\t\t\t//System.out.println(symbols[i]);\n\t\t\t\tswitch (symbols[i]){\n\t\t\t\tcase \"B\": pics[0][0].setVisible(true); break;\n\t\t\t\tcase \"S\": pics[0][1].setVisible(true); break;\n\t\t\t\tcase \"G\": pics[0][2].setVisible(true); break;\n\t\t\t\tcase \"P\": pics[1][0].setVisible(true); break;\n\t\t\t\tcase \"R\": pics[1][1].setVisible(true); break;\n\t\t\t\tcase \"D\": pics[1][2].setVisible(true); break;\n\t\t\t\tcase \"H1\":\n\t\t\t\t\tpics[2][0].setIcon(imageH1[currentImageH1]);\n\t\t\t\t\tif(!h1.isOutOfGame()) pics[2][0].setVisible(true);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"W\": pics[2][1].setVisible(true); break;\n\t\t\t\tcase \"H2\":\n\t\t\t\t\tpics[2][2].setIcon(imageH2[currentImageH2]);\n\t\t\t\t\tif(!h2.isOutOfGame()) pics[2][2].setVisible(true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic List<TVA> rechercherParRequeteNommee(String requeteNommee) {\n\t\treturn null;\r\n\t}", "public tuna_Ep17(String name){ \t// Constructor added in Episode 17\r\n\t\tgirlName = name;\r\n\t}", "@Override\n public void playNote(int index){\n for (int a = 0; a <3; a++){\n pStrings[index][a].pluck();\n }\n }", "public void NextGame(){\n partidaNum ++;\n current = current.getSiguiente();\n ListaDoble partida = (ListaDoble) current.getDato();\n currentTurn = partida.getInicio();\n String turno = (String) currentTurn.getDato();\n String info[] = turno.split(\"#\");\n\n int infoIn = 4;\n for (int i = 0; i < 10; i++, infoIn += 1) {\n label_list[i].setIcon(new ImageIcon(info[infoIn]));\n this.screen.add(label_list[i]);\n }\n HP.setText(\"HP: \"+info[2]);\n action.setText(\"Action: \"+info[1]);\n mana.setText(\"Mana: \"+info[3]);\n game.setText(\"Game \"+String.valueOf(partidaNum)+\", Turn \"+info[0]);\n\n VerifyButtons();\n\n }", "public PlayList[] addPlayList(String namePlayList){\n boolean space2 = false;\n for(int i = 0; i<MAX_PLAYLIST && !space2; i++){\n if(thePlayLists[i] == null){\n PlayList publicPlayList = new PublicP(namePlayList);\n thePlayLists[i] = publicPlayList;\n numPlayList++;\n space2 = true;\n }\n }\n return thePlayLists;\n }", "public void alquilarMultimediaAlSocio(){\n lector = new Scanner(System.in);\n int opcion = -1;\n int NIF = 0;\n int pedirElemento;\n String titulo;\n Socio socio;\n\n\n\n NIF = pedirNIF(); // pido el NIF por teclado\n\n if(tienda.exiteSocio(NIF)){ // Si exite, continuo\n socio = tienda.getSocioWithNIF(NIF); // Si exite el socio, busco en la tienda y lo asigno.\n if(!socio.isAlquilando()) { // si el socio no está actualmente alquilando, no continuo\n opcion = pedirElemento(); // Pido el elemento\n\n switch (opcion) {\n case 1:\n tienda.imprimirDatos(tienda.getPeliculas());\n System.out.println(\"Introduce el titulo de la pelicula que quieres: \");\n titulo = lector.nextLine();\n if (tienda.exitePelicula(titulo)) {\n\n tienda.alquilarPeliculaSocio(NIF, titulo);\n System.out.println(\"PELICULA ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite la pelicula \" + titulo + \".\");\n }\n\n\n break;\n case 2:\n tienda.imprimirDatos(tienda.getVideojuegos());\n System.out.println(\"Introduce el titulo del videojuego que quieres: \");\n titulo = lector.nextLine();\n if (tienda.existeVideojuego(titulo)) {\n\n tienda.alquilarVideojuegoSocio(NIF, titulo);\n System.out.println(\"VIDEOJUEGO ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite el videojuego \" + titulo + \".\");\n }\n break;\n default:\n break;\n }\n }else{\n System.out.println(\"El socio \" + socio.getNombre() + \" tiene recargos pendientes.\");\n }\n\n }else{\n System.out.println(\"El socio con NIF \" + NIF + \" no exite.\");\n }\n\n\n\n\n\n\n }", "public void listPictures()\r\n {\r\n int index = 0;\r\n while(index >=0 && index < pictures.size()) \r\n {\r\n String filename = pictures.get(index);\r\n System.out.println(index + \": \"+ filename);\r\n index++;\r\n }\r\n }", "public interface ConsValues {\n\n public String PATH = \"/storage/extSdCard/Videos/Others/灵梦和幽幽子的弹幕.mp4\";\n}", "public String id2placa(String lst_id) {\n \n ArrayList<Movil> lst_movil = MovilBD.select();\n String arr_id[] = lst_id.split(\",\");\n String lst_placa = \"\";\n \n for (String id : arr_id) { \n for (Movil m : lst_movil) {\n String id_m = \"\" + m.getId();\n if (id_m.equals(id)) {\n String placa = \"'\" + m.getPlaca() + \"'\";\n lst_placa += (lst_placa == \"\") ? placa : \",\" + placa;\n break;\n }\n }\n }\n \n return lst_placa;\n }", "public static void main(String args[]){\n ArrayList<String> heroes = new ArrayList<String>();\n heroes.add(\"ironman\");\n heroes.add(\"spider\");\n heroes.add(\"antman\");\n heroes.add(0,\"capt.america\");\n System.out.println(\"My super Hero : \"+heroes.get(0));\n \n }", "List<Videogioco> retriveByPiattaforma(String piattaforma);", "private void getPlayerNames(){\n players[0] = JOptionPane.showInputDialog(\"Please input the name for the first player\");\n players[1] = JOptionPane.showInputDialog(\"Please input the name for the second player\");\n }", "abstract public VideoDefinition createVideoDefinitionFromName(String name);", "@Override\n\tpublic void ingresarFicha(VideoJuego juego) {\n\t\t\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"dvd name\";\n\t}", "@SuppressWarnings(\"checkstyle:avoidinlineconditionals\")\n private static void setUpNameList() {\n List<String> names = new ArrayList<>();\n String verb;\n String noun;\n for (int i = 0; i < NUMBER_OF_NAMES; i++) {\n verb = GenerationHelper.randomElement(verbs);\n noun = GenerationHelper.randomElement(nouns);\n String taskName = verb;\n taskName += \"aeiou\".contains(noun.subSequence(0, 1)) ? \" an \" : \" a \";\n taskName += noun;\n names.add(Character.toUpperCase(taskName.charAt(0)) + taskName.substring(1));\n }\n taskNames = new String[names.size()];\n names.toArray(taskNames);\n }", "String getPlayerName();", "public java.lang.String getVideoName() {\n return videoName;\n }", "Filmes(String nome,String genero){\n\t\tthis.nome = nome;\n\t\tthis.genero = genero;\n\t}", "public void loadList(String name){\n }", "String getTextureName();", "List<Videoinfo> selectAll();", "public ArrayList<Resource> extractResourceListFromText(String rawText) {\n\n ArrayList<Resource> resourceList = new ArrayList<>();\n\n if (!TextUtils.isEmpty(rawText)) {\n\n /* Extraction of all video resource\n * First if text contains '<figure' get list of text from \"<figure\" to \"</figure>\"\n * Then if resource-type=\"video\" is in each figure text that means we need to extract it otherwise no action needed\n * Then split the figure string from 'comma' */\n if (rawText.contains(\"<figure\")) {\n\n ArrayList<String> listFigureVideo = getStringListFromHtmlText(rawText, \"<figure\", \"</figure>\");\n\n if (!listFigureVideo.isEmpty()) {\n\n for (int i = 0; i < listFigureVideo.size(); i++) {\n\n if (listFigureVideo.get(i).contains(\"resource-type=\\\"video\\\"\")) {\n\n String figureVideoString = listFigureVideo.get(i);\n ArrayList<String> commaSeparatedList = new ArrayList<>(Arrays.asList(figureVideoString.split(\",\")));\n\n for (int j = 0; j < commaSeparatedList.size(); j++) {\n\n String separatedText = commaSeparatedList.get(j);\n\n if (!separatedText.contains(\"displayResourceFullScreen\")\n && (separatedText.contains(\".youtube.com/\") || separatedText.contains(\"vimeo.com/\"))) {\n\n String resourceUrlVideo = separatedText;\n\n if (resourceUrlVideo.startsWith(\"&quot;\")) {\n resourceUrlVideo = resourceUrlVideo.replace(\"&quot;\", \"\");\n }\n if (resourceUrlVideo.endsWith(\"&quot;\")) {\n resourceUrlVideo = resourceUrlVideo.replace(\"&quot;\", \"\");\n }\n\n Resource resourceVideo = new Resource();\n resourceVideo.setUrl(resourceUrlVideo);\n resourceVideo.setUrlMain(resourceUrlVideo);\n resourceVideo.setResourceType(Resource.TYPE_RESOURCE_VIDEO);\n\n if (resourceUrlVideo.contains(\".youtube.com/\")) {\n resourceVideo.setType(mContext.getString(R.string.typeYouTubeVideo));\n } else if (resourceUrlVideo.contains(\"vimeo.com/\")) {\n resourceVideo.setType(mContext.getString(R.string.typeVimeoVideo));\n }\n\n if (listFigureVideo.get(i).contains(\"<img\")) {\n String resourceUrlSrc = getStringFromHtmlTextAfterTagRemoval(listFigureVideo.get(i), ConstantUtil.HTML_IMAGE_SRC_TAG, ConstantUtil.HTML_DOUBLE_QUOTE);\n resourceVideo.setUrlThumbnail(resourceUrlSrc);\n }\n\n resourceList.add(resourceVideo);\n\n /* First time we get our desired url of video, we breaks the loop;\n * since after this unnecessary url(s) might add */\n break;\n\n }\n }\n }\n }\n }\n\n\n }\n\n\n /*Extraction of all image resource*/\n ArrayList<String> list = getStringListFromHtmlText(rawText, ConstantUtil.HTML_IMAGE_START_TAG, ConstantUtil.HTML_END_TAG);\n\n if (!list.isEmpty()) {\n for (int i = 0; i < list.size(); i++) {\n\n if (!TextUtils.isEmpty(list.get(i)) && !list.get(i).contains(\"file:\")) {\n\n /*if list.get(i) contains resource-type=\"video\" then do not take\n that image since it is for video resource*/\n if (!list.get(i).contains(\"resource-type=\\\"video\\\"\")) {\n\n String resourceUrl = getStringFromHtmlTextAfterTagRemoval(list.get(i), ConstantUtil.HTML_IMAGE_SRC_TAG, ConstantUtil.HTML_DOUBLE_QUOTE);\n\n Resource resourceQue = new Resource();\n resourceQue.setUrl(resourceUrl);\n resourceQue.setUrlMain(resourceUrl);\n\n String mimeType = URLConnection.guessContentTypeFromName(resourceUrl);\n if (!TextUtils.isEmpty(mimeType) && mimeType.contains(ConstantUtil.TYPE_IMAGE)) {\n\n resourceQue.setUrlThumbnail(resourceUrl);\n resourceQue.setResourceType(Resource.TYPE_RESOURCE_IMAGE);\n\n }\n\n resourceList.add(resourceQue);\n }\n }\n\n }\n }\n\n }\n\n return resourceList;\n\n }", "public void editarArtista() {\n\t\tArrayList<String> listString = new ArrayList<>();\r\n\t\tArrayList<ArtistaMdl> listArtista = new ArrayList<>();\r\n\t\tString[] possibilities = pAController.getArtista();\r\n\t\tfor (String s : possibilities) {\r\n\t\t\tString text = s.replaceAll(\".*:\", \"\");\r\n\t\t\tlistString.add(text);\r\n\t\t\tif (s.contains(\"---\")) {\r\n\t\t\t\tArtistaMdl artista = new ArtistaMdl();\r\n\t\t\t\tartista.setNome(listString.get(1));\r\n\t\t\t\tlistArtista.add(artista);\r\n\t\t\t\tlistString.clear();\r\n\t\t\t}\r\n\t\t}\r\n\t\tString[] possibilities2 = new String[listArtista.size()];\r\n\t\tfor (int i = 0; i < listArtista.size(); i++) {\r\n\t\t\tpossibilities2[i] = listArtista.get(i).getNome();\r\n\t\t}\r\n\t}" ]
[ "0.69653493", "0.59752125", "0.59187955", "0.5773424", "0.56912726", "0.56583375", "0.557679", "0.5456093", "0.5428445", "0.5404419", "0.5402295", "0.5392314", "0.53494036", "0.5346366", "0.5323921", "0.5286793", "0.5280338", "0.524876", "0.523367", "0.5214296", "0.5207272", "0.51773834", "0.517493", "0.516957", "0.5162029", "0.5159392", "0.5154754", "0.5130019", "0.512523", "0.5123181", "0.5112128", "0.50876695", "0.50850004", "0.5076524", "0.5067552", "0.5066326", "0.5053896", "0.50520736", "0.5049226", "0.50462", "0.504579", "0.49983206", "0.4986205", "0.49810398", "0.4977201", "0.49768323", "0.4974027", "0.4954022", "0.49525213", "0.49457198", "0.49422148", "0.49407658", "0.4937361", "0.49314633", "0.49292627", "0.49287307", "0.492627", "0.49244714", "0.49243468", "0.49204203", "0.49124417", "0.49121535", "0.4902253", "0.48987183", "0.4891961", "0.48762083", "0.48720866", "0.48623657", "0.48603728", "0.48595646", "0.48589522", "0.48493552", "0.48423296", "0.48403677", "0.48381773", "0.48312", "0.48311073", "0.4828716", "0.48284373", "0.48249355", "0.48230755", "0.48191795", "0.48150015", "0.48126766", "0.48117754", "0.4810409", "0.48028356", "0.47935882", "0.47928694", "0.47858912", "0.4775759", "0.47717643", "0.4771369", "0.47698608", "0.47665378", "0.47540534", "0.4749508", "0.47406763", "0.47403643", "0.47346067", "0.47304493" ]
0.0
-1
Restitusce una lista di videogiochi avente come genere la stringa passata come argomento
List<Videogioco> retriveByGenere(String genere);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static VideoHolder getAllVideo(String ligne) throws IOException {\n String[] vid = ligne.split(\" \");\n VideoHolder videoHolder = new VideoHolder();\n for (int i = 0; i < vid.length; i++) {\n videoHolder.add(new Video(i, Integer.parseInt(vid[i])));\n }\n return videoHolder;\n }", "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(video);\n\t\tbuffer.append(\" [\");\n\t\tbuffer.append(numOwned);\n\t\tbuffer.append(\",\");\n\t\tbuffer.append(numOut);\n\t\tbuffer.append(\",\");\n\t\tbuffer.append(numRentals);\n\t\tbuffer.append(\"]\");\n\t\treturn buffer.toString();\n\t}", "public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }", "public String showPlayList(){\n String dataPlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n thePlayLists[i].uptadeDurationFormat(thePlayLists[i].uptadeDuration());\n thePlayLists[i].changeGender(thePlayLists[i].uptadeGender());\n dataPlayList += thePlayLists[i].showDatePlayList();\n }\n }\n return dataPlayList;\n }", "public TiendaVideojuegos(String datos)\n {\n listaDeVideojuegos = new ArrayList<Videojuegos>();\n codVideojuego = 0;\n try{\n File archivo = new File(datos);\n Scanner sc = new Scanner(archivo);\n while (sc.hasNextLine()) {\n String[] datosVideojuego = sc.nextLine().split(\"#\");\n String titulo = datosVideojuego[0];\n String plataforma = datosVideojuego[1];\n int dia = Integer.parseInt(datosVideojuego[2]);\n int mes = Integer.parseInt(datosVideojuego[3]);\n int anyo = Integer.parseInt(datosVideojuego[4]);\n addVideojuego(titulo, dia, mes, anyo, plataforma);\n }\n \n sc.close();\n }\n catch (FileNotFoundException a) {\n a.printStackTrace();\n }\n \n }", "ListString createListString();", "private static List<String> testStringGenerator(List<String> palString) {\n\t\tList<String> list = new ArrayList<>();\n\t\tfor (String pal : palString) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tsb.append(pal);\n\t\t\t\tfor (int j = 0; j < pal.length(); j++) {\n\t\t\t\t\tsb.append(j % 10);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(sb.toString());\n\t\t}\n\t\treturn list;\n\t}", "private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }", "protected String finalizarGenerateStringCamposFiltro(String listCamposFiltro){\r\n\t\t//Eliminamos la ultima coma y espacio introducidos.\r\n\t\tif(listCamposFiltro != \"\"){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.substring(0, listCamposFiltro.length()-2);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlistCamposFiltro = null; //Devolvemos null si no hay ningun filtro introducido\r\n\t\t}\r\n\r\n\t\tsetCamposFiltro(listCamposFiltro);\r\n\t\treturn listCamposFiltro;\r\n\t}", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "public String mo1736b() {\n return \"video\";\n }", "public static String conocidosToString(List<String> conocidos){\r\n String s = \"\"; \r\n for(int i= 0; i<conocidos.size(); i++){\r\n String c = conocidos.get(i);\r\n s = s + c + \" \";\r\n }\r\n return s;\r\n \r\n}", "String getStringList();", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "public String showPlayListPublic(){\n String playListPublic = \"\";\n int posicion = 0;\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n if(thePlayLists[i] instanceof PublicP){\n playListPublic += \"[\"+(posicion+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n posicion++;\n }\n }\n }\n return playListPublic;\n }", "@Override\n public String toString()\n {\n return \"Video: \" + videoTitle + \"\\nCreated By: \" + videoCreator;\n }", "public ArrayList<Resource> transformKAVideoIntoResource(ArrayList<KhanAcademyVideo> academyVideoList) {\n\n ArrayList<Resource> resourceList = new ArrayList<>();\n for (KhanAcademyVideo academyVideo : academyVideoList) {\n\n Resource transformedResource = new Resource();\n\n if (academyVideo != null && academyVideo.getVideoDetails() != null) {\n\n KhanAcademyVideoDetail academyVideoDetail = academyVideo.getVideoDetails();\n if (!TextUtils.isEmpty(academyVideoDetail.getVideoId())) {//checking for youtube video id\n\n String resourceUrl = mContext.getString(R.string.youtubeUrlWithoutId) + academyVideoDetail.getVideoId();//creating proper youtube url\n transformedResource.setUrl(resourceUrl);\n transformedResource.setResourceType(Resource.TYPE_RESOURCE_VIDEO);\n\n if (academyVideoDetail.getSnippet() != null && academyVideoDetail.getSnippet().getThumbnail() != null) {\n\n KhanAcademyVideoThumbnail academyVideoThumbnails = academyVideoDetail.getSnippet().getThumbnail();\n String resourceThumbnailUrl = null;\n\n if (academyVideoThumbnails.getThumbnailHigh() != null\n && !TextUtils.isEmpty(academyVideoThumbnails.getThumbnailHigh().getUrl())) {\n resourceThumbnailUrl = academyVideoThumbnails.getThumbnailHigh().getUrl();\n } else if (academyVideoThumbnails.getThumbnailStandard() != null\n && !TextUtils.isEmpty(academyVideoThumbnails.getThumbnailStandard().getUrl())) {\n resourceThumbnailUrl = academyVideoThumbnails.getThumbnailStandard().getUrl();\n }\n\n transformedResource.setUrlThumbnail(resourceThumbnailUrl);\n\n }\n\n resourceList.add(transformedResource);\n\n }\n }\n\n }\n\n\n return resourceList;\n }", "public List<String> sourceString() {\n // Processing is done here\n return Arrays.asList(\"tomato\", \"carrot\", \"cabbage\");\n }", "void stampaMessaggio(String messaggio);", "public abstract String generate(Object... args);", "public String getVideoBufferCharacters()\n\t{\n\t\tint maxRows, maxCols, index;\n\t\tStringBuffer text;\n\t\t\n\t\t// Retrieve screen dimension in text mode\n\t\tmaxRows = screen.getScreenRows();\n\t\tmaxCols = screen.getScreenColumns();\n\t\t\n\t\t// Create initial stringbuffer\n\t\ttext = new StringBuffer(maxRows * maxCols);\n\t\t\n\t\t// Convert each character in textSnapshot into Unicode character\n\t\tfor (int row = 0; row < maxRows; row++)\n\t\t{\n\t\t\tfor (int col = 0; col < maxCols; col++)\n\t\t\t{\n\t\t\t\tindex = videocard.textSnapshot[(row * maxCols * 2) + (col * 2)] & 0xFF;\n\t\t\t\tif (index < 255)\n\t\t\t\t{\n\t\t\t\t\ttext.append(textTranslation.asciiToUnicode[index]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Add a newline at the end of row\n\t\t\ttext.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn text.toString();\n\t}", "public String id2placa(String lst_id) {\n \n ArrayList<Movil> lst_movil = MovilBD.select();\n String arr_id[] = lst_id.split(\",\");\n String lst_placa = \"\";\n \n for (String id : arr_id) { \n for (Movil m : lst_movil) {\n String id_m = \"\" + m.getId();\n if (id_m.equals(id)) {\n String placa = \"'\" + m.getPlaca() + \"'\";\n lst_placa += (lst_placa == \"\") ? placa : \",\" + placa;\n break;\n }\n }\n }\n \n return lst_placa;\n }", "@Test\n\tpublic void test_toString() {\n\tTvShow t1 = new TvShow(\"Sherlock\",\"BBC\");\n\tassertEquals(\"[Sherlock,BBC]\",t1.toString());\n }", "public void Encode_Image1() {\n\n for (String s : Arraylist_image_encode) {\n listString += s + \"IMAGE:\";\n }\n\n }", "public ArrayList<String> getAllVideosName() {\n\t\tArrayList<String> videoList = new ArrayList<String>();\n\n\t\tString selectQuery = \"SELECT * FROM \" + VivaFrame.TABLE_NAME;\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tString videoname = new String();\n\t\t\t\tvideoname = cursor.getString(2);\n\t\t\t\t// Adding to list\n\t\t\t\tvideoList.add(videoname);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\treturn videoList;\n\t}", "private VectorArit VectorToString(VectorArit v) {\r\n LinkedList<Object> l = new LinkedList<>();\r\n for (int i = 0; i < v.getTamanio(); i++) {\r\n l.add(v.Acceder(i).toString());\r\n }\r\n return new VectorArit(TipoPrimitivo.STRING, l);\r\n }", "public String getEtiquetas(){\n\t\tString s = \"\";\n\t\tfor(int x=0; x<livre; x++){\n\t\t\tif(x == MAX_ETIQUETAS-1 || x==livre-1)\n\t\t\t\ts = s+etiquetas[x];\n\t\t\telse\n\t\t\t\ts = s+etiquetas[x]+\" - \";\n\t\t}\n\t\treturn s;\n\t}", "public String[] getVideoDevicesList();", "public String playGuitar(){\n\t\t String notes = \"[A(0.25), G(2), E(0.5), C(1), C(2), D(0.25), E(2), C(2), B(0.25), C(4), C(1), G(0.25),A(1), C(2), D(1),C(4)]\";\n\t\treturn notes;\n\t}", "StringBuffer generateVc(){\n\n StringBuffer r = new StringBuffer();\n\n for(int i = 0; i <= sons.size() - 1; i++)\n r.append(getChildAt(i).toDot());\n \n return r;\n }", "private static String buildParamsId(List<String> params){\n return String.join(\"#\", params);\n }", "public final String mo4983Fk() {\n AppMethodBeat.m2504i(50547);\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Tid:\").append(this.cZt);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoUrl:\").append(this.cZu);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"NewMd5:\").append(this.cVC);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadStartTime:\").append(this.cVD);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"DownloadEndTime:\").append(this.cVE);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoSize:\").append(this.cVF);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoDuration:\").append(this.cVG);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoBitrate:\").append(this.cVH);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"AudioBitrate:\").append(this.cVI);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoFps:\").append(this.cVJ);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoWidth:\").append(this.cVK);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"VideoHeight:\").append(this.cVL);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"CDNIp:\").append(this.cVM);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"OriginalAudioChannel:\").append(this.cVN);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadSize:\").append(this.cVO);\n stringBuffer.append(IOUtils.LINE_SEPARATOR_WINDOWS);\n stringBuffer.append(\"HadPreloadCompletion:\").append(this.cVP);\n String stringBuffer2 = stringBuffer.toString();\n AppMethodBeat.m2505o(50547);\n return stringBuffer2;\n }", "private static StringBuilder generateSqlForVideoList(IndexParams params) {\n Set<MetaDataType> mdt = params.getMetaDataTypes();\n LOG.debug(\"Getting video list for types: {}\", mdt);\n if (CollectionUtils.isNotEmpty(params.getDataItems())) {\n LOG.debug(\"Additional data items requested: {}\", params.getDataItems());\n }\n\n StringBuilder sbSQL = new StringBuilder();\n\n // add the movie entries\n if (mdt.contains(MOVIE)) {\n sbSQL.append(generateSqlForVideo(MOVIE, params));\n }\n\n // add the TV series entries\n if (mdt.contains(SERIES)) {\n if (sbSQL.length() > 0) {\n sbSQL.append(SQL_UNION_ALL);\n }\n sbSQL.append(generateSqlForSeries(params));\n }\n\n // add the TV season entries\n if (mdt.contains(SEASON)) {\n if (sbSQL.length() > 0) {\n sbSQL.append(SQL_UNION_ALL);\n }\n sbSQL.append(generateSqlForSeason(params));\n }\n\n // add the TV episode entries\n if (mdt.contains(EPISODE)) {\n if (sbSQL.length() > 0) {\n sbSQL.append(SQL_UNION_ALL);\n }\n sbSQL.append(generateSqlForVideo(EPISODE, params));\n }\n\n // Add the sort string, this will be empty if there is no sort required\n sbSQL.append(params.getSortString());\n\n LOG.debug(\"SqlForVideoList: {}\", sbSQL);\n return sbSQL;\n }", "Builder addVideo(String value);", "private void listFileMyVideo() throws JSONException {\n\n listFileMyVideo = new JSONArray();\n\n int count = countFileMyVideo();\n\n for (int i = 0; count > i; i++) {\n\n JSONObject obj = new JSONObject();\n obj.put(\"name\", get_FileName(getPathMyVideo(), i));\n obj.put(\"path\", get_FilePath(getPathMyVideo(), i));\n\n listFileMyVideo.put(obj);\n }\n }", "public List<String> pot(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n\n if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"e\")) {\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEscenario(qnaCaptura);\n listaString.add(\"ID del Cargo,Nombre del Cargo\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"i\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotInmueble(qnaCaptura);\n listaString.add(\"Id Domicilio,Calle,Número Exterior,Número Interior,Colonia,Municipio,Estado/Entidad Fef.,País,Código Postal,Tipo de Oficina\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"a\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotAltas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"b\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotBajas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"d\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotDirectorio(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Unidad,RFC,ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"r\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotRemuneraciones(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Id Puesto,Nombre,Tipo,SubTipo,Sueldo Base,Compensación Garantizada, Total Bruto, Total Neto,Nombre 01 Remuneracion,Monto 01 Remuneracion,Nombre 02 Remuneracion,Monto 02 Remuneracion,Nombre 03 Remuneracion,Monto 03 Remuneracion,Nombre 04 Remuneracion,Monto 04 Remuneracion,Nombre 05 Remuneracion,Monto 05 Remuneracion,Nombre 06 Remuneracion,Monto 06 Remuneracion,Nombre 07 Remuneracion,Monto 07 Remuneracion,Nombre 08 Remuneracion,Monto 08 Remuneracion,Nombre 09 Remuneracion,Monto 09 Remuneracion,Nombre 10 Remuneracion,Monto 10 Remuneracion,Nombre 11 Remuneracion,Monto 11 Remuneracion,Nombre 12 Remuneracion,Monto 12 Remuneracion,Nombre 13 Remuneracion,Monto 13 Remuneracion,Nombre 14 Remuneracion,Monto 14 Remuneracion,Nombre 15 Remuneracion,Monto 15 Remuneracion,Institucional,Colectivo de Retiro,Gastos Médicos,Separación Individualizado,Riesgos de Trabajo,Nombre Otros Seguros 1,Monto Otros Seguros 1,Nombre Otros Seguros 2,Monto Otros Seguros 2,Nombre Otros Seguros 3,Monto Otros Seguros 3,Nombre Otros Seguros 4,Monto Otros Seguros 4,Nombre Otros Seguros 5,Monto Otros Seguros 5,Nombre Otros Seguros 6,Monto Otros Seguros 6,Nombre Otros Seguros 7,Monto Otros Seguros 7,Nombre Otros Seguros 8,Monto Otros Seguros 8,Nombre Otros Seguros 9,Monto Otros Seguros 9,Nombre Otros Seguros 10,Monto Otros Seguros 10,Nombre Otros Seguros 11,Monto Otros Seguros 11,Nombre Otros Seguros 12,Monto Otros Seguros 12,Nombre Otros Seguros 13,Monto Otros Seguros 13,Nombre Otros Seguros 14,Monto Otros Seguros 14,Nombre Otros Seguros15,Monto Otros Seguros 15,Prima Vacacional,Primas de Antigüedad,Gratificación de Fin de Año,Pagas de Defunción,Ayuda para Despensa,Vacaciones,Nombre Prest. Econom 1,Monto Prest. Econom 1,Nombre Prest. Econom 2,Monto Prest. Econom 2,Nombre Prest. Econom 3,Monto Prest. Econom 3,Nombre Prest. Econom 4,Monto Prest. Econom 4,Nombre Prest. Econom 5,Monto Prest. Econom 5,Nombre Prest. Econom 6,Monto Prest. Econom 6,Nombre Prest.Econom 7,Monto Prest. Econom 7,Nombre Prest. Econom 8,Monto Prest. Econom 8,Nombre Prest. Econom 9,Monto Prest. Econom 9,Nombre Prest. Econom 10,Monto Prest. Econom 10,Nombre Prest. Econom 11,Monto Prest. Econom 11,Nombre Prest. Econom 12,Monto Prest. Econom 12,Nombre Prest. Econom 13,Monto Prest. Econom 13,Nombre Prest. Econom 14,Monto Prest. Econom 14,Nombre Prest. Econom 15,Monto Prest. Econom 15,Asistencia Legal,Asignación de Vehículo y/o Apoyo Económico ,Equipo de Telefonía Celular,Gastos de Alimentación,Nombre Prest. Inherentes al Puesto 1,Monto Prest. Inherentes al Puesto 1,Nombre Prest. Inherentes al Puesto 2,Monto Prest. Inherentes al Puesto 2,Nombre Prest. Inherentes al Puesto 3,Monto Prest. Inherentes al Puesto 3,Nombre Prest. Inherentes al Puesto 4,Monto Prest. Inherentes al Puesto 4,Nombre Prest. Inherentes al Puesto 5,Monto Prest. Inherentes al Puesto 5,Nombre Prest. Inherentes al Puesto 6,Monto Prest. Inherentes al Puesto 6,Nombre Prest. Inherentes al Puesto 7,Monto Prest. Inherentes al Puesto 7,Nombre Prest. Inherentes al Puesto 8,Monto Prest. Inherentes al Puesto 8,Nombre Prest. Inherentes al Puesto 9,Monto Prest. Inherentes al Puesto 9,Nombre Prest. Inherentes al Puesto 10,Monto Prest. Inherentes al Puesto 10,Nombre Prest. Inherentes al Puesto 11,Monto Prest. Inherentes al Puesto 11,Nombre Prest. Inherentes al Puesto 12,Monto Prest. Inherentes al Puesto 12,Nombre Prest. Inherentes al Puesto 13,Monto Prest. Inherentes al Puesto 13,Nombre Prest. Inherentes al Puesto 14,Monto Prest. Inherentes al Puesto 14,Nombre Prest. Inherentes al Puesto 15,Monto Prest. Inherentes al Puesto 15,ISSSTE / IMSS,FOVISSSTE / INFONAVIT,SAR,Nombre 01 Prest.Seg Social,Monto 01 Prest.Seg Social,Nombre 02 Prest.Seg Social,Monto 02 Prest.Seg Social,Nombre 03 Prest.Seg Social,Monto 03 Prest.Seg Social,Nombre 04 Prest.Seg Social,Monto 04 Prest.Seg Social,Nombre 05 Prest.Seg Social,Monto 05 Prest.Seg Social,Nombre 06 Prest.Seg Social,Monto 06 Prest.Seg Social,Nombre 07 Prest.Seg Social,Monto 07 Prest.Seg Social,Nombre 08 Prest.Seg Social,Monto 08 Prest.Seg Social,Nombre 09 Prest.Seg Social,Monto 09 Prest.Seg Social,Nombre 10 Prest.Seg Social,Monto 10 Prest.Seg Social,Nombre 11 Prest.Seg Social,Monto 11 Prest.Seg Social,Nombre 12 Prest.Seg Social,Monto 12 Prest.Seg Social,Nombre 13 Prest.Seg Social,Monto 13 Prest.Seg Social,Nombre 14 Prest.Seg Social,Monto 14 Prest.Seg Social,Nombre 15 Prest.Seg Social,Monto 15 Prest.Seg Social,Préstamos,Becas,Indemnizaciones,Nombre Otro Tipo Incentivo 01,Monto. Otro Tipo Incentivo 01,Nombre Otro Tipo Incentivo 02,Monto. Otro Tipo Incentivo 02,Nombre Otro Tipo Incentivo 03,Monto. Otro Tipo Incentivo 03,Nombre Otro Tipo Incentivo 04,Monto. Otro Tipo Incentivo 04,Nombre Otro Tipo Incentivo05,Monto. Otro Tipo Incentivo 05,Nombre Otro Tipo Incentivo 06,Monto. Otro Tipo Incentivo 06,Nombre Otro Tipo Incentivo 07,Monto. Otro Tipo Incentivo 07,Nombre Otro Tipo Incentivo 08,Monto. Otro Tipo Incentivo 08,Nombre Otro Tipo Incentivo 09,Monto. Otro Tipo Incentivo 09,Nombre Otro Tipo Incentivo 10,Monto. Otro Tipo Incentivo10,Nombre Otro Tipo Incentivo 11,Monto. Otro Tipo Incentivo 11,Nombre Otro Tipo Incentivo 12,Monto. Otro Tipo Incentivo12,Nombre Otro Tipo Incentivo 13,Monto. Otro Tipo Incentivo 13,Nombre Otro Tipo Incentivo 14,Monto. Otro Tipo Incentivo 14,Nombre Otro Tipo Incentivo 15,Monto. Otro Tipo Incentivo 15\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"f\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotFuncion((reportePlazaDTO.getQnaCaptura().substring(0, \n 4)));\n listaString.add(\"Identificador de la Facultad,Fundamento Legal,Documento Registrado,Unidad Administrativa,Nombre de la Unidad Administrativa\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"s\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEstadistico(qnaCaptura);\n listaString.add(\"NIVEL,G,H,HH,I,J,K,L,M,N,O,Total\");\n }\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "private Object saveGivens() {\n List<String> out = new ArrayList<>();\n for(UUID id : givenEmpty) {\n out.add(id.toString());\n }\n return out;\n }", "public static void main(String[] args) {\n\t\tRede plataforma = new Rede(\"Comeu Bola no Estudo\");\r\n\t\tInscrito Pessoal = new Inscrito(\"Pessoal,\");\r\n\t\tInscrito Academica = new Inscrito(\"Academica,\");\r\n\t\tInscrito Dani = new Inscrito(\"Dani,\");\r\n\t\tplataforma.subscribeToRede(Pessoal);\r\n\t\tplataforma.subscribeToRede(Academica);\r\n\t\tplataforma.subscribeToRede(Dani);\r\n\t\t\r\n\t\tplataforma.addVideo(\" 'Chorando no exame de POO!'\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public String toString() {\n return \"CapteurVitesse(\"+sonRail+\",PositionSurRail:\"+positionSurRail+\")\";\n }", "public abstract List<String> getAllInstanceStrings(String params);", "private void setdata() {\n stringArrayList = new ArrayList<>();\n stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955317188/hls/main.m3u8\");\n /*stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955657508/hls/main.m3u8\");*/\n /*stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955317188/hls/main.m3u8\");\n stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955657508/hls/main.m3u8\");*/\n /* stringArrayList.add(\"https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8\");*/\n /*stringArrayList.add(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8\");*/\n /* stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");\n stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");\n stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");*/\n }", "public void prepareList()\n {\n listImg = new ArrayList<Drawable>();\n for(int i=0;i<n;i++)\n {\n \ta.moveToPosition(i);\n \tString immagine = a.getString(0);\n \tCaricaImmagine caricaImmagineAsync = new CaricaImmagine();\n \t\tcaricaImmagineAsync.execute(new String[]{immagine});\n }\n }", "public final void mo61580c(boolean z, String str, int i) {\n boolean z2;\n int i2 = 1;\n AppMethodBeat.m2504i(131589);\n this.iad = i;\n this.bkJ = z;\n PString pString = new PString();\n pString.value = str;\n if (C5046bo.isNullOrNil(pString.value) || pString.value.indexOf(\"file://\") != 0) {\n z2 = false;\n } else {\n pString.value = pString.value.substring(7);\n z2 = true;\n }\n this.iae = z2;\n this.url = pString.value;\n if (this.hZY == null) {\n if (m81322a(this.bkJ, this.url, \"\")) {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use common video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFT();\n } else {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use mm video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFU();\n }\n } else if (m81322a(this.bkJ, this.url, \"\")) {\n if (this.hZY instanceof MMVideoView) {\n this.hZY.stop();\n this.hZY.cpU();\n removeView((View) this.hZY);\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use common video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFT();\n } else {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use last common video view !\", Integer.valueOf(hashCode()));\n this.hZY.stop();\n i2 = 0;\n }\n } else if (this.hZY instanceof CommonVideoView) {\n this.hZY.stop();\n this.hZY.cpU();\n removeView((View) this.hZY);\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use mm video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFU();\n } else {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use last mm video view !\", Integer.valueOf(hashCode()));\n this.hZY.stop();\n i2 = 0;\n }\n setScaleType(this.iab);\n mo61579as(this.iac);\n setMute(this.fdh);\n if (i2 != 0) {\n setVideoFooterView(this.iaa);\n addView((View) this.hZY, new LayoutParams(-1, -1));\n }\n this.hZY.mo9063c(this.bkJ, this.url, this.iad);\n C7305d.post(new C383972(), \"AppBrandVideo_checkVideoUrl\");\n AppMethodBeat.m2505o(131589);\n }", "public String toString(){\r\n\t\t\r\n\t\tString x =\"\";\r\n\t\t\r\n\t\tfor(int i=0; i < param.size() ; i++ ){\r\n\t\t\t\r\n\t\t\tx += param.get(i) + \"\\n\" ; \r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn x;\r\n\t}", "public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }", "public void mo63047b(String str) {\n String str2;\n String str3;\n String str4;\n String str5;\n super.mo63047b(str);\n if (C25352e.m83221d(this.f77546j)) {\n this.f89203a.mo65916c();\n C24961b e = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play_over\").mo65283e(\"video\");\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n e.mo65271b((long) video.getVideoLength()).mo65270a(mo75261ab());\n this.f89214bh++;\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74936f = this.f89214bh;\n if (this.f89214bh >= this.f89215bi) {\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n if (!a2.f74934d) {\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme2.getAwemeRawAd();\n if (awemeRawAd != null) {\n str3 = awemeRawAd.getWebUrl();\n } else {\n str3 = null;\n }\n if (TextUtils.isEmpty(str3)) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str4 = \"\";\n } else {\n str4 = \"video\";\n }\n b.mo65283e(str4).mo65270a(mo75261ab());\n return;\n } else if (mo75314al()) {\n mo75311ai();\n return;\n } else {\n this.f89215bi++;\n C24961b b2 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str5 = \"\";\n } else {\n str5 = \"video\";\n }\n b2.mo65283e(str5).mo65270a(mo75261ab());\n return;\n }\n }\n }\n C24961b b3 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str2 = \"\";\n } else {\n str2 = \"video\";\n }\n b3.mo65283e(str2).mo65270a(mo75261ab());\n }\n }", "private ArrayList<String> convertToStringArrayList() {\r\n\t\tArrayList<String> strList = new ArrayList<String>();\r\n\t\tStringBuilder strBuilder = new StringBuilder();\r\n\t\tfor (int i = 0; i < gameBoard.getmBoard().length; i++) {\r\n\t\t\tfor (int j = 0; j < gameBoard.getmBoard()[0].length; j++) {\r\n\t\t\t\tstrBuilder.append(gameBoard.getIdValue(gameBoard.genId(i, j)));\r\n\t\t\t}\r\n\t\t\tstrList.add(strBuilder.toString());\r\n\t\t\tstrBuilder.setLength(0);\r\n\t\t}\r\n\r\n\t\tif (gameBoard.isPlayerBlackTurn()) {\r\n\t\t\tstrList.add(\"t\");\r\n\t\t} else {\r\n\t\t\tstrList.add(\"f\");\r\n\t\t}\r\n\r\n\t\tstrList.add(((Integer) gameBoard.getBlackScore()).toString());\r\n\t\tstrList.add(((Integer) gameBoard.getRedScore()).toString());\r\n\t\treturn strList;\r\n\t}", "void setTitleUnitSound(List<String> listTitle);", "public String call() {\n String str = \"\";\n boolean z = false;\n int i = 0;\n for (MediaModel mediaModel : this.f81056a) {\n if (mediaModel.isVideo()) {\n C30954u.m100738a(this.f81057b, mediaModel);\n } else {\n str = C30954u.m100737a(this.f81057b, mediaModel, this.f81058c);\n i++;\n }\n }\n if (str.length() > 0) {\n z = true;\n }\n if (!z || i <= 1) {\n return str;\n }\n String string = C6399b.m19921a().getString(R.string.bi7);\n C7573i.m23582a((Object) string, \"AppContextManager.getApp…im_compress_failed_multi)\");\n return string;\n }", "private static String m1472a(String str, String str2, Integer num, Integer num2, JSONObject jSONObject, Integer num3) {\n return String.format(Locale.ROOT, \"<html><head></head><body><div id=\\\"%s\\\" style=\\\"width: %dpx; height: %dpx;\\\"></div><script>(function initMoatTracking(apiname, pcode, ids, duration) {var events = [];window[pcode + '_moatElToTrack'] = document.getElementById('%s');var moatapi = {'dropTime':%d,'adData': {'ids': ids, 'duration': duration, 'url': 'n/a'},'dispatchEvent': function(ev) {if (this.sendEvent) {if (events) { events.push(ev); ev = events; events = false; }this.sendEvent(ev);} else {events.push(ev);}},'dispatchMany': function(evs){for (var i=0, l=evs.length; i<l; i++) {this.dispatchEvent(evs[i]);}}};Object.defineProperty(window, apiname, {'value': moatapi});var s = document.createElement('script');s.src = 'https://z.moatads.com/' + pcode + '/moatvideo.js?' + apiname + '#' + apiname;document.body.appendChild(s);})('%s', '%s', %s, %s);</script></body></html>\", new Object[]{\"mianahwvc\", num, num2, \"mianahwvc\", Long.valueOf(System.currentTimeMillis()), str, str2, jSONObject.toString(), num3});\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}", "@Override\n public String generate(String url) {\n int startIndex = url.lastIndexOf(\"/\");\n int endIndex = url.indexOf(\".mp4\");\n try {\n return url.substring(startIndex, endIndex) + \".temp\";\n } catch (Exception e) {\n e.printStackTrace();\n return url + \".temp\";\n }\n }", "public CharSequence ZawGyiToUni(String myString1, Boolean unicode) {\n\t\t String uni = \"[\"\n\t + \" {\\\"from\\\": \\\"(\\u103D|\\u1087)\\\",\\\"to\\\":\\\"\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\\",\\\"to\\\":\\\"\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103B|\\u107E|\\u107F|\\u1080|\\u1081|\\u1082|\\u1083|\\u1084)\\\",\\\"to\\\":\\\"\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103A|\\u107D)\\\",\\\"to\\\":\\\"\\u103B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\\",\\\"to\\\":\\\"\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106A\\\",\\\"to\\\":\\\"\\u1009\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106B\\\",\\\"to\\\":\\\"\\u100A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106C\\\",\\\"to\\\":\\\"\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106D\\\",\\\"to\\\":\\\"\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106E\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u106F\\\",\\\"to\\\":\\\"\\u100D\\u1039\\u100E\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1070\\\",\\\"to\\\":\\\"\\u1039\\u100F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1071|\\u1072)\\\",\\\"to\\\":\\\"\\u1039\\u1010\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1060\\\",\\\"to\\\":\\\"\\u1039\\u1000\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1061\\\",\\\"to\\\":\\\"\\u1039\\u1001\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1062\\\",\\\"to\\\":\\\"\\u1039\\u1002\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1063\\\",\\\"to\\\":\\\"\\u1039\\u1003\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1065\\\",\\\"to\\\":\\\"\\u1039\\u1005\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1068\\\",\\\"to\\\":\\\"\\u1039\\u1007\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1069\\\",\\\"to\\\":\\\"\\u1039\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"/(\\u1073|\\u1074)/g\\\",\\\"to\\\":\\\"\\u1039\\u1011\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1075\\\",\\\"to\\\":\\\"\\u1039\\u1012\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1076\\\",\\\"to\\\":\\\"\\u1039\\u1013\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1077\\\",\\\"to\\\":\\\"\\u1039\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1078\\\",\\\"to\\\":\\\"\\u1039\\u1015\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1079\\\",\\\"to\\\":\\\"\\u1039\\u1016\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107A\\\",\\\"to\\\":\\\"\\u1039\\u1017\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u107C\\\",\\\"to\\\":\\\"\\u1039\\u1019\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1085\\\",\\\"to\\\":\\\"\\u1039\\u101C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1033\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1034\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103F\\\",\\\"to\\\":\\\"\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1086\\\",\\\"to\\\":\\\"\\u103F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1088\\\",\\\"to\\\":\\\"\\u103E\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1089\\\",\\\"to\\\":\\\"\\u103E\\u1030\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108A\\\",\\\"to\\\":\\\"\\u103D\\u103E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1064\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108B\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102D\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108C\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u102E\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u108D\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108E\\\",\\\"to\\\":\\\"\\u102D\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u108F\\\",\\\"to\\\":\\\"\\u1014\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1090\\\",\\\"to\\\":\\\"\\u101B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1091\\\",\\\"to\\\":\\\"\\u100F\\u1039\\u1091\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1019\\u102C(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u1019\\u1039\\u1018\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u107B|\\u1093)\\\",\\\"to\\\":\\\"\\u103A\\u1018\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u1094|\\u1095)\\\",\\\"to\\\":\\\"\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1096\\\",\\\"to\\\":\\\"\\u1039\\u1010\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1097\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100B\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C([\\u1000-\\u1021])([\\u1000-\\u1021])?\\\",\\\"to\\\":\\\"$1\\u103C$2\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u103C\\u103A\\\",\\\"to\\\":\\\"\\u103C$1\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031([\\u1000-\\u1021])(\\u103E)?(\\u103B)?\\\",\\\"to\\\":\\\"$1$2$3\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"([\\u1000-\\u1021])\\u1031(\\u103B|\\u103C|\\u103D)\\\",\\\"to\\\":\\\"$1$2\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1032\\u103D\\\",\\\"to\\\":\\\"\\u103D\\u1032\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103D\\u103B\\\",\\\"to\\\":\\\"\\u103B\\u103D\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103A\\u1037\\\",\\\"to\\\":\\\"\\u1037\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F(\\u102D|\\u102E|\\u1036|\\u1037)\\u102F\\\",\\\"to\\\":\\\"\\u102F$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102F\\u102F\\\",\\\"to\\\":\\\"\\u102F\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102F|\\u1030)(\\u102D|\\u102E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u103E)(\\u103B|\\u1037)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025(\\u103A|\\u102C)\\\",\\\"to\\\":\\\"\\u1009$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u102E\\\",\\\"to\\\":\\\"\\u1026\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1005\\u103B\\\",\\\"to\\\":\\\"\\u1008\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036(\\u102F|\\u1030)\\\",\\\"to\\\":\\\"$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u1037\\u103E\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u1037\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103E\\u102C\\\",\\\"to\\\":\\\"\\u103E\\u1031\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u105A\\\",\\\"to\\\":\\\"\\u102B\\u103A\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1031\\u103B\\u103E\\\",\\\"to\\\":\\\"\\u103B\\u103E\\u1031\\\"},\"\n\t + \" {\\\"from\\\": \\\"(\\u102D|\\u102E)(\\u103D|\\u103E)\\\",\\\"to\\\":\\\"$2$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u102C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u102C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1004\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1004\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1039\\u103C\\u103A\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u103A\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u103C\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u103C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1036\\u1039([\\u1000-\\u1021])\\\",\\\"to\\\":\\\"\\u1039$1\\u1036\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1092\\\",\\\"to\\\":\\\"\\u100B\\u1039\\u100C\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u104E\\\",\\\"to\\\":\\\"\\u104E\\u1004\\u103A\\u1038\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1040(\\u102B|\\u102C|\\u1036)\\\",\\\"to\\\":\\\"\\u101D$1\\\"},\"\n\t + \" {\\\"from\\\": \\\"\\u1025\\u1039\\\",\\\"to\\\":\\\"\\u1009\\u1039\\\"}\" + \"]\";\n\t\t \n\t\t String zawgyi = \"[ { \\\"from\\\": \\\"င်္\\\", \\\"to\\\": \\\"ၤ\\\" }, { \\\"from\\\": \\\"္တွ\\\", \\\"to\\\": \\\"႖\\\" }, { \\\"from\\\": \\\"န(?=[ူွှု္])\\\", \\\"to\\\": \\\"ႏ\\\" }, { \\\"from\\\": \\\"ါ်\\\", \\\"to\\\": \\\"ၚ\\\" }, { \\\"from\\\": \\\"ဋ္ဌ\\\", \\\"to\\\": \\\"႒\\\" }, { \\\"from\\\": \\\"ိံ\\\", \\\"to\\\": \\\"ႎ\\\" }, { \\\"from\\\": \\\"၎င်း\\\", \\\"to\\\": \\\"၎\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[္ုူ])\\\", \\\"to\\\": \\\"ၪ\\\" }, { \\\"from\\\": \\\"[ဥဉ](?=[်])\\\", \\\"to\\\": \\\"ဥ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူွ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ု\\\", \\\"to\\\": \\\"$1ဳ\\\" }, { \\\"from\\\": \\\"(္[က-အ])ူ\\\", \\\"to\\\": \\\"$1ဴ\\\" }, { \\\"from\\\": \\\"္က\\\", \\\"to\\\": \\\"ၠ\\\" }, { \\\"from\\\": \\\"္ခ\\\", \\\"to\\\": \\\"ၡ\\\" }, { \\\"from\\\": \\\"္ဂ\\\", \\\"to\\\": \\\"ၢ\\\" }, { \\\"from\\\": \\\"္ဃ\\\", \\\"to\\\": \\\"ၣ\\\" }, { \\\"from\\\": \\\"္စ\\\", \\\"to\\\": \\\"ၥ\\\" }, { \\\"from\\\": \\\"္ဆ\\\", \\\"to\\\": \\\"ၦ\\\" }, { \\\"from\\\": \\\"္ဇ\\\", \\\"to\\\": \\\"ၨ\\\" }, { \\\"from\\\": \\\"္ဈ\\\", \\\"to\\\": \\\"ၩ\\\" }, { \\\"from\\\": \\\"ည(?=[္ုူ])\\\", \\\"to\\\": \\\"ၫ\\\" }, { \\\"from\\\": \\\"္ဋ\\\", \\\"to\\\": \\\"ၬ\\\" }, { \\\"from\\\": \\\"္ဌ\\\", \\\"to\\\": \\\"ၭ\\\" }, { \\\"from\\\": \\\"ဍ္ဍ\\\", \\\"to\\\": \\\"ၮ\\\" }, { \\\"from\\\": \\\"ဎ္ဍ\\\", \\\"to\\\": \\\"ၯ\\\" }, { \\\"from\\\": \\\"္ဏ\\\", \\\"to\\\": \\\"ၰ\\\" }, { \\\"from\\\": \\\"္တ\\\", \\\"to\\\": \\\"ၱ\\\" }, { \\\"from\\\": \\\"္ထ\\\", \\\"to\\\": \\\"ၳ\\\" }, { \\\"from\\\": \\\"္ဒ\\\", \\\"to\\\": \\\"ၵ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္ဓ\\\", \\\"to\\\": \\\"ၶ\\\" }, { \\\"from\\\": \\\"္န\\\", \\\"to\\\": \\\"ၷ\\\" }, { \\\"from\\\": \\\"္ပ\\\", \\\"to\\\": \\\"ၸ\\\" }, { \\\"from\\\": \\\"္ဖ\\\", \\\"to\\\": \\\"ၹ\\\" }, { \\\"from\\\": \\\"္ဗ\\\", \\\"to\\\": \\\"ၺ\\\" }, { \\\"from\\\": \\\"္ဘ\\\", \\\"to\\\": \\\"ၻ\\\" }, { \\\"from\\\": \\\"္မ\\\", \\\"to\\\": \\\"ၼ\\\" }, { \\\"from\\\": \\\"္လ\\\", \\\"to\\\": \\\"ႅ\\\" }, { \\\"from\\\": \\\"ဿ\\\", \\\"to\\\": \\\"ႆ\\\" }, { \\\"from\\\": \\\"(ြ)ှ\\\", \\\"to\\\": \\\"$1ႇ\\\" }, { \\\"from\\\": \\\"ွှ\\\", \\\"to\\\": \\\"ႊ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ိ\\\", \\\"to\\\": \\\"$2$3$4ႋ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ီ\\\", \\\"to\\\": \\\"$2$3$4ႌ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])ံ\\\", \\\"to\\\": \\\"$2$3$4ႍ\\\" }, { \\\"from\\\": \\\"(ၤ)([ေ]?)([ြ]?)([က-အ])\\\", \\\"to\\\": \\\"$2$3$4$1\\\" }, { \\\"from\\\": \\\"ရ(?=[ုူွႊ])\\\", \\\"to\\\": \\\"႐\\\" }, { \\\"from\\\": \\\"ဏ္ဍ\\\", \\\"to\\\": \\\"႑\\\" }, { \\\"from\\\": \\\"ဋ္ဋ\\\", \\\"to\\\": \\\"႗\\\" }, { \\\"from\\\": \\\"([က-အႏဩ႐])([ၠ-ၩၬၭၰ-ၼႅႊ])?([ျ-ှ]*)?ေ\\\", \\\"to\\\": \\\"ေ$1$2$3\\\" }, { \\\"from\\\": \\\"([က-အဩ])([ၠ-ၩၬၭၰ-ၼႅ])?(ြ)\\\", \\\"to\\\": \\\"$3$1$2\\\" }, { \\\"from\\\": \\\"်\\\", \\\"to\\\": \\\"္\\\" }, { \\\"from\\\": \\\"ျ\\\", \\\"to\\\": \\\"်\\\" }, { \\\"from\\\": \\\"ြ\\\", \\\"to\\\": \\\"ျ\\\" }, { \\\"from\\\": \\\"ွ\\\", \\\"to\\\": \\\"ြ\\\" }, { \\\"from\\\": \\\"ှ\\\", \\\"to\\\": \\\"ွ\\\" }, { \\\"from\\\": \\\"ွု\\\", \\\"to\\\": \\\"ႈ\\\" }, { \\\"from\\\": \\\"([ုူနရြႊွႈ])([ဲံ]{0,1})့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"ု႕\\\", \\\"to\\\": \\\"ု႔\\\" }, { \\\"from\\\": \\\"([နရ])([ဲံိီႋႌႍႎ])့\\\", \\\"to\\\": \\\"$1$2႕\\\" }, { \\\"from\\\": \\\"႕္\\\", \\\"to\\\": \\\"႔္\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ု\\\", \\\"to\\\": \\\"$1$2$3ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])([ံိီႋႌႍႎ]?)ူ\\\", \\\"to\\\": \\\"$1$2$3ဴ\\\" }, { \\\"from\\\": \\\"်ု\\\", \\\"to\\\": \\\"်ဳ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ု\\\", \\\"to\\\": \\\"်$1ဳ\\\" }, { \\\"from\\\": \\\"([်ျ])([က-အ])ူ\\\", \\\"to\\\": \\\"$1$2ဴ\\\" }, { \\\"from\\\": \\\"်ူ\\\", \\\"to\\\": \\\"်ဴ\\\" }, { \\\"from\\\": \\\"်([ံိီႋႌႍႎ])ူ\\\", \\\"to\\\": \\\"်$1ဴ\\\" }, { \\\"from\\\": \\\"ွူ\\\", \\\"to\\\": \\\"ႉ\\\" }, { \\\"from\\\": \\\"ျ([ကဃဆဏတထဘယလယသဟ])\\\", \\\"to\\\": \\\"ၾ$1\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႄ$1$2$3\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ြႊ])\\\", \\\"to\\\": \\\"ႂ$1$2\\\" }, { \\\"from\\\": \\\"ၾ([ကဃဆဏတထဘယလယသဟ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႀ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ႃ$1$2$3\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ြႊ])\\\", \\\"to\\\": \\\"ႁ$1$2\\\" }, { \\\"from\\\": \\\"ျ([က-အ])([ဳဴ]?)([ဲံိီႋႌႍႎ])\\\", \\\"to\\\": \\\"ၿ$1$2$3\\\" }, { \\\"from\\\": \\\"်ွ\\\", \\\"to\\\": \\\"ွ်\\\" }, { \\\"from\\\": \\\"်([ြႊ])\\\", \\\"to\\\": \\\"$1ၽ\\\" }, { \\\"from\\\": \\\"([ဳဴ])႔\\\", \\\"to\\\": \\\"$1႕\\\" }, { \\\"from\\\": \\\"ႏၱ\\\", \\\"to\\\" : \\\"ႏၲ\\\" }, { \\\"from\\\": \\\"([က-အ])([ၻၦ])ာ\\\", \\\"to\\\": \\\"$1ာ$2\\\" }, { \\\"from\\\": \\\"ာ([ၻၦ])့\\\", \\\"to\\\": \\\"ာ$1႔\\\" }]\";\n\t\t \n\t\t if(unicode==true) {\n\t\treturn replacewithUni(uni, myString1);\n\t\t } else {\n\t\t\t return replacewithZawgyi(zawgyi, myString1);\n\t\t }\n\t}", "public String generateString() {\n List<Trip<String, String, String>> sequence = super.generateSequence(startTrip, endTrip);\n sequence = sequence.subList(1, sequence.size()-1);\n String generated = \"\";\n for (int i = 0; i<sequence.size()-2; i++) generated += sequence.get(i).getThird() + \" \";\n return generated.substring(0, generated.length()-1);\n }", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "private List<String> buildList() {\n List<String> list = new ArrayList<>();\n list.add(\"Traveled Meters by Day\");\n list.add(\"Sensor Coverage\");\n list.add(\"No Movement Detection\");\n return list;\n }", "private String tulostuksenApu(){\r\n String apu = \"Rivitiedosto: \";\r\n for(int i = 0; i<rivitiedot.length; i++){\r\n apu = apu + i+\": \";\r\n for(int k = 1; k <= rivitiedot[i].getKoko(); k++){\r\n apu = apu + \" \"+rivitiedot[i].get(k);\r\n }\r\n apu = apu + \" \";\r\n }\r\n\r\n return apu;\r\n }", "public void generateVideoFilename(int outputFileFormat) {\n long dateTaken = System.currentTimeMillis();\n String title = createName(dateTaken);\n String filename = new StringBuilder();\n filename.append(title);\n filename.append(convertOutputFormatToFileExt(outputFileFormat));\n filename = filename.toString();\n String mime = convertOutputFormatToMimeType(outputFileFormat);\n String path = new StringBuilder();\n path.append(Storage.DIRECTORY);\n path.append('/');\n path.append(filename);\n path = path.toString();\n String tmpPath = path;\n if (!(this.mNeedGLRender || isSupportEffects())) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(path);\n stringBuilder.append(VIDEO_TEMP_SUFFIXES);\n tmpPath = stringBuilder.toString();\n }\n this.mCurrentVideoValues = new ContentValues(9);\n this.mCurrentVideoValues.put(\"title\", title);\n this.mCurrentVideoValues.put(\"_display_name\", filename);\n this.mCurrentVideoValues.put(\"datetaken\", Long.valueOf(dateTaken));\n this.mCurrentVideoValues.put(InfoTable.DATE_MODIFIED, Long.valueOf(dateTaken / MIN_VIDEO_RECODER_DURATION));\n this.mCurrentVideoValues.put(InfoTable.MIME_TYPE, mime);\n this.mCurrentVideoValues.put(\"_data\", path);\n this.mCurrentVideoValues.put(InfoTable.WIDTH, Integer.valueOf(this.mProfile.videoFrameWidth));\n this.mCurrentVideoValues.put(InfoTable.HEIGHT, Integer.valueOf(this.mProfile.videoFrameHeight));\n ContentValues contentValues = this.mCurrentVideoValues;\n String str = InfoTable.RESOLUTION;\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(Integer.toString(this.mProfile.videoFrameWidth));\n stringBuilder2.append(\"x\");\n stringBuilder2.append(Integer.toString(this.mProfile.videoFrameHeight));\n contentValues.put(str, stringBuilder2.toString());\n Location loc = this.mLocationManager.getCurrentLocation();\n if (loc != null) {\n this.mCurrentVideoValues.put(InfoTable.LATITUDE, Double.valueOf(loc.getLatitude()));\n this.mCurrentVideoValues.put(InfoTable.LONGITUDE, Double.valueOf(loc.getLongitude()));\n }\n this.mVideoFilename = tmpPath;\n Tag tag = TAG;\n stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"New video filename: \");\n stringBuilder2.append(this.mVideoFilename);\n Log.v(tag, stringBuilder2.toString());\n }", "public void setVideourl(String videourl) {\n this.videourl = videourl;\n }", "public void crearVideojuego(){\n String titulo;\n String autor;\n Multimedia.FORMATO formato;\n GregorianCalendar anyo;\n Videojuego.PLATAFORMA plataforma = Videojuego.PLATAFORMA.ERROR;\n\n int opcion = -1;\n boolean validado = false;\n\n\n titulo = pedirString(\"titulo\"); // Pido el titulo\n autor = pedirString(\"autor\"); // Pido el autor\n formato = pedirFormato(); // Pido el formato\n anyo = pedirAnyo(); // Pido el anyo\n\n\n do{\n\n System.out.println(\"Elige la plataforma:\");\n System.out.println(\"1. PLAYSTATION\");\n System.out.println(\"2. XBOX\");\n System.out.println(\"3. NINTENDO\");\n\n try {\n opcion = Integer.parseInt(lector.nextLine());\n validado = true;\n if (opcion > 3 || opcion < 1) {\n validado = false;\n System.out.println(\"Por favor, introduce un numero entre el 1 y el 3\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Introduce un valor numerico entre el 1 y el 3\");\n }\n }while(!validado);\n\n switch (opcion){\n case 1:\n plataforma = Videojuego.PLATAFORMA.PLAYSTATION;\n break;\n case 2:\n plataforma = Videojuego.PLATAFORMA.XBOX;\n break;\n case 3:\n plataforma = Videojuego.PLATAFORMA.NINTENDO;\n break;\n default:\n break;\n }\n\n //Creo el videojuego y lo anyado a la tienda:\n\n tienda.getVideojuegos().add(new Videojuego(titulo,autor,formato,anyo,plataforma));\n System.out.println(\"Videojuego creado con exito\");\n Lib.pausa();\n\n\n\n }", "private String createDescription(ArrayList<String> parameters,int end) {\n ArrayList<String> description = getDescriptionArray(parameters, end);\n String descriptionString;\n String lastWord = description.get(end);\n if (lastWord.endsWith(\".\")) {\n description.set(end, lastWord.replaceAll(\".$\", \"\"));\n descriptionString = String.join(\" \", description);\n } else {\n descriptionString = null;\n }\n return descriptionString;\n }", "public String sounds(){\n return (\"Moooooo :o\");\n }", "public String[] list(String text, String von, String bis) throws RemoteException;", "public void recordVideosName(){\n File file=new File(\"/sdcard/\",\"DateRecording.txt\");\n try {\n FileOutputStream fileOutputStream = new FileOutputStream(file,true);//追加方式打开\n OutputStreamWriter outputStreamWriter = new OutputStreamWriter(fileOutputStream);\n BufferedWriter bufferedWriter = new BufferedWriter(outputStreamWriter);\n bufferedWriter.write(videosName[0]+\" \"+videosName[1]+\" \"+videosName[2]+\" \"+videosName[3]+\" \"+videosName[4]+\" \"+videosName[5]+\"\\r\\n\");\n bufferedWriter.write(\"u_1 u_2 u_3\"+\"\\r\\n\");\n bufferedWriter.close();\n outputStreamWriter.close();\n }catch (Exception e){\n e.printStackTrace();\n }\n }", "private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }", "public CharSequence XtremeZawGyi(String myString1,Boolean Zawgyi) {\n\t\t\n String uni = \"[\"\n +\t\" {\\\"from\\\": \\\"\t\\u1000\t\\\",\\\"to\\\":\\\"\t\\u1E00\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1001\t\\\",\\\"to\\\":\\\"\t\\u1E01\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1002\t\\\",\\\"to\\\":\\\"\t\\u1E02\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1003\t\\\",\\\"to\\\":\\\"\t\\u1E03\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1004\t\\\",\\\"to\\\":\\\"\t\\u1E04\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1005\t\\\",\\\"to\\\":\\\"\t\\u1E05\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1006\t\\\",\\\"to\\\":\\\"\t\\u1E06\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1007\t\\\",\\\"to\\\":\\\"\t\\u1E07\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1008\t\\\",\\\"to\\\":\\\"\t\\u1E08\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1009\t\\\",\\\"to\\\":\\\"\t\\u1E09\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u100A\t\\\",\\\"to\\\":\\\"\t\\u1E0A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u100B\t\\\",\\\"to\\\":\\\"\t\\u1E0B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u100C\t\\\",\\\"to\\\":\\\"\t\\u1E0C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u100D\t\\\",\\\"to\\\":\\\"\t\\u1E0D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u100E\t\\\",\\\"to\\\":\\\"\t\\u1E0E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u100F\t\\\",\\\"to\\\":\\\"\t\\u1E0F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1010\t\\\",\\\"to\\\":\\\"\t\\u1E10\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1011\t\\\",\\\"to\\\":\\\"\t\\u1E11\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1012\t\\\",\\\"to\\\":\\\"\t\\u1E12\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1013\t\\\",\\\"to\\\":\\\"\t\\u1E13\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1014\t\\\",\\\"to\\\":\\\"\t\\u1E14\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1015\t\\\",\\\"to\\\":\\\"\t\\u1E15\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1016\t\\\",\\\"to\\\":\\\"\t\\u1E16\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1017\t\\\",\\\"to\\\":\\\"\t\\u1E17\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1018\t\\\",\\\"to\\\":\\\"\t\\u1E18\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1019\t\\\",\\\"to\\\":\\\"\t\\u1E19\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u101A\t\\\",\\\"to\\\":\\\"\t\\u1E1A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u101B\t\\\",\\\"to\\\":\\\"\t\\u1E1B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u101C\t\\\",\\\"to\\\":\\\"\t\\u1E1C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u101D\t\\\",\\\"to\\\":\\\"\t\\u1E1D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u101E\t\\\",\\\"to\\\":\\\"\t\\u1E1E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u101F\t\\\",\\\"to\\\":\\\"\t\\u1E1F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1020\t\\\",\\\"to\\\":\\\"\t\\u1E20\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1021\t\\\",\\\"to\\\":\\\"\t\\u1E21\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1023\t\\\",\\\"to\\\":\\\"\t\\u1E22\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1024\t\\\",\\\"to\\\":\\\"\t\\u1E23\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1025\t\\\",\\\"to\\\":\\\"\t\\u1E24\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1026\t\\\",\\\"to\\\":\\\"\t\\u1E25\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1027\t\\\",\\\"to\\\":\\\"\t\\u1E26\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1029\t\\\",\\\"to\\\":\\\"\t\\u1E27\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u102A\t\\\",\\\"to\\\":\\\"\t\\u1E28\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u102B\t\\\",\\\"to\\\":\\\"\t\\u1E29\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u102C\t\\\",\\\"to\\\":\\\"\t\\u1E2A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u102D\t\\\",\\\"to\\\":\\\"\t\\u1E2B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u102E\t\\\",\\\"to\\\":\\\"\t\\u1E2C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u102F\t\\\",\\\"to\\\":\\\"\t\\u1E2D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1030\t\\\",\\\"to\\\":\\\"\t\\u1E2E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1031\t\\\",\\\"to\\\":\\\"\t\\u1E2F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1032\t\\\",\\\"to\\\":\\\"\t\\u1E30\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1033\t\\\",\\\"to\\\":\\\"\t\\u1E31\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1034\t\\\",\\\"to\\\":\\\"\t\\u1E32\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1036\t\\\",\\\"to\\\":\\\"\t\\u1E33\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1037\t\\\",\\\"to\\\":\\\"\t\\u1E34\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1038\t\\\",\\\"to\\\":\\\"\t\\u1E35\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1039\t\\\",\\\"to\\\":\\\"\t\\u1E36\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u103A\t\\\",\\\"to\\\":\\\"\t\\u1E37\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u103B\t\\\",\\\"to\\\":\\\"\t\\u1E38\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u103C\t\\\",\\\"to\\\":\\\"\t\\u1E39\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u103D\t\\\",\\\"to\\\":\\\"\t\\u1E3A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1040\t\\\",\\\"to\\\":\\\"\t\\u1E3B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1041\t\\\",\\\"to\\\":\\\"\t\\u1E3C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1042\t\\\",\\\"to\\\":\\\"\t\\u1E3D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1043\t\\\",\\\"to\\\":\\\"\t\\u1E3E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1044\t\\\",\\\"to\\\":\\\"\t\\u1E3F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1045\t\\\",\\\"to\\\":\\\"\t\\u1E40\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1046\t\\\",\\\"to\\\":\\\"\t\\u1E41\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1047\t\\\",\\\"to\\\":\\\"\t\\u1E42\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1048\t\\\",\\\"to\\\":\\\"\t\\u1E43\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1049\t\\\",\\\"to\\\":\\\"\t\\u1E44\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u104A\t\\\",\\\"to\\\":\\\"\t\\u1E45\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u104B\t\\\",\\\"to\\\":\\\"\t\\u1E46\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u104C\t\\\",\\\"to\\\":\\\"\t\\u1E47\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u104D\t\\\",\\\"to\\\":\\\"\t\\u1E48\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u104E\t\\\",\\\"to\\\":\\\"\t\\u1E49\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u104F\t\\\",\\\"to\\\":\\\"\t\\u1E4A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u105A\t\\\",\\\"to\\\":\\\"\t\\u1E4B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1060\t\\\",\\\"to\\\":\\\"\t\\u1E4C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1061\t\\\",\\\"to\\\":\\\"\t\\u1E4D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1062\t\\\",\\\"to\\\":\\\"\t\\u1E4E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1063\t\\\",\\\"to\\\":\\\"\t\\u1E4F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1064\t\\\",\\\"to\\\":\\\"\t\\u1E50\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1065\t\\\",\\\"to\\\":\\\"\t\\u1E51\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1066\t\\\",\\\"to\\\":\\\"\t\\u1E52\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1067\t\\\",\\\"to\\\":\\\"\t\\u1E53\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1068\t\\\",\\\"to\\\":\\\"\t\\u1E54\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1069\t\\\",\\\"to\\\":\\\"\t\\u1E55\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u106A\t\\\",\\\"to\\\":\\\"\t\\u1E56\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u106B\t\\\",\\\"to\\\":\\\"\t\\u1E57\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u106C\t\\\",\\\"to\\\":\\\"\t\\u1E58\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u106D\t\\\",\\\"to\\\":\\\"\t\\u1E59\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u106E\t\\\",\\\"to\\\":\\\"\t\\u1E5A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u106F\t\\\",\\\"to\\\":\\\"\t\\u1E5B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1070\t\\\",\\\"to\\\":\\\"\t\\u1E5C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1071\t\\\",\\\"to\\\":\\\"\t\\u1E5D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1072\t\\\",\\\"to\\\":\\\"\t\\u1E5E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1073\t\\\",\\\"to\\\":\\\"\t\\u1E5F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1074\t\\\",\\\"to\\\":\\\"\t\\u1E60\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1075\t\\\",\\\"to\\\":\\\"\t\\u1E61\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1076\t\\\",\\\"to\\\":\\\"\t\\u1E62\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1077\t\\\",\\\"to\\\":\\\"\t\\u1E63\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1078\t\\\",\\\"to\\\":\\\"\t\\u1E64\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1079\t\\\",\\\"to\\\":\\\"\t\\u1E65\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u107A\t\\\",\\\"to\\\":\\\"\t\\u1E66\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u107B\t\\\",\\\"to\\\":\\\"\t\\u1E67\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u107C\t\\\",\\\"to\\\":\\\"\t\\u1E68\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u107D\t\\\",\\\"to\\\":\\\"\t\\u1E69\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u107E\t\\\",\\\"to\\\":\\\"\t\\u1E6A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u107F\t\\\",\\\"to\\\":\\\"\t\\u1E6B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1080\t\\\",\\\"to\\\":\\\"\t\\u1E6C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1081\t\\\",\\\"to\\\":\\\"\t\\u1E6D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1082\t\\\",\\\"to\\\":\\\"\t\\u1E6E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1083\t\\\",\\\"to\\\":\\\"\t\\u1E6F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1084\t\\\",\\\"to\\\":\\\"\t\\u1E70\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1085\t\\\",\\\"to\\\":\\\"\t\\u1E71\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1086\t\\\",\\\"to\\\":\\\"\t\\u1E72\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1087\t\\\",\\\"to\\\":\\\"\t\\u1E73\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1088\t\\\",\\\"to\\\":\\\"\t\\u1E74\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1089\t\\\",\\\"to\\\":\\\"\t\\u1E75\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u108A\t\\\",\\\"to\\\":\\\"\t\\u1E76\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u108B\t\\\",\\\"to\\\":\\\"\t\\u1E77\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u108C\t\\\",\\\"to\\\":\\\"\t\\u1E78\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u108D\t\\\",\\\"to\\\":\\\"\t\\u1E79\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u108E\t\\\",\\\"to\\\":\\\"\t\\u1E7A\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u108F\t\\\",\\\"to\\\":\\\"\t\\u1E7B\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1090\t\\\",\\\"to\\\":\\\"\t\\u1E7C\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1091\t\\\",\\\"to\\\":\\\"\t\\u1E7D\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1092\t\\\",\\\"to\\\":\\\"\t\\u1E7E\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1094\t\\\",\\\"to\\\":\\\"\t\\u1E7F\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1095\t\\\",\\\"to\\\":\\\"\t\\u1E80\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1096\t\\\",\\\"to\\\":\\\"\t\\u1E81\t\\\"},\"\n +\t\" {\\\"from\\\": \\\"\t\\u1097\t\\\",\\\"to\\\":\\\"\t\\u1E82\t\\\"}\" + \"]\";\n if(!Zawgyi)\n {\n \tString temp = (String) ZawGyiToUni(myString1, false);\n \treturn replacewithSan(uni, temp);\n }\n else {\n return replacewithSan(uni, myString1);\n }\n }", "public static String[] processPageReturn(String data){\n\t\t\n\t\tString videoAddress = null;\n\t\t\n\t\tPattern pat = Pattern.compile(\",\\\"res\\\":\\\\[(.*?)\\\\]\");\n\t\tMatcher match = pat.matcher(data);\n\n\t\tif (match.find()){\n\t\t\tString temp = match.group(match.groupCount());\n\t\t\t\n\t\t\tpat = Pattern.compile(\"\\\"u\\\":\\\"(.*?)\\\"\");\n\t\t\tmatch = pat.matcher(temp);\n\t\t\t\n\t\t\tif (match.find()){\n\t\t\t\tBase64 b64 = new Base64();\n\t\t\t\tvideoAddress = new String(b64.decode(match.group(1)));\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tSystem.err.println(\"error\");\n\t\t\t\n\t\t}\n\t\t\n\t\tString videoTitle = decodePattern(data,\"\\\"video_details\\\":\\\\{\\\"video\\\":\\\\{\\\"title\\\":\\\"(.*?)\\\"\");\n\t\t\n\t\treturn new String[]{videoAddress,videoTitle};\n\t\t\n\t}", "private String[] readPlayers(Map<String,Object> sessionAttribute){\n Object spielerNamen2 = sessionAttribute.get(Parameter.SPIELER_NAMEN);\n System.out.println(spielerNamen2.toString());\n String convertSpielerNamen = spielerNamen2.toString();\n convertSpielerNamen = convertSpielerNamen.replace(\"[\", \"\");\n convertSpielerNamen = convertSpielerNamen.replace(\"]\", \"\");\n return convertSpielerNamen.split(\", \");\n }", "public String genresListText(Song [] songList){\n\t\t\n\t\tString text = \"\";\n\t\t\n\t\tfor(int i=0; i<songList.length; i++){\n\t\t\n\t\t\tif(songList[i]!=null){\n\t\t\t\tif( (i>0)&&(songList[i-1].getSongGenre().equals(songList[i].getSongGenre()))){ \n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\ttext+= songList[i].getSongGenre() + \",\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn text;\n\t}", "public final String mo102948e() {\n return \"shoot-video\";\n }", "private String addIDsFilmGenre(List<FilmGenre> list) {\n\t\tString iD = \"\";\n\t\tfor( int i = 0 ; i < list.size(); i++ ){\n\t\t\tif( i == list.size() - 1 ){\n\t\t\t\tiD = iD + list.get( i ).iD;\n\t\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tiD = iD + list.get( i ).iD + DEFAULT_DELIMMTER;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn iD;\n\t}", "@Override\n\t\t\tpublic void onLoadVideo(String result) {\n\t\t\t}", "String[] chiediSecondaScommessa();", "public ArrayList<Resource> extractResourceListFromText(String rawText) {\n\n ArrayList<Resource> resourceList = new ArrayList<>();\n\n if (!TextUtils.isEmpty(rawText)) {\n\n /* Extraction of all video resource\n * First if text contains '<figure' get list of text from \"<figure\" to \"</figure>\"\n * Then if resource-type=\"video\" is in each figure text that means we need to extract it otherwise no action needed\n * Then split the figure string from 'comma' */\n if (rawText.contains(\"<figure\")) {\n\n ArrayList<String> listFigureVideo = getStringListFromHtmlText(rawText, \"<figure\", \"</figure>\");\n\n if (!listFigureVideo.isEmpty()) {\n\n for (int i = 0; i < listFigureVideo.size(); i++) {\n\n if (listFigureVideo.get(i).contains(\"resource-type=\\\"video\\\"\")) {\n\n String figureVideoString = listFigureVideo.get(i);\n ArrayList<String> commaSeparatedList = new ArrayList<>(Arrays.asList(figureVideoString.split(\",\")));\n\n for (int j = 0; j < commaSeparatedList.size(); j++) {\n\n String separatedText = commaSeparatedList.get(j);\n\n if (!separatedText.contains(\"displayResourceFullScreen\")\n && (separatedText.contains(\".youtube.com/\") || separatedText.contains(\"vimeo.com/\"))) {\n\n String resourceUrlVideo = separatedText;\n\n if (resourceUrlVideo.startsWith(\"&quot;\")) {\n resourceUrlVideo = resourceUrlVideo.replace(\"&quot;\", \"\");\n }\n if (resourceUrlVideo.endsWith(\"&quot;\")) {\n resourceUrlVideo = resourceUrlVideo.replace(\"&quot;\", \"\");\n }\n\n Resource resourceVideo = new Resource();\n resourceVideo.setUrl(resourceUrlVideo);\n resourceVideo.setUrlMain(resourceUrlVideo);\n resourceVideo.setResourceType(Resource.TYPE_RESOURCE_VIDEO);\n\n if (resourceUrlVideo.contains(\".youtube.com/\")) {\n resourceVideo.setType(mContext.getString(R.string.typeYouTubeVideo));\n } else if (resourceUrlVideo.contains(\"vimeo.com/\")) {\n resourceVideo.setType(mContext.getString(R.string.typeVimeoVideo));\n }\n\n if (listFigureVideo.get(i).contains(\"<img\")) {\n String resourceUrlSrc = getStringFromHtmlTextAfterTagRemoval(listFigureVideo.get(i), ConstantUtil.HTML_IMAGE_SRC_TAG, ConstantUtil.HTML_DOUBLE_QUOTE);\n resourceVideo.setUrlThumbnail(resourceUrlSrc);\n }\n\n resourceList.add(resourceVideo);\n\n /* First time we get our desired url of video, we breaks the loop;\n * since after this unnecessary url(s) might add */\n break;\n\n }\n }\n }\n }\n }\n\n\n }\n\n\n /*Extraction of all image resource*/\n ArrayList<String> list = getStringListFromHtmlText(rawText, ConstantUtil.HTML_IMAGE_START_TAG, ConstantUtil.HTML_END_TAG);\n\n if (!list.isEmpty()) {\n for (int i = 0; i < list.size(); i++) {\n\n if (!TextUtils.isEmpty(list.get(i)) && !list.get(i).contains(\"file:\")) {\n\n /*if list.get(i) contains resource-type=\"video\" then do not take\n that image since it is for video resource*/\n if (!list.get(i).contains(\"resource-type=\\\"video\\\"\")) {\n\n String resourceUrl = getStringFromHtmlTextAfterTagRemoval(list.get(i), ConstantUtil.HTML_IMAGE_SRC_TAG, ConstantUtil.HTML_DOUBLE_QUOTE);\n\n Resource resourceQue = new Resource();\n resourceQue.setUrl(resourceUrl);\n resourceQue.setUrlMain(resourceUrl);\n\n String mimeType = URLConnection.guessContentTypeFromName(resourceUrl);\n if (!TextUtils.isEmpty(mimeType) && mimeType.contains(ConstantUtil.TYPE_IMAGE)) {\n\n resourceQue.setUrlThumbnail(resourceUrl);\n resourceQue.setResourceType(Resource.TYPE_RESOURCE_IMAGE);\n\n }\n\n resourceList.add(resourceQue);\n }\n }\n\n }\n }\n\n }\n\n return resourceList;\n\n }", "private String elaboraAvvisoScrittura() {\n String testo = VUOTA;\n\n if (usaHeadNonScrivere) {\n testo += TAG_NON_SCRIVERE;\n testo += A_CAPO;\n }// end of if cycle\n\n return testo;\n }", "private String[] createDvdListWithIds() {\n if (dao.listAll().size() > 0) {\n //create string array set to the size of the dvds that exist\n String[] acceptable = new String[dao.listAll().size()];\n //index counter\n int i = 0;\n //iterate through dvds that exist\n for (DVD currentDVD : dao.listAll()) {\n //at the index set the current Dvd's id, a delimeter, and the title\n acceptable[i] = currentDVD.getId() + \", \" + currentDVD.getTitle();\n //increase the index counter\n i++;\n }\n //return the string array\n return acceptable;\n }\n return null;\n }", "private List<String> build() {\n List<String> ags = new ArrayList<>();\n ags.add(\"European Union Chromosome 3 Arabidopsis Sequencing Consortium\");\n ags.add(\"Institute for Genomic Research\");\n ags.add(\"Kazusa DNA Research Institute\");\n return ags;\n }", "private String literal(Array list) {\n StringBuffer buffer = new StringBuffer();\n \n buffer.append(\"(\");\n for (int i = 0; i < list.size(); i++) {\n if (i > 0) {\n buffer.append(\",\");\n }\n buffer.append(literal(list.get(i)));\n }\n buffer.append(\")\");\n return buffer.toString();\n }", "@Override\n public ArrayList<String> Crear(){\n setVida(3500);\n Creado.add(0, Integer.toString(getVida()));\n Creado.add(1,\"150\");\n Creado.add(2,\"100\");\n Creado.add(3,\"70\");\n return Creado;\n }", "private static String actualParametersToString(Class[] pts) {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < pts.length; i++) {\n result.append(\"p\").append(i);\n if (i < pts.length - 1)\n result.append(\",\");\n }\n return result.toString();\n }", "public static void main(String[] args) {\n String asNombres[]=new String[TAMA];\r\n //CAPTURAR 5 NNOMBRES \r\n Scanner sCaptu = new Scanner (System.in);\r\n for (int i = 0; i < TAMA; i++) {\r\n System.out.println(\"Tu nombre :\");\r\n asNombres[i]=sCaptu.nextLine();\r\n }\r\n for (String asNombre : asNombres) {\r\n System.out.println(\"Nombre: \" + asNombre);\r\n \r\n }\r\n //CREAR UNA COPIA DEL ARREGLO\r\n /*String asCopia[]=asNombre;//Esto no funciona\r\n asNombre[0]=\"HOLA MUNDO\";\r\n System.out.println(asCopia[0]);*/\r\n \r\n String asCopia[]=new String[TAMA];\r\n for (int i = 0; i < TAMA; i++) {\r\n asCopia[i]=asNombres[i];\r\n \r\n }\r\n asNombres[0]=\"HOLA MUNDO\";\r\n System.out.println(\"Nombre = \" + asNombres[0]);\r\n System.out.println(\"Copia = \" + asCopia[0]);\r\n }", "public static void main(String[] args) {\n\t\t\t\tArrayList<String> rezultat = new ArrayList<String>();\r\n\r\n\t\t\t\tPisiCitaj pisiCitaj = new PisiCitaj();\r\n\t\t\t\tArrayList<String> procitanFajl = pisiCitaj.procitajFajl(\"src\\\\konverzijaFajlova1709\\\\fajlovi\\\\Primer.sub\");\r\n\t\t\t\tint slucaj = 1;\r\n\r\n\t\t\t\tswitch (slucaj) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tMicroDVD micro0 = new MicroDVD();\r\n\t\t\t\t\trezultat = micro0.ulazMPlayerSUB(procitanFajl);\r\n\t\t\t\t\tmicro0.ispisiFajl(args[2], rezultat);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tSubRipSRT SubRip1 = new SubRipSRT();\r\n\t\t\t\t\trezultat = SubRip1.ulazMPlayerSUB(procitanFajl);\r\n\t\t\t\t\tSubRip1.ispisiFajl(\"src\\\\konverzijaFajlova1709\\\\fajlovi\\\\MplayerToSubRip.srt\", rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tMicroDVD micro2 = new MicroDVD();\r\n\t\t\t\t\trezultat = micro2.ulazSubRipSRT(procitanFajl);\r\n\t\t\t\t\tmicro2.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tMPlayerSUB mPlayer3 = new MPlayerSUB();\r\n\t\t\t\t\trezultat = mPlayer3.ulazSubRipSRT(procitanFajl);\r\n\t\t\t\t\tmPlayer3.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tSubRipSRT SubRip4 = new SubRipSRT();\r\n\t\t\t\t\trezultat = SubRip4.ulazMicroDVDtxt(procitanFajl);\r\n//\t\t\t\t\tSubRip4.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tMPlayerSUB mPlayer5 = new MPlayerSUB();\r\n\t\t\t\t\trezultat = mPlayer5.ulazMicroDVDtxt(procitanFajl);\r\n//\t\t\t\t\tmPlayer5.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public String playlistToString(){\n String out = \"\";\n out =\"********** Playlist **********\\n\"+\n \"** Title: \"+name+\"\\n\"+\n \"** Duration: \"+timeToFormat(updateDuration())+\"\\n\"+\n \"** Genre: \"+changeGendersOfPlaylist(playlistAllGenders())+\"\\n\";\n\n return out;\n }", "@Override\n\tpublic String toString(){\n return description + \"\\n\" + SequenceUtils.format(sequence);\n\t}", "public String showSong(){\n String dataSong =\"\";\n for(int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n dataSong += poolSong[i].showDataSong();\n }\n }\n return dataSong;\n }", "@Override\n\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t}", "public void mo88640a(List<String> list) {\n List<String> stringList = RxPreferences.INSTANCE.getStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), new ArrayList());\n stringList.addAll(0, list);\n RxPreferences.INSTANCE.putStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), (List) StreamSupport.m150134a(stringList).mo131128a(new AbstractC32239o(new HashSet(stringList)) {\n /* class com.zhihu.android.p1480db.fragment.customview.C18240x255e53c2 */\n private final /* synthetic */ HashSet f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // java8.util.p2234b.AbstractC32239o\n public final boolean test(Object obj) {\n return DbEditorSuggestTagCustomView.m93354a(this.f$0, (String) obj);\n }\n }).mo131126a(5).mo131125a(Collectors.m150203a($$Lambda$ofunvu1bqmYbfXGEtxXaV_csE4M.INSTANCE)));\n }", "@Test\n public void testToString() {\n Command cmd = new Command(\"add\");\n \n Value dialogic = new Value(\"dialogic\");\n dialogic.add(new Parameter(\"module_id\"));\n \n Value dahdi = new Value(\"dahdi\");\n dahdi.add(new Parameter(\"span\"));\n dahdi.add(new Parameter(\"channel\"));\n \n Parameter linkset = new Parameter(\"linkset\", new Value[]{dialogic, dahdi});\n Parameter opc = new Parameter(\"opc\");\n Parameter apc = new Parameter(\"apc\");\n Parameter ni = new Parameter(\"network indicator\");\n \n cmd.add(linkset);\n cmd.add(opc);\n cmd.add(apc);\n cmd.add(ni);\n \n System.out.println(cmd);\n }", "private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }", "private String getTextDescription(int i) {\r\n\t\tString text = \"\"; \r\n\t\t//Added descriptions for each new destination and updated the font color to something more user friendly.\r\n\t\tif (i==1){\r\n\t\t\ttext = \"<html><body><font size='5' color='white'>#1 The Grand Canyon.</font> <br><font color='white'>\"\r\n\t\t\t\t\t+ \"Spectacular canyon views and hiking.</font></body></html>\";\r\n\t\t} else if (i==2){\r\n\t\t\ttext = \"<html><body><font size='5' color='white'>#2 Taino Beach Grand Bahama, The Bahamas.</font> <br>\"\r\n\t\t\t\t\t+ \"<font color='white'>Relax on one of the most breathtaking\"\r\n\t\t\t\t\t+ \"beaches in the world or go for a hike on one of the amazing trails.</font></body></html>\";\r\n\t\t} else if (i==3){\r\n\t\t\ttext = \"<html><body><font size='5' color='white'>#3 Niseko Village, Hokkaido Japan</font><br>\"\r\n\t\t\t\t\t+ \"<font color='white'>Take a dip in the legendary hot springs, go for a skiing or a hike, or just relax in this snowy village.\"\r\n\t\t\t\t\t+ \"</font></body></html>\";\r\n\t\t} else if (i==4){\r\n\t\t\ttext = \"<html><body><font size='5' color='white'>#4 Gerakini beach, Greece</font>\"\r\n\t\t\t\t\t+ \"<br><font color='white'>Spend some time in one of the most famous resort towns in the world.</font></body></html>\";\r\n\t\t} else if (i==5){\r\n\t\t\ttext = \"<html><body><font size='5' color='white'>#5 Cancun, Mexico</font><br>\"\r\n\t\t\t\t\t+ \"<font color='white'>Come relax and recover on the most beautiful beaches in the world or spend some time\"\r\n\t\t\t\t\t+ \"in one of their world-renowned resorts.</font></body></html>\";\r\n\t\t}\r\n\t\treturn text;\r\n\t}", "private ArrayList<String> createNewListWithCombinedDescription(ArrayList<String> parameters) {\n ArrayList<String> resultArray = new ArrayList<String>();\n int lastWordIndex = findIndexOfLastWord(parameters);\n String description = createDescription(parameters, lastWordIndex);\n if (!(description == null)) {\n ArrayList<String> timeArray = getTimeArray(parameters, lastWordIndex);\n resultArray.add(description);\n resultArray.addAll(timeArray);\n } else {\n resultArray = null;\n }\n return resultArray;\n }", "public static void main (String args []) {\n\r\n String str = \"\\\"क\\\", \\\"का\\\", \\\"कि\\\", \\\"की\\\", \\\"कु\\\", \\\"कू\\\", \\\"के\\\", \\\"कै\\\", \\\"को\\\", \\\"कौ\\\", \\\"कं\\\", \\\"क:\\\"\" ;\r\n String strEng = \"\\\"ka\\\", \\\"kā\\\", \\\"ki\\\", \\\"kī\\\", \\\"ku\\\", \\\"kū\\\", \\\"kē\\\", \\\"kai\\\", \\\"ko\\\", \\\"kau\\\", \\\"kṁ\\\", \\\"ka:\\\"\" ;\r\n\r\n String additionalConsonants = \"\\\"क़\\\", \\\"क़ा\\\", \\\"क़ि\\\", \\\"क़ी\\\", \\\"क़ु\\\", \\\"क़ू\\\", \\\"क़े\\\", \\\"क़ै\\\", \\\"क़ो\\\", \\\"क़ौ\\\", \\\"क़ं\\\", \\\"क़:\\\"\"; \r\n String additionalConsonantsEng = \"\\\"qa\\\", \\\"qā\\\", \\\"qi\\\", \\\"qī\\\", \\\"qu\\\", \\\"qū\\\", \\\"qē\\\", \\\"qai\\\", \\\"qo\\\", \\\"qau\\\", \\\"qṁ\\\", \\\"qa:\\\"\" ;\r\n\r\n //String str = \"क, का, कि, की, कु, कू, के, कै, को, कौ, कं, क:\" ;\r\n \r\n \r\n \r\n //generateNP(str);\r\n //generateEN(strEng);\r\n //System.out.println();\r\n generateNPAdditionalConsonants(additionalConsonants);\r\n generateENAdditionalConsonants(additionalConsonantsEng);\r\n\r\n\r\n\r\n }", "public static void main(String[] args) {\r\n ArrayList<String> canciones = new ArrayList<>();\r\n\r\n// Le agregamos datos\r\n canciones.add(\"Canciones 1\");\r\n canciones.add(\"Canciones 2\");\r\n canciones.add(\"Canciones 3\");\r\n\r\n// Método 1\r\n System.out.println(\"Recorriendo con método 1\");\r\n for (String cancion : canciones) {\r\n System.out.println(cancion);\r\n }\r\n\r\n// Método 2\r\n System.out.println(\"Recorriendo con método 2\");\r\n for (int x = 0; x < canciones.size(); x++) {\r\n String cancion = canciones.get(x);\r\n System.out.println(cancion);\r\n }\r\n// Método 3\r\n System.out.println(\"Recorriendo con método 3\");\r\n canciones.forEach((cancion) -> {\r\n System.out.println(cancion); });\r\n }", "public List<String> deaIppm(){\n List<String> script = new ArrayList<>();;\n Iterator<Ippm> it = ippmList.iterator();\n while (it.hasNext()){\n Ippm temp = it.next();\n script.add( \"DEA IPPM: ANI=\"+temp.getAni()+\n \",PATHID=\"+temp.getPathId() +\"; {\"+rncName+\"}\");\n \n \n }\n \n return script;\n }", "private static void listFormat() {\n\t\tSystem.out.println(\"List of all your movies\");\n\t\tSystem.out.println(\"=======================\");\n\t\tfor (int i = 0; i < movList.size(); i++) {\n\t\t\tSystem.out.println(movList.get(i));\n\t\t}\n\t}", "@Override\n public String toString(){\n return \"G(\"+this.getVidas()+\")\";\n }", "List<String> mo5877c(String str);", "public String altaGenero(){\n int id = coleccionGenero.size() + 1;\n Genero gen = new Genero(id, generoSeleccionado);\n //graba en bd\n GeneroService serv = new GeneroService();\n //refrescar otra vez la lista\n return \"lista-genero\";\n }", "public List<String> actIppm(){\n List<String> script = new ArrayList<>();\n Iterator<Ippm> it = ippmList.iterator();\n while (it.hasNext()){\n Ippm temp = it.next();\n script.add(\"ACT IPPM:ANI=\"+temp.getAni()+\n \",PATHID=\"+temp.getPathId()+\n \",ISQOSPATH=\"+temp.getIsqosPath()+\n \",PMPRD=\"+temp.getPmPrd()+\n \",LOSTPKTDETECTSW=\"+temp.getLostPktDetectSw()+\"; {\"+rncName+\"}\");\n }\n return script;\n }", "public void mo71540w() {\n boolean z;\n VideoItemParams requestId = VideoItemParams.newBuilder().setFragment(this.f73947d).setAweme(this.f73950g).setAwemeFromPage(this.f73953m).setEventType(this.f73944a).setMyProfile(this.f73946c).setPageType(this.f73954n).setEnterMethodValue(this.f74254j).setRequestId(this.f73952l);\n if (this.f74252h != null) {\n this.f74252h.mo60134a(\"video_params\", (Object) requestId);\n }\n mo71773u();\n User author = this.f73950g.getAuthor();\n if (author != null) {\n this.mTitleView.setText(this.f73949f.getString(R.string.b5s, new Object[]{author.getNickname()}));\n this.mTitleView.getPaint().setFakeBoldText(true);\n } else {\n this.mTitleView.setText(\"\");\n }\n if (this.f73950g == null || this.f73950g.isCanPlay()) {\n this.mTitleView.setVisibility(0);\n } else {\n this.mTitleView.setVisibility(4);\n }\n this.tagLayout.setEventType(this.f73944a);\n List videoLabels = this.f73950g.getVideoLabels();\n m91744a(videoLabels);\n if (!RelationLabelHelper.hasDuoShanLabel(this.f73950g)) {\n if (C6319n.m19594a(this.f73944a, \"homepage_hot\")) {\n this.tagLayout.mo61051c(this.f73950g, videoLabels, new C23440a(7, 20));\n } else {\n this.tagLayout.mo61050b(this.f73950g, videoLabels, new C23440a(7, 20));\n }\n }\n if (TextUtils.isEmpty(this.f73950g.getExtra()) || !C6399b.m19928c()) {\n this.mTxtExtra.setVisibility(8);\n } else {\n this.mTxtExtra.setText(this.f73950g.getExtra());\n this.mTxtExtra.setVisibility(0);\n }\n if (this.f73950g.getUserDigg() == 1) {\n z = true;\n } else {\n z = false;\n }\n mo71770a(z);\n if (this.f73953m == 1) {\n mo71533d(m91740N());\n }\n AwemeStatus status = this.f73950g.getStatus();\n if (status == null) {\n this.mAwemeInCheckLayout.setVisibility(8);\n } else if (status.isInReviewing()) {\n this.mAwemeInCheckLayout.setVisibility(0);\n } else {\n this.mAwemeInCheckLayout.setVisibility(8);\n }\n }" ]
[ "0.62373555", "0.5889751", "0.56044585", "0.54957896", "0.5345298", "0.53435916", "0.5342712", "0.5279507", "0.5271787", "0.5262263", "0.5248681", "0.5244611", "0.520149", "0.51974225", "0.5197011", "0.518518", "0.51680446", "0.5153861", "0.51495624", "0.51446986", "0.5143638", "0.512867", "0.51203996", "0.51148343", "0.5112948", "0.50984466", "0.5087901", "0.5085626", "0.50785345", "0.50782526", "0.5077405", "0.5075814", "0.5075211", "0.5069881", "0.5062623", "0.505226", "0.50516355", "0.5037292", "0.50348115", "0.50341314", "0.50271976", "0.5024353", "0.50137436", "0.5006792", "0.49933898", "0.49892405", "0.4988425", "0.4987501", "0.49856395", "0.49700692", "0.49658746", "0.495941", "0.4958417", "0.4937736", "0.49366274", "0.49362168", "0.49315453", "0.4921926", "0.49210933", "0.4920942", "0.49175784", "0.49097052", "0.49078348", "0.49077016", "0.48931867", "0.4887187", "0.48762003", "0.48672962", "0.48663646", "0.48613545", "0.48605743", "0.48564684", "0.4852632", "0.48404568", "0.48388368", "0.4836918", "0.48347005", "0.4833076", "0.48308095", "0.4827475", "0.4824772", "0.48172376", "0.481717", "0.48146996", "0.4813645", "0.48127675", "0.4811859", "0.48082075", "0.48072913", "0.47989783", "0.47987947", "0.479224", "0.47914174", "0.4788535", "0.4788182", "0.4787101", "0.47865525", "0.47860217", "0.47825396", "0.4777599" ]
0.5516283
3
Restitusce una lista di videogiochi avente come piattaforma la stringa passata come argomento
List<Videogioco> retriveByPiattaforma(String piattaforma);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static VideoHolder getAllVideo(String ligne) throws IOException {\n String[] vid = ligne.split(\" \");\n VideoHolder videoHolder = new VideoHolder();\n for (int i = 0; i < vid.length; i++) {\n videoHolder.add(new Video(i, Integer.parseInt(vid[i])));\n }\n return videoHolder;\n }", "public TiendaVideojuegos(String datos)\n {\n listaDeVideojuegos = new ArrayList<Videojuegos>();\n codVideojuego = 0;\n try{\n File archivo = new File(datos);\n Scanner sc = new Scanner(archivo);\n while (sc.hasNextLine()) {\n String[] datosVideojuego = sc.nextLine().split(\"#\");\n String titulo = datosVideojuego[0];\n String plataforma = datosVideojuego[1];\n int dia = Integer.parseInt(datosVideojuego[2]);\n int mes = Integer.parseInt(datosVideojuego[3]);\n int anyo = Integer.parseInt(datosVideojuego[4]);\n addVideojuego(titulo, dia, mes, anyo, plataforma);\n }\n \n sc.close();\n }\n catch (FileNotFoundException a) {\n a.printStackTrace();\n }\n \n }", "public String[] list(String text, String von, String bis) throws RemoteException;", "private static void getInfos(String ligne) throws IOException {\n String[] info = ligne.split(\" \");\n nbVideo = Integer.parseInt(info[0]);\n nbEndpoint = Integer.parseInt(info[1]);\n nbDescri = Integer.parseInt(info[2]);\n nbCache = Integer.parseInt(info[3]);\n tailleCache = Integer.parseInt(info[4]);\n }", "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(video);\n\t\tbuffer.append(\" [\");\n\t\tbuffer.append(numOwned);\n\t\tbuffer.append(\",\");\n\t\tbuffer.append(numOut);\n\t\tbuffer.append(\",\");\n\t\tbuffer.append(numRentals);\n\t\tbuffer.append(\"]\");\n\t\treturn buffer.toString();\n\t}", "public void setVideourl(String videourl) {\n this.videourl = videourl;\n }", "private void setdata() {\n stringArrayList = new ArrayList<>();\n stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955317188/hls/main.m3u8\");\n /*stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955657508/hls/main.m3u8\");*/\n /*stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955317188/hls/main.m3u8\");\n stringArrayList.add(\"https://d2ve01upp8znde.cloudfront.net/file-1542955657508/hls/main.m3u8\");*/\n /* stringArrayList.add(\"https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_4x3/bipbop_4x3_variant.m3u8\");*/\n /*stringArrayList.add(\"https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8\");*/\n /* stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");\n stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");\n stringArrayList.add(\"http://184.72.239.149/vod/smil:BigBuckBunny.smil/playlist.m3u8\");*/\n }", "public String[] getVideoDevicesList();", "private String[] readPlayers(Map<String,Object> sessionAttribute){\n Object spielerNamen2 = sessionAttribute.get(Parameter.SPIELER_NAMEN);\n System.out.println(spielerNamen2.toString());\n String convertSpielerNamen = spielerNamen2.toString();\n convertSpielerNamen = convertSpielerNamen.replace(\"[\", \"\");\n convertSpielerNamen = convertSpielerNamen.replace(\"]\", \"\");\n return convertSpielerNamen.split(\", \");\n }", "private void listFileMyVideo() throws JSONException {\n\n listFileMyVideo = new JSONArray();\n\n int count = countFileMyVideo();\n\n for (int i = 0; count > i; i++) {\n\n JSONObject obj = new JSONObject();\n obj.put(\"name\", get_FileName(getPathMyVideo(), i));\n obj.put(\"path\", get_FilePath(getPathMyVideo(), i));\n\n listFileMyVideo.put(obj);\n }\n }", "public final void mo61580c(boolean z, String str, int i) {\n boolean z2;\n int i2 = 1;\n AppMethodBeat.m2504i(131589);\n this.iad = i;\n this.bkJ = z;\n PString pString = new PString();\n pString.value = str;\n if (C5046bo.isNullOrNil(pString.value) || pString.value.indexOf(\"file://\") != 0) {\n z2 = false;\n } else {\n pString.value = pString.value.substring(7);\n z2 = true;\n }\n this.iae = z2;\n this.url = pString.value;\n if (this.hZY == null) {\n if (m81322a(this.bkJ, this.url, \"\")) {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use common video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFT();\n } else {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use mm video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFU();\n }\n } else if (m81322a(this.bkJ, this.url, \"\")) {\n if (this.hZY instanceof MMVideoView) {\n this.hZY.stop();\n this.hZY.cpU();\n removeView((View) this.hZY);\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use common video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFT();\n } else {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use last common video view !\", Integer.valueOf(hashCode()));\n this.hZY.stop();\n i2 = 0;\n }\n } else if (this.hZY instanceof CommonVideoView) {\n this.hZY.stop();\n this.hZY.cpU();\n removeView((View) this.hZY);\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use mm video view !\", Integer.valueOf(hashCode()));\n this.hZY = aFU();\n } else {\n C4990ab.m7417i(\"MicroMsg.AppBrandVideoWrapper\", \"%d use last mm video view !\", Integer.valueOf(hashCode()));\n this.hZY.stop();\n i2 = 0;\n }\n setScaleType(this.iab);\n mo61579as(this.iac);\n setMute(this.fdh);\n if (i2 != 0) {\n setVideoFooterView(this.iaa);\n addView((View) this.hZY, new LayoutParams(-1, -1));\n }\n this.hZY.mo9063c(this.bkJ, this.url, this.iad);\n C7305d.post(new C383972(), \"AppBrandVideo_checkVideoUrl\");\n AppMethodBeat.m2505o(131589);\n }", "@Override\n\t\t\t\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t\t\t\t}", "public ArrayList<String> getAllVideosName() {\n\t\tArrayList<String> videoList = new ArrayList<String>();\n\n\t\tString selectQuery = \"SELECT * FROM \" + VivaFrame.TABLE_NAME;\n\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\n\t\t// looping through all rows and adding to list\n\t\tif (cursor.moveToFirst()) {\n\t\t\tdo {\n\t\t\t\tString videoname = new String();\n\t\t\t\tvideoname = cursor.getString(2);\n\t\t\t\t// Adding to list\n\t\t\t\tvideoList.add(videoname);\n\t\t\t} while (cursor.moveToNext());\n\t\t}\n\n\t\treturn videoList;\n\t}", "public String showPlayList(){\n String dataPlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n thePlayLists[i].uptadeDurationFormat(thePlayLists[i].uptadeDuration());\n thePlayLists[i].changeGender(thePlayLists[i].uptadeGender());\n dataPlayList += thePlayLists[i].showDatePlayList();\n }\n }\n return dataPlayList;\n }", "List<Videogioco> retriveByGenere(String genere);", "void stampaMessaggio(String messaggio);", "public static String[] processPageReturn(String data){\n\t\t\n\t\tString videoAddress = null;\n\t\t\n\t\tPattern pat = Pattern.compile(\",\\\"res\\\":\\\\[(.*?)\\\\]\");\n\t\tMatcher match = pat.matcher(data);\n\n\t\tif (match.find()){\n\t\t\tString temp = match.group(match.groupCount());\n\t\t\t\n\t\t\tpat = Pattern.compile(\"\\\"u\\\":\\\"(.*?)\\\"\");\n\t\t\tmatch = pat.matcher(temp);\n\t\t\t\n\t\t\tif (match.find()){\n\t\t\t\tBase64 b64 = new Base64();\n\t\t\t\tvideoAddress = new String(b64.decode(match.group(1)));\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tSystem.err.println(\"error\");\n\t\t\t\n\t\t}\n\t\t\n\t\tString videoTitle = decodePattern(data,\"\\\"video_details\\\":\\\\{\\\"video\\\":\\\\{\\\"title\\\":\\\"(.*?)\\\"\");\n\t\t\n\t\treturn new String[]{videoAddress,videoTitle};\n\t\t\n\t}", "public abstract List<String> getAllInstanceStrings(String params);", "@Override\n\t\t\tpublic void onLoadVideo(String result) {\n\t\t\t}", "public void videoSearchDownlodedObject(String removeVideoID){}", "public String showPlayListPublic(){\n String playListPublic = \"\";\n int posicion = 0;\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n if(thePlayLists[i] instanceof PublicP){\n playListPublic += \"[\"+(posicion+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n posicion++;\n }\n }\n }\n return playListPublic;\n }", "@Override\n\t\t\t\t\tpublic void onLoadVideo(String result) {\n\n\t\t\t\t\t}", "public static void main(String[] args) {\n\t\tRede plataforma = new Rede(\"Comeu Bola no Estudo\");\r\n\t\tInscrito Pessoal = new Inscrito(\"Pessoal,\");\r\n\t\tInscrito Academica = new Inscrito(\"Academica,\");\r\n\t\tInscrito Dani = new Inscrito(\"Dani,\");\r\n\t\tplataforma.subscribeToRede(Pessoal);\r\n\t\tplataforma.subscribeToRede(Academica);\r\n\t\tplataforma.subscribeToRede(Dani);\r\n\t\t\r\n\t\tplataforma.addVideo(\" 'Chorando no exame de POO!'\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public ArrayList<Resource> extractResourceListFromText(String rawText) {\n\n ArrayList<Resource> resourceList = new ArrayList<>();\n\n if (!TextUtils.isEmpty(rawText)) {\n\n /* Extraction of all video resource\n * First if text contains '<figure' get list of text from \"<figure\" to \"</figure>\"\n * Then if resource-type=\"video\" is in each figure text that means we need to extract it otherwise no action needed\n * Then split the figure string from 'comma' */\n if (rawText.contains(\"<figure\")) {\n\n ArrayList<String> listFigureVideo = getStringListFromHtmlText(rawText, \"<figure\", \"</figure>\");\n\n if (!listFigureVideo.isEmpty()) {\n\n for (int i = 0; i < listFigureVideo.size(); i++) {\n\n if (listFigureVideo.get(i).contains(\"resource-type=\\\"video\\\"\")) {\n\n String figureVideoString = listFigureVideo.get(i);\n ArrayList<String> commaSeparatedList = new ArrayList<>(Arrays.asList(figureVideoString.split(\",\")));\n\n for (int j = 0; j < commaSeparatedList.size(); j++) {\n\n String separatedText = commaSeparatedList.get(j);\n\n if (!separatedText.contains(\"displayResourceFullScreen\")\n && (separatedText.contains(\".youtube.com/\") || separatedText.contains(\"vimeo.com/\"))) {\n\n String resourceUrlVideo = separatedText;\n\n if (resourceUrlVideo.startsWith(\"&quot;\")) {\n resourceUrlVideo = resourceUrlVideo.replace(\"&quot;\", \"\");\n }\n if (resourceUrlVideo.endsWith(\"&quot;\")) {\n resourceUrlVideo = resourceUrlVideo.replace(\"&quot;\", \"\");\n }\n\n Resource resourceVideo = new Resource();\n resourceVideo.setUrl(resourceUrlVideo);\n resourceVideo.setUrlMain(resourceUrlVideo);\n resourceVideo.setResourceType(Resource.TYPE_RESOURCE_VIDEO);\n\n if (resourceUrlVideo.contains(\".youtube.com/\")) {\n resourceVideo.setType(mContext.getString(R.string.typeYouTubeVideo));\n } else if (resourceUrlVideo.contains(\"vimeo.com/\")) {\n resourceVideo.setType(mContext.getString(R.string.typeVimeoVideo));\n }\n\n if (listFigureVideo.get(i).contains(\"<img\")) {\n String resourceUrlSrc = getStringFromHtmlTextAfterTagRemoval(listFigureVideo.get(i), ConstantUtil.HTML_IMAGE_SRC_TAG, ConstantUtil.HTML_DOUBLE_QUOTE);\n resourceVideo.setUrlThumbnail(resourceUrlSrc);\n }\n\n resourceList.add(resourceVideo);\n\n /* First time we get our desired url of video, we breaks the loop;\n * since after this unnecessary url(s) might add */\n break;\n\n }\n }\n }\n }\n }\n\n\n }\n\n\n /*Extraction of all image resource*/\n ArrayList<String> list = getStringListFromHtmlText(rawText, ConstantUtil.HTML_IMAGE_START_TAG, ConstantUtil.HTML_END_TAG);\n\n if (!list.isEmpty()) {\n for (int i = 0; i < list.size(); i++) {\n\n if (!TextUtils.isEmpty(list.get(i)) && !list.get(i).contains(\"file:\")) {\n\n /*if list.get(i) contains resource-type=\"video\" then do not take\n that image since it is for video resource*/\n if (!list.get(i).contains(\"resource-type=\\\"video\\\"\")) {\n\n String resourceUrl = getStringFromHtmlTextAfterTagRemoval(list.get(i), ConstantUtil.HTML_IMAGE_SRC_TAG, ConstantUtil.HTML_DOUBLE_QUOTE);\n\n Resource resourceQue = new Resource();\n resourceQue.setUrl(resourceUrl);\n resourceQue.setUrlMain(resourceUrl);\n\n String mimeType = URLConnection.guessContentTypeFromName(resourceUrl);\n if (!TextUtils.isEmpty(mimeType) && mimeType.contains(ConstantUtil.TYPE_IMAGE)) {\n\n resourceQue.setUrlThumbnail(resourceUrl);\n resourceQue.setResourceType(Resource.TYPE_RESOURCE_IMAGE);\n\n }\n\n resourceList.add(resourceQue);\n }\n }\n\n }\n }\n\n }\n\n return resourceList;\n\n }", "public static void main(String[] args) {\n\t\t\t\tArrayList<String> rezultat = new ArrayList<String>();\r\n\r\n\t\t\t\tPisiCitaj pisiCitaj = new PisiCitaj();\r\n\t\t\t\tArrayList<String> procitanFajl = pisiCitaj.procitajFajl(\"src\\\\konverzijaFajlova1709\\\\fajlovi\\\\Primer.sub\");\r\n\t\t\t\tint slucaj = 1;\r\n\r\n\t\t\t\tswitch (slucaj) {\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tMicroDVD micro0 = new MicroDVD();\r\n\t\t\t\t\trezultat = micro0.ulazMPlayerSUB(procitanFajl);\r\n\t\t\t\t\tmicro0.ispisiFajl(args[2], rezultat);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tSubRipSRT SubRip1 = new SubRipSRT();\r\n\t\t\t\t\trezultat = SubRip1.ulazMPlayerSUB(procitanFajl);\r\n\t\t\t\t\tSubRip1.ispisiFajl(\"src\\\\konverzijaFajlova1709\\\\fajlovi\\\\MplayerToSubRip.srt\", rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tMicroDVD micro2 = new MicroDVD();\r\n\t\t\t\t\trezultat = micro2.ulazSubRipSRT(procitanFajl);\r\n\t\t\t\t\tmicro2.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tMPlayerSUB mPlayer3 = new MPlayerSUB();\r\n\t\t\t\t\trezultat = mPlayer3.ulazSubRipSRT(procitanFajl);\r\n\t\t\t\t\tmPlayer3.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tSubRipSRT SubRip4 = new SubRipSRT();\r\n\t\t\t\t\trezultat = SubRip4.ulazMicroDVDtxt(procitanFajl);\r\n//\t\t\t\t\tSubRip4.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tMPlayerSUB mPlayer5 = new MPlayerSUB();\r\n\t\t\t\t\trezultat = mPlayer5.ulazMicroDVDtxt(procitanFajl);\r\n//\t\t\t\t\tmPlayer5.ispisiFajl(args[2], rezultat);\r\n//\t\t\t\t\tfor (String string : rezultat) {\r\n//\t\t\t\t\t\tSystem.out.println(string);\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public void mo63047b(String str) {\n String str2;\n String str3;\n String str4;\n String str5;\n super.mo63047b(str);\n if (C25352e.m83221d(this.f77546j)) {\n this.f89203a.mo65916c();\n C24961b e = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play_over\").mo65283e(\"video\");\n Aweme aweme = this.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n Video video = aweme.getVideo();\n C7573i.m23582a((Object) video, \"mAweme.video\");\n e.mo65271b((long) video.getVideoLength()).mo65270a(mo75261ab());\n this.f89214bh++;\n C28418f a = C28418f.m93413a();\n C7573i.m23582a((Object) a, \"FeedSharePlayInfoHelper.inst()\");\n a.f74936f = this.f89214bh;\n if (this.f89214bh >= this.f89215bi) {\n C28418f a2 = C28418f.m93413a();\n C7573i.m23582a((Object) a2, \"FeedSharePlayInfoHelper.inst()\");\n if (!a2.f74934d) {\n Aweme aweme2 = this.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme2.getAwemeRawAd();\n if (awemeRawAd != null) {\n str3 = awemeRawAd.getWebUrl();\n } else {\n str3 = null;\n }\n if (TextUtils.isEmpty(str3)) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str4 = \"\";\n } else {\n str4 = \"video\";\n }\n b.mo65283e(str4).mo65270a(mo75261ab());\n return;\n } else if (mo75314al()) {\n mo75311ai();\n return;\n } else {\n this.f89215bi++;\n C24961b b2 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str5 = \"\";\n } else {\n str5 = \"video\";\n }\n b2.mo65283e(str5).mo65270a(mo75261ab());\n return;\n }\n }\n }\n C24961b b3 = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str2 = \"\";\n } else {\n str2 = \"video\";\n }\n b3.mo65283e(str2).mo65270a(mo75261ab());\n }\n }", "Builder addVideo(String value);", "public static List<String> getFilms(String acteur) {\n\t\tString movie = \"\";\n\t\tList<String> movies_list = new ArrayList<String>();\n\t\tString string_query = \"SELECT $title WHERE {\\n $film rdf:type dbo:Film;\\n\" + \n \" foaf:name $title;\\n dbo:starring $acteur.\\n\" + \n \"$acteur foaf:name \\\"ACTOR_NAME\\\"@en\\n}\".replaceAll(\"ACTOR_NAME\",acteur);\n\t\t\n\n ParameterizedSparqlString qs = new ParameterizedSparqlString(PREFIX +string_query);\n QueryExecution exec = QueryExecutionFactory.sparqlService(SERVICE, qs.asQuery());\n ResultSet results = exec.execSelect();\n \n while (results.hasNext()) {\n \tQuerySolution solution = results.nextSolution();\n \tmovie = solution.getLiteral(\"?title\").toString().replace(\"@en\", \"\");\n \tmovies_list.add(movie);\n }\n\t\t\n\t\treturn movies_list;\n\t}", "public String id2placa(String lst_id) {\n \n ArrayList<Movil> lst_movil = MovilBD.select();\n String arr_id[] = lst_id.split(\",\");\n String lst_placa = \"\";\n \n for (String id : arr_id) { \n for (Movil m : lst_movil) {\n String id_m = \"\" + m.getId();\n if (id_m.equals(id)) {\n String placa = \"'\" + m.getPlaca() + \"'\";\n lst_placa += (lst_placa == \"\") ? placa : \",\" + placa;\n break;\n }\n }\n }\n \n return lst_placa;\n }", "void setTitleUnitSound(List<String> listTitle);", "public void prepareList()\n {\n listImg = new ArrayList<Drawable>();\n for(int i=0;i<n;i++)\n {\n \ta.moveToPosition(i);\n \tString immagine = a.getString(0);\n \tCaricaImmagine caricaImmagineAsync = new CaricaImmagine();\n \t\tcaricaImmagineAsync.execute(new String[]{immagine});\n }\n }", "String[] chiediSecondaScommessa();", "@Override\n public void playNote(int index){\n for (int a = 0; a <3; a++){\n pStrings[index][a].pluck();\n }\n }", "public String listarSensores(){\r\n String str = \"\";\r\n for(PacienteNuvem x:pacientes){//Para cada paciente do sistema ele armazena uma string com os padroes do protocolo de comunicação\r\n str += x.getNick()+\"-\"+x.getNome()+\"#\";\r\n }\r\n return str;\r\n }", "protected static String[] parseVideoUrl(String url) {\n Pattern youtubePattern1 = Pattern.compile(\"youtube\\\\.com\\\\/watch\\\\?v=([^&#]+)\");\n Pattern youtubePattern2 = Pattern.compile(\"youtu\\\\.be\\\\/([^&#]+)\");\n Pattern youtubePlaylist = Pattern.compile(\"youtube\\\\.com\\\\/playlist\\\\?list=([^&#]+)\");\n Pattern twitchPattern = Pattern.compile(\"twitch\\\\.tv\\\\/([^&#]+)\");\n Pattern justintvPattern = Pattern.compile(\"justin\\\\.tv\\\\/([^&#]+)\");\n Pattern livestreamPattern = Pattern.compile(\"livestream\\\\.com\\\\/([^&#]+)\");\n Pattern ustreamPattern = Pattern.compile(\"ustream\\\\.tv\\\\/([^&#]+)\");\n Pattern vimeoPattern = Pattern.compile(\"vimeo\\\\.com\\\\/([^&#]+)\");\n Pattern dailymotionPattern = Pattern.compile(\"dailymotion\\\\.com\\\\/video\\\\/([^&#]+)\");\n Pattern soundcloudPattern = Pattern.compile(\"soundcloud\\\\.com\\\\/([^&#]+)\");\n Pattern googlePattern = Pattern.compile(\"docs\\\\.google\\\\.com\\\\/file\\\\/d\\\\/(.*?)\\\\/edit\");\n\n Matcher matcher1 = youtubePattern1.matcher(url);\n Matcher matcher2 = youtubePattern2.matcher(url);\n Matcher matcher3 = youtubePlaylist.matcher(url);\n Matcher matcher4 = twitchPattern.matcher(url);\n Matcher matcher5 = justintvPattern.matcher(url);\n Matcher matcher6 = livestreamPattern.matcher(url);\n Matcher matcher7 = ustreamPattern.matcher(url);\n Matcher matcher8 = vimeoPattern.matcher(url);\n Matcher matcher9 = dailymotionPattern.matcher(url);\n Matcher matcher10 = soundcloudPattern.matcher(url);\n Matcher matcher11 = googlePattern.matcher(url);\n\n if (matcher1.find()) {\n return new String[]{matcher1.group(1), \"yt\"};\n }\n\n if (matcher2.find()) {\n return new String[]{matcher2.group(1), \"yt\"};\n }\n\n if (matcher3.find()) {\n return new String[]{matcher3.group(1), \"yp\"};\n }\n\n if (matcher4.find()) {\n return new String[]{matcher4.group(1), \"tw\"};\n }\n\n if (matcher5.find()) {\n return new String[]{matcher5.group(1), \"jt\"};\n }\n\n if (matcher6.find()) {\n return new String[]{matcher6.group(1), \"li\"};\n }\n\n if (matcher7.find()) {\n return new String[]{matcher7.group(1), \"us\"};\n }\n\n if (matcher8.find()) {\n return new String[]{matcher8.group(1), \"vm\"};\n }\n\n if (matcher9.find()) {\n return new String[]{matcher9.group(1), \"dm\"};\n }\n\n if (matcher10.find()) {\n return new String[]{url, \"sc\"};\n }\n\n if (matcher11.find()) {\n return new String[]{matcher11.group(1), \"gd\"};\n }\n\n return null;\n }", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "void showWaitingPlayerList(List<String> waitingPlayerUsernames);", "public void a(ICommandSender paramae, String[] paramArrayOfString)\r\n/* 17: */ {\r\n/* 18:22 */ String str = MinecraftServer.M().a(EnumGameMode.SURVIVAL, false);\r\n/* 19:23 */ if (str != null) {\r\n/* 20:24 */ a(paramae, this, \"commands.publish.started\", new Object[] { str });\r\n/* 21: */ } else {\r\n/* 22:26 */ a(paramae, this, \"commands.publish.failed\", new Object[0]);\r\n/* 23: */ }\r\n/* 24: */ }", "String getStringList();", "public void afficheInfos() {\n int i;\n Polygone p;\n for(i=0;i<this.list.size();i++){\n p = (Polygone) this.list.get(i);\n System.out.println(\"–––––––––––––––––––––\");\n System.out.println(\"Type : \" + p.toString());\n System.out.println(\"Sommet :\");\n System.out.print(p.texteSommets());\n System.out.println(\"Perimetre : \" + p.perimetre());\n System.out.println(\"Surface : \" + p.surface());\n System.out.println(\"–––––––––––––––––––––\");\n } \n }", "private String[] parseResponseBody(InputStream aInputStream) {\n\t\tString param[] = new String[3];\n\t\tStringBuffer strBuff = new StringBuffer();\n\t\tStringBuffer allBuff = new StringBuffer();\n\t\tbyte buff[] = new byte[1024];\n\t\tint read;\t\t\n\t\tfinal String PREFIX_SEARCH =\"/watch_fullscreen?video_id=\";\n\t\t\n\t\ttry {\n\t\t\tboolean found1st = false;\n\t\t\tboolean foundPrm = false;\n\t\t\twhile((read = aInputStream.read(buff)) >= 0){\n\t\t\t\tallBuff.append(new String(buff));\n\t\t\t\tfor (int i = 0;i < read;i++){\n\t\t\t\t\tchar c = (char)buff[i];\n\t\t\t\t\tif (c == '/') {\n\t\t\t\t\t\tstrBuff.setLength(0);\n\t\t\t\t\t\tstrBuff.append(c);\n\t\t\t\t\t\tfound1st = true;\n\t\t\t\t\t} else if (found1st) {\n\t\t\t\t\t\tstrBuff.append(c);\n\t\t\t\t\t\tif (strBuff.length() == PREFIX_SEARCH.length()) {\n\t\t\t\t\t\t\tfound1st = false;\n\t\t\t\t\t\t\tif (strBuff.toString().contains(PREFIX_SEARCH)) {\n\t\t\t\t\t\t\t\t//yeah.. we found it\n\t\t\t\t\t\t\t\tfoundPrm = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstrBuff.setLength(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (foundPrm) {\n\t\t\t\t\t\tif (c == '&') {\n\t\t\t\t\t\t\tfor (int y = 0;y < 3; y++) {\n\t\t\t\t\t\t\t\tif (param[y] == null){\n\t\t\t\t\t\t\t\t\t//remove parameter name and '=' \n\t\t\t\t\t\t\t\t\tparam[y] = y > 0 ? strBuff.toString().substring(2) : strBuff.toString();\n\t\t\t\t\t\t\t\t\tif (y == 2) {\n\t\t\t\t\t\t\t\t\t\treturn param;\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tstrBuff.setLength(0);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tstrBuff.append(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\t\n\t\t\tFile f = new File(String.valueOf(System.currentTimeMillis() + \".txt\"));\n\t\t\tFileOutputStream fos = new FileOutputStream(f);\n\t\t\tfos.write(allBuff.toString().getBytes());\n\t\t\tfos.close();\n\t\t\tSystem.out.println(allBuff.toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//If we go here, then the given parameter is not valid, or there's an exception\n\t\treturn null;\n\t}", "private void printOut(String s)\n {\n outVideo.println(s);\n outVideo.flush();\n }", "public String playGuitar(){\n\t\t String notes = \"[A(0.25), G(2), E(0.5), C(1), C(2), D(0.25), E(2), C(2), B(0.25), C(4), C(1), G(0.25),A(1), C(2), D(1),C(4)]\";\n\t\treturn notes;\n\t}", "List<String> mo5877c(String str);", "public void alquilarMultimediaAlSocio(){\n lector = new Scanner(System.in);\n int opcion = -1;\n int NIF = 0;\n int pedirElemento;\n String titulo;\n Socio socio;\n\n\n\n NIF = pedirNIF(); // pido el NIF por teclado\n\n if(tienda.exiteSocio(NIF)){ // Si exite, continuo\n socio = tienda.getSocioWithNIF(NIF); // Si exite el socio, busco en la tienda y lo asigno.\n if(!socio.isAlquilando()) { // si el socio no está actualmente alquilando, no continuo\n opcion = pedirElemento(); // Pido el elemento\n\n switch (opcion) {\n case 1:\n tienda.imprimirDatos(tienda.getPeliculas());\n System.out.println(\"Introduce el titulo de la pelicula que quieres: \");\n titulo = lector.nextLine();\n if (tienda.exitePelicula(titulo)) {\n\n tienda.alquilarPeliculaSocio(NIF, titulo);\n System.out.println(\"PELICULA ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite la pelicula \" + titulo + \".\");\n }\n\n\n break;\n case 2:\n tienda.imprimirDatos(tienda.getVideojuegos());\n System.out.println(\"Introduce el titulo del videojuego que quieres: \");\n titulo = lector.nextLine();\n if (tienda.existeVideojuego(titulo)) {\n\n tienda.alquilarVideojuegoSocio(NIF, titulo);\n System.out.println(\"VIDEOJUEGO ANYADIDO EN EL MAIN\");\n\n\n } else {\n System.out.println(\"No exite el videojuego \" + titulo + \".\");\n }\n break;\n default:\n break;\n }\n }else{\n System.out.println(\"El socio \" + socio.getNombre() + \" tiene recargos pendientes.\");\n }\n\n }else{\n System.out.println(\"El socio con NIF \" + NIF + \" no exite.\");\n }\n\n\n\n\n\n\n }", "public String vorschaubildFiltern(String quellcode){\r\n\t\tString bild = quellcode.substring((quellcode.indexOf(\"nivoSlider\") + 59), (quellcode.indexOf(\"slideshow-imagelink\") - 32));\r\n//\t\tSystem.out.println(bild);\r\n\r\n\t\treturn bild;\r\n\t}", "private void getVideos() {\n\n StringRequest videosRequest = new StringRequest(VIDEOS_URL+query, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n //parse data from webservice to get Contracts as Java object\n Example videos = new Gson().fromJson(response, Example.class);\n\n setAdapter(videos.getItems());\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Videos\", \"Error\");\n }\n });\n\n Volley.newRequestQueue(this).add(videosRequest);\n }", "List<DownloadInfo> mo54404a(String str);", "private void vulSpeelbordIn(String[][] spelbord)\n {\n for (int i = 0; i < spelbord.length; i++)\n {\n for (int j = 0; j < spelbord[i].length; j++)\n {\n GraphicsContext gc = canvasSpeelveld[j][i].getGraphicsContext2D();\n //gc.setFill(Color.BLACK);\n vulIn(spelbord[i][j], gc);\n }\n }\n }", "public static void m15838a(int i, String str) {\n C8438j jVar = new C8438j();\n if (!TextUtils.isEmpty(str)) {\n jVar.mo21598a(\"live_take_detail\");\n }\n HashMap hashMap = new HashMap();\n hashMap.put(\"guest_connection_type\", \"video\");\n C8443c.m25663a().mo21606a(\"guest_connection_agree\", hashMap, jVar, Room.class);\n }", "public void mo88640a(List<String> list) {\n List<String> stringList = RxPreferences.INSTANCE.getStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), new ArrayList());\n stringList.addAll(0, list);\n RxPreferences.INSTANCE.putStringList(C6969H.m41409d(\"G6286CC25BB32942CE2078447E0DACBD67A8BEA0EBE379425EF1D84\"), (List) StreamSupport.m150134a(stringList).mo131128a(new AbstractC32239o(new HashSet(stringList)) {\n /* class com.zhihu.android.p1480db.fragment.customview.C18240x255e53c2 */\n private final /* synthetic */ HashSet f$0;\n\n {\n this.f$0 = r1;\n }\n\n @Override // java8.util.p2234b.AbstractC32239o\n public final boolean test(Object obj) {\n return DbEditorSuggestTagCustomView.m93354a(this.f$0, (String) obj);\n }\n }).mo131126a(5).mo131125a(Collectors.m150203a($$Lambda$ofunvu1bqmYbfXGEtxXaV_csE4M.INSTANCE)));\n }", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "protected List<Video> processInputURL(String url) {\n videos = new ArrayList<Video>();\n videos.add(new Video(url));\n retrieveSubtitles();\n return videos;\n }", "public List<String> sourceString() {\n // Processing is done here\n return Arrays.asList(\"tomato\", \"carrot\", \"cabbage\");\n }", "private static void showMovies(ArrayList<String> movies) {\n\t\tfor (String movie : movies) {\n\t\t\tSystem.out.println(movie);\n\t\t}\t\t\n\t}", "public final void mo118721b(List<String> list) {\n EventMessage abVar;\n C32569u.m150519b(list, C6969H.m41409d(\"G658AC60E\"));\n Iterator<T> it = list.iterator();\n while (it.hasNext()) {\n EventMessage abVar2 = null;\n try {\n abVar = EventMessage.f96677a.decode(Base64.decode(it.next(), 0));\n } catch (Exception e) {\n VideoXOnlineLog.f101073b.mo121420a(\"audience api 轮询 msg decode error : {}\", String.valueOf(e.getMessage()));\n abVar = abVar2;\n }\n if (abVar != null && abVar.f96687k.longValue() >= f97549f && !f97544a.m134904a(abVar, C6969H.m41409d(\"G6896D113BA3EA82CA60F8041\"))) {\n VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;\n String abVar4 = abVar.toString();\n C32569u.m150513a((Object) abVar4, C6969H.m41409d(\"G60979B0EB003BF3BEF009700BB\"));\n abVar3.mo121420a(\"msg, audience api , 消息 : {}\", abVar4);\n f97544a.m134907b(abVar);\n }\n }\n }", "public void listarTodosLosVideojuegosRegistrados()\n {\n System.out.println(\"Videojuegos disponibles: \");\n for(Videojuegos videojuego : listaDeVideojuegos) {\n System.out.println(videojuego.getDatosVideojuego());\n }\n }", "String[] chiediScommessa();", "public final void mo118716a(List<String> list) {\n EventMessage abVar;\n C32569u.m150519b(list, C6969H.m41409d(\"G658AC60E\"));\n Iterator<T> it = list.iterator();\n while (it.hasNext()) {\n EventMessage abVar2 = null;\n try {\n abVar = EventMessage.f96677a.decode(Base64.decode(it.next(), 0));\n } catch (Exception e) {\n VideoXOnlineLog.f101073b.mo121420a(\"anchor api 轮询 msg decode error : {}\", String.valueOf(e.getMessage()));\n abVar = abVar2;\n }\n if (abVar != null && !f97544a.m134904a(abVar, C6969H.m41409d(\"G688DD612B022EB28F607\"))) {\n VideoXOnlineLog abVar3 = VideoXOnlineLog.f101073b;\n String abVar4 = abVar.toString();\n C32569u.m150513a((Object) abVar4, C6969H.m41409d(\"G60979B0EB003BF3BEF009700BB\"));\n abVar3.mo121420a(\"msg, anchor api , 消息 : {}\", abVar4);\n f97544a.m134907b(abVar);\n }\n }\n }", "MovieVideo getMovieVideoByVideoid(String videoid);", "private void loadStrings() {\n\t\tfor (String texto : textOne) {\n\t\t\t//Se parte cada linea por comas\n\t\t\tString [] info = texto.split(\",\");\n\t\t\t//----------------\n\t\t\tint id = Integer.parseInt(info[0]);\n\t\t\tString name = info[1];\n\t\t\tint age = Integer.parseInt(info[2]);\n\t\t\tString race = info[3];\n\t\t\t//--------------------\n\t\t\t\n\t\t\tdogList.addElement(id, name, age, race);\n\t\t}\n\t\t\n\t\t//-----------------------\n\t\t// Se carga segundo TXT\n\t\tfor (int i = 0; i < dogList.getList().size(); i++) {\n\t\t\tfor (int j = 0; j < textTwo.length; j++) {\n\t\t\t\tString [] infoD = textTwo[j].split(\",\");\n\t\t\t\t//----------------\n\t\t\t\tint id = Integer.parseInt(infoD[0]);\n\t\t\t\tString nombre = infoD[1];\n\t\t\t\tString apellido = infoD[2];\n\t\t\t\tint identificacion = Integer.parseInt(infoD[3]);\n\t\t\t\tint telefono = Integer.parseInt(infoD[4]);\n\t\t\t\tString direccion = infoD[5];\n\t\t\t\tString enfermedades = infoD[6];\n\t\t\t\t//-----------\n\t\t\t\tduenoList.addElement(id, nombre, apellido, identificacion, telefono, direccion, enfermedades);\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t}\n\t\tduenoList.printList();\n\t\tdogList.printList();\n\t\t\n\t\t\n\t}", "public String mo1736b() {\n return \"video\";\n }", "private void extractIDsfromJson(String s) {\n\n ArrayList<MovieAPI> movieAPIArrayList = new ArrayList<>();\n\n try {\n JSONObject jsonObject = new JSONObject(s);\n\n JSONArray jsonArray = jsonObject.getJSONArray(\"results\");\n\n\n for (int i = 0; i < jsonArray.length(); i++) {\n\n\n String m_id = jsonArray.getJSONObject(i).getString(\"id\");\n String mtitle = jsonArray.getJSONObject(i).getString(\"title\");\n String m_img = jsonArray.getJSONObject(i).getString(\"image\");\n\n MovieAPI movieAPI = new MovieAPI(m_id, mtitle, m_img);\n\n movieAPIArrayList.add(movieAPI);\n\n }\n\n updateListView(movieAPIArrayList);\n\n\n\n } catch (Exception e) {\n\n // update the UI to show failed results.\n //updateUI(\"JSON Retrieval Failed\");\n\n e.printStackTrace();\n\n }\n }", "Dialogue(ArrayList<String> text){\n this.text = text;\n }", "public void displayData(String[] str);", "public static void getListOfVideoInPlayList(By byObj, String sFilePath) throws IOException, InterruptedException {\n\t\tint n = countNumberOfObjectOnPage(byObj);\n\t\tString s = \"\";\n\t\tfor (int i=0; i<n; i++) {\n\t\t\ts = s + getTitleFromAnObjectInTheList(byObj, i) + \"\\n\";\n\t\t}\n\t\tFiles.deleteAFileInFolder(sFilePath);\n\t\tFileUtils.writeStringToFile(new File(sFilePath), s);\n\t\t\n\t}", "List<String> showNewsAndMessages();", "public String[] getVariants_ru(int[] randIds){\n Cursor crs;\n String[] variants_ru = new String[4];\n for(int i = 0; i< 4; i++){\n String[] args = new String[1];\n args[0] = Integer.toString(randIds[i]+1);\n crs = aniDB.getReadableDatabase().rawQuery(\"SELECT name_ru FROM titles WHERE id = ?\",args);\n if(crs.moveToFirst()) {\n variants_ru[i] = crs.getString(crs.getColumnIndex(\"name_ru\"));\n }\n crs.close();\n }\n return variants_ru;\n }", "public static void main(String[] args) {\n String asNombres[]=new String[TAMA];\r\n //CAPTURAR 5 NNOMBRES \r\n Scanner sCaptu = new Scanner (System.in);\r\n for (int i = 0; i < TAMA; i++) {\r\n System.out.println(\"Tu nombre :\");\r\n asNombres[i]=sCaptu.nextLine();\r\n }\r\n for (String asNombre : asNombres) {\r\n System.out.println(\"Nombre: \" + asNombre);\r\n \r\n }\r\n //CREAR UNA COPIA DEL ARREGLO\r\n /*String asCopia[]=asNombre;//Esto no funciona\r\n asNombre[0]=\"HOLA MUNDO\";\r\n System.out.println(asCopia[0]);*/\r\n \r\n String asCopia[]=new String[TAMA];\r\n for (int i = 0; i < TAMA; i++) {\r\n asCopia[i]=asNombres[i];\r\n \r\n }\r\n asNombres[0]=\"HOLA MUNDO\";\r\n System.out.println(\"Nombre = \" + asNombres[0]);\r\n System.out.println(\"Copia = \" + asCopia[0]);\r\n }", "public String getVideourl() {\n return videourl;\n }", "private void setPlayList() {\n int[] rawValues = {\n R.raw.bensoundbrazilsamba,\n R.raw.bensoundcountryboy,\n R.raw.bensoundindia,\n R.raw.bensoundlittleplanet,\n R.raw.bensoundpsychedelic,\n R.raw.bensoundrelaxing,\n R.raw.bensoundtheelevatorbossanova\n };\n String[] countryList = {\n \"Brazil\",\n \"USA\",\n \"India\",\n \"Iceland\",\n \"South Korea\",\n \"Indonesia\",\n \"Brazil\"\n };\n String [] descriptions = {\n \"Samba is a Brazilian musical genre and dance style, with its roots in Africa via the West African slave trade religious particularly of Angola and African traditions.\",\n \"Country music is a genre of American popular originated Southern States in the 1920s music that in the United\",\n \"The music of India includes multiple varieties of folk music, pop, and Indian classical music. India's classical music tradition, including Hindustani music and Carnatic, has a history spanning millennia and developed over several eras\",\n \"The music of Iceland includes vibrant folk and pop traditions. Well-known artists from Iceland include medieval music group Voces Thules, alternative rock band The Sugarcubes, singers Björk and Emiliana Torrini, post- rock band Sigur Rós and indie folk/indie pop band Of Monsters and Men\",\n \"The Music of South Korea has evolved over the course of the decades since the end of the Korean War, and has its roots in the music of the Korean people, who have inhabited the Korean peninsula for over a millennium. Contemporary South Korean music can be divided into three different categories: Traditional Korean folk music, popular music, or K- pop, and Western- influenced non-popular music\",\n \"The music of Indonesia demonstrates its cultural diversity, the local musical creativity, as well as subsequent foreign musical influences that shaped contemporary music scenes of Indonesia. Nearly thousands Indonesian having its own cultural and artistic history and character Nearly of islands\",\n \"Samba is a Brazilian musical genre and dance style, with its roots in Africa via the West African slave trade religious particularly of Angola\"\n };\n\n for (int i = 0; i < rawValues.length; i++) {\n this.mPlayList.add(rawValues[i]);\n this.mTrackList.add(new Track(this.getResources().getResourceEntryName(rawValues[i]),\n countryList[i],descriptions[i],rawValues[i]));\n }\n }", "@Override\n public void onResponse(String response) {\n response = response.substring(response.indexOf(\"og:video:url\\\" content=\\\"\") + 23);\n response = response.substring(0, response.indexOf(\".mp4\") + 4);\n UrlFilm = response;\n Log.i(\"HTML\", \" \" + response);\n }", "@Override\n public void onResponse(String response) {\n response = response.substring(response.indexOf(\"og:video:url\\\" content=\\\"\") + 23);\n response = response.substring(0, response.indexOf(\".mp4\") + 4);\n UrlFilm = response;\n Log.i(\"HTML\", \" \" + response);\n }", "public void showPics(String s){\n\t\t\tString[] symbols = s.split(\"[ ]\");\n\t\t\tfor (int i = 0; i < symbols.length; i++){\n\t\t\t\t//System.out.println(symbols[i]);\n\t\t\t\tswitch (symbols[i]){\n\t\t\t\tcase \"B\": pics[0][0].setVisible(true); break;\n\t\t\t\tcase \"S\": pics[0][1].setVisible(true); break;\n\t\t\t\tcase \"G\": pics[0][2].setVisible(true); break;\n\t\t\t\tcase \"P\": pics[1][0].setVisible(true); break;\n\t\t\t\tcase \"R\": pics[1][1].setVisible(true); break;\n\t\t\t\tcase \"D\": pics[1][2].setVisible(true); break;\n\t\t\t\tcase \"H1\":\n\t\t\t\t\tpics[2][0].setIcon(imageH1[currentImageH1]);\n\t\t\t\t\tif(!h1.isOutOfGame()) pics[2][0].setVisible(true);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"W\": pics[2][1].setVisible(true); break;\n\t\t\t\tcase \"H2\":\n\t\t\t\t\tpics[2][2].setIcon(imageH2[currentImageH2]);\n\t\t\t\t\tif(!h2.isOutOfGame()) pics[2][2].setVisible(true);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void GetStops(String s){\n try {\n TravelBySearch trav = new TravelBySearch();\n //we execute the async task\n trav.execute(auth, s);\n //we parse the json data with the data we get from vässtrafik and the string that was searched for\n BusStopSearcherPresenter.setListview(initList(js.parseSearch(trav.get(), s)));\n } catch (Exception v) {\n v.printStackTrace();\n }\n }", "private void show(String[] str) {\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tLog.d(\"str\", str[i]);\r\n\t\t}\r\n\r\n\t}", "private void show(String[] str) {\n\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\tLog.d(\"str\", str[i]);\r\n\t\t}\r\n\r\n\t}", "@Override\n public void accept(List<String> strings) throws Exception {\n Log.e(TAG, \"accept: \"+strings.get(0) );\n }", "List<DownloadInfo> mo54430c(String str);", "public Fund hentArtikel(String u) {\n\t\tp(\"hentArtikel(\"+u+\")\");\n\t\tString vUrl = \"\";\n\t\tArrayList <String> beskrivelser = new ArrayList<>();\n\n\n\t\ttry {\n\t\t\tInputStream is = new URL(\"http://m.tegnsprog.dk/artikler/\"+u+\".html\").openStream();\n\t\t\tis = new BufferedInputStream(is);\n\t\t\tis.mark(1);\n\t\t\tif (is.read() == 0xef) {\n\t\t\t\tis.read();\n\t\t\t\tis.read();\n\n\t\t\t} else {\n\t\t\t\tis.reset();\n\t\t\t}\n\t\t\tp(\"#=#=#=#=#=#=#=#= hentArtikel() =#=#=#=#=#=#=#=#=#=#=#\");\n\t\t\tbyte[] contents = new byte[1024];\n\t\t\tString heleIndholdet = \"\";\n\t\t\tint bytesRead = 0;\n\t\t\t//bytesRead = is.read(contents); //skipper første linie\n\t\t\t//bytesRead = is.read(contents); //skipper anden linie\n\n\t\t\twhile((bytesRead = is.read(contents)) != -1) {\n\t\t\t\tString linie = new String(contents, 0, bytesRead);\n\t\t\t\theleIndholdet += linie;\n\n\n\n\t\t\t}\n\t\t\t\n\t\t\t//p(\"\\nArtikel_______________________________: \"+heleIndholdet);\n\n\n\n\t\t\t//-- Vi finder video-urlen\n\n\t\t\tint startindeks = heleIndholdet.indexOf(\"src=\\\"\");\n\t\t\tString tempUrl = heleIndholdet.substring(startindeks+5);\n\t\t\tint slutIndeks= tempUrl.indexOf(\"\\\" type='video/mp4'>Your browser does not support the video tag.\");\n\t\t\tvUrl = tempUrl.substring(0,slutIndeks);\n\t\t\tp(\"videourl::::::::::::::::::::::::::::::::\"+vUrl);\n\n\t\t\tif (webm) {\n\t\t\t\tint underscore = vUrl.lastIndexOf(\"_\") + 1;\n\t\t\t\tint sidstepunktum = vUrl.lastIndexOf(\".\");\n\n\t\t\t\tString indeksnr = vUrl.substring(underscore, sidstepunktum);\n\t\t\t\tp(\"indeksnr: \" + indeksnr);\n\t\t\t\tvUrl = \"http://m.tegnsprog.dk/video/mobil/t-webm/t_\" + indeksnr + \".webm\";\n\t\t\t\tp(vUrl);\n\t\t\t}\n\n\n\n\t\t\t//-- Vi finder de danske ord\n\n\t\t\tstartindeks = tempUrl.indexOf(\"<TABLE>\");\n\t\t\tslutIndeks = tempUrl.indexOf(\"<TABLE width=\\\"100%\\\">\");\n\t\t\tString tabelDKOrd = tempUrl.substring(startindeks, slutIndeks);\n\t\t\t//p(\"__________min html:\");\n\t\t\t//p(tabelDKOrd);\n\t\t\t//p(\"----------\");\n\t\t\t//dKOrd = tabelDKOrd.replaceAll(\"\\\\/TR><TR\", \"</TR><BR><TR>\").replaceAll(\"\\\\&middot\\\\;\", \" , \");\n\t\t\tString dKOrd = tabelDKOrd\n\t\t\t\t\t.replaceAll(\"<TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD><TD>\", \" \")\n\t\t\t\t\t.replaceAll(\"\\\\&middot\\\\;\", \" , \")\n\t\t\t\t\t.replaceAll(\"<TABLE/>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TABLE>\", \"\")\n\t\t\t\t\t.replaceAll(\"&nbsp;\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"<TR style=\\\"vertical-align:top;\\\">\", \"\")\n\t\t\t\t\t.replaceAll(\"</TR>\", \"\")\n\t\t\t\t\t.replaceAll(\"</TD>\", \"ønskernylinie\")\n\t\t\t\t\t.replaceAll(\"<TD>\", \"\")\n\t\t\t\t\t.replaceAll(\"<BR>\",\"\\n\")\n\t\t\t\t.replaceAll(\"<BR/>\",\"\\n\");\n\n\t\t\t//Erstat html-koder for danske vokaler\n\t\t\t//æ: &aelig;\n\t\t\t//ø: &oslash;\n\t\t\t//å: &aring;\n\n\t\t\tdKOrd = dKOrd\n\t\t\t\t\t.replaceAll(\"&aelig;\", \"æ\")\n\t\t\t\t\t.replaceAll(\"&oslash;\", \"ø\")\n\t\t\t\t\t.replaceAll(\"&aring;\", \"å\");\n\n\n\n\n\n\t\t\tbeskrivelser = new ArrayList<String>(Arrays.asList(dKOrd.split(\"ønskernylinie\")));\n\n\n\t\t\tp(\"Efter rens\");\n\t\t\tp(beskrivelser.toString());\n\n\n\n/*\n\t\t\t<HTML>\n\t\t\t\t<video width=\"100%\" autoplay>\n\t\t\t \t\t<source src=\"http://www.tegnsprog.dk/video/t/t_317.mp4\" type='video/mp4'>\n\t\t\t \t\tYour browser does not support the video tag.\n\t\t\t \t</video>\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>1. </TD>\n\t\t\t\t\t\t<TD>brun</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t\t<TR style=\"vertical-align:top;\">\n\t\t\t\t\t\t<TD>2. </TD>\n\t\t\t\t\t\t<TD>kaffe</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\">\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t<A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|386', '_system');\">\n\t\t\t\t\t\t\t<IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>\n\t\t\t\t\t\t\t\tVis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\">\n\t\t\t\t\t\t\t<A TITLE=\"G&aring; til toppen\" href=\"#0\">\n\t\t\t\t\t\t\t\t&#8679;\n\t\t\t\t\t\t\t</A>\n\t\t\t\t\t\t</TD></TR></TABLE></HTML>\n\n\n\t\t\t\t\t\tANDEN VERSION______________________________\n\n\t\t\t\t<TABLE>\n\t\t\t\t\t<TR>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\t&nbsp;\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t\t<TD>\n\t\t\t\t\t\t\tforan &middot; forrest &middot; f&oslash;re &middot; komme f&oslash;rst\n\t\t\t\t\t\t</TD>\n\t\t\t\t\t</TR>\n\t\t\t\t</TABLE>\n\t\t\t\t<TABLE width=\"100%\"><TR><TD><A TITLE=\"&Aring;bn den fulde ordbogsartikel i browseren\" href=\"#\" onclick=\"var ref = window.open('http://www.tegnsprog.dk/#|soeg|tegn|1000', '_system');\"><IMG SRC=\"http://www.tegnsprog.dk/billeder/web/logo-mini.png\"/>Vis p&aring; tegnsprog.dk</A></TD><TD style=\"text-align: right;\"><A TITLE=\"G&aring; til toppen\" href=\"#0\">&#8679;</A></TD></TR></TABLE></HTML>\n\n*/\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tp(ex);\n\t\t\tp(ex.getMessage());\n\t\t\tnulNetBeskedFraBraggrund();\n\n\t\t}\n\t\tp(\"hentArtikel færdig\");\n\t\treturn new Fund(Uri.parse(vUrl), beskrivelser);\n\t}", "void setTypeUnitSound(List<TypeUnitSound> listText);", "public List<String> GetAssegnamentiInCorso() {\n String str = \"Guillizzoni-Coca Cola Spa1-DRYSZO,Rossi-Coca Cola Spa2-DRYSZ2\";\n StringaAssegnamenti = str;\n StringaAssegnamenti = \"\";\n \n\tList<String> items = Arrays.asList(str.split(\"\\\\s*,\\\\s*\"));\n return items;\n }", "public String[] requisitarChave() {\n String sTexto = JOptionPane.showInputDialog(\"Digite a chave em bytes, separados por vírgula\").trim();\n //String sTexto = \"65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80\";\n String[] sTextoSeparado = sTexto.split(\",\");\n for (int idx = 0; idx < 16; ++idx) {\n sTextoSeparado[idx] = Integer.toHexString(Integer.parseInt(sTextoSeparado[idx]));\n }\n\n return sTextoSeparado;\n }", "public static List<Producto> convertirProductoTextoALIsta(String cadena){\n Gson gson = new Gson();\n\n Type lista = new TypeToken<List<Producto>>() {}.getType();\n return gson.fromJson(cadena,lista); //pasamos la cadena y adaptara el formato para esta lista\n}", "public void mostrarTurnos(String act, String sig);", "public interface LiveVideoAllCallBack extends VideoAllCallBack{\n //暂时保留standardVideo方法\n //点击了空白区域开始播放\n void onClickStartThumb(String url, Object... objects);\n\n //点击了播放中的空白区域\n void onClickBlank(String url, Object... objects);\n\n //点击了全屏播放中的空白区域\n void onClickBlankFullscreen(String url, Object... objects);\n}", "public List<VideoFile> loadChannelNames(int broker){\n //open connection\n Socket connection = null;\n try {\n connection = new Socket(IP, broker);\n\n //request brokers list\n ObjectOutputStream out = new ObjectOutputStream(connection.getOutputStream());\n out.writeObject(\"INIT\");\n out.flush();\n\n //get answer from broker\n ObjectInputStream in = new ObjectInputStream(connection.getInputStream());\n String message = (String) in.readObject();\n //broker will send\n if(message.equals(\"FAILURE\")){\n Extras.printError(\"CONSUMER: tried to Init without publishers\");\n }else if(message.equals(\"ACCEPT\")){\n ArrayList< String> list = (ArrayList<String>) in.readObject();\n for( String s : list){\n publisherToBrokers.put(s,broker);\n }\n getBrokers(in);\n }\n } catch(IOException e){\n Extras.printError(\"CONSUMER: LOAD: ERROR: Could not get streams\");\n } catch (ClassNotFoundException e){\n Extras.printError(\"CONSUMER: LOAD: ERROR: Could not cast Object to String\");\n }\n\n disconnect(connection);\n return null;\n }", "private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }", "private static List<String> testStringGenerator(List<String> palString) {\n\t\tList<String> list = new ArrayList<>();\n\t\tfor (String pal : palString) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tfor (int i = 0; i < 10; i++) {\n\t\t\t\tsb.append(pal);\n\t\t\t\tfor (int j = 0; j < pal.length(); j++) {\n\t\t\t\t\tsb.append(j % 10);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(sb.toString());\n\t\t}\n\t\treturn list;\n\t}", "public void mo63045a(C44921e eVar) {\n String str;\n super.mo63045a(eVar);\n C24942al.m81836b(mo75261ab(), this.f89221bo);\n if (C25352e.m83221d(this.f77546j)) {\n C24961b b = C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"play\");\n if (!C25352e.m83224g(this.f77546j) || !TextUtils.equals(mo75290r(), \"general_search\")) {\n str = \"\";\n } else {\n str = \"video\";\n }\n b.mo65283e(str).mo65270a(mo75261ab());\n }\n }", "public static void main(String[] args) {\r\n ArrayList<String> canciones = new ArrayList<>();\r\n\r\n// Le agregamos datos\r\n canciones.add(\"Canciones 1\");\r\n canciones.add(\"Canciones 2\");\r\n canciones.add(\"Canciones 3\");\r\n\r\n// Método 1\r\n System.out.println(\"Recorriendo con método 1\");\r\n for (String cancion : canciones) {\r\n System.out.println(cancion);\r\n }\r\n\r\n// Método 2\r\n System.out.println(\"Recorriendo con método 2\");\r\n for (int x = 0; x < canciones.size(); x++) {\r\n String cancion = canciones.get(x);\r\n System.out.println(cancion);\r\n }\r\n// Método 3\r\n System.out.println(\"Recorriendo con método 3\");\r\n canciones.forEach((cancion) -> {\r\n System.out.println(cancion); });\r\n }", "List<Data> mo5884i(String str);", "@DISPID(1093) //= 0x445. The runtime will prefer the VTID if present\n @VTID(13)\n void media(\n java.lang.String p);", "List<DownloadInfo> mo54423b(String str);", "@Override\n @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_video_dialog);\n\n Bundle bundle = getArguments();\n videos_name = bundle.getStringArrayList(\"name\");\n videos_key = bundle.getStringArrayList(\"key\");\n\n\n CharSequence[] cs = videos_name.toArray(new CharSequence[videos_name.size()]);\n\n builder.setItems(cs, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri video_uri = UtilityMovieData.buildUriForTheVideo(videos_key.get(which));\n Intent intent = new Intent(Intent.ACTION_VIEW, video_uri);\n startActivity(intent);\n\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void loadPlaybackList(JSONArray videoContentsJSON, Map selectionMap) {\n for (int i = 0; i < videoContentsJSON.length(); i++) {\n try {\n JSONObject videoJson = videoContentsJSON.getJSONObject(i);\n VideoItem videoItem = getVideoItem(videoJson);\n selectionMap.put(videoItem.getContentTitle(), videoItem);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "void InMessage(String str){\n\t\tstringTokenizer = new StringTokenizer(str, \"/\");\r\n\t\tString protocol = stringTokenizer.nextToken();\r\n\t\tString message = stringTokenizer.nextToken();\r\n\t\tSystem.out.println(\"프로토콜 : \" + protocol);\r\n\t\tif(protocol.equals(\"NewUser\")){\r\n\t\t\tvector_user_list.add(message);\r\n\t\t}\r\n\t\telse if(protocol.equals(\"OldUser\")){\r\n\t\t\tvector_user_list.add(message);\r\n\t\t}\r\n\t\telse if(protocol.equals(\"UserOut\")){\r\n\t\t\tvector_user_list.remove(message);\r\n\t\t}else if(protocol.equals(\"cash\")){\r\n\t\t\tLEDboard.List();\r\n\t\t}else if(protocol.equals(\"fin\")){\r\n\t\t\tLEDboard.List();\r\n\t\t\tLEDboard.FinList();\r\n\t\t}else if(protocol.equals(\"reset\")){\r\n\t\t\tLEDboard.List();\r\n\t\t\tLEDboard.FinList();\r\n\t\t}else if(protocol.equals(\"last\")){\r\n\t\t\tLEDboard.List();\r\n\t\t\tLEDboard.FinList();\r\n\t\t}\r\n\t}", "public void pararPersonaje(char letra) {\n switch (letra) {\n case 'd':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[1][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Derecha\";//Guarda en la variable jugadorVista hacia donde miramos\n }\n break;\n case 's':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[0][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Abajo\";\n }\n break;\n case 'a':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[3][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Izquierda\";\n }\n break;\n case 'w':\n for (int b = 0; b < regions.length; b++) {\n regions[b] = tmp[2][0];\n animation = new Animation((float) 0.2, regions);\n tiempo = 0f;\n jugadorVista = \"Arriba\";\n }\n break;\n }\n\n }", "public String getVideoBufferCharacters()\n\t{\n\t\tint maxRows, maxCols, index;\n\t\tStringBuffer text;\n\t\t\n\t\t// Retrieve screen dimension in text mode\n\t\tmaxRows = screen.getScreenRows();\n\t\tmaxCols = screen.getScreenColumns();\n\t\t\n\t\t// Create initial stringbuffer\n\t\ttext = new StringBuffer(maxRows * maxCols);\n\t\t\n\t\t// Convert each character in textSnapshot into Unicode character\n\t\tfor (int row = 0; row < maxRows; row++)\n\t\t{\n\t\t\tfor (int col = 0; col < maxCols; col++)\n\t\t\t{\n\t\t\t\tindex = videocard.textSnapshot[(row * maxCols * 2) + (col * 2)] & 0xFF;\n\t\t\t\tif (index < 255)\n\t\t\t\t{\n\t\t\t\t\ttext.append(textTranslation.asciiToUnicode[index]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Add a newline at the end of row\n\t\t\ttext.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn text.toString();\n\t}", "private static void m148172a(EditPreviewInfo editPreviewInfo, String[] strArr, long[] jArr, long[] jArr2, float[] fArr, long[] jArr3) {\n for (int i = 0; i < editPreviewInfo.getVideoList().size(); i++) {\n EditVideoSegment editVideoSegment = (EditVideoSegment) editPreviewInfo.getVideoList().get(i);\n strArr[i] = editVideoSegment.getVideoPath();\n if (editVideoSegment.getVideoCutInfo() != null) {\n VideoCutInfo videoCutInfo = editVideoSegment.getVideoCutInfo();\n jArr[i] = videoCutInfo.getStart();\n jArr2[i] = videoCutInfo.getEnd();\n fArr[i] = videoCutInfo.getSpeed();\n } else {\n jArr[i] = -1;\n jArr2[i] = -1;\n fArr[i] = 1.0f;\n }\n }\n if (editPreviewInfo.getSceneIn() > 0 || editPreviewInfo.getSceneOut() > 0) {\n jArr3[0] = editPreviewInfo.getSceneIn();\n jArr3[1] = editPreviewInfo.getSceneOut();\n return;\n }\n jArr3[0] = -1;\n jArr3[1] = -1;\n }" ]
[ "0.68336034", "0.57674855", "0.56504023", "0.5502987", "0.5486491", "0.5429566", "0.5415875", "0.5399947", "0.5392713", "0.53457826", "0.5337894", "0.5318914", "0.5306696", "0.5298852", "0.5292465", "0.52765065", "0.52577597", "0.5217203", "0.5215847", "0.5207255", "0.52041304", "0.5189452", "0.51857644", "0.51559806", "0.51437205", "0.5132878", "0.5111604", "0.5092977", "0.5089742", "0.50716126", "0.5066864", "0.50631887", "0.5051766", "0.50394636", "0.50253826", "0.50136256", "0.5010933", "0.50023514", "0.50020564", "0.49880484", "0.49776882", "0.49570006", "0.4947995", "0.4942592", "0.4940959", "0.4935997", "0.49247432", "0.49190596", "0.49119464", "0.490737", "0.49049816", "0.489483", "0.48858115", "0.48852673", "0.48820427", "0.48751283", "0.48747182", "0.48675087", "0.4863152", "0.48561338", "0.48558486", "0.4854607", "0.4854169", "0.48506197", "0.4850595", "0.4847556", "0.484616", "0.48389873", "0.48348394", "0.48339012", "0.48326495", "0.48288172", "0.48288172", "0.4810204", "0.48090684", "0.48089275", "0.48089275", "0.48046824", "0.48038572", "0.48034865", "0.4803393", "0.47983178", "0.4798293", "0.4796319", "0.47904852", "0.4788064", "0.4785846", "0.4783551", "0.47832605", "0.47779906", "0.47764462", "0.4774948", "0.4760159", "0.47540337", "0.47531646", "0.4748318", "0.4748191", "0.47451743", "0.4744401", "0.47404888" ]
0.50109434
36
TODO Autogenerated method stub
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentFrame(R.layout.activity_breezing_test); initValues(); initViews(); valueToView(); initListeners(); }
{ "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
TODO Autogenerated method stub
private void initValues() { }
{ "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
TODO Autogenerated method stub
private void initViews() { setActionBarTitle(R.string.my_energy_metabolism); mViewPager = (CustomViewPager) findViewById(R.id.viewPager); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
private void valueToView() { mViewPager.setAdapter(new BreezingTestPagerAdapter(getSupportFragmentManager())); }
{ "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
TODO Autogenerated method stub
private void initListeners() { mViewPager.setOnPageChangeListener(new OnPageChangeListener() { @Override public void onPageSelected(int arg0) { // TODO Auto-generated method stub if (arg0 == 1) { mViewPager.setPagingEnabled(false); } } @Override public void onPageScrolled(int arg0, float arg1, int arg2) { // TODO Auto-generated method stub } @Override public void onPageScrollStateChanged(int arg0) { // TODO Auto-generated method stub } }); }
{ "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
TODO Autogenerated method stub
@Override public void onPageSelected(int arg0) { if (arg0 == 1) { mViewPager.setPagingEnabled(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void 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
TODO Autogenerated method stub
@Override public void onPageScrolled(int arg0, float arg1, int arg2) { }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onPageScrollStateChanged(int arg0) { }
{ "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
TODO Autogenerated method stub Browser driver path
public static void main(String[] args) throws InterruptedException { System.setProperty("webdriver.chrome.driver", "./drivers/chromedriver.exe"); // invoke Chrome Driver ChromeDriver driver = new ChromeDriver(); // Adjust Window size driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); // Open the URL driver.get("http://leaftaps.com/opentaps/"); // Find and input Username driver.findElementById("username").sendKeys("demosalesmanager"); // Find and input password driver.findElementById("password").sendKeys("crmsfa"); // Click on login driver.findElementByClassName("decorativeSubmit").click(); // Click on CRM/SFA link driver.findElementByLinkText("CRM/SFA").click(); // click leads tab driver.findElementByXPath("//a[text()='Leads']").click(); // click find leads driver.findElementByXPath("//a[text()='Find Leads']").click(); //click subtab phone driver.findElementByXPath("//span[text()='Phone']").click(); //Enter phone number driver.findElementByXPath("//input[@name='phoneNumber']").sendKeys("123"); //click find leads driver.findElementByXPath("//button[text()='Find Leads']").click(); Thread.sleep(2000); //Capture the lead of first resulting lead WebElement firstLeadwe = driver.findElementByXPath("(//div[(contains(@class,'x-grid3-cell-inner'))]/a)[1]"); String firstLead = firstLeadwe.getText(); System.out.println(firstLead); Thread.sleep(2000); //click first resulting lead firstLeadwe.click(); //Click delete driver.findElementByXPath("//a[text()='Delete']").click(); // click find leads driver.findElementByXPath("//a[text()='Find Leads']").click(); //enter captured lead id driver.findElementByXPath("//input[@name='id']").sendKeys(firstLead); //click find leads driver.findElementByXPath("//button[text()='Find Leads']").click(); //Verify no records message String message = driver.findElementByXPath("//div[text()='No records to display']").getText(); if(message.equals("No records to display")) { System.out.println("Confirms Successful Deletion"); } else { System.out.println(" Not deleted Successfully"); } Thread.sleep(1000); //Closing the browser driver.quit(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setDriverPathForBrowser(String browserName) {\n \t\n \tif ( !binariesPath.exists() ) throw new IllegalStateException(\"No path at \" + binariesPath.getAbsolutePath() );\n \t\n switch (browserName.toLowerCase()) {\n case \"firefox\":\n {\n if (isMac())\n {\n System.setProperty(\"webdriver.gecko.driver\", new File(binariesPath,\"/MAC/geckodriver-v0.19.0-macos.tar.gz/geckodriver-v0.19.0-macos.tar\").getAbsolutePath());\n }\n else if (isLinux())\n {\n System.setProperty(\"webdriver.gecko.driver\", new File(binariesPath, \"/Ubuntu/geckodriver\").getAbsolutePath());\n }\n else\n {\n System.setProperty(\"webdriver.gecko.driver\", new File(binariesPath, \"/Windows/geckodriver.exe\").getAbsolutePath());\n }\n break;\n }\n case \"chrome\": {\n if (isMac()) {\n System.setProperty(\"webdriver.chrome.driver\", new File(binariesPath, \"/MAC/chromedriver\").getAbsolutePath());\n } else if (isLinux()) {\n System.setProperty(\"webdriver.chrome.driver\",new File(binariesPath, \"/Ubuntu/chromedriver\").getAbsolutePath());\n } else {\n System.setProperty(\"webdriver.chrome.driver\",new File(binariesPath,\"/Windows/chromedriver.exe\").getAbsolutePath());\n }\n break;\n }\n case \"ie\":\n System.setProperty(\"webdriver.ie.driver\", new File(binariesPath,\"/Windows/IEDriverServer.exe\").getAbsolutePath());\n }\n }", "private String getBinaryPath() {\n return System.getProperty(SeLionConstants.WEBDRIVER_GECKO_DRIVER_PROPERTY,\n Config.getConfigProperty(ConfigProperty.SELENIUM_GECKODRIVER_PATH));\n }", "public Selenium(String chromePath) {\n this.browserDriverPath = chromePath; \n }", "static String getBrowserPath()\n \t{\n \t\tint os = PropertiesAndDirectories.os();\n \t\tString result = browserPath;\n \t\tif (result == null)\n \t\t{\n \t\t\tswitch (os)\n \t\t\t{\n \t\t\tcase PropertiesAndDirectories.XP:\n \t\t\tcase PropertiesAndDirectories.VISTA_AND_7:\n \t\t\t\tif (!Pref.lookupBoolean(\"navigate_with_ie\"))\n \t\t\t\t\tresult = FIREFOX_PATH_WINDOWS;\n \t\t\t\tif (result != null)\n \t\t\t\t{\n \t\t\t\t\tFile existentialTester = new File(result);\n \t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t{\n \t\t\t\t\t\tresult = FIREFOX_PATH_WINDOWS_64;\n \t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tresult = IE_PATH_WINDOWS;\n \t\t\t\t\t\t\texistentialTester = new File(result);\n \t\t\t\t\t\t\tif (!existentialTester.exists())\n \t\t\t\t\t\t\t\tresult = null;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase PropertiesAndDirectories.MAC:\n \t\t\t\tresult = \"/usr/bin/open\";\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\t\terror(PropertiesAndDirectories.getOsName(), \"go(ParsedURL) not supported\");\n \t\t\t\tbreak;\n \t\t\t}\n \t\t\tif (result != null)\n \t\t\t{\n \t\t\t\tbrowserPath = result;\n \t\t\t}\n \t\t}\n \t\treturn result;\n \t}", "public void getDriver() {\n\t\tWebDriverManager.chromedriver().setup();\n\t\tdriver = new ChromeDriver();\n\t}", "public static void browseSetUp(String browserDriver, String driverPath, String url) {\n\n // connect and open browser\n System.setProperty(browserDriver, driverPath);\n System.setProperty(browserDriver, driverPath);\n driver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n driver.get(url);\n driver.navigate().to(url);\n }", "private void initDriver(){\r\n String browserToBeUsed = (String) jsonConfig.get(\"browserToBeUsed\");\r\n switch (browserToBeUsed) {\r\n case \"FF\":\r\n System.setProperty(\"webdriver.gecko.driver\", (String) jsonConfig.get(\"fireFoxDriverPath\"));\r\n FirefoxProfile ffProfile = new FirefoxProfile();\r\n // ffProfile.setPreference(\"javascript.enabled\", false);\r\n ffProfile.setPreference(\"intl.accept_languages\", \"en-GB\");\r\n\r\n FirefoxOptions ffOptions = new FirefoxOptions();\r\n ffOptions.setProfile(ffProfile);\r\n driver = new FirefoxDriver(ffOptions);\r\n break;\r\n case \"CH\":\r\n String driverPath = (String) jsonConfig.get(\"chromeDriverPath\");\r\n System.setProperty(\"webdriver.chrome.driver\", driverPath);\r\n\r\n Map<String, Object> prefs = new HashMap<String, Object>();\r\n prefs.put(\"profile.default_content_setting_values.notifications\", 2);\r\n\r\n ChromeOptions options = new ChromeOptions();\r\n options.setExperimentalOption(\"prefs\", prefs);\r\n options.addArguments(\"--lang=en-GB\");\r\n driver = new ChromeDriver(options);\r\n break;\r\n case \"IE\":\r\n System.setProperty(\"webdriver.ie.driver\", (String) jsonConfig.get(\"ieDriverPath\"));\r\n\r\n InternetExplorerOptions ieOptions = new InternetExplorerOptions();\r\n ieOptions.disableNativeEvents();\r\n ieOptions.requireWindowFocus();\r\n ieOptions.introduceFlakinessByIgnoringSecurityDomains();\r\n driver = new InternetExplorerDriver(ieOptions);\r\n }\r\n\r\n driver.manage().window().maximize();\r\n }", "public static WebDriver getBrowser(BrowserType browserName) {\n\t\tWebDriver driver = null;\n\t\t// System.setProperty(\"webdriver.gecko.driver\",\"G:\\\\eclipse-workspace\\\\zeeui\\\\driver\\\\geckodriver.exe\");\n\t\t// String browserType=Config.getValue(\"BROWSER_TYPE\");\n\t\tif (browserName.equals(BrowserType.FIREFOX)) {\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", Constants.firefoxDriver);\n\t\t\tFirefoxProfile profile = new FirefoxProfile();\n\t\t\tprofile.setPreference(\"browser.download.folderList\", 2);\n\t\t\tprofile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\t\tprofile.setPreference(\"browser.download.dir\", Config.getValue(\"EXPORT_FILE_PATH\"));\n\t\t\tprofile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\",\n\t\t\t\t\t\"image/jpg, text/csv,text/xml,application/xml,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/excel,application/pdf,application/octet-stream\");\n\t\t\tdriver = new FirefoxDriver(profile);\n\t\t\tdrivers.put(\"firefox\", driver);\n\t\t} else if (browserName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", Constants.chromeDriver);\n\t\t\tMap<String, String> prefs = new Hashtable<String, String>();\n\t\t\tprefs.put(\"download.prompt_for_download\", \"false\");\n\t\t\tprefs.put(\"download.default_directory\", Config.getValue(\"EXPORT_FILE_PATH\"));\n\t\t\tprefs.put(\"download.extensions_to_open\",\n\t\t\t\t\t\"image/jpg, text/csv,text/xml,application/xml,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/excel,application/pdf,application/octet-stream\");\n\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\tdriver = new ChromeDriver(options);\n\t\t\tdrivers.put(\"chrome\", driver);\n\t\t} else if (browserName.equals(\"ie\")) {\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", Config.getValue(\"IE_DRIVER\"));\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tdrivers.put(\"ie\", driver);\n\t\t} else if (browserName.equals(\"edge\")) {\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\", Config.getValue(\"EDGE_DRIVER\"));\n\t\t\tdriver = new EdgeDriver();\n\t\t\tdrivers.put(\"edge\", driver);\n\t\t} else if (browserName.equals(\"safari\")) {\n\t\t\tdriver = new SafariDriver();\n\t\t\tdrivers.put(\"safari\", driver);\n\t\t} else if (browserName.equals(\"htmlUnit\")) {\n\t\t\tdriver = new HtmlUnitDriver();\n\t\t}\n\n\t\treturn driver;\n\n\t}", "protected WebDriver getDriver() {\n return Web.getDriver(Browser.CHROME, server.getURL() + \"TEST\", By.className(\"AuO\"));\n }", "public static WebDriver getDriver(){\n if(driver==null){\n //get the driver type from properties file\n\n String browser=ConfigurationReader.getPropery(\"browser\");\n switch(browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver=new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver=new FirefoxDriver();\n }\n }\n\n return driver;\n }", "public WebDriver getWebDriver() {\n\t\tString driverName = getProperty(\"driver\");\n\t\tif (driverName.equals(\"firefox\")) {\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (driverName.equals(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src\\\\main\\\\resources\\\\binaries\\\\chromedriver.exe\");\n\t\t\tdriver = new ChromeDriver();\n\t\t} \n\t\treturn driver;\n\t}", "public void loadDriver() {\n\t\t\n\t\t//get() method is used to open an URL and it will wait till the whole page gets loaded.\n\t\twebDriver.get(\"https://www.google.co.in/\");\n\t}", "public static void setChromeDriverProperty() {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\automation_new_code\\\\onfs.alip.accounting\\\\BrowserDriver/chromedriver.exe\");\n\t\t}", "public void setChromeDriver(){\n System.setProperty(\"webdriver.chrome.driver\", browserDriverPath);\n seleniumDriver = new ChromeDriver();\n }", "public static WebDriver startBrowser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"./driver/chromedriver.exe\");\n\t\t\n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\t WebDriver driver = new ChromeDriver();\n\t\t \n\t\t// Create ChromeDriver object, launch Chrome browser\n\t\tdriver.get(\"http://techfios.com/test/107/\");\n\t\treturn driver;\n\t}", "public static void openBrowser() {\r\n\t\tString browser = prop.getProperty(\"browserType\").toLowerCase();\r\n\r\n\t\ttry {\r\n\t\t\tif (browser.equals(\"chrome\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"chromeName\"), prop.getProperty(\"chromePath\"));\r\n\t\t\t\tdriver = new ChromeDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ff\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"FFName\"), prop.getProperty(\"FFPath\"));\r\n\t\t\t\tdriver = new FirefoxDriver();\r\n\r\n\t\t\t} else if (browser.equals(\"ie\")) {\r\n\t\t\t\tSystem.setProperty(prop.getProperty(\"IEName\"), prop.getProperty(\"IEPath\"));\r\n\t\t\t\tdriver = new InternetExplorerDriver();\r\n\r\n\t\t\t} else {\r\n\t\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tAssert.fail(\"Unable to find browser, Check EnvrionrmentData.properties file\");\r\n\t\t}\r\n\t}", "@Override\n public RemoteWebDriver getDriver() {\n\n File chromeFile = new File(Config.getProperty(Config.CHROME_PATH));\n System.setProperty(\"webdriver.chrome.driver\", chromeFile.getAbsolutePath());\n\n ChromeDriverService service = new ChromeDriverService.Builder()\n .usingDriverExecutable(chromeFile)\n .usingAnyFreePort().build();\n Driver.chromeService.set(service);\n try {\n service.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"--no-sandbox\");\n DesiredCapabilities capabilities = DesiredCapabilities.chrome();\n capabilities.setCapability(ChromeOptions.CAPABILITY, options);\n return new ChromeDriver(capabilities);\n }", "public static void ChromeExePathSetUp() {\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \r\n\t\t\t\t\"D:\\\\VisionITWorkspace\\\\dependencies\\\\chromedriver_win32\\\\chromedriver.exe\");\r\n\t\tReporter.log(\"Chrome Exe path Set up\", true);\r\n\t}", "public void setDriver(String browserName){\r\n\t \r\n\t\t if(browserName==null){\r\n\t\t\t browserName=\"firefox\";\r\n\t\t\t \r\n\t\t }\r\n\t\t if(browserName.equalsIgnoreCase(\"firefox\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", FIREFOX_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new FirefoxDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"chrome\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\",CHROME_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new ChromeDriver();\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t \r\n\t\t if(browserName.equalsIgnoreCase(\"ie\")){\r\n\t\t\t \r\n\t\t\t System.setProperty(\"webdriver.ie.driver\",IE_DRIVER_PATH);\r\n\t\t\t \r\n\t\t\t driver= new InternetExplorerDriver();\r\n\t\t\t \r\n\t\t }\r\n\t\r\n\t\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void setChromeDriverDownloadPath(String path)\n\t{\n\t\tApplicationProperties appProperties = p6web.getInstance();\n\t\t\n\ttry{\n\t\t\n\t\tm_driver = ApplicationProperties.getInstance().getDriver();\n\t\tm_driver.get(\"chrome://settings/advanced\");\n JavascriptExecutor js = (JavascriptExecutor) m_driver;\n String prefId = \"download.default_directory\";\n File tempDir=new File(System.getProperty(\"user.dir\")+path);\n if (m_driver.findElements(By.xpath(String.format(\".//input[@pref='%s']\", prefId))).size() == 0) {\n \tm_driver.get(\"chrome://settings-frame\");\n \tm_driver.findElement(By.xpath(\".//button[@id='advanced-settings-expander']\")).click(); }\n String tmpDirEscapedPath = tempDir.getCanonicalPath().replace(\"\\\\\", \"\\\\\\\\\");\n js.executeScript(String.format(\"Preferences.setStringPref('%s', '%s', true)\", prefId,\n tmpDirEscapedPath));\n\t\t}\n\t\n\t\tcatch(IOException e){\n\t\t\t\n\t\t}\n\t\n\t\tm_driver.get(appProperties.getUrl());\n\t\n\t}", "private static WebDriver driver() {\n\t\treturn null;\r\n\t}", "public static WebDriver getDriver() {\n\t\t\n\t\tString driver = System.getProperty(\"selenium.driver\");\n\t\tif(driver.equals(\"ie\")) {\n\t\t\treturn getIEDriver();\n\t\t\t\n\t\t}\n\t\telse if(driver.equals(\"chrome\")) {\n\t\t\treturn getChromeDriver();\n\t\t}\n\t\t\telse if(driver.equals(\"firefox\")) {\n\t\t\t\treturn getFirefoxriver();\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new RuntimeException(\"System property selenium driver is not set\");\n\t\t}\n\t}", "@Before\n public synchronized static WebDriver openBrowser() {\n String browser = System.getProperty(\"BROWSER\");\n\n\n if (driver == null) {\n try {\n //Kiem tra BROWSER = null -> gan = chrome\n if (browser == null) {\n browser = System.getenv(\"BROWSER\");\n if (browser == null) {\n browser = \"chrome\";\n }\n }\n switch (browser) {\n case \"chrome\":\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n case \"firefox\":\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n break;\n case \"chrome_headless\":\n WebDriverManager.chromedriver().setup();\n ChromeOptions options = new ChromeOptions();\n options.addArguments(\"headless\");\n options.addArguments(\"window-size=1366x768\");\n driver = new ChromeDriver(options);\n break;\n default:\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n break;\n }\n } catch (UnreachableBrowserException e) {\n driver = new ChromeDriver();\n } catch (WebDriverException e) {\n driver = new ChromeDriver();\n } finally {\n Runtime.getRuntime().addShutdownHook(new Thread(new BrowserCleanup()));\n }\n driver.get(\"http://demo.guru99.com/v4/\");\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n driver.manage().window().maximize();\n log.info(\"----------- START BRWOSER -----------\");\n\n }\n return driver;\n }", "public static final BaseRemoteWebDriver getDriver() {\r\n\t\tString browser = ConfigProperties.BROWSER;\r\n\t\tif (driver == null) {\r\n\r\n\t\t\tif (browser.equalsIgnoreCase(FIREFOX)) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'firefox' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.firefox();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(CHROME)) {\r\n\r\n\t\t\t\tif (isPlatformWindows())\r\n\r\n\t\t\t\t\tlog.info(\"initializing 'chrome' driver...\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\tcapabilities.setCapability(\r\n\t\t\t\t\t\tCapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, \"ignore\");\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(INTERNET_EXPLORER)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows(),\r\n\t\t\t\t\t\t\"Internet Explorer is not supporting in this OS\");\r\n\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.internetExplorer();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tlog.info(\"initializing 'internet explorer' driver...\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(SAFARI)) {\r\n\r\n\t\t\t\tAssert.assertTrue(isPlatformWindows() || isPlatformMac(),\r\n\t\t\t\t\t\t\"Safari is not supporting in this OS\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.safari();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\telse if (browser.equalsIgnoreCase(\"html\")) {\r\n\r\n\t\t\t\tlog.info(\"initializing 'html' driver...\");\r\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities\r\n\t\t\t\t\t\t.htmlUnit();\r\n\t\t\t\tcapabilities.setCapability(CapabilityType.ACCEPT_SSL_CERTS,\r\n\t\t\t\t\t\ttrue);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdriver = new BaseRemoteWebDriver(new URL(\r\n\t\t\t\t\t\t\tConfigProperties.HUBURL), capabilities);\r\n\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn driver;\r\n\t}", "public File getChromeDriverFile(){\r\n\t\t\r\n\t\tFile file=null;\r\n\t\tif(testBed.getBrowser().getDriverLocation()!=null){\r\n\t\t\t\r\n\t\t\tfile =new File(testBed.getBrowser().getDriverLocation());\r\n\t\t\r\n\t\t}else{\r\n\t\t\tif(ConfigUtil.isWindows(testBed))\r\n\t\t\t{\r\n\t\t\t\t//TODO have to remove the hard coded values\r\n\t\t\t\t//file = new File(\"..\\\\test-automation-library\\\\resources\\\\chromedriver.exe\");\r\n\t\t\t\tfile = new File(DriverConstantUtil.CHROME_WINDOWS_DRIVER_FILE);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tfile = new File(DriverConstantUtil.CHROME_MAC_DRIVER_FILE);\r\n\t\t\t\t//file = new File(\"/Users/sonamdeo/git/test-automation/test-automation-library/resources/chromedriver\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn file;\r\n\t}", "private WebDriver getDriver() {\n return new ChromeDriver();\n }", "private void setLocalWebdriver() {\n\n DesiredCapabilities capabilities = new DesiredCapabilities();\n capabilities.setJavascriptEnabled(true);\n capabilities.setCapability(\"handlesAlerts\", true);\n switch (getBrowserId(browser)) {\n case 0:\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n driver.set(new InternetExplorerDriver(capabilities));\n break;\n case 1:\n driver.set(new FirefoxDriver(capabilities));\n break;\n case 2:\n driver.set(new SafariDriver(capabilities));\n break;\n case 3:\n driver.set(new ChromeDriver(capabilities));\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n }", "public WebDriver getDriver() throws MalformedURLException {\r\n\t\tif (gridMode) {\r\n\t\t\treturn new RemoteWebDriver(new URL(\"http://192.168.106.36:5555/wd/hub\"), getBrowserCapabilities(browser));\r\n\t\t} else {\r\n\t\t\tswitch (browser.toLowerCase()) {\r\n\t\t\tcase \"firefox\":\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\tFirefoxOptions options = new FirefoxOptions();\r\n\t\t\t\toptions.setProfile(firefoxProfile());\r\n\t\t\t\treturn new FirefoxDriver(options);\r\n\r\n\t\t\tcase \"chrome\":\r\n\t\t\t\tstartChromeDriver();\r\n\t\t\t\treturn new ChromeDriver(chromeoptions());\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"Selecting firefox as default browser.\");\r\n\t\t\t\tstartGeckoDriver();\r\n\t\t\t\toptions = new FirefoxOptions();\r\n\t\t\t\toptions.setProfile(firefoxProfile());\r\n\t\t\t\treturn new FirefoxDriver(options);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@BeforeTest\r\n\tpublic void operBrowser(){\n\t\td1=Driver.getBrowser();\r\n\t\tWebDriverCommonLib wlib=new WebDriverCommonLib();\r\n\t\td1.get(Constant.url);\r\n\t\twlib.maximizeBrowse();\r\n\t\twlib.WaitPageToLoad();\r\n\t}", "@BeforeClass\n\tpublic static void configureDriver(){\n\t\tif(driver == null) {\n\t\t\tif(Constants.browserName.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\chromedriver.exe\");\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"firefox\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\geckodriver.exe\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"edge\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\msedgedriver.exe\");\n\t\t\t\tdriver = new EdgeDriver();\n\t\t\t} else if(Constants.browserName.equalsIgnoreCase(\"ie\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\",\n\t\t\t\t\t\t\"C:\\\\Users\\\\rober\\\\Documents\\\\WebDrivers\\\\chromedriver_win32-89\"\n\t\t\t\t\t\t+ \"\\\\IEDriver.exe\");\n\t\t\t\tdriver = new InternetExplorerDriver();\n\t\t\t}\n\t\t}\n\t\t\n\t\tdriver.manage().deleteAllCookies();\n\t\tdriver.manage().timeouts().implicitlyWait(20,TimeUnit.SECONDS);\n\t\tdriver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);\n\t\tdriver.manage().window().maximize();\n\t\t\n\t\tdriver.get(Constants.url);\n\t\t\n\t}", "public static void setup(String browser) throws Exception{\n if(browser.equalsIgnoreCase(\"firefox\")){\n \tFile pathToBinary = new File(\"C:\\\\Program Files (x86)\\\\Mozilla Firefox 41\\\\firefox.exe\");\n \tFirefoxBinary binary = new FirefoxBinary(pathToBinary);\n \tFirefoxDriver driver = new FirefoxDriver(binary, new FirefoxProfile());\n \t\n \t//System.setProperty(\"webdriver.firefox.driver\",\"C:\\\\Program Files (x86)\\\\Mozilla Firefox\\\\firefox.exe\");\n \t/*DesiredCapabilities capabilies = DesiredCapabilities.firefox();\t\t\t\n capabilies.getBrowserName();\n capabilies.getVersion();*/\n \t\t\t\n \t//create Firefox instance\t \n //driver = new FirefoxDriver(); \n System.out.println(\"Browser Used: \"+browser);\n }\t \n //Check if parameter passed is 'Chrome'\n // https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/chrome/ChromeOptions.html\n // http://www.programcreek.com/java-api-examples/index.php?api=org.openqa.selenium.remote.DesiredCapabilities (Singleton)\n else if(browser.equalsIgnoreCase(\"chrome\")){\t \t \n System.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n ChromeOptions opt = new ChromeOptions();\n opt.setBinary(\"C:\\\\Selenium\\\\Assets\\\\chromedriver.exe\");\n opt.setExperimentalOption(\"Browser\", \"Chrome\");\n opt.getExperimentalOption(\"version\");\n \n// DesiredCapabilities capabilies = DesiredCapabilities.chrome();\n// capabilies.setBrowserName(\"chrome\");\n// capabilies.setPlatform(Platform.WINDOWS);\n// capabilies.setVersion(\"38\");\n// DesiredCapabilities capabilities = new DesiredCapabilities();\n \n //Create Chrome instance\n driver = new ChromeDriver(opt);\t \n }\n \n //Check if parameter passed is 'Safari'\t\n else if(browser.equalsIgnoreCase(\"safari\")){\t \t \n \tSystem.setProperty(\"webdriver.safari.driver\",\"C:/safaridriver.exe\");\n \t\n \t//System.setProperty(\"webdriver.safari.noinstall\", \"true\");\n \tdriver = new SafariDriver();\n \t\n /*\tSafariOptions options = new SafariOptions();\n \tSafariDriver driver = new SafariDriver(options);\n \tDesiredCapabilities capabilities = DesiredCapabilities.safari();\n \tcapabilities.setCapability(SafariOptions.CAPABILITY, options);*/\n }\n \n //Check if parameter passed is 'IE'\t \n else if(browser.equalsIgnoreCase(\"ie\")){\n \t//String IE32 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_32.exe\"; //IE 32 bit\n\t\t\tString IE64 = \"C:\\\\Selenium\\\\Assets\\\\IEDriverServer_64.exe\"; //IE 64 bit\n \tSystem.setProperty(\"webdriver.ie.driver\",IE64);\n \t\n /* \tDesiredCapabilities capabilies = DesiredCapabilities.internetExplorer();\n \tcapabilies.setBrowserName(\"ie\");\n capabilies.getBrowserName();\n capabilies.getPlatform();\n capabilies.getVersion();*/\n \n \t//Create IE instance\n \tdriver = new InternetExplorerDriver();\n }\t \n else{\t \n //If no browser passed throw exception\t \n throw new Exception(\"Browser is not correct\");\t \n }\t \n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\t\t\n\t}", "private static void setDriver(String driverProperty, String driverPath) {\r\n if (System.getProperty(driverProperty) == null) {\r\n File driverFile = new File(driverPath);\r\n System.setProperty(driverProperty, driverFile.getAbsolutePath());\r\n }\r\n }", "@Override\n public RemoteWebDriver getDriver() {\n\n File ieFile = new File(Config.getProperty(Config.IE_PATH));\n System.setProperty(\"webdriver.ie.driver\", ieFile.getAbsolutePath());\n\n DesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(\n InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n true);\n capabilities.setJavascriptEnabled(true);\n return new InternetExplorerDriver(capabilities);\n }", "public void Open_Browser() \r\n\t{\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"drivers\\\\chromedriver.exe\");\r\n\t\t//Brower initiation\r\n\t\tdriver=new ChromeDriver();\r\n\t\t//maximize browser window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\r\n\t}", "@Override\r\n\tpublic void buildDriver() throws DriverException\r\n\t{\r\n\t\tif(ConfigUtil.isLocalEnv())\r\n\t\t{\r\n\t\t\t// if it is a Selenium tool, then create selenium ChromeDriver\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\t\r\n\t\t\t\tFile chromeDriverFile=getChromeDriverFile();\r\n\t\t\t\tSystem.out.println(\" Found Driver file\");\r\n\t\t\t\tdriver =SeleniumDriver.buildChromeDriver(chromeDriverFile);\r\n\t\t\t\t //new org.openqa.selenium.chrome.ChromeDriver();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isRemoteEnv())\r\n\t\t{\r\n\t\t\tif(ConfigUtil.isSelenium()){\r\n\t\t\t\tcapabilities = DesiredCapabilities.chrome();\t\r\n\t\t\t\tdriver = SeleniumDriver.buildRemoteDriver(capabilities);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\telse if(ConfigUtil.isBrowserStackEnv())\r\n\t\t{\r\n\t\t\tcapabilities = DesiredCapabilities.chrome();\r\n\t\t\tbuildBrowserstackCapabilities();\r\n\r\n\t\t}\r\n\r\n\t}", "@BeforeClass\n @Parameters({ \"browser\", \"url\" })\n public void startDriver(@Optional(\"chrome\") String WindowBrowser, @Optional(\"http://computer-database.herokuapp.com/computers\") String URL) {\n\n final String os = System.getProperty(\"os.name\");\n userDirectory = System.getProperty(\"user.dir\");\n Log.info(\"Starting to intialise driver\");\n Log.info(\"OS environment: \" + os);\n Log.info(\"Browser: \" + WindowBrowser);\n if (WindowBrowser.equalsIgnoreCase(BROWSERS.FIREFOX.getBrowserName())) {\n final StringBuilder geckoDriverPath = new StringBuilder();\n geckoDriverPath.append(userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\");\n if (os.contains(OS.MAC.getOsName())) {\n geckoDriverPath.append(File.separator + \"mac\" + File.separator + \"geckodriver\");\n } else if (os.contains(OS.WIN.getOsName())) {\n geckoDriverPath.append(File.separator + \"win\" + File.separator + \"geckodriver.exe\");\n }\n System.setProperty(\"webdriver.gecko.driver\", geckoDriverPath.toString());\n driver = new FirefoxDriver();\n } else if (WindowBrowser.equalsIgnoreCase(BROWSERS.CHROME.getBrowserName())) {\n final StringBuilder chromeDriverPath = new StringBuilder();\n System.out.println(userDirectory);\n chromeDriverPath.append(userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\");\n if (os.contains(OS.MAC.getOsName())) {\n chromeDriverPath.append(File.separator + \"mac\" + File.separator + \"chromedriver\");\n } else if (os.contains(OS.WIN.getOsName())) {\n chromeDriverPath.append(File.separator + \"win\" + File.separator + \"chromedriver.exe\");\n }\n System.setProperty(\"webdriver.chrome.driver\", chromeDriverPath.toString());\n driver = new ChromeDriver();\n } else if (WindowBrowser.equalsIgnoreCase(BROWSERS.SAFARI.getBrowserName())) {\n driver = new SafariDriver();\n }\n driver.manage().window().setSize(new Dimension(1440, 844));\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n BaseURl = URL;\n Log.info(\"Driver initialised successfully\");\n driver.get(BaseURl);\n Log.info(\"Opening URl: \" + URL);\n }", "public static WebDriver getDriver() {\n return driver.get();\n }", "public void driverStart(String baseURL) {\n// FirefoxDriverManager.getInstance().setup();\n// driver = new FirefoxDriver();\n// driver.manage().window().maximize();\n// webDriverWait = new WebDriverWait(driver, 10);\n//\n//// ChromeDriverManager.getInstance().setup();\n//// driver = new ChromeDriver();\n//// driver.manage().window().maximize();\n//// webDriverWait = new WebDriverWait(driver, 5);\n//\n// driver.get(baseURL);\n\n FirefoxDriverManager.getInstance().setup();\n WebDriver driver = new FirefoxDriver();\n driver.get(\"http://localhost/litecart/\");\n\n\n }", "public WebDriver getDriver() {\n\t\tSystem.out.println(\"Inside DriverFactory.getDriver\");\n\t\tif (webDriver == null) {\n\t\t\twebDriver = launchDriver();\n\t\t}\n\t\treturn webDriver;\n\t}", "@BeforeTest\r\n\tpublic void launch()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Yogini\\\\chromedriver\\\\chromedriver.exe\"); //location of browser in local drive\r\n\t\tWebDriver driver = new ChromeDriver(); \r\n\t\tdriver.get(tobj.url);\r\n\t\tSystem.out.println(\"Before test, browser is launched\");\r\n\t}", "Driver getDriver();", "public void setup(){\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"//Users//bpat12//Downloads//chromedriver\");\n\t\tdriver = new ChromeDriver();\n\t\tSystem.out.println(\"launch browser\");\n\t\tdriver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);\n\t\tdriver.get(url);\n\t}", "public void initDriver() {\n if (getBrowser().equals(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n if (System.getProperty(\"headless\") != null) {\n FirefoxOptions firefoxOptions = new FirefoxOptions();\n firefoxOptions.setHeadless(true);\n driver = new FirefoxDriver(firefoxOptions);\n } else {\n driver = new FirefoxDriver();\n }\n } else {\n WebDriverManager.chromedriver().setup();\n if (System.getProperty(\"headless\") != null) {\n ChromeOptions chromeOptions = new ChromeOptions();\n chromeOptions.setHeadless(true);\n driver = new ChromeDriver(chromeOptions);\n } else {\n driver = new ChromeDriver();\n }\n }\n }", "public FirefoxDriver openBrowser(String site){\n System.setProperty(\"webdriver.gecko.driver\", \"c:\\\\Utils\\\\geckodriver.exe\");\n FirefoxDriver browser = new FirefoxDriver();\n browser.get(site);\n return browser;\n }", "public void openBrowser() {\n ResourceBundle config = ResourceBundle.getBundle(\"config\");\n\n config.getString(\"browser\").equalsIgnoreCase(\"Chrome\");\n System.setProperty(\"webdriver.chrome.driver\", \"src/Drivers/chromedriver_76.0.exe\");\n driver = new ChromeDriver();\n\n driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n// driver.get(config.getString(\"URL\"));\n driver.manage().window().maximize();\n }", "public void setUpDriver(final String browser) throws MalformedURLException{\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString gridUrl=System.getProperty(\"gridurl\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//check if parameter passed from TestNg is 'firefox'\r\n\t\t\r\n//\t\tif (BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n//\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t if(StringUtils.isNotEmpty(gridUrl)){\r\n//\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t }\r\n//\t\t else{\r\n//\t\t\t driver =new FirefoxDriver(capabilities);\r\n//\t\t }\r\n\t\t \r\n\t\t\r\n\t\tif(BrowserLib.FIREFOX.equalsIgnoreCase(browser)){\r\n\t\t\t\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.firefox();\r\n//\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t \r\n\t\t\t final String firebugpath1=\"src//main//resource//firepath-0.9.7.1-fx.xpi\";\r\n\t\t\t final String firebugpath =\"src//main//resource//firebug-1.12.8.xpi\";\r\n\t\t\t FirefoxProfile profile=new FirefoxProfile();\r\n//\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\r\n\t\t\t \r\n\t\t\t try{\r\n\t\t\t\t profile.addExtension(new File(firebugpath));\r\n\t\t\t\t profile.addExtension(new File(firebugpath1));\t \r\n\t\t\t }catch (IOException e){\r\n\t\t\t\t logger.error(\"Exception:\",e);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t profile.setPreference(\"extensions.firebug.allpagesActivation\", \"on\");\r\n//\t\t\t capabilities.setCapability(FirefoxDriver.PROFILE,profile);\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t System.setProperty(\"webdriver.firefox.driver\", \"C:\\\\Program Files\\\\MozillaFirefox\\\\firefox.exe\");\r\n\t\t\t //if (StringUtils.isNotEmpty(gridUrl)){\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t}else if(BrowserLib.CHROME.equalsIgnoreCase(browser)){\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.chrome();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n\t\t\t if(gridUrl==null){\r\n\t\t\t\t driver =new ChromeDriver();\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t \r\n\t\t}else if(BrowserLib.INTERNET_EXP.equalsIgnoreCase(browser)){\r\n//\t\t\tset path to iedriver.exe you may need to download it from 32 bits\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tSystem.setProperty(\"webDriver.ie.driver\", System.getProperty(\"user.dir\")+\"/src/main/resource/\"+ \"IEDriverserver.exe\");\r\n//\t\t\t create ie instance\r\n\t\t\t DesiredCapabilities capabilities =DesiredCapabilities.internetExplorer();\r\n\t\t\t capabilities.setCapability(CapabilityType.ForSeleniumServer.ENSURING_CLEAN_SESSION, true);\r\n//\t\t\t if (StringUtils.isNotEmpty(gridUrl)){\r\n// \t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n//\t\t\t }else{\r\n//\t\t\t\t driver =new FirefoxDriver(capabilities); \r\n//\t\t\t }\r\n\t\t\t if(gridUrl.isEmpty()){\r\n\t\t\t\t driver =new InternetExplorerDriver(capabilities); \r\n \t\t\t \r\n\t\t\t }else{\r\n\t\t\t\t driver=new RemoteWebDriver(new URL(gridUrl),capabilities);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t}else{\r\n//\t\t\tif no browser passed throw exception\r\n\t\t\tthrow new UnsupportBrowserException();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tthis.driver.manage().deleteAllCookies();\r\n\t\tthis.browserMaximize();\r\n\t\tthis.driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\r\n\t\t\r\n\t\t\r\n\t}", "public WebDriver getDriver(){\r\n\t\treturn this.driver;\r\n\t\t\t \r\n\t\t }", "public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}", "public static void main(String[] args) {\nString browser=\"ff\";\nif (browser.equals(\"chrome\")) {\n\tWebDriverManager.chromedriver().setup();\n\t// System.setProperty(\"webdriver.chrome.driver\", \"/Users/user/Downloads/chromedriver\");\n\tdriver=new ChromeDriver();\n}\nelse if (browser.equals(\"ff\")) {\n\tWebDriverManager.firefoxdriver().setup();\n\tdriver=new FirefoxDriver();\n}\nelse\n\tif (browser.equals(\"IE\")) {\n\t\tWebDriverManager.iedriver().setup();\n\t\tdriver=new InternetExplorerDriver();\n\t}\n\telse\n\t\tif (browser.equals(\"opera\")) {\n\t\t\tWebDriverManager.operadriver().setup();\n\t\t\tdriver=new OperaDriver();\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"no defined driver\");\n\t\t}\n\n\ndriver.get(\"https://google.com\");\n\n\n\n\t\n\n\n\n\n\n\n\n\n\n\n\n\t}", "public static WebDriver getDriver() {\n\t\treturn driver;\n\t}", "public WebDriver getWebdriver() {\n return driver.get();\n }", "private void setWebdriver() throws Exception {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir + fileSeparator + \"lib\" + fileSeparator + \"chromedriver.exe\");\n\t\tcapability = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--disable-extensions\");\n\t\toptions.addArguments(\"disable-infobars\");\n\t\tcapability.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tdriver = new ChromeDriver(capability);\n\t\tdriver.manage().deleteAllCookies();\n\t\t_eventFiringDriver = new EventFiringWebDriver(driver);\n\t\t_eventFiringDriver.get(getUrl());\n\t\t_eventFiringDriver.manage().window().maximize();\n\n\t}", "public static WebDriver getDriver() {\n return driver;\n }", "@BeforeMethod\n public void setDriver() throws MalformedURLException {\n\n\n driver = WebDriverFactory.getDriver(WebDriverFactory.CHROME).get();\n\n\n loginPage = new LoginPage(driver);\n loginPageHelper = new LoginPageHelper(driver);\n menuHelper = new MenuHelper(driver);\n }", "@Test\n\tpublic void launchSite()\t{\n\t\t\n\t\tSystem.setProperty(EdgeDriverService.EDGE_DRIVER_EXE_PROPERTY, \"D:\\\\Selenium Drivers\\\\MicrosoftWebDriver.exe\");\n\t\tEdgeDriver driver = new EdgeDriver();\n\t\tdriver.get(\"http://google.com\");\n\t\t\n\t}", "public static void startGeckoDriver() {\r\n\t\tswitch (operatingSystem.toLowerCase().split(\" \")[0]) {\r\n\t\tcase \"windows\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"src//main//resources//drivers//geckodriver.exe\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"linux\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"src//main//resources//drivers//geckodriverLinux\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"mac os x\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"src/main//resources//drivers//geckodriverMac\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Operating system not supported.\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public WebDriver launchBrowser(String browserName) {\n\n\t\tif (browserName.equals(\"chrome\")) {\n\t\t\t//System.setProperty(\"webdriver.chrome.driver\", \"/Users/naveenautomationlabs/Downloads/chromedriver\");\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\tdriver = new ChromeDriver();\n\t\t} else if (browserName.equals(\"firefox\")) {\n\t\t\t//System.setProperty(\"webdriver.gecko.driver\", \"/Users/naveenautomationlabs/Downloads/geckodriver\");\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\tdriver = new FirefoxDriver();\n\t\t} else if (browserName.equals(\"safari\")) {\n\t\t\tdriver = new SafariDriver();\n\t\t} else {\n\t\t\tSystem.out.println(\"please pass the correct browser....\");\n\t\t}\n\n\t\treturn driver;\n\t}", "@Override\n protected RemoteWebDriver createLocalDriver() {\n return new FirefoxDriver();\n }", "private void setRemoteWebdriver() {\n\n switch (getBrowserId(browser)) {\n case 0:\n capabilities = DesiredCapabilities.internetExplorer();\n capabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n Boolean.valueOf(System.getProperty(\"IGNORE_SECURITY_DOMAINS\", \"false\")));\n break;\n case 1:\n\t\tFirefoxProfile profile = new FirefoxProfile();\n \tprofile.setEnableNativeEvents(true);\n capabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, profile);\n \tcapabilities.setJavascriptEnabled(true);\n \tcapabilities.setCapability(\"marionette\", false);\n \tcapabilities.setCapability(\"acceptInsecureCerts\", true);\n break;\n case 2:\n capabilities = DesiredCapabilities.safari();\n break;\n case 3:\n capabilities = DesiredCapabilities.chrome();\n break;\n default:\n throw new WebDriverException(\"Browser not found: \" + browser);\n }\n capabilities.setCapability(\"javascriptEnabled\", true);\n capabilities.setCapability(\"platform\", platform);\n capabilities.setCapability(\"version\", version);\n capabilities.merge(extraCapabilities);\n\n try {\n this.driver.set(new RemoteWebDriver(new URL(\"http://\"\n + System.getProperty(\"GRID_HOST\") + \":\"\n + System.getProperty(\"GRID_PORT\") + \"/wd/hub\"),\n capabilities));\n } catch (MalformedURLException e) {\n LOGGER.log(Level.INFO,\n \"MalformedURLException in setRemoteWebdriver() method\", e);\n }\n }", "public void initiateBrowser(String browser) {\n\t\tString os = System.getProperty(\"os.name\").toLowerCase();\n\t\tString current_dir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(os);\n\t\tSystem.out.println(current_dir);\n\t\tswitch (browser) {\n\t\tcase \"ie\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", current_dir + \"/drivers/IEDriverServer.exe\");\n\t\t\tdriver = new InternetExplorerDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tif (os.contains(\"linux\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/linuxdrivers/chromedriver\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\n\t\t\t\toptions.setBinary(\"/usr/bin/google-chrome\");\n\t\t\t\toptions.addArguments(\"--headless\");\n\t\t\t} else if (os.contains(\"windows\")) {\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", current_dir + \"/drivers/chromedriver.exe\");\n\t\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();\n\t\t\t\tLoggingPreferences logPrefs = new LoggingPreferences();\n\t\t\t\tlogPrefs.enable(LogType.BROWSER, Level.ALL);\n\t\t\t\tcaps.setCapability(CapabilityType.LOGGING_PREFS, logPrefs);\n\t\t\t}\n\t\t\toptions.addArguments(\"test-type\");\n\t\t\toptions.addArguments(\"disable-popup-blocking\");\n\t\t\tdriver = new ChromeDriver(options);\n\n\t\t\tdriver.manage().window().maximize();\n\t\t\tbreak;\n\t\tcase \"firefox\":\n\t\t\tdriver = new FirefoxDriver();\n\t\t\tbreak;\n\t\t}\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t}", "public WebDriver getDriver(){\n\t\treturn driver;\n\t}", "@Parameters(\"browser\")\n\t@BeforeClass\n\tpublic void setupDriver(String browser) throws MalformedURLException {\n\t\tDesiredCapabilities dc = null;\n\t\t\n\t\tif (browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"/phptravels/src/main/resources/chromedriver.exe\");\n\t\t\tdc = DesiredCapabilities.chrome();\n\t\t\tdc.setBrowserName(\"chrome\");\n\t\t\t\n\t\t} else if (browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\tdc = DesiredCapabilities.firefox();\n\t\t\tdc.setBrowserName(\"firefox\");\n\t\t}\n\t\t\n\t\tdc.setPlatform(Platform.WIN8_1);\n\t\tdriver = new RemoteWebDriver(new URL(\"http://localhost:4444/wd/hub\"), dc);\n\t}", "public static void InvokeBrowser() {\n\t\tString currentDir = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(\"Current Directory \"+currentDir);\n\t\tDesiredCapabilities capabilities = DesiredCapabilities.chrome();\n\t\tChromeOptions options = new ChromeOptions();\n\t\toptions.addArguments(\"--incognito\");\n\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, options);\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\n\t\t\t\tcurrentDir+\"/lib/chromedriver/36/chromedriver.exe\");\n\t\tdriver = new ChromeDriver(capabilities);\n\t\tdriver.manage().window().maximize();\n\t\t//driver.navigate().to(URL);\n\t\t//logger.info(\"URL to proceed with transaction --> \"+URL);\n\t\t/*BestBuyAddCart.addToCart();\n\t\tdriver.close();\n\t\tdriver.quit();*/\n\t}", "@Test\r\n\tpublic void tc1(){\r\n\t\tWebDriverManager.chromedriver().setup();\r\n\t\tdriver=new ChromeDriver();\r\n\t\tdriver.get(\"https://www.seleniumhq.org/download/\");\r\n\t\tString title = driver.getTitle();\r\n\t\tSystem.out.println(title);\r\n\t\tdriver.close();\r\n\t}", "public void selectDriver();", "public String getDriver() {\r\n return driver;\r\n }", "public WebDriver browserSetup() throws IOException\r\n\t{ \r\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tSystem.out.println(\"1.Chrome\\n2.Firefox \\nEnter your choice:\");\r\n\t\tString choice=br.readLine();\r\n\t\t\r\n\t\tswitch(choice)\r\n\t\t{\r\n\t\t//To start Chrome Driver\r\n\t\tcase \"1\":\r\n\t\t System.setProperty(\"webdriver.chrome.driver\", \"C:\\\\Test Automation\\\\Software\\\\chrome\\\\New Version\\\\chromedriver.exe\");\r\n\t\t ChromeOptions options=new ChromeOptions();\r\n\t\t options.addArguments(\"--disable-notifications\");\r\n\t\t driver=new ChromeDriver(options);\r\n\t\t break;\r\n\t\t\r\n\t\t//To start Firefox Driver\r\n\t\tcase \"2\":\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", \"C:\\\\***\\\\drivers\\\\geckodriver.exe\");\r\n\t\t\tdriver=new FirefoxDriver();\r\n\t\t\tbreak;\r\n\t\t} \r\n\t\t\r\n\t\tdriver.get(url);\r\n\t\t\r\n\t\t//To maximize the window\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\tdriver.manage().timeouts().pageLoadTimeout(8, TimeUnit.SECONDS);\r\n\t\t\r\n\t\treturn driver;\r\n\t}", "public static void main(String[] args) {\n\t\tString current = System.getProperty(\"user.dir\");\n\t\tSystem.out.println(current);\n\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", current + \"\\\\Lib\\\\chromedriver.exe\");\n\n\t\tWebDriver driver = new ChromeDriver(); //open browser\n\t\tdriver.get(\"https://www.google.com\"); //open URL\n\t\ttry {\n\t\t\tThread.sleep(5000); //wait for 5 second\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tdriver.close(); //close browser \n\t}", "public String getDriver() {\n\t\t\tif (mDriver == null) {\n\t\t\t\tList<String> list = ShellHelper.cat(\n\t\t\t\t\tmRoot.getAbsolutePath() + DRIVER);\n\t\t\t\tif (list == null || list.isEmpty()) return null;\n\t\t\t\tmDriver = list.get(0);\n\t\t\t}\n\t\t\treturn mDriver;\n\t\t}", "public static WebDriver getDriver(String browsername)\n\t{\n\t\t\n\t\tWebDriver dri;\n\t\t\n\t\t\n\t\tif(browsername.equalsIgnoreCase(\"chrome\")) {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Chrome_Driver\\\\chromedriver.exe\"); \n\t\tdri = new ChromeDriver();\n\t\t}\n\t\t\n\t\telse{\n\t\t\t\n\t\t\tSystem.setProperty(\"webdriver.edge.driver\",\"C:\\\\Edge_Driver\\\\msedgedriver.exe\"); \n\t\t\tdri = new ChromeDriver(); //replace else if loop with switch\n\t\t\t\n\t\t}\n\t\t\n//\t\telse{\n//\t\t\t\n//\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C:\\\\Chrome_Driver\\\\chromedriver.exe\"); \n//\t\t\tdri = new ChromeDriver();\n//\t\t\t\n//\t\t}\n\t\t\n\t\treturn dri;\n\t\t\n\t}", "public WebDriver getDriver() {\n return driver;\n }", "public WebDriver getDriver() {\n return driver;\n }", "public static WebDriver chrome()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\Chrome\\\\chromedriver.exe\");\r\n\t\tgk = new ChromeDriver();\r\n\t\treturn gk;\r\n\t}", "public void setDriver(String driver) {\r\n this.driver = driver;\r\n }", "@Parameters(\"browser\")\n\t@BeforeMethod\n\tpublic void launchBrowser(String browser) throws InterruptedException{\n\t\tif(browser.equalsIgnoreCase(\"firefox\")) {\n\t\t\t \n\t\t\t driver = new FirefoxDriver();\n\t\t \n\t\t // If browser is IE, then do this\t \n\t\t \n\t\t }else if (browser.equalsIgnoreCase(\"ie\")) { \n\t\t \n\t\t\t // Here I am setting up the path for my IEDriver\n\t\t \n\t\t\t System.setProperty(\"webdriver.ie.driver\", \"C://Users//sudt//Downloads//IEDriverServer_x64_2.53.1//IEDriverServer (2).exe\");\n\t\t \n\t\t\t driver = new InternetExplorerDriver();\n\t\t \n\t\t } \n\t\t else if (browser.equalsIgnoreCase(\"chrome\")){\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//sudt//Downloads//chromedriver_win32//chromedriver.exe\");\n\t\t\t driver = new ChromeDriver();\n\t\t }\n\t\t else {\n throw new IllegalArgumentException(\"The Browser Type is Undefined\");\n }\n\n\t\tdriver.get(\"https://www.xero.com/us/\");\n\t\tdriver.manage().window().maximize();\n\t\n\t\n\t}", "private static WebDriver getDriver(browsers browser) {\n\t\t\t\tLOG.log(Level.CONFIG, \"Requested driver: \" + browser);\n\t\t// 1. WebDriver instance is not created yet\n\t\tif (driver == null) {\n\t\t\tLOG.log(Level.CONFIG, \"No previous driver found\");\n\t\t\tdriver = newWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\ttry {\n\t\t\tdriver.getCurrentUrl();//touch with stick\n\t\t} catch (Throwable t) {\n\t\t\tt.printStackTrace();\n\t\t\tnewWebDriver( browser);\n\t\t\treturn driver;\n\t\t}\n\t\treturn driver;\n\t}", "public static void initialization() throws InterruptedException, FileNotFoundException {\n\n String browserName = prop.getProperty(\"browser\");\n if (browserName.equalsIgnoreCase(\"chrome\")) {\n WebDriverManager.chromedriver().setup();\n driver = new ChromeDriver();\n } else if (browserName.equalsIgnoreCase(\"firefox\")) {\n WebDriverManager.firefoxdriver().setup();\n driver = new FirefoxDriver();\n }\n driver.manage().window().maximize();\n String url = prop.getProperty(\"url\");\n driver.get(url);\n driver.manage().timeouts().pageLoadTimeout(Util_Constants.IMPLICIT_WAIT, TimeUnit.SECONDS);\n\n\n }", "private void setFirefoxDriver() throws Exception {\n\t\t// Disable cache\n\t\tffProfile.setPreference(\"browser.cache.disk.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.disk_cache_ssl\", false);\n\t\tffProfile.setPreference(\"browser.cache.memory.enable\", false);\n\t\tffProfile.setPreference(\"browser.cache.offline.enable\", false);\n\t\t// Set to download automatically\n\t\tffProfile.setPreference(\"browser.download.folderList\", 2);\n\t\tffProfile.setPreference(\"browser.download.manager.showWhenStarting\", false);\n\t\tffProfile.setPreference(\"browser.helperApps.neverAsk.saveToDisk\", \"application/zip\");\n\t\tffProfile.setPreference(\"browser.download.dir\", BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X support\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);// \"\\\\temp_downloads\");\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\t\t// Disable hardware acceleration\n\t\tffProfile.setPreference(\"gfx.direct2d.disabled\", false);\n\t\tffProfile.setPreference(\"layers.acceleration.disabled\", false);\n\t\tFirefoxOptions ffOptions = new FirefoxOptions();\n\n\t\t/*\n\t\t * Set FF to run headless -- Need to make conditional from browser\n\t\t * parameter -- Does NOT work properly with all necessary tests.\n\t\t */\n\t\t// ffOptions.setHeadless(true);\n\n\t\tffOptions.setProfile(ffProfile);\n\t\tcapabilities = DesiredCapabilities.firefox();\n\t\tcapabilities.setCapability(FirefoxDriver.PROFILE, ffProfile);\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\", firefoxDriverLocation);\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), ffOptions);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultFirefoxVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" FF-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tmyDriver = new FirefoxDriver(ffOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "public static WebDriver setupDriver()\r\n\t{\r\n\t driver = getWebDriver();\r\n\t return driver;\r\n\t}", "@Parameters({\"browser\"})\n\t@BeforeMethod\n\tpublic final void setDriver(String browser) throws Exception{\n\t\tsetBrowser = browser;\n\t\tswitch(browser){\n\t\t\n\t\tcase \"chrome\":\n\t\t\tWebDriverManager.chromedriver().setup();\n\t\t\twebDriver.set(new ChromeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"firefox\":\n\t\t\tWebDriverManager.firefoxdriver().setup();\n\t\t\twebDriver.set(new FirefoxDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"ie\":\n\t\t\tWebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(new EdgeDriver());\n\t\tbreak;\n\t\t\n\t\tcase \"edge\":\n\t\t\t/*EdgeOptions options = new EdgeOptions();\n\t\t\t//options.setProxy(proxy)\n*/\t\t\tSystem.setProperty(\"webdriver.edge.driver\", resourcePath+\"Drivers/MicrosoftWebDriver.exe\");\n\t\t\tWebDriver driver = new EdgeDriver();\n\t\t\t//WebDriverManager.edgedriver().setup();\n\t\t\twebDriver.set(driver);\n\t\tbreak;\n\t\t\n\t\tcase \"safari\":\n\t\t\twebDriver.set(new SafariDriver());\n\t\t\n\t\t}\n\t}", "public String getDriver() {\n return driver;\n }", "public String getDriver() {\n return driver;\n }", "private void setChromeDriver() throws Exception {\n\t\t// boolean headless = false;\n\t\tHashMap<String, Object> chromePrefs = new HashMap<String, Object>();\n\t\tchromePrefs.put(\"profile.default_content_settings.popups\", 0);\n\t\tchromePrefs.put(\"download.default_directory\", BasePage.myTempDownloadsFolder);\n\t\tchromeOptions.setExperimentalOption(\"prefs\", chromePrefs);\n\t\t// TODO: Using \"C:\" will not work for Linux or OS X\n\t\tFile dir = new File(BasePage.myTempDownloadsFolder);\n\t\tif (!dir.exists()) {\n\t\t\tdir.mkdir();\n\t\t}\n\n\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\tchromeOptions.addArguments(\"--disable-extensions\");\n\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t/*\n\t\t * To set headless mode for chrome. Would need to make it conditional\n\t\t * from browser parameter Does not currently work for all tests.\n\t\t */\n\t\t// chromeOptions.setHeadless(true);\n\n\t\tif (runLocation.toLowerCase().equals(\"smartbear\")) {\n\t\t\tReporter.log(\"-- SMARTBEAR: standard capabilities. Not ChromeOptions\", true);\n\t\t\tcapabilities = new DesiredCapabilities();\n\t\t} else {\n\t\t\tcapabilities = DesiredCapabilities.chrome();\n\t\t\tcapabilities.setCapability(ChromeOptions.CAPABILITY, chromeOptions);\n\t\t}\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultChromeVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t \n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" Chrome-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", chromeDriverLocation);\n\t\t\tmyDriver = new ChromeDriver(chromeOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "@Test\r\n\tpublic void launch_browser()\r\n\t{ \r\n\t\t\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"C://TESTING TOOLS - SOFTWARES/chromedriver.exe\");\r\n\t\tWebDriver driver = new ChromeDriver();\r\n\t\tdriver.get(\"https://www.javatpoint.com/\");\r\n\t\t// remove all cookies\r\n\t\t//driver.manage().deleteAllCookies();\r\n\t\tdriver.manage().window().maximize();\r\n\t\t\r\n\t\t\r\n\t}", "private static WebDriver launchDriver(WebDriver driver)\n\t{\n\t\tswitch (getBrowserType())\n\t\t{\n\t\t\tcase InternetExplorer:\n\t\t\t{\n\t\t\t\tdriver = launchInternetExplorer();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase Chrome:\n\t\t\t{\n\t\t\t\tdriver = launchChrome();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tdefault:\n\t\t\t{\n\t\t\t\tdriver = launchFirefox();\n\t\t\t\tbreak;\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tdriver.manage().timeouts().implicitlyWait(getImplicitWaitTime(), TimeUnit.SECONDS);\n\t\twaitPageLoad = new WebDriverWait(driver, getPageLoadWaitTime());\n\t\twaitAjaxLoad = new WebDriverWait(driver, getAjaxLoadWaitTime());\n\t\tjavaScriptExecutor = (JavascriptExecutor) driver;\n\t\t\n\t\treturn driver;\n\t}", "@Test\n public void test() throws MalformedURLException {\n System.setProperty(\"webdriver.chrome.driver\",System.getProperty(\"user.dir\")+\"\\\\drivers\\\\chromedriver.exe\"); \n WebDriver driver=new ChromeDriver();\n // WebDriver driver=new RemoteWebDriver(url,cap);\n driver.manage().window().maximize(); \n driver.get(\"https://curiedoctorapp.firebaseapp.com\");\n System.out.println(\"The title is\"+ driver.getTitle());\n driver.quit();\n \n }", "public interface WebDriverHandler {\n\t/**\n\t * Extracts the integrated web driver and configures the system properties\n\t * @param tempFiles A collection to place references to any temporary files in\n\t */\n\tvoid configureWebDriver(@NotNull List<File> tempFiles);\n}", "@Override\n public WebDriver getWebDriver() {\n return new FirefoxDriver();\n }", "public WebDriver getDriver() {\n\t\treturn driver;\n\t}", "@Before\n public void Setup() { //this is done before every test, chrome driver is saved in a specific location\n\n System.setProperty(\"webdriver.chrome.driver\",\n Constant.CROMEDRIVER);\n\n driver = new ChromeDriver();\n }", "public WebDriver getDriver() {\n\t\t\treturn this.driver;\r\n\t\t}", "@BeforeTest\r\n public void launchBrowser() {\n System.setProperty(\"webdriver.chrome.driver\", ChromePath);\r\n driver= new ChromeDriver();\r\n driver.manage().window().maximize();\r\n driver.get(titulo);\r\n }", "RemoteWebDriver getDriver(String browserName) {\n\t\tlogger.info(System.getProperty(\"os.name\"));\n\t\ttry {\n\t\t\tif (DriverFactory.getDriverPool().get(browserName) == null) {\n\t\t\t\tif (System.getProperty(\"location\").equalsIgnoreCase(\"local\")) {\n\t\t\t\t\tif (\"firefox\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tFirefoxOptions firefoxOptions = new FirefoxOptions().setProfile(new FirefoxProfile());\n\t\t\t\t\t\tfirefoxOptions.setAcceptInsecureCerts(true);\n\t\t\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\t\tPaths.get(workspace, \"src\", \"main\", \"resources\", \"geckodriver\").toString());\n\t\t\t\t\t\tdriver = new FirefoxDriver(firefoxOptions);\n\t\t\t\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\t\t\t\t\t} else if (\"chrome\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tSystem.setProperty(CHROME_DRIVER_STR,\n\t\t\t\t\t\t\t\tSystem.getProperty(\"user.dir\") +\"\\\\drivers\\\\chromedriver.exe\");\n\t\t\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\t\t\t\tif (\"headless\".equals(System.getProperty(\"state\")))\n\t\t\t\t\t\t\tchromeOptions.addArguments(\"headless\");\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,\n\t\t\t\t\t\t\t\tUnexpectedAlertBehaviour.ACCEPT);\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\t\t\tchromeOptions.addArguments(\"ignore-certificate-errors\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"start-maximized\");\n\t\t\t\t\t\tdriver = new ChromeDriver(chromeOptions);\n\t\t\t\t\t\tdriver.manage().deleteAllCookies();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (\"firefox\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tFirefoxOptions firefoxOptions = new FirefoxOptions().setProfile(new FirefoxProfile());\n\t\t\t\t\t\tfirefoxOptions.setAcceptInsecureCerts(true);\n\t\t\t\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\n\t\t\t\t\t\t\t\tPaths.get(workspace, \"src\", \"main\", \"resources\", \"geckodriver.exe\").toString());\n\t\t\t\t\t\tdriver = new RemoteWebDriver(new URL(PropertyHelper.getProperties(\"REMOTE_HUB_URL\")),\n\t\t\t\t\t\t\t\tfirefoxOptions);\n\t\t\t\t\t\tdriver.manage().window().maximize();\n\t\t\t\t\t} else if (\"chrome\".equals(System.getProperty(\"browser\"))) {\n\t\t\t\t\t\tSystem.setProperty(CHROME_DRIVER_STR,\n\t\t\t\t\t\t\t\tPaths.get(workspace, \"src\", \"main\", \"resources\", \"chromedriver.exe\").toString());\n\t\t\t\t\t\tChromeOptions chromeOptions = new ChromeOptions();\n\t\t\t\t\t\tif (\"headless\".equals(System.getProperty(\"state\")))\n\t\t\t\t\t\t\tchromeOptions.addArguments(\"headless\");\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR,\n\t\t\t\t\t\t\t\tUnexpectedAlertBehaviour.ACCEPT);\n\t\t\t\t\t\tchromeOptions.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\t\t\t\tchromeOptions.addArguments(\"ignore-certificate-errors\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"disable-popup-blocking\");\n\t\t\t\t\t\tchromeOptions.addArguments(\"start-maximized\");\n\n\t\t\t\t\t\tdriver = new RemoteWebDriver(new URL(MainUtil.HubUrl), chromeOptions);\n\n\t\t\t\t\t\tlogger.info(\"Execution Processed To Hub : \" + MainUtil.HubUrl);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tDriverFactory.getDriverPool().put(browserName, driver);\n\t\t\t\tdriver.manage().timeouts().pageLoadTimeout(60, TimeUnit.SECONDS);\n\t\t\t\tdriver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error creating the driver\", e);\n\t\t}\n\t\treturn driver;\n\t}", "public static WebDriver ie()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.ie.driver\",System.getProperty(\"user.dir\")+\"\\\\IE\\\\IEDriverServer.exe\");\r\n\t\tgk = new InternetExplorerDriver();\r\n\t\treturn gk;\r\n\t}", "private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }", "public WebDriver getDriver() {\r\n\t\tif (driver == null)\r\n\t\t\tdriver = createDriver();\r\n\t\treturn driver;\r\n\t}", "protected void setDriver() throws Exception {\n\t\tswitch (browser.split(\"[-]\")[0].toLowerCase()) {\n\t\tcase \"firefox\":\n\t\t\tsetFirefoxDriver();\n\t\t\tbreak;\n\t\tcase \"chrome\":\n\t\t\t// runDocker();\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\tcase \"ie\":\n\t\t\tsetIEDriver();\n\t\t\tbreak;\n\t\tcase \"edge\":\n\t\t\tsetEdgeDriver();\n\t\t\tbreak;\n\t\tcase \"safari\":\n\t\t\tsetSafariDriver();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsetChromeDriver();\n\t\t\tbreak;\n\t\t}\n\t\tgetDriver().manage().window().maximize(); // Maximize the browser.\n\t\tgetDriver().manage().timeouts().implicitlyWait(defaultImplicitWaitTime, TimeUnit.SECONDS);\n\t}", "private void setIEDriver() throws Exception {\n\t\tcapabilities = DesiredCapabilities.internetExplorer();\n\t\t// capabilities.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\t// capabilities.setCapability(\"ignoreZoomSetting\", true);\n\t\t// capabilities.setCapability(InternetExplorerDriver.IE_ENSURE_CLEAN_SESSION,\n\t\t// true);\n\t\tcapabilities.setJavascriptEnabled(true);\n\n\t\tInternetExplorerOptions ieOptions = new InternetExplorerOptions();\n\t\tieOptions.destructivelyEnsureCleanSession();\n\t\tieOptions.ignoreZoomSettings();\n\t\tieOptions.setCapability(\"ignoreProtectedModeSettings\", true);\n\t\tieOptions.merge(capabilities);\n\n\t\tWebDriver myDriver = null;\n\t\tRemoteWebDriver rcDriver;\n\n\t\tswitch (runLocation.toLowerCase()) {\n\t\tcase \"local\":\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\tcase \"grid\":\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"testingbot\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\t// capabilities.setCapability(\"name\", testName); // TODO: set a test\n\t\t\t// name (suite name maybe) or combined with env\n\t\t\trcDriver = new RemoteWebDriver(new URL(serverURL), capabilities);\n\t\t\trcDriver.setFileDetector(new LocalFileDetector());\n\t\t\tmyDriver = new Augmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tcase \"smartbear\":\n\t\t\tif (browserVersion.isEmpty()) {\n\t\t\t\tbrowserVersion = defaultIEVersion;\n\t\t\t}\n\t\t\tif (platformOS.isEmpty()) {\n\t\t\t\tplatformOS = defaultPlatformOS;\n\t\t\t}\n\t\t\t//capabilities.setCapability(\"name\", testMethod.get());\n\t\t\tcapabilities.setCapability(\"build\", testProperties.getString(TEST_ENV)+\" IE-\"+platformOS);\n\t\t\tcapabilities.setCapability(\"max_duration\", smartBearDefaultTimeout);\n\t\t\tcapabilities.setCapability(\"browserName\", browser);\n\t\t\tcapabilities.setCapability(\"version\", browserVersion);\n\t\t\tcapabilities.setCapability(\"platform\", platformOS);\n\t\t\tcapabilities.setCapability(\"screenResolution\", smartBearScreenRes);\n\t\t\tcapabilities.setCapability(\"record_video\", \"true\"); Reporter.log(\n\t\t\t\t\t \"BROWSER: \" + browser, true); Reporter.log(\"BROWSER Version: \" +\n\t\t\t\t\t\t\t browserVersion, true); Reporter.log(\"PLATFORM: \" + platformOS, true);\n\t\t\tReporter.log(\"URL '\" + serverURL + \"'\", true); rcDriver = new\n\t\t\tRemoteWebDriver(new URL(serverURL), capabilities); myDriver = new\n\t\t\tAugmenter().augment(rcDriver);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", ieDriverLocation);\n\t\t\tmyDriver = new InternetExplorerDriver(ieOptions);\n\t\t\tbreak;\n\t\t}\n\t\tdriver.set(myDriver);\n\t}", "@Test\r\n\tpublic void f()\r\n\t{\r\n\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"C://Data_Program//Selenium_Dependencies//chromedriver.exe\");\r\n\t\tWebDriver driver=new ChromeDriver();\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.get(\"http://www.google.com\");\r\n\t}", "@BeforeMethod\n\tpublic static void launchDriver() throws MalformedURLException\n\t{\n\t \t\t \n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\t/* caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"60.0\");\n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"7\");\n\t caps.setCapability(\"resolution\", \"1024x768\");\n\t caps.setCapability(\"name\", \"Bstack-[Java] Sample Test\");*/\n\t //set from capability generator \n\t caps.setCapability(\"os\", \"Windows\");\n\t caps.setCapability(\"os_version\", \"10\");\n\t caps.setCapability(\"browser\", \"Chrome\");\n\t caps.setCapability(\"browser_version\", \"62.0\");\n\t caps.setCapability(\"project\", \"TestingOnBrowserStack\");\n\t caps.setCapability(\"build\", \"1.0\");\n\t caps.setCapability(\"name\", \"TestBroserStackSel\");\n\t caps.setCapability(\"browserstack.local\", \"false\");\n\t caps.setCapability(\"browserstack.selenium_version\", \"3.5.2\");\n\t \n\t driver = new RemoteWebDriver(new URL(URL), caps);\n\t\tdriver.manage().deleteAllCookies();\n\t\twait = new WebDriverWait(driver, 220);\n\t\tdriver.manage().window().maximize();\n\t\tdriver.manage().timeouts().implicitlyWait(60, TimeUnit.SECONDS);\n\t\t\n\t\t\n\t}", "public void browser() {\n\t\tSystem.setProperty(\"webdriver.chrome.driver\", \"src/test/resources/Driver/chromedriver.exe\");\n\t\tdriver = new ChromeDriver();\n\t\tdriver.manage().window().maximize();// maximize the window\n\t\tdriver.manage().timeouts().implicitlyWait(50, TimeUnit.SECONDS);\n\n\t}" ]
[ "0.7122715", "0.6723498", "0.67169034", "0.63424855", "0.629862", "0.62612045", "0.62270856", "0.62223256", "0.6217355", "0.6180016", "0.6175324", "0.61741936", "0.61446", "0.6132166", "0.6110257", "0.6087831", "0.6064648", "0.6053266", "0.60385126", "0.601452", "0.6003021", "0.5991111", "0.5989922", "0.59828645", "0.5977073", "0.59673786", "0.5967306", "0.59529144", "0.5931318", "0.5920649", "0.5915316", "0.5912637", "0.5901875", "0.5900858", "0.58951265", "0.5891375", "0.5877968", "0.58246857", "0.58220375", "0.5815283", "0.579797", "0.57920134", "0.57742774", "0.5768916", "0.5768887", "0.5755496", "0.57459927", "0.57354087", "0.571313", "0.57068664", "0.5704554", "0.5704132", "0.57033473", "0.5690058", "0.56885725", "0.5682169", "0.5676666", "0.5674415", "0.5667088", "0.5645818", "0.56398565", "0.56354284", "0.562659", "0.562623", "0.56261545", "0.5618693", "0.5617198", "0.5616521", "0.5611352", "0.5603293", "0.5599054", "0.5599054", "0.5595907", "0.55945295", "0.55912346", "0.5590365", "0.5575316", "0.55730087", "0.5572331", "0.557134", "0.556513", "0.556513", "0.5563226", "0.5562387", "0.5548442", "0.55360776", "0.5520129", "0.55142564", "0.55129766", "0.5507088", "0.5502049", "0.549275", "0.54887325", "0.54880834", "0.54877174", "0.54872257", "0.5475054", "0.54691094", "0.546699", "0.54640114", "0.5437967" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<MusicRecom> findSmallClass(String code) { return musicRecomDao.findSmallClass(code); }
{ "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
Method to insert chat messages into database
public int insertChatMessage(String username, String message)throws SQLException { String query = "INSERT INTO "+TABLE+" VALUES(?,?,?)"; java.sql.Timestamp date = new java.sql.Timestamp(new java.util.Date().getTime()); PreparedStatement ps = connection.prepareStatement(query); ps.setTimestamp(1, date); ps.setString(2, username); ps.setString(3, message); int res = ps.executeUpdate(); return res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void insertarBd(Chats chat) {\n\t\tString sql = \"INSERT INTO chats (chat,fecha,idUsuario) VALUES(?,?,?)\";\n\n\t\ttry (PreparedStatement ps = con.prepareStatement(sql)) {\n\t\t\tps.setString(1, chat.getTexto());\n\t\t\tps.setDate(2,chat.getFecha() );\n\t\t\tps.setLong(3, chat.getIdUsuario());\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public void insertChatMessage(String chatMessageID, String chatID, String replierStaffNo, String replierStudentID, String messageContent, String dateTimePosted)\n {\n if(replierStaffNo.equals(\"\"))\n dbConnection.alterDataBase(\"INSERT INTO ChatMessage VALUES ('\"+chatMessageID+\"', '\"+chatID+\"', null, '\"+replierStudentID+\"', '\"+messageContent+\"', '\"+dateTimePosted+\"');\");\n if(replierStudentID.equals(\"\"))\n dbConnection.alterDataBase(\"INSERT INTO ChatMessage VALUES ('\"+chatMessageID+\"', '\"+chatID+\"', '\"+replierStaffNo+\"', null, '\"+messageContent+\"', '\"+dateTimePosted+\"');\");\n }", "@Override\n\tpublic void insertMessage(String ToUserName, String FromUserName,\n\t\t\tString CreateTime, String MsgType, String Content, String MsgId,\n\t\t\tString PicUrl, String MediaId, String Format, String ThumbMediaId,\n\t\t\tString Location_X, String Location_Y, String Scale, String Label,\n\t\t\tString Title, String Description, String Url, String Event,\n\t\t\tString EventKey, String Ticket, String Latitude, String Longitude,\n\t\t\tString Precision, String Recognition, int sessionid) {\n\t\t\n\t}", "private void createNewChat() {\n if (advertisement.getUniqueOwnerID().equals(dataModel.getUserID())) {\n view.showCanNotSendMessageToYourselfToast();\n return;\n }\n\n dataModel.createNewChat(advertisement.getUniqueOwnerID(), advertisement.getOwner(), advertisement.getUniqueID(),\n advertisement.getImageUrl(), chatID -> view.openChat(chatID));\n }", "void saveMessage(int id,String msg) throws SQLException {\n\t\tpst=con.prepareStatement(\"INSERT INTO message VALUES(?,?)\");\n\t\tpst.setInt(1, id);\n\t\tpst.setString(2, msg);\n\t\t\n\t\tpst.executeUpdate();\n\t}", "public abstract int insert(Iterable<T> messages)\n throws DatabaseRequestException, DatabaseSchemaException;", "private void updateDatabase(users.Message msg, DatabaseConnection dc) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"INSERT into \" + this.messagesTable + \" \");\n\t\tsb.append(\"(id, type, datesent, timesent, senderid, receiverid, opened, replied, subject, body) \");\n\t\tsb.append(\"VALUES \"); //(1, 2, 3, \"20141225\", 100, 5);\");\n\t\tsb.append(\"(\" + msg.id + \", \" + msg.type + \", \");\n\t\tsb.append(\"\\\"\"+msg.datesent + \"\\\", \\\"\" + msg.timesent + \"\\\", \");\n\t\tsb.append(msg.senderid + \", \\\"\" + msg.receiverid + \"\\\", \");\n\t\tsb.append(msg.opened + \", \" + msg.replied + \", \");\n\t\tsb.append(\"\\\"\"+msg.subject + \"\\\", \\\"\" + msg.body + \"\\\");\");\n\t\tdc.executeUpdate(sb.toString());\n\t}", "int insert(WechatDemo record);", "public void insertaMensaje(InfoMensaje m) throws Exception;", "@Override\r\n\tpublic void addMessage(Integer receive_id, Integer send_id, String content,Timestamp createtime) {\n\t\tString sql=\"insert into message(receive_id,send_id,content,createtime,isread,result) values(?,?,?,?,?,?)\";\r\n\t\tObject[] args=new Object[] {receive_id,send_id,content,createtime,0,0};\r\n\t\ttry {\r\n\t\t\tupdate(conn, sql, args);\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}", "void insert(TbMessage record);", "public void addChat(String to, String from, String from_fullname, String msg, String date, String status,\r\n String uniqueid, String type, String file_type) {\r\n\r\n String myPhone = getUserDetails().get(\"phone\");\r\n String contactPhone = \"\";\r\n if(myPhone.equals(to)) contactPhone = from;\r\n if(myPhone.equals(from)) contactPhone = to;\r\n\r\n SQLiteDatabase db = this.getWritableDatabase();\r\n\r\n ContentValues values = new ContentValues();\r\n values.put(UserChat.USERCHAT_TO, to); // TO\r\n values.put(UserChat.USERCHAT_FROM, from); // FROM\r\n values.put(UserChat.USERCHAT_FROM_FULLNAME, from_fullname); // FROM FULL NAME\r\n values.put(UserChat.USERCHAT_MSG, msg); // CHAT MESSAGE\r\n values.put(UserChat.USERCHAT_DATE, date); // DATE\r\n values.put(\"status\", status); // status: pending, sent, delivered, seen\r\n values.put(\"uniqueid\", uniqueid);\r\n values.put(\"type\", type);\r\n values.put(\"file_type\", file_type);\r\n values.put(\"contact_phone\", contactPhone); // Contact\r\n\r\n // Inserting Row\r\n db.insert(UserChat.TABLE_USERCHAT, null, values);\r\n db.close(); // Closing database connection\r\n }", "public static void insertNPCMessage(Connection conn, NPCMessageModel npcMessageModel) throws SQLException {\n\t\tStatement stmt = null;\n\t\tString insertStmt = \"\";\n\t\ttry {\n\t\t\tstmt = conn.createStatement();\n\t\t\tinsertStmt = \"INSERT INTO NPC_Message(NPC_MESSAGE_ID,IsPort,Sent,Transaction_Date,ReturnMessage,Current_Message_Max_Date,Current_Message_Min_Date,Create_User,Create_Date,Next_Message_Max_Date,Next_Message_Min_Date,User_Comment,MessageXML) VALUES (\"\n\t\t\t\t\t+ npcMessageModel.getNPCMessageID() + \",\" + (npcMessageModel.isPort() ? 1 : 0) + \",\"\n\t\t\t\t\t+ (npcMessageModel.isSent() ? 1 : 0) + \",\"\n\t\t\t\t\t+ (!\"null\".equals(npcMessageModel.getTransactionDate())\n\t\t\t\t\t\t\t&& npcMessageModel.getTransactionDate() != null\n\t\t\t\t\t\t\t\t\t? \"TO_DATE('\" + npcMessageModel.getTransactionDate() + \"','\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"DD/MM/YYYY HH24:MI:SS\" + \"')\"\n\t\t\t\t\t\t\t\t\t: \"NULL\")\n\t\t\t\t\t+ \",'\" + npcMessageModel.getReturnedMessage() + \"',\"\n\t\t\t\t\t+ (!\"null\".equals(npcMessageModel.getCurrentMessageMaxDate())\n\t\t\t\t\t\t\t&& npcMessageModel.getCurrentMessageMaxDate() != null\n\t\t\t\t\t\t\t\t\t? \"TO_DATE('\" + npcMessageModel.getCurrentMessageMaxDate() + \"','\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"DD/MM/YYYY HH24:MI:SS\" + \"')\"\n\t\t\t\t\t\t\t\t\t: \"NULL\")\n\t\t\t\t\t+ \",\"\n\t\t\t\t\t+ (!\"null\".equals(npcMessageModel.getCurrentMessageMinDate())\n\t\t\t\t\t\t\t&& npcMessageModel.getCurrentMessageMinDate() != null\n\t\t\t\t\t\t\t\t\t? \"TO_DATE('\" + npcMessageModel.getCurrentMessageMinDate() + \"','\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"DD/MM/YYYY HH24:MI:SS\" + \"')\"\n\t\t\t\t\t\t\t\t\t: \"NULL\")\n\t\t\t\t\t+ \",'\" + npcMessageModel.getCreatedUser() + \"',\"\n\t\t\t\t\t+ (!\"null\".equals(npcMessageModel.getCreatedDate()) && npcMessageModel.getCreatedDate() != null\n\t\t\t\t\t\t\t? \"TO_DATE('\" + npcMessageModel.getCreatedDate() + \"','\" + \"DD/MM/YYYY HH24:MI:SS\" + \"'),\"\n\t\t\t\t\t\t\t: \"NULL\")\n\t\t\t\t\t+ (!\"null\".equals(npcMessageModel.getNextMessageMaxDate())\n\t\t\t\t\t\t\t&& npcMessageModel.getNextMessageMaxDate() != null\n\t\t\t\t\t\t\t\t\t? \"TO_DATE('\" + npcMessageModel.getCurrentMessageMaxDate() + \"','\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"DD/MM/YYYY HH24:MI:SS\" + \"')\"\n\t\t\t\t\t\t\t\t\t: \"NULL\")\n\t\t\t\t\t+ \",\"\n\t\t\t\t\t+ (!\"null\".equals(npcMessageModel.getNextMessageMinDate())\n\t\t\t\t\t\t\t&& npcMessageModel.getNextMessageMinDate() != null\n\t\t\t\t\t\t\t\t\t? \"TO_DATE('\" + npcMessageModel.getCurrentMessageMinDate() + \"','\"\n\t\t\t\t\t\t\t\t\t\t\t+ \"DD/MM/YYYY HH24:MI:SS\" + \"')\"\n\t\t\t\t\t\t\t\t\t: \"NULL\")\n\t\t\t\t\t+ \",\" + DBTypeConverter.toSQLVARCHAR2(npcMessageModel.getUserCommnet()) + \",\"\n\t\t\t\t\t+ DBTypeConverter.toSQLVARCHAR2(npcMessageModel.getMessageXML()) + \")\";\n\t\t\tstmt.execute(insertStmt);\n\t\t} catch (SQLException ex) {\n\t\t\tfinal String message = ex.getMessage();\n\t\t\tthrow new SQLException(message + \"[\" + insertStmt + \"]\");\n\t\t} finally {\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t}", "public boolean send_message(String SID, String RID, String message)\r\n {\r\n DBConnect db = new DBConnect();\r\n try\r\n {\r\n \r\n String SQL = \"insert into MESSAGES(SID, RID,message) values ('\" + SID + \"', '\" + RID + \"', '\"+ message + \"')\";\r\n System.out.println(\"\"+SQL);\r\n try\r\n {\r\n \r\n db.pstmt = db.conn.prepareStatement(SQL);\r\n \r\n try\r\n {\r\n if (db.pstmt.executeUpdate() != 0)\r\n return true;\r\n }\r\n catch(Exception e)\r\n {\r\n\r\n }\r\n } \r\n catch(Exception e)\r\n {\r\n \r\n }\r\n finally\r\n {\r\n try\r\n {\r\n db.conn.close();\r\n }\r\n catch (Exception e)\r\n {\r\n \r\n }\r\n }\r\n } \r\n catch(Exception e)\r\n {\r\n \r\n }\r\n return false;\r\n}", "private void updateChat() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n ArrayList<String> messages = db.getChat(selectedCustomer.getChat_id());\n chat.getItems().clear();\n for(String mess :messages){\n chat.getItems().add(mess);\n }\n }", "int insert(Message record);", "@Override\r\n\tpublic int insertChat(Chat1VO vo) throws Exception {\n\t\treturn dao.insertChat(vo);\r\n\t}", "private static void storeMessage(String tokenId,String db,String user,String password){\n JSONArray jsonArray = getMailMessageList(tokenId);\n for (int i=0; i<jsonArray.length();i++)\n {\n for (int j=0;j<jsonArray.getJSONObject(i).getJSONArray(\"messages\").length();j++)\n {\n String messageId = jsonArray.getJSONObject(i).getJSONArray(\"messages\").getJSONObject(j)\n .getString(\"id\");\n addIntoDB(getMailMessage(tokenId, messageId),db,user,password);/*insert each mail details into DB */\n }\n }\n }", "public int insertChatMsg(List<Message> list) {\n\t\tConnection conn = getConnection();\n\t\tint result = 0;\n\t\tfor (Message msg : list) {\n\t\t\tresult = cd.insertChatMsg(conn, msg);\n\t\t\tif (result == 0) {\n\t\t\t\trollback(conn);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"여기 실행안됨??\");\n\t\tlist.clear();\n\t\tSystem.out.println(\" === 리스트 쌓인거 전송하고 클리어 Service === \");\n\t\tif (result > 0) {\n\t\t\tSystem.out.println(\"커밋 !\");\n\t\t\tcommit(conn);\n\t\t} else {\n\t\t\tSystem.out.println(\"커밋 안됨\");\n\t\t\trollback(conn);\n\t\t}\n\t\tclose(conn);\n\t\treturn result;\n\t}", "int insert(MsgContent record);", "public void insertMessage(Message message){\n Tag Tag=null;\n db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(databaseValues.STORY_COLUMN_NAME1, message.getUsername());\n values.put(databaseValues.STORY_COLUMN_NAME2, message.getMessage());\n values.put(databaseValues.STORY_COLUMN_NAME3, message.getMessageType());\n values.put(databaseValues.STORY_COLUMN_NAME4, message.getPicture());\n Log.e(String.valueOf(Tag), message.getUsername());\n Log.e(String.valueOf(Tag), message.getMessage());\n Log.e(String.valueOf(Tag), message.getMessageType());\n db.insert(databaseValues.TABLE_NAME2, null, values);\n db.close();\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\ttry{\n\t\t\t\t\tString query =\"insert into message (username, msg) values (?,?)\";\n\t\t\t\t\tPreparedStatement pst = conn.prepareStatement(query);\n\t\t\t\t\tpst.setString(1, touserFeild.getText());\n\t\t\t\t\tpst.setString(2, msgFeild.getText());\n\t\t\t\t\t\n\t\t\t\t\tpst.execute();\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"post message success\");\n\t\t\t\t\t\n\t\t\t\t\tpst.close();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch (Exception e7)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"post message fail\");\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Message Failed to post\");\n\t\t\t\t}\n\t\t\t\t//msgObject.refreshTable();\n\t\t\t\tdispose();\n\t\t\t}", "private void sendMessage() {\n Log.d(\"FlashChat\", \"I sent something\");\n // get the message the user typed\n String userInput = mInputText.getText().toString();\n\n if (! (userInput.length() == 0)){\n\n InstantMessage message = new InstantMessage(userInput, mUserMe);\n // push the message to Firebase DB\n mDatabaseReference.child(mLocation).push().setValue(message);\n mInputText.setText(\"\");\n }\n\n }", "int insert(OfUserWechat record);", "@PostMapping(\"/chat\")\n public ChatBean createChat(@Valid @RequestBody ChatBean chat) {\n return chatBeanRepository.save(chat);\n }", "@Override\r\n\t\t\t\t\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\t\t\t\t\t try { \r\n//\t\t\t\t\t\t\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\"); \r\n//\t\t\t\t\t\t\t String date = sdf.format(new Date());\r\n\t\t\t\t\t System.out.println(\" From:\"+message.toString()); \r\n\t\t\t\t\t \r\n\t\t\t\t\t Connection conn = null;\r\n\t\t\t\t\t Class.forName(\"com.mysql.jdbc.Driver\"); \r\n\t\t\t\t\t conn = DriverManager.getConnection(\r\n\t\t\t\t\t \t\t\"jdbc:mysql://localhost:3306/mqtt?useUnicode=true&characterEncoding=UTF-8\",\r\n\t\t\t\t\t \t\t\"root\",\r\n\t\t\t\t\t \t\t\"tmu2012\");\r\n\t\t\t\t\t System.out.println(\"connected to the database\");\r\n\r\n\t\t\t\t\t Statement stmt = conn.createStatement();\r\n\t\t\t\t\t System.out.println(\"Inserting records\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t String qry1 = \"INSERT INTO mymqtts (mqtt) VALUES('\"+message.toString()+\"')\";\r\n\t\t\t\t\t stmt.executeUpdate(qry1);\r\n\t\t\t\t\t System.out.println(\"ok\");\r\n\t\t\t\t\t\t }catch (Exception e) { \r\n\t\t\t\t\t e.printStackTrace(); \r\n\t\t\t\t\t System.out.println(\"error\"); \r\n\t\t\t\t\t } \r\n\t\t\t\t\t}", "public void message_add(message message){\n \tSQLiteDatabase db = this.getWritableDatabase();\n\n \t// 2. create ContentValues to add key \"column\"/value\n \tContentValues values = new ContentValues();\n \tvalues.put(KEY_MESSAGES_ID, message.id_get());\n \tvalues.put(KEY_MESSAGES_FROM, message.from_get());\n \tvalues.put(KEY_MESSAGES_TIME, message.time_get());\n \tvalues.put(KEY_MESSAGES_TEXT, message.text_get());\n \tvalues.put(KEY_MESSAGES_URI, message.uri_get_string());\n\n \t// 3. insert\n \tdb.insert(TABLE_MESSAGES, // table\n \t\t\tnull, //nullColumnHack\n \t\t\tvalues); // key/value -> keys = column names/ values = column values\n\n \t// 4. close\n \tdb.close();\n }", "private void setext() {\n\n\t\ttry {\n\t\t\tString databaseUser = \"blairuser\";\n\t\t\tString databaseUserPass = \"password!\";\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tConnection connection = null;\n\t\t\tString url = \"jdbc:postgresql://13.210.214.176/test\";\n\t\t\tconnection = DriverManager.getConnection(url, databaseUser, databaseUserPass);\n//\t\t\tStatement s = connection.createStatement();\n\t\t\ts = connection.createStatement();\n\t\t\ts.executeQuery(\"insert into chatmachine (name,message,ip,time) values ('testuser2','\" + msgfield.getText()\n\t\t\t\t\t+ \"','9.9.9.9',CURRENT_TIMESTAMP);\");\n\n//\t\t\twhile (rs.next()) {\n//\t\t\t\toutput.setText(rs.getString(\"name\")+\": \"+rs.getString(\"message\"));\n\t\t\t// System.out.println(rs.getString(\"name\")+\" \"+rs.getString(\"message\"));\n//\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e.getMessage());\n\t\t}\n\n\t}", "int insert(MessageRelation record);", "private void addMsg(String xmsg) {\n\r\n\t\tSQLiteDatabase db = dbh.getWritableDatabase();\r\n\t\tContentValues values = new ContentValues();\r\n\t\tLog.v(\"-->\", xmsg);\r\n\t\tvalues.put(\"M_ID\", Integer.parseInt(xmsg.substring(0, 2))); // msg id ==\r\n\t\tLog.v(\"values: \", xmsg.substring(0, 2)); // [0,1]\r\n\t\tvalues.put(\"SEQ\", Integer.parseInt(xmsg.substring(2, 4))); // seq\r\n\t\tLog.v(\"values: \", xmsg.substring(2, 4));\r\n\t\tvalues.put(\"MSG\", xmsg.substring(5)); // msg\r\n\t\tLog.v(\"values: \", xmsg.substring(5));\r\n\t\tdb.insertOrThrow(TABLE_NAME, null, values);\r\n\r\n\t}", "public static void insertDiscussion(String type, String topic, String[] tags, String content,String subject_id,String user){\n\n String ID = DBOperate.getRandomString(1);\n\n String replyid = DBDiscussion.getReplyID(tags);\n\n String sql=\"\";\n\n if(replyid.equals(\"\")){\n sql = \"insert into discussion values('\"+ID+\"',NULL,'\"+user+\"','\"\n +DBOperate.getCurrentDate()+\"','\"+subject_id+\"','\"+type+\"','\"+topic+\"','\"+content+\"')\";\n }\n else{\n sql = \"insert into discussion values('\"+ID+\"','\"+replyid+\"','\"+user+\"','\"\n +DBOperate.getCurrentDate()+\"','\"+subject_id+\"','\"+type+\"','\"+topic+\"','\"+content+\"')\";\n }\n\n DBOperate.Insert(sql);\n\n for(String s: tags){\n sql = \"insert into discussion_tag values('\"+s+\"','\"+ID+\"')\";\n DBOperate.Insert(sql);\n }\n\n }", "private void updateDatabase(String messageText)\n {\n HashMap<String, ChatData> mapThis = new HashMap<>();\n ChatData thisData = new ChatData(thisUsername, otherUsername, otherUid, messageText, thisPhoto, otherPhoto, new Date());\n thisData.setRead(true);\n mapThis.put(otherUid, thisData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(thisUid).set(mapThis, SetOptions.merge());\n \n HashMap<String, ChatData> mapOther = new HashMap<>();\n ChatData otherData = new ChatData(otherUsername, thisUsername, thisUid, messageText, otherPhoto, thisPhoto, new Date());\n mapOther.put(thisUid, otherData);\n FirebaseFirestore.getInstance().collection(\"chats\").document(otherUid).set(mapOther, SetOptions.merge());\n \n Map<String, String> map = new HashMap<>();\n map.put(\"message\", messageText);\n map.put(\"user\", thisUsername);\n reference.push().setValue(map);\n messageArea.setText(\"\");\n \n new Notification(otherUid, thisUsername, Notification.NOTIFICATION_CHAT, messageText, this);\n }", "public boolean insert(Connection db) throws SQLException {\n\n StringBuffer sql = new StringBuffer();\n boolean commit = false;\n try {\n commit = db.getAutoCommit();\n if (commit) {\n db.setAutoCommit(false);\n }\n id = DatabaseUtils.getNextSeq(db, \"message_id_seq\");\n sql.append(\n \"INSERT INTO \" + DatabaseUtils.addQuotes(db, \"message\") + \" \" +\n \"(name, description, template_id, subject, body, reply_addr, url, img, access_type, enabled, \");\n if (id > -1) {\n sql.append(\"id, \");\n }\n sql.append(\"entered, modified, \");\n sql.append(\"enteredBy, modifiedBy ) \");\n sql.append(\"VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, \");\n if (id > -1) {\n sql.append(\"?,\");\n }\n if (entered != null) {\n sql.append(\"?, \");\n } else {\n sql.append(DatabaseUtils.getCurrentTimestamp(db) + \", \");\n }\n if (modified != null) {\n sql.append(\"?, \");\n } else {\n sql.append(DatabaseUtils.getCurrentTimestamp(db) + \", \");\n }\n sql.append(\"?, ?) \");\n\n int i = 0;\n PreparedStatement pst = db.prepareStatement(sql.toString());\n pst.setString(++i, this.getName());\n pst.setString(++i, this.getDescription());\n pst.setInt(++i, this.getTemplateId());\n pst.setString(++i, this.getMessageSubject());\n pst.setString(++i, this.getMessageText());\n pst.setString(++i, this.getReplyTo());\n pst.setString(++i, this.getUrl());\n pst.setString(++i, this.getImage());\n pst.setInt(++i, this.getAccessType());\n pst.setBoolean(++i, this.getEnabled());\n if (id > -1) {\n pst.setInt(++i, id);\n }\n if (entered != null) {\n pst.setTimestamp(++i, entered);\n }\n if (modified != null) {\n pst.setTimestamp(++i, modified);\n }\n pst.setInt(++i, this.getEnteredBy());\n pst.setInt(++i, this.getModifiedBy());\n\n pst.execute();\n pst.close();\n\n id = DatabaseUtils.getCurrVal(db, \"message_id_seq\", id);\n\n this.update(db, true);\n if (commit) {\n db.commit();\n }\n } catch (SQLException e) {\n if (commit) {\n db.rollback();\n }\n e.printStackTrace();\n throw new SQLException(e.getMessage());\n } finally {\n if (commit) {\n db.setAutoCommit(true);\n }\n }\n return true;\n }", "@Override\n\tpublic void onPrivateChatReceived(final String sender, final String msg) {\n\t\tChatActivity.this.runOnUiThread(new Runnable() {\n\t\t\t public void run() {\n\t\t\t\t sa = ((SharingAtts)getApplication());\n\t\t\t\t chat.append(sender+\": \"+msg+\"\\n\");\t\n\t\t\t\t ItemTest it = new ItemTest();\n\t\t\t\t String colNames = it.printData(\"chat\")[1];\n\t\t\t\t DBManager dbm = new DBManager(ChatActivity.this, colNames,\"chat\",it.printData(\"chat\")[0]);\n\t\t\t\t dbm.openToWrite();\n\t\t\t\t dbm.cretTable();\n\t\t\t\t String msg2 = msg.replace(\" \", \"?*\");\n\t\t\t\t dbm.insertQuery(sender+\" \"+msg2+\" \"+sa.name, colNames.split(\" \")[1]+\" \"+colNames.split(\" \")[2]+\" \"+colNames.split(\" \")[3]);\n\t\t\t\t dbm.close();\n\t\t\t }\n\t\t});\n\t\t\n\t\t\n\t\t\n\t}", "public MessageData insertMessage(int gameId, String message) {\n\n SQLiteDatabase db = getWritableDatabase();\n ContentValues msgVals = new ContentValues();\n msgVals.put(\"game_id\", gameId);\n msgVals.put(\"json_message\", message);\n\n // Place the current timestamp\n msgVals.put(\"timestamp\", now());\n\n long rowid = db.insert(\"messages\", null, msgVals);\n\n String[] args = new String[]{ \"\"+rowid };\n Cursor c = db.rawQuery(\"SELECT message_id, json_message, timestamp, game_id FROM messages WHERE messages.ROWID =?\", args);\n c.moveToFirst();\n\n return new MessageData(\n c.getInt(0),\n c.getString(1),\n c.getLong(2),\n c.getInt(3)\n );\n }", "@Dao\npublic interface ChatRoomDao {\n\n @Query(\"SELECT * FROM chatroom \")\n List<ChatRoom> getAll();\n\n\n @Insert\n void insertAll(List<ChatRoom> msg);\n\n @Update\n void update(ChatRoom room);\n\n @Delete\n void delete(ChatRoom room);\n\n\n @Query(\"SELECT * FROM chatroom WHERE firebaseid = :firebaseid LIMIT 1\")\n ChatRoom findByFirebaseId(String firebaseid);\n\n @Query(\"SELECT * FROM chatroom WHERE uid = :uid LIMIT 1\")\n ChatRoom findByUid(String uid);\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n Long insert(ChatRoom todo);\n\n\n}", "private void sendMessage(final String send, final String receive, String message){\n\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference();\n final String[] sendName = {\"\"};\n final String[] receiveName = {\"\"};\n\n HashMap<String,Object> hashMap = new HashMap<>();\n\n DatabaseReference userRef = FirebaseDatabase.getInstance().getReference(\"Users\");\n userRef.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n for(DataSnapshot ds : dataSnapshot.getChildren()) {\n String uid = ds.getKey();\n if(uid.equals(send)) sendName[0] = ds.getValue(User.class).getName();\n else if(uid.equals(receive)) receiveName[0] = ds.getValue(User.class).getName();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n Chat message1 = new Chat(send, sendName[0], receive, receiveName[0], message);\n\n ref.child(\"chats\").push().setValue(message1);\n }", "public boolean insertForCreateChatTransaction(Chat chat, UserChat userChat1, UserChat userChat2) {\n return spannerOperations.performReadWriteTransaction(\n transactionSpannerOperations -> {\n transactionSpannerOperations.upsert(chat, \"ChatID\", \"CreationTS\");\n transactionSpannerOperations.insert(userChat1);\n transactionSpannerOperations.insert(userChat2);\n\n return true;\n }\n );\n }", "int insert(SmsSendAndCheckPo record);", "public boolean addMessageToChat (Message msg) {\n Logger.write(\"VERBOSE\", \"DB\", \"addMessageToChat(...)\");\n \n try {\n boolean duplicate = false;\n \n String[][] messagesInConvo = getConversationMessages(msg.PCHATgetConversationID());\n for (int i = 0; i < messagesInConvo.length; i++)\n if (messagesInConvo[i][1].equals(Long.toString(msg.getTimestamp())) && messagesInConvo[i][2].equals(msg.PCHATgetText()))\n duplicate = true;\n \n if (!duplicate) {\n execute(DBStrings.addMessageToConvo.replace(\"__convoID__\", msg.PCHATgetConversationID())\n .replace(\"__sendersKey__\", Crypto.encodeKey(getSignatory(msg)))\n .replace(\"__msgText__\", msg.PCHATgetText())\n .replace(\"__time__\", Long.toString(msg.getTimestamp())));\n }\n } catch (java.sql.SQLException e) {\n Logger.write(\"ERROR\", \"DB\", \"SQLException: \" + e);\n return false;\n }\n \n return true;\n }", "public void sendMessage() {\n String userMessage = textMessage.getText();\n if (!userMessage.isBlank()) {//проверяю а есть ли что то в текстовом поле\n textMessage.clear();//очищаю текстовое поле на форме\n\n //пока оставлю\n //sb.append(userMessage).append(\"\\n\");\n\n //в общее поле добавляю сообщение\n areaMessage.appendText(userMessage+\"\\n\");\n }\n\n }", "public boolean addMessage(VicinityMessage message) throws SQLException\n {\n boolean isAdded=false;\n try\n {\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n ContentValues values = new ContentValues();\n values.put(\"messageBody\", message.getMessageBody());\n values.put(\"isMyMsg\", message.isMyMsg());\n values.put(\"sentBy\", message.getFriendName());\n values.put(\"msgTimestamp\", message.getDate());\n values.put(\"fromIP\", message.getFrom());\n values.put(\"image\" , message.getImageString());\n\n\n isAdded=database.insert(\"Message\", null, values)>0;\n Log.i(TAG, \"ADD SUCCESSFUL\");\n\n dbH.close();\n }\n catch(SQLException e)\n {\n e.printStackTrace();\n }\n return isAdded;}", "public synchronized int saveMessageToDB(Connection connection, String message) throws SQLException\n {\n message = message.replaceAll(\"<p>&nbsp;</p>\", \"\");\n String queryFormat = \"INSERT INTO messagetext (messageText) VALUES('\" + message + \"')\";\n Statement statement = (Statement) connection.createStatement();\n boolean rowsAffected = statement.execute(queryFormat);\n if(rowsAffected) {\n System.out.println(\"Error in getting ID\");\n return 0;\n }\n ResultSet result = statement.executeQuery(\"SELECT LAST_INSERT_ID() AS id\");\n result.next();\n int messageTextID = result.getInt(\"id\");\n return messageTextID;\n }", "@Override\n protected void saveMessageToDatabase(String conversationKey, String message) {\n String messageKey = messagesRef.push().getKey();\n HashMap<String, Object> messageInfo = buildMessageInfo(message);\n messagesRef.child(messageKey).updateChildren(messageInfo);\n\n FirebaseDatabase.getInstance().getReference().child(\"Groups\").\n child(getConversationKey()).child(\"lastMessageTime\").setValue(Calendar.getInstance().getTimeInMillis());\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.d(\"shows\",\"shw \"+i++);\n\n\t\t\t\t//SendMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(3);\n\t\t\t\tdb=new ChattyData(con);\n\t\t\t\tCursor c=db.getUnsent();\n\t\t\t\tif(c!=null)\n\t\t\t\t{\n\t\t\t\t c.moveToFirst();\n\t\t\t\t try{c.getString(1).equals(\"\");\n\t\t\t\t sno=c.getInt(0);\n\t\t\t\t\tLog.d(\"sno\",sno+\"\");\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"from\", pref.getString(\"id\", \"\")));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"to\", c.getString(1)));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"msg\", c.getString(2)));\n\t\t\t\t SendMsg sendMsg=new SendMsg(con,sno);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tsendMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tsendMsg.execute(nameValuePairs);\n\t\t\t\t }\n\t\t\t\t catch(Exception e){}\n\t\t\t\t}\n\t\t\t\tdb.close();\n\t\t\t\tLog.d(\"shows\",\"sno \"+sno+\"\");\n\t\t\t\t\n\t\t\t\t//NewMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(1);\n\t\t\t\ttry{\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\", pref.getString(\"id\", \"\")));\n\t\t\t\t\tNewMsg newMsg=new NewMsg(con);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tnewMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tnewMsg.execute(nameValuePairs);\n\t\t\t\t}catch(Exception e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//new ReadMsg().execute();\n\t\t\t\t\n\t\t\t\t/*AddChat myTask = new AddChat(this);\n\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t myTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\telse\n\t\t\t\t myTask.execute(nameValuePairs);*/\n\t\t\t}", "private void individualSend(UserLogic t) {\n if(t != UserLogic.this && t != null && ((String)UI.getContacts().getSelectedValue()).equals(t.username)){\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(username)) { //If both users are directly communicating\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText()); //Send message\r\n t.UI.getContacts().setCellRenderer(clearNotification); //Remove notification\r\n }\r\n else{ //If the user are not directly communicating\r\n t.UI.getContacts().setCellRenderer(setNotification); //Set notification\r\n }\r\n if(t.chats.containsKey(username)){ //Store chats in other users database (When database exists)\r\n ArrayList<String> arrayList = t.chats.get(username); //Get data\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>(); //create new database\r\n arrayList.add(username + \"> \" + UI.getMessage().getText()); //Add new message to the database\r\n t.chats.put(username, arrayList); //Store data\r\n }\r\n }\r\n //This writes on my screen\r\n if(t == UserLogic.this && t!=null){ //On the current user side\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText()); //Write message to screen\r\n String currentChat = (String) UI.getContacts().getSelectedValue(); //Get selected user\r\n if(chats.containsKey(currentChat)){ //check if database exists\r\n ArrayList<String> arrayList = chats.get(currentChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n else { //When database doesn't exist\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(currentChat, arrayList);\r\n }\r\n }\r\n }", "@Override\n public void onClick(View view) {\n ChatMessage Message = new\n ChatMessage(mMessageEditText.getText().toString(),\n mUsername,\n null, dateAndTime);\n mFirebaseDatabaseReference.child(chatRoomPath)\n .push().setValue(Message);\n mMessageEditText.setText(\"\");\n\n }", "private Message save(Message message) {\n\n try {\n\n statement.execute(\"insert into messages (sender_id, receiver_id, transmitted_time, text)\" +\n \"values ('\" + message.getSender_id() + \"', '\" + message.getReceiver_id()\n + \"', current_timestamp() , '\" + message.getText() + \"');\");\n ResultSet resultSet = statement.executeQuery(\n \"select * from messages \" +\n \"where messages.index = \" +\n \"(select max(messages.index) from messages);\"\n );\n\n if (resultSet.next()) {\n message.setIndex(resultSet.getLong(\"index\"));\n message.setTransmitted_time(resultSet.getTimestamp(\"transmitted_time\"));\n }\n\n message.setReadOrNot(false);\n return message;\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n\n return null;\n\n }", "public boolean addNotification(Notification notification) throws SQLException{\n// connection = Db.instance().getConnection();\n try{\n ps = connection.prepareStatement(\"INSERT INTO notification(user_email, text) VALUES (?,?)\");\n ps.setString(1,notification.getUserEmail());\n ps.setString(2,notification.getText());\n int res = ps.executeUpdate();\n return res==1;\n }\n finally {\n Db.close(ps);\n }\n }", "static long insert(SQLiteDatabase db, Topic topic, StoredMessage msg) {\n if (msg.id > 0) {\n return msg.id;\n }\n\n db.beginTransaction();\n try {\n if (msg.topicId <= 0) {\n msg.topicId = TopicDb.getId(db, msg.topic);\n }\n if (msg.userId <= 0) {\n msg.userId = UserDb.getId(db, msg.from);\n }\n\n if (msg.userId <= 0 || msg.topicId <= 0) {\n Log.d(TAG, \"Failed to insert message \" + msg.seq);\n return -1;\n }\n\n int status;\n if (msg.seq == 0) {\n msg.seq = TopicDb.getNextUnsentSeq(db, topic);\n status = msg.status == BaseDb.STATUS_UNDEFINED ? BaseDb.STATUS_QUEUED : msg.status;\n } else {\n status = BaseDb.STATUS_SYNCED;\n }\n\n // Convert message to a map of values\n ContentValues values = new ContentValues();\n values.put(COLUMN_NAME_TOPIC_ID, msg.topicId);\n values.put(COLUMN_NAME_USER_ID, msg.userId);\n values.put(COLUMN_NAME_STATUS, status);\n values.put(COLUMN_NAME_SENDER, msg.from);\n values.put(COLUMN_NAME_TS, msg.ts.getTime());\n values.put(COLUMN_NAME_SEQ, msg.seq);\n values.put(COLUMN_NAME_CONTENT, BaseDb.serialize(msg.content));\n\n msg.id = db.insertOrThrow(TABLE_NAME, null, values);\n db.setTransactionSuccessful();\n } catch (Exception ex) {\n Log.e(TAG, \"Insert failed\", ex);\n } finally {\n db.endTransaction();\n }\n\n return msg.id;\n }", "public void doDataAddToDb() {\n String endScore = Integer.toString(pointsScore);\r\n String mLongestWordScore = Integer.toString(longestWordScore);\r\n String date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\", Locale.US).format(new Date());\r\n Log.e(TAG, \"date\" + date);\r\n\r\n // creating a new user for the database\r\n User newUser = new User(userNameString, endScore, date, longestWord, mLongestWordScore); // creating a new user object to hold that data\r\n\r\n // add new node in database\r\n DatabaseReference mDatabase = FirebaseDatabase.getInstance().getReference();\r\n mDatabase.child(\"users\").child(userNameString).setValue(newUser);\r\n\r\n Log.e(TAG, \"pointsScore\" + pointsScore);\r\n Log.e(TAG, \"highestScore\" + highestScore);\r\n\r\n\r\n // if high score is achieved, send notification\r\n if (highestScore > pointsScore) {\r\n new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n sendMessageToNews();\r\n }\r\n }).start();\r\n }\r\n }", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "int insertSelective(WechatDemo record);", "@PostMapping(\"/sendMessage\")\r\n public String sendMessage(@ModelAttribute(\"post\") PostDTO postDTO, Model model) {\r\n try {\r\n jdbcTemplate.execute(\"INSERT INTO Posts(Nickname, Message, PostDate)\\n\" +\r\n \"VALUES ('\" + postDTO.getNickname() + \"', '\" + postDTO.getMessage() + \"', '\" +\r\n new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"')\");\r\n } catch (DataAccessException exception) {\r\n LOGGER.warn(exception.getMessage());\r\n }\r\n return goToForumPage(model);\r\n }", "public QlikMessageDto insertMessageInDatabase(String message) {\r\n\t\tQlikMessageDto qlikMessage = null;\r\n\r\n\t\tlong insertedRowId = 0;\r\n\r\n\t\ttry {\r\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\r\n\t\t\tConnection conn = DriverManager.getConnection(url, user, password);\r\n\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql_insertMessage, Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tstatement.setString(1, message);\r\n\t\t\tstatement.setBoolean(2, Utility.isPalindrome(message));\r\n\r\n\t\t\tint rowsInserted = statement.executeUpdate();\r\n\t\t\tif (rowsInserted > 0) {\r\n\t\t\t\tqlikMessage = new QlikMessageDto();\r\n\t\t\t\tqlikMessage.setMessagetext(message);\r\n\t\t\t\tqlikMessage.setIspalindrome(Utility.isPalindrome(message));\r\n\t\t\t}\r\n\r\n\t\t\t// Get inserted row id\r\n\t\t\tResultSet rs = statement.getGeneratedKeys();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tinsertedRowId = rs.getInt(1);\r\n\t\t\t\tqlikMessage.setId(insertedRowId);\r\n\t\t\t}\r\n\t\t\tconn.close();\r\n\t\t} catch (ClassNotFoundException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn qlikMessage;\r\n\t}", "public void writeIdChatAtSpecificUserInDatabase(@NonNull ChatMessage chat) {\n mDatabaseReference.child(\"users\").child(chat.getSender()).child(\"chats\").\n child(chat.getIdChat()).setValue(chat.getReceiver());\n mDatabaseReference.child(\"users\").child(chat.getReceiver()).child(\"chats\").\n child(chat.getIdChat()).setValue(chat.getSender());\n }", "public abstract void newChatMembersMessage(Message m);", "public void writeToDb(Long chatId, String userName, String firstName, String lastName, Float latitude,\n\t\t\tFloat lontitude) throws SQLException {\n\t\tboolean isUserExists = false;\n\t\ttry (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n\t\t\tPreparedStatement statement = connection\n\t\t\t\t\t.prepareStatement(\"SELECT chat_id FROM subscribers WHERE chat_id=?\");\n\t\t\tstatement.setLong(1, chatId);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tif (resultSet.next()) {\n\t\t\t\t\tisUserExists = true;\n\t\t\t\t}\n\t\t\t\tif (isUserExists) {\n\t\t\t\t\tSystem.out.println(\"User already exists.\");\n\n\t\t\t\t} else {// adding new subscriber\n\t\t\t\t\tString sql = \"INSERT INTO subscribers(chat_id, username, firstname, lastname, latitude, longitude) \"\n\t\t\t\t\t\t\t+ \"VALUES(?, ?, ?, ?, ?, ? ) \";\n\t\t\t\t\tstatement = connection.prepareStatement(sql);\n\t\t\t\t\tstatement.setLong(1, chatId);\n\t\t\t\t\tstatement.setString(2, userName);\n\t\t\t\t\tstatement.setString(3, firstName);\n\t\t\t\t\tstatement.setString(4, lastName);\n\t\t\t\t\tstatement.setFloat(5, latitude);\n\t\t\t\t\tstatement.setFloat(6, lontitude);\n\n\t\t\t\t\tstatement.executeUpdate();\n\t\t\t\t\tSystem.out.println(\"Added new subscriber.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "int insert(PrivateMessage record);", "@Override\r\n\tpublic void addMessage(String ChatMessageModel) {\n\t\t\r\n\t}", "@Override\n public boolean sendMessage(ChatMessage chatMessage){\n return true;\n }", "@PostMapping(\"/chat-messages\")\n @Timed\n public ResponseEntity<ChatMessage> createChatMessage(@RequestBody ChatMessage chatMessage) throws URISyntaxException {\n log.debug(\"REST request to save ChatMessage : {}\", chatMessage);\n if (chatMessage.getId() != null) {\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"idexists\", \"A new chatMessage cannot already have an ID\")).body(null);\n }\n ChatMessage result = chatMessageRepository.save(chatMessage);\n return ResponseEntity.created(new URI(\"/api/chat-messages/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "public void insertBoard(NoticeBoardVO vo){\r\n\t\tString sql=\"insert into board_notice(userid,pass,title,content,writedate,fileurl) \"+\r\n\t\t\t\t\t\t\t\"values(?,?,?,?,?,?)\";\r\n\t\tConnection conn=null;\r\n\t\tPreparedStatement pstmt=null;\r\n\t\ttry{\r\n\t\t\tconn=DBManager.getConnection();\r\n\t\t\tpstmt=conn.prepareStatement(sql);\r\n\t\t\tpstmt.setString(1, vo.getUserid());\t\t\t\r\n\t\t\tpstmt.setString(2, vo.getPass());\r\n\t\t\tpstmt.setString(3, vo.getTitle());\r\n\t\t\tpstmt.setString(4, vo.getContent());\r\n\t\t\tTimestamp time=new Timestamp(System.currentTimeMillis());\r\n\t\t\tpstmt.setTimestamp(5,time);\r\n\t\t\tpstmt.setString(6, vo.getFileurl());\r\n\t\t\tpstmt.executeUpdate();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tDBManager.close(conn, pstmt);\r\n\t\t}\r\n\t}", "public void createMessage(int tid, int uid, int rank, String detail);", "void insertSelective(TbMessage record);", "public void testInsert() {\n ContentValues values = new ContentValues();\n values.put(SmsOpenHelper.SmsTable.FROM_ACCOUNT, \"12345\");\n values.put(SmsOpenHelper.SmsTable.TO_ACCOUNT, \"admin\");\n values.put(SmsOpenHelper.SmsTable.BODY, \"今晚约吗?\");\n values.put(SmsOpenHelper.SmsTable.TYPE, \"chat\");\n values.put(SmsOpenHelper.SmsTable.TIME, System.currentTimeMillis());\n values.put(SmsOpenHelper.SmsTable.STATUS, \"offline\");\n values.put(SmsOpenHelper.SmsTable.SESSION_ACCOUNT, \"admin\");\n\n getContext().getContentResolver().insert(SmsProvider.URI_SMS, values);\n }", "@Override\n public void onClick(View v) {\n String message = etMessage.getText().toString();\n // buat objek chat\n Chat chat = new Chat(\"yogi\", message);\n // kirim chat ke database\n chatReference.push().setValue(chat);\n // kosongkan inputan\n etMessage.getText().clear();\n }", "public void addRoom(Chatroom room){\n\n }", "@Dao\npublic interface ChatDao {\n\n @Insert(onConflict = OnConflictStrategy.REPLACE)\n long Add(ChatPojo chatPojo);\n\n @Query(\"select * from ChatPojo where chatId = :chatId\")\n LiveData<List<ChatPojo>> getAll(String chatId);\n\n @Query(\"select * from ChatPojo WHERE groupId IN (:groupIds) GROUP BY groupId ORDER BY chatTimestamp DESC\")\n LiveData<List<ChatPojo>> getRecentGroupChatAll(List<String> groupIds);\n\n\n @Query(\"select * from ChatPojo WHERE chatId IN (:ids) GROUP BY chatId ORDER BY chatTimestamp DESC\")\n LiveData<List<ChatPojo>> getRecentChatAll(List<String> ids);\n\n @Query(\"select DISTINCT chatId from ChatPojo\")\n List<String> getRecentChatUserList();\n\n @Query(\"select DISTINCT groupId from GroupPojo\")\n List<String> getGroupIdList();\n\n @Query(\"select * from ChatPojo where chatId = :chatId and isShowing = 0 ORDER BY chatTimestamp DESC limit 1\")\n LiveData<ChatPojo> getSingleLast(String chatId);\n\n// @Query(\"select * from ChatPojo \")\n// LiveData<List<ChatPojo>> getAll();\n /*@Query(\"select * from ChatPojo WHERE groupId = :groupId \")\nContactListResponse.ResponseDataBean getSingle(String groupId);*/\n\n @Delete\n int singledelete(ChatPojo chatPojo);\n\n @Query(\"select DISTINCT chatRecv from ChatPojo\")\n List<String> getChatUserList();\n\n @Query(\"select DISTINCT chatRecv from ChatPojo\")\n List<String> getChatUserSendList();\n\n @Query(\"select * from ChatPojo where chatId = :username ORDER BY chatTimestamp DESC\")\n ChatPojo getlastmsg(String username);\n\n @Query(\"select COUNT(isShowing) from ChatPojo where chatId = :chatId and isShowing = 0\")\n String unseenmsgCount(String chatId);\n\n @Query(\"UPDATE ChatPojo SET isShowing = 1 where chatId = :chatId\")\n void updateIsShowing(String chatId);\n\n\n @Query(\"DELETE FROM ChatPojo\")\n void deleteTbl();\n\n @Query(\"select * from ChatPojo \" +\n \" INNER JOIN UserPojo ON ChatPojo.chatId == UserPojo.username\" +\n \" where UserPojo.displayname LIKE :message OR ChatPojo.chatText LIKE :message GROUP BY chatId ORDER BY chatTimestamp DESC\")\n List<ChatPojo> search(String message);\n\n}", "public void insert(String linkid, String msisdn, String scode, String correlator, String message) {\n try {\r\n MysqlConnectionPoolDataSource dataSource = new MysqlConnectionPoolDataSource();\r\n //poole.set\r\n//\t\t\tMysqlDataSource dataSource = new MysqlDataSource();\r\n dataSource.setServerName(\"127.0.0.1\");\r\n // dataSource.setServerName(\"192.168.100.202\");\r\n dataSource.setDatabaseName(\"dspDelivery\");\r\n dataSource.setUser(\"root\");\r\n dataSource.setPassword(\"1root2\");\r\n//\t\t\t Open a connection\r\n //System.out.println(\"Connecting to the database...\");\r\n Connection conn = dataSource.getConnection();\r\n String insert = \"\";\r\n if (scode.equals(\"22260\")) {\r\n insert = \"insert into SICinbox(linkid,msisdn,message,scode,correlator) values (?,?,?,?,?)\";\r\n } else if (scode.equals(\"22261\")) {\r\n insert = \"insert into APEXinbox(linkid,msisdn,message,scode,correlator) values (?,?,?,?,?)\";\r\n } else if (scode.equals(\"20078\")) {\r\n insert = \"insert into 20078inbox(linkid,msisdn,message,scode,correlator) values (?,?,?,?,?)\";\r\n try {\r\n ToKnec.postInbox(linkid, msisdn, message);\r\n } catch (IOException ex) {\r\n Logger.getLogger(sms.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n } else {\r\n insert = \"insert into ondemand(linkid,msisdn,message,scode,correlator) values (?,?,?,?,?)\";\r\n }\r\n\r\n PreparedStatement prep = conn.prepareStatement(insert);\r\n prep.setString(1, linkid);\r\n prep.setString(2, msisdn);\r\n prep.setString(3, message);\r\n prep.setString(4, scode);\r\n prep.setString(5, correlator);\r\n prep.execute();\r\n prep.close();\r\n conn.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n /*if(scode.equals(\"22260\")||scode.equals(\"22225\") ){\r\n //if(scode.equals(\"22260\") ){\r\n System.out.println(\"Scode is \"+scode);\r\n sendNormalMes(msisdn,message,linkid,scode);\r\n }*/\r\n }", "public void addMessage(ChatMessage message) {\n sqLiteHandler.addMessageToDB(message, this);\n messages.add(message);\n }", "@FXML\n public void sendAmessage(ActionEvent event) throws SQLException{\n DBConnect db = DBConnect.getInstance();\n db.sendMessage(message.getText(), selectedCustomer.getChat_id());\n message.setText(\"\");\n updateChat();\n }", "@Override\r\n public boolean onSubmit(CharSequence input) {\r\n\r\n //make a message\r\n long systemNenoTime = System.nanoTime();\r\n\r\n _Message message = new _Message(\r\n systemNenoTime + \"::\" + socketManager.getSocketID(), //just make incremental,\r\n // need for chat kit only (No need socket id ref, in this project, but may be future)\r\n systemNenoTime, // this will need for me as primary key, because chatkit abnormally demand ID as String\r\n //but i need long for realm operation\r\n me.getRoomName(), //pass 1-1 unique room name\r\n me, //responsible person is me for this message\r\n input.toString(), //text of message\r\n new Date());\r\n\r\n //check is user valid and ready to broadcast his message\r\n if (socketManager.isUserValid()) {\r\n\r\n //save new submitted message to realm\r\n saveOrUpdateNewMessageRealm(message);\r\n\r\n //emit submitted messages to socket IO for broadcast in current room\r\n socketManager.performEmit(\"newMessage\", message);\r\n\r\n runOnUiThread(() -> {\r\n //submitted message should be view immediately\r\n messagesAdapter.addToStart(message, true);\r\n\r\n //update last chat incremental id\r\n lastMessageIncrementalID = message.getIncrementalID();\r\n });\r\n\r\n\r\n //know the adapter submission has completed\r\n return true;\r\n\r\n } else {\r\n\r\n Toast.makeText(ChatMessageActivity.this, \"Please wait until valid connection confirmed. \" +\r\n \"Try again after sometime! In real project there should be a progress bar.\", Toast.LENGTH_LONG).show();\r\n\r\n //alas adapter will omit submission\r\n return false;\r\n\r\n }\r\n\r\n }", "public void SendNewMessage(DBMethods dbm) {\r\n\t\t\r\n\t\tScanner SendNewMessageSC=new Scanner(System.in);\r\n\t\tString ReceiverUsername=null;\r\n\t\tString ContinueSendMessageAnswer=\"\";\r\n\t\tString MessageSendAnswer=\"\";\r\n\t\tString MessageText=\"\";\r\n\t\t//String ContinueSendingMessages=\"\";\r\n\t\tboolean b1=true;\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tdo {\r\n\t\t\t\t//SEND NEW MESSAGE MENU Structure\r\n\t\t\t\tSystem.out.println(\"\\n\"+\"-----------SEND NEW MESSAGE------------\"+\"\\n\"+\r\n\t\t\t \"Please type in the receiver's username:\");\r\n\t\t\t\tReceiverUsername=SendNewMessageSC.next();\r\n\t\t\t\t\r\n\t\t\t\t//Query that searches the DB to find out if the username exists in the 'users' TABLE\r\n\t\t\t\tString query4=\"SELECT users.username AS 'Username'\"+\"\\n\"+\r\n\t\t \"FROM dont_shoot_the_messenger.users\"+\"\\n\"+\r\n\t\t\t\t \"WHERE users.username='\"+ReceiverUsername+\"'\"+\"\\n\"+\r\n\t\t \"LIMIT 1;\";\r\n\t\t\t\t\r\n\t\t\t\tStatement stm4 = dbm.getConnection().createStatement();\r\n\t\t\t\tResultSet rs3 = stm4.executeQuery(query4);\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\t//Returns FALSE if the username doesn't exist\r\n\t\t\t\tb1=rs3.next();\r\n\t\t\t\t\r\n\t\t\t\t//Case that the username does NOT exist in the 'users' Table\r\n\t\t\t\tif (b1==false) {\r\n\t\t\t\t\tSystem.out.println(\"User not found\"+\"\\n\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"Do you want to continue sending messages? (y/n): \");\r\n\t\t\t\t\tContinueSendMessageAnswer=SendNewMessageSC.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\twhile(!ContinueSendMessageAnswer.equalsIgnoreCase(\"y\")&&!ContinueSendMessageAnswer.equalsIgnoreCase(\"n\")) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\r\n\t\t\t\t\t \"Do you want to continue sending messages? (y/n): \");\r\n\t\t\t\t\t\tContinueSendMessageAnswer=SendNewMessageSC.next();\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\t//Case that the username Exists in the 'users' Table\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(\"Please type in the message you want to send (250 characters max): \");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Way to put the whole message to a string called 'MessageText'\r\n\t\t\t\t\tMessageText=SendNewMessageSC.next();\r\n\t\t\t\t\tMessageText=MessageText+SendNewMessageSC.nextLine();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Replacing the \" and ' characters from MessageText with /\r\n\t\t\t\t\tMessageText=MessageText.replace('\"','/');\r\n\t\t\t\t\tMessageText=MessageText.replaceAll(\"'\",\"/\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Asking for confirmation to send the message\r\n\t\t\t\t\tSystem.out.println(\"Do you want to continue sending the message? (y/n): \");\r\n\t\t\t\t\tMessageSendAnswer=SendNewMessageSC.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\twhile(!MessageSendAnswer.equalsIgnoreCase(\"y\")&&!MessageSendAnswer.equalsIgnoreCase(\"n\")) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\r\n\t\t\t\t\t\t\t\t \"Do you want to continue sending the message? (y/n): \");\r\n\t\t\t\t\t\tMessageSendAnswer=SendNewMessageSC.next();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tswitch(MessageSendAnswer) {\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Case that the user wants to send the message\r\n\t\t\t\t\tcase \"y\":\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Query that inserts all message data to 'messages' Table\r\n\t\t\t\t\t\tString query5=\"INSERT INTO `dont_shoot_the_messenger`.`messages`\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"(`sender_id`, `receiver_id`, `text`)\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"VALUES\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"(\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"(SELECT users.id\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"FROM dont_shoot_the_messenger.users\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"WHERE users.username='\"+getUsername()+\"'\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"LIMIT 1),\"+\r\n\t\t\t\t\t\t\t \"(SELECT users.id\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"FROM dont_shoot_the_messenger.users\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"WHERE users.username='\"+ReceiverUsername+\"'\"+\"\\n\"+\r\n\t\t\t\t\t\t\t \"LIMIT 1),\"+\r\n\t\t\t\t\t\t\t \"'\"+MessageText+\"');\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.println(\"Sending Message to \"+ReceiverUsername+\" ...\"+\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdbm.executeStatement(query5);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSystem.out.print(\"Message Sent\"+\"\\n\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Keeping Log of the action\r\n\t\t\t\t\t\tLog.appendStrToFile(\"Dont_Shoot_The_Messenger_Log_File.txt\", getUsername()+\r\n\t\t\t\t\t\t\t\t \" Sent a Message To: \"+ReceiverUsername+\" at \"+timeStamp+\" Message text: \"+MessageText);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Case that the user does NOT want to send the message\r\n\t\t\t\t\tcase \"n\":\r\n\t\t\t\t\t\tSystem.out.println(\"Canceling the sending of the message...\"+\"\\n\"+\"Sent Canceled\"); \r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tSystem.out.println(\"Do you want to continue sending messages? (y/n): \");\r\n\t\t\t\t\tContinueSendMessageAnswer=SendNewMessageSC.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//While Loop for preventing Wrong Input\r\n\t\t\t\t\twhile(!ContinueSendMessageAnswer.equalsIgnoreCase(\"y\")&&!ContinueSendMessageAnswer.equalsIgnoreCase(\"n\")) {\r\n\t\t\t\t\t\tSystem.out.println(\"Invalid input\"+\"\\n\"+\r\n\t\t\t\t\t \"Do you want to continue sending messages? (y/n): \");\r\n\t\t\t\t\t\tContinueSendMessageAnswer=SendNewMessageSC.next();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//Do...While Loop for keeping User to the SEND NEW MESSAGE Menu Unless he/she chooses 'n'\r\n\t\t\t\t}while(ContinueSendMessageAnswer.equals(\"y\"));\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\\n\"+\"Returning to Main Menu...\"+\"\\n\");\r\n\t\t\t}\r\n\t\t\r\n\t\tcatch (SQLException e) {\r\n\t\t\t//e.printStackTrace();\r\n\t\t\t}\r\n\t\t\r\n\t\t}", "public void insertUser(String firstname, String lastname, String email) {\n/* 53 */ Connection conn = null;\n/* 54 */ PreparedStatement pstmt = null;\n/* 55 */ String sql = null;\n/* */ \n/* */ try {\n/* 58 */ conn = getConn();\n/* 59 */ System.out.println(\"db접속 성공\");\n/* 60 */ sql = \"insert into members(firstname,lastname,email) values(?,?,?)\";\n/* 61 */ pstmt = conn.prepareStatement(sql);\n/* 62 */ pstmt.setString(1, firstname);\n/* 63 */ pstmt.setString(2, lastname);\n/* 64 */ pstmt.setString(3, email);\n/* 65 */ int i = pstmt.executeUpdate();\n/* */ }\n/* 67 */ catch (Exception e) {\n/* 68 */ e.printStackTrace();\n/* */ } finally {\n/* 70 */ closeDB();\n/* */ } \n/* */ }", "@Override\n public void onClick(View view) {\n if(input.getText().toString()!=null){\n msg.child(\"convensation\").child(encry(chatTo)+\"\").push()\n .setValue(new MessagesModel(input.getText().toString(),\n FirebaseAuth.getInstance()\n .getCurrentUser()\n .getDisplayName(),\n ChatName,\n FirebaseAuth.getInstance()\n .getCurrentUser()\n .getEmail(),chatTo,false)\n );\n mAdapter.notifyDataSetChanged();\n input.setText(\"\");\n updateConvensation();\n listOfMessages.scrollToPosition(mAdapter.getItemCount());\n }\n }", "Long insert(MessageGroup record);", "public static synchronized void createMessage(MessageModel message, String parentMessageId) throws MessageException, MongoException, SQLException {\n\t\t// Verify the message parameters\n\t\tboolean valid = true;\n\t\tStringBuilder errorMessage = new StringBuilder();\n\t\t\n\t\tif(message.getMessageText() == null || !Security.isStringNotEmpty(message.getMessageText())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message text : \" + message.getMessageText());\n\t\t}\n\t\tif(message.getMessageBoardName() == null || !Security.isValidBoardName(message.getMessageBoardName())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message board name : \" + message.getMessageBoardName());\n\t\t}\n\t\tif(message.getMessagePosterId() == null || !Security.isValidUserId(message.getMessagePosterId())) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message poster id : \" + message.getMessagePosterId());\n\t\t}\n\t\tif(message.getMessageDate() == null) {\n\t\t\tvalid = false;\n\t\t\terrorMessage.append(\" - Invalid message date : null\");\n\t\t}\n\t\t\n\t\t// If there is an error, throw an error\n\t\tif(!valid) {\n\t\t\t\n\t\t\tthrow new MessageException(errorMessage.toString());\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\t// Escape the HTML special characters\n\t\t\tmessage.setMessageText(Security.htmlEncode(message.getMessageText()));\n\t\t\tmessage.setMessageBoardName(Security.htmlEncode(message.getMessageBoardName()));\n\t\t\t\n\t\t\t// Get message ID dynamically\n\t\t\tif(parentMessageId != null && !parentMessageId.equals(\"\")) {\n\t\t\t\t\n\t\t\t\t// Get the message parent\n\t\t\t\tMessageFilter parentFilter = new MessageFilter();\n\t\t\t\tparentFilter.addMessageId(parentMessageId);\n\t\t\t\tList<MessageModel> parents = MessageDatabaseManager.getMessage(parentFilter, false, true);\n\t\t\t\tif(parents.size() == 1) {\n\t\t\t\t\t\n\t\t\t\t\tMessageModel parent = parents.get(0);\n\t\t\t\t\tmessage.setMessageId(parent.getNextAnswerId());\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tthrow new MessageException(\"Parent message not found : \" + parentMessageId);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\t// Get the next root message ID\n\t\t\t\tmessage.setMessageId(MessageDatabaseManager.getNextRootMessageId());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Insert the new message\n\t\t\tMessageDatabaseManager.insertMessage(message);\n\t\t\t\n\t\t}\n\t}", "public void addReply(String did,String uid,String dmsg) throws SQLException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\t\tString sql = \"INSERT INTO doubts_reply(DID,UID,DMSG) values(?,?,?)\";\n\t\t\t\n\t\t\tpreparedStatement = conn\n\t\t\t .prepareStatement(sql);\n\t\t\t\n\t\t\tpreparedStatement.setString(1, did);\n\t\t\tpreparedStatement.setString(2, uid);\n\t\t\tpreparedStatement.setString(3, dmsg);\n\t\t\t\n\t\t\t\n\t\t\tpreparedStatement.executeUpdate();\n\t\t\tSystem.out.println(\"reply Added!\");\n\t\t}", "public void insertReply() {\n\r\n\t}", "private void inserirQuests(){\n try {\n methods.InsereQuestsOnBD();\n //Toast.makeText(this,\"Inseridos dados com sucesso\",Toast.LENGTH_LONG).show();\n\n }\n catch (SQLException ex){\n AlertDialog.Builder dlg = new AlertDialog.Builder(this);\n dlg.setTitle(\"Erro\");\n dlg.setMessage(ex.getMessage());\n dlg.setNeutralButton(\"OK\",null);\n dlg.show();\n }\n }", "private void saveOrUpdateNewMessageRealm(_Message message) {\r\n\r\n //realm required to submit from separate thread. IF I do operation in ui thread,\r\n //I need .allowQueriesOnUiThread(true), that's no need in my case\r\n executor.execute(() -> {\r\n // use Realm on background thread\r\n _RealmController.insertOrUpdateNewMessage(message);\r\n });\r\n }", "private void sendMessage(String sender, String receiver, String msg) {\n //Map key value pairs\n Map<String, Object> message = new HashMap<>();\n message.put(\"sender\", sender);\n message.put(\"receiver\", receiver);\n message.put(\"message\", msg);\n message.put(\"isSeen\", false);\n message.put(\"createdAt\", FieldValue.serverTimestamp());\n\n //Upload to firestore\n db.collection(\"messages\").document()\n .set(message)\n .addOnSuccessListener(aVoid -> Utility.showToast(this, \"Message sent\"))\n .addOnFailureListener(e -> {\n Utility.showToast(this, \"Error: Submission failed\");\n Log.w(TAG, \"Error writing document\", e);\n });\n }", "private void setupChat() {\n\n\n // Initialize the array adapter for the conversation thread\n mConversationArrayAdapter = new ArrayAdapter<String>(getActivity(), R.layout.message);\n\n mConversationView.setAdapter(mConversationArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n mOutEditText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n mSendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n // Send a message using content of the edit text widget\n View view = getView();\n if (null != view) {\n TextView textView = (TextView) view.findViewById(R.id.edit_text_out);\n String message = textView.getText().toString();\n Bundle bundle=new Bundle();\n bundle.putString(BluetoothChatFragment.EXTRAS_ADVERTISE_DATA, message);\n mCallback.onSendMessage(bundle);\n //對話框上顯示\n mConversationArrayAdapter.add(\"Me: \" + message);\n //設為不可發送 並清除訊息文字編輯區\n Send_btn=false;\n mSendButton.setEnabled(Send_btn);\n mOutStringBuffer.setLength(0);\n mOutEditText.setText(mOutStringBuffer);\n\n }\n }\n });\n\n // Initialize the buffer for outgoing messages\n mOutStringBuffer = new StringBuffer(\"\");\n }", "public void SendToAll()\r\n {\r\n AlertDialog.Builder dialog=new AlertDialog.Builder(MainActivity.this);\r\n dialog.setTitle(\"Send Message To All Users\");\r\n dialog.setIcon(R.drawable.ic_action_send) ;\r\n dialog.setMessage(\"Enter your message :\") ;\r\n final EditText input =new EditText(this);\r\n input.setHint(\"Hi !\");\r\n dialog.setView(input) ;\r\n dialog.setPositiveButton(\"Send\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (!TextUtils.isEmpty(input.getText()))\r\n {\r\n firebaseUser=FirebaseAuth.getInstance().getCurrentUser() ;\r\n reference=FirebaseDatabase.getInstance().getReference(\"Users\");\r\n reference.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n for (DataSnapshot snapshot:dataSnapshot.getChildren())\r\n {\r\n final Users users=snapshot.getValue(Users.class);\r\n if (!users.getId().equals(firebaseUser.getUid()))\r\n {\r\n Calendar calendar=Calendar.getInstance() ;\r\n SimpleDateFormat format=new SimpleDateFormat(\"HH:mm\") ;\r\n String time=format.format(calendar.getTime()) ;\r\n String key = reference.child(\"Chats\").push().getKey() ;\r\n HashMap<String,Object>hashMap=new HashMap<>();\r\n hashMap.put(\"sender\",firebaseUser.getUid());\r\n hashMap.put(\"receiver\",users.getId());\r\n hashMap.put(\"message\",input.getText().toString());\r\n hashMap.put(\"id\",key);\r\n hashMap.put(\"time\",time);\r\n hashMap.put(\"isseen\",false) ;\r\n reference=FirebaseDatabase.getInstance().getReference(\"Chats\") ;\r\n reference.child(key).setValue(hashMap) ;\r\n final DatabaseReference chatRef=FirebaseDatabase.getInstance().getReference(\"chatlist\").child(firebaseUser.getUid()).child(users.getId());\r\n chatRef.addListenerForSingleValueEvent(new ValueEventListener() {\r\n @Override\r\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\r\n if(!dataSnapshot.exists())\r\n {\r\n chatRef.child(\"id\").setValue(users.getId());\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void onCancelled(@NonNull DatabaseError databaseError) {\r\n\r\n }\r\n });\r\n }\r\n\r\n }\r\n });\r\n dialog.setNegativeButton(\"cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.cancel();\r\n }\r\n });\r\n dialog.show();\r\n }", "private void postDataToSQLite() {\n if (!inputValidation.isInputEditTextFilled(nomeLogin, regNome, getString(R.string.error_message_name))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(emailLogin, regEmail, getString(R.string.error_message_email))) {\n return;\n }\n if (!inputValidation.isInputEditTextEmail(emailLogin, regEmail, getString(R.string.error_message_email))) {\n return;\n }\n if (!inputValidation.isInputEditTextFilled(senhaLogin, regSenha, getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.senhaForca(senhaLogin, regSenha, getString(R.string.error_força_senha))){\n return;\n }\n if (!inputValidation.isInputEditTextFilled(senhaLoginConfirmar, regSenhaConfirmar, getString(R.string.error_message_password))) {\n return;\n }\n if (!inputValidation.isInputEditTextMatches(senhaLogin, senhaLoginConfirmar, regSenhaConfirmar, getString(R.string.error_password_match))) {\n return;\n }\n if (!databaseHelper.checkUser(emailLogin.getText().toString().trim())) {\n user.setNome(nomeLogin.getText().toString().trim());\n user.setEmail(emailLogin.getText().toString().trim());\n user.setSenha(senhaLogin.getText().toString().trim());\n databaseHelper.addUser(user);\n // Snack Bar to show success message that record saved successfully\n Snackbar.make(nestedScrollView, getString(R.string.success_message), Snackbar.LENGTH_SHORT).show();\n emptyInputEditText();\n } else {\n // Snack Bar to show error message that record already exists\n Snackbar.make(nestedScrollView, getString(R.string.error_email_exists), Snackbar.LENGTH_LONG).show();\n }\n }", "@Test\n\tpublic void testMessage() {\n\t\tUserModel exampleUser = new UserModel();\n\t\texampleUser.setUserId(\"@tester_6\");\n\t\texampleUser.setUserPseudo(\"Test_pseudo\");\n\t\texampleUser.setUserEmail(\"test6@test.mail\");\n\t\texampleUser.setUserPassword(\"0e3e75234abc68f4378a86b3f4b32a198ba301845b0cd6e50106e874345700cc6663a86c1ea125dc5e92be17c98f9a0f85ca9d5f595db2012f7cc3571945c123\");\n\t\texampleUser.setUserDate(new Date(new java.util.Date().getTime()));\n\t\texampleUser.setUserAdmin(true);\n\t\ttry {\n\t\t\tUserDatabaseManager.insertUser(exampleUser);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot insert a new user for board testing !\");\n\t\t}\n\n\t\t// Test a new board to make new message\n\t\tBoardModel newBoard = new BoardModel();\n\t\tnewBoard.setBoardName(\"test_board2\");\n\t\tnewBoard.setBoardCreatorId(\"@tester_6\");\n\t\tnewBoard.setBoardDescription(\"This is the test board of the test user\");\n\t\ttry {\n\t\t\tBoardDatabaseManager.insertBoard(newBoard);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot insert a new board !\");\n\t\t}\n\n\t\t// Test message insertion\n\t\tMessageModel message = new MessageModel();\n\t\tmessage.setMessageBoardName(\"test_board2\");\n\t\tmessage.setMessageDate(new Date(new java.util.Date().getTime()));\n\t\tmessage.setMessageId(\"1\");\n\t\tmessage.setMessagePosterId(\"@tester\");\n\t\tmessage.setMessageText(\"This is a test message\");\n\t\ttry {\n\t\t\tassertEquals(\"1\", MessageDatabaseManager.getNextRootMessageId());\n\t\t\tMessageDatabaseManager.insertMessage(message);\n\t\t\tassertEquals(\"2\", MessageDatabaseManager.getNextRootMessageId());\n\t\t} catch (MongoException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot insert a new message !\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot add the message to the board !\");\n\t\t}\n\n\t\t// Test answer insertion\n\t\tMessageModel answer = new MessageModel();\n\t\tanswer.setMessageBoardName(\"test_board2\");\n\t\tanswer.setMessageDate(new Date(new java.util.Date().getTime()));\n\t\tanswer.setMessageId(message.getNextAnswerId());\n\t\tanswer.setMessagePosterId(\"@tester\");\n\t\tanswer.setMessageText(\"This is a test answer\");\n\t\ttry {\n\t\t\tMessageDatabaseManager.insertMessage(answer);\n\t\t} catch (MongoException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot insert an answer !\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot add the message to the board !\");\n\t\t}\n\n\t\t// Test updating\n\t\tanswer.setMessageText(\"LOL\");\n\t\ttry {\n\t\t\tMessageDatabaseManager.updateMessage(answer);\n\t\t} catch (MongoException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot update a message\");\n\t\t}\n\n\t\t// Test getting\n\t\tMessageFilter filter = new MessageFilter();\n\t\tfilter.addMessageId(\"1.\");\n\t\tList<MessageModel> messages = MessageDatabaseManager.getMessage(filter, true, true);\n\t\tassertEquals(\"1.1\", messages.get(0).getMessageId());\n\t\tassertEquals(\"LOL\", messages.get(0).getMessageText());\n\t\t\n\n\t\t// Test deleting\n\t\tMessageModel answerAnswer = new MessageModel();\n\t\tanswerAnswer.setMessageId(answer.getNextAnswerId());\n\t\tanswerAnswer.setMessageText(\"This is an answer to an answer\");\n\t\tanswerAnswer.setMessageBoardName(newBoard.getBoardName());\n\t\tanswerAnswer.setMessagePosterId(exampleUser.getUserId());\n\t\tanswerAnswer.setMessageDate(new Date(new java.util.Date().getTime()));\n\t\t\n\t\tBoardFilter newBoardFilter = new BoardFilter();\n\t\tnewBoardFilter.addBoardName(newBoard.getBoardName());\n\t\t\n\t\tmessage.addAnwserId(\"1.1\");\n\t\tanswer.addAnwserId(\"1.1.1\");\n\t\ttry {\n\t\t\tMessageDatabaseManager.insertMessage(answerAnswer);\n\t\t\tassertEquals(3, MessageDatabaseManager.getMessage(new MessageFilter(), false, true).size());\n\t\t\t\n\t\t\tBoardModel board = BoardDatabaseManager.getBoards(newBoardFilter, false).get(0);\n\t\t\tassertEquals(1, board.getBoardMessagesId().size());\n\n\t\t\tMessageDatabaseManager.deleteMessage(message);\n\t\t\tassertEquals(0, MessageDatabaseManager.getMessage(new MessageFilter(), false, true).size());\n\n\t\t\tboard = BoardDatabaseManager.getBoards(newBoardFilter, false).get(0);\n\t\t\tassertEquals(0, board.getBoardMessagesId().size());\n\t\t} catch (MongoException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot delete message !\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail(\"Cannot delete the message from the BELONGS_TO_BOARD table !\");\n\t\t}\n\n\t}", "int insert(SmsCleanBagLine record);", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n Long time = new Date().getTime();\n if (!dataSnapshot.exists()) {\n // Create new chats\n Chat chat1 = new Chat(mChatName, mChatPhotoUrl, mUid, mChatUserId, msg.getMessage(), time, false);\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mUid, mChatId}), chat1);\n Chat chat2 = new Chat(mUsername, mPhotoUrl, mUid, mChatUserId, msg.getMessage(), time, true);\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId}), chat2);\n } else {\n // update latest message for chat1\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mUid, mChatId, \"latestMessage\"}), msg.getMessage());\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mUid, mChatId, \"latestActivity\"}), time);\n\n // update latest message for chat2\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId, \"latestMessage\"}), msg.getMessage());\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId, \"latestActivity\"}), time);\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.CHATS_CHILD, familyCode, mChatUserId, mChatId, \"notified\"}), true);\n }\n\n // create new message\n databaseUpdates.put(DatabaseUtil.getDatabasePath(new String[]{Constants.MESSAGES_CHILD, familyCode, mChatId, msg.getId()}), msg);\n\n mFirebaseDatabaseReference.updateChildren(databaseUpdates, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(@Nullable DatabaseError databaseError, @NonNull DatabaseReference databaseReference) {\n if (databaseError == null) {\n databaseUpdates.clear();\n chatMessageForm.reset(ChatActivity.this);\n } else {\n Log.w(TAG, \"Send message failed for chat: \" + mChatId + \" for user: \" + mUid + \". \", databaseError.toException());\n Toast.makeText(ChatActivity.this, getResources().getString(R.string.error_sending_message), Toast.LENGTH_SHORT).show();\n }\n loadingDialog.hide();\n }\n });\n }", "public void getChatMessage(String text) {\n\t\tint idplayer = gamecontroller.getPlayerController().getPlayerID();\n\t\tChatM.writeChatToDatabase(idplayer, text);\n\t}", "private void insert() {//将数据录入数据库\n\t\tUser eb = new User();\n\t\tUserDao ed = new UserDao();\n\t\teb.setUsername(username.getText().toString().trim());\n\t\tString pass = new String(this.pass.getPassword());\n\t\teb.setPassword(pass);\n\t\teb.setName(name.getText().toString().trim());\n\t\teb.setSex(sex1.isSelected() ? sex1.getText().toString().trim(): sex2.getText().toString().trim());\t\n\t\teb.setAddress(addr.getText().toString().trim());\n\t\teb.setTel(tel.getText().toString().trim());\n\t\teb.setType(role.getSelectedIndex()+\"\");\n\t\teb.setState(\"1\");\n\t\t\n\t\tif (ed.addUser(eb) == 1) {\n\t\t\teb=ed.queryUserone(eb);\n\t\t\tJOptionPane.showMessageDialog(null, \"帐号为\" + eb.getUsername()\n\t\t\t\t\t+ \"的客户信息,录入成功\");\n\t\t\tclear();\n\t\t}\n\n\t}", "int insertSelective(OfUserWechat record);", "public static void addChat($_Abstruct_Value_Item_Main_Chat abstruct_value_item_main_chat) {\n if (abstruct_value_item_main_chat instanceof $_Value_Item_Main_Chat) {\n main_chat_fragment.rooms.add(abstruct_value_item_main_chat);\n recycle_view_main_chat.addItemDecoration(new DividerItemDecoration(SecondActivity.context,\n DividerItemDecoration.VERTICAL));\n main_chat_fragment.recycleAdapter.notifyDataSetChanged();\n List<$_Message> list = new ArrayList();\n MainActivity.allMessages.put(abstruct_value_item_main_chat.getEmail(), new Pair<>(new $_Recycle_View_Room_Chat_Adapter(list, FourActivity.context), list));\n //MainActivity.allMessages.put(value_item_main_chat.getEmail(),new ArrayList<>());\n } else {\n main_chat_fragment.rooms.add(abstruct_value_item_main_chat);\n recycle_view_main_chat.addItemDecoration(new DividerItemDecoration(SecondActivity.context,\n DividerItemDecoration.VERTICAL));\n main_chat_fragment.recycleAdapter.notifyDataSetChanged();\n List<$_Message> list = new ArrayList();\n System.out.println(\"EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE === \" + abstruct_value_item_main_chat.getEmail());\n MainActivity.allMessages.put(abstruct_value_item_main_chat.getEmail(), new Pair<>(new $_Recycle_View_Room_Chat_Adapter(list, FourActivity.context), list));\n //MainActivity.allMessages.put(value_item_main_chat.getEmail(),new ArrayList<>());\n }\n\n }", "public void insert (Sessions sessions){\n new insertAsyncTask(mSessionDAO).execute(sessions);\n }", "public void guardar() {\n try {\n objConec.conectar();\n objConec.Sql = objConec.con.prepareStatement(\"insert into contacto values(null,?,?,?,?,?)\");\n objConec.Sql.setString(1, getNom_con());\n objConec.Sql.setInt(2, getTel_con()); \n objConec.Sql.setString(3, getEma_con());\n objConec.Sql.setString(4, getAsu_con());\n objConec.Sql.setString(5, getMen_con());\n objConec.Sql.executeUpdate();\n objConec.cerrar();\n JOptionPane.showMessageDialog(null, \"Mensaje enviado correctamente\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(null, \"Error al enviar el mensaje\");\n\n }\n\n }", "private void sendMessageFirebase(String name, String content, String image, String uid, String url){\n FirebaseDatabase firebaseDatabase; //Firebase Database 관리 객체참조변수\n DatabaseReference roodIdReference;\n Calendar calendar = Calendar.getInstance(); //현재 시간을 가지고 있는 객체\n String time = calendar.get(Calendar.HOUR_OF_DAY) + \":\" + calendar.get(Calendar.MINUTE);\n\n ChatMessageItem messageItem = new ChatMessageItem(name, content, time, image, uid, url);\n\n firebaseDatabase = FirebaseDatabase.getInstance();\n roodIdReference = firebaseDatabase.getReference(roomID);\n roodIdReference.push().setValue(messageItem);\n }", "int insert(UserTopic record);", "int insert(UserTopic record);", "public void processMessage(Chat chat, Message message)\n {\n }", "private void setupChat() {\n chatArrayAdapter = new ArrayAdapter<String>(MainActivity.this, R.layout.message);\n\n listView.setAdapter(chatArrayAdapter);\n\n // Initialize the compose field with a listener for the return key\n editText.setOnEditorActionListener(mWriteListener);\n\n // Initialize the send button with a listener that for click events\n sendButton.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n String message = editText.getText().toString();\n if(!message.equals(\"\")) {\n sendMessage(message);\n }\n }\n });\n\n }" ]
[ "0.7290451", "0.69202584", "0.66802347", "0.6485427", "0.64634067", "0.6433583", "0.63922215", "0.6388261", "0.634314", "0.63400114", "0.632426", "0.63175595", "0.6314667", "0.6246957", "0.6212168", "0.61990553", "0.6195061", "0.61940074", "0.6178424", "0.61539096", "0.6131916", "0.6102985", "0.6096725", "0.60819095", "0.6071813", "0.60549146", "0.6028698", "0.5997583", "0.59772766", "0.59584045", "0.59430957", "0.5931592", "0.59280187", "0.5857242", "0.58391255", "0.5837108", "0.5836205", "0.57880276", "0.5785714", "0.5772635", "0.572658", "0.57082164", "0.5698737", "0.5697485", "0.5695718", "0.56899804", "0.5686383", "0.56808054", "0.56706005", "0.5668441", "0.56654847", "0.56632644", "0.5652971", "0.56415707", "0.5630255", "0.56243306", "0.56141263", "0.5600187", "0.5589179", "0.55823535", "0.55685055", "0.55561906", "0.55447304", "0.55437547", "0.554239", "0.55368257", "0.55195177", "0.55146074", "0.5508435", "0.5506442", "0.55063576", "0.5478223", "0.5476862", "0.5476326", "0.5457824", "0.54539925", "0.5446737", "0.54456264", "0.5439456", "0.54334646", "0.542228", "0.5419723", "0.54187614", "0.54181", "0.5416077", "0.5407401", "0.5405692", "0.5404124", "0.54007924", "0.5390224", "0.53859603", "0.537717", "0.5374497", "0.5357954", "0.5353876", "0.5348381", "0.534698", "0.534698", "0.5339245", "0.5338276" ]
0.69265443
1
/ Sending a single StreamItem object through the kafka channel. Please note that this method is using JAXB Marshaller object, that is NOT thread safe. For now this method is "synchronized".
public synchronized void send(StreamItem item) { // The EventBuilder is used to build an event using the // the raw JSON of a tweet //LOGGER.info(item.getTweet().getUserScreenName() + ": " + item.getTweet().getText()); // create object to be send // StreamItem si = new StreamItem(); // si.setDataChannelId(dataChannelId); // si.setDataSourceId(dataSourceId); // si.setQueryData(query); // si.setTweet(TweetUtils.getTweetFromStatus(status)); Writer writer = new StringWriter(); // serialize the java class to XML file try { //JAXBContext jc = JAXBContext.newInstance(StreamItem.class); //Marshaller marshaller = jc.createMarshaller(); // marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); JAXBElement<StreamItem> jaxbElement = new JAXBElement<StreamItem>(new QName("streamItem"), StreamItem.class, item); marshaller.marshallToJSON(jaxbElement, writer); // KeyedMessage<String, String> data = new KeyedMessage<String, // String>(kafkaTopic, DataObjectFactory.getRawJSON(status)); KeyedMessage<String, String> data = new KeyedMessage<String, String>(kafkaTopic, writer.toString()); kafkaProducer.send(data); //LOGGER.info(writer.toString()); } catch (JAXBException e) { LOGGER.info("Tweet serialisation error! " + e); LOGGER.log(Level.SEVERE, e.getMessage(), e); e.printStackTrace(); } catch (Exception e) { LOGGER.info("Stream producer: Error while sending tweet! " + e); LOGGER.log(Level.SEVERE, e.getMessage(), e); e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void send(Tweet tweet) {\n\t\t// The EventBuilder is used to build an event using the\n\t\t// the raw JSON of a tweet\n\t\t// LOGGER.info(status.getUser().getScreenName() + \": \" +\n\t\t// status.getText());\n\n\t\t// create object to be send\n\t\tStreamItem si = new StreamItem();\n\t\t// si.setDataChannelId(dataChannelId);\n\t\t// si.setDataSourceId(dataSourceId);\n\t\t// si.setQueryData(query);\n\t\tsi.setTweet(tweet);\n\n\t\tWriter writer = new StringWriter();\n\n\t\t// serialize the java class to XML file\n\t\ttry {\n\t\t\t//JAXBContext jc = JAXBContext.newInstance(StreamItem.class);\n\t\t\t//Marshaller marshaller = jc.createMarshaller();\n\t\t\t// marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tJAXBElement<StreamItem> jaxbElement = new JAXBElement<StreamItem>(new QName(\"streamItem\"), StreamItem.class, si);\n\t\t\tmarshaller.marshallToJSON(jaxbElement, writer);\n\t\t\t\n\t\t\t// KeyedMessage<String, String> data = new KeyedMessage<String,\n\t\t\t// String>(kafkaTopic, DataObjectFactory.getRawJSON(status));\n\t\t\tKeyedMessage<String, String> data = new KeyedMessage<String, String>(kafkaTopic, writer.toString());\n\n\t\t\tkafkaProducer.send(data);\n\t\t} catch (JAXBException e) {\n\t\t\tLOGGER.info(\"Tweet serialisation error! \" + e);\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.info(\"Stream producer: Error while sending tweet! \");\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t}", "@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }", "@Override\n\tpublic void run() {\n\t\tkafkaProducer.send(record);\n\t\tkafkaProducer.close();\n\t}", "public void sendDoc(String sourceId, String itemId, String accountId, InputStream streamData, HashMap<String,String> params, HashMap<String,String> metas, XMLConfig extra, IConnector cnx) {\n\t}", "public void serialize(OutputStream stream, T message, SendContext<T> ctx)\r\n\t\t\tthrows IOException;", "public void sendObject(Sendable s) {\r\n\t\t// code to send a single object\r\n\t\tPackager pack = new Packager();\r\n\t\tpack.firstObject = true;\r\n\t\t// packagers.add(pack);\r\n\t\ts.send(this, pack);\r\n\t\tpack.firstObject = false;\r\n\t\ttry {\r\n\t\t\tpack.send();\r\n\t\t\tif (autoFlush) {\r\n\t\t\t\tdos.flush();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public static void publishInstance(bjDealerDataWriter typedWriter, bjDealer pubInstance)\n\t{\n\t\tpubInstance.seqno = DealerMain.seqno;\n\t\ttypedWriter.register_instance(pubInstance); // pass assignments into publisher\n\t\tTimer.wait(100);\n\t\tint status = typedWriter.write(pubInstance, HANDLE_NIL.value); // send the message instance\n\t\tErrorHandler.checkStatus(status, \"bjDealerDataWriter.write\"); // make sure it got sent?\n\t\t//System.out.println(\" status value: \" + status);\n\t\tDealerMain.seqno++;\n\t}", "@Override\n\tpublic void send(OutputStream stream) throws IOException {\n\t\tstream.write(this.data);\n\t}", "public static void sendToKafka(FlightState fs) {\n\t\ttry {\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 4));\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 5));\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 6));\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 7));\n\t\t} catch(SerializationException e) {\n\t\t\tSystem.out.println(\"Serialization Exception: \"+e);\n\t\t} catch(IllegalArgumentException e) {\n\t\t\t// Incomplete flight state is skipped without notification\n\t\t}\n\t}", "public void send(Object object){\n synchronized (S2CMessages){\n S2CMessages.add(object);\n S2CMessages.notifyAll();\n }\n }", "public int publishToWsSession(String wsSessionId, Message message);", "public void send(Serializable msg) throws IOException;", "public void send(Object object, MediaType mediaType)\n/* */ throws IOException\n/* */ {\n/* 106 */ if (object != null) {\n/* 107 */ send(event().data(object, mediaType));\n/* */ }\n/* */ }", "private void processAndPublishMessage(byte[] body) {\n Map<String, Object> props = Maps.newHashMap();\n props.put(CORRELATION_ID, correlationId);\n MessageContext mc = new MessageContext(body, props);\n try {\n msgOutQueue.put(mc);\n String message = new String(body, \"UTF-8\");\n log.debug(\" [x] Sent '{}'\", message);\n } catch (InterruptedException | UnsupportedEncodingException e) {\n log.error(ExceptionUtils.getFullStackTrace(e));\n }\n manageSender.publish();\n }", "public void send(String topic, Object consumerRecord) {\r\n log.info(\"topic name is : \" + topic + \" producerecord is: \" + consumerRecord);\r\n kafkaTemplate.send(topic, consumerRecord);\r\n }", "public void streamPublishStart(IBroadcastStream stream);", "@Override\n public void publish(PubSubObject pbObj, PubSubService pubSubService) {\n pubSubService.addObjectToQueue(pbObj);\n }", "public void addStreamItem(StreamBean streamBean) {\n\t\tstreamList.add(streamBean.getDisplayName());\n\t\tmapStream.put(streamBean.getDisplayName(), streamBean);\n\t\tstreamListAdapter.notifyDataSetChanged();\n\t}", "public synchronized void send() throws RemoteException {\n\n if (this.temperatureQueue.isEmpty()) {\n //logger.log(Level.INFO, \"Nothing to send, bailing.\");\n return;\n }\n\n for (TemperatureMessage message : this.temperatureQueue) {\n // TODO\n // lookup the node and deliver the message.\n\n TemperatureNode destinationNode = owner.lookupNode(message.getDestination());\n if (destinationNode == null) {\n // Classic comment; this should never happen.\n System.out.println(\"Refusing to send to null node \" + message.getDestination());\n return;\n }\n destinationNode.sendMeasurement(message);\n this.owner.incrementVectorClock();\n //System.out.println(this.owner.ID() + \"Sent a message to \" + destinationNode.ID());\n\n }\n\n temperatureQueue.clear();\n }", "@Override\n public void publish(PacketContext context) {\n byte[] body = bytesOf(MQUtil.json(context));\n processAndPublishMessage(body);\n }", "private void sendObject(Object obj){\r\n try {\r\n out.reset();\r\n out.writeObject(obj);\r\n out.flush();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public synchronized void sendMessage(KafkaMessage msg, String[] topic) {\r\n if (producer != null) {\r\n // Encode message\r\n JsonEncoder json = new JsonEncoder();\r\n\r\n\r\n //producer.beginTransaction(); //begin transactions\r\n try {\r\n for (int index = 0; index < topic.length; index++) {\r\n String encodedMsg = json.encode(msg);\r\n ProducerRecord<Long, String> record = new ProducerRecord<>(topic[index],\r\n encodedMsg);\r\n\r\n producer.send(record).get(); // (A??)-Synchronouse send.\r\n this.requests.mark();\r\n }\r\n //producer.commitTransaction();\r\n } catch (KafkaException e) {\r\n e.printStackTrace();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n } else {\r\n System.out.println(\"ProducerContainer is not initialized for producer \" + this.ID);\r\n }\r\n }", "public boolean postWallItemToWall(String userUuid, WallItem wallItem);", "public void sendMessage()throws Exception{\r\n\r\n\t\ttry{\r\n\r\n\t\t\tintiSettings();\r\n\r\n\t\t\tproducer = new KafkaProducer(prop);\r\n\r\n\t\t\tSystem.out.println(\"Message to be sent from Producer:\");\r\n\t\t\tfor(int i=0;i<messageList.size();i++){\r\n\t\t\t\tSystem.out.println(messageList.get(i));\r\n\t\t\t\tproducer.send(new ProducerRecord(topicName, messageList.get(i)));\r\n\t\t\t}\r\n\t\t}catch(ProducerFencedException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(OutOfOrderSequenceException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(AuthorizationException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(KafkaException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tproducer.abortTransaction();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tproducer.close();\r\n\t\t}\r\n\t}", "default NettyOutbound sendByteArray(Publisher<? extends byte[]> dataStream) {\n\t\treturn send(ReactorNetty.publisherOrScalarMap(dataStream, Unpooled::wrappedBuffer));\n\t}", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "OutgoingStream<T> withTopic(String topic);", "public void sendDataToCrQueue() {\n List<Shares> sharesList = new ArrayList<>();\n amqpTemplate.convertAndSend(\"queueTestKey\", sharesList);\n }", "private void send(Message outgoing, ByteBuffer buffer, SocketChannel channel, boolean debug) throws IOException {\n\t\tif (debug)\n\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \" sending new message: \" + outgoing.toString());\n\t\tbuffer = ByteBuffer.wrap(Serializer.serialize(outgoing));\n\t\tchannel.write(buffer);\n\t\tif (debug)\n\t\t\tSystem.out.println(\"Worker Thread \" + threadID + \"sent message\");\n\t}", "public void send(Object o) {\n bus.onNext(o);\n }", "@Override\n\tpublic void messageSent(NextFilter nextFilter, IoSession session, WriteRequest writeRequest) throws Exception {\n\t\tnextFilter.messageSent(session, writeRequest);\n\t}", "private void sendInternal(Payload payload) {\n synchronized (internalLock) {\n outBuffer.addLast(payload);\n pendingMessages = true;\n internalLock.notify();\n }\n }", "public synchronized void send(Object obj)\r\n\t{\r\n\t\tclientQueue.offer(obj);\r\n\t}", "public void push(final String queueName, final String item);", "private void send(byte[] message)\n\t\t\tthrows IOException\n\t{\n\t\tchannel.basicPublish(BUNGEECORD_QUEUE, \"\", null, message);\n\t}", "public synchronized void sendMessage(OutputStream out, Message msg) throws IOException {\n if (msg.getPayload() == null) {\n //System.out.println(sdf.format(Calendar.getInstance().getTime()) + \" The payload is null\");\n msg.setLength(1);\n } else {\n msg.setLength(msg.getPayload().length + 1);\n }\n out.write(intToByteArray(msg.getLength()));\n //System.out.println(sdf.format(Calendar.getInstance().getTime()) + \" in sendMessage: length: \" + msg.getLength() + \" & Message Type \" + msg.getType());\n out.write(msg.getType());\n\n\n if (msg.getPayload() != null) {\n out.write(msg.getPayload());\n }\n out.flush();\n }", "public BamStream getBrokerStream()\n {\n return this;\n }", "private void sendObjectToServer (Object obj) throws IOException,\n ClassNotFoundException {\n\n ObjectOutputStream out = new ObjectOutputStream(socket.getOutputStream());\n out.writeObject(obj);\n out.flush();\n }", "public void sendEmployeeEventUsingProducerRecord(EmployeeEvent employeeEvent) throws JsonProcessingException {\n\n Integer key = employeeEvent.getEmpEventId();\n String value = objectMapper.writeValueAsString(employeeEvent);\n\n\n ProducerRecord<Integer, String> producerRecord = createProducerRecord(key, value, kafkaTopic);\n// ListenableFuture<SendResult<Integer, String>> listenableFuture = kafkaTemplate.send(kafkaTopic, key, value); // sendDefault is of type Listenable future\n ListenableFuture<SendResult<Integer, String>> listenableFuture = kafkaTemplate.send(producerRecord); // changed overloaded method of send\n\n listenableFuture.addCallback(new ListenableFutureCallback<SendResult<Integer, String>>() { // Call back is of success and failure types\n @Override\n public void onFailure(Throwable e) {\n handleFailure(key, value, e);\n }\n\n @Override\n public void onSuccess(SendResult<Integer, String> result) { // Published message is successful\n handleSuccess(key, value, result);\n }\n });\n\n }", "public int publishToAll(Message message);", "private void AsyncPush(String topic){\n\t\t\t\t \t\n\t \t/**\n\t \t * output a map, delete existed items\n\t \t */\n\t \t//Map<Key, Integer> deduplicatedBuff = mergeDuplicatedItemsAndDelte(buff);\n\t \t\n\t \t//not in, create, delay\n\t \tif(!producerMap.containsKey(topic)){\n\t \t\ttry {\n\t\t\t\t\t\t\tCreateProducer(topic,LogicController.batchMessagesMaxMessagesPerBatch);\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\t \t\t \n\t \t}\n\t \tlog.info(\"#publish\"+topic+\", \"+buffMap.size());\n\t \tProducer<byte[]> producer = producerMap.get(topic);\n\t \t/**\n\t \t * init set, copy to hash set\n\t \t */\n\t \t//Set<Key> Keys = Sets.newConcurrentHashSet(buffMap.keySet());\n\t \t\n\t \t \n\t \tfor (Key key : buffMap.keySet()){\n\t \t\t \n\t \t\t //if(buffMap.containsKey(key)){\n\t \t\t \n\t \t\t \n\t \t\t if(buffMap.containsKey(key)){\n\t \t\t\t Integer val = buffMap.get(key);\n\t \t\t\t //clear,skip\n\t \t\t\t if(val<=0){buffMap.remove(key);continue;}\n\t \t\t\t //concenate\n\t \t\t\t byte[] out = createKVByte(key,val);\n\t \t\t\t \n\t \t\t\t//get producer\n\t\t\t \t\t\t \n\t\t\t \t\t\t //byte[] tempTable = new byte[](buffMap);\n\t\t producer.sendAsync(out).thenRun(() -> {\n\t\t\t messagesSent.increment();\n\t\t\t bytesSent.add(out.length);\n\t\t\t //update\n\t\t\t TopicMap.replace(topic, TopicMap.get(topic)+out.length);\t\n\t\t\t \n\t\t\t //delete\n\t\t\t rescaleBufferMap(buffMap,key,val);\n\t\t\t \n\t\t\t //CheckNumberPacketsEnoughEndMessageAndSend(topic);\n\t\t\t //buffMap.remove(key);\n\t\t\t //remove from the set\n\t\t\t //ier.remove();\n\t\t\t \t\t \t\t \n\t\t\t }).exceptionally(ex -> {\n\t\t\t log.warn(\"Write error on message\", ex);\n\t\t\t //System.exit(-1);\n\t\t\t return null;\n\t\t\t });\n\t \t\t }\n\t \t\t }\n\t \t\t \n\t \t }", "void send(IMessage message, IChannel channel);", "public abstract <T> SerializationStream writeObject(T t);", "public void sendmsg(Message msg){\n try {\n oos.writeObject(new Datapacket(1, null, msg,null, null));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void send(Board board){\n\t\ttry {\n\t\t\t//\t\t\tSystem.out.println(\"Sende Board \" + board);\n\t\t\tout.reset();\n\t\t\tout.writeObject(board);\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void broadcastVertexId() throws IOException {\r\n\t\tPageRankWritable msg = new PageRankWritable();\r\n\t\tmsg.setSenderId(getVertexID());\r\n\t\tsendMessageToNeighbors(msg);\r\n\t}", "private ChannelFuture write(ClientMessagePacker packer) throws IgniteClientConnectionException {\n var buf = packer.getBuffer();\n\n return sock.send(buf);\n }", "@Override\n\tpublic void directSend(String exchange, String routeKey, Object data) {\n\n\t}", "public TStream<String> publishJavaObjectMultiple() throws Exception {\n \n final Topology t = new Topology();\n List<SimpleInt> ints = new ArrayList<>();\n ints.add(new SimpleInt(0));\n ints.add(new SimpleInt(1));\n ints.add(new SimpleInt(2));\n ints.add(new SimpleInt(3));\n TStream<SimpleInt> sints = t.constants(ints).asType(SimpleInt.class);\n sints = addStartupDelay(sints);\n sints.publish(\"testPublishJavaObjects\");\n \n TStream<String> source = t.strings(\"publishing\", \"a\", \"java object\"); \n source = addStartupDelay(source);\n \n TStream<SimpleString> objects = source.transform(SimpleString::new).asType(SimpleString.class);\n \n objects.publish(\"testPublishJavaObjects\");\n \n TStream<SimpleString> subscribe = t.subscribe(\"testPublishJavaObjects\", SimpleString.class);\n \n TStream<String> strings = StringStreams.toString(subscribe); \n\n return strings;\n }", "private IItem getJSonStreamAsItem() {\n final IItem item = JSonItemReader.parseItem(getInputStream(), api.getItemDefinition());\n\n ValidatorEngine.validate(item, false);\n\n return item;\n }", "private void send() {\n vertx.eventBus().publish(GeneratorConfigVerticle.ADDRESS, toJson());\n }", "@Override\n public void publish(Object event) {\n System.out.println(\"Sending Event\");\n\n List<Hub> hubList = hubFacade.findAll();\n Iterator<Hub> it = hubList.iterator();\n while (it.hasNext()) {\n Hub hub = it.next();\n restEventPublisher.publish(hub, event);\n\n\n //Thread.currentThread().sleep(1000);\n }\n System.out.println(\"Sending Event After\");\n }", "public void publishMessage(final String psMessage) throws IOException {\n fanout.getChannel().basicPublish(fanout.exchangeName, \"\", null, psMessage.getBytes());\n }", "@Override\n public void sendMessage(Message<JsonPayload> message) throws IOException {\n System.out.println(\"Trying to send a message...\");\n outputMessageStream.write(message.getContent().getJson());\n outputMessageStream.newLine();\n outputMessageStream.flush();\n socket.shutdownOutput();\n }", "private void send(Package p) {\n\t\t\tSystem.out.println(\"Send package to \"+name+\": \"+p.getType());\n\t\t\ttry {\n\t\t\t\tout.writeObject(p);\n\t\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t}", "public boolean enqueueDtoMessage(Object Dto) throws Exception;", "public void broadcast(String message){\n Iterator it = subscribedClientsOutputStreams.iterator(); \n while(it.hasNext()){\n try{\n PrintWriter writer = (PrintWriter) it.next();\n writer.println(message);\n writer.flush();\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n }", "public ChannelFuture writeOneOutbound(Object msg, ChannelPromise promise) {\n/* 432 */ if (checkOpen(true)) {\n/* 433 */ return write(msg, promise);\n/* */ }\n/* 435 */ return checkException(promise);\n/* */ }", "@Override\n public void publishBlock(EthBlock.Block block) {\n if (topics.getBlocks() != null) {\n log.debug(\"[KAFKA] sending block {}\", block.getNumber().toString());\n this.kafkaBlockTemplate.send(\n topics.getBlocks(),\n block.getHash(),\n new BlockMessage(block.getNumber(), block.getHash())\n ).addCallback(this::onBlockSuccess, this::onFailure);\n }\n if (topics.getBlocksFull() != null) {\n log.debug(\"[KAFKA] sending block {}\", block.getNumber().toString());\n this.kafkaBlockTemplate.send(\n topics.getBlocksFull(),\n block.getHash(),\n new BlockMessage(block.getNumber(), block.getHash(), block)\n ).addCallback(this::onBlockSuccess, this::onFailure);\n }\n }", "@Override\r\n\tpublic SweetItem addSweetItem(SweetItem SweetItem) {\n\t\treturn null;\r\n\t}", "public <T> void process(Message<T> tMessage) {\n eb.publish(addressBook.getResult(), process(tMessage.body().toString()), addressBook.getDeliveryOptions(tMessage));//.addHeader(\"buffer_size\", buffer.getBuffSize() + \"\"));\n }", "void syncItem() {\n\t\t\n\t\t\n\t\tHashMap<String, String> hm = new HashMap<String, String>();\n\t\thm.put(\"id\", \"2\");\n\t\thm.put(\"name\", \"食品\");\n\t\thm.put(\"test\", \"测试\");\n\t\t\n\t\tList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();\n\t\tlist.add(hm);\n\t\tString xml = getSyncXML(\"item\", list);\n\t\tSystem.out.println(xml);\n\t\tsendXMLToServer4Sync(xml);\n\t}", "void send() {\n if (mInFlight == this) {\n // This was probably queued up and sent during a sync runnable of the last callback.\n // Don't queue it again.\n return;\n }\n if (mInFlight != null) {\n throw new IllegalStateException(\"Sync Transactions must be serialized. In Flight: \"\n + mInFlight.mId + \" - \" + mInFlight.mWCT);\n }\n mInFlight = this;\n if (DEBUG) Slog.d(TAG, \"Sending sync transaction: \" + mWCT);\n if (mLegacyTransition != null) {\n mId = new WindowOrganizer().startLegacyTransition(mLegacyTransition.getType(),\n mLegacyTransition.getAdapter(), this, mWCT);\n } else {\n mId = new WindowOrganizer().applySyncTransaction(mWCT, this);\n }\n if (DEBUG) Slog.d(TAG, \" Sent sync transaction. Got id=\" + mId);\n mMainExecutor.executeDelayed(mOnReplyTimeout, REPLY_TIMEOUT);\n }", "@Override\n\tpublic void messageSent(IoSession arg0, Object arg1) throws Exception {\n\n\t}", "@Override\n\tpublic void messageSent(IoSession arg0, Object arg1) throws Exception {\n\n\t}", "private void sendQueueToWear() {\n new APITask(new APICallback() {\n @Override\n public void r(String result) {\n try {\n JSONArray normalOrderQueue = new JSONObject(result).getJSONArray(\"queue\");\n\n for (int i = 0; i < normalOrderQueue.length(); i++) {\n if (gettingHelp(normalOrderQueue.getJSONObject(i)))\n if (mAdapter.helpedByMe(normalOrderQueue.getJSONObject(i))) {\n JSONObject attendedUser = normalOrderQueue.getJSONObject(i);\n normalOrderQueue = new JSONArray();\n normalOrderQueue.put(attendedUser);\n break;\n } else {\n normalOrderQueue.remove(i);\n i--;\n }\n }\n\n String queue = normalOrderQueue.toString();\n\n PutDataMapRequest putDataMapReq = PutDataMapRequest.create(\"/stayawhile/queue\");\n putDataMapReq.getDataMap().putString(QUEUE_KEY, queue);\n PutDataRequest putDataReq = putDataMapReq.asPutDataRequest();\n putDataReq.setUrgent();\n PendingResult<DataApi.DataItemResult> pendingResult =\n Wearable.DataApi.putDataItem(mGoogleApiClient, putDataReq);\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }).execute(\"method\", \"queue/\" + Uri.encode(mQueueName));\n }", "private void sendKafkaData(String kafkaConnect, String inputTopic){\n Properties props = new Properties();\n props.put(\"metadata.broker.list\", kafkaConnect);\n props.put(\"serializer.class\", \"kafka.serializer.StringEncoder\");\n props.put(\"partitioner.class\", \"kafka.producer.DefaultPartitioner\");\n props.put(\"request.required.acks\", \"1\");\n props.put(\"retry.backoff.ms\", \"1000\");\n ProducerConfig config = new ProducerConfig(props);\n \n Producer<String, String> producer = new Producer<String, String>(config);\n for(int i = 0; i < numMessages; i++) {\n String messageKey = \"key-\" + i;\n String message = Integer.toString(i);\n producer.send(new KeyedMessage<String, String>(inputTopic, messageKey, message));\n if((i + 1) % 500 == 0) {\n System.out.println(\"Send \" + (i + 1) + \" messages\");\n }\n }\n producer.close();\n }", "@Override\n public void sendMessage() {\n Intent intent = new Intent(this, GoToMessage.class);\n intent.putExtras(getIntent().getExtras());\n Bundle args = new Bundle();\n args.putString(\"nickname\", mNickname);\n //args.putSerializable(\"convoitem\", item);\n args.putString(\"topic\", mContact.getTopic());\n args.putInt(\"chatid\", mContact.getChatID());\n intent.putExtras(args);\n startActivity(intent);\n }", "private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }", "void publish(String topicName, Message message) throws IOException;", "protected void sendMessage(Streamable zMessageType, Streamable zMessage) {\n\t\t//Send it..\n\t\ttry {\n\t\t\t//First write the Message type..\n\t\t\tzMessageType.writeDataStream(mOutput);\n\t\t\t\n\t\t\tif(zMessage != null) {\n\t\t\t\t//And now write the message\n\t\t\t\tzMessage.writeDataStream(mOutput);\n\t\t\t}\n\t\t\t\n\t\t\t//Send..\n\t\t\tmOutput.flush();\n\t\t\t\n\t\t}catch(Exception ec) {\n\t\t\t//Show..\n\t\t\tMinimaLogger.log(\"Error sending message : \"+zMessage+\" \"+ec);\n//\t\t\tec.printStackTrace();\n\t\t\t\n\t\t\t//Tell the network Handler\n\t\t\tmNetworkMain.PostMessage(new Message(NetworkHandler.NETWORK_CLIENTERROR).addObject(\"client\", this));\n\t\t}\n\t}", "public void streamToXML(Element node, XMLStreamer streamer) {\n // TODO Auto-generated method stub\n super.streamToXML(node, streamer);\n }", "public void send(SseEventBuilder builder)\n/* */ throws IOException\n/* */ {\n/* 123 */ Set<ResponseBodyEmitter.DataWithMediaType> dataToSend = builder.build();\n/* 124 */ synchronized (this) {\n/* 125 */ for (ResponseBodyEmitter.DataWithMediaType entry : dataToSend) {\n/* 126 */ super.send(entry.getData(), entry.getMediaType());\n/* */ }\n/* */ }\n/* */ }", "@Test\n public void test() throws IOException {\n Pusher pusher = new KafkaKeyValueProducerPusher<byte[], byte[]>(\"127.0.0.1:dummy\", TOPIC,\n Optional.of(ConfigFactory.parseMap(ImmutableMap.of(\n ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, \"127.0.0.1:\" + this.kafkaTestHelper.getKafkaServerPort()))));\n\n String msg1 = \"msg1\";\n String msg2 = \"msg2\";\n\n pusher.pushMessages(Lists.newArrayList(Pair.of(\"key1\", msg1.getBytes()), Pair.of(\"key2\", msg2.getBytes())));\n\n try {\n Thread.sleep(1000);\n } catch(InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n\n ConsumerIterator<byte[], byte[]> iterator = this.kafkaTestHelper.getIteratorForTopic(TOPIC);\n\n assert(iterator.hasNext());\n\n MessageAndMetadata<byte[], byte[]> messageAndMetadata = iterator.next();\n\n Assert.assertEquals(new String(messageAndMetadata.key()), \"key1\");\n Assert.assertEquals(new String(messageAndMetadata.message()), msg1);\n assert(iterator.hasNext());\n\n messageAndMetadata = iterator.next();\n Assert.assertEquals(new String(messageAndMetadata.key()), \"key2\");\n Assert.assertEquals(new String(messageAndMetadata.message()), msg2);\n\n pusher.close();\n }", "public void send(Session userSession, Object messageObject) {\n\t\tif (!userSession.isOpen()) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tString json = objectMapper.writeValueAsString(messageObject);\n\t\t\tuserSession.getRemote().sendString(json);\n\t\t} catch (JsonProcessingException e) {\n\t\t\tlogger.error(\"Unable to serialize message POJO to JSON\", e);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Unable to send message JSON to user session remote endpoint\", e);\n\t\t}\n\t}", "private void send() {\n ModelManager.putFeedBack(getCurrentActivity(),\n GlobalValue.myAccount.getId() + \"\", edtTitle.getText()\n .toString(), edtDes.getText().toString(),type, true,\n new ModelManagerListener() {\n\n @Override\n public void onSuccess(Object object) {\n // TODO Auto-generated method stub\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }\n\n @Override\n public void onError(VolleyError error) {\n // TODO Auto-generated method stub\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }\n });\n }", "@Override\n public void sendData(int i) {\n //Toast.makeText(SubjectPostedListActivity.this,\"Items: \"+i,Toast.LENGTH_LONG).show();\n Gson gson = new Gson();\n\n Intent intent = new Intent(SubjectPostedListActivity.this, UpdatePostSubjectActivity.class);\n\n startActivity(intent);\n\n }", "public void onEncodeSerialData(StreamWriter streamWriter) {\n }", "@Override\n\t\t\tpublic IAMQPPublishAction message(byte[] message) {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\t\t\tpublic IAMQPPublishAction message(byte[] message) {\n\t\t\t\treturn null;\n\t\t\t}", "NodeRef addSendinfo(NodeRef document, Map<QName, Serializable> props, boolean updateSearchableSendInfo);", "@Override\r\n\tpublic void writeObject(Object obj) throws IOException {\n\t\t\r\n\t\tif (obj instanceof HandShake ) {\r\n\t\t\t((HandShake) obj).write(this);\r\n\t\t} else if (obj instanceof Message){\r\n\t\t\t((Message) obj).write(this);\r\n\t\t} else {\r\n\t\t\tthrow new UnsupportedOperationException(\" Message is not supported to write \");\r\n\t\t}\r\n\t}", "public void sendEmployeeEvent(EmployeeEvent employeeEvent) throws JsonProcessingException {\n\n Integer key = employeeEvent.getEmpEventId();\n String value = objectMapper.writeValueAsString(employeeEvent);\n ListenableFuture<SendResult<Integer, String>> listenableFuture = kafkaTemplate.sendDefault(key, value); // sendDefault is of type Listenable future\n listenableFuture.addCallback(new ListenableFutureCallback<SendResult<Integer, String>>() { // Call back is of success and failure types\n @Override\n public void onFailure(Throwable e) {\n handleFailure(key, value, e);\n }\n\n @Override\n public void onSuccess(SendResult<Integer, String> result) { // Published message is successful\n handleSuccess(key, value, result);\n }\n });\n\n }", "private void send(Object o) {\r\n try {\r\n System.out.println(\"02. -> Sending (\" + o +\") to the client.\");\r\n this.os.writeObject(o);\r\n this.os.flush();\r\n } \r\n catch (Exception e) {\r\n System.out.println(\"XX.\" + e.getStackTrace());\r\n }\r\n }", "public static void Producer(String json) {\n\t\tConnection connection = null;\n\t\tConnectionFactory connectionFactory = new ActiveMQConnectionFactory(\"tcp://localhost:61616\");\n\t\ttry {\n\t\t\tconnection = connectionFactory.createConnection();\n\t\t\tSession session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);\n\t\t\tQueue queue = session.createQueue(\"customerMaildetails\");\n\t\t\tMessageProducer producer = session.createProducer(queue);\n\t\t\tString payload = json;\n\t\t\tMessage message = session.createTextMessage(payload);\n\t\t\tSystem.out.println(\"Sending text '\" + payload + \"'\");\n\t\t\tproducer.send(message);\n\t\t\tsession.close();\n\t\t} catch (JMSException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String postObjectID = customAdapter.getItem(position).getObjectId();\n\n // go to viewwatchitem and pass postobjectd with the intent\n Intent intent = new Intent(this, ViewWatchItem.class);\n intent.putExtra(MESSAGE,postObjectID);\n startActivity(intent);\n }", "@Override\n public void send(Envelope envelope) throws IOException {\n sentEnvelopes.add(envelope);\n \n if (onSentCallback != null) {\n Thread t = new Thread(onSentCallback);\n t.start();\n }\n }", "public ChannelFuture writeOneInbound(Object msg) {\n/* 339 */ return writeOneInbound(msg, newPromise());\n/* */ }", "@Override\n public void publishAndUpdate(MessageEntity msg) {\n if (mapper.updateIsPublished(msg.getMessageId(), MessageIsPublished.NO.val, MessageIsPublished.YES.val) == 1) {\n messagingService.send(MessagingParam.builder()\n .payload(msg.getPayload())\n .exchange(msg.getExchange())\n .routingKey(msg.getRoutingKey())\n .deliveryMode(MessageDeliveryMode.NON_PERSISTENT)\n .messagePostProcessor(new HeaderMessagePostProcessor(msg))\n .build());\n }\n }", "private void publish(PubMsg pubMsg, ChannelHandlerContext ctx) {\n //获取topic订阅者id列表\n String topic = pubMsg.getTopic();\n List<ClientSub> clientList = subscriptionService.searchSubscribeClientList(topic);\n\n //遍历发送\n clientList.forEach(clientSub -> {\n final String clientId = clientSub.getClientId();\n\n //计算Qos\n int pubQos = pubMsg.getQoS();\n int subQos = clientSub.getQos();\n MqttQoS qos = subQos >= pubQos ? MqttQoS.valueOf(pubQos) : MqttQoS.valueOf(subQos);\n\n //组装PubMsg\n MqttPublishMessage mpm = MqttMessageBuilders.publish()\n .messageId(nextMessageId(ctx))\n .qos(qos)\n .topicName(topic)\n .retained(pubMsg.isRetain())\n .payload(Unpooled.wrappedBuffer(pubMsg.getPayload()))\n .build();\n if (qos == MqttQoS.EXACTLY_ONCE || qos == MqttQoS.AT_LEAST_ONCE) {\n publishMessageService.save(clientId, pubMsg);\n }\n\n //发送\n Optional.of(clientId)\n .map(ConnectHandler.clientMap::get)\n .map(BrokerHandler.channels::find)\n .ifPresent(channel -> channel.writeAndFlush(mpm));\n });\n }", "private void testSerializedObject() {\n\t\tMessage message = Message.createMessage(getId(), \"Alarms\");\n\t\tTestObject obj = new TestObject();\n\n\t\tmessage.setPayload(obj);\n\n\t\tSystem.out.println(\"Client: [\" + getClientName() + \"] sending test serialized object\");\n\t\tsend(message);\n\t}", "private void send(Object o) {\n\t\ttry {\n\t\t\tSystem.out.println(\"02. -> Sending (\" + o +\") to the client.\");\n\t\t\tthis.os.writeObject(o);\n\t\t\tthis.os.flush();\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"XX.\" + e.getStackTrace());\n\t\t}\n\t}", "public ChannelFuture writeOneOutbound(Object msg) {\n/* 422 */ return writeOneOutbound(msg, newPromise());\n/* */ }", "public void send(Message message) {\r\n channel.writeAndFlush(message);\r\n }", "@Override\r\n\tpublic void publish(String message) {\n\t\tredisTemplate.convertAndSend(channelTopic.getTopic(), message);\r\n\t}", "@Override\r\n\tpublic SweetItem updateSweetItem(SweetItem SweetItem) throws SweetItemNotFoundException {\n\t\treturn null;\r\n\t}", "private void publish() {\n Log.i(TAG, \"Publishing\");\n PublishOptions options = new PublishOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new PublishCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer publishing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mPublishSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.publish(mGoogleApiClient, mPubMessage, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Published successfully.\");\n } else {\n logAndShowSnackbar(\"Could not publish, status = \" + status);\n mPublishSwitch.setChecked(false);\n }\n }\n });\n }", "private void sendMessage(String mPos) {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"adapter action\");\n // You can also include some extra data.\n intent.putExtra(\"song position\", mPos);\n LocalBroadcastManager.getInstance(mContext).sendBroadcast(intent);\n }", "public static void sendSingleMessage(String text, Pollable jmsInstance) {\n String threadNumber = Long.toString(Thread.currentThread().getId());\n jmsInstance.send(text, System.currentTimeMillis(), threadNumber, text.length(), \"Rex-thread\", \"\");\n logger.info(String.format(\">> Message has been sent.\"));\n }", "void sendMessage(int cycleCount, int index, int offset, long time)\n {\n Message msg = handler.obtainMessage(state, index, offset); //pos.offset);\n handler.sendMessage(msg);\n }" ]
[ "0.63246715", "0.52873313", "0.521774", "0.50863427", "0.504039", "0.50047946", "0.48965636", "0.48587024", "0.47280872", "0.47232568", "0.4696392", "0.4694876", "0.46658143", "0.46470842", "0.4630338", "0.4622355", "0.45833707", "0.45733914", "0.45486093", "0.45343947", "0.45296925", "0.4529675", "0.4516455", "0.4503583", "0.4477701", "0.44736472", "0.44545308", "0.4451249", "0.44489357", "0.44457954", "0.444554", "0.44351253", "0.443346", "0.44322982", "0.44296333", "0.44245264", "0.44210476", "0.4415799", "0.4410925", "0.44100925", "0.44099897", "0.43999544", "0.4395801", "0.4384005", "0.43781886", "0.43781844", "0.43737793", "0.4371624", "0.43665472", "0.43591416", "0.43398792", "0.43374324", "0.43338433", "0.43294305", "0.43189192", "0.43049583", "0.4298778", "0.42960665", "0.4295434", "0.42889857", "0.42885995", "0.42852738", "0.42840776", "0.4283812", "0.4283812", "0.42826188", "0.42705816", "0.426112", "0.42591715", "0.42467824", "0.42453623", "0.42443728", "0.42306435", "0.4225858", "0.42077228", "0.42015022", "0.41945526", "0.4193529", "0.41931403", "0.41931403", "0.4189549", "0.41845554", "0.4178324", "0.41765216", "0.41750634", "0.41724944", "0.41719615", "0.41652733", "0.41621694", "0.41621453", "0.41605642", "0.41580614", "0.41551608", "0.41521057", "0.41516456", "0.4150671", "0.41439825", "0.4142464", "0.4135763", "0.41357553" ]
0.7357183
0
/ Sending a single Tweet object through the kafka channel. Please note that this method is using JAXB Marshaller object, that is NOT thread safe. For now this method is "synchronized".
public synchronized void send(Tweet tweet) { // The EventBuilder is used to build an event using the // the raw JSON of a tweet // LOGGER.info(status.getUser().getScreenName() + ": " + // status.getText()); // create object to be send StreamItem si = new StreamItem(); // si.setDataChannelId(dataChannelId); // si.setDataSourceId(dataSourceId); // si.setQueryData(query); si.setTweet(tweet); Writer writer = new StringWriter(); // serialize the java class to XML file try { //JAXBContext jc = JAXBContext.newInstance(StreamItem.class); //Marshaller marshaller = jc.createMarshaller(); // marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); JAXBElement<StreamItem> jaxbElement = new JAXBElement<StreamItem>(new QName("streamItem"), StreamItem.class, si); marshaller.marshallToJSON(jaxbElement, writer); // KeyedMessage<String, String> data = new KeyedMessage<String, // String>(kafkaTopic, DataObjectFactory.getRawJSON(status)); KeyedMessage<String, String> data = new KeyedMessage<String, String>(kafkaTopic, writer.toString()); kafkaProducer.send(data); } catch (JAXBException e) { LOGGER.info("Tweet serialisation error! " + e); LOGGER.log(Level.SEVERE, e.getMessage(), e); e.printStackTrace(); } catch (Exception e) { LOGGER.info("Stream producer: Error while sending tweet! "); LOGGER.log(Level.SEVERE, e.getMessage(), e); e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void send(StreamItem item) {\n\t\t// The EventBuilder is used to build an event using the\n\t\t// the raw JSON of a tweet\n\t\t//LOGGER.info(item.getTweet().getUserScreenName() + \": \" + item.getTweet().getText());\n\n\t\t// create object to be send\n\t\t// StreamItem si = new StreamItem();\n\t\t// si.setDataChannelId(dataChannelId);\n\t\t// si.setDataSourceId(dataSourceId);\n\t\t// si.setQueryData(query);\n\t\t// si.setTweet(TweetUtils.getTweetFromStatus(status));\n\n\t\tWriter writer = new StringWriter();\n\n\t\t// serialize the java class to XML file\n\t\ttry {\n\t\t\t//JAXBContext jc = JAXBContext.newInstance(StreamItem.class);\n\t\t\t//Marshaller marshaller = jc.createMarshaller();\n\t\t\t// marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\t\tJAXBElement<StreamItem> jaxbElement = new JAXBElement<StreamItem>(new QName(\"streamItem\"), StreamItem.class, item);\n\t\t\tmarshaller.marshallToJSON(jaxbElement, writer);\n\t\t\t\n\t\t\t// KeyedMessage<String, String> data = new KeyedMessage<String,\n\t\t\t// String>(kafkaTopic, DataObjectFactory.getRawJSON(status));\n\t\t\tKeyedMessage<String, String> data = new KeyedMessage<String, String>(kafkaTopic, writer.toString());\n\t\t\tkafkaProducer.send(data);\n\t\t\t//LOGGER.info(writer.toString());\n\n\t\t\t\n\t\t} catch (JAXBException e) {\n\t\t\tLOGGER.info(\"Tweet serialisation error! \" + e);\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.info(\"Stream producer: Error while sending tweet! \" + e);\n\t\t\tLOGGER.log(Level.SEVERE, e.getMessage(), e);\t\t\t\n\t\t\te.printStackTrace();\t\n\t\t}\n\n\n\t}", "public void postTweet(int userId, int tweetId) {\n\n }", "@Override\n\tpublic void publishTweet(int id) {\n\t\ttweetDao.publishTweet(id);\n\t\t\n\t\t//Find The Tweet\n\t\tTweet aTweet = tweetDao.findTweetById(id);\n\t\t\n\t\t//publish it to twitter\n\t\t\n\t\tpublishTweetToTwitter(aTweet.getContent());\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\tkafkaProducer.send(record);\n\t\tkafkaProducer.close();\n\t}", "public void postTweet(int userId, int tweetId) {\r\n\t\t\ttwi twitt = new twi(userId, tweetId, timeStamp++);\r\n\t\t\tList<twi> list = tweet.get(userId);\r\n\t\t\tif (list == null) {\r\n\t\t\t\tlist = new ArrayList<twi>();\r\n\t\t\t\tlist.add(twitt);\r\n\t\t\t\ttweet.put(userId, list);\r\n\t\t\t} else {\r\n\t\t\t\tif (list.size() == 10) {\r\n\t\t\t\t\tlist.remove(0);\r\n\t\t\t\t}\r\n\t\t\t\tlist.add(twitt);\r\n\t\t\t}\r\n\t\t\tList<Integer> friend = follower.get(userId);\r\n\t\t\tif (friend == null) {\r\n\t\t\t\tfriend = new LinkedList<Integer>();\r\n\t\t\t\tfriend.add(userId);\r\n\t\t\t\tfollower.put(userId, friend);\r\n\t\t\t}\r\n\t\t}", "public void onTweetClicked(View v) {\n String tweetText = tweetInput.getText().toString();\n RestClient client = TwitterClientApp.getRestClient();\n client.postTweet(tweetText, new JsonHttpResponseHandler() {\n @Override\n public void onSuccess(JSONObject jsonObject) {\n // Parse tweet and finish activity\n Tweet twt = new Tweet(jsonObject);\n twt.save();\n Intent result = new Intent();\n result.putExtra(EXTRA_TWEET, twt);\n setResult(RESULT_OK, result);\n finish();\n }\n\n @Override\n public void onFailure(Throwable throwable, JSONObject jsonObject) {\n super.onFailure(throwable, jsonObject);\n Log.e(\"ComposeTweetActivity\", \"Error occurred\");\n finish();\n }\n\n });\n }", "public void postTweet(int userId, int tweetId) {\n tweetList.add(new Tweet(tweetId, userId));\n }", "public void send(String topic, Object consumerRecord) {\r\n log.info(\"topic name is : \" + topic + \" producerecord is: \" + consumerRecord);\r\n kafkaTemplate.send(topic, consumerRecord);\r\n }", "public void postTweet(int userId, int tweetId) {\n User user = getOrCreateUser(userId);\n Tweet tweet = new Tweet(tweetId);\n user.myTweets.add(tweet);\n }", "public void postTweet(int userId, int tweetId) {\n size++;\n Tweet newTweet = new Tweet(tweetId, size);\n User target = null;\n for (User user : users) {\n if (user.id == userId) {\n target = user;\n break;\n }\n }\n if (target == null) {\n target = new User(userId);\n users.add(target);\n }\n target.tweetList.add(newTweet);\n }", "public void postTweet(int userId, int tweetId) {\n if(!users.containsKey(userId)){\n HashSet<Integer> uId = new HashSet<>(); // if the user Id is not there, how will it post the tweet?\n users.put(userId, uId); // Add the user to the database first\n }\n users.get(userId).add(userId);\n if(!tweets.containsKey(userId)){\n List<Tweet> t_id = new ArrayList<>();\n t_id.add(new Tweet(timestamp++, tweetId)); // Similarly add the same user with the tweet object\n tweets.put(userId, t_id);\n } else {\n tweets.get(userId).add(new Tweet(timestamp++, tweetId)); // User is tweeting more nowadays\n }\n }", "public void run() throws InterruptedException {\n\t\tBlockingQueue<String> msgQueue = new LinkedBlockingQueue<String>(1000);\n\t\t\n\t\t//create twitter client\n\t\tfinal Client client = twitterClient.getTwitterClient(msgQueue, Arrays.asList(\"covid\"));\n\t\tclient.connect();\n\t\t\n\t\t//create kafka producer\n\t\tKafkaProducer<String, String> kafkaProducer = producer.getKafkaProducer();\n\t\t\n\t\t//loop through tweets and send to kafka\n\t\tint tweetsProcessed = 0;\n\t\twhile (!client.isDone()) {\n\t\t String msg = msgQueue.take();\n\t\t if(msg != null) {\n\t\t\t tweetsProcessed += 1;\n\t\t\t String key = ExtractIdFromTweets(msg);\n\t\t\t logger.info(\"key::\"+key);\n\t\t\t if(tweetsProcessed <= tweetsToRead) {\n\t\t\t\t\t\t ProducerRecord<String, String> record = new ProducerRecord<String, String>(topic, key, msg);\n\t\t\t\t\t\t kafkaProducer.send(record, new Callback() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onCompletion(RecordMetadata metadata, Exception exception) {\n\t\t\t\t\t\t\t\tif(exception != null) {\n\t\t\t\t\t\t\t\t\tlogger.error(exception.getMessage());\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t\t logger.info(msg);\n\t\t\t\t\t}\n\t\t else {\n\t\t\t \n\t\t\t logger.info(\"Stopping application after {} tweets\",tweetsProcessed);\t\n\t\t\t client.stop();\n\t\t\t \n\t\t\t kafkaProducer.flush();\n\t\t\t\tkafkaProducer.close();\n\t\t\t \n\t\t }\n\t\t }\t \n\t\t}\n\t \n\t}", "public void postTweet(int userId, int tweetId) {\n Tweet tweet = new Tweet(tweetId, System.nanoTime());\n putSelfTweet(userId, tweet);\n if (userId2Followers.containsKey(userId)) {\n Set<Integer> followers = userId2Followers.get(userId);\n for (Integer followerId : followers) {\n putFollowerTweet(followerId, tweet);\n }\n }\n }", "public void onTweetSuccess(Tweet tweet);", "public void postTweet(int userId, int tweetId) {\n Tweet newTweet = new Tweet(tweetId, timestamp++);\n\n if (!usersMap.containsKey(userId)) usersMap.put(userId, new User(userId));\n usersMap.get(userId).post(newTweet);\n }", "public void postTweet(int userId, int tweetId) {\n u_map.putIfAbsent(userId, new User(userId));\n u_map.get(userId).post(new Tweet(tweetId, counter++));\n }", "@Override\n\tpublic void tweet(String message) throws Exception {\n\t\t\n\t}", "void makeTweet(OnTweetPostListener onTweetPostListener);", "public void publish(String tweetText, String locationString, String trafficLevel) {\n\n Date date = new Date();\n String time = new Timestamp(date.getTime()).toString();\n\n try {\n HttpPost method = new HttpPost(httpEndPoint);\n\n if (httpClient != null) {\n String[] xmlElements = new String[]\n {\n \"<events>\" +\n \"<event>\" +\n \"<metaData>\" +\n \"<Timestamp>\" + time + \"</Timestamp>\" +\n \"</metaData>\" +\n\n \"<payloadData>\" +\n\n \"<Traffic_Location>\" + locationString + \"</Traffic_Location>\" +\n \"<Traffic_Level>\" + trafficLevel + \"</Traffic_Level>\" +\n \"<Twitter_Text>\" + tweetText + \"</Twitter_Text>\" +\n\n \"</payloadData>\" +\n\n \"</event>\" +\n \"</events>\"\n };\n\n try {\n for (String xmlElement : xmlElements) {\n StringEntity entity = new StringEntity(xmlElement);\n method.setEntity(entity);\n if (httpEndPoint.startsWith(\"https\")) {\n processAuthentication(method, username, password);\n }\n httpClient.execute(method).getEntity().getContent().close();\n logger.info(\"Event Published Successfully to \" + httpEndPoint + \"\\n\");\n }\n } catch (Exception e) {\n logger.error(\"Error While Sending Events to HTTP Endpoint : Connection Refused\");\n }\n\n Thread.sleep(500); // We need to wait some time for the message to be sent\n\n }\n } catch (Throwable t) {\n logger.error(\"Unable to Connect to HTTP endpoint\");\n }\n }", "public Tweet(String message){\n this.message = message;\n this.Unique = UUID.randomUUID();\n }", "public static boolean sendTweet(String tweet) {\n \t\tif (!isEnabled) {\n \t\t\tlogger.debug(\"Twitter client is disabled > execution aborted!\");\n \t\t\treturn false;\n \t\t}\n \n \t\ttry {\n \t\t\tStatus status = client.updateStatus(tweet);\n\t\t\tlogger.debug(\"Successfully sent Tweet '{}'\", status.getText());\n \t\t\treturn true;\n \t\t} catch (TwitterException e) {\n \t\t\tlogger.error(\"Failed to send Tweet '\" + tweet + \"' because of: \" + e.getLocalizedMessage());\n \t\t\treturn false;\n \t\t}\n \t}", "public void postTweet(int userId, int tweetId) {\n\t\tif (!tweets.containsKey(userId)) {\n\t\t\t//build one's tweet list\n\t\t\ttweets.put(userId, new LinkedList<>());\n\t\t\t//follow himself\n\t\t\tfollow(userId, userId);\n\t\t}\n\t\t//add new tweet on the first place\n\t\ttweets.get(userId).add(0, new Tweet(tweetId, timeStamp++));\n\t}", "public void postTweet(final int userId, final int tweetId) {\n List<int[]> userTweets = tweets.computeIfAbsent(userId, x -> new ArrayList<>());\n userTweets.add(new int[]{userId, tweetId, userTweets.size(), serial++});\n }", "public void postTweet(int userId, int tweetId) {\n tweets.put(tweetId, idx++);\n LinkedList<Integer> tweets = userToTwitter.computeIfAbsent(userId, e -> new LinkedList<>());\n tweets.addLast(tweetId);\n while (tweets.size() > 10) {\n tweets.removeFirst();\n }\n }", "public Tweet(String message){\n this.message = message;\n this.date = new Date();\n }", "public void postTweet(int userId, int tweetId) {\n if (!followMap.containsKey(userId)) followMap.put(userId, new HashSet<Integer>());\n followMap.get(userId).add(userId);\n if (!tweetMap.containsKey(userId)) tweetMap.put(userId, new LinkedList<Tweet>());\n tweetMap.get(userId).addFirst(new Tweet(count++, tweetId)); // tweets sorted\n }", "public void writeTweet(String tweet)\r\n\t{\n\t\ttweets.add(tweet);//adds the tweet to the tweets list\r\n\t\tnotifyObservers(tweet);//notifies observers of the tweet\r\n\t\tupdateTweet(tweet);//updates the tweet\r\n\t}", "public void postTweet(int userId, int tweetId) {\n if (!map.containsKey(userId)) {\n map.put(userId, new User(userId));\n }\n map.get(userId).post(tweetId);\n }", "public void postTweet(int userId, int tweetId) {\n tweetMap.putIfAbsent(userId, new ArrayList<>());\n tweetMap.get(userId).add(new int[]{time++, tweetId});\n }", "@Override\n public void onSuccess(JSONObject jsonObject) {\n Tweet twt = new Tweet(jsonObject);\n twt.save();\n Intent result = new Intent();\n result.putExtra(EXTRA_TWEET, twt);\n setResult(RESULT_OK, result);\n finish();\n }", "public void postTweet(int userId, int tweetId) {\n\t\t\tif (!userMap.containsKey(userId)) {\n\t\t\t\tuserMap.put(userId, new User(userId));\n\t\t\t}\n\t\t\tuserMap.get(userId).post(tweetId,timeStamp++);\n\t\t}", "private void send() {\n ModelManager.putFeedBack(getCurrentActivity(),\n GlobalValue.myAccount.getId() + \"\", edtTitle.getText()\n .toString(), edtDes.getText().toString(),type, true,\n new ModelManagerListener() {\n\n @Override\n public void onSuccess(Object object) {\n // TODO Auto-generated method stub\n edtDes.setText(\"\");\n edtTitle.setText(\"\");\n MainUserActivity activity = (MainUserActivity) getCurrentActivity();\n activity.backFragment(new AccountFragment());\n }\n\n @Override\n public void onError(VolleyError error) {\n // TODO Auto-generated method stub\n Toast.makeText(self, ErrorNetworkHandler.processError(error), Toast.LENGTH_LONG).show();\n }\n });\n }", "public void postTweet(int userId, int tweetId) {\n\t\t\tif (!userTweets.containsKey(userId))\n\t\t\t\tuserTweets.put(userId, new ArrayList<>());\n\t\t\tuserTweets.get(userId).add(tweetId);\n\t\t\ttweetOwner.put(tweetId, userId);\n\t\t\ttweets.add(tweetId);\n\t\t}", "@Test\n\tpublic void test01_sendStringMessageToKafkaTopic() throws Exception {\n\t\tsender.send(UUID.randomUUID().toString(), \"Hello World!\"); // without callback\n\t\tsender.sendWithCallback(UUID.randomUUID().toString(), \"Hello World, plz callback!\"); // with callback\n\t}", "public void composeTweet(Tweet tweet, AsyncHttpResponseHandler handler) {\n String apiUrl = getApiUrl(\"statuses/update.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"status\", tweet.getBody());\n params.put(\"in_reply_to_status_id\", tweet.getInReplyToStatusId());\n\n // Execute the request\n getClient().post(apiUrl, params, handler);\n }", "public void post(Tweet newTweet) {\n newTweet.next = tweetHead;\n tweetHead = newTweet;\n }", "public boolean postKweet(String message, String username) {\n return kweetDAO.postKweet(message, username);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\t\t\tObjectNode objectNode = mapper.createObjectNode();\n\t\t\t\t\tobjectNode.put(\"type\", \"PING\");\n\n\t\t\t\t\twebSocket.sendText(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(objectNode));\n\n\t\t\t\t\tlog.debug(\"Send Ping to Twitch PubSub. (Keep-Connection-Alive)\");\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tlog.error(\"Failed to Ping Twitch PubSub. ({})\", ex.getMessage());\n\t\t\t\t\treconnect();\n\t\t\t\t}\n\n\t\t\t}", "@Bean\n\tpublic IntegrationFlow sendTargetedTweetToRabbitMQ() {\t\t\n\t\treturn IntegrationFlows.from(requestChooserOutputChannel())\n\t\t\t\t//.transform(Transformers.toJson())\n\t\t\t\t//.transform(highlight())\t\t// Debug Purposes\n\t\t\t\t.handle(Amqp.outboundAdapter(rabbitTemplate)\n\t\t\t\t\t\t.exchangeName(CHOOSER_OUTPUT_FANOUT_EXCHANGE)).get();\n\t}", "@GetMapping(\"/publishJson\")\n\tpublic String publishMessage() {\n\t\n\t\tfinal String uri = \"http://localhost:8080/getBooks\";\n\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\tResponseEntity<Object> responseEntity = restTemplate.getForEntity(uri, Object.class);\n \n\t\t// We have changed the Kafka publisher config to handle serialization\n\t\t// TODO: handle deserialising both string and Json together\n\t\t\n\t\tkafkaTemplate.send(topic, responseEntity.getBody() );\n\t\treturn \"Json Data published\";\n\t}", "public static TwitterStream retweet(TwitterStreamConfiguration tws, TwitterStreamHandler handler)\n throws IOException, OAuthException {\n \n //build get params\n HttpParams getParams = new BasicHttpParams();\n if (tws.isDelimited()) getParams.setParameter(\"delimited\", tws.getDelimited());\n //send request\n HttpRequestBase conn = buildConnection(RETWEET_URL, getParams, tws);\n return new TwitterStream(conn, handler);\n }", "public void postTweet(int userId, int tweetId) {\n List<Integer> userTweetList = twitterTweetMap.getOrDefault(userId, new LinkedList<>());\n userTweetList.add(0,tweetId);\n twitterTweetMap.put(userId, userTweetList);\n for(int followerId : reverseTwitterFollowMap.getOrDefault(userId, new HashSet<>())){\n List<Integer> followeeTweetList = twitterTweetMap.getOrDefault(followerId, new LinkedList<>());\n followeeTweetList.add(0,tweetId);\n twitterTweetMap.put(followerId, followeeTweetList);\n }\n }", "@Override\n\tpublic TopicMetadataResponse send(TopicMetadataRequest topicMeta) throws Exception {\n\t\treturn null;\n\t}", "@Override\n public void update(String tweet, Long tweetTime) {\n\tuserFeed.add(tweet);\n\tlastUpdateTime = tweetTime;\n }", "public synchronized void sendMessage(KafkaMessage msg, String[] topic) {\r\n if (producer != null) {\r\n // Encode message\r\n JsonEncoder json = new JsonEncoder();\r\n\r\n\r\n //producer.beginTransaction(); //begin transactions\r\n try {\r\n for (int index = 0; index < topic.length; index++) {\r\n String encodedMsg = json.encode(msg);\r\n ProducerRecord<Long, String> record = new ProducerRecord<>(topic[index],\r\n encodedMsg);\r\n\r\n producer.send(record).get(); // (A??)-Synchronouse send.\r\n this.requests.mark();\r\n }\r\n //producer.commitTransaction();\r\n } catch (KafkaException e) {\r\n e.printStackTrace();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n } catch (ExecutionException e) {\r\n e.printStackTrace();\r\n }\r\n } else {\r\n System.out.println(\"ProducerContainer is not initialized for producer \" + this.ID);\r\n }\r\n }", "@RequestMapping(\"/comment/createtweet\")\n @CrossOrigin\n int createtweet(@RequestParam int uid, @RequestParam String tweettext);", "public static Tweet fromJSON(JSONObject jsonObject) throws JSONException{\n Tweet tweet = new Tweet();\n\n //extract the values from JSON\n tweet.body = jsonObject.getString(\"text\");\n tweet.uid = jsonObject.getLong(\"id\");\n tweet.createdAt = jsonObject.getString(\"created_at\");\n tweet.user = User.fromJSON(jsonObject.getJSONObject(\"user\"));\n tweet.tweetId = Long.parseLong(jsonObject.getString(\"id_str\"));\n //tweet.extendedEntities = ExtendedEntities.fromJSON\n return tweet;\n\n }", "private void sendKafkaData(String kafkaConnect, String inputTopic){\n Properties props = new Properties();\n props.put(\"metadata.broker.list\", kafkaConnect);\n props.put(\"serializer.class\", \"kafka.serializer.StringEncoder\");\n props.put(\"partitioner.class\", \"kafka.producer.DefaultPartitioner\");\n props.put(\"request.required.acks\", \"1\");\n props.put(\"retry.backoff.ms\", \"1000\");\n ProducerConfig config = new ProducerConfig(props);\n \n Producer<String, String> producer = new Producer<String, String>(config);\n for(int i = 0; i < numMessages; i++) {\n String messageKey = \"key-\" + i;\n String message = Integer.toString(i);\n producer.send(new KeyedMessage<String, String>(inputTopic, messageKey, message));\n if((i + 1) % 500 == 0) {\n System.out.println(\"Send \" + (i + 1) + \" messages\");\n }\n }\n producer.close();\n }", "public void getTweets() {\r\n\t\t\r\n\t\tConfigurationBuilder cb = new ConfigurationBuilder();\r\n\t\tcb.setDebugEnabled(true);\r\n\t\t\r\n\t\t//provide your own keys\r\n\t cb.setOAuthConsumerKey(\"ConsumerKey\");\r\n\t cb.setOAuthConsumerSecret(\"ConsumerSecret\");\r\n\t cb.setOAuthAccessToken(\"AccessToken\");\r\n\t cb.setOAuthAccessTokenSecret(\"TokenSecret\");\r\n\r\n TwitterStream twitterStream = new TwitterStreamFactory(cb.build()).getInstance(); \r\n \r\n //Check for live status updates\r\n StatusListener listener = new StatusListener() {\r\n\r\n @Override\r\n public void onException(Exception arg0) {\r\n \tSystem.out.println(\"Exception!! Data Not Inserted Into Database\");\r\n }\r\n\r\n @Override\r\n public void onDeletionNotice(StatusDeletionNotice arg0) {\r\n \tSystem.out.println(\"Got a status deletion notice id:\" + arg0.getStatusId());\r\n }\r\n \r\n @Override\r\n public void onScrubGeo(long userId, long upToStatusId) {\r\n System.out.println(\"Got scrub_geo event userId:\" + userId + \" upToStatusId:\" + upToStatusId);\r\n }\r\n \r\n @Override\r\n public void onStatus(Status status) {\r\n \t\r\n \t User user = status.getUser();\r\n \t \r\n String username = status.getUser().getScreenName();\r\n String profileLocation = user.getLocation();\r\n long tweetId = status.getId(); \r\n String content = status.getText();\r\n \r\n \r\n //Create a model for the live data\r\n TweetModel memoryData = new TweetModel(username, profileLocation, tweetId, content);\r\n \r\n //store to MongoDB if data is correct\r\n System.out.println(++counter + \") username: \" + username + \" location: \" + profileLocation + \" tweetId \" + tweetId + \" Text: \" + content );\r\n data.save(memoryData);\r\n }\r\n \r\n\t\t\t@Override\r\n public void onTrackLimitationNotice(int arg0) {\r\n\t System.out.println(\"Got track limitation notice:\" + arg0);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onStallWarning(StallWarning warning) {}\r\n };\r\n \r\n //Filter the live tweet results\r\n FilterQuery filterQuery = new FilterQuery();\r\n //Search for tweets with specific keywords\r\n String keywords[] = {\"Java\", \"Python\", \"PHP\"};\r\n //Restrict the language to English\r\n String[] lang = {\"en\"}; \r\n //Add the Filters\r\n filterQuery.language(lang);\r\n filterQuery.track(keywords);\r\n //Listen for Live Tweets\r\n twitterStream.addListener(listener);\r\n twitterStream.filter(filterQuery);\r\n\t}", "public void tweet() {\n ReusableActionsPageObjects.clickOnElement(driver, tweet, logger, \"tweet.\");\n }", "public static void sendToKafka(FlightState fs) {\n\t\ttry {\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 4));\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 5));\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 6));\n\t\t\tproducer.send(FlightState.kafkaAvroRecord(fs, 7));\n\t\t} catch(SerializationException e) {\n\t\t\tSystem.out.println(\"Serialization Exception: \"+e);\n\t\t} catch(IllegalArgumentException e) {\n\t\t\t// Incomplete flight state is skipped without notification\n\t\t}\n\t}", "public static Tweet fromJsonObject(JSONObject jsonObject) {\n\t\tTweet tweet = new Tweet();\n\t\ttry {\n\t\t\ttweet.text = jsonObject.getString(\"text\");\n\t\t\ttweet.uid = jsonObject.getLong(\"id\");\n\t\t\ttweet.timeStamp = jsonObject.getString(\"created_at\");\n\t\t\ttweet.reTweetCount = jsonObject.getInt(\"retweet_count\");\n\t\t\ttweet.user = User.fromJsonObject(jsonObject.getJSONObject(\"user\"));\n\t\t\ttweet.id = jsonObject.getLong(\"id\");\n\t\t} catch(JSONException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn tweet;\n\t}", "public static Tweet fromJSON(JSONObject jsonObject) throws JSONException {\n Tweet tweet = new Tweet();\n //extract values from JSON\n tweet.body = jsonObject.getString(\"text\");\n tweet.uid = jsonObject.getLong(\"id\");\n tweet.createdAt = jsonObject.getString(\"created_at\");\n tweet.user = User.fromJSON(jsonObject.getJSONObject(\"user\"));\n tweet.retweet_count = jsonObject.getInt(\"retweet_count\");\n tweet.retweeted = jsonObject.getBoolean(\"retweeted\");\n tweet.favorite_count = jsonObject.getInt(\"favorite_count\");\n tweet.favorited = jsonObject.getBoolean(\"favorited\");\n tweet.id = jsonObject.getInt(\"id_str\");\n return tweet;\n\n }", "public synchronized void enqueue(TemperatureMessage t) throws RemoteException {\n //logger.log(Level.INFO, owner.ID() + \"Enqueueing \" + t.getPayload());\n\n this.temperatureQueue.add(t);\n }", "public Tweet(){\n super();\n }", "public Tweet getTweet() {\n\t\ttweetsIndex++;\n\t\treturn tweets.get(tweetsIndex);\n\t}", "@Override\r\n\tpublic void run() {\n\t\tsum=new Topic().count();\r\n\t\tString tname;\r\n\t\t\r\n\t\tWebSocketController wbs=new WebSocketController();\r\n\t\t while(stopMe){\r\n\t List<Topic> list=new Topic().list();\r\n\t if (list!=null && currentIndex<list.size()) {\r\n\t \tfor(int i=0;i<list.size();i++){\r\n\t\t \ttname=list.get(i).getTname();\r\n\t\t \ttid=list.get(i).getTid();\r\n\t\t \tSystem.out.println(tname+\"============================tname/n\"+tid+\r\n\t\t \t\"==================================tid\");\r\n\t\t }\r\n\t \t//创建json格式数据\r\n\t Map map=new HashMap<>();\r\n\t map.put(\"list\", list);\r\n\t JSONObject json = JSONObject.fromObject(map);\r\n\t String jsons=json.toString();\r\n\t System.out.println(json+\"=======================json\");\r\n\t System.out.println(jsons+\"=======================jsons\");\r\n\t \ttry {\r\n\t \t\t session.getBasicRemote().sendText(jsons);\r\n\t \t\t/*session.getBasicRemote().sendObject(list.get(i));*/\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t currentIndex = list.size();\r\n\t }\r\n\t try {\r\n\t Thread.sleep(1000);\r\n\t } catch (InterruptedException e) {\r\n\t // TODO Auto-generated catch block\r\n\t e.printStackTrace();\r\n\t }\r\n\t\t }\r\n\t}", "public void send(String providedTopic,V msg,K providedKey);", "public void setFavorite(Tweet tweet, AsyncHttpResponseHandler handler) {\n String apiUrl = getApiUrl(\"favorites/create.json\");\n RequestParams params = new RequestParams();\n\n params.put(\"id\", String.valueOf(tweet.getTid()));\n\n // Execute the request\n getClient().post(apiUrl, params, handler);\n }", "public static boolean sendDirectMessage(String recipientId, String messageTxt) {\n \t\tif (!isEnabled) {\n \t\t\tlogger.debug(\"Twitter client is disabled > execution aborted!\");\n \t\t\treturn false;\n \t\t}\n \n \t\ttry {\n \t\t DirectMessage message = client.sendDirectMessage(recipientId, messageTxt);\n \t\t\tlogger.debug(\"Successfully sent direct message '{}' to @\", message.getText(), message.getRecipientScreenName());\n \t\t\treturn true;\n \t\t} catch (TwitterException e) {\n \t\t\tlogger.error(\"Failed to send Tweet '\" + messageTxt + \"' because of: \" + e.getLocalizedMessage());\n \t\t\treturn false;\n \t\t}\n \t}", "public void tweetButton() {\n ReusableActionsPageObjects.clickOnElement(driver, tweetButton, logger, \"tweet.\");\n }", "public Tweet(String message, Date date){\n this.message = message;\n this.date = date;\n\n }", "@Override\r\n\tpublic void sendTradeOffer(TradeOffer offer) {\n\t\t\r\n\t}", "public static void publishInstance(bjDealerDataWriter typedWriter, bjDealer pubInstance)\n\t{\n\t\tpubInstance.seqno = DealerMain.seqno;\n\t\ttypedWriter.register_instance(pubInstance); // pass assignments into publisher\n\t\tTimer.wait(100);\n\t\tint status = typedWriter.write(pubInstance, HANDLE_NIL.value); // send the message instance\n\t\tErrorHandler.checkStatus(status, \"bjDealerDataWriter.write\"); // make sure it got sent?\n\t\t//System.out.println(\" status value: \" + status);\n\t\tDealerMain.seqno++;\n\t}", "public TweeterAdapter (List<Tweet> tweets){\n mTweets=tweets;\n }", "@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }", "public void send(String providedTopic,V msg);", "public void sendEmployeeEventUsingProducerRecord(EmployeeEvent employeeEvent) throws JsonProcessingException {\n\n Integer key = employeeEvent.getEmpEventId();\n String value = objectMapper.writeValueAsString(employeeEvent);\n\n\n ProducerRecord<Integer, String> producerRecord = createProducerRecord(key, value, kafkaTopic);\n// ListenableFuture<SendResult<Integer, String>> listenableFuture = kafkaTemplate.send(kafkaTopic, key, value); // sendDefault is of type Listenable future\n ListenableFuture<SendResult<Integer, String>> listenableFuture = kafkaTemplate.send(producerRecord); // changed overloaded method of send\n\n listenableFuture.addCallback(new ListenableFutureCallback<SendResult<Integer, String>>() { // Call back is of success and failure types\n @Override\n public void onFailure(Throwable e) {\n handleFailure(key, value, e);\n }\n\n @Override\n public void onSuccess(SendResult<Integer, String> result) { // Published message is successful\n handleSuccess(key, value, result);\n }\n });\n\n }", "public void onMessage(Message message)\n {\n \tObjectMessage om = (ObjectMessage) message;\n\t\tTypeMessage mess;\n\t\ttry {\n\t\t\tmess = (TypeMessage) om.getObject();\n\t\t\tint id = om.getIntProperty(\"ID\");\n\t\t\tview.updatelistTweetFeed(mess, id);\n\t\t\tSystem.out.println(\"received: \" + mess.toString());\n\t\t} catch (JMSException 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\t\n }", "Status retweetStatus(long statusId) throws TwitterException;", "@Override\n\t\t\t\t\tpublic void sendMessage(String message) {\n\t\t\t\t\t\tString toSend = \"<append><topic>\" + xmlData.get(\"topic\") +\"</topic><user>\" + username + \"</user><msg>\" + message + \"</msg></append>\";\n\t\t\t\t\t\tsendData(toSend);\n\t\t\t\t\t}", "@Override\n public void publish(String data, String topicName,String topicType) {\n Map<Integer, List<KafkaTopic>> kafkaTopicsByPartitionMap = getPerPartitionKafkaTopicList(0, 1,\"0\");\n for (Map.Entry<Integer, List<KafkaTopic>> entry : kafkaTopicsByPartitionMap.entrySet()) {\n List<KafkaTopic> kafkaTopicList= entry.getValue();\n for (KafkaTopic kafkaTopic : kafkaTopicList){\n if(kafkaTopic.getTopicName().equalsIgnoreCase(topicName)){\n new KafkaProducerClient(data, topicName,topicType, kafkaTopic.getPartitionId()).publishToKafkaTopic();\n return;\n }\n }\n }\n }", "public void sendEmployeeEvent(EmployeeEvent employeeEvent) throws JsonProcessingException {\n\n Integer key = employeeEvent.getEmpEventId();\n String value = objectMapper.writeValueAsString(employeeEvent);\n ListenableFuture<SendResult<Integer, String>> listenableFuture = kafkaTemplate.sendDefault(key, value); // sendDefault is of type Listenable future\n listenableFuture.addCallback(new ListenableFutureCallback<SendResult<Integer, String>>() { // Call back is of success and failure types\n @Override\n public void onFailure(Throwable e) {\n handleFailure(key, value, e);\n }\n\n @Override\n public void onSuccess(SendResult<Integer, String> result) { // Published message is successful\n handleSuccess(key, value, result);\n }\n });\n\n }", "private void makeTweet(String text) {\n\t\tassertNotNull(activity.findViewById(ca.ualberta.cs.lonelytwitter.R.id.save));\n\t\ttextInput.setText(text);\n\t\t((Button) activity.findViewById(ca.ualberta.cs.lonelytwitter.R.id.save)).performClick();\n\t}", "public void setTweetMessage( String _strTweetMessage )\n {\n this._strTweetMessage = _strTweetMessage;\n }", "@GET\n @Path(\"/addwl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long addBeerToWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.addBeerToUser(user, beer);\n \n System.out.println(\"beer added to wishlist...\");\n \n \treturn beerId;\n \t \t\n }", "@Override\n\tpublic void run() {\n\t\tthis.logger.debug(\"activity created sent: \" + body);\n\n\t\tSender sender = new Sender(this.apiKey);\n//\t\tNotification value = new Notification.Builder(\"TiTlE\").body(\"BoDy\").build();\n//\t\tMessage message = new Message.Builder().notification(value)\n//\t\t\t\t.addData(\"message\", body)\n//\t\t\t\t.addData(\"title\", title)\n//\t\t\t\t.build();\n\t\tMessage message = new Message.Builder()\n\t\t\t\t.addData(\"message\", body)\n\t\t\t\t.addData(\"title\", title)\n\t\t\t\t.addData(\"activity_id\", this.activityId)\n\t\t\t\t.build();\n\n\t\ttry {\n\t\t\tResult result = sender.send(message, this.registrationId, 1);\n\t\t\t//System.out.println(\"gcm result success:\" + result.getSuccess() + \" failure:\"+ result.getFailure() + \" fail msg: \" + result.getErrorCodeName());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//System.out.println(\"activity creation notification sent\");\n\n\t}", "public void sendOrder(OrderInfo order) {\n KafkaJsontemplate.send(TOPIC_NAME,order);\n //send to control panel topic for making changes\n KafkaJsontemplate.send(TOPIC_NAME_CHANGE,order);\n\n\n String uri = \"http://localhost:8080/order/send/\";\n\n HttpHeaders headers = new HttpHeaders();\n headers.setContentType(MediaType.APPLICATION_JSON);\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n\n HttpEntity<OrderInfo> request = new HttpEntity<>(order, headers);\n ResponseEntity<OrderInfo> response = restTemplate.postForEntity(uri, request, OrderInfo.class);\n\n if (response.getStatusCode() == HttpStatus.CREATED) {\n log.debug(\"Запрос создан:{}\", response.getBody());\n } else {\n log.debug(\"Request Failed: {}\", response.getStatusCode());\n }\n }", "public void update(final String tweet) throws IOException {\n\t\ttry {\n\t\t\tif( _twitter.updateStatus(tweet) == null ) {\n\t\t\t\tthrow new IOException(\"Could not post tweet\");\n\t\t\t}\n\t\t}\n\t\tcatch( TwitterException e) {\n\t\t\tthrow new IOException(e.toString());\n\t\t}\n\t}", "public void send(Order brokerMsg) {\n// System.out.println(\"Sending a transaction from. price\" + brokerMsg.getPrice() + \" buy : \" + brokerMsg.isBuy());\n\n\n MessageCreator messageCreator = new MessageCreator() {\n @Override\n public Message createMessage(Session session) throws JMSException {\n\n\n Message msg = session.createTextMessage(brokerMsg.toString());\n msg.setJMSCorrelationID(brokerMsg.getStratId().toString());\n// System.out.println(msg);\n return msg;\n }\n };\n orderService.writeOrder(brokerMsg);\n jmsTemplate.send(\"OrderBroker\", messageCreator);\n }", "@Override\n\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"topic 消息类型开始产生消息 \" + \"生产者: \" + Thread.currentThread().getName());\n\t\t\t\ttry {\n\t\t\t\t\t\t/**第一步 创建连接工厂*/\n\t\t\t\t\t\tfactory = new ActiveMQConnectionFactory(MqConfigConstants.USERNAME, MqConfigConstants.PASSWORD, MqConfigConstants.BROKEURL_ALI);\n\t\t\t\t\t\t/**第二步 创建JMS 连接*/\n\t\t\t\t\t\tConnection connection = factory.createConnection();\n\t\t\t\t\t\tconnection.start();\n\t\t\t\t\t\t/** 第三步 创建Session,开启事务 */\n\t\t\t\t\t\tSession session = connection.createSession(true, Session.AUTO_ACKNOWLEDGE);\n\t\t\t\t\t\t/** 第四步: 创建topic,Topic是 Destination接口的子接口*/\n\t\t\t\t\t\tTopic topic = session.createTopic(MqConfigConstants.TopicName);\n\t\t\t\t\t\t/** 第五步 创建生产者producer */\n\t\t\t\t\t\tMessageProducer producer = session.createProducer(topic);\n\n\t\t\t\t\t\t/** 设置消息不需要持久化 */\n\t\t\t\t\t\tproducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);\n\t\t\t\t\t\t//发送文本消息\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t/** 第六步 发送消息 */\n\t\t\t\t\t\t\t\tMessage message = createMessage(session,\"vincent\",27,\"江西省赣州市\");\n\t\t\t\t\t\t\t\tproducer.send(message);\n\t\t\t\t\t\t\t\tsession.commit();//开启事务必须需要提交,消费者才能获取到\n\t\t\t\t\t\t\t\tSystem.out.println(\"发送消息: \" +message.toString() );\n\t\t\t\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\t\t}\n\t\t\t\t} catch (JMSException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t}", "public void sendMessage()throws Exception{\r\n\r\n\t\ttry{\r\n\r\n\t\t\tintiSettings();\r\n\r\n\t\t\tproducer = new KafkaProducer(prop);\r\n\r\n\t\t\tSystem.out.println(\"Message to be sent from Producer:\");\r\n\t\t\tfor(int i=0;i<messageList.size();i++){\r\n\t\t\t\tSystem.out.println(messageList.get(i));\r\n\t\t\t\tproducer.send(new ProducerRecord(topicName, messageList.get(i)));\r\n\t\t\t}\r\n\t\t}catch(ProducerFencedException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(OutOfOrderSequenceException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(AuthorizationException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}catch(KafkaException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tproducer.abortTransaction();\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t}finally{\r\n\t\t\tproducer.close();\r\n\t\t}\r\n\t}", "private void sendMyMessage(JSONObject jsonMsg) {\n String link = \"http://\"+ip+\":8065/api/v1/channels/\"+channel_id+\"/create\";\n String response;\n try{\n ConnectAPIs messageAPI = new ConnectAPIs(link,token);\n messageAPI.sendComment(jsonMsg,this,this);\n }catch(Exception e){\n System.out.println(\"Sending error: \" + e.toString());\n }\n }", "public void produce(String topicName, String payload) throws Exception {\n\t\tProperties props = new Properties();\n\n\t\t// Assign localhost id\n\t\tprops.put(\"bootstrap.servers\", Consts.HOST_AND_PORT);\n\n\t\t// Set acknowledgements for producer requests.\n\t\tprops.put(\"acks\", \"all\");\n\n\t\t// If the request fails, the producer can automatically retry,\n\t\tprops.put(\"retries\", 0);\n\n//\t\t// Specify buffer size in config\n//\t\tprops.put(\"batch.size\", 16384);\n//\n//\t\t// Reduce the no of requests less than 0\n//\t\tprops.put(\"linger.ms\", 1);\n//\n//\t\t// The buffer.memory controls the total amount of memory available to the\n//\t\t// producer for buffering.\n//\t\tprops.put(\"buffer.memory\", 33554432);\n//\n//\t\tprops.put(\"key.serializer\", \"org.apache.kafka.common.serializa-tion.StringSerializer\");\n//\n//\t\tprops.put(\"value.serializer\", \"org.apache.kafka.common.serializa-tion.StringSerializer\");\n\n\t\ttry(Producer<String, String> producer = new KafkaProducer<String, String>(props)){\n\t\t\t\n\t\t\tProducerRecord<String, String> producerRecord = new ProducerRecord<String, String>(topicName, payload);\n\n\t\t\tproducer.send( producerRecord );\n\n\t\t\tlog(\"Mensagen enviada:\" + payload);\n\n\t\t} catch (Exception ex) {\n\n\t\t\tex.printStackTrace();\n\t\t\tlog(ex);\n\n\t\t}\n\n\t}", "public void tweet() {\r\n try {\r\n\r\n String twet = JOptionPane.showInputDialog(\"Tweett:\");\r\n Status status = twitter.updateStatus(twet);\r\n System.out.println(\"Successfully updated the status to [\" + status.getText() + \"].\");\r\n } catch (TwitterException ex) {\r\n java.util.logging.Logger.getLogger(MetodosTwit.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }", "public synchronized void send() throws RemoteException {\n\n if (this.temperatureQueue.isEmpty()) {\n //logger.log(Level.INFO, \"Nothing to send, bailing.\");\n return;\n }\n\n for (TemperatureMessage message : this.temperatureQueue) {\n // TODO\n // lookup the node and deliver the message.\n\n TemperatureNode destinationNode = owner.lookupNode(message.getDestination());\n if (destinationNode == null) {\n // Classic comment; this should never happen.\n System.out.println(\"Refusing to send to null node \" + message.getDestination());\n return;\n }\n destinationNode.sendMeasurement(message);\n this.owner.incrementVectorClock();\n //System.out.println(this.owner.ID() + \"Sent a message to \" + destinationNode.ID());\n\n }\n\n temperatureQueue.clear();\n }", "public void sendToKafka(final ExtendedRevisionCallGraph cg) {\n\n logger.debug(\"Writing call graph for {} to Kafka\", cg.uri.toString());\n final var record = new ProducerRecord<Object, String>(this.producerTopic(),\n cg.uri.toString(),\n cg.toJSON().toString()\n );\n\n kafkaProducer.send(record, (recordMetadata, e) -> {\n if (recordMetadata != null) {\n logger.debug(\"Sent: {} to {}\", cg.uri.toString(), this.producerTopic());\n } else {\n setPluginError(e);\n logger.error(\"Failed to write message to Kafka: \" + e.getMessage(), e);\n }\n });\n }", "@Override\n\t\tpublic void asyncSendSuccess(long id) throws ConnectorException {\n\t\t\t\n\t\t}", "public void send(ProfileMessageModel message) {\n\t\tLOG.info(\"sending message='{}' to topic='{}'\", message, topic);\n\t\tkafkaProfileTemplate.send(topic, message);\n\t}", "private void sendTopicNumber(int topicNumber, DatagramPacket receivedPacket) throws InterruptedException {\r\n\t\tDatagramPacket[] packets = new DatagramPacket[1];\r\n\t\tbyte[] newPacketData = createPacketData(Constants.CREATION, 0, topicNumber,\r\n\t\t\t\tprocessMessageFromPacket(receivedPacket).getBytes());\r\n\t\tDatagramPacket newPacket = new DatagramPacket(newPacketData, newPacketData.length);\r\n\t\tnewPacket.setSocketAddress(receivedPacket.getSocketAddress());\r\n\t\tpackets[0] = newPacket;\r\n\t\taddItemsToQueue(packets);\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tif(!loggedIn){\n\t\t\t\t\tLog.d(\"POST FAILED\",\"NOT LOGGED IN\");\n\t\t\t\t}\n\t\t\t\tTweet tweet = new Tweet(text);\n\t\t\t\tTweetER ter = TweetER.getInstance(accntMgr);\n\t\t\t\ttry {\n\t\t\t\t\ttweet = ter.post(tweet);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (LimitExceededException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public postTweet_args(postTweet_args other) {\n if (other.isSetTweet()) {\n this.tweet = new Tweet(other.tweet);\n }\n }", "public void send(Object object, MediaType mediaType)\n/* */ throws IOException\n/* */ {\n/* 106 */ if (object != null) {\n/* 107 */ send(event().data(object, mediaType));\n/* */ }\n/* */ }", "OutgoingStream<T> withTopic(String topic);", "public interface KafkaService {\n\n /**\n * 发消息\n * @param topic 主题\n * @param obj 发送内容\n */\n boolean sendUserInfo(String topic, Object obj);\n}", "TwitterResourceProvider(final IndexableTweets indexableTweets) throws IOException {\r\n tweets = new Stack<>();\r\n clones = indexableTweets.getClones();\r\n TwitterTemplate twitterTemplate = new TwitterTemplate( //\r\n indexableTweets.getConsumerKey(), //\r\n indexableTweets.getConsumerSecret(), //\r\n indexableTweets.getToken(), //\r\n indexableTweets.getTokenSecret());\r\n StreamingOperations streamingOperations = twitterTemplate.streamingOperations();\r\n StreamListener streamListener = new StreamListener() {\r\n\r\n final AtomicInteger counter = new AtomicInteger();\r\n final AtomicInteger deleted = new AtomicInteger();\r\n\r\n @Override\r\n public void onTweet(final Tweet tweet) {\r\n if (tweets.size() < 10000) {\r\n tweets.push(tweet);\r\n }\r\n if (counter.incrementAndGet() % 1000 == 0) {\r\n logger.info(\"Tweets received : \" + counter.get() + \", tweet cache : \" + tweets.size() + \", tweet : \" + ToStringBuilder.reflectionToString(tweet));\r\n }\r\n }\r\n\r\n @Override\r\n public void onDelete(final StreamDeleteEvent streamDeleteEvent) {\r\n if (deleted.incrementAndGet() % 1000 == 0) {\r\n logger.info(\"Deleted : \" + deleted.get() + \", event : \" + ToStringBuilder.reflectionToString(streamDeleteEvent));\r\n }\r\n }\r\n\r\n @Override\r\n public void onLimit(final int i) {\r\n logger.info(\"Limit : \" + i);\r\n }\r\n\r\n @Override\r\n public void onWarning(final StreamWarningEvent streamWarningEvent) {\r\n logger.info(\"Warning : \" + streamWarningEvent);\r\n }\r\n };\r\n List<StreamListener> listeners = Collections.singletonList(streamListener);\r\n stream = streamingOperations.sample(listeners);\r\n }", "public void send(String topic,Object content,String actionType) {\n //maxkey.server.message.queue , if not none\n if(applicationConfig.isProvisionSupport()) {\n ProvisionMessage message = \n \t\tnew ProvisionMessage(\n \t\t\t\tUUID.randomUUID().toString(),\t//message id as uuid\n \t\t\t\ttopic,\t//TOPIC\n \t\t\t\tactionType,\t//action of content\n \t\t\t\tDateUtils.getCurrentDateTimeAsString(),\t//send time\n \t\t\t\tnull, \t//content Object to json message content\n \t\t\t\tcontent\n \t\t\t\t);\n //sand msg to provision topic\n Thread thread = null;\n if(applicationConfig.isProvisionSupport()) {\n \t_logger.trace(\"message...\");\n \tthread = new ProvisioningThread(jdbcTemplate,message);\n \tthread.start();\n }else{\n \t_logger.trace(\"no send message...\");\n }\n }\n }", "public void send(Board board){\n\t\ttry {\n\t\t\t//\t\t\tSystem.out.println(\"Sende Board \" + board);\n\t\t\tout.reset();\n\t\t\tout.writeObject(board);\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Tweet getTweet(int idx) {\n return tweets.get(idx);\n }", "public void sendText(String user, String pwd, String group) throws Exception {\n // Set up objects\n TextMarksV2APIClient tmapi = new TextMarksV2APIClient();\n Map<String,Object> msoParams = new HashMap();\n \n // Populate authentication data\n // tmapi.setApiKey(\"MyAPIKEY_12345678\"); // What is this?\n tmapi.setAuthUser(user);\n tmapi.setAuthPass(pwd);\n // tmapi.setTo(user);\n msoParams.put(\"tm\", group);\n // msoParams.put(\"msg\", \"Text test \" + (new java.util.Date()));\n msoParams.put(\"msg\", \"Hi, it's time to take your survey: https://uwmadison.co1.qualtrics.com/SE/?SID=SV_daMIl9CecE7sO4B \" + (new java.util.Date()));\n\n // Send the text\n tmapi.call(\"GroupLeader\", \"broadcast_message\", msoParams);\n System.out.println(\"Text sent\");\n }" ]
[ "0.60291094", "0.5768799", "0.5503733", "0.5440622", "0.5389107", "0.53437203", "0.534216", "0.5292822", "0.52793396", "0.5247027", "0.5217504", "0.5192642", "0.51624954", "0.51323557", "0.5111561", "0.5101794", "0.50988483", "0.5077094", "0.5055566", "0.5002153", "0.49786377", "0.4945672", "0.48812371", "0.48594606", "0.48491937", "0.4815633", "0.47880608", "0.47794235", "0.47755527", "0.47654414", "0.47605696", "0.4759658", "0.47195804", "0.47142655", "0.47095016", "0.4664247", "0.46335536", "0.46068865", "0.4605068", "0.459448", "0.45820373", "0.45697284", "0.45212963", "0.45141268", "0.45105758", "0.44881496", "0.4484442", "0.44810355", "0.44778368", "0.447482", "0.4472772", "0.44725764", "0.44719267", "0.44592056", "0.44209528", "0.44159064", "0.44148475", "0.44114363", "0.44105515", "0.44091567", "0.4394917", "0.43918404", "0.43835697", "0.43706432", "0.43335885", "0.43151847", "0.4303308", "0.4300149", "0.4291598", "0.42791882", "0.426109", "0.42603037", "0.42507035", "0.4240152", "0.42311084", "0.4230683", "0.4225946", "0.4222955", "0.4220501", "0.42195228", "0.421685", "0.42119485", "0.42066157", "0.42040017", "0.41999123", "0.41945237", "0.4187715", "0.4184737", "0.4174184", "0.41672465", "0.41666326", "0.4164624", "0.41601035", "0.4159106", "0.41537544", "0.41520497", "0.4149141", "0.4146226", "0.4145877", "0.4137871" ]
0.735499
0
Interface to mark classes that allow to perform additional logic on created researcher profile.
public interface AfterResearcherProfileCreationAction { /** * Perform some actions on the given researcher profile and returns the updated * profile. * * @param context the DSpace context * @param researcherProfile the created researcher profile * @param owner the EPerson that is owner of the given profile * @throws SQLException if a SQL error occurs */ void perform(Context context, ResearcherProfile researcherProfile, EPerson owner) throws SQLException; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ProfileInterface recommend();", "@Override\n public String getClassType(){\n return \"Assistant Professor\";\n }", "interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n WithCreate withRosterProfile(RosterProfile rosterProfile);\n }", "@Override\n\tpublic void annotate(JDefinedClass cls) {\n\n\t}", "public abstract Annotations getClassAnnotations();", "@Override\n public boolean studentAddClass(Token token, int courseID, String grading, String courseTerm) {\n // TODO Auto-generated method stub\n Student student = new Student();\n return student.studentAddClass(token, courseID, grading, courseTerm);\n\n }", "public static void addPermitedType(GvgInfoAnnotation gvgAnnotation){\r\n\t\tif(GvgUtils.permitedClass == null)\r\n\t\t\tGvgUtils.permitedClass = new ArrayList<String>(); \r\n\t\tfor(Class<?> c : gvgAnnotation.value()){\r\n\t\t\tGvgUtils.permitedClass.add(c.getName());\r\n\t\t\tGvgUtils.permitedClass.add(c.getSimpleName());\r\n\t\t}\r\n\t}", "interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n Update withRosterProfile(RosterProfile rosterProfile);\n }", "org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();", "public static interface Enhancer{\r\n\t\t\r\n\t\tpublic Classification getClassification(ClassifierGenerator generator, Processor processor, TreeNode tree, Tuple tuple, long dueTime);\r\n\t}", "public interface IRecommender {\n\n /**\n * Generate an set of user profiles that are recommended to be followed by a user profile.\n *\n * @param profileId unique identifier of the user profile.\n * @param influencers map of influencer user profiles and those that follow them.\n * @param followers map of follower user profiles and the influencers they follow.\n * @param profiles list of all user profiles in the network.\n * @param numRecs number of user profiles to recommend.\n * @param threshold threshold for the number of followers a user profile needs to have to be\n * considered an influencer.\n * @param recs current set of recommended user profiles.\n * @return unique set of user profiles to follow.\n */\n Set<Integer> recommend(Integer profileId, Map<Integer, Set<Integer>> influencers,\n Map<Integer, Set<Integer>> followers, List<Profile> profiles, Integer numRecs,\n Integer threshold, Set<Integer> recs);\n\n}", "public abstract void markUsable();", "public Run() {\n setChildClass(AverageProfile.class);\n }", "public void register(Course crs)\r\n {\r\n crs.addProf(this);\r\n }", "public interface ProfileType\n {\n /**\n * Parent profile type\n */\n String ADMIN = \"0\";\n\n /**\n * remeber profile type\n */\n String GENERAL = \"1\";\n }", "@Override\r\n\tpublic void personalLoanInterest() {\n\t\t\r\n\t}", "public void addProgenyBlacklist(Class...clazz);", "public interface CoverCreationMethod {\n\n}", "public interface OnProfileFetched {\n\tvoid onProfileFetched(String profile);\n}", "org.hl7.fhir.ResourceReference addNewPerformer();", "interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n WithCreate withSecurityProfile(SecurityProfile securityProfile);\n }", "public interface CreatePageMarker {\n}", "void additionalCreationCallback() {\n }", "public interface ProfileDisplayer {\n\n void display(User user);\n\n void updateProfileImage(Bitmap bitmap);\n\n void attach(ProfileActionListener profileActionListener);\n\n void detach(ProfileActionListener profileActionListener);\n\n interface ProfileActionListener {\n\n void onUpPressed();\n\n void onNamePressed(String hint, TextView textView);\n\n void onStatusPressed(String hint, TextView textView);\n\n void onPasswordPressed(String hint);\n\n void onImagePressed();\n\n void onSavePressed();\n\n void onRemovePressed();\n\n }\n\n}", "@Override\n\tpublic void attendClass() {\n\t\tSystem.out.println(\"Attanding class locally\");\n\t}", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public interface Expert {\n}", "public interface ClassLearner<I>\n{\n //-------------------------------------------------------------------------\n public Classifier<I> learn(\n List<Classified<I>> trainingPoints);\n}", "private void visitAdditionalEntrypoints() {\n\tLinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>();\n\tfor(jq_Method m: publicMethods) {\n\t extraClasses.add(m.getDeclaringClass());\n\t}\n\t\n\tfor(jq_Class cl: extraClasses) {\n\t visitClass(cl);\n\t\t\tjq_Method ctor = cl.getInitializer(new jq_NameAndDesc(\"<init>\", \"()V\"));\n\t\t\tif (ctor != null)\n\t\t\t\tvisitMethod(ctor);\n\t}\n\n\tfor(jq_Method m: publicMethods) {\n\t visitMethod(m);\n\t}\n }", "public interface Activity extends RUP_Core_Elements {\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#hasRecommendation\n */\n \n /**\n * Gets all property values for the hasRecommendation property.<p>\n * \n * @returns a collection of values for the hasRecommendation property.\n */\n Collection<? extends PM_Learning_Material> getHasRecommendation();\n\n /**\n * Checks if the class has a hasRecommendation property value.<p>\n * \n * @return true if there is a hasRecommendation property value.\n */\n boolean hasHasRecommendation();\n\n /**\n * Adds a hasRecommendation property value.<p>\n * \n * @param newHasRecommendation the hasRecommendation property value to be added\n */\n void addHasRecommendation(PM_Learning_Material newHasRecommendation);\n\n /**\n * Removes a hasRecommendation property value.<p>\n * \n * @param oldHasRecommendation the hasRecommendation property value to be removed.\n */\n void removeHasRecommendation(PM_Learning_Material oldHasRecommendation);\n\n\n /* ***************************************************\n * Property http://www.semanticweb.org/morningstar/ontologies/2019/9/untitled-ontology-9#isPerformOf\n */\n \n /**\n * Gets all property values for the isPerformOf property.<p>\n * \n * @returns a collection of values for the isPerformOf property.\n */\n Collection<? extends Role> getIsPerformOf();\n\n /**\n * Checks if the class has a isPerformOf property value.<p>\n * \n * @return true if there is a isPerformOf property value.\n */\n boolean hasIsPerformOf();\n\n /**\n * Adds a isPerformOf property value.<p>\n * \n * @param newIsPerformOf the isPerformOf property value to be added\n */\n void addIsPerformOf(Role newIsPerformOf);\n\n /**\n * Removes a isPerformOf property value.<p>\n * \n * @param oldIsPerformOf the isPerformOf property value to be removed.\n */\n void removeIsPerformOf(Role oldIsPerformOf);\n\n\n /* ***************************************************\n * Common interfaces\n */\n\n OWLNamedIndividual getOwlIndividual();\n\n OWLOntology getOwlOntology();\n\n void delete();\n\n}", "public interface RelationalClassifier extends Classifier {\r\n}", "public interface ICharacterProfile {\n\n}", "public interface PersistedCallbackFacet extends CallbackFacet {\n\n}", "Object getClass_();", "Object getClass_();", "public interface ProfileInteraction {\n public void setProfileData(String id, String username);\n// public void checkProfile();\n}", "public interface TrackerListener {\n /**\n * Provide Location Updates to parent classes (E.g. Map Provider's LocationDataSource class)<br>\n * The implementation of Tracker Interface should call this method when they receive new location updates.\n * @param coords\n * @see Tracker\n */\n void onNewCoords(Coords coords);\n\n /**\n * Provide Event updates to parent classes (E.g. Map Provider's LocationDataSource class)<br>\n * The implementation of Tracker Interface should call this method when they receive event info that they want to pass on to the parent classes.\n * @param event\n * @see Tracker\n */\n void onNewEvent(Event event);\n}", "public ITool getSuperClass();", "@Override\npublic void noninvesters() {\n\t\n}", "@Override\r\n protected Class getConcreteClass() {\n return TwitterAccount.class;\r\n }", "public interface ProfileInterface extends Serializable {\n\n /**\n * Sets this profile's name.\n *\n * <p> If newName is not null, then setName modifies this profile so that\n * its name is newName. If newName is null, then setName throws\n * IllegalArgumentException without modifying the profile, for example:\n *\n * <p> {@code throw new IllegalArgumentException(\"Name cannot be null\")}\n *\n * @param newName The new name\n * @throws IllegalArgumentException If newName is null\n */\n public void setName(String newName) throws IllegalArgumentException;\n\n /**\n * Gets this profile's name.\n *\n * @return The name\n */\n public String getName();\n\n /**\n * Sets this profile's \"about me\" blurb.\n *\n * <p> If newAbout is not null, then setAbout modifies this profile so that\n * its about blurb is newAbout. If newAbout is null, then setAbout throws\n * IllegalArgumentException without modifying the profile.\n *\n * @param newAbout The new blurb\n * @throws IllegalArgumentException If newAbout is null\n */\n public void setAbout(String newAbout) throws IllegalArgumentException;\n\n /**\n * Gets this profile's \"about me\" blurb\n *\n * @return The blurb\n */\n public String getAbout();\n\n /**\n * Adds another profile to this profile's following set.\n *\n * <p> If this profile's following set is at capacity, or if other is null,\n * then follow returns false without modifying the profile. Otherwise, other\n * is added to this profile's following set and follow returns true. If this\n * profile already followed other, then follow returns true even though no\n * changes were needed.\n *\n * @param other The profile to follow\n * @return True if successful, false otherwise\n */\n public boolean follow(ProfileInterface other);\n\n /**\n * Removes the specified profile from this profile's following set.\n *\n * <p> If this profile's following set does not contain other, or if other\n * is null, then unfollow returns false without modifying the profile.\n * Otherwise, this profile in modified in such a way that other is removed\n * from this profile's following set.\n *\n * @param other The profile to follow\n * @return True if successful, false otherwise\n */\n public boolean unfollow(ProfileInterface other);\n\n /**\n * Returns a preview of this profile's following set.\n *\n * <p> The howMany parameter is a maximum desired size. The returned array\n * may be less than the requested size if this profile is following fewer\n * than howMany other profiles. Clients of this method must be careful to\n * check the size of the returned array to avoid\n * ArrayIndexOutOfBoundsException.\n *\n * <p> Specifically, following returns an array of size min(howMany, [number\n * of profiles that this profile is following]). This array is populated\n * with arbitrary profiles that this profile follows.\n *\n * @param howMany The maximum number of profiles to return\n * @return An array of size &le;howMany, containing profiles that this\n * profile follows\n */\n public ProfileInterface[] following(int howMany);\n\n /**\n * Recommends a profile for this profile to follow. This returns a profile\n * followed by one of this profile's followed profiles. Should not recommend\n * this profile to follow someone they already follow, and should not\n * recommend to follow oneself.\n *\n * <p> For example, if this profile is Alex, and Alex follows Bart, and Bart\n * follows Crissy, this method might return Crissy.\n *\n * @return The profile to suggest, or null if no suitable profile is found\n * (only if all of this profile's followees' followees are already followed\n * or this profile itself).\n */\n public ProfileInterface recommend();\n}", "@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}", "public interface Participation {\n\n /** alternative owner, but as long as this person is not the owner. \n * This person is allowed to make comments, but nothing else. */\n String CANDIDATE = \"candidate\";\n\n /** the person with ultimate responsibility over a task. */\n String OWNER = \"owner\";\n\n /** person that will be using the result of this task. This person is \n * allowed to make comments, but nothing else. */\n String CLIENT = \"client\";\n\n /** person that is allowed to watch-but-not-touch this task */\n String VIEWER = \"viewer\";\n\n /** a person that was assigned to a task, but got replaced because of \n * absence or another reason. This way, a trace can be left in case \n * this person returns and wants to take back his tasks that got \n * reassigned. */\n String REPLACED_ASSIGNEE = \"replaced-assignee\";\n\n /** the unique id for this participation that is used as a reference in the service methods */\n String getId();\n\n /** userId for this participation. \n * null in case this is a {@link #getGroupId() group participation}. */\n String getUserId();\n\n /** groupId for this participation. \n * null in case this is a {@link #getUserId() user participation}. */\n String getGroupId();\n\n /** see constants for default participations */\n String getType();\n}", "public void consulterClassement() {\n\t\t\n\t}", "private TypicalPersons() {}", "private TypicalPersons() {}", "@Override\n\tprotected void setProfile(List<Step> arg0, List<Step> arg1) {\n\t\t\n\t}", "protected abstract boolean approvedForClass(Course c);", "public interface Classifier extends NamedDisplayElement {\n}", "public interface NotificationValidatedMark {\n\n}", "public static interface _cls9\n{\n\n public abstract void userCancelledSignIn();\n\n public abstract void userSuccessfullySignedIn();\n}", "public interface VLabtestInstListener\n// extends+ \n\n// extends- \n{\n /**\n * Invoked just before inserting a VLabtestInstBean record into the database.\n *\n * @param pObject the VLabtestInstBean that is about to be inserted\n */\n public void beforeInsert(VLabtestInstBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after a VLabtestInstBean record is inserted in the database.\n *\n * @param pObject the VLabtestInstBean that was just inserted\n */\n public void afterInsert(VLabtestInstBean pObject) throws SQLException;\n\n\n /**\n * Invoked just before updating a VLabtestInstBean record in the database.\n *\n * @param pObject the VLabtestInstBean that is about to be updated\n */\n public void beforeUpdate(VLabtestInstBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after updating a VLabtestInstBean record in the database.\n *\n * @param pObject the VLabtestInstBean that was just updated\n */\n public void afterUpdate(VLabtestInstBean pObject) throws SQLException;\n\n\n// class+ \n\n// class- \n}", "interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n Update withSecurityProfile(SecurityProfile securityProfile);\n }", "protected void doAdditionalChecking(Contributor contr) {\n }", "@Override\n public void onRPClassAddAttribute(RPClass rpclass,\n String name, Definition.Type type) {\n }", "public interface Aggregator {\n /**\n * Determines the final class recognized\n * @param confidence Confidence values produced by a recognizer\n * (one confidence value per class)\n * @return The final prediction given by a classifier\n */\n public Prediction apply( double[] confidence );\n\n}", "@BeforeAll\n public static void beforeClass() {\n scanResult = new ClassGraph()\n .acceptPackages(RetentionPolicyForFunctionParameterAnnotationsTest.class.getPackage().getName())\n .enableAllInfo().scan();\n classInfo = scanResult.getClassInfo(RetentionPolicyForFunctionParameterAnnotationsTest.class.getName());\n }", "void addAnnotatedClass( Class clazz );", "public interface VLabAnsByContragentListener\n// extends+ \n\n// extends- \n{\n /**\n * Invoked just before inserting a VLabAnsByContragentBean record into the database.\n *\n * @param pObject the VLabAnsByContragentBean that is about to be inserted\n */\n public void beforeInsert(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after a VLabAnsByContragentBean record is inserted in the database.\n *\n * @param pObject the VLabAnsByContragentBean that was just inserted\n */\n public void afterInsert(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just before updating a VLabAnsByContragentBean record in the database.\n *\n * @param pObject the VLabAnsByContragentBean that is about to be updated\n */\n public void beforeUpdate(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after updating a VLabAnsByContragentBean record in the database.\n *\n * @param pObject the VLabAnsByContragentBean that was just updated\n */\n public void afterUpdate(VLabAnsByContragentBean pObject) throws SQLException;\n\n\n// class+ \n\n// class- \n}", "protected abstract void registerSuperTypes();", "public interface onlineEducation {\n\n\n\n}", "public abstract VisitorProfile save(VisitorProfile profile);", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "@Override\r\n\tpublic void addMe() {\n\t\t\r\n\t}", "public void addReader(final Class<IFormatReader> readerClass) {\n\t\treaderClasses.addClass(readerClass);\n\t}", "@Override\n public boolean isStudent() {\n return false;\n }", "@Override\n public boolean adminAddClass(ShibbolethAuth.Token token, int courseID, String courseName, int courseCredits,\n int courseCapacity, String term, int instructorID, String firstDay, String lastDay, String classBeginTime,\n String classEndTime, String weekDays, String location, String type, String prerequisite, String description,\n String department) {\n\n try {\n return adminAddClass1(token, courseID, courseName, courseCredits, courseCapacity, term, instructorID,\n firstDay, lastDay, classBeginTime, classEndTime, weekDays, location, type, prerequisite,\n description, department);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n\n return false;\n\n }\n }", "@Override\n public boolean adminAddStudentToClass(Token token, int studentID, int courseID, String grading, String courseTerm) {\n try {\n adminAddStudentToClass1(token, studentID, courseID, grading, courseTerm);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }", "@Override\n protected void checkSubclass() {\n }", "@Override\n public void onRPClassAddAttribute(RPClass rpclass,\n String name, Definition.Type type, byte flags) {\n }", "public abstract boolean onUserBelongHere(StudentRecord record);", "@Override\n\tpublic void visit(OWLClass cls) {\n\t\taddFact(RewritingVocabulary.CLASS, cls.getIRI());\n\t}", "interface ManipulatePersonalInformation {\n\tpublic String getName(); \n\tpublic String getLocation();\n\tpublic String getEmail();\n\tpublic String getURLForProfile();\n\t\n\tpublic void setName(String name); \n\tpublic void setLocation(String location);\n\tpublic void setEmail(String email);\n\tpublic void setURLForProfile(String URLForProfile);\n}", "public interface Customizable {\n\n /**\n * This method adds based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is added successfully, otherwise false\n */\n boolean add(Object obj);\n\n /**\n * This method removes based on the parameter passed and the class it is implemented in.\n * @param obj object\n * @return true is removed successfully, otherwise false\n */\n boolean remove(Object obj);\n}", "public void onScanClasses(Set<Class<?>> parentClasses, Class<?> clazz, Object instance);", "@Override\n public boolean studentEditClass(Token token, int courseID, String grading, String courseTerm) {\n // TODO Auto-generated method stub\n Student student = new Student();\n return student.studentEditClass(token, courseID, grading, courseTerm);\n }", "RosterProfile rosterProfile();", "public void setClassification(String classification) {\n this.classification = classification;\n }", "@Override\r\n public void registerMonitor(String name, ProfileMonitor monitor) {\n\r\n }", "boolean isPersonalPriorityClass(@NotNull PriorityClass priorityClass);", "public void addButcheryBlacklist(Class...clazz);", "@Override\n\tpublic void registerPrimaryTypes() {\n\t\tobjectType = registerJavaType(getBuilder().getName(), ClassType.CLASS);\n\t}", "public boolean follow(ProfileInterface other);", "public interface ClassNameCRStrategy {\r\n\r\n /**\r\n * Implements a specific strategy for dealing with class name conflicts.\r\n * @param state The current source generator state.\r\n * @param newClassInfo The {@link CLassInfo} for the new class to be generated.\r\n * @param conflict The {@link JClass} instance representing the potential conflict.\r\n * @return the source generator state, as modified by the decision.\r\n */\r\n SGStateInfo dealWithClassNameConflict(final SGStateInfo state,\r\n final ClassInfo newClassInfo, final JClass conflict);\r\n\r\n /**\r\n * Implements a specific strategy for dealing with the fact that -- for a\r\n * given file name -- an artifact with the same name already exists.\r\n *\r\n * @param filename The name of the file to be overwritten.\r\n * @return True of the file should be overwritten.\r\n */\r\n boolean dealWithFileOverwrite(String filename);\r\n\r\n /**\r\n * Returns the name of this strategy.\r\n * @return The name of this strategy.\r\n */\r\n String getName();\r\n\r\n /**\r\n * Sets the {@link ConsoleDialog} instance to use (if required).\r\n * @param dialog the {@link ConsoleDialog} instance to use (if required).\r\n */\r\n void setConsoleDialog(ConsoleDialog dialog);\r\n\r\n /**\r\n * Injects the {@link SingleClassGenerator} instance that actually is\r\n * calling a method of this strategy.\r\n *\r\n * @param generator The calling {@link SingleClassGenerator}\r\n * @see SingleClassGenerator\r\n */\r\n void setSingleClassGenerator(SingleClassGenerator generator);\r\n\r\n}", "public interface CreateManagedACTAccessRequirementStep3View extends IsWidget {\n void setPresenter(Presenter p);\n void setReviewerUIVisible(boolean visible);\n void setReviewerBadge(IsWidget w);\n void setReviewerSearchBox(IsWidget w);\n\n /*\n * Presenter interface\n */\n public interface Presenter {\n void onRemoveReviewer();\n }\n}", "public Resident(Profile profile) {\r\n super(profile);\r\n }", "private RubyClass defineClassIfAllowed(String name, RubyClass superClass) {\n if (superClass != null && profile.allowClass(name)) {\n return defineClass(name, superClass, superClass.getAllocator());\n }\n return null;\n }", "public void saveProfileCreateData() {\r\n\r\n }", "public interface RoomstatusListener\n// extends+ \n\n// extends- \n\n{\n /**\n * Invoked just before inserting a RoomstatusBean record into the database.\n *\n * @param pObject the RoomstatusBean that is about to be inserted\n */\n public void beforeInsert(RoomstatusBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after a RoomstatusBean record is inserted in the database.\n *\n * @param pObject the RoomstatusBean that was just inserted\n */\n public void afterInsert(RoomstatusBean pObject) throws SQLException;\n\n\n /**\n * Invoked just before updating a RoomstatusBean record in the database.\n *\n * @param pObject the RoomstatusBean that is about to be updated\n */\n public void beforeUpdate(RoomstatusBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after updating a RoomstatusBean record in the database.\n *\n * @param pObject the RoomstatusBean that was just updated\n */\n public void afterUpdate(RoomstatusBean pObject) throws SQLException;\n\n\n// class+ \n\n// class- \n\n}", "protected abstract Result createClasses( Outline outline, CClassInfo bean );", "interface WithNetworkProfile {\n /**\n * Specifies the networkProfile property: The network profile for the lab, typically applied via a lab plan.\n * This profile cannot be modified once a lab has been created..\n *\n * @param networkProfile The network profile for the lab, typically applied via a lab plan. This profile\n * cannot be modified once a lab has been created.\n * @return the next definition stage.\n */\n WithCreate withNetworkProfile(LabNetworkProfile networkProfile);\n }", "public AssignedAuthor() {\n \tthis.classCode = \"ASSIGNED\";\n }", "@Pointcut(\"within(demo.pointcutdesignator.within.Person)\")\n\tpublic void createPointCut () {}", "public abstract Annotations mo30682c();", "public interface DevicelabtestListener\n// extends+ \n\n// extends- \n{\n /**\n * Invoked just before inserting a DevicelabtestBean record into the database.\n *\n * @param pObject the DevicelabtestBean that is about to be inserted\n */\n public void beforeInsert(DevicelabtestBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after a DevicelabtestBean record is inserted in the database.\n *\n * @param pObject the DevicelabtestBean that was just inserted\n */\n public void afterInsert(DevicelabtestBean pObject) throws SQLException;\n\n\n /**\n * Invoked just before updating a DevicelabtestBean record in the database.\n *\n * @param pObject the DevicelabtestBean that is about to be updated\n */\n public void beforeUpdate(DevicelabtestBean pObject) throws SQLException;\n\n\n /**\n * Invoked just after updating a DevicelabtestBean record in the database.\n *\n * @param pObject the DevicelabtestBean that was just updated\n */\n public void afterUpdate(DevicelabtestBean pObject) throws SQLException;\n\n\n// class+ \n\n// class- \n}", "@Override\n public void addListener(String className) {\n\n }", "protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\t\t\t\t\n\t\taddAnnotation\n\t\t (analyzerJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"AnalyzerJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getAnalyzerJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentFailure_ComponentRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ComponentRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (componentWorkFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ComponentWorkFlowRun\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getComponentWorkFlowRun_FailureRefs(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"FailureRefs\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (expressionFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ExpressionFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getExpressionFailure_ExpressionRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ExpressionRef\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (failureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Failure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getFailure_Message(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Message\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"Job\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_EndTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"EndTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Interval(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Interval\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_JobState(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Name(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Name\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_Repeat(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Repeat\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJob_StartTime(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"StartTime\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunContainerEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunContainer\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_Job(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Job\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getJobRunContainer_WorkFlowRuns(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"WorkFlowRuns\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobRunStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobRunStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobRunState:Object\",\n\t\t\t \"baseType\", \"JobRunState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (jobStateEEnum, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (jobStateObjectEDataType, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"JobState:Object\",\n\t\t\t \"baseType\", \"JobState\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (metricSourceJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"MetricSourceJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getMetricSourceJob_MetricSources(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"MetricSources\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeReporterJob_Node(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Node\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (nodeTypeReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"NodeTypeReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_NodeType(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"NodeType\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getNodeTypeReporterJob_ScopeObject(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ScopeObject\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (operatorReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"OperatorReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getOperatorReporterJob_Operator(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"Operator\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (retentionJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RetentionJob\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceMonitoringJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceMonitoringJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceMonitoringJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (rfsServiceReporterJobEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"RFSServiceReporterJob\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getRFSServiceReporterJob_RFSService(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"RFSService\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (serviceUserFailureEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"ServiceUserFailure\",\n\t\t\t \"kind\", \"elementOnly\"\n\t\t });\t\t\t\n\t\taddAnnotation\n\t\t (getServiceUserFailure_ServiceUserRef(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"element\",\n\t\t\t \"name\", \"ServiceUserRef\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (workFlowRunEClass, \n\t\t source, \n\t\t new String[] {\n\t\t\t \"name\", \"WorkFlowRun\",\n\t\t\t \"kind\", \"empty\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Ended(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Ended\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Log(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Log\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Progress(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Progress\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressMessage(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressMessage\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_ProgressTask(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"ProgressTask\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_Started(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"Started\"\n\t\t });\t\t\n\t\taddAnnotation\n\t\t (getWorkFlowRun_State(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"attribute\",\n\t\t\t \"name\", \"State\"\n\t\t });\n\t}", "public interface ActivityDetails {\n\n /**\n * Get the profile associated with the user.\n *\n * @return profile containing attributes for the user\n */\n HumanProfile getUserProfile();\n\n /**\n * Get the profile associated with the application.\n *\n * @return profile containing attributes for the application\n */\n ApplicationProfile getApplicationProfile();\n\n /**\n * Deprecated. Please use getRememberMeId() instead.\n *\n * @return user ID.\n */\n @Deprecated\n String getUserId();\n\n /**\n * Return the remember-me ID, which is a unique, stable identifier for a user in the context of an application/user\n * interaction. You can be use it to identify returning users. Note that it is different for the same user in\n * different applications.\n *\n * @return user ID.\n */\n String getRememberMeId();\n\n\n /**\n * Time and date of the activity.\n *\n * @return time and date of the activity\n */\n Date getTimestamp();\n\n /**\n * Receipt id identifying a completed activity.\n *\n * @return receipt id\n */\n String getReceiptId();\n \n /**\n * @deprecated From v2.1 onwards you should use getUserProfile().getSelfie()\n * JPEG selfie in Base64 string.\n *\n * @return JPEG selfie image in Base64 string format\n */\n @Deprecated\n String getBase64Selfie();\n\n}", "public interface ContributionServiceMonitor {\n\n @Severe(\"An error was encountered processing the contribution: {0}\")\n void error(String message, Throwable e);\n\n @Info(\"The following contribution warnings were reported: \\n\\n{0}\")\n void contributionWarnings(String message);\n\n @Info(\"{0} installed\")\n void installed(String description);\n\n @Info(\"{0} uninstalled\")\n void uninstalled(String description);\n}", "public Profile() {}" ]
[ "0.5719343", "0.5668751", "0.5426005", "0.53189886", "0.52826136", "0.5249872", "0.52119803", "0.51933146", "0.51339823", "0.5116564", "0.51058006", "0.508955", "0.50880414", "0.5081815", "0.50393885", "0.50155824", "0.49884757", "0.4987176", "0.4982817", "0.49690366", "0.4952764", "0.49474734", "0.4940245", "0.49306586", "0.49177268", "0.4910808", "0.48957407", "0.48922208", "0.48755583", "0.4873224", "0.4871523", "0.48647952", "0.48295265", "0.48291615", "0.48291615", "0.48179105", "0.48102108", "0.47992134", "0.47922772", "0.47851777", "0.4778899", "0.477028", "0.47662354", "0.47650394", "0.4764107", "0.4764107", "0.475842", "0.47439057", "0.47426647", "0.47422943", "0.47413564", "0.47373325", "0.4733904", "0.47284377", "0.4727405", "0.47179008", "0.4716339", "0.47084376", "0.47050843", "0.46936375", "0.46909225", "0.468775", "0.46874717", "0.46826676", "0.46825045", "0.4680147", "0.46599254", "0.46571374", "0.4656614", "0.46498066", "0.46409333", "0.4640766", "0.46400517", "0.46335453", "0.46292993", "0.46180692", "0.46140024", "0.46128428", "0.46094704", "0.46058187", "0.4603706", "0.4594232", "0.45932943", "0.45904186", "0.45899343", "0.45878503", "0.458517", "0.45848036", "0.45833328", "0.4579535", "0.45773816", "0.45738158", "0.45694473", "0.45664728", "0.4565978", "0.4563221", "0.4562248", "0.4552838", "0.4549505", "0.45468664" ]
0.532351
3
Perform some actions on the given researcher profile and returns the updated profile.
void perform(Context context, ResearcherProfile researcherProfile, EPerson owner) throws SQLException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ProfileStatusReader getProfileUpdate( String profileId );", "public void editTheirProfile() {\n\t\t\n\t}", "Update withRosterProfile(RosterProfile rosterProfile);", "private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }", "Profile getProfile( String profileId );", "public Profile getProfile() {\n return _profile;\n }", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "void updateProfile(@NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "public boolean updateProfile(int Id,T deliEntry);", "void updateProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);", "void gotoEditProfile();", "private void updateProfileReview() {\n mBinding.submit.startAnimation();\n HashMap<String, Object> body = new HashMap<>();\n body.put(\"profile_completion\", \"complete\");\n enqueue(getApi().updateProfile(body), new CallBack<User>() {\n @Override\n public void onSuccess(User user) {\n updateUser(user);\n mBinding.submit.revertAnimation();\n if (user.account_status.equalsIgnoreCase(\"APPROVED\")) {\n replaceFragment(new AccountVerifiedFragment());\n } else if (user.account_status.equalsIgnoreCase(\"REJECTED\")) {\n replaceFragment(new KycRejectedFragment());\n } else {\n replaceFragment(new UnderReviewFragment());\n }\n }\n\n @Override\n public boolean onError(RetrofitError error, boolean isInternetIssue) {\n mBinding.submit.revertAnimation();\n return super.onError(error, isInternetIssue);\n\n }\n });\n }", "void patchMyProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);", "public Profile getProfile() {\n return m_profile;\n }", "public static Profile getProfile() {\n return profile;\n }", "void patchMyProfile(@NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);", "private void refreshProfile() {\n if (profile == null) {\n Source source = getCacheSource();\n boolean useCache = source == Source.CACHE;\n if (!useCache)\n loadingBar.show();\n\n ProfileUtils.downloadProfile(userId, this::onProfileRefresh, this::onProfileRefreshFail,\n profileImage, this);\n } else {\n onProfileRefresh(profile);\n profile = null; // subsequent loads should refresh the profile\n }\n\n refreshWeeklyStats();\n }", "public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}", "void patchProfile(@NonNull final String profileId, @NonNull final ComapiProfile profileDetails, final String eTag, @Nullable Callback<ComapiResult<ComapiProfile>> callback);", "@Override\n\tpublic boolean updateProfile(long profileId, Profile profile) {\n\t\treturn false;\n\t}", "private void onProfileRefresh(Profile profile) {\n if (profile == null)\n throw new IllegalStateException(\"A profile cannot be null on successful profile refresh\");\n\n boolean ownProfile = userId.equals(Login.getUserId());\n\n profile.setUserId(userId);\n if (ownProfile)\n Login.setProfile(profile);\n\n profileImage.setImageBitmap(profile.getProfileImage());\n profile.setProfileImage(null); // save memory\n nameView.setText(profile.getName());\n String address = profile.getCity() + \", \" + profile.getState();\n addressView.setText(address);\n favouriteActivityView.setText(profile.getFavouriteSport());\n\n setupBioTextView(profile);\n\n onFriendsSync(profile);\n }", "public EntityProfile getProfile()\n\t{\n\t\treturn m_profile;\n\t}", "public String getProfile();", "public ProfileInterface recommend();", "public void updateSecondaryProfile(final SecondaryProfile profile,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n final HashMap<String, String> headers =\n getHeaderWithAccessToken(mSharecareToken.accessToken);\n\n // Create request body.\n final HashMap<String, Object> body = new HashMap<String, Object>(9);\n body.put(ID, profile.identifier);\n body.put(NAME, profile.getName());\n body.put(GENDER, profile.gender);\n if (profile.dateOfBirth != null)\n {\n body.put(DATE_OF_BIRTH, profile.dateOfBirth.getTime());\n }\n body.put(HEIGHT, profile.heightInMeters);\n body.put(WEIGHT, profile.weightInKg);\n if (!StringHelper.isNullOrEmpty(profile.avatarURI))\n {\n final HashMap<String, String> image =\n new HashMap<String, String>(3);\n image.put(TYPE, IMAGE);\n image.put(URL, profile.avatarURI);\n image.put(DESCRIPTION, PROFILE_AVATAR);\n body.put(IMAGE, image);\n }\n\n HashMap<String, String> physicianJson = null;\n if (profile.physician != null)\n {\n physicianJson = new HashMap<String, String>(8);\n physicianJson.put(NAME, profile.physician.name);\n physicianJson.put(SPECIALTY, profile.physician.specialty);\n physicianJson.put(ADDRESS, profile.physician.address);\n physicianJson.put(CITY, profile.physician.city);\n physicianJson.put(STATE, profile.physician.state);\n physicianJson.put(ZIP, profile.physician.zip);\n physicianJson.put(PHONE, profile.physician.phone);\n physicianJson.put(EMAIL, profile.physician.email);\n }\n body.put(PHYSICIAN, physicianJson);\n\n HashMap<String, Object> insuranceJson = null;\n if (profile.insurancePlan != null)\n {\n insuranceJson = new HashMap<String, Object>(3);\n insuranceJson.put(MEMBER_ID, profile.insurancePlan.identification);\n insuranceJson.put(GROUP_ID, profile.insurancePlan.group);\n HashMap<String, String> planJson = null;\n if (profile.insurancePlan.insurancePlanAndCarrier != null\n && !StringHelper\n .isNullOrWhitespace(profile.insurancePlan.insurancePlanAndCarrier.planId))\n {\n planJson = new HashMap<String, String>(4);\n planJson.put(PLAN_ID,\n profile.insurancePlan.insurancePlanAndCarrier.planId);\n planJson.put(PLAN_NAME,\n profile.insurancePlan.insurancePlanAndCarrier.planName);\n planJson.put(CARRIER_ID,\n profile.insurancePlan.insurancePlanAndCarrier.carrierId);\n planJson.put(CARRIER_NAME,\n profile.insurancePlan.insurancePlanAndCarrier.carrierName);\n }\n insuranceJson.put(PLAN, planJson);\n }\n body.put(INSURANCE, insuranceJson);\n\n final Gson gson = new GsonBuilder().serializeNulls().create();\n final String bodyJson = gson.toJson(body);\n\n // Create endpoint.\n final String endPoint =\n String.format(EDIT_FAMILY_ENDPOINT, mSharecareToken.accountID,\n profile.identifier);\n\n this.beginRequest(endPoint, ServiceMethod.POST, headers, null,\n bodyJson, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (!result.success)\n {\n result.errorMessage =\n \"We're sorry. Something went wrong adding a family member. Please try again.\";\n }\n LogError(\"updateSecondaryProfile\", result);\n return result;\n }\n }, completion);\n }", "void patchProfile(@NonNull final String profileId, @NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);", "public void updateProfile(final Profile profile,\n final ServiceClientCompletion<ResponseResult> completion)\n {\n // Validate email format.\n if (!isEmailFormat(profile.email) && completion != null)\n {\n final ResponseResult result =\n new ResponseResult(\n false,\n \"Please enter a valid email.\",\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_BAD_PARAMETERS);\n completion\n .onCompletion(\n ServiceResultStatus.FAILED,\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_BAD_PARAMETERS,\n result);\n return;\n }\n\n // Create request headers.\n final HashMap<String, String> headers = new HashMap<String, String>(2);\n headers.put(\"Authorization\", AUTHORIZATION_HEADER);\n headers.put(\"Content-Type\", \"application/json\");\n\n // Create request parameters.\n final HashMap<String, String> parameters =\n new HashMap<String, String>(2);\n parameters.put(\"grant_type\", \"bearer\");\n parameters.put(\"access_token\", mSharecareToken.accessToken);\n\n // Create request body.\n final HashMap<String, Object> body = new HashMap<String, Object>(8);\n body.put(FIRST_NAME, profile.firstName);\n body.put(LAST_NAME, profile.lastName);\n body.put(EMAIL, profile.email);\n body.put(GENDER, profile.gender);\n if (profile.dateOfBirth != null)\n {\n body.put(DATE_OF_BIRTH, profile.dateOfBirth.getTime());\n }\n else\n {\n body.put(DATE_OF_BIRTH, null);\n }\n body.put(HEIGHT, profile.heightInMeters);\n body.put(WEIGHT, profile.weightInKg);\n if (!StringHelper.isNullOrEmpty(profile.avatarURI))\n {\n final HashMap<String, String> image =\n new HashMap<String, String>(3);\n image.put(TYPE, IMAGE);\n image.put(URL, profile.avatarURI);\n image.put(DESCRIPTION, PROFILE_AVATAR);\n body.put(IMAGE, image);\n }\n\n final Gson gson = new GsonBuilder().create();\n final String bodyJson = gson.toJson(body);\n\n final String endPoint =\n String.format(UPDATE_PROFILE_ENDPOINT, mSharecareToken.accountID);\n\n this.beginRequest(endPoint, ServiceMethod.POST, headers, parameters,\n bodyJson, ServiceResponseFormat.GSON,\n new ServiceResponseTransform<JsonElement, ResponseResult>()\n {\n @Override\n public ResponseResult transformResponseData(\n final JsonElement json)\n throws ServiceResponseTransformException\n {\n final ResponseResult result =\n checkResultFromAuthService(json);\n if (!StringHelper.isNullOrEmpty(result.errorMessage))\n {\n if (result.errorMessage.toLowerCase(Locale.US)\n .contains(\"invalid email address\"))\n {\n result.errorMessage = \"Please enter a valid email.\";\n }\n else if (result.errorMessage.toLowerCase(Locale.US)\n .contains(\"account already exists\"))\n {\n result.errorMessage =\n \"That email is already registered. Please try again with another email.\";\n }\n result.success = false;\n result.responseCode =\n ServiceClientConstants.SERVICE_RESPONSE_STATUS_CODE_BAD_PARAMETERS;\n }\n LogError(\"updateProfile\", result);\n return result;\n }\n }, completion);\n }", "String getProfile();", "public String getProfile() {\n return profile;\n }", "private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n\n Toast.makeText(context, personName + \"\\n\" + email, Toast.LENGTH_SHORT).show();\n\n /*txtName.setText(personName);\n txtEmail.setText(email);*/\n\n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n /*personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n\n new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);*/\n\n } else {\n Toast.makeText(context,\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "protected Map<String, Object> getUserProfile() {\r\n\t\tTimeRecorder timeRecorder = RequestContext.getThreadInstance()\r\n\t\t\t\t\t\t\t\t\t\t\t\t .getTimeRecorder();\r\n\t\tString profileId = (String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID);\r\n\r\n\t\tSite site = Utils.getEffectiveSite(request);\r\n\t\tString siteDNSName = (site == null ? null : site.getDNSName());\r\n\r\n\t\tIUserProfileRetriever retriever = UserProfileRetrieverFactory.createUserProfileImpl(AuthenticationConsts.USER_PROFILE_RETRIEVER, siteDNSName);\r\n\t\ttry {\r\n\t\t\ttimeRecorder.recordStart(Operation.PROFILE_CALL);\r\n\t\t\tMap<String, Object> userProfile = retriever.getUserProfile(profileId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t request);\r\n\t\t\ttimeRecorder.recordEnd(Operation.PROFILE_CALL);\r\n\t\t\treturn userProfile;\r\n\t\t} catch (UserProfileException ex) {\r\n\t\t\ttimeRecorder.recordError(Operation.PROFILE_CALL, ex);\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.PROFILE001, ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}", "private void callUpdateProfile() {\n String userStr = CustomSharedPreferences.getPreferences(Constants.PREF_USER_LOGGED_OBJECT, \"\");\n Gson gson = new Gson();\n User user = gson.fromJson(userStr, User.class);\n LogUtil.d(\"QuyNT3\", \"Stored profile:\" + userStr +\"|\" + (user != null));\n //mNameEdt.setText(user.getName());\n String id = user.getId();\n String oldPassword = mOldPassEdt.getText().toString();\n String newPassword = mNewPassEdt.getText().toString();\n String confirmPassword = mConfirmPassEdt.getText().toString();\n String fullName = mNameEdt.getText().toString();\n String profileImage = user.getProfile_image();\n UpdateUserProfileRequest request = new UpdateUserProfileRequest(id, fullName, profileImage,\n oldPassword, newPassword, confirmPassword);\n request.setListener(callBackEvent);\n new Thread(request).start();\n }", "RosterProfile rosterProfile();", "@Override\r\n public void updateProfile(Profile newProfile, Profile oldProfile) {\r\n profileDAO.updateProfile(oldProfile, newProfile);\r\n }", "interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n Update withRosterProfile(RosterProfile rosterProfile);\n }", "private void updateStudentProfileInfo() {\n\t\t\n\t\tstudent.setLastName(sLastNameTF.getText());\n\t\tstudent.setFirstName(sFirstNameTF.getText());\n\t\tstudent.setSchoolName(sSchoolNameTF.getText());\n\t\t\n\t\t//Update Student profile information in database\n\t\t\n\t}", "HumanProfile getUserProfile();", "H getProfile();", "public boolean updateProfile(Profile profile) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"update\", profile);\n\t\t}\n\t\tboolean returnVal = true;\n\n\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\tparameters.put(\"output\", \"vcard\");\n\t\tparameters.put(\"format\", \"full\");\n\t\tMap<String, String> headers = new HashMap<String, String>();\n\t\theaders.put(\"Content-Type\", \"application/atom+xml\");\n\n\t\tif (isEmail(profile.getReqId())) {\n\t\t\tparameters.put(\"email\", profile.getReqId());\n\t\t} else {\n\t\t\tparameters.put(\"userid\", profile.getReqId());\n\t\t}\n\t\ttry {\n\t\t\tObject updateProfilePayload = profile.constructUpdateRequestBody();\n\t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n\t\t\t\t\tProfileType.UPDATEPROFILE.getProfileType());\n\t\t\tgetClientService().put(url, parameters, headers, updateProfilePayload, ClientService.FORMAT_NULL);\n\t\t} catch (ClientServicesException e) {\n\t\t\t// we dont care about response body in Post request if return code\n\t\t\t// was 200\n\t\t\tif (logger.isLoggable(Level.SEVERE)) {\n\t\t\t\tlogger.log(Level.SEVERE, \"Error encountered while updating profile\", e);\n\t\t\t\treturnVal = false;\n\t\t\t}\n\t\t}\n\t\tprofile.clearFieldsMap();\n\n\t\tremoveProfileDataFromCache(profile.getReqId());\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.exiting(sourceClass, \"update\");\n\t\t}\n\n\t\treturn returnVal;\n\t}", "@Override\n\tpublic void updateUserProfileInfo(String name) throws Exception {\n\n\t}", "TasteProfile.UserProfile getUserProfile (String user_id);", "protected void load(Profile profile) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"load\", profile);\n\t\t}\n\t\t// Do a cache lookup first. If cache miss, make a network call to get\n\t\t// Profile\n\t\tDocument data = getProfileDataFromCache(profile.getReqId());\n\t\tif (data != null) {\n\t\t\tprofile.setData(data);\n\t\t} else {\n\n\t\t\tMap<String, String> parameters = new HashMap<String, String>();\n\t\t\tif (isEmail(profile.getReqId())) {\n\t\t\t\tparameters.put(\"email\", profile.getReqId());\n\t\t\t} else {\n\t\t\t\tparameters.put(\"userid\", profile.getReqId());\n\t\t\t}\n\t\t\tObject result = null;\n\t\t\ttry {\n\t\t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n\t\t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n\t\t\t\tresult = endpoint.xhrGet(url, parameters, ClientService.FORMAT_XML);\n\t\t\t} catch (ClientServicesException e) {\n\t\t\t\tlogger.log(Level.SEVERE, \"Error while loading a profile\", e);\n\t\t\t\tresult = null;\n\t\t\t}\n\n\t\t\tif (result != null) {\n\t\t\t\tprofile.setData((Document) result);\n\t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n\t\t\t} else {\n\t\t\t\tprofile.setData(null);\n\t\t\t}\n\n\t\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\t\tlogger.exiting(sourceClass, \"load\");\n\t\t\t}\n\t\t}\n\t}", "public interface ProfileService {\n\n /**\n * Get profile details from the service.\n *\n * @param profileId Profile Id of the user.\n * @param callback Callback with the result.\n */\n void getProfile(@NonNull final String profileId, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Query user profiles on the services.\n *\n * @param queryString Query string. See https://www.npmjs.com/package/mongo-querystring for query syntax. You can use {@link QueryBuilder} helper class to construct valid query string.\n * @param callback Callback with the result.\n */\n void queryProfiles(@NonNull final String queryString, @Nullable Callback<ComapiResult<List<Map<String, Object>>>> callback);\n\n /**\n * Updates profile for an active session.\n *\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void updateProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Applies given profile patch if required permission is granted.\n *\n * @param profileId Id of an profile to patch.\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void patchProfile(@NonNull final String profileId, @NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n\n /**\n * Applies profile patch for an active session.\n *\n * @param profileDetails Profile details.\n * @param callback Callback with the result.\n */\n void patchMyProfile(@NonNull final Map<String, Object> profileDetails, final String eTag, @Nullable Callback<ComapiResult<Map<String, Object>>> callback);\n }", "@Override\n\tpublic UserProfile updateUserProfileSetting(UserProfile userProfile)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public void saveProfileEditData() {\r\n\r\n }", "public ProfileService profile() {\n return service;\n }", "public UserProfile getUserProfile() {return userProfile;}", "public RecordObject updateUserProfile(String token, String recordId, Object record) throws RestResponseException;", "public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}", "@Override\n public void Mesibo_onProfileUpdated(MesiboProfile profile) {\n toast(profile.getName() + \" has updated profile\");\n }", "public void manageProfile(String username)\n {\n User tmpUser = getUser(username);\n Scanner input = new Scanner(System.in);\n String option = \"\";\n if(tmpUser.getRole().equals(\"Job Seeker\"))\n {\n JobSeeker tmpSeeker = getJobSeeker(username);\n tmpSeeker.displayJobSeeker();\n do\n {\n menu.manageSeekerProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpSeeker.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpSeeker.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpSeeker.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please add new skill: \");\n String newSkill = input.nextLine().trim();\n tmpSeeker.addSkill(newSkill);break;\n case \"5\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-5)\");\n break;\n }\n }while(!option.equals(\"5\"));\n System.out.println(\"Your new profile is:\");\n tmpSeeker.displayJobSeeker();\n runOJSSJobSeeker(tmpSeeker);\n }\n \n if(tmpUser.getRole().equals(\"Job Recruiter\"))\n {\n JobRecruiter tmpRecruiter = getJobRecruiter(username);\n tmpRecruiter.displayJobRecruiter();\n do\n {\n menu.manageRecruiterProfile();\n option = input.nextLine();\n switch (option)\n {\n case \"1\":\n System.out.println(\"Please enter new name: \");\n tmpRecruiter.setName(input.nextLine().trim());break;\n case \"2\":\n System.out.println(\"Please enter new email: \");\n tmpRecruiter.setEmail(input.nextLine().trim());break;\n case \"3\":\n System.out.println(\"Please enter new gender: \");\n tmpRecruiter.setGender(input.nextLine().trim());break;\n case \"4\":\n System.out.println(\"Please enter new company name: \");\n tmpRecruiter.setCompanyName(input.nextLine().trim());break;\n case \"5\":\n System.out.println(\"Please enter new location: \");\n tmpRecruiter.setLocation(input.nextLine().trim());break;\n case \"6\":\n break;\n default:\n System.out.println(\"Wrong input. Please input valid number(1-6)\");\n break;\n }\n }while(!option.equals(\"6\"));\n System.out.println(\"Your new profile is:\");\n tmpRecruiter.displayJobRecruiter();\n runOJSSJobRecruiter(tmpRecruiter);\n }\n }", "public void cmdRefreshProfile(User teller, Player player) {\n Team team = player.getTeam();\n Integer r = player.ratings().get(USCL_RATING);\n\n String playerName = player.getTitledRealName();\n String rating = (r == null || r < 0) ? \"Unavailable\" : r.toString();\n String playerPage = player.getWebsite();\n String teamName = team.toString();\n String teamPage = player.getTeam().getWebsite();\n for (Title title : player.getTitles()) {\n if (SimpleTitleService.CHESSCLUB_TITLES.contains(title)) {\n command.sendAdminCommand(\"+{0} {1}\", title, player);\n }\n }\n\n command.sendAdminCommand(\"set-other {0} 1 Name: {1}\", player, playerName);\n command.sendAdminCommand(\"set-other {0} 2 USCL rating: {1}\", player, rating);\n command.sendAdminCommand(\"set-other {0} 3 Profile page: {1}\", player, playerPage);\n command.sendAdminCommand(\"set-other {0} 4 \", player);\n command.sendAdminCommand(\"set-other {0} 5 Team: {1}\", player, teamName);\n command.sendAdminCommand(\"set-other {0} 6 Team page: {1}\", player, teamPage);\n command.sendAdminCommand(\"set-other {0} 7\", player);\n command.sendAdminCommand(\"rating {0} standard {1}\", player, rating);\n }", "public boolean updateProfile(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"update\", profile);\n \t\t}\n \t\tif (profile == null) {\n \t\t\tthrow new IllegalArgumentException(Messages.InvalidArgument_3);\n \t\t}\n \t\tboolean result = true;\n \n \t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\tparameters.put(ProfileRequestParams.OUTPUT, \"vcard\");\n \t\tparameters.put(ProfileRequestParams.FORMAT, \"full\");\n \t\tMap<String, String> headers = new HashMap<String, String>();\n \t\theaders.put(Headers.ContentType, Headers.ATOM);\n \t\tif (isEmail(profile.getReqId())) {\n \t\t\tparameters.put(ProfileRequestParams.EMAIL, profile.getReqId());\n \t\t} else {\n \t\t\tparameters.put(ProfileRequestParams.USERID, profile.getReqId());\n \t\t}\n \t\tObject updateProfilePayload = profile.constructUpdateRequestBody();\n \t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\tProfileType.UPDATEPROFILE.getProfileType());\n \t\tresult = executePut(url, parameters, headers, updateProfilePayload, ClientService.FORMAT_NULL);\n \t\tprofile.clearFieldsMap();\n \t\tremoveProfileDataFromCache(profile.getReqId());\n \n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.exiting(sourceClass, \"update\");\n \t\t}\n \n \t\treturn result;\n \t}", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }", "public void update(PublicProfile publicProfile) {\n delightDb.getPublicProfileQueries().updateProfile(\n publicProfile.firstName,\n publicProfile.lastName,\n publicProfile.profilePictureUrl,\n publicProfile.getHid()\n );\n }", "public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}", "@Override\n public WalkerDetails editWalkerProfile(WalkerEdit walkerEdit) {\n Assert.notNull(walkerEdit, \"Walker object must be given\");\n Optional<Walker> walkerOpt = walkerRepo.findById(walkerEdit.getId());\n Optional<WalkerLogin> walkerLoginOpt = walkerLoginRepo.findById(walkerEdit.getId());\n\n if (walkerOpt.isEmpty()){\n throw new RequestDeniedException(\"Walker with ID \" + Long.toString(walkerEdit.getId()) + \" doesn't exist!\");\n }\n if(walkerLoginOpt.isEmpty()) {\n throw new RequestDeniedException(\"Error while fetching user with ID \" + Long.toString(walkerEdit.getId()));\n }\n\n Walker walker = walkerOpt.get();\n WalkerLogin walkerLogin = walkerLoginOpt.get();\n\n Assert.notNull(walkerEdit.getFirstName(), \"First name must not be null\");\n Assert.notNull(walkerEdit.getLastName(), \"Last name must not be null\");\n Assert.notNull(walkerEdit.getEmail(), \"Email must not be null\");\n\n if((!walker.getEmail().equals(walkerEdit.getEmail())) && (!emailAvailable(walkerEdit.getEmail()))) {\n throw new RequestDeniedException(\"User with email \"+ walkerEdit.getEmail() + \" already exists.\");\n }\n\n walker.setFirstName(walkerEdit.getFirstName());\n walker.setLastName(walkerEdit.getLastName());\n walker.setEmail(walkerEdit.getEmail());\n walker.setPhoneNumber(walkerEdit.getPhoneNumber());\n walker.setPublicStats(walkerEdit.isPublicStats());\n\n if((!walkerLogin.getUsername().equals(walkerEdit.getUsername())) && (!usernameAvailable(walkerEdit.getUsername()))) {\n throw new RequestDeniedException(\"User with username \"+ walkerEdit.getUsername() + \" already exists.\");\n }\n\n walkerLogin.setUsername(walkerEdit.getUsername());\n\n walkerRepo.save(walker);\n walkerLoginRepo.save(walkerLogin);\n\n return this.getWalkerDetailsById(walkerEdit.getId());\n }", "void EditWorkerProfileUser(String uid, boolean isWorker, List<Skill> skills);", "private void updateProfile(Profile newprof) {\n\t\tthis.profile = newprof;\n\t\tthis.issues = Collections.unmodifiableList(\n\t\t\t\tnew LinkedList<String>(newprof.getDomain().getIssues()));\n\t\tnotifyListeners(newprof);\n\t}", "public T getSelectedProfile(int Id);", "private void profileUpdate(){\n File out = new File ( Environment.getExternalStorageDirectory().getAbsolutePath() + \"/\"\n + Setting.APP_FOLDER + \"/\" + \"profile\");\n if (!out.exists()){\n try {\n ColdStart.createProfile();\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n else{\n HandlerThread ht = new HandlerThread(\"UpdateProfile\", android.os.Process.THREAD_PRIORITY_BACKGROUND);\n ht.start();\n Handler h = new Handler(ht.getLooper());\n h.post(new Runnable() {\n @Override\n public void run() {\n ColdStart.updateProfile();\n }\n });\n\n }\n }", "@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfile\",\n operationName=\"getUserProfile\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfile\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserProfile(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;", "private void updateProfile() {\n usuario.setEmail(usuario.getEmail());\n usuario.setNome(etName.getText().toString());\n usuario.setApelido(etUsername.getText().toString());\n usuario.setPais(etCountry.getText().toString());\n usuario.setEstado(etState.getText().toString());\n usuario.setCidade(etCity.getText().toString());\n\n showLoadingProgressDialog();\n\n AsyncEditProfile sinc = new AsyncEditProfile(this);\n sinc.execute(usuario);\n }", "@Override\n\tpublic Profile getProfile(long profileId) {\n\t\treturn null;\n\t}", "Update withSecurityProfile(SecurityProfile securityProfile);", "@RequestMapping(value = \"/user/profile\", method = RequestMethod.POST)\n\tpublic String updateUserProfile(@ModelAttribute(\"washeeRequestModel\") WasheeRegModel washeeRegModel,\n\t\t\tPrincipal principal) {\n\n\t\tuserService.update(washeeRegModel, principal.getName());\n\t\treturn \"redirect:/user/profile.html?success=true\";\n\t}", "@PUT\n\t\t@Path(\"update\")\n\t\t@Consumes(MediaType.APPLICATION_JSON)\n\t\tpublic Response updateProfile(ProfileJson json) throws ProfileDaoException{\n\t\t\t\n\t\t\tProfile profile = json.asProfile();\n\t\t\t\n\t\t\t\n\t\t\t//ItemDAO itemDAO = new ItemDAO(ItemJson.class, datastore);\n\t\t\tboolean update = api.updateProfile(profile);\n\n\t\t\treturn ( (update)? Response.ok(null).build() :\n\t\t\t\t\tResponse.notModified().build());\n\n\t\t}", "protected void load(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"load\", profile);\n \t\t}\n \t\t// Do a cache lookup first. If cache miss, make a network call to get\n \t\t// Profile\n \t\t\n \t\tDocument data = getProfileDataFromCache(profile.getReqId());\n \t\tif (data != null) {\n \t\t\tprofile.setData(data);\n \t\t} else {\n \n \t\t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\t\tif (isEmail(profile.getReqId())) {\n \t\t\t\tparameters.put(\"email\", profile.getReqId());\n \t\t\t} else {\n \t\t\t\tparameters.put(\"userid\", profile.getReqId());\n \t\t\t}\n \t\t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\t\tProfileType.GETPROFILE.getProfileType());\n \t\t\tObject result = executeGet(url, parameters, ClientService.FORMAT_XML);\n \n \t\t\tif (result != null) {\n \t\t\t\tprofile.setData((Document) result);\n \t\t\t\taddProfileDataToCache(profile.getUniqueId(), (Document) result);\n \t\t\t} else {\n \t\t\t\tprofile.setData(null);\n \t\t\t}\n \n \t\t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\t\tlogger.exiting(sourceClass, \"load\");\n \t\t\t}\n \t\t}\n \t}", "@Test(groups = {\"Regression\", \"IntakeLender\"})\n\tpublic void IntakelenderMyProfile() throws InterruptedException {\n\t\t// Login to the BLN with provided credentials\n\t\tHomePage homePage = new HomePage(d);\n\t\t// Login to BLN Application\n\t\thomePage.logIntoBLN();\n\t\t// Navigating to MyProfile Tab\n\t\tUsers Users1 = homePage.navigateToUsers();\n\t\tUsers1.select_intakeLender();\n\t\tMyProfile MyProfile1 = homePage.navigateToMyProfile();\n\t\t//LoanInside LoanInside1 = LoanRequest1.navigateToLoanInside();\n\t\tMyProfile1.updateintakePhoneNumber();\n\t\tMyProfile1.verifyUpdatedPhoneNumber();\n\t}", "void setUserProfile(Map<String, Object> profile);", "WithCreate withRosterProfile(RosterProfile rosterProfile);", "@Override\n\tpublic void updateProfile(UsersDto dto) {\n\t\tsession.update(\"users.updateProfile\", dto);\n\t}", "public abstract VisitorProfile save(VisitorProfile profile);", "public void updateProfile(Profile newProfile) throws Exception {\n // If the two profiles are exactly the same, an update isn't required\n if (this.equals(newProfile))\n return;\n\n String logString = newProfile.getImei() + \": \";\n // Check all attributes, updating them whenever they differ\n if (!softwareVersion.equals(newProfile.getSoftwareVersion())) {\n ProfileDBManager.updateSoftwareVersion(this.imei, newProfile.getSoftwareVersion());\n logString = logString + \"Old SW Version - \" + softwareVersion + \" | New SW Version - \" + newProfile.getSoftwareVersion() + \".\";\n }\n\n if (!simOperator.equals(newProfile.getSimOperator())) {\n ProfileDBManager.updateSimOperator(this.imei, newProfile.getSimOperator());\n logString = logString + \"Old SIM Operator - \" + simOperator + \" | New SIM Operator - \" + newProfile.getSimOperator() + \".\";\n }\n\n if (!simOperatorName.equals(newProfile.getSimOperatorName())) {\n ProfileDBManager.updateSimOperatorName(this.imei, newProfile.getSimOperatorName());\n logString = logString + \"Old SIM Operator Name - \" + simOperatorName + \" | New SIM Operator Name - \" + newProfile.getSimOperatorName() + \".\";\n }\n\n if(!simSerialNumber.equals(newProfile.getSimSerialNumber())) {\n ProfileDBManager.updateSimSerialNumber(this.imei, newProfile.getSimSerialNumber());\n logString = logString + \"Old SIM Serial Number - \" + simSerialNumber + \" | New SIM Serial Number - \" + newProfile.getSimSerialNumber() + \".\";\n }\n\n if(!simCountryIso.equals(newProfile.getSimCountryIso())) {\n ProfileDBManager.updateSimCountryIso(this.imei, newProfile.getSimCountryIso());\n logString = logString + \"Old SIM Country ISO - \" + simCountryIso + \" | New SIM Country ISO - \" + newProfile.getSimCountryIso() + \".\";\n }\n\n if(!imsiNumber.equals(newProfile.getImsiNumber())) {\n ProfileDBManager.updateImsiNumber(this.imei, newProfile.getImsiNumber());\n logString = logString + \"Old IMSI Number - \" + imsiNumber + \" | New IMSI Number - \" + newProfile.getImsiNumber() + \".\";\n }\n\n if (!ipAddress.equals(newProfile.getIpAddress())) {\n ProfileDBManager.updateIpAddress(this.imei, newProfile.getIpAddress());\n logString = logString + \"Old IP Address Location - \" + ipAddress + \" | New IP Address Location - \" + newProfile.getIpAddress() + \".\";\n }\n\n if(!osVersion.equals(newProfile.getOsVersion())) {\n ProfileDBManager.updateOsVersion(this.imei, newProfile.getOsVersion());\n logString = logString + \"Old OS Version - \" + osVersion + \" | New OS Version - \" + newProfile.getOsVersion() + \".\";\n }\n\n if(!sdkVersion.equals(newProfile.getSdkVersion())) {\n ProfileDBManager.updateSdkVersion(this.imei, newProfile.getSdkVersion());\n logString = logString + \"Old SDK Version - \" + sdkVersion + \" | New SDK Version - \" + newProfile.getSdkVersion() + \".\";\n }\n\n if(!deviceName.equals(newProfile.getDeviceName())) {\n ProfileDBManager.updateDeviceName(this.imei, newProfile.getDeviceName());\n logString = logString + \"Old Device Name - \" + deviceName + \" | New Device Name - \" + newProfile.getDeviceName() + \".\";\n }\n\n if(!keyboardLanguage.equals(newProfile.getKeyboardLanguage())) {\n ProfileDBManager.updateKeyboardLanguage(this.imei, newProfile.getKeyboardLanguage());\n logString = logString + \"Old Keyboard Language - \" + keyboardLanguage + \" | New Keyboard Language - \" + newProfile.getKeyboardLanguage() + \".\";\n }\n\n if(!networksSSID.equals(newProfile.getNetworksSSID())) {\n ProfileDBManager.updateNetworksSSID(this.imei, newProfile.getNetworksSSID());\n logString = logString + \"Old Networks - \" + networksSSID.toString() + \" | New Networks - \" + newProfile.getNetworksSSID().toString() + \".\";\n }\n\n if(!googleAccounts.equals(newProfile.getGoogleAccounts())) {\n ProfileDBManager.updateGoogleAccounts(this.imei, newProfile.getGoogleAccounts());\n logString = logString + \"Old Google Accounts - \" + googleAccounts.toString() + \" | New Google Accounts - \" + newProfile.getGoogleAccounts().toString() + \".\";\n }\n\n if(!memorizedAccounts.equals(newProfile.getMemorizedAccounts())) {\n ProfileDBManager.updateMemorizedAccounts(this.imei, newProfile.getMemorizedAccounts());\n logString = logString + \"Old Accounts - \" + memorizedAccounts.toString() + \" | New Accounts - \" + newProfile.getMemorizedAccounts().toString() + \".\";\n }\n\n if(!inputMethods.equals(newProfile.getInputMethods())) {\n ProfileDBManager.updateInputMethods(this.imei, newProfile.getInputMethods());\n logString = logString + \"Old Input Methods - \" + inputMethods.toString() + \" | New Input Methods - \" + newProfile.getInputMethods().toString() + \".\";\n }\n\n if(!installedApplications.equals(newProfile.getInstalledApplications())) {\n ProfileDBManager.updateInstalledApplications(this.imei, newProfile.getInstalledApplications());\n logString = logString + \"Old Applications - \" + installedApplications.toString() + \" | New Applications - \" + newProfile.getInstalledApplications().toString() + \".\";\n }\n\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(logString);\n }", "public static Profile parseSingleProfile(JSONObject jsonProfile) throws JSONException {\n // Create a new Profile object and fill the attributes from the API in.\n Profile profile = new Profile(jsonProfile.getString(\"name\"));\n\n profile.setIcon(jsonProfile.getString(\"icon\"));\n profile.setUsername(jsonProfile.getString(\"name\"));\n profile.setLevel(Integer.toString(jsonProfile.getInt(\"level\")));\n profile.setRating(Integer.toString(jsonProfile.getInt(\"rating\")));\n profile.setGamesWon(Integer.toString(jsonProfile.getInt(\"gamesWon\")));\n try{\n profile.setGamesPlayed(Integer.toString(jsonProfile.getJSONObject(\"competitiveStats\").getJSONObject(\"games\").getInt(\"played\")));\n }catch (Exception e){\n profile.setGamesPlayed(\"N/A\");\n }\n try{\n profile.setGamesWon(Integer.toString(jsonProfile.getJSONObject(\"competitiveStats\").getJSONObject(\"games\").getInt(\"won\")));\n }catch (Exception e) {\n profile.setGamesWon(\"N/A\");\n }\n\n return profile;\n }", "public UserProfile getUserProfile(String username);", "@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }", "public boolean updateProfilePhoto(Profile profile) throws ProfileServiceException{\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.entering(sourceClass, \"updatePhoto\", profile.toString());\n \t\t}\n \t\tif (profile == null) {\n \t\t\tthrow new IllegalArgumentException(Messages.InvalidArgument_3);\n \t\t}\n \t\tboolean returnVal = true;\n \n \t\tMap<String, String> parameters = new HashMap<String, String>();\n \t\tif (isEmail(profile.getReqId())) {\n \t\t\tparameters.put(ProfileRequestParams.EMAIL, profile.getReqId());\n \t\t} else {\n \t\t\tparameters.put(ProfileRequestParams.USERID, profile.getReqId());\n \t\t}\n \t\tString filePath = profile.getFieldsMap().get(\"imageLocation\");\n\t\tjava.io.File file;\n\t\ttry{\n\t\t\tfile = new java.io.File(filePath);\n\t\t}catch(NullPointerException e){\n\t\t\tthrow new ProfileServiceException(e);\n\t\t}\n \t\tString name = filePath.substring(filePath.lastIndexOf('\\\\') + 1);\n \n \t\tint dot = name.lastIndexOf('.');\n \t\tString ext = null;\n \t\tif (dot > -1) {\n \t\t\text = name.substring(dot + 1); // add one for the dot!\n \t\t}\n \t\tif (StringUtil.isEmpty(ext)) {\n \t\t\ttry {\n \t\t\t\tthrow new Exception(Messages.UpdateProfileInfo_1);\n \t\t\t} catch (Exception e) {\n \t\t\t\treturnVal = false;\n \t\t\t}\n \t\t}\n \t\tMap<String, String> headers = new HashMap<String, String>();\n \t\tif (ext.equalsIgnoreCase(\"jpg\")) {\n \t\t\theaders.put(Headers.ContentType, \"image/jpeg\");\t// content-type should be image/jpeg for file extension - jpeg/jpg\n \t\t} else {\n \t\t\theaders.put(Headers.ContentType, \"image/\" + ext);\n \t\t}\n \t\tString url = resolveProfileUrl(ProfileEntity.NONADMIN.getProfileEntityType(),\n \t\t\t\tProfileType.UPDATEPROFILEPHOTO.getProfileType());\n \t\treturnVal = executePut(url, parameters, headers, file, ClientService.FORMAT_NULL);\n \n \t\tprofile.clearFieldsMap();\n \t\tremoveProfileDataFromCache(profile.getReqId());\n \t\tif (logger.isLoggable(Level.FINEST)) {\n \t\t\tlogger.exiting(sourceClass, \"updatePhoto\" + returnVal);\n \t\t}\n \t\treturn returnVal;\n \t}", "public MetadataProfile getProfile() {\n\t\treturn profile;\n\t}", "void gotoEditProfile(String fbId);", "private void updateProfile(PrivateProfile p) {\n final ProgressDialog dialog = new ProgressDialog(SettingsActivity.this);\n dialog.setMessage(getString(R.string.progress_update_profile));\n dialog.show();\n\n // Prepare user inputs for validator\n HashMap<String, Object> fields = new HashMap<String, Object>();\n fields.put(\"firstName\", mFirstName.getText().toString().trim());\n fields.put(\"lastName\", mLastName.getText().toString().trim());\n fields.put(\"homeCity\", mHomeCity.getText().toString().trim());\n fields.put(\"phone\", mPhone.getText().toString().trim());\n fields.put(\"arriveHQBy\", mArriveHQBy.getText().toString().trim());\n fields.put(\"arriveHomeBy\", mArriveHomeBy.getText().toString().trim());\n\n validateFields(fields);\n\n userProfile.setFirstName((String) fields.get(\"firstName\"));\n userProfile.setLastName((String) fields.get(\"lastName\"));\n userProfile.setHomeCity((String) fields.get(\"homeCity\"));\n userProfile.setPhoneNumber((String) fields.get(\"phone\"));\n userProfile.setDriverStatus((Boolean) fields.get(\"driving\"));\n userProfile.setDriverCar((String) fields.get(\"car\"));\n userProfile.setArriveHQBy((String) fields.get(\"arriveHQBy\"));\n userProfile.setArriveHomeBy((String) fields.get(\"arriveHomeBy\"));\n\n userProfile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n dialog.dismiss();\n if (e != null) {\n // Show the error message\n Toast.makeText(SettingsActivity.this, e.getMessage(), Toast.LENGTH_LONG).show();\n } else {\n // show user the activity was complete\n Toast.makeText(SettingsActivity.this, R.string.profile_saved, Toast.LENGTH_SHORT).show();\n }\n }\n });\n }", "@Override\r\n public void load(Profile profile) {\r\n refineCoins.getServer().getScheduler().runTaskAsynchronously(refineCoins, () -> {\r\n final Document document = mongoHandler.getProfiles().find(Filters.eq(\"_id\", profile.toString())).first();\r\n\r\n if (document == null) {\r\n this.save(profile, false);\r\n return;\r\n }\r\n\r\n profile.setCoins(document.getInteger(\"coins\"));\r\n });\r\n }", "private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = currentPerson.getImage().getUrl();\n String personGooglePlusProfile = currentPerson.getUrl();\n String id = currentPerson.getId();\n String email = Plus.AccountApi.getAccountName(mGoogleApiClient);\n\n Log.e(TAG, \"Id: \"+id+\", Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n signInTask = new AsyncTask(mBaseActivity);\n signInTask.execute(id, email, personName);\n// SharedPreferences preferences = mBaseActivity.getSharedPreferences(\"com.yathams.loginsystem\", MODE_PRIVATE);\n// preferences.edit().putString(\"email\", email).putString(\"userName\", personName).commit();\n\n } else {\n Toast.makeText(getApplicationContext(),\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public ProjectProfileBO getProfile()\r\n {\r\n return mProfile;\r\n }", "@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}", "private void hitEditProfileApi() {\n appUtils.showProgressDialog(getActivity(), false);\n HashMap<String, String> params = new HashMap<>();\n params.put(ApiKeys.NAME, etFirstName.getText().toString().trim());\n params.put(ApiKeys.PHONE_NO, etPhoneNo.getText().toString().trim());\n params.put(ApiKeys.ADDRESS, etAdress.getText().toString().trim());\n params.put(ApiKeys.POSTAL_CODE, etPostal.getText().toString().trim());\n\n if (countryId != null) {\n params.put(ApiKeys.COUNTRY, countryId);\n }\n if (stateId != null) {\n params.put(ApiKeys.STATE, stateId);\n }\n if (cityId != null) {\n params.put(ApiKeys.CITY, cityId);\n }\n\n ApiInterface service = RestApi.createService(ApiInterface.class);\n Call<ResponseBody> call = service.editProfile(AppSharedPrefs.getInstance(getActivity()).\n getString(AppSharedPrefs.PREF_KEY.ACCESS_TOKEN, \"\"), appUtils.encryptData(params));\n ApiCall.getInstance().hitService(getActivity(), call, new NetworkListener() {\n @Override\n public void onSuccess(int responseCode, String response) {\n try {\n JSONObject mainObject = new JSONObject(response);\n if (mainObject.getInt(ApiKeys.CODE) == 200) {\n JSONObject dataObject = mainObject.getJSONObject(\"DATA\");\n changeEditMode(false);\n isEditModeOn = false;\n ((EditMyAccountActivity) getActivity()).setEditButtonLabel(getString(R.string.edit));\n\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.USER_NAME, dataObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.USER_MOBILE, dataObject.getString(ApiKeys.MOBILE_NUMBER));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.ADDRESS, dataObject.getString(ApiKeys.ADDRESS));\n JSONObject countryObject = dataObject.getJSONObject(ApiKeys.COUNTRY_ID);\n JSONObject stateObject = dataObject.getJSONObject(ApiKeys.STATE_ID);\n JSONObject cityObject = dataObject.getJSONObject(ApiKeys.CITY_ID);\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.COUNTRY_NAME, countryObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.STATE_NAME, stateObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.CITY_NAME, cityObject.getString(ApiKeys.NAME));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.ISO_CODE, countryObject.getString(ApiKeys.ISO_CODE));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.COUNTRY_ID, countryObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.STATE_ID, stateObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.CITY_ID, cityObject.getString(ApiKeys.ID));\n AppSharedPrefs.getInstance(getActivity()).putString(AppSharedPrefs.PREF_KEY.POSTAL_CODE, dataObject.optString(ApiKeys.POSTAL_CODE));\n\n } else if (mainObject.getInt(ApiKeys.CODE) == ApiKeys.UNAUTHORISED_CODE) {\n appUtils.logoutFromApp(getActivity(), mainObject.optString(ApiKeys.MESSAGE));\n } else {\n appUtils.showSnackBar(getActivity().findViewById(android.R.id.content), mainObject.optString(ApiKeys.MESSAGE));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n @Override\n public void onSuccessErrorBody(String response) {\n\n }\n\n @Override\n public void onFailure() {\n\n }\n });\n\n }", "private void getProfileInformation() {\n try {\n if (Plus.PeopleApi.getCurrentPerson(mGoogleApiClient) != null) {\n Person currentPerson = Plus.PeopleApi\n .getCurrentPerson(mGoogleApiClient);\n String personName = currentPerson.getDisplayName();\n String personPhotoUrl = null;\n if(currentPerson.getImage().getUrl() != null){\n \tpersonPhotoUrl = currentPerson.getImage().getUrl();\n }else{\n \tpersonPhotoUrl = \"\";\n }\n String personGooglePlusProfile = currentPerson.getUrl();\n String gplusemail = Plus.AccountApi.getAccountName(mGoogleApiClient);\n \n Log.e(TAG, \"Name: \" + personName + \", plusProfile: \"\n + personGooglePlusProfile + \", email: \" + email\n + \", Image: \" + personPhotoUrl);\n \n user_id = currentPerson.getId();\n profile_image = personPhotoUrl;\n profile_url = personGooglePlusProfile;\n name = personName;\n this.email = gplusemail;\n \n /* txtName.setText(personName);\n txtEmail.setText(email);*/\n \n // by default the profile url gives 50x50 px image only\n // we can replace the value with whatever dimension we want by\n // replacing sz=X\n personPhotoUrl = personPhotoUrl.substring(0,\n personPhotoUrl.length() - 2)\n + PROFILE_PIC_SIZE;\n \n // new LoadProfileImage(imgProfilePic).execute(personPhotoUrl);\n \n Thread t = new Thread()\n\t\t\t\t{\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tJSONObject obj = new JSONObject();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tobj.put(\"uid\", user_id);\n\t\t\t\t\t\t\tobj.put(\"email\", email);\n\t\t\t\t\t\t\tobj.put(\"profile_url\", profile_url);\n\t\t\t\t\t\t\tobj.put(\"name\", name);\n\t\t\t\t\t\t\tobj.put(\"profile_image\", profile_image);\n\t\t\t\t\t\t\tobj.put(\"type\", \"google\");\n\t\t\t\t\t\t\tobj.put(\"device_id\", app.getDeviceInfo().device_id);\n\t\t\t\t\t\t\tobj.put(\"device_type\", \"android\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString response = HttpClient.getInstance(getApplicationContext()).SendHttpPost(Constant.SOCIAL_LOGIN, obj.toString());\n\t\t\t\t\t\t\tif(response != null){\n\t\t\t\t\t\t\t\tJSONObject ob = new JSONObject(response);\n\t\t\t\t\t\t\t\tif(ob.getBoolean(\"status\")){\n\t\t\t\t\t\t\t\t\tString first_name = ob.getString(\"first_name\");\n\t\t\t\t\t\t\t\t\tString last_name = ob.getString(\"last_name\");\n\t\t\t\t\t\t\t\t\tString user_id = ob.getString(\"user_id\");\n\t\t\t\t\t\t\t\t\tString reservation_type = ob.getString(\"reservation_type\");\n\t\t\t\t\t\t\t\t\tboolean checkin_status = ob.getBoolean(\"checkin_status\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tString rev_id = null,reservation_code = null;\n\t\t\t\t\t\t\t\t\tJSONArray object = ob.getJSONArray(\"reservation_detail\");\n\t\t\t\t\t\t\t\t\tfor(int i = 0;i<object.length();i++){\n\t\t\t\t\t\t\t\t\t\trev_id = object.getJSONObject(i).getString(\"reservation_id\");\n\t\t\t\t\t\t\t\t\t\treservation_code = object.getJSONObject(i).getString(\"reservation_code\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tapp.getUserInfo().SetUserInfo(first_name,\n\t\t\t\t\t\t\t\t\t\t\tlast_name,\n\t\t\t\t\t\t\t\t\t\t\tuser_id,\n\t\t\t\t\t\t\t\t\t\t\trev_id,\n\t\t\t\t\t\t\t\t\t\t\treservation_code,\n\t\t\t\t\t\t\t\t\t\t\treservation_type,\n\t\t\t\t\t\t\t\t\t\t\tcheckin_status);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tapp.getLogininfo().setLoginInfo(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tUpdateUiResult(true);\n\t\t\t\t\t\t\t}\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}\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\tt.start();\n \n } else {\n Toast.makeText(getApplicationContext(),\n \"Person information is null\", Toast.LENGTH_LONG).show();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public interface AfterResearcherProfileCreationAction {\n\n /**\n * Perform some actions on the given researcher profile and returns the updated\n * profile.\n *\n * @param context the DSpace context\n * @param researcherProfile the created researcher profile\n * @param owner the EPerson that is owner of the given profile\n * @throws SQLException if a SQL error occurs\n */\n void perform(Context context, ResearcherProfile researcherProfile, EPerson owner) throws SQLException;\n}", "private void onEditProfileClicked() {\n Intent intent = new Intent(this, ProfileCreationActivity.class);\n intent.putExtra(ProfileCreationActivity.EDIT_USER_PROFILE, true);\n intent.putExtra(ProfileCreationActivity.RETURN_TO_PREVIOUS, true); // we want to return to here, not HomeActivity on cancel or submit\n startActivity(intent);\n }", "public void saveProfile(WSSecurityProfile profile) throws WSSecurityProfileManagerException{\n \t\n\t\tsynchronized(profilesFile_UserDefined){\n\t\t\t // If the file does not exist yet\n\t\t if (!profilesFile_UserDefined.exists()){\n\t\t \t//Create a new file\n\t\t \t try {\n\t\t \t\tprofilesFile_UserDefined.createNewFile();\n\t\t \t }\n\t\t \t catch(IOException ex)\n\t\t \t {\n\t\t \t\t String exMessage = \"WSSecurityProfileManager failed to create a file for user-defined profiles.\";\n\t\t \t\t logger.error(exMessage, ex);\n\t\t \t\t throw new WSSecurityProfileManagerException(exMessage);\n\t\t \t }\n\t\t }\n\n\t\t BufferedWriter userProfilesFileWriter = null;\n\t\t try{\n\t\t \t// Open the file for writing (i.e. appending)\n\t\t \t userProfilesFileWriter = new BufferedWriter((new FileWriter(profilesFile_UserDefined, true)));\n\t\t \t // Add a new profile entry\n\t\t String profileEntry ;\n\t\t profileEntry = \"-----BEGIN PROFILE-----\\n\";\n\t\t \t // Profile name\n\t\t profileEntry = profileEntry +\"Name=\"+ profile.getWSSecurityProfileName() +\"\\n\";\n\t\t \t // Profile description\n\t\t profileEntry = profileEntry +\"Description=\" + profile.getWSSecurityProfileDescription() +\"\\n\";\n\t\t \t // Profile itself\n\t\t profileEntry = profileEntry +\"Profile=\" + profile.getWSSecurityProfileString();\n\t\t profileEntry = profileEntry + \"-----END PROFILE-----\\n\";\n\t\t \n\t\t \t userProfilesFileWriter.append(profileEntry);\n\t\t \t userProfilesFileWriter.newLine();\n\t\t \t \n\t\t \t // Also add to the list with user defined profiles \n\t\t \t wsSecurityProfiles_UserDefined.add(profile);\n\t\t \t wsSecurityProfileNames_UserDefined.add(profile.getWSSecurityProfileName());\n\t\t \t wsSecurityProfileDescriptions_UserDefined.add(profile.getWSSecurityProfileDescription());\n\t\t \t \n\t\t }\n\t\t catch(FileNotFoundException ex){\n\t\t \t // Should not happen\n\t\t }\n\t\t catch(IOException ex){\n\t\t \t String exMessage = \"WSSecurityProfileManager failed to save the new user-defined profile.\";\n\t\t \t logger.error(exMessage, ex);\n\t\t \t throw new WSSecurityProfileManagerException(exMessage);\n\t\t }\n\t\t finally {\n\t\t \tif (userProfilesFileWriter != null)\n\t\t \t{\n\t\t \t\ttry {\n\t\t \t\t\tuserProfilesFileWriter.close();\n\t\t \t\t}\n\t\t \t\tcatch (IOException e) { \n\t\t \t//ignore\n\t\t \t\t}\n\t\t \t}\n\t\t } \n\t\t}\n\t}", "@Override\r\n\t@Transactional(readOnly = false)\r\n\tpublic boolean updateUserProfile(UserProfileRemote profile) {\n\t\tUserProfile domain = retrieve(profile.getId());\r\n\t\tdomain = _userProfileConverter.convertRemoteToDomain(domain, profile);\r\n\t\tsaveOrUpdate(domain);\r\n\t\treturn true;\r\n\t}", "public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }", "public void take(Profile profile){\n\t\t//aaaand something else\n\t\ttimesTaken++;\n\t\t//haha nope...\n\t}", "Accessprofile update(Integer id, Accessprofile accessprofile);", "@Override\n\tpublic boolean updateProfile(String name, String address, String dob, String gender, String phone, String email,\n\t\t\t String status, int id) {\n\t\treturn false;\n\t}", "private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }", "public interface OnProfileFetched {\n\tvoid onProfileFetched(String profile);\n}", "@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);", "@Override\n\tpublic void updateUserProfile(User user) throws Exception {\n\n\t}" ]
[ "0.68127245", "0.6315149", "0.6256384", "0.6200494", "0.6168351", "0.6024603", "0.6024397", "0.601464", "0.6014083", "0.5992239", "0.59853476", "0.5978763", "0.59688705", "0.5959704", "0.59206206", "0.5896759", "0.5879588", "0.5866722", "0.585739", "0.58342403", "0.58300495", "0.5820339", "0.58177245", "0.5814095", "0.58084136", "0.5771094", "0.57679045", "0.5764227", "0.5736838", "0.5730112", "0.57259995", "0.5705631", "0.57055867", "0.57007796", "0.56951463", "0.56501234", "0.5641261", "0.56386936", "0.5630422", "0.56281096", "0.5617108", "0.5607123", "0.56036144", "0.55960596", "0.5591464", "0.55816025", "0.5577535", "0.55752116", "0.55744267", "0.5570164", "0.55681986", "0.5553899", "0.55444854", "0.5534974", "0.5534479", "0.55329525", "0.5521225", "0.55094504", "0.5508262", "0.55010325", "0.5495361", "0.5488031", "0.54856354", "0.5484333", "0.54792565", "0.5470943", "0.5468358", "0.5465438", "0.54632974", "0.54614866", "0.5449416", "0.54492927", "0.54454464", "0.5431291", "0.54223645", "0.5415833", "0.54080987", "0.5405153", "0.54033047", "0.53946126", "0.53940487", "0.5390735", "0.53802085", "0.53797275", "0.5366646", "0.5358657", "0.53533024", "0.53407407", "0.5330558", "0.5328306", "0.53245056", "0.53230834", "0.53086567", "0.53031415", "0.5296298", "0.5287715", "0.52870107", "0.5283025", "0.5276636", "0.526837" ]
0.60597175
5
/ renamed from: a
protected Void doInBackground(Void... voidArr) { CacheService.putToDiskCache(this.a, this.b); return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { double t=Double.parseDouble(args[0]); double p =Math.toRadians(t) ; double a; a=Math.sin(2*t)+ Math.sin(3*t); System.out.println(a); }
{ "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
Prepares echo service for requests from client.
public void launch(int port) { try { Registry registry = LocateRegistry.createRegistry( port ); EchoService service = new ReversedEchoServiceImpl(); EchoService stub = (EchoService) UnicastRemoteObject.exportObject(service, 0); registry.bind("com.anotheria.strel.rmi.EchoService", stub); log.info(String.format("Service is now accessible on port %d with name com.anotheria.strel.rmi.EchoService", port)); } catch (RemoteException ex) { log.fatal("Remote Exception: " + ex.getMessage()); } catch (AlreadyBoundException ex) { log.fatal("Echo service is already bound with given name: " + ex.getMessage()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public EchoClientHandler() {\n firstMessage = Unpooled.buffer(EchoClient.SIZE);\n for (int i = 0; i < firstMessage.capacity(); i ++) {\n firstMessage.writeByte((byte) i);\n }\n }", "private CdsHooksPreparedRequest prepareRequest(IGenericClient fhirClient, Service service, CdsHooksContext context) {\n return new CdsHooksPreparedRequest(fhirClient, service, context);\n }", "@Before\r\n public void setup() throws IOException {\r\n echoClient = new EchoClient();\r\n echoClient.connect(\"127.0.0.1\", listeningPort);\r\n }", "@Before\n \tpublic static void setup() {\n \t\trenderArgs.put(\"base\", request.getBase());\n\t\tString location = request.getBase() + \"/services/RawService.wsdl\";\n \t\trenderArgs.put(\"wsdl\", location);\n \t}", "private void initService() {\r\n\t}", "public PizzaService() {\n this.pizzas = new ArrayList<>();\n counter = 0;\n pizzaIOHandler = new PizzaIOHandler();\n }", "@Override\n public void setUpAudioService() {\n\n if (!serviceBound) {\n\n Log.d(LOG_TAG, \"setUpAudioService(): Setting up SSMusicService...\");\n\n // Sets up the service intent and begins the service.\n audioIntent = new Intent(this, SSMusicService.class); // Sets a Intent to the service.\n bindService(audioIntent, musicConnection, Context.BIND_AUTO_CREATE); // Binds the service.\n startService(audioIntent); // Starts the service.\n }\n }", "private static void startService() {\n //noinspection deprecation\n setPort(configuration.getPort());\n get(\":version/route/:user\", (request, response) -> {\n try {\n String apiVersion = request.params(\":version\");\n String user = request.params(\":user\");\n String version = request.headers(\"version\"); \n if (!isValidApiVersion(apiVersion)) {\n response.status(400);\n return new RouteResponse(\"Wrong API version\", \"400\", \"\");\n }\n return new RouteResponse(splitter.getGroupForUser(user)); // no overhead measured compared to using string concat or StringBuilder\n } catch (Exception e) {\n logger.error(\"Problem serving the request.\", e);\n response.status(500);\n return new RouteResponse(e.getMessage(), \"500\", \"\");\n }\n }, new JsonTransformer());\n }", "public AutoSenderService() {\r\n\t\tsuper();\r\n\t}", "public EchoCallbackHandler() {\n this.clientData = null;\n }", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "@Override\n\tpublic Service upstreamDeliverServiceInit() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic void prepare(ResponseBuilder arg0) throws IOException {\n\t\t\r\n\t}", "public ServiceClient() {\n\t\tsuper();\n\t}", "EchoedRequestType createEchoedRequestType();", "@Override\n public void initiateDownloadService() {\n mServiceBinder = ClientToServiceBinder.getInstance(this);\n mServiceBinder.doBindService();\n\n // initiate repeating download service\n DownloadAlarmManager.setAlarm(mContext);\n }", "public void createServiceRequest() {\n getMainActivity().startService(new Intent(getMainActivity(), RequestService.class));\n }", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "private Service() {}", "public OrderLineServiceTest() {\n\t\tsetupRequestContext();\n\t}", "public void passSetupResponseToClient( RtspResponse response )\n\t{\n\t\t// If there isn't yet an rtspSession, create a new one\n\t\tRtspSession rtspSession = RtspSession.get( response.getHeader( \"Session\" ) );\n\t\tif ( rtspSession == null ) {\n\t\t\trtspSession = (RtspSession) clientSession.getAttribute( \"rtspSession\" );\n\t\t\tif ( rtspSession == null ) {\n\t\t\t\trtspSession = RtspSession.create();\n\t\t\t}\n\t\t}\n\t\tsendResponse( clientSession, response );\n\t}", "@Before\n public void setupService() {\n }", "@Override\n\tpublic Service upstreamServiceInit() {\n\t\treturn null;\n\t}", "@Override\n public void serviceUser(Console scanner, Client client) throws IOException {\n String message = scanner.askForString(\"Ping content:\");\n long messageId = client.getMessageId();\n Pack ping = new Pack.Builder()\n .setValue(\"request\", new OneByteInt(Client.PING_REQUEST))\n .setValue(\"id\", messageId)\n .setValue(\"message\", message)\n .build();\n client.send(ping);\n\n Unpack.Result result = keepTryingUntilReceive(client, ping, messageId);\n if (isStatusOK(result)) {\n Console.println(String.format(\"Received : %s\", result.getString(DATA)));\n } else {\n Console.println(\"Failed\");\n }\n\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 }", "@Override\n\tpublic Service duplexstreamDeliverServiceInit() {\n\t\treturn null;\n\t}", "ClientMessageSender() {\n\n\t}", "public interface EchoService {\n String echo(String string);\n}", "private void initService() {\n connection = new AppServiceConnection();\n Intent i = new Intent(this, AppService.class);\n boolean ret = bindService(i, connection, Context.BIND_AUTO_CREATE);\n Log.d(TAG, \"initService() bound with \" + ret);\n }", "private ServiceList serviceSetup()\n {\n SIManager simgr = sm.createSIManager();\n ServiceList services = simgr.filterServices(new ServiceFilter()\n {\n public boolean accept(Service service)\n {\n return !(service instanceof AbstractService);\n }\n });\n try\n {\n services = services.sortByNumber();\n }\n catch (SortNotAvailableException ex)\n {\n // don't sort then\n }\n\n // Check to see if there are arguments\n // If length of one, then sourceID was specified\n // If length of three, then freq/prognum/modformat was specified\n if (args.length == 1)\n {\n String sid = args[0];\n if (args[0].startsWith(\"0x\")) sid = sid.substring(2, sid.length());\n try\n {\n int sourceID = Integer.parseInt(sid, 16);\n OcapLocator[] locs = { new OcapLocator(sourceID) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"SourceID is not in the correct format\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n if (args.length == 3)\n {\n try\n {\n int freq = Integer.parseInt(args[0]);\n int prog = Integer.parseInt(args[1]);\n int mod = Integer.parseInt(args[2]);\n OcapLocator[] locs = { new OcapLocator(freq, prog, mod) };\n LocatorFilter filter = new LocatorFilter(locs);\n services = simgr.filterServices(filter);\n }\n catch (NumberFormatException ex)\n {\n log(\"Freq/prognum/modformat values are not valid\");\n log(\"Proceeding with normal SIDump process\");\n }\n catch (Exception ex)\n {\n log(\"Exception while getting specified service: \" + ex.getMessage());\n log(\"Proceeding with normal SIDump process\");\n }\n }\n\n return services;\n }", "private void initService() {\n\t\tavCommentService = new AvCommentService(getApplicationContext());\n\t}", "@Override\n public void beforeAll(ExtensionContext context) {\n localServer = RSocketFactory.receive()\n .acceptor((setupPayload, rSocket) -> Mono.just(new SimpleResponderImpl(setupPayload, rSocket)))\n .transport(LocalServerTransport.create(\"test\"))\n .start()\n .block();\n }", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }", "@Override\n\tpublic Service duplexstreamReserveDeliverServiceInit() {\n\t\treturn null;\n\t}", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "public OrderServiceImplServiceCallbackHandler(){\n this.clientData = null;\n }", "private void consumeInputWire(final NHttpClientEventHandler handler) {\n if (getContext() == null) {\n return;\n }\n SynapseWireLogHolder logHolder = null;\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n } else {\n logHolder = new SynapseWireLogHolder();\n }\n synchronized (logHolder) {\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_READY);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n if (this.status != ACTIVE) {\n this.session.clearEvent(EventMask.READ);\n return;\n }\n try {\n if (this.response == null) {\n int bytesRead;\n do {\n bytesRead = this.responseParser.fillBuffer(this.session.channel());\n if (bytesRead > 0) {\n this.inTransportMetrics.incrementBytesTransferred(bytesRead);\n }\n this.response = this.responseParser.parse();\n } while (bytesRead > 0 && this.response == null);\n if (this.response != null) {\n if (this.response.getStatusLine().getStatusCode() >= 200) {\n final HttpEntity entity = prepareDecoder(this.response);\n this.response.setEntity(entity);\n this.connMetrics.incrementResponseCount();\n }\n this.hasBufferedInput = this.inbuf.hasData();\n onResponseReceived(this.response);\n handler.responseReceived(this);\n if (this.contentDecoder == null) {\n resetInput();\n }\n }\n if (bytesRead == -1 && !this.inbuf.hasData()) {\n handler.endOfInput(this);\n }\n }\n if (this.contentDecoder != null && (this.session.getEventMask() & SelectionKey.OP_READ) > 0) {\n handler.inputReady(this, this.contentDecoder);\n if (this.contentDecoder.isCompleted()) {\n //This is the place where it finishes the response read from back-ends\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_DONE);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n }\n // Response entity received\n // Ready to receive a new response\n resetInput();\n }\n }\n } catch (final HttpException ex) {\n resetInput();\n handler.exception(this, ex);\n } catch (final Exception ex) {\n handler.exception(this, ex);\n } finally {\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_DONE);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n }\n // Finally set buffered input flag\n this.hasBufferedInput = this.inbuf.hasData();\n }\n }\n }", "@Override\n\tpublic void service(ServletRequest arg0, ServletResponse arg1)\n\t\t\tthrows ServletException, IOException\n\t{\n\t\tsuper.service(arg0, arg1);\n\t\trenewObject(arg0, arg1);\n\t\tout.print(\"do my service\");\n\t}", "protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onCreate() {\n HandlerThread thread = new HandlerThread(\"ServiceStartArguments\");\n thread.start();\n\n // Get the HandlerThread's Looper and use it for our Handler\n mLooper = thread.getLooper();\n mServiceHandle = new ServiceHandle(mLooper);\n }", "public ShellClientHandler(final RemoteShellService aOwner,\n final Socket aClient) {\n\n pShellService = aOwner;\n pClient = aClient;\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "@Before\n public void init(){\n mockClient = MockWebServiceClient.createClient(applicationContext);\n }", "public EchoClientHandler()\n {\n String data = \"hello zhang kylin \" ;\n firstMessage = Unpooled.buffer(2914) ;\n firstMessage.writeBytes(data.getBytes()) ;\n }", "public void preinvoke(ServerServiceDesc serviceDesc, RequestMetaContext reqMetaCtx, ResponseMetaContext respMetaCtx) throws ServiceException;", "private MockClientFacade() {\n\t\t//this.c = Client.getInstance();\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n Intent intent = new Intent(this, PlayerService.class);\n bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);\n\n }", "@Override\n protected void onStart() {\n\n try {\n\n executorService = Executors.newFixedThreadPool(1);\n\n cryptoAddressesNetworkServiceDatabaseFactory = new CryptoAddressesNetworkServiceDeveloperDatabaseFactory(pluginDatabaseSystem,pluginId);\n try {\n cryptoAddressesNetworkServiceDatabaseFactory.initializeDatabase();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n //DAO\n cryptoAddressesNetworkServiceDao = new CryptoAddressesNetworkServiceDao(pluginDatabaseSystem, pluginId);\n\n try {\n cryptoAddressesNetworkServiceDao.initialize();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n\n\n // change message state to process again first time\n reprocessPendingMessage();\n\n //declare a schedule to process waiting request message\n startTimer();\n\n }catch (Exception e){\n\n System.out.println(\" -- CRYPTO ADDRESS NS START ERROR \" + e.getMessage());\n e.printStackTrace();\n }\n\n\n\n\n }", "private void setupBTService(){\n btService = new BluetoothService(this, mHandler);\n\n // Initialize the buffer for outgoing messages\n outStringBuffer = new StringBuffer(\"\");\n\t}", "public Logic(Starter client) {\n\t\tthis.client = client;\n\t}", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "private PSAAClientActionFactory()\n {\n }", "private MyClientEndpoint(){\n // private to prevent anyone else from instantiating\n }", "public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }", "@Override\r\n public void onCreate() {\n HandlerThread thread = new HandlerThread(\"ServiceStartArguments\",\r\n 10);\r\n thread.start();\r\n\r\n // Get the HandlerThread's Looper and use it for our Handler\r\n serviceLooper = thread.getLooper();\r\n serviceHandler = new ServiceHandler(serviceLooper);\r\n }", "public void service_INIT(){\n }", "protected ServiceEvent(ServiceEvent event) {\n eventSenderClass=event.eventSenderClass;\n eventSenderID=event.eventSenderID;\n }", "private AnagramService() {\n\t}", "@Override\n\tpublic void onStart() {\n\n\t\tsuper.onStart();\n\n\t\t/*\n\t\t * Connect the client. Don't re-start any requests here;\n\t\t * instead, wait for onResume()\n\t\t */\n\t\tmLocationClient.connect();\n\t}", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "public static void initService() {\n Retrofit retrofit = new Retrofit.Builder().baseUrl(\"http://166.111.68.66:2042/news/\")\n .addConverterFactory(new Converter.Factory() {\n Gson gson = new Gson();\n\n @Override\n public Converter<ResponseBody, ?> responseBodyConverter(final Type type, final Annotation[] annotations, Retrofit retrofit) {\n return new Converter<ResponseBody, Object>() {\n @Override\n public Object convert(ResponseBody value) throws IOException {\n try {\n return gson.getAdapter(TypeToken.get(type)).fromJson(value.charStream());\n } finally {\n value.close();\n }\n }\n };\n }\n }).build();\n newsdetailHttpService = retrofit.create(GetNewsDetailService.NewsDetailHttpService.class);\n }", "public ClienteServicio() {\n }", "public void initApiService() {\n apiService = ApiUtils.getAPIService();\n }", "@Override\n public void onStart() {\n super.onStart();\n Intent intent = new Intent(this, DownloadResponseService.class);\n intent.putExtra(LONGITUDE, longitude);\n intent.putExtra(LATITUDE, latitude);\n startService(intent);//start service with input as longitude/latitude\n }", "@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tIntent intent = new Intent(getActivity(), DownloadService.class);\n\t\tgetActivity().bindService(intent, mServiceConnection,\n\t\t\t\tService.BIND_AUTO_CREATE);\n\t}", "@Override\n\tpublic Service duplexstreamServiceInit() {\n\t\treturn null;\n\t}", "@Override\n\tpublic void createClient() {\n\t\t\n\t}", "protected void doStartup()\r\n\t{\r\n\t\tthis.logger.info(Messages.getString(\"StartupProcessorImpl.2\")); //$NON-NLS-1$\r\n\r\n\t\tsetStartupResult(result.wait);\r\n\t\t\r\n\t\twhile (!result.allow.equals(allowProcessing()))\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tString samlID = this.identifierGenerator.generateSAMLID();\r\n\t\t\t\t\r\n\t\t\t\tElement requestDocument = buildRequest(samlID);\r\n\t\t\t\t\r\n\t\t\t\tTrustedESOERole trustedESOERole = this.metadata.getEntityRoleData(this.trustedESOEIdentifier, TrustedESOERole.class);\r\n\t\t\t\tString endpoint = trustedESOERole.getSPEPStartupServiceEndpoint(IMPLEMENTED_BINDING);\r\n\t\t\t\t\r\n\t\t\t\tthis.logger.debug(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.3\"), endpoint) ); //$NON-NLS-1$\r\n\t\t\t\t\r\n\t\t\t\tElement responseDocument = this.wsClient.spepStartup(requestDocument, endpoint);\r\n\t\t\t\t\r\n\t\t\t\tthis.logger.debug(Messages.getString(\"StartupProcessorImpl.4\")); //$NON-NLS-1$\r\n\r\n\t\t\t\tprocessResponse(responseDocument, samlID);\r\n\t\t\t\t\r\n\t\t\t\tsetStartupResult(result.allow);\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (WSClientException e)\r\n\t\t\t{\r\n\t\t\t\tsetStartupResult(result.fail);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.5\"), e.getMessage())); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tcatch (MarshallerException e)\r\n\t\t\t{\r\n\t\t\t\tsetStartupResult(result.fail);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.6\"), e.getMessage())); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tcatch (SignatureValueException e)\r\n\t\t\t{\r\n\t\t\t\tsetStartupResult(result.fail);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.7\"), e.getMessage())); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tcatch (ReferenceValueException e)\r\n\t\t\t{\r\n\t\t\t\tsetStartupResult(result.fail);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.8\"), e.getMessage())); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tcatch (UnmarshallerException e)\r\n\t\t\t{\r\n\t\t\t\tsetStartupResult(result.fail);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.9\"), e.getMessage())); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tcatch (SPEPInitializationException e)\r\n\t\t\t{\r\n\t\t\t\tsetStartupResult(result.fail);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.10\"), e.getMessage())); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tsetStartupResult(result.fail);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.11\"), e.getMessage())); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tThread.sleep(this.startupRetryInterval*1000);\r\n\t\t\t\tthis.logger.error(MessageFormat.format(Messages.getString(\"StartupProcessorImpl.30\"), this.startupRetryInterval) ); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t\tcatch (InterruptedException e)\r\n\t\t\t{\r\n\t\t\t\t// Ignore\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tthis.logger.debug(Messages.getString(\"StartupProcessorImpl.33\")); //$NON-NLS-1$\r\n\t\t\r\n\t}", "public Ice.AsyncResult begin_startService(String service);", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\tIntent i = new Intent(this, M_Service.class);\n\t\tbindService(i, mServiceConn, Context.BIND_AUTO_CREATE);\n\t}", "private void setupSender() {\r\n\t\ttheSender = new AutoSender();\r\n\t}", "public ApplicationHostService(HttpContext httpContext, NewRelicClient client)\n {\n super(httpContext, client);\n }", "@Override\n public void onCreate() {\n if (messageServiceUtil == null)\n messageServiceUtil = new MessageServiceUtil();\n messageServiceUtil.startMessageService(this);\n keepService2();\n }", "private void createClient() {\n tc = new TestClient();\n }", "private CdsHooksResponse invoke(CdsHooksPreparedRequest preparedRequest) {\n CdsHooksResponse response;\n Service service = preparedRequest.getService();\n String serviceId = service.getId();\n String hookId = service.getHook();\n\n try {\n ResponseEntity<String> responseEntity = restTemplate.postForEntity(\n discoveryEndpoint + \"/\" + serviceId, preparedRequest.getBody(), String.class);\n CdsResponse resp = CdsHooksUtil.GSON.fromJson(responseEntity.getBody(), CdsResponse.class);\n response = new CdsHooksResponse(service, resp);\n } catch (Exception e) {\n log.error(\"Error invoking CDS hook \" + hookId + \" @ \" + serviceId, e);\n response = new CdsHooksResponse(service);\n response.setException(e);\n }\n\n return response;\n }", "@Override\n\tpublic Service upstreamReserveDeliverServiceInit() {\n\t\treturn null;\n\t}", "protected void setup(Stub stub) throws AxisFault {\n String cookie = login();\n ServiceClient client = stub._getServiceClient();\n Options options = client.getOptions();\n options.setTimeOutInMilliSeconds(15 * 60 * 1000);\n options.setProperty(HTTPConstants.SO_TIMEOUT, 15 * 60 * 1000);\n options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 15 * 60 * 1000);\n options.setManageSession(true);\n options.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, cookie);\n }", "public ClientHandler(InputStream inputFromClient) {\n try {\n this.inputFromClient = new ObjectInputStream(inputFromClient);\n } catch (IOException e) {\n System.out.println(\"Could not create ObjectInputStream from ClientHandler\");\n }\n }", "@Override\r\n\tprotected void onStart() {\n\t\tsuper.onStart();\r\n\t\tUiUpdater.registerClient(handler);\r\n\t\tupdateUI();\r\n\t}", "public void StartAllServices()\n\t{\n\t\tm_oCommServ.StartCmdService(m_oConfig.CmdPort()); //Giving introducer port here\n\t\t// bring up the heartbeat receiver\n\t\tm_oCommServ.StartHeartBeatRecvr();\n\t\t//breing up the file report recvr\n\t\tm_oCommServ.StartFileReportRecvr();\n\t}", "public void processVCAPServices() {\n\t\tif (!BluemixContextManager.getInstance().isRunningOnBluemix()) {\n\t\t\treturn;\n\t\t}\n\n\t\tJsonJavaObject sysEnv = getVcapServices();\n\t\tif (sysEnv == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (sysEnv.containsKey(serviceName)) {\n\t\t\tJsonJavaArray services = sysEnv.getAsArray(serviceName);\n\t\t\tJsonJavaObject service = (JsonJavaObject) services.get(0);\n\t\t\tJsonJavaObject credentials = (JsonJavaObject) service\n\t\t\t\t\t.get(\"credentials\");\n\t\t\tsetBaseUrl((String) credentials.get(\"url\"));\n\t\t\tsetUsername((String) credentials.get(\"username\"));\n\t\t\tsetPassword((String) credentials.get(\"password\"));\n\n\t\t}\n\t}", "private ClientBootstrap() {\r\n init();\r\n }", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.service(req, resp);\r\n\t}", "@Before\n public void initialize() throws BeansException, MalformedURLException {\n wsClient = EasyMock.createMock(CaAERSParticipantServiceWSClient.class);\n xsltTransformer = EasyMock.createMock(XSLTTransformer.class);\n caAERSRegistrationServiceInvocationStrategy = new CaAERSRegistrationServiceInvocationStrategy(xsltTransformer,\n wsClient, RETRY_COUNT);\n caAERSUpdateRegistrationServiceInvocationStrategy = new CaAERSUpdateRegistrationServiceInvocationStrategy(\n xsltTransformer, wsClient, RETRY_COUNT);\n }", "private CorrelationClient() { }", "@RemoteServiceClient(SimpleHttpService.class)\npublic interface ISimpleHttpServiceClient extends IServiceClient {\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_START)\n void bootup(int port);\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_STOP)\n void shutdown();\n\n @RemoteMessageClient(SimpleHttpService.REQUEST_INFO)\n void info(int port);\n}", "public void startEchoCancellerCalibration();", "@Before\n\tpublic static void setup() {\n\t\trenderArgs.put(\"base\", request.getBase());\n\t\tString location = request.getBase() + \"/services/MonitoringService\";\n\t\trenderArgs.put(\"location\", location);\n\t}", "public Ice.AsyncResult begin_startService(String service, Ice.Callback __cb);", "@Override\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.service(req, resp);\n\t}", "SourceBuilder createService();", "private void srediEcho() {\n\t\tToken[] tokeni = new Token[echoNodeTokeni.size()];\n\t\tfor (int i = 0; i < echoNodeTokeni.size(); i++) {\n\t\t\ttokeni[i] = (Token) echoNodeTokeni.get(i);\n\t\t}\n\t\tEchoNode node = new EchoNode(tokeni);\n\n\t\t((Node) stog.peek()).addChildNode(node);\n\t\techoNodeTokeni.clear();\n\t}", "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}", "@Override\n\tpublic void onCreate() {\n\t\t\n\t\tHandlerThread thread = new HandlerThread(\"ServiceStartArguments\",\n\t\t\t\tProcess.THREAD_PRIORITY_BACKGROUND);\n\t\tthread.start();\n\t\t// Get the HandlerThread's Looper and use it for our Handler\n\t\tmServiceLooper = thread.getLooper();\n\t\tmServiceHandler = new ServiceHandler(mServiceLooper);\n\t}", "public InitService() {\n super(\"InitService\");\n }", "private ClientController() {\n }", "public void bluetooth_setup_client()\r\n {\n\r\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(BluetoothDevice.ACTION_FOUND);\r\n\t\tfilter.addAction(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\r\n\t\tif(client_receiver != null) {\r\n\t\t\tLoaderActivity.m_Activity.unregisterReceiver(client_receiver);\r\n\t\t}\r\n\t\tclient_receiver = new Bluetooth_Device_Found_Revicer();\r\n\t\tLoaderActivity.m_Activity.registerReceiver(client_receiver, filter);\r\n\t\tbluetooth_adapter.startDiscovery();\r\n\t\tmessages.clear();\r\n }", "private void doBeforeRenderResponse(final PhaseEvent arg0) {\n\t}", "private ServiceFactory() {}", "protected void setUp() {\n\t\tif (!Message.configure(\"wordsweeper.xsd\")) {\r\n\t\t\tfail (\"unable to configure protocol\");\r\n\t\t}\r\n\t\t\r\n\t\t// prepare client and connect to server.\r\n\t\tmodel = new Model();\r\n\t\t\r\n\t\t\r\n\t\tclient = new Application (model);\r\n\t\tclient.setVisible(true);\r\n\t\t\r\n\t\t// Create mockServer to simulate server, and install 'obvious' handler\r\n\t\t// that simply dumps to the screen the responses.\r\n\t\tmockServer = new MockServerAccess(\"localhost\");\r\n\t\t\r\n\t\t// as far as the client is concerned, it gets a real object with which\r\n\t\t// to communicate.\r\n\t\tclient.setServerAccess(mockServer);\r\n\t}" ]
[ "0.57798046", "0.57381856", "0.5646721", "0.54619265", "0.52992815", "0.51986355", "0.5160832", "0.51177704", "0.50605124", "0.5058954", "0.50564814", "0.50212806", "0.4986931", "0.49745414", "0.49583656", "0.49524483", "0.49126026", "0.49110693", "0.4882331", "0.48755118", "0.48248923", "0.4820232", "0.48166397", "0.48129126", "0.48065734", "0.4798301", "0.47948518", "0.4792837", "0.47875836", "0.47788504", "0.4772194", "0.476843", "0.4735125", "0.47349963", "0.47155792", "0.47135857", "0.47068256", "0.4695494", "0.46932587", "0.46881285", "0.46753204", "0.46680564", "0.46657577", "0.46657577", "0.46605432", "0.465928", "0.4658243", "0.46535823", "0.4652673", "0.4650463", "0.4650427", "0.4649537", "0.46456385", "0.46449003", "0.46443135", "0.46377128", "0.46275875", "0.4625252", "0.4619362", "0.46154016", "0.46146122", "0.46095178", "0.46073988", "0.46040285", "0.4603498", "0.45970798", "0.4596773", "0.45952886", "0.45764053", "0.45746782", "0.45737115", "0.45705223", "0.45626658", "0.45492995", "0.45466292", "0.45466006", "0.45439282", "0.45419213", "0.45406082", "0.45398772", "0.45342514", "0.45321506", "0.45213005", "0.4520287", "0.45192397", "0.4516787", "0.4515573", "0.45151109", "0.45130563", "0.4512031", "0.45078352", "0.4506976", "0.45056784", "0.45009753", "0.45009694", "0.44980708", "0.44962955", "0.44961217", "0.449176", "0.44886303", "0.4486879" ]
0.0
-1
Set up a simple configuration that logs on the console.
public static void main(String[] args) { BasicConfigurator.configure(); if (args.length < 1) { log.error("Please specify port number for Echo service"); System.exit(1); } EchoServiceLauncher echoService = new EchoServiceLauncher(); echoService.launch( Integer.valueOf(args[0]) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void loggingExample() {\n\t\tSystem.out.println(\"This is running with the default logger!\");\n\t\tnewLogger.fatal(\"This is fatal\");\n\t\tnewLogger.warn(\"This is the warn level\");\n\t\tnewLogger.info(\"This is the info level\");\n\t\t\n\t}", "public void setup (SProperties config) throws IOException {\n\tString sysLogging =\n\t System.getProperty (\"java.util.logging.config.file\");\n\tif (sysLogging != null) {\n\t System.out.println (\"Logging configure by system property\");\n\t} else {\n\t Logger eh = getLogger (config, \"error\", null, \"rabbit\",\n\t\t\t\t \"org.khelekore.rnio\");\n\t eh.info (\"Log level set to: \" + eh.getLevel ());\n\t}\n\taccessLog = getLogger (config, \"access\", new AccessFormatter (),\n\t\t\t \"rabbit_access\");\n }", "public static void setUp() {\n Handler handler = new LoggerHandler();\n handler.setFormatter(new SimpleFormatter());\n getInstance().addHandler(handler);\n }", "public static LoggerContext configureSimpleConsole() {\n return configureFromXmlString(simpleXmlConfig);\n }", "@BeforeAll\n public static void configureLogger() {\n new SuperStructure(null, null, null, null, null);\n\n Logger.configure(null);\n Logger.start();\n }", "private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}", "void initializeLogging();", "@BeforeClass\n\tpublic void setup() {\n\t\tlogger = Logger.getLogger(\"AveroRestAPI\");\n\t\tPropertyConfigurator.configure(\"Log4j.properties\");\n\t\tlogger.setLevel(Level.DEBUG);\n\n\t}", "@Test\n public void configure()\n {\n String message = \"This message should be logged\";\n \n LoggingBean loggingBean = new LoggingBean();\n loggingBean.log(message);\n assertTrue(SYSTEM_OUT_REDIRECT.toString().contains(message));\n }", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@BeforeClass\n\tpublic static void setup() {\n\t\tLogger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);\n\t\troot.setLevel(Level.INFO);\n\t}", "private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}", "protected void initLogger() {\n initLogger(\"DEBUG\");\n }", "private void configureLogging() throws FileNotFoundException, IOException {\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SekaiClient.class);\r\n\t}", "@BeforeClass\n public static void setupClass() {\n build = System.getenv(\"BUILD\");\n \n File logFile = new File(LOG_FILE);\n if(!logFile.exists()) {\n System.out.println(\"Creating log file\");\n try {\n logFile.createNewFile();\n System.out.println(\"Created log file: \" + logFile.getPath());\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n }\n \n try {\n FileHandler fileHandler = new FileHandler(logFile.getPath());\n fileHandler.setFormatter(new LogFormatter());\n LOGGER.addHandler(fileHandler);\n \n } catch (SecurityException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n \n LOGGER.setUseParentHandlers(false);\n \n }", "private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }", "public void configLogger() {\n Logger.addLogAdapter(new AndroidLogAdapter());\n }", "void setupFileLogging();", "public static void setup() {\n\t\toutputs.add(new Console.stdout());\n\t}", "static public void setup() throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n Calendar cal = Calendar.getInstance();\n //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateStr = sdf.format(cal.getTime());\n fileTxt = new FileHandler(\"log_\" + dateStr + \".txt\");\n fileHTML = new FileHandler(\"log_\" + dateStr + \".html\");\n\n // Create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // Create HTML Formatter\n formatterHTML = new LogHTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }", "public void printConfig();", "private static void setupLogging(IATOptions iatOptions) {\n\t\tPrintStream logS = null;\n\t\t\n\t\ttry {\n\t\t\tFile path = new File(iatOptions.logFilePath_);\n\t\t\tpath.getParentFile().mkdirs();\n\t\t\tlogS = new PrintStream(new FileOutputStream(path));\n\t\t\tSystem.setErr(logS);\n\t\t} catch (Exception e) {\n\t\t\tLogging.Init_LOG.error(\"Cannot open log file\", e);\n\t\t}\n\t}", "void initializeLogging(String loggingProperties);", "public static void main(String[] args){ \r\n\t\t /* PropertyConfigurator.configure(\"application.properties\");\r\n\t\t log.debug(\"Hello this is a debug message\"); \r\n\t log.info(\"Hello this is an info message\"); \r\n\t System.out.println(\"Hi..Cool\");\r\n\t URLTest u=new URLTest();\r\n\t u.sendGET();*/\r\n\t\t\r\n\t\t System.out.println(\"Hi..IMI\");\r\n\t }", "public void configLog()\n\t{\n\t\tlogConfigurator.setFileName(Environment.getExternalStorageDirectory() + File.separator + dataFileName);\n\t\t// Set the root log level\n\t\t//writerConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\t///writerConfigurator.setMaxFileSize(1024 * 1024 * 500);\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 1024);\n\t\t// Set log level of a specific logger\n\t\t//writerConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setImmediateFlush(true);\n\t\t//writerConfigurator.configure();\n\t\tlogConfigurator.configure();\n\n\t\t//gLogger = Logger.getLogger(this.getClass());\n\t\t//gWriter = \n\t\tgLogger = Logger.getLogger(\"vdian\");\n\t}", "private void configureLogging() throws FileNotFoundException, IOException {\r\n\t\t// Set configuration file for log4j2\r\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SBIWebServer.class);\r\n\t}", "@Override\n public void init(Map<String, String> config) {\n>>>>>>> DpStarterKit-fs:starter/src/main/java/com/datapipeline/starter/ConsoleOutputSinkPipe.java\n config.forEach((k, v) -> System.out.println(\"Key: \" + k + \" / Value: \" + v));\n String host = config.get(\"host\");\n String port = config.get(\"port\");\n MongoDBHelper.INSTANCE.getMongoClient(host, Integer.valueOf(port));\n }", "public void activateConsoleMode() {\n logger.addHandler(mConsoleHandler);\n }", "@BeforeClass\npublic static void setLogger() {\n System.setProperty(\"log4j.configurationFile\",\"./src/test/resources/log4j2-testing.xml\");\n log = LogManager.getLogger(LocalArtistIndexTest.class);\n}", "@Override\n\tpublic void run(String... args) throws Exception {\n\n\t\t System.out.println(\"using environment:\" + myConfig.getEnvironment());\n\t System.out.println(\"name:\" + myConfig.getName());\n\t System.out.println(\"servers:\" + myConfig.getServers());\n\t\t\n\t}", "private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }", "private static void addConsoleAppender() {\n ILoggerFactory loggerFactory = LoggerFactory.getILoggerFactory();\n if (!(loggerFactory instanceof LoggerContext)) {\n return;\n }\n\n LoggerContext loggerContext = (LoggerContext) loggerFactory;\n\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n URL url = classLoader.getResource(\"logback-console.xml\");\n if (url == null) {\n LOG.warn(\"Cannot find logback-console.xml from classloader\");\n return;\n }\n\n try {\n JoranConfigurator joranConfigurator = new JoranConfigurator();\n // Configure with the addition logback-console, don't reset the context so that it will add the new appender\n joranConfigurator.setContext(loggerContext);\n joranConfigurator.doConfigure(url);\n } catch (JoranException e) {\n LOG.warn(\n \"Failed to configure log appender, logs will be missing from the Dataproc Job output\");\n }\n }", "public SystemConfiguration() {\r\n\t\tlog = Logger.getLogger(SystemConfiguration.class);\r\n\t}", "public static void main(String[] args) throws Exception {\n log.info(\"It is now {}\", new java.util.Date());\n \n // add a throwable handler that only applies to this log\n log.addThrowableHandler(t -> System.err.format(\"Handled a throwable: %s%n\", t.getMessage()));\n \n // add a throwable handler that applies to ALL logs\n Log.addGlobalThrowableHandler(t -> System.err.format(\"GLOBALLY handled a throwable: %s%n\", t.getMessage()));\n \n // single-level logger\n log.info.format(\"This is a simple message going to the %s logger.\", \"info\");\n \n // one of the new log levels\n log.cwarn.print(\"This warning goes to the log and to the console with coloring\");\n \n // create a stopwatch that logs its duration to info level\n try (StopwatchLog sw1 = log.info.stopwatch(\"simpleStopwatch\")) {\n // do something time consuming...\n for (int i = 0; i < 5; ++i) {\n sw1.warn(\"log message {}\", i);\n }\n }\n\n // create a stopwatch that logs its duration to debug level but will auto-warn or auto-error\n // if operations take too long\n try (StopwatchLog sw2 = log.debug.stopwatch(\"stopwatchdemo\")\n .warnOver(Duration.ofMillis(250))\n .errorOver(Duration.ofMillis(500))) {\n \n sw2.info(\"Going to sleep\");\n Thread.sleep(1000); // takes over 500 ms, so results in an error log\n sw2.info(\"Woke up!\");\n }\n\n // use jansi coloring to stdout\n log.cout.format(\"@|bold,blue This message is bright blue.|@\");\n\n // oh yeah, what about those Throwable handlers?\n log.warn(\"uh-oh!\", new Exception(\"let's test the throwable handlers\"));\n \n // ...and prefixes\n Log lp = log.withPrefix(\"my prefix: \");\n lp.info(\"and don't forget about log prefixes.\");\n }", "private static DefaultLogger getConsoleLogger() {\n DefaultLogger consoleLogger = new DefaultLogger();\n consoleLogger.setErrorPrintStream(System.err);\n consoleLogger.setOutputPrintStream(System.out);\n consoleLogger.setMessageOutputLevel(Project.MSG_INFO);\n \n return consoleLogger;\n }", "public static void main(String[] args) {\n\t\tPropertyConfigurator.configure(\"log4j.properties\");//log all messages in properties file \r\n\t\t\r\n\t\tlogger.debug(\"Sample debug Message\");\r\n\t\tlogger.info(\"Sample infor message\");\r\n\t\tlogger.warn(\"Sample warn message\");\r\n\t\tlogger.error(\"Sample error message\");\r\n\t\tlogger.fatal(\"Sample fatal message\");\r\n\t\t\r\n\t\t\r\n\t\t/*Basic Configurator*/\r\n\t\t//The output contains the time elapsed from the start of the program in milliseconds,the threadName, type of logger level , class location and log messages.\r\n\t\t\r\n\t\t/*PropertyConfigurator*/\r\n\t\t//The rootLogger is the one that resides on the top of the logger hierarchy\r\n\t\t//We set its level to warn and added the console appender CAA. We use a layer called PatternLayout for console appender CAA. The pattern layer uses conversion pattern to format the message like \r\n\t\t//%r--> print elapsed time in milliseconds\r\n\t\t//[%t]--> print the thread name\r\n\t\t//%p--> priority of the logging event\r\n\t\t//%c--> prints the className\r\n\t\t//%x--> used to output the nested diagnostic content associated with the thread that generated the logging event.\r\n\t\t//%m--> used to output the application supplied message associated with the logging event\r\n\t\t//%n--> outputs the platform dependent line separator character\r\n\t\t//%d --> used to output the date of logging event like %d{HH:mm:ss,sss}\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tLogger logger = new Logger();\n\t\tlogger.setThreshold(LogLevels.DEBUG);\n\t\t\n\t\t\n\t\tlogger.info(\"program started\");\n\t\tlogger.warning(\"warning\");\n\t\tlogger.error(\"error\");\n\t\tlogger.debug(\"debug\");\n\t\tlogger.trace(\"trace\");\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tLogger logger = Logger.getLogger(\"mylogger\");\r\n\t\tlogger.setLevel(Level.ALL);\r\n\t\t// 2. Create a handler\r\n\t\tHandler handler = new ConsoleHandler();\r\n\t\thandler.setLevel(Level.ALL);\r\n\t\t// 3. Define formatter and filter\r\n\t\tFormatter formatter = new Formatter() {\r\n\t\t\t@Override\r\n\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\treturn record.getLevel() + \":\" + record.getMessage() + \"\\n\";\r\n\t\t\t}\r\n\t\t};\r\n\t\t// 4. Add formatter and filter to handler\r\n\t\thandler.setFormatter(formatter);\r\n\t\t// 5. Add handler to logger\r\n\t\tlogger.addHandler(handler);\r\n\t\t// 6. Use logger\r\n\t\tlogger.info(\"Test Message.\");\r\n\t}", "public void config(String msg) {\n log(Level.CONFIG, msg, null);\n }", "public static void init()\n {\n debugger = new Debugger(\"log\");\n info = true;\n }", "protected ConsoleHandler() {\n super();\n setConsole(System.err);\n setFormatter(LOG_FORMATTER);\n setLevel(DEFAULT_LEVEL);\n }", "private void config() {\n\t}", "@BeforeClass\n public static void beforeClass()\n throws Exception\n {\n LoggerConfiguration.logSetup();\n }", "public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(serverLogsArray.toJSONString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.loggingApiEndpoint, this.server.createContext(this.loggingApiEndpoint));\n this.setHandler(this.getLoggingApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.getLoggingApiEndpoint(), 0);\n }", "private void initLogConfig() {\n\t\t logConfigurator = new LogConfigurator();\n\t\t// Setting append log coudn't cover by a new log.\n\t\tlogConfigurator.setUseFileAppender(true);\n\t\t// Define a file path for output log.\n\t\tString filename = StorageUtils.getLogFile();\n\t\tLog.i(\"info\", filename);\n\t\t// Setting log output\n\t\tlogConfigurator.setFileName(filename);\n\t\t// Setting log's level\n\t\tlogConfigurator.setRootLevel(Level.DEBUG);\n\t\tlogConfigurator.setLevel(\"org.apache\", Level.ERROR);\n\t\tlogConfigurator.setFilePattern(\"%d %-5p [%c{2}]-[%L] %m%n\");\n\t\tlogConfigurator.setMaxFileSize(1024 * 1024 * 5);\n\t\t// Set up to use the cache first and then output to a file for a period\n\t\t// of time\n\t\tlogConfigurator.setImmediateFlush(false);\n\t\tlogConfigurator.setUseLogCatAppender(true);\n\t\t// logConfigurator.setResetConfiguration(true);\n\t\tlogConfigurator.configure();\n\t}", "public static void getLoggerConfiguration() {\n\t\tPropertyConfigurator.configure(System.getProperty(\"user.dir\")+ \"\\\\Config\\\\log4j.properties\");\n\t}", "public synchronized static void initConfig() {\n SeLionLogger.getLogger().entering();\n Map<ConfigProperty, String> initialValues = new HashMap<>();\n\n initConfig(initialValues);\n\n SeLionLogger.getLogger().exiting();\n }", "private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}", "@BeforeClass\n\tpublic static void setup() {\n\t\tgetLogManager().init();\n\t}", "public Slf4jLogService() {\n this(System.getProperties());\n }", "public void config(String msg) {\n log(CONFIG, msg);\n }", "public static void main(String[] args) {\n // logger.info(\"Message\");\n // System.out.println(\"cdkdk\");\n\n }", "@BeforeClass\n public static void setUpClass() {\n final Properties p = new Properties();\n p.put(\"log4j.appender.Remote\", \"org.apache.log4j.net.SocketAppender\");\n p.put(\"log4j.appender.Remote.remoteHost\", \"localhost\");\n p.put(\"log4j.appender.Remote.port\", \"4445\");\n p.put(\"log4j.appender.Remote.locationInfo\", \"true\");\n p.put(\"log4j.rootLogger\", \"ALL,Remote\");\n PropertyConfigurator.configure(p);\n }", "void configure();", "private static void printConfigOnce() {\r\n \r\n if (printedConfigLocation) {\r\n return;\r\n }\r\n\r\n printedConfigLocation = true;\r\n\r\n boolean displayMessageString = GrouperConfig.retrieveConfig().propertyValueBoolean(\"configuration.display.startup.message\", true);\r\n \r\n String grouperStartup = \"Grouper starting up: \" + versionTimestamp();\r\n if (!displayMessageString) {\r\n //just log this to make sure we can\r\n try {\r\n LOG.warn(grouperStartup);\r\n } catch (RuntimeException re) {\r\n //this is bad, print to stderr rightaway (though might dupe)\r\n System.err.println(GrouperUtil.LOG_ERROR);\r\n re.printStackTrace();\r\n throw new RuntimeException(GrouperUtil.LOG_ERROR, re);\r\n }\r\n \r\n return;\r\n }\r\n\r\n StringBuilder resultString = new StringBuilder();\r\n resultString.append(grouperStartup + \"\\n\");\r\n \r\n String propertiesFileLocation = GrouperUtil.getLocationFromResourceName(\"grouper.properties\");\r\n if (propertiesFileLocation == null) {\r\n propertiesFileLocation = \"not found\";\r\n }\r\n resultString.append(\"grouper.properties read from: \" + propertiesFileLocation + \"\\n\");\r\n\r\n if (GrouperConfig.retrieveConfig().propertyValueBoolean(\"grouper.api.readonly\", false)) {\r\n resultString.append(\"grouper.api.readonly: true\\n\");\r\n }\r\n \r\n resultString.append(\"Grouper current directory is: \" + new File(\"\").getAbsolutePath() + \"\\n\");\r\n \r\n resultString.append(GrouperUtil.logDirPrint());\r\n String hibPropertiesFileLocation = GrouperUtil.getLocationFromResourceName(\"grouper.hibernate.properties\");\r\n if (hibPropertiesFileLocation == null) {\r\n hibPropertiesFileLocation = \" [cant find grouper.hibernate.properties]\";\r\n }\r\n resultString.append(\"grouper.hibernate.properties: \" + hibPropertiesFileLocation + \"\\n\");\r\n \r\n String url = StringUtils.trim(GrouperHibernateConfig.retrieveConfig().propertyValueString(\"hibernate.connection.url\"));\r\n String user = StringUtils.trim(GrouperHibernateConfig.retrieveConfig().propertyValueString(\"hibernate.connection.username\"));\r\n resultString.append(\"grouper.hibernate.properties: \" + user + \"@\" + url + \"\\n\");\r\n System.out.println(resultString);\r\n try {\r\n if (!GrouperUtil.isPrintGrouperLogsToConsole()) {\r\n LOG.warn(resultString);\r\n } else {\r\n //print something to log to make sure we can\r\n LOG.warn(grouperStartup);\r\n }\r\n } catch (RuntimeException re) {\r\n //this is bad, print to stderr rightaway (though might dupe)\r\n System.err.println(GrouperUtil.LOG_ERROR);\r\n re.printStackTrace();\r\n throw new RuntimeException(GrouperUtil.LOG_ERROR, re);\r\n }\r\n }", "public static synchronized void initializeLogger() {\n\t\t\n\t try {\n\t\t String workingDir = System.getProperty(\"user.dir\");\n\t\t String fileName = workingDir + File.separator + \"config\" + File.separator + \"logging.properties\";\n\t\t \n\t\t FileInputStream fileInputStream = new FileInputStream(fileName);\n\t\t LogManager.getLogManager().readConfiguration(fileInputStream);\n\t\t \n\t } catch (IOException ex) {\n\t\t System.err.println(\"Failed to load logging.properlies, please check the file and the path:\" + ex.getMessage()); \n\t ex.printStackTrace();\n\t System.exit(0);\n\t }\n\t}", "private void initializeConsole()\n {\n final ConsolePrintStream consolePrintStream = new ConsolePrintStream(this.informationMessage);\n System.setOut(consolePrintStream.getPrintStream());\n }", "public void initialConfig() {\n }", "public void initALog() {\n ALog.Config config = ALog.init(this)\n .setLogSwitch(BuildConfig.DEBUG)// 设置log总开关,包括输出到控制台和文件,默认开\n .setConsoleSwitch(BuildConfig.DEBUG)// 设置是否输出到控制台开关,默认开\n .setGlobalTag(null)// 设置log全局标签,默认为空\n // 当全局标签不为空时,我们输出的log全部为该tag,\n // 为空时,如果传入的tag为空那就显示类名,否则显示tag\n .setLogHeadSwitch(false)// 设置log头信息开关,默认为开\n .setLog2FileSwitch(false)// 打印log时是否存到文件的开关,默认关\n .setDir(\"\")// 当自定义路径为空时,写入应用的/cache/log/目录中\n .setFilePrefix(\"\")// 当文件前缀为空时,默认为\"alog\",即写入文件为\"alog-MM-dd.txt\"\n .setBorderSwitch(true)// 输出日志是否带边框开关,默认开\n .setSingleTagSwitch(true)// 一条日志仅输出一条,默认开,为美化 AS 3.1.0 的 Logcat\n .setConsoleFilter(ALog.V)// log的控制台过滤器,和logcat过滤器同理,默认Verbose\n .setFileFilter(ALog.V)// log文件过滤器,和logcat过滤器同理,默认Verbose\n .setStackDeep(1)// log 栈深度,默认为 1\n .setStackOffset(0)// 设置栈偏移,比如二次封装的话就需要设置,默认为 0\n .setSaveDays(3)// 设置日志可保留天数,默认为 -1 表示无限时长\n // 新增 ArrayList 格式化器,默认已支持 Array, Throwable, Bundle, Intent 的格式化输出\n .addFormatter(new ALog.IFormatter<ArrayList>() {\n @Override\n public String format(ArrayList list) {\n return \"ALog Formatter ArrayList { \" + list.toString() + \" }\";\n }\n });\n ALog.d(config.toString());\n }", "private void setupLogging(BuildListener listener) {\n this.listener = listener;\n }", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "private void configure() {\r\n LogManager manager = LogManager.getLogManager();\r\n String className = this.getClass().getName();\r\n String level = manager.getProperty(className + \".level\");\r\n String filter = manager.getProperty(className + \".filter\");\r\n String formatter = manager.getProperty(className + \".formatter\");\r\n\r\n //accessing super class methods to set the parameters\r\n\r\n\r\n }", "public static void configureLog(final String logfile) {\n\t\tLoggerContext context = (LoggerContext) LoggerFactory\n\t\t\t\t.getILoggerFactory();\n\n\t\ttry {\n\t\t\tJoranConfigurator configurator = new JoranConfigurator();\n\t\t\tconfigurator.setContext(context);\n\t\t\t// Call context.reset() to clear any previous configuration, e.g.\n\t\t\t// default\n\t\t\t// configuration. For multi-step configuration, omit calling\n\t\t\t// context.reset().\n\t\t\tcontext.reset();\n\t\t\tconfigurator.doConfigure(logfile);\n\t\t} catch (JoranException je) {\n\t\t\tStatusPrinter.printInCaseOfErrorsOrWarnings(context);\n\t\t}\n\t}", "public Config() {\n this(System.getProperties());\n\n }", "protected void setUp() throws Exception {\r\n printStream = new PrintStream(new FileOutputStream(FILE));\r\n\r\n logFactory = new BasicLogFactory(printStream);\r\n\r\n log = (BasicLog) logFactory.createLog(NAME);\r\n }", "private static void configureLogging(String currentDirectory) {\n System.out.println(\"Looking for watchdog.properties within current working directory : \" + currentDirectory);\n try {\n LogManager manager = LogManager.getLogManager();\n manager.readConfiguration(new FileInputStream(WATCHDOG_LOGGING_PROPERTIES));\n try {\n fileHandler = new FileHandler(WatchDogConfiguration.watchdogLogfilePath, true); //file\n SimpleFormatter simple = new SimpleFormatter();\n fileHandler.setFormatter(simple);\n logger.addHandler(fileHandler);//adding Handler for file\n } catch (IOException e) {\n System.err.println(\"Exception during configuration of logging.\");\n }\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n logger.info(String.format(\"Monitoring: %s\", WatchDogConfiguration.watchdogDirectoryMonitored));\n logger.info(String.format(\"Processed: %s\", WatchDogConfiguration.watchdogDirectoryProcessed));\n logger.info(String.format(\"Logfile: %s\", WatchDogConfiguration.watchdogLogfilePath));\n }", "private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }", "private static void initLogger() {\n if (initialized) {\n return;\n }\n\n initialized = true;\n\n System.out.println(\"\");\n System.out.println(\"=> Begin System Logging Configuration\");\n URL fileUrl = null;\n String filePath = null;\n\n try {\n final Region region = EnvironmentConfiguration.getRegion();\n filePath = \"log4j-\" + region.getCode() + \".xml\";\n System.out.println(\"=> searching for log configuration file : \" + filePath);\n fileUrl = LogFactory.class.getResource(\"/\" + filePath);\n DOMConfigurator.configure(fileUrl);\n System.out.println(\"=> found log configuration file : \" + fileUrl);\n System.out.println(\"=> System Logging has been initialized\");\n }\n catch (final NoClassDefFoundError ncdf) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(LogFactory.class.getName()\n + \"::loadProps() - Unable to find needed classes. Logging disabled. \" + ncdf);\n }\n catch (final Exception e) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(\n LogFactory.class.getName() + \"::loadProps() - Unable to initialize logger from file=\"\n + filePath + \". Logging disabled.\");\n }\n System.out.println(\"=> End System Logging Configuration\");\n System.out.println(\"\");\n }", "public static void set(ServerLoggingConfiguration config) {\r\n LogImplServer.config = config;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tlog.fatal(\"2-this comes under default config file\");\n\t\tlog.error(\"2-this 2 \");\nlog.debug(\"2-doesnot\");\nlog.info(\"2-nopes\");\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tlog.debug(\"Debugging\");\n\t\tlog.info(\"Just FYI\");\n\t\tlog.error(\"Error message\");\n\n\t\tlog.fatal(\"Fatal Error\");\n\t}", "public static void setupLoggers() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n\n // add SLF4JBridgeHandler to j.u.l's root logger\n SLF4JBridgeHandler.install();\n }", "public MyLogger () {}", "public void config(String msg, Throwable t) {\n log(Level.CONFIG, msg, t);\n }", "public void enableLogging();", "@Override\n\tprotected void setUp() {\n\t\ttry {\n\t\t\tconsole = new MMAConsole();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void initialize(){\n Logger logger = Logger.getLogger(\"\");\n\n //from: http://stackoverflow.com/questions/6029454/disabling-awt-swing-debug-fine-log-messages\n Logger.getLogger(\"java.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.lwawt\").setLevel(Level.OFF);\n Logger.getLogger(\"javax.swing\").setLevel(Level.OFF);\n\n if (uiLoggerFormatter==null){\n uiLoggerFormatter = new SimpleFormatter();\n }\n\n if (consoleLoggerFormatter==null){\n consoleLoggerFormatter = new SimpleFormatter();\n }\n Handler[] handlers = logger.getHandlers();\n // suppress the logging output to the console\n if (!enableConsoleLogger){\n if (handlers[0] instanceof ConsoleHandler) {\n logger.removeHandler(handlers[0]);\n }\n }\n else{\n if (handlers[0] instanceof ConsoleHandler) {\n handlers[0].setFormatter(consoleLoggerFormatter);\n }\n }\n\n setLevel(lvl);\n\n if(fileHandler!=null){\n if (fileLoggerFormatter==null){\n fileLoggerFormatter = new SimpleFormatter();\n }\n fileHandler.setFormatter(fileLoggerFormatter);\n logger.addHandler(fileHandler);\n }\n\n if(enableUILogger){\n txtAreaHandler = new EZUIHandler(uiLoggerSizeLimit);\n txtAreaHandler.setFormatter(uiLoggerFormatter);\n logger.addHandler(txtAreaHandler);\n }\n \n initialized = true;\n }", "private static void setupLogger(Application application) {\n\n\t\tapplication.addComponentMenu(Logger.class, \"Logger\", 0);\n\t\tapplication.addComponentMenuElement(Logger.class, \"Clear log\",\n\t\t\t\t(ActionEvent e) -> application.flushLoggerOutput());\n\t\tapplication.addComponentMenuElement(Logger.class, \"Fine level\", (ActionEvent e) -> logger.setLevel(Level.FINE));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Info level\", (ActionEvent e) -> logger.setLevel(Level.INFO));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Warning level\",\n\t\t\t\t(ActionEvent e) -> logger.setLevel(Level.WARNING));\n\t\tapplication.addComponentMenuElement(Logger.class, \"Severe level\",\n\t\t\t\t(ActionEvent e) -> logger.setLevel(Level.SEVERE));\n\t\tapplication.addComponentMenuElement(Logger.class, \"OFF logging\", (ActionEvent e) -> logger.setLevel(Level.OFF));\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"\\n....Hello World....\\n\");\r\n\t\tlogger.trace(\"this is trace message\");\r\n\t\tlogger.info(\"this is info message\");\r\n\t\tlogger.error(\"this is error message\");\r\n\t\tlogger.fatal(\"this is info message\");\r\n\t\tlogger.warn(\"this is error message\");\r\n\t\t\r\n\t\tSystem.out.println(\"\\n....completed....\\n\");\r\n\t}", "private void init() {\r\n this.log = this.getLog(LOGGER_MAIN);\r\n\r\n if (!(this.log instanceof org.apache.commons.logging.impl.Log4JLogger)) {\r\n throw new IllegalStateException(\r\n \"LogUtil : apache Log4J library or log4j.xml file are not present in classpath !\");\r\n }\r\n\r\n // TODO : check if logger has an appender (use parent hierarchy if needed)\r\n if (this.log.isWarnEnabled()) {\r\n this.log.warn(\"LogUtil : logging enabled now.\");\r\n }\r\n\r\n this.logBase = this.getLog(LOGGER_BASE);\r\n this.logDev = this.getLog(LOGGER_DEV);\r\n }", "@Override\n\tpublic void initLogger() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tPropertyConfigurator.configure(\"log4j.properties\");\n\t\tTradeTest tradeTest = new TradeTest();\n\t\ttradeTest.run();\n\t}", "private void init() {\n LoggerContext ctx = (LoggerContext) LogManager.getContext(false);\n Configuration config = ctx.getConfiguration();\n LoggerConfig loggerConfig = config.getLoggerConfig(LogManager.ROOT_LOGGER_NAME);\n loggerConfig.setLevel(DEBUG ? Level.DEBUG : Level.INFO);\n ctx.updateLoggers();\n\n // Check if Maven repo exists\n File f = new File(globalConfig.getMavenRepoPath());\n if (!f.exists()) {\n // If not then create\n f.mkdir();\n }\n }", "public Bach() {\n this(LOGGER, System.out::println);\n }", "public static void main(String[] args) {\n\r\n\t\tlog.error(\"Demo1 Unable to click on button\");\r\n\t\tlog.fatal(\"Demo1 Fatal error displayed\");\r\n\t\tlog.info(\"Demo1 successfully entered username and password\");\r\n\t\tlog.debug(\"Demo1 debug information displayed\");\r\n\t}", "@Before\n public void setUp() throws Exception {\n logger.setLevel(Level.DEBUG);\n }", "public static void main(String[] args) {\n Runner.class.getClassLoader().getResource(\"log4j.properties\");\n\n // Log in console\n logger.info(\"Log4j console appender configuration is successful !!\");\n\t\t\n\t\tint N = 5;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlogger.info(\"Choisir une valeur y/n >> \");\n\t\tString choice = sc.nextLine();\n\t\t\n\t\tif(choice.equals(\"y\")) {\n\t\t\tlogger.info(\"Entrez la valeur: \");\n\t\t\tN = sc.nextInt();\n\t\t}\n\n\t\tlogger.info(\"\\n\");\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tlogger.info(Fibonacci.fib(i));\n\t\t}\n\t}", "private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}", "public Logs() {\n initComponents();\n }", "void setConsole(ConsoleManager console);", "public ConfigExample() {\n }", "public Console() {\n initComponents();\n }", "@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}", "public static void main(String[] args) {\n\t\tPropertyConfigurator.configure(\"log4j.properties\");\r\n\t\tServiceManager serviceDemo = new ServiceManager(\"121.15.15.190\", 7788,\r\n\t\t\t\t\"cody\", \"tecblazer\");\r\n\t\tserviceDemo.start();\r\n\r\n\t}", "@BeforeClass\n\tpublic static void start() throws IOException\n\t{\n\t\tng.configure(\"log4j.properties\");\n\t\tFileInputStream st= new FileInputStream(\"config.properties\");\n\t\tmp.load(st);\n\t\tlg.info(\"============= visiting url ==============\");\n\t\tdr.get(mp.getProperty(\"url\"));\n\t\t\n\t\t\n\t}", "public static void initialize() {\n \tinitialize(new Configuration().configure());\n }", "public void init() {\n\t\tregisterFunctions();\n\t\t\t\t\n\t\t//Start it\n\t\tconsole.startUserConsole();\n\t}", "public interface LogBootstrap {\n /**\n * Launch the logging system\n * @param properties - the full set of overlayed properties to bootstrap the logger\n * @throws IOException\n */\n public void init(Properties properties) throws IOException;\n}", "private void logConfigLocations() {\n\t\tlogger.info(\"XD config location: \" + environment.resolvePlaceholders(XD_CONFIG_LOCATION));\n\t\tlogger.info(\"XD config names: \" + environment.resolvePlaceholders(XD_CONFIG_NAME));\n\t\tlogger.info(\"XD module config location: \" + environment.resolvePlaceholders(XD_MODULE_CONFIG_LOCATION));\n\t\tlogger.info(\"XD module config name: \" + environment.resolvePlaceholders(XD_MODULE_CONFIG_NAME));\n\t}", "public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}", "private ExtentLogger() {}" ]
[ "0.6867819", "0.68051684", "0.6665442", "0.6585558", "0.65792656", "0.653996", "0.65322083", "0.6493576", "0.6466359", "0.63594717", "0.6288696", "0.62729067", "0.62547886", "0.61758065", "0.61597705", "0.6148449", "0.6119451", "0.6095249", "0.60842484", "0.6078765", "0.60601723", "0.602226", "0.6008756", "0.5993186", "0.59904486", "0.5985201", "0.5977525", "0.5974989", "0.5956255", "0.5945274", "0.5937432", "0.5917832", "0.59085864", "0.58999956", "0.5899972", "0.5898999", "0.5862283", "0.58606565", "0.5859257", "0.5858534", "0.585466", "0.5852237", "0.58422", "0.583793", "0.5830811", "0.58307236", "0.5830552", "0.5829133", "0.5824889", "0.5823052", "0.58135587", "0.5789809", "0.57888687", "0.5786289", "0.5757043", "0.5717219", "0.5714825", "0.5714812", "0.568612", "0.5669407", "0.56677353", "0.56515354", "0.56493163", "0.56492394", "0.56462806", "0.56389654", "0.56317425", "0.5631323", "0.56166166", "0.5604228", "0.558953", "0.5589269", "0.5577473", "0.55718374", "0.5562164", "0.5557311", "0.5544597", "0.55398285", "0.5538144", "0.5532857", "0.552454", "0.5512359", "0.55116224", "0.5506493", "0.55037236", "0.54738885", "0.5465188", "0.545597", "0.54364246", "0.54248214", "0.5413911", "0.541316", "0.5412806", "0.5409682", "0.54028994", "0.5399235", "0.5397729", "0.5395138", "0.5393375", "0.5391779", "0.5391264" ]
0.0
-1
Spring Data repository for the GOtherVoucherDetails entity.
@SuppressWarnings("unused") @Repository public interface GOtherVoucherDetailsRepository extends JpaRepository<GOtherVoucherDetails, UUID>, GOtherVoucherDetailsRepositoryCustom { @Query(value = "select * from GOtherVoucherDetail where GOtherVoucherID = ?1 order by OrderPriority ", nativeQuery = true) List<GOtherVoucherDetails> findAllByGOtherVoucherID(UUID id); /** * @param id * @return * @author congnd */ List<GOtherVoucherDetails> findAllBygOtherVoucherIDOrderByOrderPriorityAsc(UUID id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface VoucherCodeRepository extends BaseRepository<VoucherCode,Long> {\n\n public VoucherCode findByVocId(Long vocId);\n\n public VoucherCode findByVocMerchantNoAndVocVoucherSourceAndVocIndex(Long vocMerchantNo,Long vocVoucherSource,Long vocIndex );\n\n}", "@Repository\npublic interface VendorsRepository extends CrudRepository<Vendor, Long> {\n}", "public interface VoucherRepository {\n //可领优惠券列表\n List<VoucherEntity> getVoucherList();\n //优惠券详情\n VoucherEntity getVoucherDetail(String id);\n //更新优惠券\n void updateVoucher(VoucherEntity voucherEntity);\n //获取过期优惠券列表\n List<VoucherEntity> getOverDueList();\n}", "public interface ShopperPersonRepository extends CrudRepository<ShopperPerson, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\n\npublic interface SellContractCustomerRepository extends JpaRepository<SellContractCustomer, Long> {\n\n SellContractCustomer findByCustomer_Id(Long customerId);\n\n List<SellContractCustomer> findAllBySellContract_Id(Long sellContractId);\n\n}", "@Repository\npublic interface CaseNoRepository extends JpaRepository<CaseNo, Long>{\n CaseNo findByCompanyId( long companyId);\n}", "public interface PurchaseRecordDetailRepository extends JpaRepository<PurchaseRecordDetail, Long> {\r\n}", "public interface CardRepository extends JpaRepository<HouseAccountCreditCardAccount,String> {\r\n HouseAccountCreditCardAccount findByBuyerIdAndServiceAccountNumberAndSourceSystem(String buyerId, Long serviceAccountNumber, String sourceSystem);\r\n}", "public interface SellerInfoRepository extends JpaRepository<SellerInfo, String> {\r\n /* 根据openid查询信息 */\r\n SellerInfo findByOpenid(String openid);\r\n}", "public interface HbzCostRepository extends BaseRepository<HbzCost, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}", "@Repository\npublic interface GuestRepository extends CrudRepository<Guest,Long> {\n}", "public interface DistributeBookRepository extends CrudRepository<DistributeBook, Integer>,DistributeBookRepositoryCustom {\n}", "@Repository\npublic interface GodownRepository extends JpaRepository<Godown, BigInteger> {\n\n //Get All Godown without isLog == True.\n List<Godown> findByCompanyCodeAndIsLogFalseOrderByNameAsc(@Param(\"companyCode\") int companyCode);\n\n //Inventory Godown Controller->RemoveFunc(),\n List<Godown> findByParentCodeAndIsLog(@Param(\"parentCode\") BigInteger parentCode, @Param(\"IsLog\") boolean isLog);\n\n //Get All CostCenter Without ID List\n List<Godown> findByCompanyCodeAndIsLogFalseAndIdNotIn(@Param(\"companyCode\") int companyCode, @Param(\"id\") List<BigInteger> id);\n\n //For isReplica\n Godown findByCompanyCodeAndNameAndIsLogFalse(@Param(\"companyCode\") int companyCode, @Param(\"name\") String name);\n\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TechServicesRepository extends JpaRepository<TechServices, Long> {\n\n List<TechServices> findAllByCompetitorId(Long id);\n}", "@Repository\npublic interface ReservationRepository extends CrudRepository<Reservation, Long> {\n}", "@Repository\npublic interface IPaymentRepository extends JpaRepository<Payment, Long> {\n}", "@Repository\npublic interface ReservationRepository extends CrudRepository<ReservEntity,Integer> {\n\n List<ReservEntity> findAll();\n List<ReservEntity> findByUserId(int userId);\n\n}", "@Repository\npublic interface InspectionOptionRepository extends JpaRepository<InspectionOption, Integer> {\n\n}", "public interface GroceryStoreRepository extends CrudRepository<GroceryStore, Long>{\n}", "@Repository\npublic interface VehicleRepository extends CrudRepository<Vehicle,Long>{\n}", "public interface UserBillingRepository extends CrudRepository<UserBilling, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface InvoiceHistoryRepository extends JpaRepository<InvoiceHistory, Long> {\n}", "public interface VendorRepository extends CrudRepository<Vendor, Integer> {\n Vendor findByName(String name);\n Iterable<Vendor> findByNameLike(String search);\n Iterable<Vendor> findByLocation(String location);\n Vendor findByUser(User user);\n}", "public interface PaymentContextRepository extends CrudRepository<PaymentContext, Long> {\n\n}", "@Repository\npublic interface BookRepository extends JpaRepository<Book, Long> {\n\n}", "public interface AdUnitDistrictRepository extends JpaRepository<AdUnitDistrict, Long> {\n\n \n}", "public interface ReservationRepository extends CrudRepository<Reservation, Integer> {\n\n}", "public interface IOdgovorRepository extends PagingAndSortingRepository<Odgovor, Long> {\n}", "public interface ProductPricingRepository extends JpaRepository<ProductPricing, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface SellerRepository extends JpaRepository<Seller, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CsrpRepository extends JpaRepository<Csrp, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PricingRepository extends JpaRepository<Pricing, Long> {\n\n}", "public interface TbPromotionRepository extends PagingAndSortingRepository<TbPromotion, Long>, JpaSpecificationExecutor<TbPromotion> {\n TbPromotion findByPoCoup(@Param(\"poCoup\") String poCoup);\n}", "@Repository\npublic interface CustomerRepository extends JpaRepository<Customer,Long> {\n\n\n\n}", "public interface ShipwreckRepository extends JpaRepository <Shipwreck, Long> {\n\n}", "public interface RepairRepository extends JpaRepository<Repair,Long> {\n\n}", "@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, Long> {\n\n public List<Payment> findByOrganizationId(Long orgId);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FicheDeContactRepository extends JpaRepository<FicheDeContact, Long> {\n\n}", "@Repository\npublic interface ContactRepository extends JpaRepository<Contact, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface AllergyRepository extends JpaRepository<Allergy, Long> {\n\n}", "public interface CustomerAuditRepository extends JpaRepository<CustomerAudit, Long>{\n\n}", "@Repository\npublic interface VerificationTokenRepository extends JpaRepository<VerificationTokenDTO, Long> {\n\n public VerificationTokenDTO findByToken(String token);\n\n public VerificationTokenDTO findByUser(UserDTO user);\n}", "@Repository\npublic interface InvestmentRepository extends JpaRepository<Investment, Integer> {\n\n\n\tpublic List<Investment> findByinvestmentInvestorId(int investorId);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CaptureCollegeRepository extends JpaRepository<CaptureCollege, Long> {\n\n}", "public interface CdTInboundAuthRepository extends JpaRepository<CdTInboundAuthEntity, Long> {\n\n}", "public interface ContactRepository extends JpaRepository<Contact, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PurchaseOrderRepository extends JpaRepository<PurchaseOrder, Long> {\n}", "@RooJpaRepository(entity = ProductTaxRates.class)\npublic interface ProductTaxRatesRepository {\n}", "public interface BookedParkingSpaceRepository extends JpaRepository<BookedParkingSpace,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface BuyerRepository extends JpaRepository<Buyer, Long> {\n\n}", "public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface GIDMonikerRepository extends JpaRepository<GIDMoniker, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ListingMailRepository extends JpaRepository<ListingMail, Long> {}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ReceiptItemRepository extends JpaRepository<ReceiptItem, Long> {\n\n}", "@Repository\npublic interface PaymentRepository extends CrudRepository<Payment, UUID> {\n}", "@Repository\r\npublic interface CustomerRepository extends JpaRepository<Customer, Long> {\r\n\r\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PaymentFournisseurRepository extends JpaRepository<PaymentFournisseur, Long> {\n}", "public interface StockFamilyRepository extends JpaRepository<StockFamily,Long> {\n\n}", "public interface DocketCodeRepository extends JpaRepository<DocketCode,Long> {\n\n}", "@Repository\npublic interface DistrictCountryRepository extends JpaRepository<DistrictCountry, String> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface RefGeoCommuneRepository extends JpaRepository<RefGeoCommune, Long> {\n}", "@SuppressWarnings(\"unused\")\npublic interface MerchantRepository extends JpaRepository<Merchant,Long> {\n\n}", "Voucher getVoucherById(String voucherId);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PartnerTypeRepository extends JpaRepository<PartnerType, Long> {\n\n}", "@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto, Integer>{\n \t\n}", "public interface CustomerRepository extends JpaRepository<Customer,Long> {\r\n public Customer findByNumberID(String numberID);\r\n public List<Customer> findByLastName(String lastName);\r\n public List<Customer> findByRegion(Region region);\r\n}", "@Repository\npublic interface RepositoryMain extends CrudRepository<Roulette, Long>{\n\n}", "public interface OrderDetailRepository extends JpaRepository<OrderDetail,String> {\n}", "@Repository\npublic interface CustomerRepository extends JpaRepository<Customer, Integer>{\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface BalanceCalculationRepository extends JpaRepository<BalanceCalculation, Long> {\n\n}", "@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}", "public interface CarsRepository extends JpaRepository<Car, Long> {\n\n}", "public interface GirosLinRepository extends JpaRepository<GirosLin,Long> {\n\n}", "public interface BulkRequestItemDetailsRepository extends JpaRepository<BulkRequestItemEntity, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CashLoadRepository extends JpaRepository<CashLoad, Long> {\n\n}", "public interface StockDeliveryReturnSummaryRepository extends JpaRepository<StockDeliveryReturnSummaryView, String>, JpaSpecificationExecutor<StockDeliveryReturnSummaryView> {\n\n\n List<StockDeliveryReturnSummaryView> findBydoNumber(String doNumber);\n \n\n}", "@Repository\npublic interface ItemPedidoRepository extends JpaRepository<ItemPedido, Integer> {\n}", "@Repository\npublic interface CustomerRepository extends CrudRepository<Customer, Long> {\n\n}", "public interface PresupuestosExpedRepository\nextends CrudRepository<PresupuestosExped, PresupuestosExpedPK>, PresupuestosExpedRepositoryCustom {\n\t/**\n\t * UMESCI-713 Find PresupuestosExped by the parameters\n\t *\n\t * @param numExp\n\t * @param tipMovValue\n\t * @param billStatusActive\n\t * @return\n\t */\n\tPresupuestosExped findPresupuestosExpedByIdNumExpAndTipMovAndEstado(String numExp, String tipMovValue,\n\t\t\tString billStatusActive);\n\n\n}", "public interface PurchPaymentDao extends JpaRepository<PurchPayment, Serializable> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface OrderConsigneeRepository extends JpaRepository<OrderConsignee, Long>, JpaSpecificationExecutor<OrderConsignee> {\n\n}", "public interface OfferingRepository extends JpaRepository<Offering, Long>{\r\n\r\n}", "@Repository\npublic interface TicketRepository extends JpaRepository<Ticket, Long> {\n\n}", "@Repository\npublic interface RedeemRepo extends JpaRepository<Redeem , Long> {\n}", "public interface OptionRepository extends CrudRepository<Option, Long> {\n}", "public interface OptionRepository extends CrudRepository<Option, Long> {\n}", "public interface BookStatusRepository extends JpaRepository<BookStatus, Integer> {\n Optional<BookStatus> findByBookStatusName(BookStatusName bookStatusName);\n}", "@Repository\npublic interface CouponRepository extends CrudRepository <Coupon, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CarerClientRelationRepository extends JpaRepository<CarerClientRelation, Long>, JpaSpecificationExecutor<CarerClientRelation> {\n}", "public interface CustomerRepository extends CrudRepository<Customer, Long> {\n}", "@Repository\npublic interface CustomerRepository extends CrudRepository<Customer, Long> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface FestivalAllowancePaymentDtlRepository extends JpaRepository<FestivalAllowancePaymentDtl, Long>, JpaSpecificationExecutor<FestivalAllowancePaymentDtl> {\n}", "@Repository\npublic interface ContactInformationDAO extends JpaRepository<Contact, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface EMContractRepository extends JpaRepository<EMContract, UUID>,EMContractRepositoryCustom {\n\n /**\n * add by namnh\n *\n * @return\n */\n @Override\n List<EMContract> findAll();\n\n List<EMContract> findAllByIsActiveTrue();\n @Query(value = \"select id from EMContract where UPPER(NoFBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoFBook(String expenseItemCode, UUID companyId);\n\n @Query(value = \"select id from EMContract where UPPER(NoMBook) = UPPER (?1) and CompanyID = ?2 and isActive = 1\", nativeQuery = true)\n UUID findIdByNoMBook(String expenseItemCode, UUID companyId);\n}", "public interface Partner_apiRepository extends JpaRepository<Partner_api,Long> {\n\n}", "public interface AddressesRepository extends JpaRepository<Addresses,Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface RideDetailsRepository extends JpaRepository<RideDetails,Long> {\n \n}", "public interface LossRepository extends JpaRepository<Loss,Long> {\n\n}", "public interface ShipmentRepository extends CrudRepository<ShipmentModel, Long> {\n\n ShipmentModel findByShipmentId(long shipmentId);\n\n}" ]
[ "0.67616606", "0.6691278", "0.667857", "0.64850205", "0.6435807", "0.62968326", "0.6159788", "0.61170286", "0.6098516", "0.60981137", "0.60759765", "0.6049179", "0.6046928", "0.60324985", "0.60296804", "0.602245", "0.599685", "0.59830207", "0.59751785", "0.59719694", "0.59696645", "0.5968555", "0.59629834", "0.5957335", "0.5955274", "0.59077317", "0.59051573", "0.5896215", "0.587743", "0.5876173", "0.58751786", "0.58734065", "0.5873042", "0.5861321", "0.58523536", "0.5834243", "0.5818608", "0.5806487", "0.579652", "0.57762027", "0.57739645", "0.5771918", "0.57603425", "0.57580966", "0.5756172", "0.57525134", "0.57516843", "0.5751228", "0.5750287", "0.57492805", "0.5741614", "0.57396424", "0.57381135", "0.5738091", "0.5732043", "0.57314235", "0.5725094", "0.57245976", "0.572281", "0.57225764", "0.57220507", "0.5718138", "0.5715629", "0.5712469", "0.57122433", "0.57109004", "0.5708173", "0.57078314", "0.5705995", "0.57039195", "0.5701616", "0.5699856", "0.5695944", "0.56948525", "0.5690888", "0.5674298", "0.56742376", "0.5673904", "0.5666081", "0.566448", "0.5659218", "0.5656127", "0.5650373", "0.5650031", "0.56469375", "0.56452245", "0.56452245", "0.56431496", "0.564194", "0.5639037", "0.56338006", "0.5633545", "0.56305695", "0.56295633", "0.56283784", "0.56253606", "0.56218356", "0.5618443", "0.561787", "0.561307" ]
0.6687631
2
private static final int SERVER_PORT = 8088; private static final String CONTEXT_PATH = "rest";
public static void main(final String[] args) throws Exception { Resource.setDefaultUseCaches(false); Integer SERVER_PORT = Integer.parseInt(ManejadorPropiedades.leerPropiedad("app_cfg.properties", "app.port")); String SERVER_HOST = ManejadorPropiedades.leerPropiedad("app_cfg.properties", "app.host"); String CONTEXT_PATH = ManejadorPropiedades.leerPropiedad("app_cfg.properties", "app.context_path"); final Server server = new Server(SERVER_PORT); System.setProperty(AppConfig.SERVER_PORT, SERVER_PORT.toString()); System.setProperty(AppConfig.SERVER_HOST, SERVER_HOST); System.setProperty(AppConfig.CONTEXT_PATH, CONTEXT_PATH); // Configuring Apache CXF servlet and Spring listener final ServletHolder servletHolder = new ServletHolder(new CXFServlet()); final ServletContextHandler context = new ServletContextHandler(); context.setContextPath("/"); context.addServlet(servletHolder, "/" + CONTEXT_PATH + "/*"); context.addEventListener(new ContextLoaderListener()); context.setInitParameter("contextClass", AnnotationConfigWebApplicationContext.class.getName()); context.setInitParameter("contextConfigLocation", AppConfig.class.getName()); FilterHolder filterHolder = context.addFilter(CrossOriginFilter.class,"/*",EnumSet.allOf(DispatcherType.class)); filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_ORIGINS_PARAM,"*"); filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_HEADERS_PARAM,"Content-Type,Authorization,X-Requested-With,Content-Length,Accept,Origin"); filterHolder.setInitParameter(CrossOriginFilter.ALLOWED_METHODS_PARAM,"GET,PUT,POST,DELETE,OPTIONS"); filterHolder.setInitParameter(CrossOriginFilter.PREFLIGHT_MAX_AGE_PARAM,"5184000"); filterHolder.setInitParameter(CrossOriginFilter.ALLOW_CREDENTIALS_PARAM,"true"); // Configuring Swagger as static web resource final ServletHolder swaggerHolder = new ServletHolder(new DefaultServlet()); final ServletContextHandler swagger = new ServletContextHandler(); swagger.setContextPath("/swagger"); swagger.addServlet(swaggerHolder, "/*"); swagger.setResourceBase(new ClassPathResource("/webapp").getURI().toString()); final HandlerList handlers = new HandlerList(); handlers.addHandler(swagger); handlers.addHandler(context); server.setHandler(handlers); server.start(); server.join(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "default int getPort()\n {\n return getInt(\"port\", 80);\n }", "default int getPort() {\n return getServer().getPort();\n }", "public int getServerPortNumber(){\n return this.serverPortNumber;\n }", "public int getServerPort(){\n\t\treturn serverPort; \n\t}", "@Before\n public void setBaseUri () {\n RestAssured.port = 8080;\n RestAssured.baseURI = \"http://localhost\";\n RestAssured.basePath = \"/v1\";\n }", "public static int getServerPort() {\n return _serverPort;\n }", "public int getServerPort() {\n return serverPort;\n }", "public RestServlet() {}", "public int getPort() { return port; }", "int getPort()\n {\n return port;\n }", "public int getPort()\n {\n return port;\n }", "public int getPort(){\n return port;\n }", "default Object port() {\n return metadata().get(\"server-port\");\n }", "public String getPort(){\n return port;\n }", "public static int getServerPort() {\n return serverPort;\n }", "private String getRestUrl() {\n return restUrl;\n }", "int serverPort ();", "int getPort() {\n return port;\n }", "public String getRestUrl() {\n return this.restUrl;\n }", "public Integer getServerport() {\n return serverport;\n }", "public void run() {\n final Server server = new Server(8081);\n\n // Setup the basic RestApplication \"context\" at \"/\".\n // This is also known as the handler tree (in Jetty speak).\n final ServletContextHandler context = new ServletContextHandler(\n server, CONTEXT_ROOT);\n final ServletHolder restEasyServlet = new ServletHolder(\n new HttpServletDispatcher());\n restEasyServlet.setInitParameter(\"resteasy.servlet.mapping.prefix\",\n APPLICATION_PATH);\n restEasyServlet.setInitParameter(\"javax.ws.rs.Application\",\n \"de.kad.intech4.djservice.RestApplication\");\n context.addServlet(restEasyServlet, CONTEXT_ROOT);\n\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "@Override\n\tpublic int getServerPort() {\n\t\treturn 0;\n\t}", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}", "private String getRootUrl() {\n\t\treturn \"http://localhost:\" + port;\n\t}", "@Override\n\tpublic Router getRestlet(Context context){\n\t\tRouter router = new Router(context);\n\t\trouter.attach(\"/links/json\", LinksResource.class);\n\t\trouter.attach(\"/config/json\",FdmReq_CapResource.class);\n\t\t\n\t\t\n\t\treturn router;\n\t}", "public int getDesiredHttpPort() {\n return desiredHttpPort;\n }", "public void start(int port, Handler<AsyncResult<HttpServer>> handler) {\n init();\n logger.info(\"Starting REST HTTP server on port {}\", port);\n httpServer = vertx.createHttpServer()\n .requestHandler(router)\n .listen(port, handler);\n }", "String serviceEndpoint();", "private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}", "@Override\n\t\tpublic int getServerPort() {\n\t\t\treturn 0;\n\t\t}", "private String getRootUrl(String path){\n return \"http://localhost:\" + port + \"/api/v1\" + path;\n }", "default String getHost() {\n return \"localhost\";\n }", "private void initialize() throws IOException, ServletException, URISyntaxException {\n\n LOG.info(\"Initializing the internal Server\");\n Log.setLog(new Slf4jLog(Server.class.getName()));\n\n /*\n * Create and configure the server\n */\n this.server = new Server();\n this.serverConnector = new ServerConnector(server);\n this.serverConnector.setReuseAddress(Boolean.TRUE);\n\n LOG.info(\"Server configure ip = \" + DEFAULT_IP);\n LOG.info(\"Server configure port = \" + DEFAULT_PORT);\n\n this.serverConnector.setHost(DEFAULT_IP);\n this.serverConnector.setPort(DEFAULT_PORT);\n this.server.addConnector(serverConnector);\n\n /*\n * Setup the basic application \"context\" for this application at \"/iop-node\"\n */\n this.servletContextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);\n this.servletContextHandler.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n this.server.setHandler(servletContextHandler);\n\n /*\n * Initialize webapp layer\n */\n WebAppContext webAppContext = new WebAppContext();\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH);\n\n URL webPath = JettyEmbeddedAppServer.class.getClassLoader().getResource(\"web\");\n LOG.info(\"webPath = \" + webPath.getPath());\n\n webAppContext.setResourceBase(webPath.toString());\n webAppContext.setContextPath(JettyEmbeddedAppServer.DEFAULT_CONTEXT_PATH+\"/web\");\n webAppContext.addBean(new ServletContainerInitializersStarter(webAppContext), true);\n webAppContext.setWelcomeFiles(new String[]{\"index.html\"});\n webAppContext.addFilter(AdminRestApiSecurityFilter.class, \"/rest/api/v1/admin/*\", EnumSet.of(DispatcherType.REQUEST));\n webAppContext.setInitParameter(\"org.eclipse.jetty.servlet.Default.dirAllowed\", \"false\");\n servletContextHandler.setHandler(webAppContext);\n server.setHandler(webAppContext);\n\n /*\n * Initialize restful service layer\n */\n ServletHolder restfulServiceServletHolder = new ServletHolder(new HttpServlet30Dispatcher());\n restfulServiceServletHolder.setInitParameter(\"javax.ws.rs.Application\", JaxRsActivator.class.getName());\n restfulServiceServletHolder.setInitParameter(\"resteasy.use.builtin.providers\", \"true\");\n restfulServiceServletHolder.setAsyncSupported(Boolean.TRUE);\n webAppContext.addServlet(restfulServiceServletHolder, \"/rest/api/v1/*\");\n\n this.server.dump(System.err);\n\n }", "public int getHttpPort() {\n return httpServer.getPort();\n }", "public static int getServerPort(){\n return thisServer.getPort();\n }", "private static int getHerokuAssignedPort() {\n return 4567;\n }", "@Override\n public int getPort() {\n final ServiceTracker<HttpService, HttpService> serviceTracker = new ServiceTracker<>(context, HttpService.class, null);\n serviceTracker.open();\n final ServiceReference<HttpService> serviceReference = serviceTracker.getServiceReference();\n serviceTracker.close();\n return ofNullable(serviceReference)\n .map(it -> it.getProperty(\"org.osgi.service.http.port\"))\n .map(String::valueOf)\n .map(Integer::parseInt)\n .orElse(80);\n }", "public String getRestUrl(VariableSpace space) {\n StringBuilder url = new StringBuilder();\n\n if (useSSL) {\n url.append(\"https://\");\n } else {\n url.append(\"http://\");\n }\n\n url.append(space.environmentSubstitute(tenant)).append('.');\n url.append(space.environmentSubstitute(namespace)).append('.');\n url.append(space.environmentSubstitute(server));\n\n String realPort = space.environmentSubstitute(port);\n if (StringUtils.isNotEmpty(realPort)) {\n url.append(':').append(realPort);\n }\n\n url.append(\"/rest\");\n\n return url.toString();\n }", "public static int getPort(){\n return catalogue.port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort () {\n return port;\n }", "public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }", "public int getPort(Env env) {\n return client.getPort();\n }", "public int getPort()\n {\n return port;\n }", "public int getPort(){\n\treturn port;\n }", "public Integer getClientport() {\n return clientport;\n }", "public int getPort()\n {\n\t\treturn url.getPort();\n }", "public interface Rest {\n}", "@Override\n\tpublic void customize(ConfigurableEmbeddedServletContainer container) {\n\t\tcontainer.setPort(8888); \n\t}", "@Test\n public void simpleGet(){\n when()\n .get(\"http:://34.223.219.142:1212/ords/hr/employees\")\n .then().statusCode(200);\n\n }", "public void init() {\n ServletContext context = getServletContext();\r\n host = context.getInitParameter(\"host\");\r\n port = context.getInitParameter(\"port\");\r\n user = context.getInitParameter(\"user\");\r\n pass = context.getInitParameter(\"pass\");\r\n }", "public static String getBasePort() {\r\n if (basePort == null) {\r\n basePort = PropertiesProvider.getInstance().getProperty(\"server.port\", \"8080\");\r\n }\r\n return basePort;\r\n }", "public int getServerPort() {\n\t\treturn serverPort;\n\t}", "public void setRestUrl(String url) {\n this.restUrl = url;\n }", "public int getPort(){\r\n return localPort;\r\n }", "public int getPort(){\r\n return localPort;\r\n }", "@Override\n public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n }", "public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}", "@Override public void startUp(FloodlightModuleContext context) {\n restApi.addRestletRoutable(this);\n\n }", "public void init() {\n ServletContext context = getServletContext();\n host = context.getInitParameter(\"host\");\n port = context.getInitParameter(\"port\");\n user = context.getInitParameter(\"user\");\n pass = context.getInitParameter(\"pass\");\n }", "public WebServer()\n {\n if (!Variables.exists(\"w_DebugLog\"))\n Variables.setVariable(\"w_DebugLog\", true);\n\n if (!Variables.exists(\"w_Port\"))\n Variables.setVariable(\"w_Port\", 80);\n\n if (!Variables.exists(\"w_NetworkBufferSize\"))\n Variables.setVariable(\"w_NetworkBufferSize\", 2048);\n\n PORT = Variables.getInt(\"w_Port\");\n DEBUG = Variables.getBoolean(\"w_DebugLog\");\n BUFFER_SIZE = Variables.getInt(\"w_NetworkBufferSize\");\n }", "public void setServer(int port) {\n this.server = port;\n }", "public static void main(String[] args) {\n\n Request getReq = new Request();\n\n try {\n// getReq.sendReq(\"127.0.0.1\", \"/\", 80);\n getReq.sendReq(\"127.0.0.1\", \"/\", 40289);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n }", "public interface WebApiServer {\n\t\n\t/**\n\t * <p>Starts the server on the specified port.\n\t * \n\t * @param port The port at which the server is to be started.\n\t */\n\tpublic void start(int port);\n\t\n\t/**\n\t * <p>Stops the server and releases the port.\n\t */\n\tpublic void stop();\n\t\n}", "protected final int getServerPort() {\n return this.serverPort;\n }", "public interface IRestServer {\n\n void start();\n\n void stop();\n}", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public String getServerPort() {\r\n\t\treturn this.serverPort;\r\n\t}", "public static HttpServer startServer() {\n // create a resource config that scans for JAX-RS resources and providers\n // in com.example.rest package\n final ResourceConfig rc = new ResourceConfig().packages(\"com.assignment.backend\");\n rc.register(org.glassfish.jersey.moxy.json.MoxyJsonFeature.class);\n rc.register(getAbstractBinder());\n rc.property(ServerProperties.BV_SEND_ERROR_IN_RESPONSE, true);\n rc.property(ServerProperties.BV_DISABLE_VALIDATE_ON_EXECUTABLE_OVERRIDE_CHECK, true);\n\n // create and start a new instance of grizzly http server\n // exposing the Jersey application at BASE_URI\n return GrizzlyHttpServerFactory.createHttpServer(URI.create(BASE_URI), rc);\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "public interface ClientContant {\n /**\n * rpc服务器\n */\n String RPC_SERVER_HOST = \"rpc.server.host\";\n /**\n * rpc服务器端口\n */\n String RPC_SERVER_PORT = \"rpc.server.port\";\n}", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getPort() {\r\n return port;\r\n }", "public int getHttpProxyPort();", "@Bean(name = \"testRestTemplateRoleAdmin\")\n public TestRestTemplate testRestTemplateRoleAdminCreator(@Value(\"${local.server.port}\") int port) {\n RestTemplateBuilder restTemplateBuilder = new RestTemplateBuilder()\n .rootUri(\"http://localhost:\" + port)\n .basicAuthentication(\"admin\", \"devdojo-pass\");\n\n return new TestRestTemplate(restTemplateBuilder);\n }", "public int getPort() {\n return port;\n }", "public int getPort() {\n return port;\n }", "public void setServerport(Integer serverport) {\n this.serverport = serverport;\n }", "public Integer getPort() {\n return port;\n }", "@Path(\"/index\")\n public void index(){\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "@java.lang.Override\n public int getPort() {\n return port_;\n }", "public static void main(String[] args) throws IOException {\n ResourceConfig rc = new PackagesResourceConfig(\"rest\");\n HttpServer server = GrizzlyServerFactory.createHttpServer(\n \"http://localhost:8080\", rc);\n try {\n server.start();\n System.out.println(\"Press any key to stop the server...\");\n System.in.read();\n } catch (Exception e) {\n System.err.println(e);\n }\n }", "public void setServerPort(int serverPort) {\n this.serverPort = serverPort;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }", "public int getPort() {\n return port_;\n }" ]
[ "0.63200504", "0.6303059", "0.624861", "0.6116605", "0.6099029", "0.5977317", "0.5958608", "0.5948126", "0.5924759", "0.5918692", "0.5910274", "0.59050477", "0.5901958", "0.589927", "0.5893556", "0.58908343", "0.5882727", "0.58575773", "0.5846089", "0.58456683", "0.58315104", "0.5769345", "0.57672656", "0.57672656", "0.57488894", "0.57463056", "0.5739031", "0.57340133", "0.5729742", "0.57196844", "0.5715373", "0.57140803", "0.5710159", "0.57090473", "0.5704985", "0.570302", "0.56933874", "0.56868476", "0.5678707", "0.566126", "0.566126", "0.566126", "0.566126", "0.566126", "0.5641344", "0.5638535", "0.5635179", "0.56268007", "0.56257826", "0.56029725", "0.5598922", "0.559627", "0.5591233", "0.55722123", "0.55524015", "0.5545488", "0.5545381", "0.5536229", "0.55213994", "0.55213994", "0.55120003", "0.54982495", "0.5495418", "0.5493482", "0.5489697", "0.5484913", "0.54839164", "0.54817724", "0.5477023", "0.5474121", "0.54551595", "0.54551595", "0.54551595", "0.54551595", "0.54551595", "0.54551595", "0.54551595", "0.54551595", "0.54535735", "0.54469514", "0.5442871", "0.54345906", "0.54307634", "0.54307634", "0.54307634", "0.5429951", "0.5422739", "0.541281", "0.541281", "0.5407926", "0.54078007", "0.539194", "0.5385764", "0.5384836", "0.5380167", "0.5375918", "0.53744227", "0.53744227", "0.53744227", "0.53744227" ]
0.565642
44
This is currently expected to fail, we could fix this, but it may be failing correctly. This class has many duplicate get methods such as : String getDisplayName(Locale inLocale) String getDisplayName() The Java Bean spec (to me) isn't clear that this is an issue, but it does indicate that a matching 'get' and 'set' indicates a read / write property. It doesn't address exactly what happens when you have a 'get' that takes a parameter. Since a method is invoked using `Method.invoke` which takes a varargs parameter, I would think this is ok to allow. I have tested with a locale selector and it seems to work ok if I modify the validation for the 'existingMethod' to compare argument counts to the existing.
@Test public void localeIssues() { This is currently expected to fail, we could fix this, but it may be failing correctly. // This class has many duplicate get methods such as : // - String getDisplayName(Locale inLocale) // - String getDisplayName() // // The Java Bean spec (to me) isn't clear that this is an issue, but it does indicate that a matching 'get<Property Name>' and 'set<Property Name>' indicates // a read / write property. It doesn't address exactly what happens when you have a 'get' that takes a parameter. // // Since a method is invoked using `Method.invoke` which takes a var-args parameter, I would think this is ok to allow. I have tested with a locale selector and it seems to work ok // if I modify the validation for the 'existingMethod' to compare argument counts to the existing. // // https://download.oracle.com/otndocs/jcp/7224-javabeans-1.01-fr-spec-oth-JSpec/ // try { ReflectionUtils.findPropertyInfo(Locale.class); fail("Should have thrown an exception"); } catch (Exception e) { // Expected } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPropertyAccessorMethod(Method paramMethod, Class paramClass) {\n/* 225 */ String str1 = paramMethod.getName();\n/* 226 */ Class<?> clazz = paramMethod.getReturnType();\n/* 227 */ Class[] arrayOfClass1 = paramMethod.getParameterTypes();\n/* 228 */ Class[] arrayOfClass2 = paramMethod.getExceptionTypes();\n/* 229 */ String str2 = null;\n/* */ \n/* 231 */ if (str1.startsWith(\"get\")) {\n/* */ \n/* 233 */ if (arrayOfClass1.length == 0 && clazz != void.class && \n/* 234 */ !readHasCorrespondingIsProperty(paramMethod, paramClass)) {\n/* 235 */ str2 = \"get\";\n/* */ }\n/* */ }\n/* 238 */ else if (str1.startsWith(\"set\")) {\n/* */ \n/* 240 */ if (clazz == void.class && arrayOfClass1.length == 1 && (\n/* 241 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"get\") || \n/* 242 */ hasCorrespondingReadProperty(paramMethod, paramClass, \"is\"))) {\n/* 243 */ str2 = \"set\";\n/* */ \n/* */ }\n/* */ }\n/* 247 */ else if (str1.startsWith(\"is\") && \n/* 248 */ arrayOfClass1.length == 0 && clazz == boolean.class && \n/* 249 */ !isHasCorrespondingReadProperty(paramMethod, paramClass)) {\n/* 250 */ str2 = \"is\";\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 255 */ if (str2 != null && (\n/* 256 */ !validPropertyExceptions(paramMethod) || str1\n/* 257 */ .length() <= str2.length())) {\n/* 258 */ str2 = null;\n/* */ }\n/* */ \n/* */ \n/* 262 */ return (str2 != null);\n/* */ }", "private boolean isHasCorrespondingReadProperty(Method paramMethod, Class paramClass) {\n/* 321 */ String str = paramMethod.getName();\n/* 322 */ boolean bool = false;\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 327 */ String str1 = str.replaceFirst(\"is\", \"get\");\n/* */ \n/* 329 */ Method method = paramClass.getMethod(str1, new Class[0]);\n/* */ \n/* 331 */ bool = isPropertyAccessorMethod(method, paramClass);\n/* */ }\n/* 333 */ catch (Exception exception) {}\n/* */ \n/* */ \n/* */ \n/* 337 */ return bool;\n/* */ }", "private boolean hasCorrespondingReadProperty(Method paramMethod, Class paramClass, String paramString) {\n/* 268 */ String str = paramMethod.getName();\n/* 269 */ Class[] arrayOfClass = paramMethod.getParameterTypes();\n/* 270 */ boolean bool = false;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 276 */ String str1 = str.replaceFirst(\"set\", paramString);\n/* 277 */ Method method = paramClass.getMethod(str1, new Class[0]);\n/* */ \n/* */ \n/* */ \n/* 281 */ bool = (isPropertyAccessorMethod(method, paramClass) && method.getReturnType() == arrayOfClass[0]) ? true : false;\n/* */ }\n/* 283 */ catch (Exception exception) {}\n/* */ \n/* */ \n/* */ \n/* 287 */ return bool;\n/* */ }", "abstract String applicable(Method[] getters) throws InvalidObjectException;", "private boolean isGetterSetterMethod(MethodBean pMethod, ClassBean pClass) {\n for (InstanceVariableBean var : pClass.getInstanceVariables()) {\n if (pMethod.getName().toLowerCase().equals(\"get\" + var.getName())) {\n return true;\n } else if (pMethod.getName().toLowerCase().equals(\"set\" + var.getName())) {\n return true;\n }\n }\n return false;\n }", "public static Method getMethod(String method) throws IllegalArgumentException {\n/* 119 */ return getMethod(method, false);\n/* */ }", "protected String isSetter(final Method<?> method)\r\n {\r\n String methodName = method.getName();\r\n \r\n if (!methodName.startsWith(ClassUtils.JAVABEAN_SET_PREFIX))\r\n {\r\n return null;\r\n }\r\n \r\n String propertyName = methodName.substring(ClassUtils.JAVABEAN_SET_PREFIX.length());\r\n \r\n if (!StringUtils.isCapitalized(propertyName))\r\n {\r\n return null;\r\n }\r\n \r\n return StringUtils.decapitalize(propertyName);\r\n }", "private void mappingMethodGet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodGet = \"get\" + aux;\n\t\tthis.methodGet = this.classFather.getMethod(methodGet);\n\t}", "protected String isGetter(final Method<?> method)\r\n {\r\n \r\n String methodName = method.getName();\r\n String propertyName;\r\n \r\n if (methodName.startsWith(ClassUtils.JAVABEAN_GET_PREFIX))\r\n {\r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_GET_PREFIX.length());\r\n \r\n }\r\n else if (methodName.startsWith(ClassUtils.JAVABEAN_IS_PREFIX)\r\n && boolean.class.equals(method.getQualifiedReturnType()))\r\n {\r\n \r\n // As per section 8.3.2 (Boolean properties) of The JavaBeans API specification, 'is'\r\n // only applies to boolean (little 'b')\r\n \r\n propertyName = methodName.substring(ClassUtils.JAVABEAN_IS_PREFIX.length());\r\n }\r\n else\r\n {\r\n return null;\r\n }\r\n \r\n if (!StringUtils.isCapitalized(propertyName))\r\n {\r\n return null;\r\n }\r\n \r\n return StringUtils.decapitalize(propertyName);\r\n }", "private boolean readHasCorrespondingIsProperty(Method paramMethod, Class paramClass) {\n/* 294 */ return false;\n/* */ }", "private Method m2630a(Class cls, String str, Class cls2) {\n Method method = null;\n String str2 = this.f2338a;\n if (!(str2 == null || str2.length() == 0)) {\n str = str + Character.toUpperCase(str2.charAt(0)) + str2.substring(1);\n }\n if (cls2 == null) {\n try {\n return cls.getMethod(str, null);\n } catch (NoSuchMethodException e) {\n Method declaredMethod;\n try {\n declaredMethod = cls.getDeclaredMethod(str, null);\n try {\n declaredMethod.setAccessible(true);\n return declaredMethod;\n } catch (NoSuchMethodException e2) {\n }\n } catch (NoSuchMethodException e3) {\n declaredMethod = null;\n new StringBuilder(\"Couldn't find no-arg method for property \").append(this.f2338a).append(\": \").append(e);\n return declaredMethod;\n }\n }\n }\n Class[] clsArr = new Class[1];\n Class[] clsArr2 = this.f2341d.equals(Float.class) ? f2333k : this.f2341d.equals(Integer.class) ? f2334l : this.f2341d.equals(Double.class) ? f2335m : new Class[]{this.f2341d};\n int length = clsArr2.length;\n int i = 0;\n while (i < length) {\n Class cls3 = clsArr2[i];\n clsArr[0] = cls3;\n try {\n method = cls.getMethod(str, clsArr);\n this.f2341d = cls3;\n return method;\n } catch (NoSuchMethodException e4) {\n try {\n method = cls.getDeclaredMethod(str, clsArr);\n method.setAccessible(true);\n this.f2341d = cls3;\n return method;\n } catch (NoSuchMethodException e5) {\n i++;\n }\n }\n }\n new StringBuilder(\"Couldn't find setter/getter for property \").append(this.f2338a).append(\" with value type \").append(this.f2341d);\n return method;\n }", "@Override\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tmethodInvocation.invoke();\n\t\treturn method.invoke(bean, args);\n\t}", "public static MemberExpression property(Expression expression, Method method) { throw Extensions.todo(); }", "public java.util.List<String> validateFieldBeanMethods(DBField field)\n {\n Class<gDBR> tableClass = this.getRecordClass();\n String fldName = field.getName();\n Class<?> typeClass = field.getTypeClass();\n\n /* header */\n boolean ok = true;\n java.util.List<String> errMsg = new Vector<String>();\n\n /* check getter */\n String getMethN = _beanMethodName(\"get\", fldName);\n Method getMethod = null;\n for (Class<?> target = tableClass; target != null ; target = target.getSuperclass()) {\n try {\n getMethod = target.getDeclaredMethod(getMethN, new Class<?>[0]);\n break;\n } catch (NoSuchMethodException nsme) {\n // ignore and try again on next iteration\n }\n }\n if (getMethod != null) {\n Class<?> rtnClass = getMethod.getReturnType();\n if (!rtnClass.equals(typeClass)) {\n errMsg.add(\"Invalid getter return type: \" + rtnClass.getName() + \" [expected \" + StringTools.className(typeClass) + \"]\");\n ok = false;\n }\n int mods = getMethod.getModifiers();\n if ((mods & Modifier.PUBLIC) == 0) {\n //errMsg.add(\"Invalid getter scope: \" + _methodScope(mods));\n //ok = false;\n }\n } else {\n errMsg.add(\"Getter not found\");\n ok = false;\n }\n\n /* check setter */\n boolean setFound = false;\n String setMethN = _beanMethodName(\"set\", fldName);\n Method setMethod = null;\n for (Class<?> target = tableClass; target != null ; target = target.getSuperclass()) {\n try {\n setMethod = target.getDeclaredMethod(setMethN, new Class<?>[] { typeClass });\n break;\n } catch (NoSuchMethodException nsme) {\n // ignore and try again on next iteration\n }\n }\n if (setMethod != null) {\n Class<?> rtnClass = setMethod.getReturnType();\n if (!rtnClass.equals(Void.TYPE)) {\n errMsg.add(\"Invalid setter return type: \" + rtnClass.getName() + \" [expected void]\");\n ok = false;\n }\n int mods = setMethod.getModifiers();\n if ((mods & Modifier.PUBLIC) == 0) {\n //errMsg.add(\"Invalid setter scope: \" + _methodScope(mods));\n //ok = false;\n }\n } else {\n errMsg.add(\"Setter not found\");\n ok = false;\n }\n \n /* ok? */\n return ok? null : errMsg;\n \n }", "@Override\n \tprotected boolean checkDelegateMethod(Method input) {\n \t\tif (!domain.checkElementType(target, input.getGenericReturnType())) {\n \t\t\treturn false;\n \t\t}\n \n \t\tClass<?>[] delegateParams = input.getParameterTypes();\n \n \t\t// must have first argument of type of the setter container\n \t\tif (!(delegateParams.length == 1 && domain.checkClassifierType(\n \t\t\t\ttarget.getEContainingClass(), delegateParams[0]))) {\n \t\t\treturn false;\n \t\t}\n \n \t\treturn true;\n \t}", "@Override\r\n\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n\t\tMethod realObjMethod = routerObj.getClass().getMethod(method.getName(), method.getParameterTypes());\r\n\t\tif (realObjMethod.getName().startsWith(RouterProxyFactory.METHOD_PREFIX_SET)){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}\r\n\t\t\r\n\t\treturn realObjMethod.invoke(routerObj, args);\r\n\t}", "public BeanDescription create(Class<?> clazz)\n/* */ {\n/* 32 */ Map<String, Method> propertyNameToGetter = new HashMap();\n/* 33 */ Map<String, Method> propertyNameToSetter = new HashMap();\n/* 34 */ Map<String, Method> propertyNameToAdder = new HashMap();\n/* 35 */ Method[] methods = clazz.getMethods();\n/* 36 */ for (Method method : methods) {\n/* 37 */ if (!method.isBridge())\n/* */ {\n/* */ \n/* */ \n/* 41 */ if (BeanUtil.isGetter(method)) {\n/* 42 */ String propertyName = BeanUtil.getPropertyName(method);\n/* 43 */ Method oldGetter = (Method)propertyNameToGetter.put(propertyName, method);\n/* 44 */ if (oldGetter != null) {\n/* 45 */ if (oldGetter.getName().startsWith(\"is\")) {\n/* 46 */ propertyNameToGetter.put(propertyName, oldGetter);\n/* */ }\n/* 48 */ String message = String.format(\"Class '%s' contains multiple getters for the same property '%s'.\", new Object[] { clazz.getCanonicalName(), propertyName });\n/* 49 */ addWarn(message);\n/* */ }\n/* 51 */ } else if (BeanUtil.isSetter(method)) {\n/* 52 */ String propertyName = BeanUtil.getPropertyName(method);\n/* 53 */ Method oldSetter = (Method)propertyNameToSetter.put(propertyName, method);\n/* 54 */ if (oldSetter != null) {\n/* 55 */ String message = String.format(\"Class '%s' contains multiple setters for the same property '%s'.\", new Object[] { clazz.getCanonicalName(), propertyName });\n/* 56 */ addWarn(message);\n/* */ }\n/* 58 */ } else if (BeanUtil.isAdder(method)) {\n/* 59 */ String propertyName = BeanUtil.getPropertyName(method);\n/* 60 */ Method oldAdder = (Method)propertyNameToAdder.put(propertyName, method);\n/* 61 */ if (oldAdder != null) {\n/* 62 */ String message = String.format(\"Class '%s' contains multiple adders for the same property '%s'.\", new Object[] { clazz.getCanonicalName(), propertyName });\n/* 63 */ addWarn(message);\n/* */ }\n/* */ } }\n/* */ }\n/* 67 */ return new BeanDescription(clazz, propertyNameToGetter, propertyNameToSetter, propertyNameToAdder);\n/* */ }", "private boolean compatible(PropertyDescriptor getter, PropertyDescriptor setter) {\n boolean match = setter.getPropertyType().isAssignableFrom(getter.getPropertyType());\n return match;\n }", "protected abstract MethodDescription accessorMethod();", "private static void lookupJNDIMethodResource(javax.naming.Context context, Object instance, Method method, String name) throws NamingException,\n\t\t\tIllegalAccessException, InvocationTargetException {\n\n\t\tif (!method.getName().startsWith(\"set\") || method.getParameterTypes().length != 1 || !method.getReturnType().getName().equals(\"void\")) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid method resource injection annotation\");\n\t\t}\n\n\t\tObject lookedupResource = null;\n\t\tboolean accessibility = false;\n\n\t\tif ((name != null) && (name.length() > 0)) {\n\t\t\tlookedupResource = context.lookup(name);\n\t\t} else {\n\t\t\tlookedupResource = findByClass(context, method.getParameterTypes()[0]);\n\t\t}\n\n\t\taccessibility = method.isAccessible();\n\t\tmethod.setAccessible(true);\n\t\tmethod.invoke(instance, lookedupResource);\n\t\tmethod.setAccessible(accessibility);\n\t}", "boolean isSetMethod();", "@Override\n public Object invoke(Object o, Method method, Object[] objects) throws Throwable {\n\n String name = method.getName();\n\n try {\n Method proxyMethod = proxyObject.getClass().getMethod(method.getName(), method.getParameterTypes());\n return proxyMethod.invoke( proxyObject, objects );\n }\n catch (NoSuchMethodException e) {\n\n if ( proxyObject instanceof ProxyAccessor ) {\n ProxyAccessor access = (ProxyAccessor) proxyObject;\n\n if (( name.startsWith(\"get\") || name.startsWith(\"is\"))\n && objects == null) {\n return access._getValueByName(getField(name));\n }\n else if (name.startsWith(\"set\")\n && objects != null && objects.length==1) {\n access._setValueByName(getField(name), objects[0]);\n return null;\n }\n }\n\n throw e;\n }\n }", "public void setMethod(String newValue);", "@Test( expected = UnsupportedOperationException.class )\n public void whenCallingPropertyNames() {\n UserParametersStub lStub = new UserParametersStub( USER_ID, PARM_TYPE );\n lStub.propertyNames();\n }", "private void populateMethod(UIBean uiBean) {\r\n String methodName;\r\n if (method != null) {\r\n methodName = eval.evaluateExpression(method);\r\n } else {\r\n methodName = DEFAULT_METHOD;\r\n }\r\n uiBean.addParameter(\"method\", methodName);\r\n }", "boolean hasGetProperty();", "@Override\n String applicable(Method[] getters) throws InvalidObjectException {\n Class targetClass = getTargetClass();\n try {\n Method fromMethod = targetClass.getMethod(\"from\", CompositeData.class);\n\n if (!Modifier.isStatic(fromMethod.getModifiers())) {\n final String msg = \"Method from(CompositeData) is not static\";\n throw new InvalidObjectException(msg);\n }\n\n if (fromMethod.getReturnType() != getTargetClass()) {\n final String msg = \"Method from(CompositeData) returns \"\n + typeName(fromMethod.getReturnType()) + \" not \" + typeName(targetClass);\n throw new InvalidObjectException(msg);\n }\n\n this.fromMethod = fromMethod;\n return null;\n } catch (InvalidObjectException e) {\n throw e;\n } catch (Exception e) {\n return \"no method from(CompositeData)\";\n }\n }", "@Override\n public InstanceProperties getInstanceProperties(String methodName) throws InvalidParameterException\n {\n InstanceProperties properties = super.getInstanceProperties(methodName);\n\n try\n {\n properties = repositoryHelper.addEnumPropertyToInstance(serviceName,\n properties,\n OpenMetadataAPIMapper.CONTACT_METHOD_TYPE_PROPERTY_NAME,\n OpenMetadataAPIMapper.CONTACT_METHOD_TYPE_ENUM_TYPE_GUID,\n OpenMetadataAPIMapper.CONTACT_METHOD_TYPE_ENUM_TYPE_NAME,\n contactMethodType,\n methodName);\n }\n catch (TypeErrorException error)\n {\n throw new InvalidParameterException(error, OpenMetadataAPIMapper.STARS_PROPERTY_NAME);\n }\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName,\n properties,\n OpenMetadataAPIMapper.NAME_PROPERTY_NAME,\n name,\n methodName);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName,\n properties,\n OpenMetadataAPIMapper.CONTACT_TYPE_PROPERTY_NAME,\n contactType,\n methodName);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName,\n properties,\n OpenMetadataAPIMapper.CONTACT_METHOD_SERVICE_PROPERTY_NAME,\n contactMethodService,\n methodName);\n\n properties = repositoryHelper.addStringPropertyToInstance(serviceName,\n properties,\n OpenMetadataAPIMapper.CONTACT_METHOD_VALUE_PROPERTY_NAME,\n contactMethodValue,\n methodName);\n\n return properties;\n }", "private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}", "public Method findMatchingGetMethod(Object bean, String propertyName) {\n\t\tfor (Method method : bean.getClass().getMethods()) {\n\t\t\t// find all the set methods\n\t\t\tif (method.getName().startsWith(\"get\") && method.getName().length() > \"get\".length()) {\n\t\t\t\tString methodName = method.getName().substring(\"get\".length());\n\t\t\t\tmethodName = methodName.replace(methodName.substring(0,1), methodName.substring(0,1).toLowerCase());\n\t\t\t\tif (methodNameMatches(methodName, propertyName)) {\n\t\t\t\t\tif (method.getReturnType() == null) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Unable to find matching getter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]. Found [\" + method.getName() + \"] but this does not have a return type.\");\n\t\t\t\t\t}\n\t\t\t\t\treturn method;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(\"Unable to find matching getter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]\");\n\t}", "public static boolean isGetter(Method method) {\n if (!method.getName().startsWith(\"get\")) {\n return false;\n }\n if (method.getParameterTypes().length != 0) {\n return false;\n }\n if (void.class.equals(method.getReturnType())) {\n return false;\n }\n return true;\n }", "public boolean hasGetterForField(FieldDescription field) {\n Set<String> gettersCompatibleWithFieldType = new HashSet<>();\n for (GetterDescription getter : union(this.gettersDescriptions, this.declaredGettersDescriptions)) {\n if (Objects.equals(field.getValueType(), getter.getValueType())) {\n gettersCompatibleWithFieldType.add(getter.getOriginalMember().getName());\n }\n }\n // check boolean getters\n final String capName = capitalize(field.getName());\n if (field.isPredicate()) {\n for (String prefix : PREDICATE_PREFIXES.keySet()) {\n if (gettersCompatibleWithFieldType.contains(prefix + capName)) return true;\n }\n }\n // standard getter\n return gettersCompatibleWithFieldType.contains(\"get\" + capName);\n }", "protected boolean isSetter(Method meth) {\n return startsWith(meth.getName(), \"set\")\n || startsWith(meth.getName(), \"add\")\n || startsWith(meth.getName(), \"remove\")\n || startsWith(meth.getName(), \"insert\")\n || startsWith(meth.getName(), \"clear\")\n || startsWith(meth.getName(), \"roll\"); // used by Calendar\n }", "@Override\n public InstanceProperties getInstanceProperties(String methodName) throws InvalidParameterException {\n InstanceProperties properties = super.getInstanceProperties(methodName);\n\n if (name != null) {\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.NAME_PROPERTY_NAME, name, methodName);\n }\n\n if (description != null) {\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.DESCRIPTION_PROPERTY_NAME, description, methodName);\n }\n\n if (deployedImplementationType != null) {\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.DEPLOYED_IMPLEMENTATION_TYPE_PROPERTY_NAME, deployedImplementationType, methodName);\n }\n\n if (capabilityVersion != null) {\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.CAPABILITY_VERSION_PROPERTY_NAME, capabilityVersion, methodName);\n }\n\n if (patchLevel != null) {\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.PATCH_LEVEL_PROPERTY_NAME, patchLevel, methodName);\n }\n\n if (source != null) {\n properties = repositoryHelper.addStringPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.SOURCE_PROPERTY_NAME, source, methodName);\n }\n\n if(MapUtils.isNotEmpty(additionalProperties)) {\n properties = repositoryHelper.addStringMapPropertyToInstance(serviceName, properties,\n OpenMetadataAPIMapper.ADDITIONAL_PROPERTIES_PROPERTY_NAME, additionalProperties, methodName);\n }\n\n return properties;\n }", "private static boolean isUserDefinedMethod(final Method method) {\n if (!method.equals(OBJECT_EQUALS)\n && !method.equals(OBJECT_HASH_CODE)\n && !method.equals(OBJECT_GET_CLASS)\n && !method.equals(OBJECT_TO_STRING)\n && !method.equals(OBJECT_CLONE)\n && !method.equals(OBJECT_WAIT_1)\n && !method.equals(OBJECT_WAIT_2)\n && !method.equals(OBJECT_WAIT_3)\n && !method.equals(OBJECT_NOTIFY)\n && !method.equals(OBJECT_NOTIFY_ALL)\n && !method.getName().startsWith(TransformationConstants.SYNTHETIC_MEMBER_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ORIGINAL_METHOD_PREFIX)\n && !method.getName().startsWith(TransformationConstants.ASPECTWERKZ_PREFIX)) {\n return true;\n } else {\n return false;\n }\n }", "public PropertySpecBuilder<T> parser(Function<Object, T> valueMethod)\n {\n Preconditions.checkArgument(this.valueMethod == null, \"value method already set\");\n this.valueMethod = valueMethod;\n\n return this;\n }", "private void processPropValidators() {\n getMethodsWithAnnotation(component, PropValidator.class).forEach(method -> {\n PropValidator propValidator = method.getAnnotation(PropValidator.class);\n\n if (!TypeName.get(method.getReturnType()).equals(TypeName.BOOLEAN)) {\n printError(\"Method \"\n + method.getSimpleName()\n + \" annotated with PropValidator must return a boolean.\");\n }\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String propertyName = propValidator.value();\n optionsBuilder.addStatement(\"options.addJavaPropValidator(p.$L, $S)\",\n exposedMethodName,\n propertyName);\n });\n }", "protected void lookupSetters(final Map<String, Property> properties, final MethodHolder<?> clazz)\r\n {\r\n for (Method<?> method : clazz.getMethods())\r\n {\r\n // Exclude static methods\r\n \r\n if (method.isStatic())\r\n {\r\n continue;\r\n }\r\n \r\n // Get type\r\n \r\n List<Parameter> parameters = method.getParameters();\r\n \r\n if (parameters.size() != 1)\r\n {\r\n continue;\r\n }\r\n \r\n // Get name\r\n \r\n String propertyName = isSetter(method);\r\n \r\n if (propertyName == null)\r\n {\r\n continue;\r\n }\r\n \r\n // Exclude based on other criteria\r\n //\r\n // (explicitly set to null in case we encountered an imbalanced field/getter)\r\n \r\n String type = parameters.get(0).getType();\r\n \r\n Field<?> privateField = getPrivateField((FieldHolder<?>) clazz, propertyName);\r\n \r\n if (privateField != null && this.privateFieldConvention == null)\r\n {\r\n propertyName = privateField.getName();\r\n }\r\n \r\n // Already found via its getter?\r\n \r\n Property existingProperty = properties.get(propertyName);\r\n \r\n if (existingProperty instanceof ForgeProperty)\r\n {\r\n ForgeProperty existingForgeProperty = (ForgeProperty) existingProperty;\r\n \r\n // Beware covariant return types: always prefer the getter's type\r\n \r\n properties.put(\r\n propertyName,\r\n new ForgeProperty(propertyName, existingForgeProperty.getType(),\r\n existingForgeProperty.getReadMethod(), method, getPrivateField((FieldHolder<?>) clazz,\r\n propertyName)));\r\n continue;\r\n }\r\n \r\n // Explicitly excluded based on getter already?\r\n \r\n if ((existingProperty == null) && properties.containsKey(propertyName))\r\n {\r\n continue;\r\n }\r\n \r\n properties\r\n .put(propertyName,\r\n new ForgeProperty(propertyName, type, null, method, privateField));\r\n }\r\n }", "@Test(expected=AssertionError.class)\n\tpublic void testPassInvalidFieldToGettersAddress() {\n\t\tbeanTester.testGetterForField(\"invalid\");\n\t}", "protected StateVariableAccessor findOutputArgumentAccessor(StateVariable stateVariable, String getterName, boolean multipleArguments) throws LocalServiceBindingException {\n/* 214 */ boolean isVoid = getMethod().getReturnType().equals(void.class);\n/* */ \n/* 216 */ if (isVoid) {\n/* */ \n/* 218 */ if (getterName != null && getterName.length() > 0) {\n/* 219 */ log.finer(\"Action method is void, will use getter method named: \" + getterName);\n/* */ \n/* */ \n/* 222 */ Method getter = Reflections.getMethod(getMethod().getDeclaringClass(), getterName);\n/* 223 */ if (getter == null) {\n/* 224 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on: \" + \n/* 225 */ getMethod().getDeclaringClass());\n/* */ }\n/* */ \n/* 228 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 230 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* */ \n/* 233 */ log.finer(\"Action method is void, trying to find existing accessor of related: \" + stateVariable);\n/* 234 */ return getStateVariables().get(stateVariable);\n/* */ } \n/* */ \n/* */ \n/* 238 */ if (getterName != null && getterName.length() > 0) {\n/* 239 */ log.finer(\"Action method is not void, will use getter method on returned instance: \" + getterName);\n/* */ \n/* */ \n/* 242 */ Method getter = Reflections.getMethod(getMethod().getReturnType(), getterName);\n/* 243 */ if (getter == null) {\n/* 244 */ throw new LocalServiceBindingException(\"Declared getter method '\" + getterName + \"' not found on return type: \" + \n/* 245 */ getMethod().getReturnType());\n/* */ }\n/* */ \n/* 248 */ validateType(stateVariable, getter.getReturnType());\n/* */ \n/* 250 */ return (StateVariableAccessor)new GetterStateVariableAccessor(getter);\n/* */ } \n/* 252 */ if (!multipleArguments) {\n/* 253 */ log.finer(\"Action method is not void, will use the returned instance: \" + getMethod().getReturnType());\n/* 254 */ validateType(stateVariable, getMethod().getReturnType());\n/* */ } \n/* */ \n/* 257 */ return null;\n/* */ }", "@SuppressWarnings(\"hiding\")\n @Override\n public void setMethod(String method) {\n this.method = method;\n }", "@Test\n public void testAssertObjectNoGetMethodsType() {\n // setup\n final NoGetMethodsType noGetMethodsType = new NoGetMethodsType(TEST);\n final ChangedProperty<String> jokerProperty = Property.change(NoGetMethodsType.PROPERTY, TEST + TEST);\n\n // method\n assertObject(EMPTY_STRING, noGetMethodsType, jokerProperty);\n }", "public static boolean isSetter(Method method) {\n if (!method.getName().startsWith(\"set\")) {\n return false;\n }\n if (method.getParameterTypes().length != 1) {\n return false;\n }\n return true;\n }", "public NullSafeBuilder<T> onMethod(String methodName)\n {\n /* find matching method */\n boolean isMethodFound = false;\n for (Method checkMethod : type.getDeclaredMethods()) {\n if ( checkMethod.getName().equals(methodName) ) {\n nullSafeMethods.add(checkMethod);\n log.info(\"added null safe method: {}\", checkMethod);\n isMethodFound = true;\n }\n }\n \n if ( !isMethodFound ) {\n throw new IllegalArgumentException(\"method not found: \" + methodName);\n }\n \n return this;\n }", "public Method findMatchingSetMethod(Object bean, String propertyName) {\n\t\tfor (Method method : bean.getClass().getMethods()) {\n\t\t\t// find all the set methods\n\t\t\tif (method.getName().startsWith(\"set\") && method.getName().length() > \"set\".length()) {\n\t\t\t\tString methodName = method.getName().substring(\"set\".length());\n\t\t\t\tmethodName = methodName.replace(methodName.substring(0,1), methodName.substring(0,1).toLowerCase());\n\t\t\t\tif (methodNameMatches(methodName, propertyName)) {\n\t\t\t\t\tClass<?>[] paramTypes = method.getParameterTypes();\n\t\t\t\t\tif (paramTypes.length != 1) {\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Unable to find matching setter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]. Found [\" + method.getName() + \"] but this expects [\" + paramTypes.length + \"] parameters when it shoud be expecting [1] parameter\");\n\t\t\t\t\t}\n\t\t\t\t\treturn method;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tthrow new IllegalArgumentException(\"Unable to find matching setter method for [\" + propertyName + \"] in bean [\" + bean.getClass().getCanonicalName() + \"]\");\n\t}", "private static Method getMethod(\n String name, List<Pair<OvsDbConverter.Entry, Object>> args)\n throws NoSuchMethodException {\n Class<?>[] types = new Class<?>[args.size()];\n for (int index = 0; index < args.size(); index++) {\n types[index] = args.get(index).first.type;\n }\n return ConfigurationService.class.getDeclaredMethod(name, types);\n }", "Method getMethod(int id, boolean filterObsolete);", "static void m6826d() {\n throw new NoSuchMethodError();\n }", "public Object invoke(ELContext context, Object base, Object method, Class<?>[] paramTypes, Object[] params) {\n/* 211 */ context.setPropertyResolved(false);\n/* */ \n/* */ \n/* 214 */ for (int i = 0; i < this.size; i++) {\n/* 215 */ Object value = this.elResolvers[i].invoke(context, base, method, paramTypes, params);\n/* */ \n/* 217 */ if (context.isPropertyResolved()) {\n/* 218 */ return value;\n/* */ }\n/* */ } \n/* 221 */ return null;\n/* */ }", "boolean isGetter(Object message) {\n\t\t\r\n\t\tif (!(message instanceof RemoteCall)) return false;\t\r\n\t\tRemoteCall serializableCall = (RemoteCall) message;\r\n\t\tMethod method = serializableCall.getMethod();\r\n\t\treturn RemoteReflectionUtility.isGetter(method);\t\r\n\t}", "public static Object invokeMethod(Method method, Object target, Object... args) {\n try {\n return method.invoke(target, args);\n } catch (Exception e) {\n handleReflectionException(e);\n }\n throw new IllegalStateException(\"Should never get here\");\n }", "public static <T> void updatePropertyIfAbsent(Supplier<T> getterMethod, Consumer<T> setterMethod, T newValue) {\n if (newValue != null && getterMethod.get() == null) {\n setterMethod.accept(newValue);\n }\n }", "private boolean overwrite(Object target, Object delta) {\n Method[] methods = target.getClass().getMethods();\n\n for(Method toMethod: methods){\n if(toMethod.getDeclaringClass().equals(target.getClass())\n && toMethod.getName().startsWith(\"set\")){\n\n String toName = toMethod.getName();\n String fromName = toName.replace(\"set\", \"get\");\n\n try {\n Method fromMethod = delta.getClass().getMethod(fromName);\n Object value = fromMethod.invoke(delta, (Object[])null);\n if(value != null){\n toMethod.invoke(target, value);\n }\n } catch (Exception e) {\n e.printStackTrace();\n return false;\n }\n }\n }\n return true;\n }", "@Nullable\n abstract Method getMethod();", "public Result testGetMethodDescriptors() {\n try {\n beanInfo.getPropertyDescriptors();\n MethodDescriptor[] methodDescriptors = beanInfo\n .getMethodDescriptors();\n assertTrue(findMethod(\"getProperty8\", methodDescriptors));\n assertTrue(findMethod(\"setProperty8\", methodDescriptors));\n assertTrue(findMethod(\"removeFredListener\", methodDescriptors));\n assertTrue(findMethod(\"addFredListener\", methodDescriptors));\n assertTrue(findMethod(\"ssetI\", methodDescriptors));\n assertTrue(findMethod(\"ggetI\", methodDescriptors));\n assertTrue(findMethod(\"getClass\", methodDescriptors));\n assertTrue(findMethod(\"equals\", methodDescriptors));\n assertTrue(findMethod(\"hashCode\", methodDescriptors));\n assertTrue(findMethod(\"notify\", methodDescriptors));\n assertTrue(findMethod(\"notifyAll\", methodDescriptors));\n assertTrue(findMethod(\"toString\", methodDescriptors));\n\n // 3 wait methods\n assertTrue(findMethod(\"wait\", methodDescriptors));\n assertEquals(methodDescriptors.length, 15);\n return passed();\n } catch (Exception e) {\n e.printStackTrace();\n return failed(e.getMessage());\n }\n }", "public LookupOverride(String methodName, String beanName) {\r\n\t\tsuper(methodName);\r\n\t\tthis.beanName = beanName;\r\n\t}", "protected void lookupGetters(final Map<String, Property> properties, final MethodHolder<?> clazz)\r\n {\r\n // Hack until https://issues.jboss.org/browse/FORGE-368\r\n \r\n for (Method<?> method : clazz.getMethods())\r\n {\r\n // Exclude static methods\r\n \r\n if (method.isStatic())\r\n {\r\n continue;\r\n }\r\n \r\n // Get type\r\n \r\n if (!method.getParameters().isEmpty())\r\n {\r\n continue;\r\n }\r\n \r\n String returnType = method.getQualifiedReturnType();\r\n \r\n if (returnType == null)\r\n {\r\n continue;\r\n }\r\n \r\n // Get name\r\n \r\n String propertyName = isGetter(method);\r\n \r\n if (propertyName == null)\r\n {\r\n continue;\r\n }\r\n \r\n Field<?> privateField = getPrivateField((FieldHolder<?>) clazz, propertyName);\r\n \r\n if (privateField != null && this.privateFieldConvention == null)\r\n {\r\n propertyName = privateField.getName();\r\n }\r\n \r\n properties\r\n .put(propertyName,\r\n new ForgeProperty(propertyName, returnType, method, null, privateField));\r\n }\r\n }", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "ClassMember search (ClassMember method) {\r\n ClassMember m = (ClassMember) by_name_table.get (method.type.toString ());\r\n\r\n if (m == null) return null;\r\n\r\n if (!((MethodType) m.type).return_type.isSame (((MethodType) method.type).return_type)) {\r\n /* overriding methods must be exactly same */\r\n OzcError.illegalOverride (method);\r\n return null;\r\n } \r\n\r\n if ((m.isPublic () && !method.isPublic ()) ||\r\n\t(m.isProtected () && method.isPrivate ())) {\r\n /* overriding methods must be more publicity */\r\n OzcError.illegalOverridePublicity (method);\r\n return null;\r\n }\r\n\r\n return m;\r\n }", "private Method getMethod(String methodName, Class targetClass, Class[] argument) throws SecurityException, NoSuchMethodException\n \t{\n \t\tassert methodName != null;\n \t\tassert targetClass != null;\n \t\tassert argument != null;\n \t\t\n \t\treturn targetClass.getMethod( methodName, argument );\n \t}", "@Test\n public void testGetBeanCopier() {\n//TODO: Test goes here... \n/* \ntry { \n Method method = BeanUtil.getClass().getMethod(\"getBeanCopier\", Class<?>.class, Class<?>.class); \n method.setAccessible(true); \n method.invoke(<Object>, <Parameters>); \n} catch(NoSuchMethodException e) { \n} catch(IllegalAccessException e) { \n} catch(InvocationTargetException e) { \n} \n*/\n }", "@Test\r\n public void testGetterMethodSucess() throws Exception {\r\n Method m = GetterMethod.getGetter(Tumor.class, \"tumorId\");\r\n assertNotNull(m);\r\n assertEquals(\"getTumorId\", m.getName());\r\n }", "public static void runJavaBeanMethod(String value, Method method, Object obj)\n throws ResourceException {\n if ((value == null) || value.trim().equals(\"\")) {\n return;\n }\n\n try {\n Class[] parameters = method.getParameterTypes();\n\n if (parameters.length == 1) {\n Object[] values = new Object[1];\n values[0] = convertType(parameters[0], value);\n method.invoke(obj, values);\n }\n } catch (IllegalAccessException iae) {\n _logger.log(Level.SEVERE, \"jdbc.exc_jb_val\", iae);\n\n String msg = sm.getString(\"me.access_denied\", method.getName());\n throw new ResourceException(msg);\n } catch (IllegalArgumentException ie) {\n _logger.log(Level.SEVERE, \"jdbc.exc_jb_val\", ie);\n\n String msg = sm.getString(\"me.illegal_args\", method.getName());\n throw new ResourceException(msg);\n } catch (InvocationTargetException ite) {\n _logger.log(Level.SEVERE, \"jdbc.exc_jb_val\", ite);\n\n String msg = sm.getString(\"me.access_denied\", method.getName());\n throw new ResourceException(msg);\n }\n }", "@Override\n public Object invoke(Object proxy, Method method, Object[] args)\n throws Throwable {\n if (method.getDeclaringClass() == Object.class) {\n return method.invoke(this, args);\n }\n ServiceMethod<Object, Object> serviceMethod =\n (ServiceMethod<Object, Object>) loadServiceMethod(method);\n ServiceCall<Object> serviceCall = new ServiceCall<>(serviceMethod, args);\n return serviceMethod.adapt(serviceCall, args);\n }", "private void validateSessionBeanMethod(IClassBean bean, IBeanMethod method, Set<ITextSourceReference> annotatedParams, String errorMessage, String preferencesKey, int id) {\r\n \t\tif (bean instanceof ISessionBean && annotatedParams != null) {\r\n \t\t\tIMethod iMethod = CDIUtil.getBusinessMethodDeclaration((SessionBean)bean, method);\r\n \t\t\tif(iMethod==null) {\r\n \t\t\t\tsaveAllSuperTypesAsLinkedResources(bean);\r\n \t\t\t\tfor (ITextSourceReference declaration : annotatedParams) {\r\n \t\t\t\t\tString bindedErrorMessage = NLS.bind(errorMessage, new String[]{method.getMethod().getElementName(), bean.getBeanClass().getElementName()});\r\n \t\t\t\t\taddError(bindedErrorMessage, preferencesKey, declaration, bean.getResource(), id);\r\n \t\t\t\t}\r\n \t\t\t} else if (iMethod != method.getMethod() && !iMethod.isBinary()) {\r\n \t\t\t\tgetValidationContext().addLinkedCoreResource(bean.getSourcePath().toOSString(), iMethod.getResource().getFullPath(), false);\r\n \t\t\t}\r\n \t\t}\r\n \t}", "private void processWatcher(MethodSpec.Builder createdMethodBuilder, ExecutableElement method) {\n Watch watch = method.getAnnotation(Watch.class);\n\n String exposedMethodName = exposeExistingJavaMethodToJs(method);\n String watcherTriggerMethodName = addNewMethodToProto();\n\n MethodSpec.Builder watcherMethodBuilder = MethodSpec\n .methodBuilder(watcherTriggerMethodName)\n .addModifiers(Modifier.PUBLIC)\n .addAnnotation(JsMethod.class)\n .returns(Object.class);\n\n String[] valueSplit = watch.value().split(\"\\\\.\");\n\n String currentExpression = \"\";\n for (int i = 0; i < valueSplit.length - 1; i++) {\n currentExpression += valueSplit[i];\n watcherMethodBuilder.addStatement(\"if ($L == null) return null\", currentExpression);\n currentExpression += \".\";\n }\n\n watcherMethodBuilder.addStatement(\"return $L\", watch.value());\n\n componentExposedTypeBuilder.addMethod(watcherMethodBuilder.build());\n\n createdMethodBuilder\n .addStatement(\"vue().$L(p.$L, p.$L, $T.of($L, $L))\", \"$watch\",\n watcherTriggerMethodName, exposedMethodName, WatchOptions.class, watch.isDeep(),\n watch.isImmediate());\n }", "@Test\n\tpublic void testMethodCRUDConfig() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\tfinal IntrospectionFullType mutationType = getFullType(introspection, schemaConfig.getMutationTypeName());\n\t\tfinal String saveMethodName = schemaConfig.getMutationSavePrefix() + Entity7.class.getSimpleName();\n\t\tfinal String deleteMethodName = schemaConfig.getMutationDeletePrefix() + Entity8.class.getSimpleName();\n\t\tfinal String getByIdMethodName = schemaConfig.getQueryGetByIdPrefix() + Entity9.class.getSimpleName();\n\t\tfinal String getAllMethodName = schemaConfig.getQueryGetListPrefix() + Entity9.class.getSimpleName();\n\t\tfinal Optional<IntrospectionTypeField> optionalSaveMethod = getOptionalField(mutationType, saveMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalDeleteMethod = getOptionalField(mutationType, deleteMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalGetByIdMethod = getOptionalField(queryType, getByIdMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalGetAllMethod = getOptionalField(queryType, getAllMethodName);\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", saveMethodName),\n\t\t\t\toptionalSaveMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", deleteMethodName),\n\t\t\t\toptionalDeleteMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", getByIdMethodName),\n\t\t\t\toptionalGetByIdMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", getAllMethodName),\n\t\t\t\toptionalGetAllMethod.isPresent());\n\t}", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testPassNullToGettersAddress() {\n\t\tbeanTester.testGetterForField(null);\n\t}", "@Override\n public Object getProperty(final Object bean,\n final String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException {\n\n if (!collections.isEmpty()) {\n final String key = getResolver().getProperty(name);\n Pair<String, Object> collectionInfo = collections.pop();\n if (bean instanceof Map) {\n Map map = (Map) bean;\n if (!map.containsKey(key)) {\n map.put(key, newNamedInstanceForCollection(collectionInfo.getA(), collectionInfo.getB(), key));\n }\n Object value = map.get(key);\n return trackCollectionOrMap(null, value, value);\n } else { // collection\n Object value = findByNameProperty(key, (Collection)bean);\n if (value == null) {\n // create it\n value = newNamedInstanceForCollection(collectionInfo.getA(), collectionInfo.getB(), key);\n ((Collection) bean).add(value);\n }\n return trackCollectionOrMap(null, value, value);\n }\n }\n\n Object resolved = null;\n\n try {\n resolved = getNestedProperty(bean, name);\n } catch (final NoSuchMethodException e) {\n // to avoid it being swallowed by caller wrap\n throw new InvocationTargetException(e, \"Cannot access property with key: \" + name);\n }\n\n return trackCollectionOrMap(name, resolved, bean);\n }", "public void testBeforeGet() throws Exception {\r\n GroovyClassLoader gcl = new GroovyClassLoader();\r\n final Class<?> testClass = gcl.parseClass(\"class Test { def prop = 'hello' }\");\r\n GroovyObject go = (GroovyObject)testClass.newInstance();\r\n\r\n ProxyMetaClass pmc = ProxyMetaClass.getInstance(testClass);\r\n go.setMetaClass(pmc);\r\n\r\n pmc.setInterceptor( new PropertyAccessInterceptor(){\r\n\r\n public Object beforeGet(Object object, String property, InvocationCallback callback) {\r\n callback.markInvoked();\r\n return \"success\";\r\n }\r\n\r\n public void beforeSet(Object object, String property, Object newValue, InvocationCallback callback) {\r\n // TODO Auto-generated method stub\r\n }\r\n\r\n public Object beforeInvoke(Object object, String methodName, Object[] arguments, InvocationCallback callback) {\r\n return null;\r\n }\r\n\r\n public Object afterInvoke(Object object, String methodName, Object[] arguments, Object result) {\r\n return null;\r\n }\r\n });\r\n\r\n Object result = go.getProperty(\"prop\");\r\n assertNotNull(result);\r\n assertEquals(\"success\",result);\r\n }", "ClassMember getMethod () { return method; }", "public static void runJavaBeanMethod(String name, String value,\n Method method, Object obj) throws ResourceException {\n if ((value == null) || value.trim().equals(\"\")) {\n return;\n }\n\n try {\n Class[] parameters = method.getParameterTypes();\n\n if (parameters.length == 2) {\n Object[] values = new Object[2];\n values[0] = convertType(parameters[0], name);\n values[1] = convertType(parameters[1], value);\n method.invoke(obj, values);\n }\n } catch (IllegalAccessException iae) {\n _logger.log(Level.SEVERE, \"jdbc.exc_jb_val\", iae);\n\n String msg = sm.getString(\"me.access_denied\", method.getName());\n throw new ResourceException(msg);\n } catch (IllegalArgumentException ie) {\n _logger.log(Level.SEVERE, \"jdbc.exc_jb_val\", ie);\n\n String msg = sm.getString(\"me.illegal_args\", method.getName());\n throw new ResourceException(msg);\n } catch (InvocationTargetException ite) {\n _logger.log(Level.SEVERE, \"jdbc.exc_jb_val\", ite);\n\n String msg = sm.getString(\"me.inv_denied\", method.getName());\n throw new ResourceException(msg);\n }\n }", "public void validateMethodCall(HashMap<String, ArrayList<String>> callElements) throws\r\n\t\t\tIllegalOperationException, IncompatibleTypeException {\r\n\t\tMap.Entry<String, ArrayList<String>> data = callElements.entrySet().iterator().next();\r\n\t\tString methodName = data.getKey();\r\n\t\tMethodScope curMethod = Sjavac.getGlobalScope().getMethod(methodName);\r\n\t\tArrayList<String> methodArgs = data.getValue();\r\n\t\tif (methodArgs == null) {\r\n\t\t\tif (curMethod.getNumberOfArguments() != 0) {\r\n\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t}\r\n\t\t} else if (Sjavac.getGlobalScope().containsMethod(callElements)) {\r\n\t\t\t if (methodArgs.size() == curMethod.getNumberOfArguments()) {\r\n\t\t\t\tfor (int i = 0; i < methodArgs.size(); i++) {\r\n\t\t\t\t\tif(!curMethod.getArgument(i).compatibleWith(methodArgs.get(i))){\r\n\t\t\t\t\t\tVariable reference = this.findVariable(methodArgs.get(i));\r\n\t\t\t\t\t\tif(reference==null||!reference.isInitialized()){\r\n\t\t\t\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcurMethod.getArgument(i).compatibleWith(reference);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}\r\n\t}", "public boolean supportsCallee(SootMethod method);", "PropertyCallExp createPropertyCallExp();", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "Method getMethod();", "Method getMethod();", "@Override // com.google.protobuf.GeneratedMessageLite\n public final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) {\n switch (method) {\n case NEW_MUTABLE_INSTANCE:\n return new JobCountTrackerProto();\n case IS_INITIALIZED:\n return DEFAULT_INSTANCE;\n case MAKE_IMMUTABLE:\n return null;\n case NEW_BUILDER:\n return new Builder();\n case VISIT:\n GeneratedMessageLite.Visitor visitor = (GeneratedMessageLite.Visitor) arg0;\n JobCountTrackerProto other = (JobCountTrackerProto) arg1;\n this.configNumMaxTotalJobs_ = visitor.visitInt(hasConfigNumMaxTotalJobs(), this.configNumMaxTotalJobs_, other.hasConfigNumMaxTotalJobs(), other.configNumMaxTotalJobs_);\n this.configNumMaxBgJobs_ = visitor.visitInt(hasConfigNumMaxBgJobs(), this.configNumMaxBgJobs_, other.hasConfigNumMaxBgJobs(), other.configNumMaxBgJobs_);\n this.configNumMinBgJobs_ = visitor.visitInt(hasConfigNumMinBgJobs(), this.configNumMinBgJobs_, other.hasConfigNumMinBgJobs(), other.configNumMinBgJobs_);\n this.numRunningFgJobs_ = visitor.visitInt(hasNumRunningFgJobs(), this.numRunningFgJobs_, other.hasNumRunningFgJobs(), other.numRunningFgJobs_);\n this.numRunningBgJobs_ = visitor.visitInt(hasNumRunningBgJobs(), this.numRunningBgJobs_, other.hasNumRunningBgJobs(), other.numRunningBgJobs_);\n this.numPendingFgJobs_ = visitor.visitInt(hasNumPendingFgJobs(), this.numPendingFgJobs_, other.hasNumPendingFgJobs(), other.numPendingFgJobs_);\n this.numPendingBgJobs_ = visitor.visitInt(hasNumPendingBgJobs(), this.numPendingBgJobs_, other.hasNumPendingBgJobs(), other.numPendingBgJobs_);\n if (visitor == GeneratedMessageLite.MergeFromVisitor.INSTANCE) {\n this.bitField0_ |= other.bitField0_;\n }\n return this;\n case MERGE_FROM_STREAM:\n CodedInputStream input = (CodedInputStream) arg0;\n ExtensionRegistryLite extensionRegistryLite = (ExtensionRegistryLite) arg1;\n boolean done = false;\n while (!done) {\n try {\n int tag = input.readTag();\n if (tag == 0) {\n done = true;\n } else if (tag == 8) {\n this.bitField0_ |= 1;\n this.configNumMaxTotalJobs_ = input.readInt32();\n } else if (tag == 16) {\n this.bitField0_ |= 2;\n this.configNumMaxBgJobs_ = input.readInt32();\n } else if (tag == 24) {\n this.bitField0_ |= 4;\n this.configNumMinBgJobs_ = input.readInt32();\n } else if (tag == 32) {\n this.bitField0_ = 8 | this.bitField0_;\n this.numRunningFgJobs_ = input.readInt32();\n } else if (tag == 40) {\n this.bitField0_ |= 16;\n this.numRunningBgJobs_ = input.readInt32();\n } else if (tag == 48) {\n this.bitField0_ |= 32;\n this.numPendingFgJobs_ = input.readInt32();\n } else if (tag == 56) {\n this.bitField0_ |= 64;\n this.numPendingBgJobs_ = input.readInt32();\n } else if (!parseUnknownField(tag, input)) {\n done = true;\n }\n } catch (InvalidProtocolBufferException e) {\n throw new RuntimeException(e.setUnfinishedMessage(this));\n } catch (IOException e2) {\n throw new RuntimeException(new InvalidProtocolBufferException(e2.getMessage()).setUnfinishedMessage(this));\n }\n }\n break;\n case GET_DEFAULT_INSTANCE:\n break;\n case GET_PARSER:\n if (PARSER == null) {\n synchronized (JobCountTrackerProto.class) {\n if (PARSER == null) {\n PARSER = new GeneratedMessageLite.DefaultInstanceBasedParser(DEFAULT_INSTANCE);\n }\n }\n }\n return PARSER;\n default:\n throw new UnsupportedOperationException();\n }\n return DEFAULT_INSTANCE;\n }", "public interface MergableProperties {\n\n\t/**\n\t * A variation of {@link BeanUtils#copyProperties(Object, Object)} specifically designed to copy properties using the following rule:\n\t *\n\t * - If source property is null then override with the same from mergable.\n\t * - If source property is an array and it is empty then override with same from mergable.\n\t * - If source property is mergable then merge.\n\t */\n\tdefault void merge(MergableProperties mergable) {\n\t\tif (mergable == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (PropertyDescriptor targetPd : BeanUtils.getPropertyDescriptors(mergable.getClass())) {\n\t\t\tMethod writeMethod = targetPd.getWriteMethod();\n\t\t\tif (writeMethod != null) {\n\t\t\t\tPropertyDescriptor sourcePd = BeanUtils.getPropertyDescriptor(this.getClass(), targetPd.getName());\n\t\t\t\tif (sourcePd != null) {\n\t\t\t\t\tMethod readMethod = sourcePd.getReadMethod();\n\t\t\t\t\tif (readMethod != null &&\n\t\t\t\t\t\t\tClassUtils.isAssignable(writeMethod.getParameterTypes()[0], readMethod.getReturnType())) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tif (!Modifier.isPublic(readMethod.getDeclaringClass().getModifiers())) {\n\t\t\t\t\t\t\t\treadMethod.setAccessible(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tObject value = readMethod.invoke(this);\n\t\t\t\t\t\t\tif (value != null) {\n\t\t\t\t\t\t\t\tif (value instanceof MergableProperties) {\n\t\t\t\t\t\t\t\t\t((MergableProperties)value).merge((MergableProperties)readMethod.invoke(mergable));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tObject v = readMethod.invoke(mergable);\n\t\t\t\t\t\t\t\t\tif (v == null || (ObjectUtils.isArray(v) && ObjectUtils.isEmpty(v))) {\n\t\t\t\t\t\t\t\t\t\tif (!Modifier.isPublic(writeMethod.getDeclaringClass().getModifiers())) {\n\t\t\t\t\t\t\t\t\t\t\twriteMethod.setAccessible(true);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\twriteMethod.invoke(mergable, value);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (Throwable ex) {\n\t\t\t\t\t\t\tthrow new FatalBeanException(\n\t\t\t\t\t\t\t\t\t\"Could not copy property '\" + targetPd.getName() + \"' from source to target\", ex);\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}\n\n\tdefault void copyProperties(Object source, Object target) throws BeansException {\n\n\t}\n}", "private boolean methodsMatch(Method method,\n CallStatement.CallStatementEntry entry) throws EngineException {\n if (!method.getName().equals(entry.getName())) {\n return false;\n }\n if (method.getParameterTypes().length != parameters.size()) {\n return false;\n }\n Class[] parameterTypes = method.getParameterTypes();\n for (int index = 0; index < parameters.size(); index++) {\n Class parameterType = parameterTypes[index];\n Object parameterValue = parameters.get(index);\n if (!parameterType.isAssignableFrom(parameterValue.getClass())) {\n return false;\n }\n }\n \n for (int index = 0; index < parameters.size(); index++) {\n Class parameterType = parameterTypes[index];\n Object parameterValue = parameters.get(index);\n parameters.set(index, parameterType.cast(parameterValue));\n }\n return true;\n }", "public void testObjectMethodOnInterface() throws NoSuchMethodException {\n Method toString = Object.class.getMethod(\"toString\");\n assertEquals(String.class, GenericTypeReflector.getExactReturnType(toString, ArrayList.class));\n assertEquals(String.class, GenericTypeReflector.getExactReturnType(toString, List.class));\n assertEquals(String.class, GenericTypeReflector.getExactReturnType(toString, String[].class));\n }", "@Override\r\n\tprotected ResponseEntity<Object> handleMethodArgumentNotValid(\r\n\t MethodArgumentNotValidException ex, \r\n\t HttpHeaders headers, \r\n\t HttpStatus status, \r\n\t WebRequest request) {\r\n\t List<String> errors = new ArrayList<String>();\r\n\t for (FieldError error : ex.getBindingResult().getFieldErrors()) {\r\n\t errors.add(error.getField() + \": \" + error.getDefaultMessage());\r\n\t }\r\n\t for (ObjectError error : ex.getBindingResult().getGlobalErrors()) {\r\n\t errors.add(error.getObjectName() + \": \" + error.getDefaultMessage());\r\n\t }\r\n\t \r\n\t ApiError apiError = \r\n\t new ApiError(HttpStatus.BAD_REQUEST, ex.getLocalizedMessage(), errors);\r\n\t return handleExceptionInternal(\r\n\t ex, apiError, headers, apiError.getStatus(), request);\r\n\t}", "public static Object invokeMethod(Method method, Object[] args) {\n try {\n return method.invoke(null, args);\n }\n catch (IllegalAccessException | InvocationTargetException e) {\n e.printStackTrace();\n }\n return null;\n }", "public interface Method extends Member, TypedElement, ArrayTypeable, TypeParametrizable, Parametrizable, ReferenceableElement, ExceptionThrower, AnnotableAndModifiable\n{\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.isMethodForCall((org.emftext.language.java.members.Method) this, (org.emftext.language.java.references.MethodCall) methodCall, needsPerfectMatch);'\"\n * @generated\n */\n boolean isMethodForCall(MethodCall methodCall, boolean needsPerfectMatch);\n\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.isSomeMethodForCall((org.emftext.language.java.members.Method) this, (org.emftext.language.java.references.MethodCall) methodCall);'\"\n * @generated\n */\n boolean isSomeMethodForCall(MethodCall methodCall);\n\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.isBetterMethodForCall((org.emftext.language.java.members.Method) this, (org.emftext.language.java.members.Method) otherMethod, (org.emftext.language.java.references.MethodCall) methodCall);'\"\n * @generated\n */\n boolean isBetterMethodForCall(Method otherMethod, MethodCall methodCall);\n\n /**\n * <!-- begin-user-doc -->\n * <!-- end-user-doc -->\n * <!-- begin-model-doc -->\n * \n * <!-- end-model-doc -->\n * @model kind=\"operation\"\n * annotation=\"http://www.eclipse.org/emf/2002/GenModel body='return org.emftext.language.java.extensions.members.MethodExtension.getArrayDimension((org.emftext.language.java.members.Method) this);'\"\n * @generated\n */\n long getArrayDimension();\n\n}", "private void addAccessor(ThreadContext context, String internedName, Visibility visibility, boolean readable, boolean writeable) {\n assert internedName == internedName.intern() : internedName + \" is not interned\";\n \n final Ruby runtime = context.getRuntime();\n \n if (visibility == PRIVATE) {\n //FIXME warning\n } else if (visibility == MODULE_FUNCTION) {\n visibility = PRIVATE;\n // FIXME warning\n }\n final String variableName = (\"@\" + internedName).intern();\n if (readable) {\n addMethod(internedName, new JavaMethodZero(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name) {\n IRubyObject variable = (IRubyObject)verifyAccessor(self.getMetaClass().getRealClass()).get(self);\n \n return variable == null ? runtime.getNil() : variable;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForRead(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n if (writeable) {\n internedName = (internedName + \"=\").intern();\n addMethod(internedName, new JavaMethodOne(this, visibility, CallConfiguration.FrameNoneScopeNone) {\n private RubyClass.VariableAccessor accessor = RubyClass.VariableAccessor.DUMMY_ACCESSOR;\n public IRubyObject call(ThreadContext context, IRubyObject self, RubyModule clazz, String name, IRubyObject arg1) {\n verifyAccessor(self.getMetaClass().getRealClass()).set(self, arg1);\n return arg1;\n }\n \n private RubyClass.VariableAccessor verifyAccessor(RubyClass cls) {\n RubyClass.VariableAccessor localAccessor = accessor;\n if (localAccessor.getClassId() != cls.hashCode()) {\n localAccessor = cls.getVariableAccessorForWrite(variableName);\n accessor = localAccessor;\n }\n return localAccessor;\n }\n });\n callMethod(context, \"method_added\", runtime.fastNewSymbol(internedName));\n }\n }", "@Test(expected=IllegalArgumentException.class)\n\tpublic void testPassNullToSettersAddress() {\n\t\tbeanTester.testSetterForField(null);\n\t}", "@Override\n public int getMethodCount()\n {\n return 1;\n }", "@Deprecated\n final Method getter() {\n return this.getter;\n }", "public AmbiguousMethodException() {\n super();\n }", "public List<Method> getSetterMethods(String property) {\n String methodName = getSetterMethodName(property);\n List<Method> result = new ArrayList<Method>(2);\n\n for (Method method : this.type.getMethods()) {\n if (method.getName().equals(methodName) && method.getParameterTypes().length == 1) {\n result.add(method);\n }\n }\n\n return result;\n }", "protected boolean setEnum(String name, Object value, PropertyDescriptor pd, Object bean)\n throws IllegalAccessException, InvocationTargetException, NoSuchMethodException{\n\n assert (name != null);\n assert (value != null);\n assert (pd != null);\n assert (bean != null);\n\n boolean success = false;\n Class propertyType = pd.getPropertyType();\n\n\n try{\n pd.getWriteMethod().invoke(bean, Enum.valueOf(propertyType, value.toString()));\n success = true;\n }\n catch (IllegalArgumentException e){\n\n //check if the emum has a parse(String) method, and use it if it does.\n Method parseMethod = propertyType.getDeclaredMethod(\"parse\", String.class);\n Enum parsedEnum = (Enum) parseMethod.invoke(\n propertyType.getEnumConstants()[0], value);\n pd.getWriteMethod().invoke(bean, parsedEnum);\n success = true;\n }\n\n return success;\n }", "private ConstrainedMethod findMethodMetaData(Method method) {\n\n\t\tList<ConstrainedParameter> parameterConstraints = getParameterMetaData( method );\n\t\tboolean isCascading = method.isAnnotationPresent( Valid.class );\n\t\tSet<MetaConstraint<?>> constraints =\n\t\t\t\tconvertToMetaConstraints( findConstraints( method, ElementType.METHOD ), method );\n\n\t\treturn new ConstrainedMethod(\n\t\t\t\tConfigurationSource.ANNOTATION,\n\t\t\t\tnew MethodConstraintLocation( method ),\n\t\t\t\tparameterConstraints,\n\t\t\t\tconstraints,\n\t\t\t\tisCascading\n\t\t);\n\t}", "public Method getMethod();", "public interface MethodCandidate extends Ordered {\n\n /**\n * The default position.\n */\n int DEFAULT_POSITION = 0;\n\n /**\n * Whether the given method name matches this finder.\n *\n * @param methodElement The method element. Never null.\n * @param matchContext The match context. Never null.\n * @return true if it does\n */\n boolean isMethodMatch(@NonNull MethodElement methodElement, @NonNull MatchContext matchContext);\n\n @Override\n default int getOrder() {\n return DEFAULT_POSITION;\n }\n\n /**\n * Builds the method info. The method {@link #isMethodMatch(MethodElement, MatchContext)} should be\n * invoked and checked prior to calling this method.\n *\n * @param matchContext The match context\n * @return The method info or null if it cannot be built. If the method info cannot be built an error will be reported to\n * the passed {@link MethodMatchContext}\n */\n @Nullable\n MethodMatchInfo buildMatchInfo(@NonNull MethodMatchContext matchContext);\n\n}", "@Override\r\n\tprotected ResponseEntity<Object> handleMethodArgumentNotValid(MethodArgumentNotValidException ex,\r\n\t\t\tHttpHeaders headers, HttpStatus status, WebRequest request) {\n\t\treturn super.handleMethodArgumentNotValid(ex, headers, status, request);\r\n\t}", "protected void invokeMethod(MetaMethod method) {\n Class callClass = method.getInterfaceClass();\n boolean useInterface = false;\n if (callClass == null) {\n callClass = method.getCallClass();\n }\n else {\n useInterface = true;\n }\n String type = BytecodeHelper.getClassInternalName(callClass.getName());\n String descriptor = BytecodeHelper.getMethodDescriptor(method.getReturnType(), method.getParameterTypes());\n\n // System.out.println(\"Method: \" + method);\n // System.out.println(\"Descriptor: \" + descriptor);\n\n if (method.isStatic()) {\n loadParameters(method, 3);\n cv.visitMethodInsn(INVOKESTATIC, type, method.getName(), descriptor);\n }\n else {\n cv.visitVarInsn(ALOAD, 2);\n helper.doCast(callClass);\n loadParameters(method, 3);\n cv.visitMethodInsn((useInterface) ? INVOKEINTERFACE : INVOKEVIRTUAL, type, method.getName(), descriptor);\n }\n\n helper.box(method.getReturnType());\n }", "@Test\n\tpublic void testGettersAddress() {\n\t\tassertTrue(beanTester.testGetters());\n\t}", "private static boolean validateMethod(Method method) {\n for (Class<?> param : method.getParameterTypes()) {\n if (null == OvsDbConverter.get(param))\n return false;\n }\n return true;\n }" ]
[ "0.67762023", "0.6123293", "0.59372294", "0.58805895", "0.5854185", "0.5761384", "0.57417226", "0.573813", "0.5720659", "0.5644726", "0.56157815", "0.5359964", "0.535794", "0.53025925", "0.52663696", "0.5261965", "0.52269524", "0.51883084", "0.51625407", "0.5161895", "0.5160112", "0.51255995", "0.5109768", "0.50948536", "0.509028", "0.50896317", "0.5077184", "0.5066398", "0.50472516", "0.5044719", "0.50288814", "0.5021158", "0.49946424", "0.49813014", "0.49760896", "0.49754208", "0.496805", "0.49609068", "0.49598822", "0.4953004", "0.49512762", "0.49423867", "0.49320123", "0.49234498", "0.4918481", "0.4917553", "0.48899287", "0.4874349", "0.48662776", "0.48597032", "0.484618", "0.48432022", "0.48305547", "0.48267758", "0.48156905", "0.48053464", "0.4804005", "0.47955468", "0.47955468", "0.47887743", "0.47873002", "0.47556046", "0.47547394", "0.47541177", "0.47474813", "0.47441894", "0.47403443", "0.47358644", "0.473381", "0.47152245", "0.4715023", "0.47130176", "0.47080362", "0.46785614", "0.46683118", "0.46661535", "0.46616548", "0.46615437", "0.46615437", "0.46539146", "0.46514088", "0.463784", "0.463459", "0.4624973", "0.4622258", "0.46193698", "0.46157274", "0.46030444", "0.45942527", "0.45910588", "0.4591036", "0.45899537", "0.45873088", "0.45857805", "0.45782316", "0.45765784", "0.45756328", "0.4575342", "0.45726237", "0.4568614" ]
0.85179263
0
private WatchRepo watchRepo = new WatchRepo(); private Object monO= new Object();
@Override public void initialize(URL url, ResourceBundle resourceBundle) { downloadProgress.setProgress(0.0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ObjectRepository() {\n\t}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "public Repo() {\n //this.app = Init.application;\n }", "private CNWatch() {\n }", "public Repository() {\n\n }", "private Mongopool() {\n\t}", "public WatchUnwatchTask(RepositoryActivity activity) {\n mTarget = new WeakReference<RepositoryActivity>(activity);\n }", "public ProxyableObject()\r\n {\r\n id = new command.GlobalObjectId();\r\n command.ObjectDB.getSingleton().store(id.getLocalObjectId(), this);\r\n \r\n //observable = new ObservabilityObject();\r\n }", "Reference_Monitor createReference_Monitor();", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "public java.lang.String getWatcher(){\r\n return localWatcher;\r\n }", "public WorkerMonitor() {\n }", "public Reachable(){\n\t\t\n\t\t\n\t}", "private void ZooKeeperGenericObjectPool(Object object, Object object2) {\n \n }", "public SharedObject() {}", "public MongoDatabaseAnnotationHolder() {\n//\t\tinstance = this;\n\t}", "public MockPersistenceProvider()\n{\n\tobjects = new Vector();\n}", "public ReplicationObject() {\n }", "public Os() {\n osBO = new OsBO();\n }", "private SingleObject(){\n }", "public void visitMONITORENTER(MONITORENTER o){\n\t\tif (! ((stack().peek()) instanceof ReferenceType)){\n\t\t\tconstraintViolated(o, \"The stack top should be of a ReferenceType, but is '\"+stack().peek()+\"'.\");\n\t\t}\n\t\treferenceTypeIsInitialized(o, (ReferenceType) (stack().peek()) );\n\t}", "private EmployeeRepository(){\n\t\t\n\t}", "public UserRepo()\n {\n }", "protected Object getOwner(){\n return owner;\n }", "public ProductoRepository() {}", "private SingletonObject() {\n\n\t}", "public Holder() {\n }", "public interface NotificationRepository extends MongoRepository<Notification, String> { }", "private ReportRepository() {\n ConnectionBD BD = ConnectionBD.GetInstance();\n this.con = BD.GetConnection();\n this.itemInfoFactory = ItemInfoFactory.GetInstance();\n }", "private SingletonEager(){\n \n }", "public static void objectDemo() {\n\t}", "@SuppressWarnings(\"unused\")\npublic interface VariableRepository extends MongoRepository<Variable,String> {\n\n}", "private SingleObject()\r\n {\r\n }", "public WatchInfo watching(String owner, String repo) {\n return apiClient.deserialize(apiClient.get(String.format(\"/repos/%s/%s/subscription\", owner, repo)), WatchInfo.class);\n }", "public NotebookWorkspaceInner() {\n }", "protected BusinessObject getNewBusinessObjInstance()\n {\n return BUSINESS_OBJ ;\n }", "public CommonVO() {\r\n }", "TRepo createRepo();", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public Monitor(MonitorOffice of) {\r\n\t\toffice = of;\r\n\t}", "public LunchModel(LunchRepo repo) {\n this.repo = repo;\n }", "@Override\r\n\tprotected void prepareForUseImpl(TaskMonitor monitor,\r\n\t\t\tObjectRepository repository) {\n\t\t\r\n\t}", "private ObiWanKenobi(){\n }", "private SingleObject(){}", "public CurrentRobotState() {\r\n currentPos = new RobotCoordinates();\r\n motorState = new Motor();\r\n reInitialize();\r\n }", "public Lobby() {\r\n\t\tobservers = new ArrayList<Observer>(); // Initialize the list of observers ( empty at the begining)\r\n\t}", "public interface IMonitoring {\n}", "private RCProxy() {\n\t\tstate = new DefaultState();\n\t\tSTBListener.instance().addObserver(this);\n\t}", "public Owner() {\n }", "public WatchListMonitorTask()\r\n {\r\n debug(\"WatchListMonitorTask() - Constructor \");\r\n }", "public interface TickerRepository {\n}", "public ObjectTracker(){\n NetworkTableInstance inst = NetworkTableInstance.getDefault(); \n monsterVision = inst.getTable(\"MonsterVison\");\t\n \n // monsterVision.addEntryListener(\n // \"ObjectTracker\",\n // (monsterVision, key, entry, value, flags) -> {\n // System.out.println(\"ObjectTracker changed value: \" + value.getValue());\n // }, \n // EntryListenerFlags.kNew | EntryListenerFlags.kUpdate);\n\n \n }", "static Repo getInstance() {\n return RepoSingelton.getRepo(); //todo: refactor\n }", "public interface UserRepo extends ObjectRepo<User, Long> {\n}", "public static void test(){\n System.out.println(new CollectDAOImpl().hasWatched(1,14));\n// System.out.println(new CollectDAOImpl().hasWatched(1,14));\n// System.out.println(new CollectDAOImpl().removeHasWatched(1,14));\n// System.out.println(new CollectDAOImpl().hasWatched(1,14));\n System.out.println(new CollectDAOImpl().preference(1,15,true));\n System.out.println(new CollectDAOImpl().preference(1,19,false));\n// System.out.println(new CollectDAOImpl().preference(1,14,false));\n// System.out.println(new CollectDAOImpl().removePreference(1,14));\n// System.out.println(new CollectDAOImpl().removeHasWatched(1,14));\n }", "public Object getObject() ;", "GitRemote(String aName) { _name = aName; }", "private HelloGitUtil(){\n\t}", "private OperatorManager() {}", "public abstract Object getObservedObject();", "public interface HeroBasic<H> extends Serializable {\n\n /**\n ** note: store self into JpaRepository, like Data Access Object save T ,means enrich the repository;\n **/\n enum RepoType{\n JPA, REDIS, MONGODB;\n }\n enum PublishType{\n SPRING_LISTENER, RABBIT_MQ;\n }\n\n /**\n **note: save info H into Repository\n */\n H enrichRepo(RepoType repoType);\n /**\n ** note: publish_consume mode , observer mode*/\n\n H noticeOthers(PublishType publishType);\n /**\n **note: assistant means Dto, is a helper for H\n */\n\n H acceptDataFrom(Assistant<H> a);\n\n H lifeTransition(LifeSealer<H> sealer);\n}", "private AeStatusKeeper() {\n }", "public Object getObject() {\r\n/* 109 */ return this.object;\r\n/* */ }", "@Test\n public void testNotifyObservers_Object() throws Exception {\n JCSyncObservable o1;\n JCSyncObservable o2;\n String name = \"obs_testNotify\"; \n SharedObservableObject so_1;\n SharedObservableObject so_2;\n boolean r1 = false;\n boolean r2 = false;\n o1 = new JCSyncObservable();\n \n class Observer_ implements Observer{\n boolean retVal;\n Observer_(boolean rt){\n this.retVal = rt;\n }\n @Override\n public void update(Observable o, Object arg) {\n if(o instanceof JCSyncObservable && arg == null){\n retVal = true;\n }\n }\n \n };\n Observer_ obs1 = new Observer_(r1);\n o1.addObserver(obs1); \n so_1 = new SharedObservableObject(name, o1, core);\n so_2 = (SharedObservableObject)SharedObservableObject.getFromOverlay(name, core2);\n o2 = (JCSyncObservable) so_2.getNucleusObject();\n assertTrue(o1.countObservers()==1);\n assertTrue(o2.countObservers()==0);\n Observer_ obs2 = new Observer_(r2);\n o2.addObserver(obs2);\n o1.notifyObservers(null);\n Thread.sleep(500);\n assertTrue(obs1.retVal && obs2.retVal);\n \n }", "public Object caseRRepository(RRepository object) {\n\t\treturn null;\n\t}", "private static void createSingletonObject() {\n\t\tSingleton s1 = Singleton.getInstance();\n\t\tSingleton s2 = Singleton.getInstance();\n\n\t\tprint(\"S1\", s1);\n\t\tprint(\"S2\", s2);\n\t}", "public Notification() {\n\n }", "private OpenSimDB() {\n instance = this;\n }", "public Notification()\n\t{\n\t\t\n\t}", "public static ObiWanKenobi getInstance(){\n return obiWanKenobi;\n }", "private static RunLogInterface getRunLogObject()\r\n\t{\r\n\t\treturn RunLogBasicImpl.getRunLogObject();\r\n\t}", "public JobService(){\r\n\t dao = new JobDAO();\r\n//\t allJobVO = getAllJobVO();\r\n }", "public Notification() {\n\n\t}", "private MarketSnapshot() {\n\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TActivityRepository extends MongoRepository<TActivity,String> {\n \n}", "public void start() {\n System.out.println(\"OBRMAN started\");\n ApamManagers.addManager(this, 3);\n OBRMan.obr = new OBRManager(null, repoAdmin);\n obr.startWatchingRepository();\n }", "private PSUniqueObjectGenerator()\n {\n }", "public Controller() {\n\n lastSearches = new SearchHistory();\n\n }", "public Demo()\n {\n machine = new Machine();\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public CalMonitor() {\r\n }", "public static void main(String[] args) {\n\n ChocolateBoiler chocolateBoiler = new ChocolateBoiler();\n ChocolateBoiler chocolateBoiler1 = new ChocolateBoiler();\n chocolateBoiler.fill();\n chocolateBoiler1.drain();\n System.out.println(chocolateBoiler.isEmpty());\n System.out.println(chocolateBoiler1.isEmpty());\n\n\n //Singleton\n\n SingletonChocolateBoiler singletonChocolateBoiler = SingletonChocolateBoiler.getInstance();\n SingletonChocolateBoiler singletonChocolateBoiler1 = SingletonChocolateBoiler.getInstance();\n\n singletonChocolateBoiler.fill();\n singletonChocolateBoiler1.drain();\n System.out.println(singletonChocolateBoiler.isEmpty());\n System.out.println(singletonChocolateBoiler1.isEmpty());\n }", "private SpringBoHelper() {\n\n\t}", "private GameVariableRepository() {\r\n\t\tthis.playerTurn = 0;\r\n\t}", "@SuppressWarnings(\"unused\")\npublic interface ApiInfoRepository extends MongoRepository<ApiInfo,String> {\n\n}", "public MonitoredData() {}", "public LocalObject() {}", "private Object writeReplace () {\n return new java.io.Serializable () {\n /** serial version UID */\n static final long serialVersionUID=-3874531277726540941L;\n\n private void writeObject (ObjectOutputStream oos) throws IOException {\n TopManager.getDefault ().getRepository ().writeExternal (oos);\n }\n\n private void readObject (ObjectInputStream ois)\n throws IOException, ClassNotFoundException {\n TopManager.getDefault ().getRepository ().readExternal (ois);\n }\n\n /** @return the default pool */\n public Object readResolve () {\n return TopManager.getDefault ().getRepository ();\n }\n };\n }", "public void setRepository(CollisionRepository repo) \n\t{ \n\t\tmRepo = repo; \n\t}", "public interface PrimaryRepository extends MongoRepository<PrimaryMongoObject, String> {\n}", "public void changeOwner(String o){\n owner = o;\r\n }", "public RepositoryObjectReference( RepositoryObjectType type, RepositoryDirectoryInterface dir, String name ) {\n this( type, dir, name, null );\n }", "public interface OAObjectCacheListener<T extends OAObject> {\n \n /**\n * Called when there is a change to an object.\n */\n public void afterPropertyChange(T obj, String propertyName, Object oldValue, Object newValue);\n\n /** \n * called when a new object is added to OAObjectCache, during the object construction. \n */\n public void afterAdd(T obj);\n \n public void afterAdd(Hub<T> hub, T obj);\n \n public void afterRemove(Hub<T> hub, T obj);\n \n public void afterLoad(T obj);\n \n}", "ComputerProxy(Computer computer) {\n this.computer = computer;\n //this.map = new ConcurrentHashMap<UUID, Task>();\n }", "public TestSharedObject() {\n super();\n }", "public interface RepoDataView {\n}", "boolean open( RepositoryObjectReference object );", "public static Object getMonitor() {\n\t\treturn monitor;\n\t}", "private LoginRepository(LoginDataSource dataSource) {\n this.dataSource = dataSource;\n //Mobyra instance\n mobyraInstance = MobyraInstance.getInstance();\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public interface Repository {}" ]
[ "0.6208651", "0.6042335", "0.59437305", "0.5535091", "0.5420296", "0.541205", "0.53993464", "0.5380011", "0.53333586", "0.53048587", "0.53042954", "0.5295015", "0.52918726", "0.5273646", "0.5271207", "0.5271061", "0.52608895", "0.5246158", "0.52387595", "0.52229303", "0.5173093", "0.517009", "0.5163803", "0.5153774", "0.5149661", "0.51412404", "0.5140101", "0.51267606", "0.5124516", "0.51182055", "0.5101118", "0.5099498", "0.5098129", "0.5090843", "0.50764734", "0.50742656", "0.5071008", "0.50676876", "0.5064031", "0.50479317", "0.50473297", "0.5045759", "0.5045184", "0.50410366", "0.5036502", "0.5028128", "0.5023247", "0.50223297", "0.5021711", "0.501439", "0.5008424", "0.4999519", "0.4990077", "0.49833605", "0.49794877", "0.49770877", "0.49744037", "0.49728948", "0.4966296", "0.49625713", "0.49574065", "0.49562722", "0.49537256", "0.49450907", "0.49424094", "0.49215803", "0.49166235", "0.49034256", "0.49021092", "0.49006662", "0.4897326", "0.489686", "0.4896112", "0.48940283", "0.48923212", "0.4891606", "0.48899943", "0.4887344", "0.48871008", "0.48859975", "0.4884876", "0.4876515", "0.48730174", "0.48715773", "0.48690736", "0.48683426", "0.4866352", "0.4863007", "0.48614702", "0.48587313", "0.48556894", "0.48550424", "0.48536283", "0.48522386", "0.48518196", "0.48512834", "0.48511586", "0.4851107", "0.48507747", "0.48467004", "0.48448402" ]
0.0
-1
The single parameter here is the minimum required, for the current prerelease SDK version implementing myBlocks. It will generate an idle socket in the purple myBlock.
public static double getVoltage(LinearOpMode myLOM) { HardwareMap hardwareMap = myLOM.hardwareMap; // Use enum to access the voltage sensor without knowing its // name in the hardwareMap. Only one sensor will be found. List <VoltageSensor> voltageSensors; voltageSensors = hardwareMap.getAll(VoltageSensor.class); // make sure there is a sensor if (voltageSensors.size() > 0) { // iterate one time for (VoltageSensor myVoltageSensor : voltageSensors) { batteryVoltage = myVoltageSensor.getVoltage(); } // end FOR loop } // end IF // provide voltage value to the calling Block return batteryVoltage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void onBlock(User arg0, User arg1) {\n\t\t\t\n\t\t}", "public abstract void start_block();", "@Override\r\n\tpublic void blockId() {\n\t\t\r\n\t\tSystem.out.println(\"Here you have information about blockID\");\r\n\t\t\r\n\t}", "BAnyBlock createBAnyBlock();", "@Override\n public void broadcastBlock(final Block block) {}", "Block createBlock();", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}", "void updateBlock(Block block) ;", "@Override\n\tpublic void onBlock(User source, User blockedUser) {\n\n\t}", "BlockFor createBlockFor();", "public abstract void setNextBlockInstant();", "private void createBlock() {\n\t\tblock = new Block(mouseX, mouseY, 25, 25);\r\n\t\tblock.addObserver(this);\r\n\t\tblock.start();\r\n\t\t// System.out.println(\"Block created (at Model.createBlock)\");\r\n\t}", "@Override\n public void run() {\n if (config.DebugLogging) {\n getLogger().info(\"Reverting Ice to Water to prevent server overload\");\n }\n\n Block fixblock = getServer().getWorld(blockloc.getWorld().getName()).getBlockAt(blockloc);\n fixblock.setType(Material.STATIONARY_WATER);\n\n }", "public interface BlockInterceptor {\n\n void onBlock(Context context, BlockInfo info);\n}", "private void Management_Block(Block block){\n\t\t\n\t\t switch(block.BlockState){\n\t\t \n\t\t case 0: // player is not lost game. continue with tile micro managment\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\n\t\t\t\t boolean CoinCollision = CollisionDetection(playerUser.bounds,rectTile);\n\t\t\t\t \n\t\t\t\t switch(tile.state)\n\t\t\t\t {\n\t\t\t\t \n\t\t\t\t case 0: // no collision, show the block\n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\n\t\t\t\t\t \n\t\t\t\t\t if (PauseGame) \n\t\t\t\t\t\t continue;\n\t\t\t\t\t\t \n\t\t\t\t\t\t if (CoinCollision==true){\n\t\t\t\t\t\t\t tile.state++; \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t\t\t\n\t\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t\t\t\t else if (ThisGameRound==GameState.Running){\t \n\t\t\t\t\t\t\t if (block.Passed==false){\n\t\t\t\t\t\t\t\t if (playerUser.position.x > block.Wall.get(0).rectTile.x){\n\t\t\t\t\t\t\t\t\t levelbuilder.gamePoints = levelbuilder.gamePoints + 1;\n\t\t\t\t\t\t\t\t\t fntScore.setBitmapText(\"Score: \" + String.valueOf(levelbuilder.gamePoints));\n\t\t\t\t\t\t\t\t\t block.Passed=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\t else if (block.Passed==true){\n\t\t\t\t\t\t\t\t //do nothing.\n\t\t\t\t\t\t\t }\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t case 1: \n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(),rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t \n\t\t\t\t\t // if there is a collotion, draw it one time only \t\t\t \t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t// collision, but player has key\n\t\t\t\t\t\t PhoneDevice.Vibrate();\t\n\t\t\t\t\t\t if ((playerUser.color==block.color) || (playerUser.color==Color.ALL)){\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\ttile.setBlockImg(tile.BlockType);\t\n\t\t\t\t\t \t\ttile.PlayBreakThoughSound();\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t // collision, but player dont have a key: break from tile loop and \n\t\t\t\t\t \t // draw block crash effect\n\t\t\t\t\t\t else if (DEBUG==false){\n\t\t\t\t\t\t\t block.BlockState=1;\n\t\t\t\t\t\t\t ThisGameRound = GameState.GameOver;\t\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t }\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t tile.pe = Effects.setNewEffect(enumEffects.TileDistruction, block.color);\t\t\t\t\t\t \n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t tile.pe.start();\t\n\t\t\t\t\t tile.state++;\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t case 2:\n\t\t\t\t\t // continue to draw the effect: no matter collision result\n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t \n\t\t\t\t\t tile.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t\t tile.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\t\t\t \t\t\t\t\t\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t }\t\t\t\t \n\t\t\t }\t\t\t\t\n\t\t\t break;\n\t\t case 1: // player hit the wall without key\t\t\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.PlayCrashSound();\t\t\n\t\t\t block.pe = Effects.setNewEffect(enumEffects.Crash, block.color);\t\t\t\t\t\t \n\t\t\t block.pe.setPosition(playerUser.bounds.x + playerUser.bounds.width,\n\t\t\t\t\t playerUser.bounds.y + playerUser.bounds.height/2);\t\n\t\t\t block.pe.start();\n\t\t\t block.BlockState++;\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t block.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\n\t\t\t break;\n\t\t }\t\t\n\t }", "public void sendBlockChange ( Location loc , BlockData block ) {\n\t\texecute ( handle -> handle.sendBlockChange ( loc , block ) );\n\t}", "private void setBlock(Block block) {\r\n this.block = block;\r\n }", "@Override\n public boolean block() {\n return false;\n }", "public int getRenderBlockPass(){\r\n return 1;\r\n }", "public void onNewBlock(long height);", "public blockNot(String type, int connID){\n this.output = new connection(type, connID);\n }", "public String generateBlock(){\n return null;\n }", "public abstract void generateNextBlock();", "private static void registerBlock(Block b)\n\t{\n\t}", "public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {}", "private SingletonSyncBlock() {}", "public void onBlockAdded(World world, int x, int y, int z){\n\t\t\tsuper.onBlockAdded(world, x, y, z);\n\t\t\tif (!world.isRemote && !world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStop(true);}\n\t\t\t\n\t if (!world.isRemote && world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStart(true);}\n\t\t}", "@Override\n public TransferMode startBlock(Block block) {\n if (block.type == 1) {\n // return SIMPLE mode to received the payload as \"payload()\" calls\n return TransferMode.SIMPLE;\n } else {\n // return NULL to discard the payload of this block\n return TransferMode.NULL;\n }\n }", "public Block(){\n\t\tthis.type = Code.Type.NULL;\n\t}", "@Override\n\tpublic int getBlockNum() {\n\t\treturn 0;\n\t}", "@ActionTrigger(action=\"KEY-NXTBLK\", function=KeyFunction.NEXT_BLOCK)\n\t\tpublic void spriden_NextBlock()\n\t\t{\n\t\t\t\n\t\t\t\tgoBlock(toStr(\"SOUNDEX\"));\n\t\t\t\tgetTask().getGoqrpls().gCheckFailure();\n\t\t\t}", "public Block() {\r\n\t\t// TODO Auto-generated constructor stub\r\n\t\tthis.point_BlockTopRight = null;\r\n\t\tthis.point_BlockDownleft = null;\r\n\t\tthis.setpoint_BlockTopLeft(null);\r\n\t\tthis.IDBloack = 0;\r\n\t\tthis.type = \"\";\r\n\t}", "@Override\n\tpublic boolean onUseBonemeal(World world, int blockID, int X, int Y, int Z) {\n\t\treturn false;\n\t}", "public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)\r\n {\r\n super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n// this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n }", "public boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)\r\n/* 133: */ {\r\n/* 134:142 */ if (par1World.isClient) {\r\n/* 135:143 */ return true;\r\n/* 136: */ }\r\n/* 137:146 */ TileEntityTransferNode node = (TileEntityTransferNode)par1World.getTileEntity(par2, par3, par4);\r\n/* 138:148 */ if (node == null) {\r\n/* 139:149 */ return false;\r\n/* 140: */ }\r\n/* 141:152 */ if (par5EntityPlayer.getCurrentEquippedItem() != null) {\r\n/* 142:155 */ if (XUHelper.isWrench(par5EntityPlayer.getCurrentEquippedItem()))\r\n/* 143: */ {\r\n/* 144:156 */ node.pipe_type = StdPipes.getNextPipeType(par1World, par2, par3, par4, node.pipe_type);\r\n/* 145:157 */ node.onInventoryChanged();\r\n/* 146:158 */ par1World.markBlockForUpdate(par2, par3, par4);\r\n/* 147:159 */ return true;\r\n/* 148: */ }\r\n/* 149: */ }\r\n/* 150:163 */ par5EntityPlayer.openGui(ExtraUtilsMod.instance, 0, node.getWorldObj(), node.xCoord, node.yCoord, node.zCoord);\r\n/* 151:164 */ return true;\r\n/* 152: */ }", "public abstract void blockNext();", "private BlockType randomBlock(){\n // Check whether a powerup should be chosen or not\n if(random.nextInt(9) == 0){\n // Return a random powerup\n return allPowerUps.get(random.nextInt(allPowerUps.size()));\n\t}\n\treturn BlockType.PLATTFORM;\n }", "private static void actOnBlock(String slug, boolean autoSave) {\n if (MyZ.instance.getBlocksConfig().contains(slug + \".respawn\") && MyZ.instance.getBlocksConfig().contains(slug + \".type\")\n && MyZ.instance.getBlocksConfig().contains(slug + \".data\") && MyZ.instance.getBlocksConfig().contains(slug + \".time\"))\n try {\n World world = Bukkit.getWorld(slug.split(\"_\")[0]);\n if (world != null) {\n Location loc = new Location(world, Integer.parseInt(slug.split(\"_\")[1]), Integer.parseInt(slug.split(\"_\")[2]),\n Integer.parseInt(slug.split(\"_\")[3]));\n if (MyZ.instance.getBlocksConfig().getBoolean(slug + \".respawn\")) {\n Material mat = Material.getMaterial(MyZ.instance.getBlocksConfig().getString(slug + \".type\"));\n if (mat != null) {\n loc.getBlock().setType(mat);\n loc.getBlock().setData((byte) MyZ.instance.getBlocksConfig().getInt(slug + \".data\"), true);\n }\n } else\n loc.getBlock().setType(Material.AIR);\n }\n } catch (Exception exc) {\n // Bury silently.\n }\n MyZ.instance.getBlocksConfig().set(slug, null);\n if (autoSave)\n MyZ.instance.saveBlocksConfig();\n }", "public static void registerBlockSmelting(){\n\t\t\n\t\tGameRegistry.addSmelting(blockInfo.myWood_ID, new ItemStack(items.compressedAir, 2), 0.1f);\n\t\t\n\t}", "public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }", "public Block()\n {\n this.blockType = BlockType.AIR;\n }", "JStaticBlock(int line, JBlock body) {\r\n\t\tsuper(line);\r\n\t\tthis.block = body;\r\n\t}", "@Override\n\tpublic void onNeighborBlockChange(World w, int x, int y, int z, Block bID)\n\t{\n\t}", "public void visit(SendBlock sb);", "public Block instance(int paramInt)\r\n/* 194: */ {\r\n/* 195:225 */ return instance().setData(a, bds.b(paramInt)).setData(b, (paramInt & 0x8) > 0 ? bdu.b : bdu.a);\r\n/* 196: */ }", "public Block(){\n\t\tinstns = new ArrayList<Instruction>();\n\t}", "@SubscribeEvent\n public void onPlayerClickGrassBlock(BonemealEvent event)\n {\n if (!event.getWorld().isRemote)\n {\n \t\n if (event.getBlock()==Blocks.GRASS.getDefaultState())\n {\n \tSystem.out.println(\"触发了骨粉对草方块施肥事件\");\n EntityLiving entityLiving = new EntityButterfly(event.getWorld());\n BlockPos pos = event.getPos();\n entityLiving.setPositionAndUpdate(pos.getX() , pos.getY()+1, pos.getZ());\n event.getWorld().spawnEntityInWorld(entityLiving);\n return;\n }\n }\n }", "Tetrisblock()\n {\n newblockparam();\n newmapparam();\n setboundary();\n }", "public void onBlockNeighborChange(int l) {}", "public void onBlockingStateUpdated(boolean blocking) {\n \n }", "@Override\n public void setBlockEvents(boolean block) {\n\n }", "DefineBlock createDefineBlock();", "int getBlockId();", "@SubscribeEvent\n public static void onRegisterBlocks(RegistryEvent.Register<Block> event) {\n CoffeeMachineBlock coffeMachine = new CoffeeMachineBlock(\n Block.Properties.create(Material.ANVIL)\n .hardnessAndResistance(-1.0F, 360000F));\n event.getRegistry().registerAll(setup(coffeMachine, \"coffee_machine\"));\n }", "public void sendBlockChange ( Location loc , Material material , byte data ) {\n\t\texecute ( handle -> handle.sendBlockChange ( loc , material , data ) );\n\t}", "public EntangledChaliceItem(Block block) {\n super(block);\n }", "public Block getBlock()\n {\n return block;\n }", "@Deprecated public Block getBlock(){\n return this.block!=null?this.block.build():null;\n }", "RclBlock createRclBlock();", "public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_)\n\t {\n//\t if (this.blockMaterial == Material.iron)\n//\t {\n//\t return false; //Allow items to interact with the door\n//\t }\n//\t else\n//\t {\t \t\n\t int i1 = this.func_150012_g(world, x, y, z);\n\t int j1 = i1 & 7;\n\t j1 ^= 4;\n\t int i = i1 & 3;\n//\t System.out.print(\" Direction :\");\n\t Block b=null;\n\t int x2=x;\n\t int y2=y;\n\t int z2=z;\n\t switch(i){\n\t case 0:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t}\n//\t \tSystem.out.print(\"WEST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(4, 2));\n\t \tbreak;\n\t case 1:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t}\n//\t \tSystem.out.print(\"NORTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(2, 2));\n\t \tbreak;\n\t case 2:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t}\n\t \t\n//\t \tSystem.out.print(\"EAST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(5, 2));\n\t \tbreak;\n\t case 3:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t}\n//\t \tSystem.out.print(\"SOUTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(3, 2));\n\t \tbreak;\n\t }\n\t b=world.getBlock(x2, y2, z2);\n//\t System.out.print(\" : \"+b+\" : \");\n\t\t\t\t/*\nDirection :SOUTH 11 : 100 Open :Open Y :1 Side :Right\nDirection :NORTH 01 : 010 Open :Open Y :1 Side :Left\nDirection :EAST 10 : 101 Open :Open Y :1 Side :Left\nDirection :WEST 00 : 100 Open :Open Y :1 Side :Left\n\t\t\t\t */\n//\t System.out.print(\" Open :\"+(((j1 & 4) >> 2)==0?\"Closed\":\"Open\"));\n//\t System.out.print(\" Y :\"+Integer.toBinaryString( (i1 & 8) >>3 ));\n//\t System.out.print(\" Side :\"+(((i1 & 16) >> 4)==0?\"Right\":\"Left\"));\n\t \n//\t System.out.println();\n\t \n\n\t if ((i1 & 8) == 0)\n\t {\n\t world.setBlockMetadataWithNotify(x, y, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2, z2, x2, y2, z2);\n\t }\n\t }\n\t else\n\t {\n\t world.setBlockMetadataWithNotify(x, y - 1, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y - 1, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2-1, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2-1, z2, x2, y2, z2);\n\t }\n\t }\n\n\t world.playAuxSFXAtEntity(player, 1003, x, y, z, 0);\n\t return true;\n//\t }\n\t }", "public void setBlock(boolean block) {\n this.block = block;\n }", "public void setBlock(Block newBlock) {\n\t\tthis.block = newBlock;\n\t}", "void accessBlock(final long blockId) throws IOException;", "public int getBlockId() {\n return blockId;\n \n }", "protected Block getBlock() {\r\n return this.block;\r\n }", "public void PlantMe(Block block){\n \tplugin.getReplant().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeplant_Timer().getPoolSize() < plugin.getTreeplant_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeplant_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getReplant().isEmpty())){\r\n \t\t\t\t\t\tBlock loadedBlock = plugin.getReplant().get(0);\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getReplant().remove(0);\r\n \t\t\t\t\t\t//protect it\r\n \t\t\t\t\t\tProtectMe(loadedBlock);\r\n \t\t\t\t\t\t//made into a sap\r\n \t\t\t\t\t\tif( (loadedBlock.getType().equals(Material.AIR)) || (loadedBlock.getType().equals(Material.FIRE)) ) //just incase it was on fire\r\n \t\t\t\t\t\t\tloadedBlock.setType(Material.SAPLING);\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\t/* No longer needed! Didn't realized leaves light blocking changed way back when.\r\n \t\t\t\t\t\t * for(int i=loadedBlock.getY(); i < 128; i++){\r\n \t\t\t\t\t\t\t//delete all the leaves in a line to the sky limit\r\n \t\t\t\t\t\t\tif(loadedBlock.getType()==Material.LEAVES){\r\n \t\t\t\t\t\t\t\t//it's a leaf delete it\r\n \t\t\t\t\t\t\t\tloadedBlock.setType(Material.AIR);\r\n \t\t\t\t\t\t\t\t//update on server | Not needed?\r\n \t\t\t\t\t\t\t\t//etc.getServer().setBlock(leafToDelete);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t//go up one\r\n \t\t\t\t\t\t\tloadedBlock = loadedBlock.getFace(BlockFace.UP);\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}, plugin.getdelayTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}", "private void addBlock(Block one)\n\t{\n\t\tgetChildren().add(one);\n\t\tblocks1.add(one);\n\t\tblocks2.add(one);\n\t}", "public ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock) {\n/* 525 */ return block(multicastAddress, networkInterface, sourceToBlock, newPromise());\n/* */ }", "public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)\n {\n return par9;\n }", "public void updateMainBlock() {\n\t\tthis.mainblock = player.getWorld().getBlockAt(player.getLocation().add(0, -1, 0));\n\t}", "public boolean onBlockActivated(World p_149727_1_, int p_149727_2_, int p_149727_3_, int p_149727_4_, EntityPlayer p_149727_5_, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_)\n {\n if (p_149727_1_.isClient)\n {\n return true;\n }\n else\n {\n p_149727_5_.displayGUIWorkbench(p_149727_2_, p_149727_3_, p_149727_4_);\n return true;\n }\n }", "public void onNeighborBlockChange(World world, int x, int y, int z, Block block){\n\t\t\tif (!world.isRemote && !world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStop(true);}\n\t\t\t\n\t if (!world.isRemote && world.isBlockIndirectlyGettingPowered(x, y, z)){ \n\t tile = (OrangeSirenTileEntity) world.getTileEntity(x, y, z); \n\t tile.setShouldStart(true);}\n\t\t}", "@ForgeSubscribe\r\n\tpublic void OnBonemealUse(net.minecraftforge.event.entity.player.BonemealEvent e)\r\n\t{\n\t\tif (!e.world.isRemote && e.entityPlayer.dimension == YC_Mod.d_astralDimID)\r\n\t\t{\r\n\t\t\tif (e.world.getBlockId(e.X, e.Y, e.Z) == YC_Mod.b_astralCrystals.blockID && e.world.getBlockId(e.X, e.Y-1, e.Z) == Block.grass.blockID)//crystal in center and grass beneath them\r\n\t\t\t\tif (e.world.getBlockId(e.X+1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X-1, e.Y, e.Z) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z+1) == Block.sapling.blockID && \r\n\t\t\t\t\te.world.getBlockId(e.X, e.Y, e.Z-1) == Block.sapling.blockID)//4 sapplings on sides\r\n\t\t\t\t{\r\n\t\t\t\t\tint iron = 0, gold = 0;\r\n\t\t\t\t\tint id = 0;\r\n\t\t\t\t\t//============================================2 blocks of iron and gold each diagonally===================================================\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X+1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z-1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tid = e.world.getBlockId(e.X-1, e.Y, e.Z+1);\r\n\t\t\t\t\tif (id == Block.blockSteel.blockID) iron++;\r\n\t\t\t\t\tif (id == Block.blockGold.blockID) gold++;\r\n\t\t\t\t\tif (iron == 2 && gold == 2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (HasCoalCount(e.world, e.X, e.Y, e.Z, 64))//stack of coal for it\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tDecrCoalCount(e.world, e.X, e.Y, e.Z, 64);\r\n\t\t\t\t\t\t\tYC_WorldGenAstral.GenerateTree(e.world, new Random(), e.X, e.Y-1, e.Z);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z-1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X+1, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X, e.Y, e.Z+1, 0, 0, 3);\r\n\t\t\t\t\t\t\te.world.setBlockAndMetadataWithNotify(e.X-1, e.Y, e.Z+1, 0, 0, 3);\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}\r\n\t\t//System.out.println(e.X+\" ; \" + e.Y + \" ; \" + e.Z + \" ; \" + FMLCommonHandler.instance().getEffectiveSide());\r\n\t}", "public ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock) {\n/* 571 */ return block(multicastAddress, sourceToBlock, newPromise());\n/* */ }", "Block create(int xpos, int ypos);", "public void sendEvent(int id, int arg) {\n\t\tgetWorld().addBlockEvent(getPos(), getWorld().getBlockState(getPos()).getBlock(), id, arg);\n\t}", "public void run() {\n\n try{\n\n // random block number\n int blockNo = new Random().nextInt(100);\n\n while (true){\n\n Thread.sleep(500);\n writer.reset();\n\n // upload image blocks in a round robin fashion\n if (blockNo < 99)\n blockNo++;\n else\n blockNo = 0;\n\n writer.writeObject(new Message(\"\", \"\", \"SEND_IMG_BLOCK\", blockNo, labels[blockNo].getIcon(), null));\n System.out.println(\"Send to IP: \" + s.getLocalAddress().getHostAddress() + \" Port: \" + s.getPort() + \" Block: \" + (blockNo));\n writer.flush();\n\n }\n\n } catch (Exception e){\n\n // e.printStackTrace();\n\n }\n\n }", "public static void main(String[] args) throws IOException, InterruptedException {\n\t\tInetSocketAddress clientAddr = new InetSocketAddress(\"localhost\", 1111);\r\n\t\tSocketChannel client = SocketChannel.open(clientAddr);\r\n \r\n\t\tlog(\"Connecting to Server on port 1111...\");\r\n \r\n\t\tArrayList<String> staticStrings = new ArrayList<String>();\r\n \r\n\t\t// create a ArrayList with myStaticString list\r\n\t\t/*staticStrings.add(\"Guess Me\");\r\n\t\tstaticStrings.add(\"Who am I\");\r\n\t\tstaticStrings.add(\"Hello Out there!!!\");\r\n\t\tstaticStrings.add(\"Am I Guessing.....????????\");\r\n\t\tstaticStrings.add(\"Testing Done!\");\r\n\t\t*/\r\n\t\t\r\n\t\tblock = BlockService1.getBlockChain();\r\n\t\t//block=new ArrayList<Block1>();\r\n\t\t\r\n\t\tblock.add(BlockService1.getFirstBlock());\r\n\t\t\r\n\t\tblock.add(BlockService1.generateNextBlock(\"Hello Out There!!!\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tfor(Block1 b:block) {\r\n\t\t\tSystem.out.println( b.getIndex());\r\n\t\t\tSystem.out.println(b.getPreviousHash());\r\n\t\t\tSystem.out.println(b.getTimestamp());\r\n\t\t\tSystem.out.println(b.getData());\r\n\t\t\tSystem.out.println(b.getHash());\r\n\t\t\tSystem.out.println(\"\\n\");\t\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t ObjectMapper mapper = new ObjectMapper();\r\n\t try {\r\n\t String json = mapper.writeValueAsString(b);\r\n\t\t DBwrite dw=new DBwrite();\r\n DBObject dbObject = (DBObject)JSON.parse(json);\r\n dw.collection.insert(dbObject);\r\n \r\n // collection.insert(dbObject);\r\n \r\n \r\n DBCursor cursorDocJSON = dw.collection.find();\r\n while (cursorDocJSON.hasNext()) {\r\n System.out.println( cursorDocJSON.next());\r\n }\r\n \r\n\t\t/*//for (String myStaticString : staticStrings) {\r\n\t\tfor(Block1 b:block)\r\n\t\t{\r\n\t\t\tbyte[] message = new String(b.getIndex() + b.getPreviousHash() + b.getTimestamp() + b.getData() + b.getHash()).getBytes();\r\n\t\t\tByteBuffer buffer = ByteBuffer.wrap(message);\r\n\t\t\tclient.write(buffer);\r\n \r\n\t\t\tlog(\"sending: \" + message.toString()\r\n\t\t\t);\r\n\t\t\tbuffer.clear();\r\n \r\n\t\t\t// wait for 2 seconds before sending next message\r\n\t\t\tThread.sleep(2000);*/\r\n\t\t\r\n\t } catch (JsonProcessingException e) {\r\n e.printStackTrace();\r\n }}\r\n\t\tclient.close();\r\n\t}", "ActionBlock createActionBlock();", "public static synchronized void speakBlock (String name) {\n\t\tSystem.out.println(name+\": WOOOO\");\r\n\t\tSystem.out.println(name+\": WAOAH\");\r\n\t\tSystem.out.println(name+\": WHEEE\");\r\n\t\tSystem.out.println(\"------------------\");\r\n\t}", "protected Block(short id) {\n this(id, (byte) 0);\n }", "public void renderWorldBlock(bbb renderblocks, ym iba, int i, int j, int k, int md)\r\n/* 26: */ {\r\n/* 27: 26 */ int cons = 0;\r\n/* 28: 27 */ TilePipe tt = (TilePipe)CoreLib.getTileEntity(iba, i, j, k, TilePipe.class);\r\n/* 29: 29 */ if (tt == null) {\r\n/* 30: 29 */ return;\r\n/* 31: */ }\r\n/* 32: 31 */ this.context.exactTextureCoordinates = true;\r\n/* 33: 32 */ this.context.setTexFlags(55);\r\n/* 34: 33 */ this.context.setTint(1.0F, 1.0F, 1.0F);\r\n/* 35: 34 */ this.context.setPos(i, j, k);\r\n/* 36: 35 */ if (tt.CoverSides > 0)\r\n/* 37: */ {\r\n/* 38: 36 */ this.context.readGlobalLights(iba, i, j, k);\r\n/* 39: 37 */ renderCovers(tt.CoverSides, tt.Covers);\r\n/* 40: */ }\r\n/* 41: 40 */ cons = PipeLib.getConnections(iba, i, j, k);\r\n/* 42: */ \r\n/* 43: */ \r\n/* 44: */ \r\n/* 45: 44 */ this.context.setBrightness(this.block.e(iba, i, j, k));\r\n/* 46: */ \r\n/* 47: 46 */ this.context.setLocalLights(0.5F, 1.0F, 0.8F, 0.8F, 0.6F, 0.6F);\r\n/* 48: 47 */ this.context.setPos(i, j, k);\r\n/* 49: */ \r\n/* 50: 49 */ RenderLib.bindTexture(\"/eloraam/machine/machine1.png\");\r\n/* 51: */ \r\n/* 52: */ \r\n/* 53: */ \r\n/* 54: */ \r\n/* 55: */ \r\n/* 56: */ \r\n/* 57: */ \r\n/* 58: */ \r\n/* 59: */ \r\n/* 60: */ \r\n/* 61: */ \r\n/* 62: */ \r\n/* 63: */ \r\n/* 64: 63 */ renderCenterBlock(cons, 26, 28);\r\n/* 65: */ \r\n/* 66: 65 */ tt.cacheFlange();\r\n/* 67: 66 */ renderFlanges(tt.Flanges, 27);\r\n/* 68: */ \r\n/* 69: 68 */ RenderLib.unbindTexture();\r\n/* 70: */ }", "public Block() {\n this((byte) 0, (byte) 0);\n }", "void makeDragon() {\n new BukkitRunnable() {\n int i = 555;\n\n @Override\n public void run() {\n Set<BlockData> set = create.get(i);\n for (BlockData blockData : set) {\n blockData.setBlock();\n }\n\n i++;\n if (i > 734) {\n cancel();\n }\n }\n }.runTaskTimer(Main.plugin, 0, 2);\n // Location end = new Location(Bukkit.getWorld(\"world\"), 3, 254, 733);\n }", "public Block() {\n this.xPos = 0;\n this.yPos = 0;\n this.width = 0;\n this.height = 0;\n this.color = Color.MINTCREAM;\n }", "public static BlockMultiPlaceEvent callBlockMultiPlaceEvent(World world, EntityHuman who, List<BlockState> blockStates, int clickedX, int clickedY, int clickedZ) {\n/* 116 */ CraftWorld craftWorld = world.getWorld();\n/* 117 */ CraftServer craftServer = world.getServer();\n/* 118 */ Player player = (who == null) ? null : (Player)who.getBukkitEntity();\n/* */ \n/* 120 */ Block blockClicked = craftWorld.getBlockAt(clickedX, clickedY, clickedZ);\n/* */ \n/* 122 */ boolean canBuild = true;\n/* 123 */ for (int i = 0; i < blockStates.size(); i++) {\n/* 124 */ if (!canBuild(craftWorld, player, ((BlockState)blockStates.get(i)).getX(), ((BlockState)blockStates.get(i)).getZ())) {\n/* 125 */ canBuild = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } \n/* 130 */ BlockMultiPlaceEvent event = new BlockMultiPlaceEvent(blockStates, blockClicked, player.getItemInHand(), player, canBuild);\n/* 131 */ craftServer.getPluginManager().callEvent((Event)event);\n/* */ \n/* 133 */ return event;\n/* */ }", "public void sendeLobby();", "@EventHandler(priority = EventPriority.MONITOR)\n public void onPlaceFirstBlockNotify(BlockPlaceEvent event) {\n if (event.isCancelled()) return;\n Block block = event.getBlock();\n Player player = event.getPlayer();\n if (!player.hasPermission(\"lockettepro.lock\")) return;\n if (Utils.shouldNotify(player) && Config.isLockable(block.getType())) {\n switch (Config.getQuickProtectAction()) {\n case (byte) 0 -> Utils.sendMessages(player, Config.getLang(\"you-can-manual-lock-it\"));\n case (byte) 1, (byte) 2 -> Utils.sendMessages(player, Config.getLang(\"you-can-quick-lock-it\"));\n }\n }\n }", "public void breakBlock(World world, int x, int y, int z, Block par5, int par6)\r\n/* 186: */ {\r\n/* 187:209 */ if ((world.getBlock(x, y, z) != FMPBase.getFMPBlockId()) && \r\n/* 188:210 */ ((world.getTileEntity(x, y, z) instanceof TileEntityTransferNode)))\r\n/* 189: */ {\r\n/* 190:211 */ TileEntityTransferNode tile = (TileEntityTransferNode)world.getTileEntity(x, y, z);\r\n/* 191:213 */ if (!tile.getUpgrades().isEmpty()) {\r\n/* 192:214 */ for (int i = 0; i < tile.getUpgrades().size(); i++)\r\n/* 193: */ {\r\n/* 194:215 */ ItemStack itemstack = (ItemStack)tile.getUpgrades().get(i);\r\n/* 195:216 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 196:217 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 197: */ EntityItem entityitem;\r\n/* 198:220 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 199: */ {\r\n/* 200:221 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 201:223 */ if (k1 > itemstack.stackSize) {\r\n/* 202:224 */ k1 = itemstack.stackSize;\r\n/* 203: */ }\r\n/* 204:227 */ itemstack.stackSize -= k1;\r\n/* 205:228 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 206:229 */ float f3 = 0.05F;\r\n/* 207:230 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 208:231 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 209:232 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 210:234 */ if (itemstack.hasTagCompound()) {\r\n/* 211:235 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 212: */ }\r\n/* 213: */ }\r\n/* 214: */ }\r\n/* 215: */ }\r\n/* 216:241 */ if ((tile instanceof TileEntityTransferNodeInventory))\r\n/* 217: */ {\r\n/* 218:242 */ TileEntityTransferNodeInventory tileentity = (TileEntityTransferNodeInventory)tile;\r\n/* 219: */ \r\n/* 220:244 */ ItemStack itemstack = tileentity.getStackInSlot(0);\r\n/* 221:246 */ if (itemstack != null)\r\n/* 222: */ {\r\n/* 223:247 */ float f = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 224:248 */ float f1 = this.random.nextFloat() * 0.8F + 0.1F;\r\n/* 225: */ EntityItem entityitem;\r\n/* 226:251 */ for (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; world.spawnEntityInWorld(entityitem))\r\n/* 227: */ {\r\n/* 228:252 */ int k1 = this.random.nextInt(21) + 10;\r\n/* 229:254 */ if (k1 > itemstack.stackSize) {\r\n/* 230:255 */ k1 = itemstack.stackSize;\r\n/* 231: */ }\r\n/* 232:258 */ itemstack.stackSize -= k1;\r\n/* 233:259 */ entityitem = new EntityItem(world, x + f, y + f1, z + f2, new ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\r\n/* 234:260 */ float f3 = 0.05F;\r\n/* 235:261 */ entityitem.motionX = ((float)this.random.nextGaussian() * f3);\r\n/* 236:262 */ entityitem.motionY = ((float)this.random.nextGaussian() * f3 + 0.2F);\r\n/* 237:263 */ entityitem.motionZ = ((float)this.random.nextGaussian() * f3);\r\n/* 238:265 */ if (itemstack.hasTagCompound()) {\r\n/* 239:266 */ entityitem.getEntityItem().setTagCompound((NBTTagCompound)itemstack.getTagCompound().copy());\r\n/* 240: */ }\r\n/* 241: */ }\r\n/* 242: */ }\r\n/* 243:271 */ world.func_147453_f(x, y, z, par5);\r\n/* 244: */ }\r\n/* 245: */ }\r\n/* 246:276 */ super.breakBlock(world, x, y, z, par5, par6);\r\n/* 247: */ }", "public interface IBlockAdded {\n\t\n\tpublic void setItemBlock(@Nullable IItemAddedBlock itemBlock);\n\t\n\tpublic void setDisplayName(String displayName);\n\t\n\tpublic void setBlockMaterial(Material blockMaterial);\n\t\n\tpublic void setPlaceSound(SoundEvent sound);\n\t\n\tpublic void setBreakSound(SoundEvent sound);\n\t\n\tpublic void setHitSound(SoundEvent sound);\n\t\n\tpublic void setStepSound(SoundEvent sound);\n\t\n\tpublic void setFallSound(SoundEvent sound);\n\t\n\tpublic void setBlockMapColor(@Nullable MapColor mapColor);\n\t\n\tpublic void setHarvestLevel(int harvestLevel);\n\t\n\tpublic void setHarvestTool(String harvestTool);\n\t\n\tpublic void setEffectiveTools(List<String> effectiveTools);\n\t\n\tpublic void setBookshelfStrength(int bookshelfStrength);\n\t\n\tpublic void setBeaconColorMultiplier(@Nullable float[] beaconColorMultiplier);\n\t\n\tpublic void setSlipperiness(float slipperiness);\n\t\n\tpublic void setIsSlime(boolean isSlime);\n\t\n\tpublic void setIsBeaconBase(boolean isBeaconBase);\n\t\n\tpublic void setCanPistonsPush(boolean canPistonsPush);\n\t\n\tpublic void setSemiTransparent(boolean semiTransparent);\n\t\n\tpublic void setXpDroppedMin(int xpMin);\n\t\n\tpublic void setXpDroppedMax(int xpMax);\n\t\n\tpublic void setDroppedFromExplosions(Boolean droppedFromExplosions);\n\t\n\tpublic default void setCanEndermenCarry(boolean canEndermenCarry) {\n\t\tif (EntityEnderman.getCarriable(this.getAsBlock()) != canEndermenCarry) {\n\t\t\tEntityEnderman.setCarriable(this.getAsBlock(), canEndermenCarry);\n\t\t}\n\t}\n\t\n\t@Nullable\n\tpublic IItemAddedBlock getItemBlock();\n\t\n\tpublic String getDisplayName();\n\t\n\tpublic Material getBlockMaterial();\n\t\n\tpublic SoundEvent getPlaceSound();\n\t\n\tpublic SoundEvent getBreakSound();\n\t\n\tpublic SoundEvent getHitSound();\n\t\n\tpublic SoundEvent getStepSound();\n\t\n\tpublic SoundEvent getFallSound();\n\t\n\t@Nullable\n\tpublic MapColor getBlockMapColor();\n\t\n\tpublic int getHarvestLevel();\n\t\n\tpublic String getHarvestTool();\n\t\n\tpublic List<String> getEffectiveTools();\n\t\n\tpublic int getBookshelfStrength();\n\t\n\t@Nullable\n\tpublic float[] getBeaconColorMultiplier();\n\t\n\tpublic float getSlipperiness();\n\t\n\tpublic boolean isSlime();\n\t\n\tpublic boolean isBeaconBase();\n\t\n\tpublic boolean canPistonsPush();\n\t\n\tpublic float getHardness();\n\t\n\tpublic float getResistance();\n\t\n\tpublic int getOpacity();\n\t\n\tpublic boolean isSemiTransparent();\n\t\n\tpublic int getLightLevel();\n\t\n\tpublic int getXpDroppedMin();\n\t\n\tpublic int getXpDroppedMax();\n\t\n\tpublic Boolean getDroppedFromExplosions();\n\t\n\tpublic default boolean canEndermenCarry() {\n\t\treturn EntityEnderman.getCarriable(this.getAsBlock());\n\t}\n\t\n\tpublic default void registerModels() {\n\t\tAdditionsMod.proxy.registerBlockRender(this.getAsBlock());\n\t}\n\t\n\tpublic default Block getAsBlock() {\n\t\tif (!(this instanceof Block)) {\n\t\t\tthrow new IllegalArgumentException(\"An IBlockAdded must be an instance of Block.\");\n\t\t}\n\t\treturn (Block) this;\n\t}\n\t\n public default String getId() {\n \tResourceLocation registryName = this.getAsBlock().getRegistryName();\n \t\n \tif (registryName != null) {\n \t\treturn registryName.getResourcePath();\n \t}\n \t\n String unlocalizedName = this.getAsBlock().getUnlocalizedName();\n \n if (unlocalizedName.startsWith(\"tile.\")) {\n \treturn unlocalizedName.substring(5);\n }\n \n return unlocalizedName;\n }\n\n public abstract static class Serializer<T extends IBlockAdded> {\n\t\t\n\t\tprivate final ResourceLocation blockAddedType;\n private final Class<T> blockAddedClass;\n\n protected Serializer(ResourceLocation location, Class<T> clazz)\n {\n this.blockAddedType = location;\n this.blockAddedClass = clazz;\n }\n\n\t\tpublic ResourceLocation getBlockAddedType() {\n\t\t\treturn this.blockAddedType;\n\t\t}\n\t\t\n\t\tpublic Class<T> getBlockAddedClass() {\n\t\t\treturn this.blockAddedClass;\n\t\t}\n\n\t\tpublic JsonObject serialize(T blockAddedObj, JsonSerializationContext context) {\n\t\t\tJsonObject json = new JsonObject();\n\t\t\tBlock blockAdded = blockAddedObj.getAsBlock();\n\t\t\t\n\t\t\tif (blockAddedObj.getItemBlock() != null) {\n\t\t\t\tjson.add(\"item_block\", AdditionTypeItem.GSON.toJsonTree(blockAddedObj.getItemBlock()));\n\t\t\t}\n\t\t\t\n\t\t\tjson.addProperty(\"name\", blockAddedObj.getDisplayName());\n\t\t\tjson.add(\"material\", OtherSerializers.BlockMaterialSerializer.serialize(blockAddedObj.getBlockMaterial()));\n\t\t\t\n\t\t\tif (blockAddedObj.getPlaceSound() != null) {\n\t\t\t\tjson.add(\"place_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getPlaceSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBreakSound() != null) {\n\t\t\t\tjson.add(\"break_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getBreakSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHitSound() != null) {\n\t\t\t\tjson.add(\"hit_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getHitSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getStepSound() != null) {\n\t\t\t\tjson.add(\"step_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getStepSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getFallSound() != null) {\n\t\t\t\tjson.add(\"fall_sound\", OtherSerializers.SoundEventSerializer.serialize(blockAddedObj.getFallSound()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBlockMapColor() != null) {\n\t\t\t\tjson.add(\"map_color\", OtherSerializers.BlockMapColorSerializer.serialize(blockAddedObj.getBlockMapColor()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHardness() > 0) {\n\t\t\t\tjson.addProperty(\"hardness\", blockAddedObj.getHardness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getResistance() > 0) {\n\t\t\t\tjson.addProperty(\"resistance\", blockAddedObj.getResistance() / 3.0f);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getHarvestLevel() != 0) {\n\t\t\t\tjson.addProperty(\"harvest_level\", blockAddedObj.getHarvestLevel());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getHarvestTool().isEmpty()) {\n\t\t\t\tjson.addProperty(\"harvest_tool\", blockAddedObj.getHarvestTool());\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.getEffectiveTools().isEmpty()) {\n\t\t\t\tjson.add(\"effective_tools\", OtherSerializers.StringListSerializer.serialize(blockAddedObj.getEffectiveTools()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightOpacity(blockAdded.getDefaultState()) != 15) {\n\t\t\t\tjson.addProperty(\"light_opacity\", blockAdded.getLightOpacity(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAdded.getLightValue(blockAdded.getDefaultState()) > 0) {\n\t\t\t\tjson.addProperty(\"light_level\", blockAdded.getLightValue(blockAdded.getDefaultState()));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getFlammability(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"flammability\", Blocks.FIRE.getFlammability(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (Blocks.FIRE.getEncouragement(blockAdded) > 0) {\n\t\t\t\tjson.addProperty(\"fire_spread_speed\", Blocks.FIRE.getEncouragement(blockAdded));\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getBookshelfStrength() > 0) {\n\t\t\t\tjson.addProperty(\"bookshelf_strength\", blockAddedObj.getBookshelfStrength());\n\t\t\t}\n\t\t\t\n\t\t\tfloat[] beaconColorsMultiplier = blockAddedObj.getBeaconColorMultiplier();\n\t\t\tif (beaconColorsMultiplier != null && beaconColorsMultiplier.length == 3) {\n\t\t\t\tJsonObject beaconColorObj = new JsonObject();\n\t\t\t\tbeaconColorObj.addProperty(\"red\", beaconColorsMultiplier[0]);\n\t\t\t\tbeaconColorObj.addProperty(\"green\", beaconColorsMultiplier[1]);\n\t\t\t\tbeaconColorObj.addProperty(\"blue\", beaconColorsMultiplier[2]);\n\t\t\t\tjson.add(\"beacon_color_multiplier\", beaconColorObj);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getSlipperiness() != 0.6f) {\n\t\t\t\tjson.addProperty(\"slipperiness\", blockAddedObj.getSlipperiness());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSlime()) {\n\t\t\t\tjson.addProperty(\"is_slime\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isBeaconBase()) {\n\t\t\t\tjson.addProperty(\"is_beacon_base\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (!blockAddedObj.canPistonsPush()) {\n\t\t\t\tjson.addProperty(\"can_pistons_push\", false);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.isSemiTransparent()) {\n\t\t\t\tjson.addProperty(\"semi_transparent\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMin() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_min\", blockAddedObj.getXpDroppedMin());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getXpDroppedMax() != 0) {\n\t\t\t\tjson.addProperty(\"xp_dropped_max\", blockAddedObj.getXpDroppedMax());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.getDroppedFromExplosions() != null) {\n\t\t\t\tjson.addProperty(\"dropped_from_explosions\", blockAddedObj.getDroppedFromExplosions());\n\t\t\t}\n\t\t\t\n\t\t\tif (blockAddedObj.canEndermenCarry()) {\n\t\t\t\tjson.addProperty(\"can_endermen_carry\", true);\n\t\t\t}\n\t\t\t\n\t\t\treturn json;\n }\n\n\t\tpublic abstract T deserialize(JsonObject json, JsonDeserializationContext context);\n\t\t\n\t\tpublic <V extends Block & IBlockAdded> V deserializeDefaults(JsonObject json, JsonDeserializationContext context, V blockAdded) {\n\t\t\t\n\t\t\tif (json.has(\"item_block\")) {\n\t\t\t\tIItemAdded itemAdded = AdditionTypeItem.GSON.fromJson(json.get(\"item_block\"), IItemAdded.class);\n\t\t\t\t\n\t\t\t\tif (itemAdded instanceof IItemAddedBlock) {\n\t\t\t\t\tIItemAddedBlock itemAddedBlock = (IItemAddedBlock)itemAdded;\n\t\t\t\t\titemAddedBlock.setBlock(blockAdded);\n\t\t\t\t\tblockAdded.setItemBlock(itemAddedBlock);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n \tblockAdded.setDisplayName(JsonUtils.getString(json, \"name\"));\n \tblockAdded.setBlockMaterial(OtherSerializers.BlockMaterialSerializer.deserialize(json, \"material\"));\n\t\t\t\n\t\t\tif (json.has(\"map_color\")) {\n\t\t\t\tblockAdded.setBlockMapColor(OtherSerializers.BlockMapColorSerializer.deserialize(json, \"map_color\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setHardness(JsonUtils.getFloat(json, \"hardness\", 0));\n\t\t\tblockAdded.setResistance(JsonUtils.getFloat(json, \"resistance\", 0));\n\t\t\tblockAdded.setHarvestLevel(JsonUtils.getInt(json, \"harvest_level\", 0));\n\t\t\tblockAdded.setHarvestTool(JsonUtils.getString(json, \"harvest_tool\", \"\"));\n\t\t\t\n\t\t\tif (json.has(\"effective_tools\")) {\n\t\t\t\tblockAdded.setEffectiveTools(OtherSerializers.StringListSerializer.deserialize(json.get(\"effective_tools\"), \"effective_tools\"));\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setLightOpacity(MathHelper.clamp(JsonUtils.getInt(json, \"light_opacity\", 15), 0, 15));\n\t\t\tblockAdded.setLightLevel(MathHelper.clamp(JsonUtils.getInt(json, \"light_level\", 0), 0, 15) / 15F);\n\t\t\t\n\t\t\tint flammability = JsonUtils.getInt(json, \"flammability\", 0);\n\t\t\tint fireSpreadSpeed = JsonUtils.getInt(json, \"fire_spread_speed\", 0);\n\t\t\tif (flammability > 0 || fireSpreadSpeed > 0) {\n\t\t\t\tBlocks.FIRE.setFireInfo(blockAdded, fireSpreadSpeed, flammability);\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setBookshelfStrength(JsonUtils.getInt(json, \"bookshelf_strength\", 0));\n\t\t\t\n\t\t\tif (json.has(\"beacon_color_multiplier\")) {\n\t\t\t\tJsonObject beaconColorObj = JsonUtils.getJsonObject(json, \"beacon_color_multiplier\");\n\t\t\t\tblockAdded.setBeaconColorMultiplier(new float[]{JsonUtils.getFloat(beaconColorObj, \"red\"), JsonUtils.getFloat(beaconColorObj, \"green\"), JsonUtils.getFloat(beaconColorObj, \"blue\")});\n\t\t\t}\n\t\t\t\n\t\t\tblockAdded.setSlipperiness(JsonUtils.getFloat(json, \"slipperiness\", 0.6f));\n\t\t\tblockAdded.setIsSlime(JsonUtils.getBoolean(json, \"is_slime\", false));\n\t\t\tblockAdded.setIsBeaconBase(JsonUtils.getBoolean(json, \"is_beacon_base\", false));\n\t\t\tblockAdded.setCanPistonsPush(JsonUtils.getBoolean(json, \"can_pistons_push\", true));\n\t\t\tblockAdded.setSemiTransparent(JsonUtils.getBoolean(json, \"semi_transparent\", false));\n\t\t\tblockAdded.setXpDroppedMin(JsonUtils.getInt(json, \"xp_dropped_min\", 0));\n\t\t\tblockAdded.setXpDroppedMax(JsonUtils.getInt(json, \"xp_dropped_max\", 0));\n\t\t\tblockAdded.setCanEndermenCarry(JsonUtils.getBoolean(json, \"can_endermen_carry\", false));\n\t\t\t\n\t\t\tif (json.has(\"dropped_by_explosions\")) {\n\t\t\t\tblockAdded.setDroppedFromExplosions(JsonUtils.getBoolean(json, \"dropped_by_explosions\"));\n\t\t\t}\n \t\n \treturn blockAdded;\n }\n\t\t\n\t\tpublic void postDeserializeBlockAdded(JsonObject json, IBlockAdded blockAddedObj) {\n\t\t\tif (blockAddedObj.getClass() != this.blockAddedClass) {\n\t\t\t\tthrow new IllegalArgumentException(\"Tried to call post serialize for an object of the wrong type! Expected: \" + this.blockAddedClass + \", Actual: \" + blockAddedObj.getClass());\n\t\t\t}\n\t\t\t\n\t\t\tpostDeserialize(json, (T) blockAddedObj);\n\t\t}\n\t\t\n\t\tpublic void postDeserialize(JsonObject json, T blockAdded) {\n\t\t\tthis.postDeserializeDefaults(json, blockAdded);\n\t\t}\n\t\t\n\t\tpublic void postDeserializeDefaults(JsonObject json, T blockAdded) {\n \t\n \tIItemAdded itemAdded = blockAdded.getItemBlock();\n \tif (itemAdded != null) {\n \t\tItemAddedManager.Serializer.postDeserialize(JsonUtils.getJsonObject(json, \"item_block\"), itemAdded);\n \t}\n \t\n \tif (json.has(\"place_sound\")) {\n \t\tblockAdded.setPlaceSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"place_sound\"));\n \t}\n \t\n \tif (json.has(\"break_sound\")) {\n \t\tblockAdded.setBreakSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"break_sound\"));\n \t}\n \t\n \tif (json.has(\"hit_sound\")) {\n \t\tblockAdded.setHitSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"hit_sound\"));\n \t}\n \t\n \tif (json.has(\"step_sound\")) {\n \t\tblockAdded.setStepSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"step_sound\"));\n \t}\n \t\n \tif (json.has(\"fall_sound\")) {\n \t\tblockAdded.setFallSound(OtherSerializers.SoundEventSerializer.deserialize(json, \"fall_sound\"));\n \t}\n }\n }\n}", "public int GetID()\n {\n return blockType.GetID();\n }", "final public void block() throws ParseException {\n jj_consume_token(35);\n jj_consume_token(BLOCK);\n label_3:\n while (true) {\n if (jj_2_35(4)) {\n ;\n } else {\n break label_3;\n }\n jj_consume_token(34);\n }\n if (jj_2_36(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(36);\n }", "private boolean isBlocked() {\n return block_state <= 1;\n }", "public Server(Ublu ublu, Socket socket, String executionBlock) {\n this();\n setUblu(ublu);\n setSocket(socket);\n setExecutionBlock(executionBlock);\n }", "public int getBlock(){\n return this.position.getCurrentBlock();\n }", "protected void serverInterpret(String block) throws IOException {\n Interpreter i;\n if (parentInterpreter == null) {\n i = new Interpreter(getUblu());\n } else {\n i = new Interpreter(parentInterpreter);\n }\n i.setOutputStream(new PrintStream(getSocket().getOutputStream()));\n i.setInputStream(getSocket().getInputStream());\n i.setInputStreamBufferedReader(new BufferedReader(new InputStreamReader(i.getInputStream())));\n if (block != null) {\n i.setArgArray(new Parser(i, block).parseAnArgArray());\n i.loop();\n }\n }", "protected void onBlockClick(PlayerInteractEvent event) {\n\t}", "public static void BlockRegister()\n\t{\n\t\tString[] umberstoneBlock = {\"umberstone\"};\n\t\tString[] umbercobbleBlock = {\"cobbleUmber\"};\n\t\tStoneRegister umberstone = getStoneRegister(ModBlocks.umberstone, ModBlocks.umberstone, \"umberstone\", umberstoneBlock, umbercobbleBlock, \"erebus\");\n\t\tumberstone.mossyCobble = false;\n\t\tumberstone.genReplaceable = false;\n\t\tumberstone.register();\n\t}" ]
[ "0.62504905", "0.5797488", "0.56783473", "0.5631799", "0.55562896", "0.5513737", "0.54913944", "0.54392797", "0.54392797", "0.54392797", "0.5411843", "0.54012334", "0.5401153", "0.5394554", "0.53933257", "0.53054106", "0.5291981", "0.5271251", "0.52166766", "0.5208547", "0.5159583", "0.51437867", "0.51401067", "0.5135413", "0.5130524", "0.51143086", "0.5113161", "0.5105904", "0.5095585", "0.50859654", "0.50806296", "0.5076098", "0.5072242", "0.5068577", "0.5043185", "0.5031533", "0.5029524", "0.50286674", "0.5027546", "0.5009935", "0.49880138", "0.49875373", "0.49818698", "0.49818107", "0.49746326", "0.49695206", "0.49677426", "0.49596184", "0.49593276", "0.4958174", "0.49323663", "0.49230233", "0.4919916", "0.4915639", "0.49050218", "0.48922998", "0.48840913", "0.487883", "0.48763642", "0.4875498", "0.4870627", "0.48641586", "0.48615175", "0.48545858", "0.4853622", "0.48465654", "0.4840607", "0.48362133", "0.48247972", "0.48225072", "0.4818712", "0.48175082", "0.4802273", "0.4797701", "0.47897285", "0.47892487", "0.47885755", "0.47848323", "0.47816497", "0.47807142", "0.47755525", "0.47735035", "0.477269", "0.47704405", "0.4770236", "0.47662157", "0.47589493", "0.47572678", "0.47491777", "0.47452635", "0.47396266", "0.47381148", "0.47276464", "0.47245547", "0.47198236", "0.4714901", "0.4714079", "0.47130504", "0.4712169", "0.4709438", "0.47076437" ]
0.0
-1
private String sqlBuscaPorNome="from Funcionario as f where f.nome like :nome";
public List<Funcionario> buscaPorNome(String nome) { session = HibernateConexao.getSession(); session.beginTransaction().begin(); // Query query=session.createSQLQuery(sqlBuscaPorNome).setParameter("nome", nome); List list = session.createCriteria(classe).add(Restrictions.like("nome", "%" + nome + "%")).list(); session.close(); return list; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface OrdineRepository extends JpaRepository<Ordine,Long> {\n\n //Ricerca ordini associati ad un determinato cliente\n @Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);\n}", "@Query(value = \"SELECT * FROM produtos WHERE prd_nome LIKE %?%\", nativeQuery = true)\r\n public List<ProdutosModel> findAllLike (String pesquisa);", "List<Funcionario> findByNomeCompletoIgnoreCaseContaining(String nomeCompleto);", "public List<Filme> buscarPeloNome(String nome) {\n EntityManager gerenciador = JPAUtil.getGerenciador();\r\n\r\n //Criando a consulta ao BD\r\n TypedQuery<Filme> consulta = gerenciador.createQuery(\r\n \"Select f from Filme f where f.nome like :nome\",\r\n Filme.class);\r\n\r\n //Substituindo o parametro :nome pelo valor da variavel n\r\n consulta.setParameter(\"nome\", nome + \"%\");\r\n\r\n //Retornar os dados\r\n return consulta.getResultList();\r\n\r\n }", "public Tipo findByFullName(String nombre) throws TipoDaoException;", "@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);", "@Query(\"SELECT * FROM \"+Usuario.TABLE_NAME+\" WHERE nombre_usuario\" +\" = :nombre_u\")\n Usuario getUsuarioNombreUsuario(String nombre_u);", "@Query(\"FROM Consulta c WHERE c.paciente.dni = :dni OR LOWER(c.paciente.nombres) \"\n\t\t\t+ \"LIKE %:nombreCompleto% OR LOWER(c.paciente.apellidos) \"\n\t\t\t+ \"LIKE %:nombreCompleto%\")\n\tList<Consulta> buscar(@Param(\"dni\") String dni, @Param(\"nombreCompleto\") String nombreCompleto);", "public List<Produto> findByNomeLike(String nome);", "private void armarQuery(String filtro) throws DatabaseErrorException {\n String query = null;\n if (filtro != null && filtro.length() > 0) {\n query = \"SELECT * FROM \" + CLASS_NAME + \" o WHERE o.nombre ILIKE '\" + filtro + \"%' ORDER BY o.nombre\";\n }\n cargarContenedorTabla(query);\n }", "private void filterPerName(EntityManager em) {\n System.out.println(\"Please enter the name: \");\n Scanner sc = new Scanner(System.in);\n //Debug : String name = \"Sel\";\n\n String name = sc.nextLine();\n\n TypedQuery<Permesso> query = em.createQuery(\"select p from com.hamid.entity.Permesso p where p.nome like '%\"+ name\n + \"%'\" , Permesso.class);\n\n List<Permesso> perList = query.getResultList();\n\n for (Permesso p : perList) {\n System.out.println(p.getNome());\n }\n }", "public interface DirektoratRepository extends JpaRepository<Direktorat,Long> {\n\n @Query(value = \"select d from Direktorat d where d.nama like :cariNama\")\n List<Direktorat> findByNama(@Param(\"cariNama\")String cariNama);\n\n List<Direktorat> findByKode(String kode);\n\n}", "@Query(\"SELECT f FROM Funcionario f JOIN f.unidadeTrabalhos u WHERE u.descricao = :descricao\")\n List<Funcionario> findByUnidadeTrabalhos_Descricao_jpql(String descricao);", "public List<TipoRetencion> findByNombreContaining(String nombre);", "@Query(\"select p from Pedido p where p.desc =?1\")\n public Pedido buscarPedidoPorDescricao(String desc);", "@Query(\"SELECT f FROM Funcionario f\" +\n \" WHERE f.nome = :nome\" +\n \" AND f.salario >= :salario\" +\n \" AND f.dataContratacao = :data\")\n List<Funcionario> findNomeDataContratacaoSalarioMaior(String nome, Double salario, LocalDate data);", "@Query(value = \"SELECT * FROM FUNCIONARIO \" +\n \"WHERE CONVERT(upper(name), 'SF7ASCII') = CONVERT(upper(:name), 'SF7ASCII')\", nativeQuery = true)\n Optional<List<Funcionario>> findByNameIgnoreCase(String name);", "@Query(\"SELECT f FROM Funcionario f JOIN f.cargo c WHERE c.descricao = :descricao\")\n List<Funcionario> findByCargoPelaDescricao(String descricao);", "public List<FilmeAtor> buscarFilmesAtoresPeloNomeFilmeOuNomeAtor(String nomeFilmeOuAtor) {\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 like :nomeFilme or a.nome like :nomeAtor\",\r\n FilmeAtor.class);\r\n\r\n consulta.setParameter(\"nomeFilme\", nomeFilmeOuAtor + \"%\");\r\n consulta.setParameter(\"nomeAtor\", nomeFilmeOuAtor + \"%\");\r\n \r\n return consulta.getResultList();\r\n\r\n }", "@Override\n\tpublic Ingrediente buscarIngredientePorNombre(String nombre) {\n\t\t\n\t final Session session = this.sessionFactory.getCurrentSession();\n\t return (Ingrediente) session.createCriteria(Ingrediente.class)\n\t .add(Restrictions.eq(\"nombre\",nombre) )\n\t .uniqueResult();\n\t \n \n \n\t\t//\n\n\t/*\t\n\t\t//1.native query CASO DONDE SOLO PUEDO USARLO? \n\tSQLQuery query =\tsessionFactory.getCurrentSession().createSQLQuery(\"SELECT * FROM ingrediente where nombre like '%\"+nombre+\"%'\");\n\t List <Ingrediente> ingredientes = query.list();\n\t\n\t //2.queries no se si importe bien el query\n\t\n\t \tQuery query2 =\tsessionFactory.getCurrentSession().createQuery(\"from auto where id=:id\");\n\t\tquery2.setString(\"id\",nombre);\n\t\t\n\t\tIngrediente ingredientes2 =(Ingrediente) query.uniqueResult();\n\t\t\t\n\t\tDIO VERDE\n\t\t\n\t\treturn null;*/\n\t}", "@Query(\"select i from Item i where lower(i.name) like lower(:namePart)\")\n List<Item> searchInNames(@Param(\"namePart\") String namePart);", "private void pesquisar_cliente() {\n String sql = \"select id, empresa, cnpj, endereco, telefone, email from empresa where empresa like ?\";\n try {\n pst = conexao.prepareStatement(sql);\n //passando o conteudo para a caixa de pesquisa para o ?\n // atenção ao ? q é a continuacao da string SQL\n pst.setString(1, txtEmpPesquisar.getText() + \"%\");\n rs = pst.executeQuery();\n // a linha abaixo usa a biblioteca rs2xml.jar p preencher a TABELA\n tblEmpresas.setModel(DbUtils.resultSetToTableModel(rs));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e);\n }\n }", "public interface TrajetRepo extends JpaRepository<Trajet, Long> {\n Trajet findByDepartNomIgnoreCase(String depart);\n}", "@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%'))\")\n public Page<VwBancos> findVwBancosSpecificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, Pageable pageable);", "@Query(value = \"SELECT * FROM produtos WHERE prd_nome = ?\", nativeQuery = true)\r\n public ProdutosModel findOneByNome (String nome);", "public static ResultSet mostrar(int cod) throws SQLException {\n int nFilas = 0;\r\n String lineaSQL = \"Select * from pago WHERE codigo LIKE '%\"+ cod +\"%';\" ;\r\n ResultSet resultado = Conexion.getInstance().execute_Select(lineaSQL);\r\n \r\n return resultado;\r\n \r\n }", "@Override\n public List<BaseLog> query(String realname) {\n BaseLogExample example = new BaseLogExample();\n if(realname!=null){\n example.createCriteria().andRealnameLike(\"%\"+realname+\"%\");\n }\n List<BaseLog> list = baseLogMapper.selectByExample(example);\n return list;\n }", "@Repository\npublic interface EmpresaRepository extends JpaRepository<Empresa, Long> {\n\n Optional<Empresa> findById(Long pollId);\n\n Page<Poll> findByCreatedBy(Long userId, Pageable pageable);\n\n @Query(\"select e from Empresa e where ( :nome is null or lower(e.user.name) like lower(concat('%', :nome,'%')) ) and ( :categoriaEmpresa is null or e.categoriaEmpresa = :categoriaEmpresa) \")\n\tPage<Empresa> getEmpresasByFilters(@Param(\"nome\")String nome, @Param(\"categoriaEmpresa\")CategoriaEmpresa categoriaEmpresa, Pageable pageable);\n\n}", "public void jpqlFiltri() {\n em.getTransaction().begin();\n Query q = em.createQuery(\"SELECT c FROM Customer c WHERE c.customer_id between 340 and 345\");\n\n List<Customer> listF = q.getResultList();\n\n System.out.println(\"I Customer con id tra 340 e 345 sono:\");\n\n for (Customer c : listF) {\n System.out.println(c.getCustomerId() + c.getFirstName() + c.getLastName());\n\n }\n\n Query q1 = em.createQuery(\"SELECT c FROM Customer c WHERE c.first_name like 'S%'\");\n\n List<Customer> listF2 = q1.getResultList();\n\n System.out.println(\"I Customer con nome che inizia per la lettera S sono:\");\n\n for (Customer c : listF2) {\n System.out.println(c.getCustomerId() + c.getFirstName() + c.getLastName());\n\n }\n\n em.getTransaction().commit();\n em.close();\n emf.close();\n }", "public Tipo[] findByName(String nombre) throws TipoDaoException;", "protected String createFindBy(String nume) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"SELECT \");\n\t\tsb.append(\" * \");\n\t\tsb.append(\" FROM \");\n\t\tsb.append(type.getSimpleName());\n\t\tsb.append(\" WHERE \");\n\t\treturn sb.toString();\n\t}", "@Override\n public boolean containsNameProfesor(String Name) {\n try {\n Entity retValue = null; \n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT * FROM persona where nombre = ?\");\n\n pstmt.setString(1, Name);\n\n rs = pstmt.executeQuery();\n\n if (rs.next()) {\n return true; \n } \n \n } catch (SQLException ex) {\n Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex);\n }\n return false;\n }", "List<User> findByfnameContaining(String search);", "public interface TopicoRepository extends JpaRepository<Topico, Long> {\n Page<Topico> findByCursoNome(String nomeCurso, Pageable pageable); //Gera a query\n\n //criando minha própria Query sem usar o padrão do JpaRepository\n @Query(\"SELECT t FROM Topico t WHERE t.curso.nome = :nomeCurso\") //JPQL\n List<Topico> carregandoCursoNome(@Param(\"nomeCurso\") String nomeCurso);\n}", "public Usuario[] findWhereNombreEquals(String nombre) throws SQLException;", "@Repository\npublic interface StudentRepository extends PagingAndSortingRepository<MasterMahasiswa,Long> {\n @Query(\"SELECT p FROM MasterMahasiswa p WHERE LOWER(p.npm) = LOWER(:npm)\")\n public MasterMahasiswa findByNPM(@Param(\"npm\") String npm);\n\n}", "@Query(\"SELECT entity FROM VwBancos entity WHERE entity.clientes.id = :id AND (entity.nome like concat('%',coalesce(:search,''),'%'))\")\n public Page<VwBancos> findVwBancosGeneralSearch(@Param(value=\"search\") java.lang.String search, @Param(value=\"id\") java.lang.Double id, Pageable pageable);", "List<UsuarioEntity> findByCorreoAllIgnoreCase(String correo);", "@Repository\n@Transactional\npublic interface CatalogRepository extends CrudRepository<Catalog, Long> {\n Catalog findCatalogByCatalogCode(String code);\n\n @Query(value = \"select * from catalog where code like %:query% or name like %:query% \", nativeQuery = true)\n Set<Catalog> find(@Param(value = \"query\") String query);\n}", "@Override\n\t@Transactional\n\tpublic List<Cliente> getClienteByAnyWord(String nombre, Long idcliente, Long idGrupo, Long idPunto) {\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tList<Cliente> cliente =getCurrentSession().createQuery(\"select clientes from Grupo g join g.clientes clientes where clientes.nombre like '\"+nombre+\"%\"+\"'\"+\"and g.id=\"+idGrupo+\" and clientes.activo=1\").list();\n\n\t\t\t\treturn cliente;\n\t}", "@Repository\npublic interface DeviceTypeDao extends CrudRepository<DeviceType,Long> {\n\n DeviceType findByChinatypename(String chinatypename);\n\n// @Query(value=\"select * from tb_devicetype where chinatypename like ?1 or hextypename like ?1 or typename like ?1 or typenum like ?1\",nativeQuery=true)\n// DeviceType findSearch(String info);\n\n}", "@Query(\"SELECT entity FROM Clientes entity WHERE (:id is null OR entity.id = :id) AND (:nome is null OR entity.nome like concat('%',:nome,'%')) AND (:negocio is null OR entity.negocio like concat('%',:negocio,'%')) AND (:sigla is null OR entity.sigla like concat('%',:sigla,'%')) AND (:status is null OR entity.status like concat('%',:status,'%'))\")\n public Page<Clientes> specificSearch(@Param(value=\"id\") java.lang.Double id, @Param(value=\"nome\") java.lang.String nome, @Param(value=\"negocio\") java.lang.String negocio, @Param(value=\"sigla\") java.lang.String sigla, @Param(value=\"status\") java.lang.String status, Pageable pageable);", "Optional<UsuarioEntity> findByCorreoAndContrasenaAllIgnoreCase(String correo, String contrasena);", "public Vendedor buscarVendedorPorNome(String nome);", "@Query(\"SELECT * FROM unit WHERE name = :nama AND sync_delete = 1\")\n public List<Unit> cekNamaUnit(String nama);", "@Query(\"SELECT u FROM EUsuario u WHERE u.nome LIKE :query\")\n\tpublic List<EUsuario> findByQuery(@Param(\"query\") String query);", "@Query(\"select i from Product i where name=:name\")\r\n public List<Product> findByQuery(@Param(\"name\")String netto);", "@Repository\npublic interface UsuarioRepository extends JpaRepository<EUsuario, Long> {\n\t\n\t/**\n\t * Buscar por ID\n\t * \n\t * @param usuarioId\n\t * @return EUsuario\n\t */\n\tpublic EUsuario findById(long usuarioId);\n\t\n\t/**\n\t * Buscar por nome ou parcial\n\t * \n\t * @param nome\n\t * @return List<EUsuario>\n\t */\n\tpublic List<EUsuario> findByNome(String nome);\n\t\n\t/**\n\t * Buscar por login\n\t * \n\t * @param login\n\t * @return EUsuario\n\t */\n\tpublic EUsuario findByLogin(String login);\n\t\n\t/**\n\t * Buscar por Cargo\n\t * \n\t * @param cargo\n\t * @return List<EUsuario>\n\t */\n\tpublic List<EUsuario> findByCargo(String cargo);\n\t\n\t/**\n\t * Buscar por Nivel de Acesso\n\t * \n\t * @param nivelAcesso\n\t * @return List<EUsuario>\n\t */\n\tpublic List<EUsuario> findByNivelAcesso(int nivelAcesso);\n\t\n\t/**\n\t * Executa query no banco\n\t * \n\t * @param query\n\t * @return List<EUsuario>\n\t */\n\t@Query(\"SELECT u FROM EUsuario u WHERE u.nome LIKE :query\")\n\tpublic List<EUsuario> findByQuery(@Param(\"query\") String query);\n\t\n}", "@Override\n\tpublic List<Usuario> usuariosLikeList(String cedula) {\n\t\tList<Usuario> usuarios = (List<Usuario>) getSession().createQuery(\"from Usuario u where u.idCedula like :idCedula \")\n\t\t\t\t.setParameter(\"idCedula\", \"%\"+cedula+\"%\").list();\n\t\treturn usuarios;\n\t}", "@Query(\"SELECT entity FROM Clientes entity WHERE entity.nome like concat('%',coalesce(:search,''),'%') OR entity.negocio like concat('%',coalesce(:search,''),'%') OR entity.sigla like concat('%',coalesce(:search,''),'%') OR entity.status like concat('%',coalesce(:search,''),'%')\")\n public Page<Clientes> generalSearch(@Param(value=\"search\") java.lang.String search, Pageable pageable);", "@Query(\"FROM Job j WHERE j.jobTitle LIKE %:term%\")\n List<Job> searchByJobTitle(@Param(\"term\") String term);", "Condition like(QueryParameter parameter, String pattern);", "public interface ActorRepository extends Neo4jRepository<Actor, Long> {\n\n\t\n\t@Query(\"MATCH (p:Actor) WHERE lower(p.name) CONTAINS lower($name) or lower(p.fullName) CONTAINS lower($name) RETURN p ORDER BY p.name\")\n\tCollection<Actor> findByNameLike(@Param(\"name\") String name);\n\n\t\n\t\n}", "private void buscar (String valor){\n try {\n int f,i;\n conn=App.ConnectionBd.Enlace(conn);\n String sql1=\"Select * from Reserva where idReserva like '%\"+valor+\"%' or tipoReserva like '%\"+valor+\"%';\";\n \n Statement st1=conn.createStatement();\n ResultSet rs1=st1.executeQuery(sql1);\n String datos[]=new String[7];\n f=datostabla.getRowCount();\n if(f>0)\n for(i=0;i<f;i++)\n datostabla.removeRow(0);\n while(rs1.next()) {\n datos[0]=(String)rs1.getString(1);\n datos[1]=(String)rs1.getString(2);\n datos[2]=(String)rs1.getString(3);\n datos[3]=(String)rs1.getString(5);\n datos[4]=(String)rs1.getString(6);\n datos[5]=(String)rs1.getString(7);\n datos[6]=(String)rs1.getString(9);\n datostabla.addRow(datos);\n }\n conn.close();\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Error al buscar datos, verifique porfavor\");\n }\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TurnoRepository extends JpaRepository<Turno, Long> {\n \n@Query(\"select distinct turno from Turno turno where nombre like %:nombre%\")\n Page<Turno> findTurnoByNombre(Pageable pageable, @Param(\"nombre\") String nombre);\n}", "List<Videogioco> retriveByNome(String nome);", "public List<Contato> getContatosByName(String nome) throws SQLException {\n QueryBuilder<Contato, Integer> queryBuilder =\n contatoDao.queryBuilder();\n // the 'password' field must be equal to \"qwerty\"\n queryBuilder.where().like(\"(nome || sobrenome)\", \"%\"+nome+\"%\");\n // prepare our sql statement\n PreparedQuery<Contato> preparedQuery = queryBuilder.prepare();\n // query for all accounts that have \"qwerty\" as a password\n List<Contato> contatos = contatoDao.query(preparedQuery);\n\n return contatos;\n }", "public List<FieEsq51333> listarFieEsq51333(String filtro) {\n\t String consulta = \"select l from FieEsq51333 l where l.numEsq51333 like :nuncerc\";\n\t TypedQuery<FieEsq51333> query = manager.createQuery(consulta, FieEsq51333.class).setMaxResults(10);\n\t query.setParameter(\"nuncerc\", \"%\" +filtro+ \"%\");\t \n\t return query.getResultList();\n\t\t}", "@Override\n\t@Transactional\n\tpublic List<Cliente> getPorNombre(String nombre) {\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<Cliente> client =getCurrentSession().createQuery(\"from Cliente where nombre like '\"+nombre+\"%\"+\"'\"+\"and activo=1\").list();\n\t\treturn client;\n\t}", "List<Coupon> findByTitleContaining(String searchWord);", "public interface OwnerService extends CrudService<Owner, Long>{\n\n Owner findByLastName(String lastName);\n\n // \"^[^a-zA-Z].*\"\n// @Query(\"SELECT o FROM owners o WHERE o.lastName LIKE %?1%\")\n List<Owner> findAllByLastNameLike(String lastName);\n}", "public List<Veterinario> pesquisar(String nomeOuCpf) throws ClassNotFoundException, SQLException{ \n VeterinarioDAO dao = new VeterinarioDAO();\n if (!nomeOuCpf.equals(\"\"))\n return dao.listar(\"(nome = '\" + nomeOuCpf + \"' or cpf = '\" + nomeOuCpf + \"') and ativo = true\");\n else\n return dao.listar(\"ativo = true\");\n }", "@Query(value = \"SELECT * FROM account_details WHERE name ilike concat('%',?1,'%')\"\n ,nativeQuery = true)\n List<Account> readAccountByPattern(String pattern);", "public Cliente[] findWhereNombreComercialEquals(String nombreComercial) throws ClienteDaoException;", "public List<Produto> findByNomeStartingWithIgnoreCaseAndAtivoEquals(String nome, boolean ativo);", "public List<Chef_favorito> findByNomeChefContainingIgnoreCase(String nomePesquisa);", "@Test\n\tpublic void selectFromCourseTable_where() {\n\t\tList arrayList = em.createNamedQuery(\"query_with_where_name_like_call\",Course.class).getResultList();\n\t\tlogger.info(\"\\n\\n>>>>>>> Select c FROM Course c WHERE name like '%call%' -> {}\", arrayList);\n\t}", "public static List<Cancion> selectAll(String pattern) {\n\t\tList<Cancion> result = new ArrayList();\n\n\t\ttry {\n\t\t\tmanager = Connection.connectToMysql();\n\t\t\tmanager.getTransaction().begin();\n\n\t\t\tString q = \"FROM Cancion\";\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tq += \" WHERE nombre LIKE ?\";\n\t\t\t}\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion WHERE nombre LIKE '\" + pattern + \"%'\").getResultList();\n\t\t\t} else {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion\").getResultList();\n\t\t\t}\n\n\t\t\tmanager.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\n\t\treturn result;\n\t}", "public List listaCarneMensalidadesAgrupado(String id_pessoa, String datas) {\n String and = \"\";\n\n if (id_pessoa != null) {\n and = \" AND func_titular_da_pessoa(M.id_beneficiario) IN (\" + id_pessoa + \") \\n \";\n }\n\n// String text\n// = \" -- CarneMensalidadesDao->listaCarneMensalidadesAgrupado(new Pessoa(), new Date()) \\n\\n\"\n// + \" SELECT P.ds_nome AS titular, \\n \"\n// + \" S.matricula, \\n \"\n// + \" S.categoria, \\n \"\n// + \" M.id_pessoa AS id_responsavel, \\n \"\n// + \" sum(nr_valor - nr_desconto_ate_vencimento) AS valor, \\n\"\n// + \" M.dt_vencimento AS vencimento \\n\"\n// + \" FROM fin_movimento AS M \\n\"\n// + \" INNER JOIN pes_pessoa AS P ON P.id = M.id_pessoa \\n\"\n// + \" INNER JOIN pes_pessoa AS B ON B.id = M.id_beneficiario \\n\"\n// + \" LEFT JOIN soc_socios_vw AS S ON S.codsocio = M.id_pessoa \\n\"\n// + \" WHERE is_ativo = true \\n\"\n// + \" AND id_baixa IS NULL \\n\"\n// + \" AND to_char(M.dt_vencimento, 'MM/YYYY') IN (\" + datas + \")\\n\"\n// + \" AND M.id_servicos NOT IN (SELECT id_servicos \\n\"\n// + \" FROM fin_servico_rotina \\n\"\n// + \" WHERE id_rotina = 4 \\n\"\n// + \") \\n\"\n// + and\n// + \" GROUP BY P.ds_nome, \\n\"\n// + \" S.matricula, \\n\"\n// + \" S.categoria, \\n\"\n// + \" M.id_pessoa, \\n\"\n// + \" M.dt_vencimento \\n\"\n// + \" ORDER BY P.ds_nome, \\n\"\n// + \" M.id_pessoa\";\n String queryString = \"\"\n + \"( \\n\"\n + \" -- CarneMensalidadesDao->listaCarneMensalidadesAgrupado(new Pessoa(), new Date()) \\n\"\n + \" \\n\"\n + \" SELECT P.ds_nome AS titular, \\n\"\n + \" S.matricula AS matricula, \\n\"\n + \" S.categoria AS categoria, \\n\"\n + \" M.id_pessoa AS id_responsavel, \\n\"\n + \" sum(nr_valor - nr_desconto_ate_vencimento) AS valor, \\n\"\n + \" M.dt_vencimento AS vencimento, \\n\"\n + \" '' AS servico , \\n\"\n + \" 0 AS quantidade \\n\"\n + \" FROM fin_movimento AS M \\n\"\n + \" INNER JOIN pes_pessoa AS P ON P.id = M.id_pessoa \\n\"\n + \" INNER JOIN pes_pessoa AS B ON B.id = M.id_beneficiario \\n\"\n + \" LEFT JOIN soc_socios_vw AS S ON S.codsocio = M.id_pessoa \\n\"\n + \" WHERE is_ativo = true \\n\"\n + \" AND id_baixa IS NULL \\n\"\n + \" AND to_char(M.dt_vencimento, 'MM/YYYY') IN (\" + datas + \") \\n\"\n + \" AND M.id_servicos NOT IN (SELECT id_servicos \\n\"\n + \" FROM fin_servico_rotina \\n\"\n + \" WHERE id_rotina = 4 \\n\"\n + \") \\n\"\n + and\n + \" GROUP BY P.ds_nome, \\n\"\n + \" S.matricula, \\n\"\n + \" S.categoria, \\n\"\n + \" M.id_pessoa, \\n\"\n + \" M.dt_vencimento \\n\"\n + \") \\n\"\n + \" \\n\"\n + \" \\n\"\n + \"UNION \\n\"\n + \" \\n\"\n + \" \\n\"\n + \" \\n\"\n + \"( \\n\"\n + \" SELECT P.ds_nome AS titular, \\n\"\n + \" S.matricula AS matricula, \\n\"\n + \" S.categoria AS categoria, \\n\"\n + \" M.id_pessoa AS id_responsavel, \\n\"\n + \" sum(nr_valor - nr_desconto_ate_vencimento) AS valor,\\n\"\n + \" '01/01/1900' AS vencimento, \\n\"\n + \" SE.ds_descricao AS servico, \\n\"\n + \" count(*) AS quantidade \\n\"\n + \" FROM fin_movimento AS M \\n\"\n + \" INNER JOIN fin_servicos AS SE ON SE.id = M.id_servicos \\n\"\n + \" INNER JOIN pes_pessoa AS P ON P.id = M.id_pessoa \\n\"\n + \" INNER JOIN pes_pessoa AS B ON B.id = M.id_beneficiario \\n\"\n + \" LEFT JOIN soc_socios_vw AS S ON S.codsocio = M.id_pessoa \\n\"\n + \" WHERE is_ativo = true \\n\"\n + \" AND id_baixa IS NULL \\n\"\n + \" AND to_char(M.dt_vencimento, 'MM/YYYY') IN (\" + datas + \")\\n\"\n + \" AND M.id_servicos NOT IN (SELECT id_servicos \\n\"\n + \" FROM fin_servico_rotina \\n\"\n + \" WHERE id_rotina = 4 \\n\"\n + \") \\n\"\n + and\n + \" GROUP BY P.ds_nome, \\n\"\n + \" S.matricula, \\n\"\n + \" S.categoria, \\n\"\n + \" M.id_pessoa, \\n\"\n + \" SE.ds_descricao\\n\"\n + \") \\n\"\n + \" ORDER BY 1,4,6\";\n try {\n Query query = getEntityManager().createNativeQuery(queryString);\n return query.getResultList();\n } catch (Exception e) {\n e.getMessage();\n }\n return new ArrayList();\n }", "@Repository\npublic interface UserMysqlRepository extends JpaRepository<UserEntity, String> {\n\n @Query(\"select u from UserEntity u where u.name like CONCAT('%',:name,'%') order by u.createdtime\")\n List<UserEntity> findByNameLike(@Param(\"name\") String name);\n\n @Query(\"select u from UserEntity u where u.name like CONCAT('%',:name,'%') order by u.createdtime\")\n Page<UserEntity> findByNameLike(@Param(\"name\") String name, Pageable pageable);\n\n @Query(\"select u from UserEntity u where u.loginName=?1\")\n UserEntity findByLoginName(String loginName);\n}", "@Query(value = \"select * from account_details where name ILIKE concat('%',?1,'%')\"+\n \" or country ILIKE concat('%',?1,'%') or address ILIKE concat('%',?1,'%')\"+\n \" or state ILIKE concat('%',?1,'%')\"+\n \" or city ILIKE concat('%',?1,'%')\",nativeQuery = true)\n List<AccountDetail> retrieveAllBySearchCriteria(String pattern);", "public Institucion buscarInstitucionDeSolicitud(String cod_solicitud){\n\tString sql=\"select * from institucion where cod_institucion='\"+cod_solicitud+\"';\";\n\t\n\treturn db.queryForObject(sql, new InstitucionRowMapper());\n}", "public List<EUsuario> findByNome(String nome);", "public List<EntityClass> cerca(String testoRicerca, String colonnaFiltro){\n CriteriaContainer cc = new CriteriaContainer();\n // SELECT * FROM EntityClass\n cc.query.select(cc.root);\n // SELECT * FROM EntityClass WHERE colonnaFiltro LIKE :testoParam\n ParameterExpression<String> testoParam = cc.builder.parameter(String.class);\n cc.query.where(\n cc.builder.like(cc.root.get(colonnaFiltro), testoParam)\n );\n // Ottengo la lista risultante dalla query\n return getSession().createQuery(cc.query)\n .setParameter(testoParam, \"%\"+testoRicerca+\"%\") // :testoParam -> \"%testoRicerca%\"\n .getResultList();\n }", "@Repository\npublic interface ConductorRepository extends JpaRepository<Conductor, Integer> {\n Conductor findByPhone(String newPhone);\n\n\n @Query(\"select c from Conductor c where (?1 is null or c.realname like ?1)\" +\n \" and (?2 is null or c.phone like ?2)\")\n Page<Conductor> findPage(String name, String phone, Pageable pageable);\n}", "public List<Usuario> buscarPorNombre(String nombre) throws SQLException {\n PreparedStatement preSt = connection.prepareStatement(USUARIOS_POR_NOMBRE);\n preSt.setString(1, \"%\" + nombre + \"%\");\n ResultSet result = preSt.executeQuery();\n\n List<Usuario> usuario = new LinkedList<>();\n\n while (result.next()) {\n usuario.add(new Usuario(\n result.getInt(Usuario.USUARIO_ID_DB_NAME),\n result.getString(Usuario.NOMBRE_DB_NAME),\n result.getString(Usuario.PROFESION_DB_NAME),\n result.getString(Usuario.PASSWORD_DB_NAME)\n ));\n }\n System.out.println(\"Usuarios: \" + usuario.size());\n return usuario;\n }", "public interface CategoriaMaterialData extends JpaRepository<CategoriaMaterial, Integer> {\n List<CategoriaMaterial> findByNomeContaining(String nome);\n}", "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}", "@Query(\"select i from Item i where lower(i.name) like lower(?1)\")\n Page<Item> searchInNames(String namePart, Pageable pageable);", "Optional<Palestra> findByNomePalestra(String nome);", "Optional<Restaurante> findFirstByNomeContaining(String nome);", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface OcupacionRepository extends JpaRepository<Ocupacion, Long> {\n List<Ocupacion> findAllByFuncionAndButacaNotNull(Funcion funcion);\n}", "public List<Cliente> findByNombreCli(String nombreCli);", "List<RespuestaInforme> findByInforme(Informe informe);", "public String recherche() {\n\n listAnnonce = iServiceGestionAnnonce.findByExampleSql( annonce, adresse );\n\n return \"rechercheResultat\";\n\n }", "@Override\r\n public List<Anggota> search(String category, String data) {\r\n List<Anggota> datas = new ArrayList<>();\r\n String query = \"SELECT *FROM Anggota WHERE \" + category + \" \" + \" like '%\" + data + \"%'\";\r\n try {\r\n\r\n PreparedStatement preparedStatement = connection.prepareStatement(query);\r\n ResultSet rs = preparedStatement.executeQuery();\r\n\r\n while (rs.next()) {\r\n Anggota anggota = new Anggota();\r\n anggota.setKdAnggota(rs.getString(1));\r\n anggota.setNmAnggota(rs.getString(2));\r\n anggota.setTelepon(rs.getString(3));\r\n anggota.setAlamat(rs.getString(4));\r\n datas.add(anggota);\r\n }\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(AnggotaDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return datas;\r\n }", "public List<Product> getProductBySearchName(String search) {\r\n List<Product> list = new ArrayList<>();\r\n String query = \"select * from Trungnxhe141261_Product\\n \"\r\n + \"where [name] like ? \";\r\n try {\r\n conn = new DBContext().getConnection();//mo ket noi voi sql\r\n ps = conn.prepareStatement(query);\r\n ps.setString(1, \"%\" + search + \"%\");\r\n rs = ps.executeQuery();\r\n while (rs.next()) {\r\n list.add(new Product(rs.getInt(1),\r\n rs.getString(2),\r\n rs.getString(3),\r\n rs.getDouble(4),\r\n rs.getString(5),\r\n rs.getString(6)));\r\n }\r\n } catch (Exception e) {\r\n }\r\n return list;\r\n }", "@Query(\"SELECT i FROM Item i WHERE \"+\n \"upper(i.name) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.number) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.waybill) LIKE concat('%',upper(?1),'%') OR \"+\n \"upper(i.factory) LIKE concat('%',upper(?1),'%')\")\n Page<Item> filterAll(String substring, Pageable pageable);", "public NominaPuesto[] findWhereNombreEquals(String nombre) throws NominaPuestoDaoException;", "@Query(value = \"SELECT p \" +\n \"FROM Caregiver p \" +\n \"WHERE p.name = :name \")\n Optional<Caregiver> findSeniorsByName(@Param(\"name\") String name);", "public Assunto buscar(String nome){\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto a WHERE a.nome =:nome\");\r\n query.setParameter(\"nome\", nome);\r\n \r\n List<Assunto> assunto = query.getResultList();\r\n if(assunto != null && assunto.size() > 0)\r\n return assunto.get(0);\r\n return null;\r\n }", "@Query(value = \"SELECT concat(e.nombreempleado,' ',e.apellidoempleado),p.nombrepuesto,ca.duracionhoracapacitacion,ca.nombrecapacitacion,\\n\" +\n\"ca.departamentoresponsable,DATE_FORMAT(ca.fechacapacitaciondesde, '%d/%m/%Y'), DATE_FORMAT(ca.fechacapacitacionhasta, '%d/%m/%Y') from empleado e \\n\" +\n\"\\n\" +\n\" inner join puesto p on e.codigopuesto=p.codigopuesto \\n\" +\n\" inner join empleadocapacitacion ec on e.codigoempleado=ec.codigoempleado\\n\" +\n\" INNER JOIN capacitacion ca on ec.codigocapacitacion=ca.codigocapacitacion\" \n+ \" where \" \n+ \" ca.fechacapacitaciondesde >= STR_TO_DATE(:FINICIAL, '%d/%m/%Y') \" \n+ \" and ca.fechacapacitaciondesde <= STR_TO_DATE(:FFINAL, '%d/%m/%Y') \", \n nativeQuery = true)\n\n public List<Object[]> findByCapacitacionesR(@Param(\"FINICIAL\") String finicial, \n @Param(\"FFINAL\") String ffinal);", "public static List<Cancion> selectAllH2(String pattern) {\n\t\tList<Cancion> result = new ArrayList();\n\n\t\ttry {\n\t\t\tmanager = Connection.connectToH2();\n\t\t\tmanager.getTransaction().begin();\n\n\t\t\tString q = \"FROM Cancion\";\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tq += \" WHERE nombre LIKE ?\";\n\t\t\t}\n\n\t\t\tif (pattern.length() > 0) {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion WHERE nombre LIKE '\" + pattern + \"%'\").getResultList();\n\t\t\t} else {\n\t\t\t\tresult = manager.createQuery(\"FROM Cancion\").getResultList();\n\t\t\t}\n\n\t\t\tmanager.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\n\t\treturn result;\n\t}", "public void filtrarTablaNomProducto(JTable table, String filtro) throws Conexion.DataBaseException {\n String[] titulos = {\"Id Producto\", \"Nombre Producto\", \"Tipo\", \"Cantidad en Stock\", \"Descripción\", \"Proveedor\", \"Precio\"};\n String[] registros = new String[7];\n DefaultTableModel model = new DefaultTableModel(null, titulos);\n String sql = \"SELECT * FROM Productos WHERE name LIKE '%\" + filtro + \"%'\";\n try {\n con = conectar.getConnexion();\n ps = con.prepareStatement(sql);\n rs = ps.executeQuery();\n while (rs.next()) {\n registros[0] = rs.getString(\"idProducto\"); //como se llama el campo en la base de datos\n registros[1] = rs.getString(\"name\");\n registros[2] = rs.getString(\"type\");\n registros[3] = rs.getString(\"quantity\");\n registros[4] = rs.getString(\"description\");\n registros[5] = rs.getString(\"idProveedor\");\n registros[6] = rs.getString(\"price\");\n model.addRow(registros);\n }\n table.setModel(model);\n } catch (SQLException e) {\n System.out.println(\"Error al buscar los datos: \" + e.getMessage());\n }\n }", "public T findByName(String nume) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet rs = null;\n\t\tString query = createSelectQuery(\"nume\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setString(1, nume);\n\t\t\trs = st.executeQuery();\n\t\t\treturn createObjects(rs).get(0);\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:findBy\" + e.getMessage());\n\t\t}\n\t\treturn null;\n\t}", "public List<Produto> consultarProdutoPorParteNome(String nome) {\n\t\t\tQuery q = manager.query();\n\t\t\tq.constrain(Produto.class);\n\t\t\tq.descend(\"nome\").constrain(nome).like();\n\t\t\tList<Produto> result = q.execute(); \n\t\t\treturn result;\n\t\t}", "@Test\n public void sucheSaeleBezT() throws Exception {\n System.out.println(\"sucheSaele nach Bezeichnung\");\n bezeichnung = \"Halle 1\";\n typ = \"\";\n plaetzeMin = null;\n ort = null;\n SaalDAO dao=DAOFactory.getSaalDAO();\n query = \"bezeichnung like '%\" + bezeichnung + \"%' \";\n explist = dao.find(query);\n System.out.println(query);\n List<Saal> result = SaalHelper.sucheSaele(bezeichnung, typ, plaetzeMin, ort);\n assertEquals(explist, result);\n \n }", "public void ProductsSearch(DefaultTableModel tableModel, String parameter){\n connect();\n ResultSet result = null;\n tableModel.setRowCount(0);\n tableModel.setColumnCount(0);\n String sql = \"SELECT id_producto as Id, descripcion, presentacion, cantidad, precio, subtotal, proveedor FROM \"+\n \"productos WHERE descripcion LIKE ? ORDER BY descripcion\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setString(1, \"%\" + parameter + \"%\");\n result = ps.executeQuery();\n if(result != null){\n int columnNumber = result.getMetaData().getColumnCount();\n for(int i = 1; i < columnNumber; i++){\n tableModel.addColumn(result.getMetaData().getColumnName(i));\n }\n while(result.next()){\n Object []obj = new Object[columnNumber];\n for(int i = 1; i < columnNumber; i++){\n obj[i-1] = result.getObject(i);\n }\n tableModel.addRow(obj);\n }\n }\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n } \n }", "public List searchCategoryName(categoryvo categoryvo1) {\nList l1=new ArrayList();\r\n\t\t\r\n\t\ttry{\r\n\t\tSessionFactory sessionFactory=new Configuration().configure().buildSessionFactory();\r\n\t\tSession session =sessionFactory.openSession();\r\n\t\t\r\n\t\tQuery q=session.createQuery(\"from categoryvo where cat_id='\"+categoryvo1.getCat_id()+\"'\");\r\n\t\tl1=q.list();\r\n\t\t\r\n\t\tSystem.out.println(\"done\");\r\n\t\t\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn l1;\r\n\r\n\t}", "@Repository\npublic interface IUserRepository extends JpaRepository<UserOB, Long> {\n\n @Query(\"SELECT u FROM UserOB u WHERE u.name = ?1 AND u.lastName = ?2\")\n List<UserOB> findByFullName(String aName, String aLastName);\n\n @Query(\"SELECT u FROM UserOB u WHERE u.email = ?1\")\n UserOB findByEmail(String email);\n\n @Query(\"SELECT u FROM UserOB u WHERE u.company.id = ?1\")\n List<UserOB> findByCompanyId(Long aId);\n\n @Query(\"SELECT u FROM UserOB u WHERE u.typUzytkownika =?1\")\n List<UserOB> findByUserType(ETypUzytkownika aType);\n\n}" ]
[ "0.7450743", "0.74501306", "0.7443945", "0.73295116", "0.7274666", "0.7222256", "0.70845044", "0.70808786", "0.7032206", "0.7015899", "0.69663894", "0.67579144", "0.6747933", "0.6723514", "0.6723283", "0.66963863", "0.6690228", "0.66744", "0.65039325", "0.6383624", "0.6373617", "0.6368999", "0.63498706", "0.63482153", "0.63471895", "0.63188297", "0.63069534", "0.62802786", "0.627699", "0.62767595", "0.6261431", "0.6253213", "0.62492204", "0.62460935", "0.6228061", "0.62012184", "0.62003034", "0.61718225", "0.6168567", "0.6142923", "0.6124477", "0.61223096", "0.61184955", "0.61046696", "0.60988986", "0.6072837", "0.6046592", "0.6035528", "0.6035509", "0.60195625", "0.6008539", "0.60083", "0.60009974", "0.60006404", "0.5990878", "0.59804386", "0.5979593", "0.5977262", "0.59716743", "0.5961912", "0.5952638", "0.59381354", "0.59322655", "0.59275764", "0.5908446", "0.59027267", "0.5902441", "0.5900963", "0.58763653", "0.58642197", "0.58609885", "0.5843339", "0.5835331", "0.5834165", "0.58233136", "0.5814695", "0.58086354", "0.5807898", "0.58074373", "0.5781059", "0.57756424", "0.5773588", "0.57682747", "0.5761689", "0.5756398", "0.5750911", "0.574738", "0.57442176", "0.57341963", "0.57322556", "0.5730031", "0.5727711", "0.5727175", "0.57249975", "0.5724645", "0.5721342", "0.57176894", "0.57168025", "0.570961", "0.5706597" ]
0.7687959
0
Created by brucexia on 20170105.
public interface FaceInterface { List<PointF> getFacePoints(); List<PointF> getLeftEyePoints(); List<PointF> getRightEyePoints(); public List<PointF> transformPoints(DrawingViewConfig config, boolean mirrorPoints); public RectF getEyesRect(); public Emotions getEmotions(); Emojis getEmojis(); Appearance getAppearance(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "private void init() {\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\tprotected void interr() {\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "private void strin() {\n\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@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 public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void kk12() {\n\n\t}", "public void gored() {\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}", "@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 public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo4359a() {\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 }", "@Override\n public void memoria() {\n \n }", "@Override\n public void init() {}", "@Override\r\n\tpublic void init() {}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo6081a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void init() {\n\t}", "private void m50366E() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "Constructor() {\r\n\t\t \r\n\t }", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n public void init() {\n }" ]
[ "0.60040426", "0.59361416", "0.5856797", "0.58476067", "0.5810809", "0.5755518", "0.5755518", "0.5735961", "0.5732784", "0.5664898", "0.56545466", "0.56456393", "0.56419367", "0.56374764", "0.56243706", "0.56161445", "0.56021434", "0.5602091", "0.5589305", "0.5580785", "0.5576546", "0.55740577", "0.55740577", "0.55740577", "0.55740577", "0.55740577", "0.5571912", "0.556707", "0.55570394", "0.55520546", "0.5548658", "0.5546636", "0.550296", "0.5502012", "0.54947186", "0.5483696", "0.5483696", "0.5475547", "0.5463341", "0.5463341", "0.5463341", "0.54626536", "0.5461877", "0.54493856", "0.54493856", "0.54493856", "0.5443684", "0.5443684", "0.5443684", "0.54385126", "0.54385126", "0.543694", "0.54364574", "0.5429561", "0.5429561", "0.5429561", "0.5429561", "0.5429561", "0.5429561", "0.5429561", "0.5421416", "0.54198563", "0.54147583", "0.54143393", "0.5408578", "0.5397253", "0.53839743", "0.5383896", "0.53792775", "0.53792775", "0.5374241", "0.5367971", "0.53676724", "0.53653544", "0.5362551", "0.5362155", "0.5362084", "0.53597367", "0.53597367", "0.53597367", "0.53597367", "0.53597367", "0.53597367", "0.5359208", "0.5354852", "0.53469676", "0.5337952", "0.5333144", "0.53331137", "0.53299725", "0.5319685", "0.5315009", "0.53008044", "0.5286563", "0.52514046", "0.52467", "0.5236799", "0.52363837", "0.52352655", "0.52284384", "0.5227121" ]
0.0
-1
In host1 > vm1 and vm2 In host2 > vm3 and vm4
public static void restoreDefaultProperties() { results = new HashMap<String, Map<String, Object>>(); { Map<String, Object> host1 = new HashMap<String, Object>(); results.put(HOST1_URL, host1); host1.put(P_COMMON_ID.toString(), HOST1_ID); host1.put(P_HOST_VM_ID.toString(VM1_ID), VM1_ID); host1.put(P_HOST_VM_MAC.toString(VM1_ID, 0), VM1_MAC); host1.put(P_HOST_VM_ID.toString(VM2_ID), VM2_ID); host1.put(P_HOST_VM_MAC.toString(VM2_ID, 0), VM2_MAC); host1.put(VMPLister.VMS_KEY, VM1_ID + VMPLister.VMS_SEPARATOR + VM2_ID); host1.put(P_DEBUG_NUMBER_OF_ERRORS.toString(), 1); } { Map<String, Object> host2 = new HashMap<String, Object>(); results.put(HOST2_URL, host2); host2.put(P_COMMON_ID.toString(), HOST2_ID); host2.put(P_HOST_VM_ID.toString(VM3_ID), VM3_ID); host2.put(P_HOST_VM_MAC.toString(VM3_ID, 0), VM3_MAC); host2.put(P_HOST_VM_ID.toString(VM4_ID), VM4_ID); host2.put(P_HOST_VM_MAC.toString(VM4_ID, 0), VM4_MAC); host2.put(VMPLister.VMS_KEY, VM3_ID + VMPLister.VMS_SEPARATOR + VM4_ID); host2.put(P_DEBUG_NUMBER_OF_ERRORS.toString(), 1); } { Map<String, Object> vm1 = new HashMap<String, Object>(); results.put(VM1_URL, vm1); vm1.put(P_COMMON_ID.toString(), VM1_ID); vm1.put(P_TEST_PROP_FROM_VM_SIGAR.toString(), VM1_PROP_VM_SIGAR); vm1.put(P_COMMON_NET_MAC.toString(0), VM1_MAC); vm1.put(P_SIGAR_JMX_URL.toString(), VM1_URL); vm1.put(P_DEBUG_NUMBER_OF_ERRORS.toString(), 1); } { Map<String, Object> vm2 = new HashMap<String, Object>(); results.put(VM2_URL, vm2); vm2.put(P_COMMON_ID.toString(), VM2_ID); vm2.put(P_TEST_PROP_FROM_VM_SIGAR.toString(), VM2_PROP_VM_SIGAR); vm2.put(P_COMMON_NET_MAC.toString(0), VM2_MAC); vm2.put(P_SIGAR_JMX_URL.toString(), VM2_URL); vm2.put(P_DEBUG_NUMBER_OF_ERRORS.toString(), 1); } { Map<String, Object> vm3 = new HashMap<String, Object>(); results.put(VM3_URL, vm3); vm3.put(P_COMMON_ID.toString(), VM3_ID); vm3.put(P_COMMON_NET_MAC.toString(0), VM3_MAC); vm3.put(P_SIGAR_JMX_URL.toString(), VM3_URL); vm3.put(P_DEBUG_NUMBER_OF_ERRORS.toString(), 1); } { Map<String, Object> vm4 = new HashMap<String, Object>(); results.put(VM4_URL, vm4); vm4.put(P_COMMON_ID.toString(), VM4_ID); vm4.put(P_COMMON_NET_MAC.toString(0), VM4_MAC); vm4.put(P_SIGAR_JMX_URL.toString(), VM4_URL); vm4.put(P_DEBUG_NUMBER_OF_ERRORS.toString(), 1); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testParallelPropagationLoopBack3SitesNtoNTopologyPutFromOneDS() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n Integer tkPort = vm2.invoke(() -> WANTestBase.createFirstRemoteLocator(3, lnPort));\n\n createCacheInVMs(lnPort, vm3, vm6);\n createCacheInVMs(nyPort, vm4, vm7);\n createCacheInVMs(tkPort, vm5);\n vm3.invoke(WANTestBase::createReceiver);\n vm4.invoke(WANTestBase::createReceiver);\n vm5.invoke(WANTestBase::createReceiver);\n\n // site1\n vm3.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln1\", 2, true, 100, 10, false, false, null, true));\n\n vm3.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln2\", 3, true, 100, 10, false, false, null, true));\n\n // site2\n vm4.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny1\", 1, true, 100, 10, false, false, null, true));\n\n vm4.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny2\", 3, true, 100, 10, false, false, null, true));\n\n // site3\n vm5.invoke(() -> WANTestBase.createSender(\"tk1\", 1, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"tk2\", 2, true, 100, 10, false, false, null, true));\n\n // create PR\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln1,ln2\", 0,\n 1, isOffHeap()));\n\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny1,ny2\", 0,\n 1, isOffHeap()));\n\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"tk1,tk2\", 0,\n 1, isOffHeap()));\n\n // start all the senders\n vm3.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.startSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.startSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.startSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.startSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.startSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.startSender(\"tk2\"));\n\n // pause senders on all the sites\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk1\"));\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk2\"));\n\n // this is required since sender pause doesn't take effect immediately\n Wait.pause(1000);\n\n // do puts on site1\n vm3.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site1 and site3\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln1\", 100));\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln2\", 100));\n\n // resume sender (from site1 to site2) on site1\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln1\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as the events from site1 should not go back to site1\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as events from site1 will reach site3 directly..site2 need not send to\n // site3 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // do more puts on site3\n vm5.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n\n // resume sender (from site3 to site2) on site3\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk2\"));\n\n // validate region size on site2\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // verify queue size on site2 (sender 2 to 3)\n // should remain at 0 as the events from site3 should not go back to site3\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny2\", 0));\n\n // verify queue size on site2 (sender 2 to 1)\n // should remain at 0 as events from site3 will reach site1 directly..site2 need not send to\n // site1 again\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ny1\", 0));\n\n // resume all senders\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln2\"));\n\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm4.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny1\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny2\"));\n\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk1\"));\n\n // validate region size on all sites\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }", "@Override\n public boolean allocateHostForVm(Vm vm) {\n\n Collections.sort(this.<Host>getHostList(), new Comparator<Host>() {\n @Override\n public int compare(Host h1, Host h2) {\n // -1 - less than, 1 - greater than, 0 - equal, all inversed for descending\n return (h1.getMaxAvailableMips() + h1.getRam()) > (h2.getMaxAvailableMips() + h2.getRam()) ? -1 : ((h1.getMaxAvailableMips() + h1.getRam()) < (h2.getMaxAvailableMips() + h2.getRam()) ? 1 : 0);\n }\n });\n\n for (Host h : getHostList()) { // allocate the vm within the first host with enough resources\n if (h.vmCreate(vm)) {\n this.hoster.put(vm.getUid(), h);\n return true;\n }\n }\n return false;\n }", "boolean canHostVirtualMachine(VirtualMachine vm) {\n return getLeftoverCPU().compareTo(vm.getCPU()) >= 0 &&\n getLeftoverMemory().compareTo(vm.getMemory()) >= 0 &&\n vm.canRunInPhysicalMachine(pm) &&\n (!vm.isAntiColocatable() ||\n !mapped_anti_coloc_job_ids.contains(new Integer(vm.getJobID())));\n }", "@Override\r\n public boolean isSatisfied(Configuration cfg) {\r\n Set<Node> firstNodes = new HashSet<Node>();\r\n Set<Node> secondNodes = new HashSet<Node>();\r\n if (getFirstSet().size() == 0 || getSecondSet().size() == 0) {\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Some sets of virtual machines are empty\");\r\n return false;\r\n }\r\n\r\n for (VirtualMachine vm : getFirstSet()) {\r\n if (cfg.isRunning(vm)) {\r\n firstNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n for (VirtualMachine vm : getSecondSet()) {\r\n if (cfg.isRunning(vm)) {\r\n secondNodes.add(cfg.getLocation(vm));\r\n }\r\n }\r\n\r\n for (Node n : firstNodes) {\r\n if (secondNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(firstNodes);\r\n ns.retainAll(secondNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n for (Node n : secondNodes) {\r\n if (firstNodes.contains(n)) {\r\n \tManagedElementList<Node> ns = new SimpleManagedElementList<Node>();\r\n ns.addAll(secondNodes);\r\n ns.retainAll(firstNodes);\r\n //FIXME debug log VJob.logger.error(this.toString() + \": Nodes host VMs of the two groups: \" + ns);\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "@Override\n @Test(description = \"PR#489924 : \"\n + \"1. create a dvs and 2 dvpgs and join 1 host\\n\"\n + \"2. Disconnect the host from VC\\n\"\n + \"3. connect to the host and invoke the HostDvsManager\"\n + \" API to do the following\\n\"\n + \" a. change the name of the dvpg1\\n\"\n + \" b. delete the dvpg2\\n\" + \" c. create a bogus dvpg\\n3\"\n + \"4. Reconnect the host and wait in a loop and read the\"\n + \" dvpg info from host HostDvsManager every 10 sec.\\n\"\n + \" when all of below become true, exit the loop:\\n\"\n + \" a. dvpg1 name is reverted\\n\"\n + \" b. dvpg2 is restored\\n\" + \" c. dvpg3 is deleted\\n\"\n + \"\")\n public void test()\n throws Exception\n {\n log.info(\"Test Begin:\");\n boolean status = false;\n DVSConfigSpec configSpec = null;\n HostNetworkConfig[] hostNetworkConfig = null;\n DistributedVirtualSwitchHostMemberConfigSpec hostMember = null;\n DistributedVirtualSwitchHostMemberPnicBacking pnicBacking = null;\n DistributedVirtualSwitchProductSpec productSpec = null;\n int timeout = TestConstants.MAX_WAIT_CONNECT_TIMEOUT;\n\n configSpec = new DVSConfigSpec();\n configSpec.setConfigVersion(\"\");\n configSpec.setName(this.getTestId() + 1);\n configSpec.setNumStandalonePorts(5);\n hostMember = new DistributedVirtualSwitchHostMemberConfigSpec();\n pnicBacking = new DistributedVirtualSwitchHostMemberPnicBacking();\n pnicBacking.getPnicSpec().clear();\n pnicBacking.getPnicSpec().addAll(com.vmware.vcqa.util.TestUtil.arrayToVector(new DistributedVirtualSwitchHostMemberPnicSpec[] {}));\n hostMember.setBacking(pnicBacking);\n hostMember.setOperation(TestConstants.CONFIG_SPEC_ADD);\n hostMember.setHost(this.hostMor);\n configSpec.getHost().clear();\n configSpec.getHost().addAll(com.vmware.vcqa.util.TestUtil.arrayToVector(new DistributedVirtualSwitchHostMemberConfigSpec[] { hostMember }));\n if (this.hostMor != null\n && (hostVersion.equalsIgnoreCase(VersionConstants.ESX400) || hostVersion.equalsIgnoreCase(VersionConstants.EESX400))) {\n log.info(\"Got \" + hostVersion + \" host\");\n log.info(\"Creating product spec for \" + hostVersion\n + \" host\");\n productSpec = DVSUtil.getProductSpec(connectAnchor,\n DVSTestConstants.VDS_VERSION_40);\n Assert.assertNotNull(productSpec,\n \"Successfully obtained the productSpec for \"\n + DVSTestConstants.VDS_VERSION_40 + \" version\",\n \"Failed to get productSpec for \"\n + DVSTestConstants.VDS_VERSION_40 + \" version\");\n }\n\n this.dvsMor = DVSUtil.createDVSFromCreateSpec(connectAnchor,\n DVSUtil.createDVSCreateSpec(configSpec, productSpec, null));\n if (this.dvsMor != null) {\n log.info(\"Successfully created the DVS \" + this.getTestId());\n hostName = this.ihs.getHostName(hostMor);\n\n if (this.ins.refresh(this.nsMor)) {\n log.info(\"Refreshed the network system of the host\");\n if (this.iDVS.validateDVSConfigSpec(this.dvsMor, configSpec,\n null)) {\n log.info(\"Successfully validated the DVS config spec\");\n hostNetworkConfig = this.iDVS.getHostNetworkConfigMigrateToDVS(\n this.dvsMor, this.hostMor);\n if (hostNetworkConfig != null\n && hostNetworkConfig.length == 2\n && hostNetworkConfig[0] != null\n && hostNetworkConfig[1] != null) {\n log.info(\"Successfully retrieved the original and the \"\n + \"updated network config of the host\");\n this.originalNetworkConfig = hostNetworkConfig[1];\n status = this.ins.updateNetworkConfig(this.nsMor,\n hostNetworkConfig[0],\n TestConstants.CHANGEMODE_MODIFY);\n if (status) {\n log.info(\"Successfully updated the host network config\");\n pgMor = addPg(ephemeral, ephemeral + \"_1\");\n origSpec1 = this.iDVPG.getConfigSpec(this.pgMor);\n Assert.assertNotNull(pgMor, \"Failed to add portgroup \"\n + early);\n this.portgroupKey = this.iDVPG.getKey(pgMor);\n log.info(\"portgroupKey \" + portgroupKey);\n\n pgMor1 = addPg(ephemeral, ephemeral + \"_2\");\n origSpec2 = this.iDVPG.getConfigSpec(this.pgMor1);\n Assert.assertNotNull(pgMor1, \"Failed to add portgroup \"\n + ephemeral);\n this.portgroupKey1 = this.iDVPG.getKey(pgMor1);\n log.info(\"portgroupKey \" + portgroupKey1);\n HostProxySwitchConfig originalHostProxySwitchConfig = this.iDVS.getDVSVswitchProxyOnHost(\n dvsMor, hostMor);\n\n dvSwitchUuid = originalHostProxySwitchConfig.getUuid();\n if (status && this.ihs.isHostConnected(this.hostMor)\n && this.ihs.disconnectHost(hostMor)) {\n status =\n performOperationsOnhostd(hostName,\n portgroupKey, portgroupKey1,\n origSpec1, origSpec2);\n } else {\n status = false;\n log.error(\"Can not execute the remote command on the\"\n + \" host \" + this.hostName);\n }\n\n } else {\n status = false;\n log.error(\"Can not update the host network config\");\n }\n } else {\n status = false;\n log.error(\"Can not retrieve the original and the updated \"\n + \"network config\");\n }\n } else {\n status = false;\n log.error(\"The config spec does not match\");\n }\n } else {\n status = false;\n log.error(\"Can not refresh the network system of the host\");\n }\n\n } else {\n status = false;\n log.error(\"Can not create the DVS \" + this.getTestId());\n }\n\n\n assertTrue(status, \"Test Failed\");\n }", "@Test\n public void testParallelPropagationLoopBack3Sites() {\n // Create locators\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n Integer tkPort = vm2.invoke(() -> WANTestBase.createFirstRemoteLocator(3, lnPort));\n\n // create cache and receivers on all the 3 sites\n createCacheInVMs(lnPort, vm3, vm6);\n createReceiverInVMs(vm3, vm6);\n createCacheInVMs(nyPort, vm4, vm7);\n createReceiverInVMs(vm4, vm7);\n createCacheInVMs(tkPort, vm5);\n createReceiverInVMs(vm5);\n\n\n // create senders on all the 3 sites\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 3, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny\", 3, true, 100, 10, false, false, null, true));\n\n vm5.invoke(() -> WANTestBase.createSender(\"tk\", 1, true, 100, 10, false, false, null, true));\n\n // create PR on the 3 sites\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"tk\", 0, 100,\n isOffHeap()));\n\n // start senders on all the sites\n startSenderInVMs(\"ln\", vm3, vm6);\n\n startSenderInVMs(\"ny\", vm4, vm7);\n\n vm5.invoke(() -> WANTestBase.startSender(\"tk\"));\n\n // pause senders on site1 and site3. Site2 has the sender running to pass along events\n vm3.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n\n vm5.invoke(() -> WANTestBase.pauseSender(\"tk\"));\n\n // do puts on site1\n vm3.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n\n // do more puts on site3\n vm5.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n\n // verify queue size on site1 and site3\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n vm5.invoke(() -> WANTestBase.verifyQueueSize(\"tk\", 100));\n\n // resume sender on site1 so that events reach site2 and from there to site3\n vm3.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm6.invoke(() -> waitForSenderRunningState(\"ln\"));\n vm3.invoke(() -> waitForSenderRunningState(\"ln\"));\n\n // validate region size on site2 (should have 100) and site3 (should have 200)\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // verify queue size remains same on site3 which means event loopback did not happen\n // this means events coming from site1 are not enqueued back into the sender\n vm5.invoke(() -> WANTestBase.verifyQueueSize(\"tk\", 100));\n\n // resume sender on site3\n vm5.invoke(() -> WANTestBase.resumeSender(\"tk\"));\n vm5.invoke(() -> waitForSenderRunningState(\"tk\"));\n\n // validate region size\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }", "@Override\n @BeforeMethod(alwaysRun=true)\n public boolean testSetUp()\n throws Exception\n {\n ifolder = new Folder(connectAnchor);\n idvs = new DistributedVirtualSwitch(connectAnchor);\n ihs = new HostSystem(connectAnchor);\n\n // get a standalone hostmors\n // We need at at least 2 hostmors\n hostMors = ihs.getAllHosts(VersionConstants.ESX4x, HostSystemConnectionState.CONNECTED);\n authentication = new AuthorizationManager(connectAnchor);\n Assert.assertTrue(hostMors.size() >= 2, \"Unable to find two hosts\");\n\n Set<ManagedObjectReference> hostSet = hostMors.keySet();\n Iterator<ManagedObjectReference> hostIterator = hostSet.iterator();\n if (hostIterator.hasNext()) {\n hostMor1 = hostIterator.next();\n srcHostProfile1 = NetworkResourcePoolHelper.extractHostConfigSpec(\n connectAnchor, ProfileConstants.SRC_PROFILE + getTestId(),\n hostMor1);\n }\n if (hostIterator.hasNext()) {\n hostMor2 = hostIterator.next();\n srcHostProfile2 = NetworkResourcePoolHelper.extractHostConfigSpec(\n connectAnchor, ProfileConstants.SRC_PROFILE + getTestId()\n + \"-1\", hostMor2);\n }\n\n // create the dvs\n dvsMor = ifolder.createDistributedVirtualSwitch(\"dvs\",\n DVSTestConstants.VDS_VERSION_41);\n Assert.assertNotNull(dvsMor, \"DVS created\", \"DVS not created\");\n\n // enable netiorm\n Assert.assertTrue(idvs.enableNetworkResourceManagement(dvsMor, true),\n \"Netiorm not enabled\");\n\n Assert.assertTrue(NetworkResourcePoolHelper.isNrpEnabled(connectAnchor,\n dvsMor), \"NRP enabled on the dvs\",\n \"NRP is not enabled on the dvs\");\n\n // Extract the network resource pool related to the vm from the dvs\n nrp = idvs.extractNetworkResourcePool(dvsMor, DVSTestConstants.NRP_VM);\n\n // set the values in the config spec\n setNrpConfigSpec();\n authHelper = new AuthorizationHelper(connectAnchor, getTestId(), false,\n data.getString(TestConstants.TESTINPUT_USERNAME),\n data.getString(TestConstants.TESTINPUT_PASSWORD));\n authHelper.setPermissions(dvsMor, DVSWITCH_RESOURCEMANAGEMENT, testUser,\n false);\n return authHelper.performSecurityTestsSetup(testUser);\n\n }", "boolean getIsVirtHost();", "@Test\n public void testParallelPropagationLoopBack() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n\n // create receiver on site1 and site2\n createCacheInVMs(lnPort, vm2, vm4, vm5);\n vm2.invoke(WANTestBase::createReceiver);\n createCacheInVMs(nyPort, vm3, vm6, vm7);\n vm3.invoke(WANTestBase::createReceiver);\n\n // create senders on site1\n vm2.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm4.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n // create senders on site2\n vm3.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm6.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm7.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n\n // create PR on site1\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 0, 100,\n isOffHeap()));\n\n // create PR on site2\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n vm6.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n vm7.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 0, 100,\n isOffHeap()));\n\n // start sender on site1\n startSenderInVMs(\"ln\", vm2, vm4, vm5);\n\n\n // start sender on site2\n startSenderInVMs(\"ny\", vm3, vm6, vm7);\n\n\n // pause senders on site1\n vm2.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n vm4.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n vm5.invoke(() -> WANTestBase.pauseSender(\"ln\"));\n\n // pause senders on site2\n vm3.invoke(() -> WANTestBase.pauseSender(\"ny\"));\n vm6.invoke(() -> WANTestBase.pauseSender(\"ny\"));\n vm7.invoke(() -> WANTestBase.pauseSender(\"ny\"));\n\n // this is required since sender pause doesn't take effect immediately\n Wait.pause(1000);\n\n // Do 100 puts on site1\n vm2.invoke(() -> WANTestBase.doPuts(getTestMethodName() + \"_PR\", 100));\n // do next 100 puts on site2\n vm3.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 100, 200));\n // verify queue size on both sites\n vm2.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n vm4.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n vm5.invoke(() -> WANTestBase.verifyQueueSize(\"ln\", 100));\n\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm6.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm7.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n\n // resume sender on site1\n vm2.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm4.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n vm5.invoke(() -> WANTestBase.resumeSender(\"ln\"));\n\n // validate events reached site2 from site1\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n\n // on site2, verify queue size again\n // this ensures that loopback is not happening since the queue size is same as before\n // the event coming from site1 are not enqueued again\n vm3.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm6.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n vm7.invoke(() -> WANTestBase.verifyQueueSize(\"ny\", 100));\n\n // resume sender on site2\n vm3.invoke(() -> WANTestBase.resumeSender(\"ny\"));\n vm6.invoke(() -> WANTestBase.resumeSender(\"ny\"));\n vm7.invoke(() -> WANTestBase.resumeSender(\"ny\"));\n\n // validate region size on both the sites\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 200));\n }", "@Test\n public void testGIIFromSecondaryWhenDSMDetectsServerLive() throws Exception {\n server1.invoke(HAInterestTestCase::closeCache);\n server2.invoke(HAInterestTestCase::closeCache);\n server3.invoke(HAInterestTestCase::closeCache);\n\n PORT1 = server1.invoke(HAInterestTestCase::createServerCacheWithLocalRegion);\n PORT2 = server2.invoke(HAInterestTestCase::createServerCacheWithLocalRegion);\n PORT3 = server3.invoke(HAInterestTestCase::createServerCacheWithLocalRegion);\n\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n server3.invoke(HAInterestTestCase::createEntriesK1andK2);\n\n createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));\n\n VM backup1 = getBackupVM();\n VM backup2 = getBackupVM(backup1);\n backup1.invoke(HAInterestTestCase::stopServer);\n backup2.invoke(HAInterestTestCase::stopServer);\n verifyDeadAndLiveServers(2, 1);\n registerK1AndK2();\n verifyRefreshedEntriesFromServer();\n backup1.invoke(HAInterestTestCase::putK1andK2);\n backup1.invoke(HAInterestTestCase::startServer);\n verifyDeadAndLiveServers(1, 2);\n verifyRefreshedEntriesFromServer();\n }", "public void populateSwitchTenantMap(Server3 server){\n\n\t\tBridge3 bridge;\n\t\tInterfaces3 interfaces;\n\t\tIterator<Bridge3> iteratorBridge = server.getOpenVSwitch().getArrayListBridge().iterator();\n\t\t//Iterate in all bridges of the server to collect the proper information of the bridge\n\t\twhile(iteratorBridge.hasNext()){\n\t\t\tbridge = iteratorBridge.next();\n\t\t\t//Verify if the brigde name is the one configured to host all the VMs. In this version, all VMs have to be hosted \n\t\t\tif(bridge.getName().compareTo(server.getBridgeName())==0){\n\t\t\t\tIterator<Interfaces3> iteratorInterfaces = bridge.getArrayListInterfaces().iterator();\n\t\t\t\t//Iterate in all interfaces of the configured bridge to get all necessary information to populate the structures \n\t\t\t\twhile(iteratorInterfaces.hasNext()){\n\t\t\t\t\tinterfaces = iteratorInterfaces.next();\n\t\t\t\t\tif(interfaces.getOfport() != null && server != null && server.getSw() != null && server.getSw().getId() != null &&\n\t\t\t\t\t\t\tthis.environmentOfServers.getHostLocationHostMap().get(new HostLocation(server.getSw().getId(), interfaces.getOfport())) != null &&\n\t\t\t\t\t\t\tthis.environmentOfServers.getHostLocationHostMap().get(new HostLocation(server.getSw().getId(), interfaces.getOfport())).getIpAddress() != null){\n\t\t\t\t\t\tthis.addToPortMap(server.getSw(), interfaces.getVmsMacAddress(), VlanVid.ofVlan(0), interfaces.getOfport(), \n\t\t\t\t\t\t\t\tthis.environmentOfServers.getHostLocationHostMap().get(new HostLocation(server.getSw().getId(), interfaces.getOfport())).getIpAddress());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void helloVM()\n {\n \ttry {\n\n\t\t\t\n\t\t\tVirtualMachineConfigInfo vminfo = vm.getConfig();\n\t\t\tVirtualMachineCapability vmc = vm.getCapability();\n\t\t\tVirtualMachineRuntimeInfo vmri = vm.getRuntime();\n\t\t\tVirtualMachineSummary vmsum = vm.getSummary();\n\n\t\t\t\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\t\t\tSystem.out.println(\"VM Information : \");\n\t\t\t\n\t\t\tSystem.out.println(\"VM Name: \" + vminfo.getName());\n\t\t\tSystem.out.println(\"VM OS: \" + vminfo.getGuestFullName());\n\t\t\tSystem.out.println(\"VM ID: \" + vminfo.getGuestId());\n\t\t\tSystem.out.println(\"VM Guest IP Address is \" +vm.getGuest().getIpAddress());\n\t\t\t\n\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\t\t\tSystem.out.println(\"Resource Pool Informtion : \");\n\t\t\t\n\t\t\tSystem.out.println(\"Resource pool: \" +vm.getResourcePool());\n\t\t\t\n\t\t\tSystem.out.println(\"VM Parent: \" +vm.getParent());\n\t\t\t//System.out.println(\"VM Values: \" +vm.getValues());\n\t\t\tSystem.out.println(\"Multiple snapshot supported: \"\t+ vmc.isMultipleSnapshotsSupported());\n\t\t\tSystem.out.println(\"Powered Off snapshot supported: \"+vmc.isPoweredOffSnapshotsSupported());\n\t\t\tSystem.out.println(\"Connection State: \" + vmri.getConnectionState());\n\t\t\tSystem.out.println(\"Power State: \" + vmri.getPowerState());\n\t\t\t\n\n\t\t\t//CPU Statistics\n\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\t\t\tSystem.out.println(\"CPU and Memory Statistics\" );\n\t\t\t\n\t\t\tSystem.out.println(\"CPU Usage: \" +vmsum.getQuickStats().getOverallCpuUsage());\n\t\t\tSystem.out.println(\"Max CPU Usage: \" + vmri.getMaxCpuUsage());\n\t\t\tSystem.out.println(\"Memory Usage: \"+vmsum.getQuickStats().getGuestMemoryUsage());\n\t\t\tSystem.out.println(\"Max Memory Usage: \" + vmri.getMaxMemoryUsage());\n\t\t\tSystem.out.println(\"------------------------------------------\");\n\n\t\t} catch (InvalidProperty e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RuntimeFault e) {\n\t\t\te.printStackTrace();\n\t\t} catch (RemoteException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }", "@Override\n @BeforeMethod(alwaysRun=true)\n public boolean testSetUp()\n throws Exception\n {\n sessionManager = new SessionManager(connectAnchor);\n boolean status = false;\n log.info(\"Test setup Begin:\");\n HashMap<ManagedObjectReference, HostSystemInformation> hostsMap = null;\n Set<ManagedObjectReference> allHosts = null;\n Iterator<ManagedObjectReference> it = null;\n String[] pnicIds = null;\n\n this.ivm = new VirtualMachine(connectAnchor);\n this.iDVS = new DistributedVirtualSwitchHelper(connectAnchor);\n this.iDVPG = new DistributedVirtualPortgroup(connectAnchor);\n this.ihs = new HostSystem(connectAnchor);\n this.ins = new NetworkSystem(connectAnchor);\n hostsMap = this.ihs.getAllHosts(VersionConstants.ESX4x, HostSystemConnectionState.CONNECTED);\n if (hostsMap != null) {\n\n allHosts = hostsMap.keySet();\n if (allHosts != null && allHosts.size() > 0) {\n it = allHosts.iterator();\n while (it.hasNext()) {\n ManagedObjectReference tempMor = it.next();\n if (tempMor != null) {\n if (this.ins.getPNicIds(tempMor) != null) {\n this.hostMor = tempMor;\n break;\n }\n }\n }\n if (this.hostMor != null) {\n hostVersion = this.ihs.getHostProductIdVersion(this.hostMor);\n hostConnectSpec = this.ihs.getHostConnectSpec(this.hostMor);\n log.info(\"Found a host with free pnics in the inventory\");\n this.nsMor = this.ins.getNetworkSystem(this.hostMor);\n if (this.nsMor != null) {\n pnicIds = this.ins.getPNicIds(this.hostMor);\n if (pnicIds != null) {\n status = true;\n } else {\n log.error(\"There are no free pnics on the host\");\n }\n } else {\n log.error(\"The network system MOR is null\");\n }\n } else {\n log.error(\"There are no free pnics on any of the host in \"\n + \"the inventory\");\n }\n } else {\n log.error(\"There are no hosts in the VC inventory\");\n }\n } else {\n log.error(\"The host map is null\");\n }\n\n assertTrue(status, \"Cleanup failed\");\n assertTrue(status, \"Setup failed\");\n return status;\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByVirtualMachine()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=virtualmachine\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "public MyPowerHost findHostForVm(Vm vm) {\n\t\t//找到第一个合适的host就返回\n\t\tfor (MyPowerHost host : this.<MyPowerHost> getHostList()) {\n\t\t\tif (host.isSuitableForVm(vm)) {\n\t\t\t\treturn host;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private boolean initDataOnHosts(String srcIP, String destIP)\t\n\t{\n\t\tSystem.out.println(\"######### In initDataOnHosts #############\");\n\t\tSwitchPort[] SwitchPort;\n\t\tboolean isHostSrcFound = false;\n\t\tboolean isHostDestFound = false;\n\t\t\n\t\t//Get all devices known by the controller.(device = host)\n\t\tCollection<? extends IDevice> alldevices = deviceManager.getAllDevices();\n\n\t\tfor (IDevice device : alldevices)\n\t\t{\n\t\t\tInteger [] deviceAssociatedIPv4Addr = device.getIPv4Addresses();\n\n\t\t\tif(deviceAssociatedIPv4Addr.length>0)\n\t\t\t{\n\t\t\t\tString assocIpv4Addr = IPv4.fromIPv4Address(deviceAssociatedIPv4Addr[0]);\n\n\t\t\t\tif(assocIpv4Addr.equals(srcIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort = device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchSrc =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_sourceMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchSrcPortToHostSource =( short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostSrcFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update src Host \"+\"switchId\"+m_switchSrc.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\telse if(assocIpv4Addr .equals(destIP))\n\t\t\t\t{\n\t\t\t\t\t//Get attachment points associated with the device\n\t\t\t\t\tSwitchPort =device.getAttachmentPoints();\n\t\t\t\t\tif(SwitchPort.length>0)\n\t\t\t\t\t{\n\t\t\t\t\t\tm_switchDst =SwitchPort[0].getSwitchDPID();\n\t\t\t\t\t\tm_destMacAddr = device.getMACAddressString();\n\t\t\t\t\t\tm_switchDstPortToHostTarget =(short)SwitchPort[0].getPort();\n\t\t\t\t\t\tisHostDestFound = true;\n\t\t\t\t\t\tSystem.out.println(\"######### Update dest Host \"+\"switchId\"+m_switchDst.toString()+ \"#############\");\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\t\t\n\t\t}\n\t\tif(isHostSrcFound && isHostDestFound)\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\t\n\t}", "@Test\n public void testRemoteGrantor() throws Exception {\n IgnoredException.addIgnoredException(\"killing members ds\");\n final CacheTransactionManager txMgr = getCache().getCacheTransactionManager();\n final String rgnName = getUniqueName();\n Region rgn = getCache().createRegion(rgnName, getRegionAttributes());\n rgn.create(\"key\", null);\n\n Invoke.invokeInEveryVM(new SerializableRunnable(\"testRemoteGrantor: initial configuration\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().createRegion(rgnName, getRegionAttributes());\n rgn1.put(\"key\", \"val0\");\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n });\n\n Host host = Host.getHost(0);\n VM vm0 = host.getVM(0);\n // VM vm1 = host.getVM(1);\n // VM vm2 = host.getVM(2);\n\n vm0.invoke(new SerializableRunnable(\"testRemoteGrantor: remote grantor init\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().getRegion(rgnName);\n final CacheTransactionManager txMgr2 = getCache().getCacheTransactionManager();\n txMgr2.begin();\n rgn1.put(\"key\", \"val1\");\n txMgr2.commit();\n assertNotNull(TXLockService.getDTLS());\n assertTrue(TXLockService.getDTLS().isLockGrantor());\n } catch (CacheException e) {\n fail(\"While performing first transaction\");\n }\n }\n });\n\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val1\", rgn.getEntry(\"key\").getValue());\n\n vm0.invoke(new SerializableRunnable(\"Disconnect from DS, remote grantor death\") {\n @Override\n public void run() {\n try {\n MembershipManagerHelper.crashDistributedSystem(getSystem());\n } finally {\n // Allow getCache() to re-establish a ds connection\n closeCache();\n }\n }\n });\n\n // Make this VM the remote Grantor\n txMgr.begin();\n rgn.put(\"key\", \"val2\");\n txMgr.commit();\n assertNotNull(TXLockService.getDTLS());\n assertTrue(TXLockService.getDTLS().isLockGrantor());\n\n SerializableRunnable remoteComm =\n new SerializableRunnable(\"testRemoteGrantor: remote grantor commit\") {\n @Override\n public void run() {\n try {\n Cache c = getCache();\n CacheTransactionManager txMgr2 = c.getCacheTransactionManager();\n Region rgn1 = c.getRegion(rgnName);\n if (rgn1 == null) {\n // This block should only execute on VM0\n rgn1 = c.createRegion(rgnName, getRegionAttributes());\n }\n\n txMgr2.begin();\n rgn1.put(\"key\", \"val3\");\n txMgr2.commit();\n\n if (TXLockService.getDTLS() != null) {\n assertTrue(!TXLockService.getDTLS().isLockGrantor());\n }\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n };\n Invoke.invokeInEveryVM(remoteComm);\n // vm1.invoke(remoteComm);\n // vm2.invoke(remoteComm);\n\n assertNotNull(TXLockService.getDTLS());\n assertTrue(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val3\", rgn.getEntry(\"key\").getValue());\n rgn.destroyRegion();\n }", "void placeVirtualMachine(VirtualMachine vm) {\n mapped_vms.add(vm);\n used_cpu = used_cpu.add(vm.getCPU());\n used_mem = used_mem.add(vm.getMemory());\n if (vm.isAntiColocatable()) {\n mapped_anti_coloc_job_ids.add(vm.getJobID());\n }\n }", "@Override\n\tpublic void execute(DelegateExecution execution) throws Exception {\n\t\tString ip = (String) execution.getVariable(\"ip\");\n\t\tString serviceHome = (String) execution.getVariable(\"serviceHome\");\n\t\tString coRoot = (String) execution.getVariable(\"coRoot\");\n\t\tString customizationId = (String) execution.getVariable(\"customizationId\");\n\t\tHashMap<String, String> data = toscaService.getCloudData(customizationId);\n\n\t\t// TODO al momento è vuoto perchè non lo leggiamo da nulla valutare se\n\t\t// leggerlo dinamicamente o da file di configurazione\n\t\tString privateKeyPath = (String) execution.getVariable(\"privateKeyPath\");\n\t\tString passphrase = (String) execution.getVariable(\"passphrase\");\n\n\t\t// prepare the certificates\n\t\tshellCert(serviceHome, caPath, data.get(\"vmname\"), ip, caPassword);\n\t\t// send the key\n\t\ttransferFile(serviceHome, \"key.pem\", privateKeyPath, passphrase, ip);\n\t\t// send the cert\n\t\ttransferFile(serviceHome, \"cert.pem\", privateKeyPath, passphrase, ip);\n\n\t\t// now that all the pieces are in the machine we can join it to swarm\n\t\tString remote_command = \"systemctl start docker && /usr/bin/docker run -itd --name=swarm-agent --expose=2376 -e SWARM_HOST=:2376 swarm join --advertise=\"\n\t\t\t\t+ ip + \":\" + dockerPort + \" consul://\" + hostip + \":8500\";\n\n\t\tProperties config = new Properties();\n\t\tconfig.put(\"StrictHostKeyChecking\", \"no\"); // without this it cannot\n\t\t\t\t\t\t\t\t\t\t\t\t\t// connect because the host\n\t\t\t\t\t\t\t\t\t\t\t\t\t// key verification fails\n\t\t\t\t\t\t\t\t\t\t\t\t\t// the right way would be to\n\t\t\t\t\t\t\t\t\t\t\t\t\t// somehow get the server\n\t\t\t\t\t\t\t\t\t\t\t\t\t// key and add it to the\n\t\t\t\t\t\t\t\t\t\t\t\t\t// trusted keys\n\t\t\t\t\t\t\t\t\t\t\t\t\t// jsch.setKnownHosts()\n\t\t\t\t\t\t\t\t\t\t\t\t\t// https://epaul.github.io/jsch-documentation/javadoc/com/jcraft/jsch/JSch.html#setKnownHosts-java.lang.String-\n\t\t\t\t\t\t\t\t\t\t\t\t\t// see also\n\t\t\t\t\t\t\t\t\t\t\t\t\t// http://stackoverflow.com/a/32858953/28582\n\t\tJSch jsch = new JSch();\n\t\tjsch.addIdentity(privateKeyPath, passphrase);\n\n\t\tSession session = jsch.getSession(ROOT_USER, ip, SSH_PORT);\n\t\tsession.setConfig(config);\n\t\tsession.connect();\n\n\t\tChannelExec channel = (ChannelExec) session.openChannel(\"exec\");\n\t\tint exitStatus = sendCommand(remote_command, channel);\n\t\tlog.debug(\"Command: [\" + remote_command + \"]\");\n\t\tif (exitStatus != 0) {\n\t\t\tlog.debug(\"FAILED - exit status: \" + exitStatus);\n\t\t} else {\n\t\t\tlog.debug(\"Executed successfully\");\n\t\t}\n\t\tchannel.disconnect();\n\t\tsession.disconnect();\n\n\t\tlog.debug(\"in DeployDockerSwarm\");\n\t\t// toscaService.getNodeType(\"\");\n\t\t// dockerService.addMachine(ip, 2376); //SSL\n\t\tString clusterToken = dockerService.addMachine(swarmIp, Integer.parseInt(swarmPort)); // no SSL\n\t\texecution.setVariable(\"clusterToken\", clusterToken);\n\t\tString clusterInfo = dockerService.clusterDetail(clusterToken);\n\t}", "private boolean linkMappingCoreSeparate( VirtualLink vLink, SubstrateSwitch edgeSwitch1,\n\t\t\tSubstrateSwitch edgeSwitch2, Topology topo) {\n\t\tMap<SubstrateSwitch, LinkedList<SubstrateSwitch>> listAggConnectEdge = topo.getListAggConnectEdge();\n\t\tMap<SubstrateSwitch, LinkedList<SubstrateSwitch>> listCoreConnectAggMap = topo.getListCoreConnectAgg();\t\n\t\tLinkedList<LinkPhyEdge> listPhyEdge = topo.getListLinkPhyEdge();\n\t\tLinkedList<SubstrateLink> listLinkBandwidth = topo.getLinkBandwidth();\n\t\tLinkedList<SubstrateSwitch> listAggSort1 = new LinkedList<>();\n\t\tLinkedList<SubstrateSwitch> listAggSort2 = new LinkedList<>();\n\t\tLinkedList<SubstrateSwitch> listCoreSort1 = new LinkedList<>();\n\t\tLinkedList<SubstrateSwitch> listCoreSort2 = new LinkedList<>();\n\t\t\n\t\tService sService = vLink.getsService();\n\t\tService dService = vLink.getdService();\n\t\t\n\t\tdouble bandwidthDemand = vLink.getBandwidthRequest();\n\t\tint count = 0;\n\t\t\n\t\tSubstrateSwitch edge1 = null, edge2 = null;\n\t\tSubstrateSwitch agg1 = null, agg2 = null;\n\t\tSubstrateSwitch core = null;\n\t\t\n\t\tLinkPhyEdge linkEdge1 = null, linkEdge2 = null;\n\t\t\n\t\tSubstrateLink linkAggEdge1a = null, linkAggEdge1b = null;\n\t\tSubstrateLink linkAggEdge2a = null, linkAggEdge2b = null;\n\t\tSubstrateLink linkCoreAgg1a = null, linkCoreAgg1b = null;\n\t\tSubstrateLink linkCoreAgg2a = null, linkCoreAgg2b = null;\n\t\t//===get edge switch connect to server=====================================//\n\t\tfor (LinkPhyEdge linkPhyEdge: listPhyEdge) { \n\t\t\t\n\t\t\tif(linkPhyEdge.getPhysicalServer().equals(sService.getBelongToServer())){\n\t\t\t\tedge1 = linkPhyEdge.getEdgeSwitch();\n\t\t\t\tif(linkPhyEdge.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\treturn false;\n\t\t\t\t}else {\n\t\t\t\t\tlinkEdge1 = linkPhyEdge;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\tif(linkPhyEdge.getPhysicalServer().equals(dService.getBelongToServer())) {\n\t\t\t\tedge2 = linkPhyEdge.getEdgeSwitch();\n\t\t\t\tif(linkPhyEdge.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\treturn false;\n\t\t\t\t}else {\n\t\t\t\t\tlinkEdge2 = linkPhyEdge;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tlistAggSort1 = sortListSwitch(listAggConnectEdge.get(edge1));\n\t\tlistAggSort2 = sortListSwitch(listAggConnectEdge.get(edge2));\n\t\n\t\t//=== find link connect Agg to Edge ======================================//\n\t\tAGG_EDGE_LOOP1:\n\t\tfor(int index = 0; index < listAggSort1.size(); index++) {\n\t\t\tagg1 = listAggSort1.get(index);\n\t\t\tfor (SubstrateLink link : listLinkBandwidth) {\n\t\t\t\tif(link.getStartSwitch() == edge1 && link.getEndSwitch() == agg1) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge1a = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(link.getStartSwitch() == agg1 && link.getEndSwitch() == edge1) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge1b = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == 2) break AGG_EDGE_LOOP1;\n\t\t\t}\t\n\t\t} // end for loop 1\n\t\tcount = 0;\n\t\tAGG_EDGE_LOOP2:\n\t\tfor(int index = 0; index < listAggSort2.size(); index++) {\n\t\t\tagg2 = listAggSort2.get(index);\n\t\t\tfor (SubstrateLink link : listLinkBandwidth) {\n\t\t\t\tif(link.getStartSwitch() == edge2 && link.getEndSwitch() == agg2) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge2a = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == agg2 && link.getEndSwitch() == edge2) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkAggEdge2b = link;\n\t\t\t\t\t\tcount ++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(count == 2) break AGG_EDGE_LOOP2;\n\t\t\t}\t\n\t\t} // end for loop 2\n\t\t//=== find link connect Agg to Core ======================================//\n\t\tlistCoreSort1 = sortListSwitch(listCoreConnectAggMap.get(agg1));\n\t\tlistCoreSort2 = sortListSwitch(listCoreConnectAggMap.get(agg2));\n\t\t\n\t\tif(!listCoreSort1.equals(listCoreSort2)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor(int index = 0; index < listCoreSort1.size(); index++) {\n\t\t\tcore = listCoreSort1.get(index);\n\t\t\tfor (SubstrateLink link : listLinkBandwidth) {\n\t\t\t\tif(link.getStartSwitch() == agg1 && link.getEndSwitch() == core) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg1a = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == core && link.getEndSwitch() == agg1) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg1b = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == agg2 && link.getEndSwitch() == core) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg2a = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if(link.getStartSwitch() == core && link.getEndSwitch() == agg2) {\n\t\t\t\t\tif(link.getBandwidth() < bandwidthDemand) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlinkCoreAgg2b = link;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//===set up bandwidth for all found links above ========//\n\t\tlinkEdge1.setBandwidth(linkEdge1.getBandwidth() - bandwidthDemand);\n\t\tlinkEdge1.getEdgeSwitch().setPort(linkEdge1.getEdgeSwitch(), bandwidthDemand);\n\t\tlinkEdge2.setBandwidth(linkEdge2.getBandwidth() - bandwidthDemand);\n\t\tlinkEdge2.getEdgeSwitch().setPort(linkEdge2.getEdgeSwitch(), bandwidthDemand);\n\t\tvLink.getLinkPhyEdge().add(linkEdge1);\n\t\tvLink.getLinkPhyEdge().add(linkEdge2);\n\t\tlinkAggEdge1a.setBandwidth(linkAggEdge1a.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge1a.getStartSwitch().setPort(linkAggEdge1a.getEndSwitch(), bandwidthDemand);\n\t\tlinkAggEdge1b.setBandwidth(linkAggEdge1b.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge1b.getStartSwitch().setPort(linkAggEdge1b.getEndSwitch(), bandwidthDemand);\n\t\tlinkAggEdge2a.setBandwidth(linkAggEdge2a.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge2a.getStartSwitch().setPort(linkAggEdge2a.getEndSwitch(), bandwidthDemand);\n\t\tlinkAggEdge2b.setBandwidth(linkAggEdge2b.getBandwidth() - bandwidthDemand);\n\t\tlinkAggEdge2b.getStartSwitch().setPort(linkAggEdge2b.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg1a.setBandwidth(linkCoreAgg1a.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg1a.getStartSwitch().setPort(linkCoreAgg1a.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg1b.setBandwidth(linkCoreAgg1b.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg1b.getStartSwitch().setPort(linkCoreAgg1b.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg2a.setBandwidth(linkCoreAgg2a.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg2a.getStartSwitch().setPort(linkCoreAgg2a.getEndSwitch(), bandwidthDemand);\n\t\tlinkCoreAgg2b.setBandwidth(linkCoreAgg2b.getBandwidth() - bandwidthDemand);\n\t\tlinkCoreAgg2b.getStartSwitch().setPort(linkCoreAgg2b.getEndSwitch(), bandwidthDemand);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge1a);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge1b);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge2a);\n\t\tvLink.getLinkSubstrate().add(linkAggEdge2b);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg1a);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg1b);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg2a);\n\t\tvLink.getLinkSubstrate().add(linkCoreAgg2b);\n\t\treturn true;\n\t}", "public static void main(String[] args){\n\t\tXenVM vm22 = new XenVM(\"vm22\", \"172.16.1.22\", 22, \"root\", \"welcome\");\n\t\t//XenVM vm31 = new XenVM(\"vm31\", \"172.16.1.31\", 22, \"root\", \"welcome\");\n\t\t//XenVM vm31 = new XenVM(\"vm31\", \"172.16.1.31\", 22, \"root\", \"welcome\");\n\t\t//XenVM vm21 = new XenVM(\"vm21\", \"172.16.1.21\", 22, \"root\", \"welcome\");\n\t\t//StartApp s11 = new StartApp(vm11);\n\t\tStartApp s22 = new StartApp(vm22);\n\t\t//StartApp s31 = new StartApp(vm31);\n\t\t//StartApp s31 = new StartApp(vm31);\n\t\t//StartApp s21 = new StartApp(vm21);\n\t\t//s11.start();\n\t\ts22.start();\n\t\t//s31.start();\n\t\t//s11.join();\n\t\t//s12.join();\n\t\t//s31.join();\n\t\t//s21.start();\n\t\ts22.join();\n\t}", "public void printHostSystems() throws InvalidProperty, RuntimeFault, RemoteException{\r\n\t\tManagedEntity[] mes = new\r\n\t\t\t\tInventoryNavigator(_instance.getRootFolder()).searchManagedEntities(\"HostSystem\");\r\n\t\tfor (int i = 0; i < mes.length; i++) {\r\n\t\t\tHostSystem currHostSystem = (HostSystem)mes[i];\r\n\t\t\tSystem.out.printf(\"host[%d]: Name = %s\\n\", i, currHostSystem.getName());\r\n\t\t}\r\n\t}", "@Test\n public void testPersistentPR_Restart_one_server_while_clean_queue() throws InterruptedException {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1));\n // create locator on remote site\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort));\n\n // create cache in remote site\n createCacheInVMs(nyPort, vm2, vm3);\n\n // create cache in local site\n createCacheInVMs(lnPort, vm4, vm5, vm6, vm7);\n\n // create senders with disk store\n String diskStore1 = vm4.invoke(() -> WANTestBase.createSenderWithDiskStore(\"ln\", 2,\n true, 100, 10, false, true, null, null, true));\n String diskStore2 = vm5.invoke(() -> WANTestBase.createSenderWithDiskStore(\"ln\", 2,\n true, 100, 10, false, true, null, null, true));\n String diskStore3 = vm6.invoke(() -> WANTestBase.createSenderWithDiskStore(\"ln\", 2,\n true, 100, 10, false, true, null, null, true));\n String diskStore4 = vm7.invoke(() -> WANTestBase.createSenderWithDiskStore(\"ln\", 2,\n true, 100, 10, false, true, null, null, true));\n\n logger\n .info(\"The DS are: \" + diskStore1 + \",\" + diskStore2 + \",\" + diskStore3 + \",\" + diskStore4);\n\n // create PR on remote site\n vm2.invoke(\n () -> WANTestBase.createPartitionedRegion(getTestMethodName(), null, 1, 100, isOffHeap()));\n vm3.invoke(\n () -> WANTestBase.createPartitionedRegion(getTestMethodName(), null, 1, 100, isOffHeap()));\n\n // create PR on local site\n vm4.invoke(createPartitionedRegionRunnable());\n vm5.invoke(createPartitionedRegionRunnable());\n vm6.invoke(createPartitionedRegionRunnable());\n vm7.invoke(createPartitionedRegionRunnable());\n\n\n // start the senders on local site\n startSenderInVMs(\"ln\", vm4, vm5, vm6, vm7);\n\n // wait for senders to become running\n vm4.invoke(waitForSenderRunnable());\n vm5.invoke(waitForSenderRunnable());\n vm6.invoke(waitForSenderRunnable());\n vm7.invoke(waitForSenderRunnable());\n\n logger.info(\"All senders are running.\");\n\n // start puts in region on local site\n vm4.invoke(() -> WANTestBase.doPuts(getTestMethodName(), 3000));\n logger.info(\"Completed puts in the region\");\n\n\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName(), 0));\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName(), 0));\n logger.info(\"Check that no events are propagated to remote site\");\n\n vm7.invoke(killSenderRunnable());\n\n logger.info(\"Killed vm7 sender.\");\n // --------------------close and rebuild local site\n // -------------------------------------------------\n // stop the senders\n\n vm4.invoke(() -> WANTestBase.stopSender(\"ln\"));\n vm5.invoke(() -> WANTestBase.stopSender(\"ln\"));\n vm6.invoke(() -> WANTestBase.stopSender(\"ln\"));\n\n logger.info(\"Stopped all the senders.\");\n\n // wait for senders to stop\n vm4.invoke(waitForSenderNonRunnable());\n vm5.invoke(waitForSenderNonRunnable());\n vm6.invoke(waitForSenderNonRunnable());\n\n // create receiver on remote site\n createReceiverInVMs(vm2, vm3);\n\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName(), 0));\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName(), 0));\n\n logger.info(\"Start all the senders.\");\n\n AsyncInvocation<Void> startSenderwithCleanQueuesInVM4 =\n vm4.invokeAsync(() -> startSenderwithCleanQueues(\"ln\"));\n\n AsyncInvocation<Void> startSenderwithCleanQueuesInVM5 =\n vm5.invokeAsync(() -> startSenderwithCleanQueues(\"ln\"));\n AsyncInvocation<Void> startSenderwithCleanQueuesInVM6 =\n vm6.invokeAsync(() -> startSenderwithCleanQueues(\"ln\"));\n\n\n startSenderwithCleanQueuesInVM4.await();\n startSenderwithCleanQueuesInVM5.await();\n startSenderwithCleanQueuesInVM6.await();\n\n logger.info(\"Waiting for senders running.\");\n // wait for senders running\n vm4.invoke(waitForSenderRunnable());\n vm5.invoke(waitForSenderRunnable());\n vm6.invoke(waitForSenderRunnable());\n\n logger.info(\"All the senders are now running...\");\n\n // restart the vm\n vm7.invoke(\"Create back the cache\", () -> createCache(lnPort));\n\n // create senders with disk store\n vm7.invoke(\"Create sender back from the disk store.\",\n () -> WANTestBase.createSenderWithDiskStore(\"ln\", 2, true, 100, 10, false, true,\n null, diskStore4, false));\n\n // create PR on local site\n vm7.invoke(\"Create back the partitioned region\",\n () -> WANTestBase.createPartitionedRegion(getTestMethodName(), \"ln\", 1,\n 100, isOffHeap()));\n\n // wait for senders running\n // ----------------------------------------------------------------------------------------------------\n\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName(), 0));\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName(), 0));\n\n }", "@Test\n public void multipleNetServers() throws Exception {\n String gNode1 = \"graphNode1\";\n String gNode2 = \"graphNode2\";\n\n Map<String, String> rcaConfTags = new HashMap<>();\n rcaConfTags.put(\"locus\", RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n IntentMsg msg = new IntentMsg(gNode1, gNode2, rcaConfTags);\n wireHopper2.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n wireHopper1.sendIntent(msg);\n\n WaitFor.waitFor(() ->\n wireHopper2.getSubscriptionManager().getSubscribersFor(gNode2).size() == 1,\n 10,\n TimeUnit.SECONDS);\n GenericFlowUnit flowUnit = new SymptomFlowUnit(System.currentTimeMillis());\n DataMsg dmsg = new DataMsg(gNode2, Lists.newArrayList(gNode1), Collections.singletonList(flowUnit));\n wireHopper2.sendData(dmsg);\n wireHopper1.getSubscriptionManager().setCurrentLocus(RcaConsts.RcaTagConstants.LOCUS_DATA_NODE);\n\n WaitFor.waitFor(() -> {\n List<FlowUnitMessage> receivedMags = wireHopper1.getReceivedFlowUnitStore().drainNode(gNode2);\n return receivedMags.size() == 1;\n }, 10, TimeUnit.SECONDS);\n }", "public void printVirtualMachines() throws InvalidProperty, RuntimeFault, RemoteException{\r\n\t\tManagedEntity[] mes = new\r\n\t\t\t\tInventoryNavigator(_instance.getRootFolder()).searchManagedEntities(\"VirtualMachine\");\r\n\t\tfor (int i = 0; i < mes.length; i++) {\r\n\t\t\tVirtualMachine currVm = (VirtualMachine)mes[i];\r\n\t\t\tSystem.out.printf(\"vm[%d]: Name = %s\\n\", i, currVm.getName());\r\n\t\t}\r\n\t}", "@Override\n public int compare(Host h1, Host h2) {\n return (h1.getMaxAvailableMips() + h1.getRam()) > (h2.getMaxAvailableMips() + h2.getRam()) ? -1 : ((h1.getMaxAvailableMips() + h1.getRam()) < (h2.getMaxAvailableMips() + h2.getRam()) ? 1 : 0);\n }", "public static void main(String args[]){\n ClientConfig remoteConfig = getCluster2();\n\n remoteClient = HazelcastClient.newHazelcastClient(remoteConfig);\n\n Map usCarMap = remoteClient.getMap(\"cars\");\n\n System.out.println(usCarMap.size());\n\n //ClientConfig localConfig = getEUClientConfig();\n Config localConfig = getHCCluster1();\n\n localClient = Hazelcast.newHazelcastInstance(localConfig);\n localClient.getMap(\"cars\");\n\n ClusterReconTask clusterReconTask = new ClusterReconTask(localClient, localClusterName, remoteClient, remoteClusterName);\n\n ClusterReconTask clusterReconTask1 = clusterReconTask;\n\n ClusterReconResults reconResults = null;\n\n try {\n reconResults = clusterReconTask1.call();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n System.out.println(reconResults.getMissingKeysByMap().size());\n\n System.out.println(reconResults.getMissingKeysByMap().toString());\n\n // Run Repair Task if needed\n if (reconResults.getMissingKeysByMap().size() > 0){\n ClusterRepairTask clusterRepairTask = new ClusterRepairTask(localClient, localClusterName, remoteClient, remoteClusterName, reconResults);\n try {\n clusterRepairTask.call();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n\n }", "@Test\n public void testPrimaryFailureInUNregisterInterest() throws Exception {\n createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));\n createEntriesK1andK2();\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n server3.invoke(HAInterestTestCase::createEntriesK1andK2);\n\n registerK1AndK2();\n\n VM oldPrimary = getPrimaryVM();\n stopPrimaryAndUnregisterRegisterK1();\n\n verifyDeadAndLiveServers(1, 2);\n\n VM newPrimary = getPrimaryVM(oldPrimary);\n newPrimary.invoke(HAInterestTestCase::verifyDispatcherIsAlive);\n // primary\n newPrimary.invoke(HAInterestTestCase::verifyInterestUNRegistration);\n // secondary\n getBackupVM().invoke(HAInterestTestCase::verifyInterestUNRegistration);\n }", "void putVHost(VHost vHost);", "boolean resourceInHost(final Host host) {\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n for (final BlockDevInfo bdi : dvi.getBlockDevInfos()) {\n if (bdi.getHost() == host) {\n return true;\n }\n }\n }\n return false;\n }", "public void testDifferentClusters() throws Exception {\n JChannel first1 = new JChannel(\"stacks/tcp_mping/tcp1.xml\");\n JChannel first2 = new JChannel(\"stacks/tcp_mping/tcp1.xml\");\n JChannel first3 = new JChannel(\"stacks/tcp_mping/tcp1.xml\");\n initiChannel(first1);\n initiChannel(first2);\n initiChannel(first3);\n\n expectView(first1, first2, first3);\n\n JChannel second1 = new JChannel(\"stacks/tcp_mping/tcp2.xml\");\n JChannel second2 = new JChannel(\"stacks/tcp_mping/tcp2.xml\");\n JChannel second3 = new JChannel(\"stacks/tcp_mping/tcp2.xml\");\n initiChannel(second1);\n initiChannel(second2);\n initiChannel(second3);\n\n expectView(first1, first2, first3);\n expectView(second1, second2, second3);\n success = true;\n }", "public interface InstanceDeployCenter {\r\n\r\n /**\r\n * 启动已经存在的实例\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean startExistInstance(long appId, int instanceId);\r\n\r\n /**\r\n * 启动已存在的实例,无需进行redis资源包校验\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean startExistInstanceWithoutResourceCheck(long appId, int instanceId);\r\n\r\n /**\r\n * 下线已经存在的实例\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean shutdownExistInstance(long appId, int instanceId);\r\n\r\n /**\r\n * cluster forget\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean forgetInstance(long appId, int instanceId);\r\n\r\n /**\r\n * 清理(cluster forget)集群内所有fail节点\r\n * @param appId\r\n * @param instanceId\r\n * @return\r\n */\r\n boolean clearFailInstances(long appId);\r\n \r\n /**\r\n * 展示实例最近的日志\r\n * @param instanceId\r\n * @param maxLineNum\r\n * @return\r\n */\r\n String showInstanceRecentLog(int instanceId, int maxLineNum);\r\n\r\n /**\r\n * 修改实例配置\r\n * @param appId\r\n * @param appAuditId\r\n * @param host\r\n * @param port\r\n * @param instanceConfigKey\r\n * @param instanceConfigValue\r\n * @return\r\n */\r\n boolean modifyInstanceConfig(long appId, Long appAuditId, String host, int port, String instanceConfigKey,\r\n String instanceConfigValue);\r\n\r\n /**\r\n * 检测pod是否有被调度其他宿主机\r\n * @param ip\r\n */\r\n MachineSyncEnum podChangeStatus(String ip);\r\n\r\n /**\r\n * 检测pod是否有心跳停止实例&启动\r\n * @return\r\n */\r\n List<InstanceAlertValueResult> checkAndStartExceptionInstance(String ip, Boolean isAlert);\r\n\r\n\r\n}", "public MyVM(String virtual_machine_name)\n {\n \ttry\n \t{\n \t\tthis.vmname= virtual_machine_name;\n \t\tthis.si=new ServiceInstance(new URL(SJSULAB.getVmwareHostURL()),\n\t\t\t\t\tSJSULAB.getVmwareLogin(), SJSULAB.getVmwarePassword(), true);\n \t\t\n \t\tthis.folder = si.getRootFolder();\n \t\tthis.vm=(VirtualMachine) new InventoryNavigator(folder).searchManagedEntity(\"VirtualMachine\",\n \t\t\t\tthis.vmname);\n \t\tSystem.out.println(\"MyVM, vm value : \"+vm);\n \t\t\n \t\tthis.hs= (HostSystem) new InventoryNavigator(folder).searchManagedEntity(\"HostSystem\", \"130.65.132.194\");\n \t\tSystem.out.println(\"MyVM, HS value : \"+hs);\n \t\tthis.snapshotname=\"snap2\";\n \t\t\n \t}\n \tcatch(Exception e)\n \t{\n \t\tSystem.out.println(e.toString());\n \t}\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByVirtualAppliance()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=virtualappliance\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "@RequestMapping(\"getStatusOfVm\")\n @ResponseBody\n public VmModel getStatusOfVm(ModelMap map, @RequestParam(value = \"vappName\", required = false) String vappName,\n @RequestParam(value = \"vmName\", required = false) String vmName,\n\n HttpServletRequest request) {\n\n \t_LOG.info(\"getStatusOfVm()..........................\");\n HttpSession session = request.getSession();\n String orgName = (String) session.getAttribute(Constants.SESSION_ORGNAME);\n String vappUrl = request.getParameter(\"vappUrl\");\n VmModel vm = new VmModel();\n ResourceTask resourceTask = vCloudService.getStatusOfVappOrVm(\"vm\", vmName, vappUrl, orgName);\n if (resourceTask.getTaskstatus() != null && resourceTask.getTaskstatus().equals(ResourceStatus.FINISHED)) {\n vm.setStatus(\"true\");\n } else if (resourceTask.getTaskstatus() == null\n || resourceTask.getTaskstatus().equals(ResourceStatus.IN_PROGRESS)) {\n vm.setStatus(\"false\");\n }\n\n if (resourceTask != null && resourceTask.getChildren() != null) {\n if (resourceTask.getChildren().size() != 1) {\n for (ResourceTask i : resourceTask.getChildren()) {\n if (i.getName().equals(vmName)) {\n for (Link link : i.getLinks()) {\n if (link.getRel() != null && link.getRel().equals(\"undeploy\")) {\n vm.setPowerOffUrl(link.getHref());\n vm.setPauseUrl(link.getHref());\n } else if (link.getRel() != null && link.getRel().equals(\"power:powerOn\")) {\n vm.setPowerOnUrl(link.getHref());\n } else if (link.getRel() != null && link.getRel().equals(\"snapshot:revertToCurrent\")) {\n vm.setRevertUrl(link.getHref());\n } else if (link.getRel() != null && link.getRel().equals(\"screen:acquireTicket\")) {\n vm.setTicket(link.getHref());\n }\n }\n }\n }\n } else {\n for (ResourceTask i : resourceTask.getChildren()) {\n for (Link link : i.getLinks()) {\n if (link.getRel() != null && link.getRel().equals(\"undeploy\")) {\n vm.setPowerOffUrl(link.getHref());\n } else if (link.getRel() != null && link.getRel().equals(\"power:powerOn\")) {\n vm.setPowerOnUrl(link.getHref());\n } else if (link.getRel() != null && link.getRel().equals(\"snapshot:revertToCurrent\")) {\n vm.setRevertUrl(link.getHref());\n } else if (link.getRel() != null && link.getRel().equals(\"screen:acquireTicket\")) {\n vm.setTicket(link.getHref());\n } else if (link.getRel() != null && link.getRel().equals(\"power:suspend\")) {\n vm.setPauseUrl(link.getHref());\n }\n\n }\n }\n }\n }\n\n User user = (User) session.getAttribute(\"user\");\n Event event = eventService.getEvent(user);\n vm.setAdvanced(event.getAdvanced() == true ? 1 : 0);\n return vm;\n\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenter()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n VLANNetwork vlan2 = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan2.getConfiguration(), vlan2);\n\n IPAddress ip2 =\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP2 =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan2.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan2.getConfiguration().getMask()));\n\n persistIP(ip2, lastIP2, vdc, vlan2);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tMultitonV2 instance1 = MultitonV2.getInstance();\n\t\tMultitonV2 instance2 = MultitonV2.getInstance(); \n\t\tMultitonV2 instance3 = MultitonV2.getInstance();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tMultitonV2 instance4 = MultitonV2.getInstance(); \n\t\tMultitonV2 instance5 = MultitonV2.getInstance();\n\t\t\n\t\t\n\t\t\n\t\tif(instance1==instance4) System.out.println(\"올바르게 동작중\");\n\t\tif(instance2==instance5) System.out.println(\"올바르게 동작중2\");\n\n\t}", "public List<VirtualMachineDescriptor> listVirtualMachines() {\n ArrayList<VirtualMachineDescriptor> result =\n new ArrayList<VirtualMachineDescriptor>();\n\n MonitoredHost host;\n Set<Integer> vms;\n try {\n host = MonitoredHost.getMonitoredHost(new HostIdentifier((String)null));\n vms = host.activeVms();\n } catch (Throwable t) {\n if (t instanceof ExceptionInInitializerError) {\n t = t.getCause();\n }\n if (t instanceof ThreadDeath) {\n throw (ThreadDeath)t;\n }\n if (t instanceof SecurityException) {\n return result;\n }\n throw new InternalError(t); // shouldn't happen\n }\n\n for (Integer vmid: vms) {\n String pid = vmid.toString();\n String name = pid; // default to pid if name not available\n boolean isAttachable = false;\n MonitoredVm mvm = null;\n try {\n mvm = host.getMonitoredVm(new VmIdentifier(pid));\n try {\n isAttachable = MonitoredVmUtil.isAttachable(mvm);\n // use the command line as the display name\n name = MonitoredVmUtil.commandLine(mvm);\n } catch (Exception e) {\n }\n if (isAttachable) {\n result.add(new HotSpotVirtualMachineDescriptor(this, pid, name));\n }\n } catch (Throwable t) {\n if (t instanceof ThreadDeath) {\n throw (ThreadDeath)t;\n }\n } finally {\n if (mvm != null) {\n mvm.detach();\n }\n }\n }\n return result;\n }", "public Split(ManagedElementList<VirtualMachine> vmset1, ManagedElementList<VirtualMachine> vmset2) {\r\n this.set1 = vmset1;\r\n this.set2 = vmset2;\r\n }", "public static void main(String[] args) {\n\t\ttry {\n\t\t\t//由主机名得到InetAddress对象\n\t\t\tInetAddress address1=InetAddress.getByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"address1:\"+address1);\n\t\t\t//由ip得到InetAddress对象\n\t\t\tInetAddress address2=InetAddress.getByName(\"13.229.188.59\");\n\t\t\tSystem.out.println(\"address2:\"+address2.getHostName()+\"/\"+address2.getHostAddress());\n\t\t\t//由主机名得到多个InetAddress对象数组,因为一个主机名可以对应多个ip\n\t\t\tInetAddress addressArr1[]=InetAddress.getAllByName(\"www.baidu.com\");\n\t\t\tSystem.out.println(\"addressArr1:\");\n\t\t\tfor(int i=0; i<addressArr1.length; i++)\n\t\t\t\tSystem.out.println(addressArr1[i]);\n\t\t\t//得到本机的InetAddress对象\n\t\t\tInetAddress me=InetAddress.getLocalHost();\n\t\t\tSystem.out.println(\"me:\"+me);\n\t\t\t//getByName(xxx.xxx.com.cn)会立刻请求解析域名为IP地址,而getByAddress不会立刻请求解析IP地址为域名\n\t\t\tbyte []ip1={(byte)202,(byte)201,(byte)179,110};//int转byte会截断int\n\t\t\tInetAddress address3=InetAddress.getByAddress(ip1);\n\t\t\tbyte []ip2={61,(byte)135,(byte)169,121};\n\t\t\tInetAddress address4=InetAddress.getByAddress(\"www.baidu.com\", ip2);\n\t\t\tSystem.out.println(\"address3:\"+address3);\n\t\t\tSystem.out.println(\"address3 hostname:\"+address3.getHostName());\n\t\t\tSystem.out.println(\"address4:\"+address4);\n\t\t\t//下面这行会抛异常,因为如果调用getByName创建InetAddress对象时,如果参数是主机名,就会立即进行dns解析,但是参数中的主机名\n\t\t\t//又不存在,所以程序抛异常\n\t\t\tInetAddress address5=InetAddress.getByName(\"www.baidxxx.com\");\n\t\t\t//下面这两行代码不会抛异常,虽然参数中的ip是不存在的(不知道为什么,反正是这样规定的)\n\t\t\tInetAddress address6=InetAddress.getByName(\"202.117.179.110\");\n\t\t\taddress6.getHostName();\n\t\t} catch (UnknownHostException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void twoClientSetupProcesses(List<String> aClientTags, List<String> aServerTags ) {\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_1\", \"Client_0\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Registry\", 500);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Server\", 2000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_0\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setGraderResourceReleaseTime(\"Client_1\", 5000);\n\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}", "@java.lang.Override\n public boolean hasVmConfig() {\n return vmCase_ == 3;\n }", "public String getBoxNetHost();", "boolean hasHost();", "boolean hasHost();", "private void computeHSPhase(int i) {\n\t\t\n\t\tHostService hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\tint hostId;\n\t\tint serviceId;\n\t\tString hostServiceSource;\n\t\tboolean isDowntime;\n\t\tboolean previousState;\n\t\tboolean previousDowntime = false;\n\t\tint hostStatusStateFlag;\n\t\t//0 if previousState is not Outage\n\t\t//1 if previousState outage does not inherit from Hoststatus\n\t\t//2 if previousState outage inherit from Hoststatus\n\t\tint previousHoststatusStateFlag;\n\t\t//0 if previous downtime false and previous host service downtime bit = 0\n\t\t//1 if previous downtime true and previous host service downtime bit = 0\n\t\t//2 if previous downtime true and previous host service downtime bit = 1\n\t\tint previousDowntimeHostAndHostService;\n\t\t//Value of previous outage minute last bit before apply hoststatus mask\n\t\tint previousHSOutageBit =0;\n\t\t//Value of previous downtime minute last bit before apply hoststatus mask\n\t\tint previousHSDowntimeBit = 0;\n\t\tint availability;\n\t\tint state = 0;\n\t\tboolean executeHSStateLookup;\n\t\tboolean executeHSDowntimeLookup;\n\t\tint validatorId;\n\t\tint validatorType;\n\t\t\n\t\tfor(int j = 0; j < this.cPlanList.get(i).size(); j++)\n\t\t{\n\t\t\tvalidatorId = this.cPlanList.get(i).get(j);\n\t\t\t/**validatorType = -1 if validator is hostservice*/\n\t\t\tvalidatorType = this.vList.getHashMapValidator().get(validatorId).getIdApplication();\n\t\t\t\n\t\t\t//If validator is host service\n\t\t\tif(validatorType == -1) {\n\t\t\t hs = new HostService(this.myConnection,this.shareVariable,this.vList);\n\t\t\t\thostServiceSource = this.vList.getHashMapValidator().get(validatorId).getSource();\n\t\t\t\thostId = this.vList.getHashMapValidator().get(validatorId).getIdHost();\n\t\t\t\tserviceId = this.vList.getHashMapValidator().get(validatorId).getIdService();\n\t\t\t\tisDowntime = false;\t\n\t\t\t\thostStatusStateFlag = 0;\n\t\t\t\t\n\t\t\t\tpreviousHoststatusStateFlag = this.myConnection.getHSPreviousState(hostId,serviceId);\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag != 0)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternOutageEventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternOutageEventId(this.shareVariable.getEpochBegin());\n\t\t\t\t\n\t\t\t\tif(previousHoststatusStateFlag == 0) {\n\t\t\t\t\tpreviousState = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tpreviousState = false;\n\t\t\t\t\tif(previousHoststatusStateFlag == 2) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=0;\n\t\t\t\t\t}\n\t\t\t\t\telse if(previousHoststatusStateFlag == 1) {\n\t\t\t\t\t\tpreviousHoststatusStateFlag = 1;\n\t\t\t\t\t\tpreviousHSOutageBit=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpreviousDowntimeHostAndHostService = this.myConnection.getHSPreviousDowntime(hostId,serviceId);\n\t\t\t\tif(previousDowntimeHostAndHostService == 2) {\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 1;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 1)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = true;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\telse if (previousDowntimeHostAndHostService == 0)\n\t\t\t\t{\n\t\t\t\t\tpreviousDowntime = false;\n\t\t\t\t\tpreviousHSDowntimeBit = 0;\n\t\t\t\t}\n\t\t\t\tif(previousDowntime)\n\t\t\t\t\tthis.myConnection.getHSPreviousInternDowntimeEnventNum(hostId, serviceId);\n\t\t\t\telse this.shareVariable.setInternDowntimeEventId(this.shareVariable.getEpochEnd());\n\t\t\t\tavailability = 0;\n\t\t\t\tstate = 1;\n\t\t\t\t\n\t\t\t\ths.initializeDateMinuteStateArray();\n\t\t\t\texecuteHSStateLookup = this.myConnection.testHSOutage(hostId,serviceId,hs,previousState);\n\t\t\t\texecuteHSDowntimeLookup = this.myConnection.testHSDowntime(hostId,serviceId,hs);\n\t\t\t\t\n\t\t\t\t//warning\n\t\t\t\t/*if(hostId == 21 && serviceId == 46 and )\n\t\t\t\t\tSystem.out.print(\"\");*/\n\t\t\t\t\t\n\t\t\t\tint k = this.shareVariable.getEpochBegin();\n\t\t\t\t//Compute for each minute\n\t\t\t\t\n\t\t\t\tif((!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup)) {\n\t\t\t\t\t\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit, previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 1);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t}\n\t\t\t\telse if(!(!previousState || executeHSStateLookup) && (previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\t//System.out.println(\"Create tmp host service downtime table \" + hostId + \" service \" + serviceId +\" which had downtime and outage\");\n\t\t\t\t\t\n\t\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log downtime temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogDowntimeHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 2);\n\t\t\t\t}\n\t\t\t\telse if((!previousState || executeHSStateLookup) && !(previousDowntime || executeHSDowntimeLookup))\n\t\t\t\t{\n\t\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(true);\n\t\t\t\t\t//initialisation de l'objet hs\n\t\t\t\t\ths.hostServiceInit(validatorId,hostServiceSource,hostId,serviceId,isDowntime,previousState,previousDowntime, availability, state, hostStatusStateFlag, previousHoststatusStateFlag,previousHSDowntimeBit,previousHSOutageBit);\n\t\t\t\t\t\n\t\t\t\t\t//Créer table log temporaire 1j /1 host service\n\t\t\t\t\tthis.myConnection.createTmpLogHSTable(hostId,serviceId);\n\t\t\t\t\t\n\t\t\t\t\ths.compute(this.shareVariable, 3);\n\t\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime but outage\");\n\t\t\t\t}\n\t\t\t\t//If there are not Outage event for this HS, there will be no computation on linked application\n\t\t\t\telse this.vList.getHashMapValidator().get(validatorId).setAreEventsOnPeriod(false);\n\t\t\t\t\n\t\t\t\t\t//System.out.println(\"I finish host \" + hostId + \" service \" + serviceId +\" which had no downtime and no outage\");\n\t\t\t\t\n\t\t\t\tthis.myConnection.dropDayLogHSTable();\n\t\t\t\tthis.myConnection.dropDayDowntimeLogHSTable();\n\t\t\t}\n\t\t\t// if validator is application\n\t\t\telse {\n\t\t\t\tthis.vList.getHashMapValidator().get(validatorId).compute();\n\t\t\t}\n\t\t}\n\t}", "VHost getVHost(String vHostName);", "public void setVmAttachedToPool(boolean value) {\n if (value) {\n // ==General Tab==\n getDataCenterWithClustersList().setIsChangeable(!value);\n getQuota().setIsChangeable(false);\n getCpuProfiles().setIsChangeable(false);\n\n getVmId().setIsChangeable(false);\n\n getNumOfDesktops().setIsChangeable(false);\n getPrestartedVms().setIsChangeable(false);\n getMaxAssignedVmsPerUser().setIsChangeable(false);\n\n getBaseTemplate().setIsChangeable(false);\n getTemplateWithVersion().setIsChangeable(false);\n getInstanceTypes().setIsChangeable(false);\n getMemSize().setIsChangeable(false);\n getTotalCPUCores().setIsChangeable(false);\n\n getCustomCpu().setIsChangeable(false);\n getEmulatedMachine().setIsChangeable(false);\n\n getCoresPerSocket().setIsChangeable(false);\n getNumOfSockets().setIsChangeable(false);\n getThreadsPerCore().setIsChangeable(false);\n getSerialNumberPolicy().setIsChangeable(false);\n\n getOSType().setIsChangeable(false);\n getIsStateless().setIsChangeable(false);\n getIsRunAndPause().setIsChangeable(false);\n getIsDeleteProtected().setIsChangeable(false);\n\n // ==Initial run Tab==\n getTimeZone().setIsChangeable(false);\n\n // ==Console Tab==\n getDisplayType().setIsChangeable(false);\n getGraphicsType().setIsChangeable(false);\n getUsbPolicy().setIsChangeable(false);\n getConsoleDisconnectAction().setIsChangeable(false);\n getNumOfMonitors().setIsChangeable(false);\n getIsSingleQxlEnabled().setIsChangeable(false);\n getIsSmartcardEnabled().setIsChangeable(false);\n getAllowConsoleReconnect().setIsChangeable(false);\n getVncKeyboardLayout().setIsChangeable(false);\n getSsoMethodNone().setIsChangeable(false);\n getSsoMethodGuestAgent().setIsChangeable(false);\n\n // ==Host Tab==\n getIsAutoAssign().setIsChangeable(false);\n getDefaultHost().setIsChangeable(false);\n getHostCpu().setIsChangeable(false);\n getMigrationMode().setIsChangeable(false);\n getCpuPinning().setIsChangeable(false);\n getMigrationDowntime().setIsChangeable(false);\n\n // ==Resource Allocation Tab==\n getMinAllocatedMemory().setIsChangeable(false);\n getProvisioning().setIsChangeable(false);\n getProvisioningThin_IsSelected().setIsChangeable(false);\n getProvisioningClone_IsSelected().setIsChangeable(false);\n getDisksAllocationModel().setIsChangeable(false);\n getIoThreadsEnabled().setIsChangeable(false);\n getNumOfIoThreads().setIsChangeable(false);\n\n // ==Boot Options Tab==\n getFirstBootDevice().setIsChangeable(false);\n getSecondBootDevice().setIsChangeable(false);\n getCdAttached().setIsChangeable(false);\n getCdImage().setIsChangeable(false);\n getKernel_path().setIsChangeable(false);\n getInitrd_path().setIsChangeable(false);\n getKernel_parameters().setIsChangeable(false);\n\n // ==Random Generator Tab==\n getIsRngEnabled().setIsChangeable(false);\n getRngPeriod().setIsChangeable(false);\n getRngBytes().setIsChangeable(false);\n getRngSourceRandom().setIsChangeable(false);\n getRngSourceHwrng().setIsChangeable(false);\n\n // ==Custom Properties Tab==\n getCustomProperties().setIsChangeable(false);\n getCustomPropertySheet().setIsChangeable(false);\n\n // ==Icon Tab==\n getIcon().setIsChangeable(false);\n\n vmAttachedToPool = true;\n }\n }", "@Override\n\tpublic Map<? extends Vm, ? extends Host> optimizeAllocation(List<? extends Vm> vmList) {\n\t\t// This policy does not optimize the VM allocation\n\t\treturn new HashMap<>();\n\t}", "@Test\n public void testSecondaryFailureInUNRegisterInterest() throws Exception {\n createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));\n createEntriesK1andK2();\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n server3.invoke(HAInterestTestCase::createEntriesK1andK2);\n registerK1AndK2();\n VM stoppedBackup = stopSecondaryAndUNregisterK1();\n verifyDeadAndLiveServers(1, 2);\n // still primary\n getPrimaryVM().invoke(HAInterestTestCase::verifyDispatcherIsAlive);\n // primary\n getPrimaryVM().invoke(HAInterestTestCase::verifyInterestUNRegistration);\n // secondary\n getBackupVM(stoppedBackup).invoke(HAInterestTestCase::verifyInterestUNRegistration);\n }", "VM createVM();", "private static void resetConfigTemplateVlanNetworkMaping(List<ConfigTemplate> cft){\n\t\tfor(ConfigTemplate cf: cft) {\r\n\t\t\tif (!cf.getConfigType().isTypeSupport(ConfigTemplateType.ROUTER)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSet<ConfigTemplateVlanNetwork> cvnSet = new HashSet<ConfigTemplateVlanNetwork>();\r\n\t\t\tif (AhRestoreNewMapTools.getMapWlanNetworkObjectVlan(cf.getId())!=null) {\r\n\t\t\t\tcvnSet.add(AhRestoreNewMapTools.getMapWlanNetworkObjectVlan(cf.getId()));\r\n\t\t\t}\r\n\t\t\tSet<Long> upIdSet = new HashSet<Long>();\r\n\t\t\tfor(ConfigTemplateSsid cs: cf.getSsidInterfaces().values()){\r\n\t\t\t\tif (cs.getSsidProfile()!=null) {\r\n\t\t\t\t\tSsidProfile ss = QueryUtil.findBoById(SsidProfile.class, cs.getSsidProfile().getId(), new ImplQueryBoVlanNetwork());\r\n\t\t\t\t\tif (ss.getUserProfileDefault()!=null) {\r\n\t\t\t\t\t\tupIdSet.add(ss.getUserProfileDefault().getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (ss.getUserProfileSelfReg()!=null) {\r\n\t\t\t\t\t\tupIdSet.add(ss.getUserProfileSelfReg().getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (ss.getRadiusUserProfile()!=null) {\r\n\t\t\t\t\t\tfor(UserProfile up: ss.getRadiusUserProfile()){\r\n\t\t\t\t\t\t\tupIdSet.add(up.getId());\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\tfor (PortGroupProfile portGroup : cf.getPortProfiles()) {\r\n\t\t\t List<PortBasicProfile> basicProfiles = portGroup.getBasicProfiles();\r\n\t\t\t if(null != basicProfiles) {\r\n\t\t\t for (PortBasicProfile portBasicProfile : basicProfiles) {\r\n\t\t\t if(null != portBasicProfile.getAccessProfile()) {\r\n\t\t\t PortAccessProfile access = QueryUtil.findBoById(PortAccessProfile.class, portBasicProfile.getAccessProfile().getId(), new ImplQueryBoVlanNetwork());\r\n if(access.getPortType() == PortAccessProfile.PORT_TYPE_8021Q) {\r\n // handle the trunk mode - Network <-> VLAN\r\n if(null != access.getNativeVlan()) {\r\n Long lanId = AhRestoreNewMapTools.getMapLanProfileReverse(access.getId());\r\n if(null != lanId) {\r\n Map<Long, Long> vlanObjNetwork = AhRestoreNewMapTools.getMapLANVLANObjectNetwork(lanId);\r\n if(null != vlanObjNetwork) {\r\n for (Long vlanId : vlanObjNetwork.keySet()) {\r\n Long networkId = vlanObjNetwork.get(vlanId);\r\n\r\n if(null != networkId && null != vlanId) {\r\n VpnNetwork networkObj = AhRestoreNewTools.CreateBoWithId(VpnNetwork.class,networkId);\r\n Vlan vlanObj = AhRestoreNewTools.CreateBoWithId(Vlan.class,vlanId);\r\n\r\n if(networkObj!=null && vlanObj!=null) {\r\n ConfigTemplateVlanNetwork cvn = new ConfigTemplateVlanNetwork();\r\n cvn.setNetworkObj(networkObj);\r\n cvn.setVlan(vlanObj);\r\n cvnSet.add(cvn);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n }\r\n } else {\r\n // handle the access mode\r\n if(null != access.getDefUserProfile()) {\r\n upIdSet.add(access.getDefUserProfile().getId());\r\n }\r\n if(null != access.getSelfRegUserProfile()) {\r\n upIdSet.add(access.getSelfRegUserProfile().getId());\r\n }\r\n if (null != access.getAuthOkUserProfile()) {\r\n for (UserProfile up : access.getAuthOkUserProfile()) {\r\n upIdSet.add(up.getId());\r\n }\r\n }\r\n }\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t }\r\n }\r\n\r\n\t\t\tfor(Long upId : upIdSet){\r\n\t\t\t\tLong networkId = AhRestoreNewMapTools.getMapUserProfileNetworkObjectWithNewID(upId);\r\n\t\t\t\tLong vlanId = null;\r\n\t\t\t\tif (networkId!=null) {\r\n\t\t\t\t\tvlanId = AhRestoreNewMapTools.getMapNetworkObjectVlanWithNewID(networkId);\r\n\t\t\t\t}\r\n\t\t\t\tVpnNetwork networkObj = AhRestoreNewTools.CreateBoWithId(VpnNetwork.class,networkId);\r\n\t\t\t\tVlan vlanObj = null;\r\n\t\t\t\tif(vlanId!=null) {\r\n\t\t\t\t\tvlanObj = AhRestoreNewTools.CreateBoWithId(Vlan.class,vlanId);\r\n\t\t\t\t}\r\n\t\t\t\tif(networkObj!=null && vlanObj!=null) {\r\n\t\t\t\t\tConfigTemplateVlanNetwork cvn = new ConfigTemplateVlanNetwork();\r\n\t\t\t\t\tcvn.setNetworkObj(networkObj);\r\n\t\t\t\t\tcvn.setVlan(vlanObj);\r\n\t\t\t\t\tcvnSet.add(cvn);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!cvnSet.isEmpty()) {\r\n\t\t\t\tif (cf.getVlanNetwork()==null) {\r\n\t\t\t\t\tList<ConfigTemplateVlanNetwork> myList = new ArrayList<ConfigTemplateVlanNetwork>();\r\n\t\t\t\t\tcf.setVlanNetwork(myList);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcf.getVlanNetwork().clear();\r\n\t\t\t\t}\r\n\t\t\t\tcf.getVlanNetwork().addAll(cvnSet);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\r\n public void testGetAttestationFromVmwareHost() throws Exception {\r\n TxtHostRecord host = new TxtHostRecord();\r\n host.HostName = \"10.1.71.174\";\r\n host.AddOn_Connection_String = \"https://10.1.71.162:443/sdk;administrator;intel123!\";\r\n VMwareClient client = new VMwareClient();\r\n client.connect(host.AddOn_Connection_String);\r\n String report = client.getHostAttestationReport(host, \"0,17,18,20\");\r\n System.out.println(report);\r\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByVirtualDatacenter()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=virtualdatacenter\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "public List<VirtualMachine> listRemoteVirtualMachines() {\n MachineOptions options = MachineOptions.builder().sync(true).build();\n VirtualMachinesWithNodeExtendedDto vms = context.getApi().getInfrastructureApi()\n .listVirtualMachinesByMachine(target, options);\n return wrap(context, VirtualMachine.class, vms.getCollection());\n }", "@java.lang.Override\n public boolean hasVmConfig() {\n return vmCase_ == 3;\n }", "void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByVlan()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=vlan\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "public static void twoClientSetupProcesses() {\n\n\tList<String> aClientTags=TagsFactory.getAssignmentTags().getTwoClientClientTags();\n\tList<String> aServerTags=TagsFactory.getAssignmentTags().getTwoClientServerTags();\n\n\ttwoClientSetupProcesses(aClientTags, aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcessTeams(Arrays.asList(\"RegistryBasedDistributedProgram\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setTerminatingProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setProcesses(\"RegistryBasedDistributedProgram\", Arrays.asList(\"Registry\", \"Server\", \"Client_0\", \"Client_1\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Registry\", Arrays.asList(\"Registry\"));\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Server\", aServerTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_0\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setEntryTags(\"Client_1\", aClientTags);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Registry\", FlexibleStaticArgumentsTestCase.TEST_REGISTRY_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Server\", FlexibleStaticArgumentsTestCase.TEST_SERVER_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_0\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_0_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setArgs(\"Client_1\", FlexibleStaticArgumentsTestCase.TEST_CLIENT_1_ARGS);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Registry\", 500);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Server\", 2000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_0\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().setSleepTime(\"Client_1\", 5000);\n//\tBasicExecutionSpecificationSelector.getBasicExecutionSpecification().getProcessTeams().forEach(team -> System.out.println(\"### \" + team));\n}", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByLease()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=lease\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "@Test\n public void testRefreshEntriesFromPrimaryWhenDSMDetectsServerLive() throws Exception {\n addIgnoredException(ServerConnectivityException.class.getName());\n\n PORT1 = server1.invoke(HAInterestTestCase::createServerCache);\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n createClientPoolCacheConnectionToSingleServer(getName(),\n getServerHostName(server1.getHost()));\n registerK1AndK2();\n verifyRefreshedEntriesFromServer();\n\n server1.invoke(HAInterestTestCase::stopServer);\n verifyDeadAndLiveServers(1, 0);\n server1.invoke(HAInterestTestCase::putK1andK2);\n server1.invoke(HAInterestTestCase::startServer);\n verifyDeadAndLiveServers(0, 1);\n final Region r1 = cache.getRegion(SEPARATOR + REGION_NAME);\n assertNotNull(r1);\n // Verify for interest registration after cache-server is started.\n server1.invoke(HAInterestTestCase::verifyInterestRegistration);\n\n WaitCriterion wc = new WaitCriterion() {\n private String excuse;\n\n @Override\n public boolean done() {\n Entry e1;\n Entry e2;\n\n try {\n e1 = r1.getEntry(k1);\n if (e1 == null) {\n excuse = \"Entry for k1 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k1.equals(e1.getValue())) {\n excuse = \"e1 value is not server_k1\";\n return false;\n }\n try {\n e2 = r1.getEntry(k2);\n if (e2 == null) {\n excuse = \"Entry for k2 is null\";\n return false;\n }\n } catch (EntryDestroyedException e) {\n excuse = \"Entry destroyed\";\n return false;\n }\n if (!server_k2.equals(e2.getValue())) {\n excuse = \"e2 value is not server_k2\";\n return false;\n }\n return true;\n }\n\n @Override\n public String description() {\n return excuse;\n }\n };\n GeodeAwaitility.await().untilAsserted(wc);\n }", "@Test(groups = {NETWORK_INTEGRATION_TESTS})\n public void getPrivateNetworkIPsByVirtualDatacenterOrderByIp()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs, \"255.255.255.0\");\n setup(vlan.getConfiguration(), vlan);\n\n IPAddress ip = IPAddress.newIPAddress(vlan.getConfiguration().getAddress()).nextIPAddress();\n IPAddress lastIP =\n IPNetworkRang.lastIPAddressWithNumNodes(\n IPAddress.newIPAddress(vlan.getConfiguration().getAddress()),\n IPNetworkRang.masktoNumberOfNodes(vlan.getConfiguration().getMask()));\n\n persistIP(ip, lastIP, vdc, vlan);\n\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n validURI = validURI + \"?by=ip\";\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(response.getStatusCode(), Status.OK.getStatusCode());\n }", "@Override\n public List<InstanceOverallStatusDto> syncInstances(List<Manifest.Key> given) {\n List<InstanceDto> list = list();\n List<Manifest.Key> instances = (given == null || given.isEmpty()) ? list.stream().map(d -> d.instance).toList() : given;\n Set<String> errors = new TreeSet<>();\n\n // on CENTRAL only, synchronize managed servers. only after that we know all instances.\n if (minion.getMode() == MinionMode.CENTRAL) {\n List<ManagedMasterDto> toSync = list.stream().filter(i -> instances.contains(i.instance)).map(i -> i.managedServer)\n .toList();\n\n log.info(\"Mass-synchronize {} server(s).\", toSync.size());\n\n ManagedServersResource rs = rc.initResource(new ManagedServersResourceImpl());\n try (Activity sync = reporter.start(\"Synchronize Servers\", toSync.size())) {\n AtomicLong syncNo = new AtomicLong(0);\n ExecutorService es = Executors.newFixedThreadPool(4, new RequestScopedNamedDaemonThreadFactory(reqScope,\n reg.get(group).getTransactions(), reporter, () -> \"Mass-Synchronizer \" + syncNo.incrementAndGet()));\n List<Future<?>> syncTasks = new ArrayList<>();\n for (ManagedMasterDto host : toSync) {\n syncTasks.add(es.submit(() -> {\n try (Activity singleSync = reporter.start(\"Synchronize \" + host.hostName)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Synchronize {}\", host.hostName);\n }\n rs.synchronize(group, host.hostName);\n } catch (Exception e) {\n errors.add(host.hostName);\n log.warn(\"Could not synchronize managed server: {}: {}\", host.hostName, e.toString());\n if (log.isDebugEnabled()) {\n log.debug(\"Exception:\", e);\n }\n }\n sync.workAndCancelIfRequested(1);\n }));\n }\n\n FutureHelper.awaitAll(syncTasks);\n es.shutdown(); // make all threads exit :)\n }\n } else {\n // update the local stored state.\n ResourceProvider.getResource(minion.getSelf(), MasterRootResource.class, context).getNamedMaster(group)\n .updateOverallStatus();\n }\n\n // for each instance, read the meta-manifest, and provide the recorded data.\n var result = new ArrayList<InstanceOverallStatusDto>();\n for (var inst : list.stream().filter(i -> instances.contains(i.instance)).toList()) {\n if (inst.managedServer != null && inst.managedServer.hostName != null\n && errors.contains(inst.managedServer.hostName)) {\n continue; // no state as we could not sync.\n }\n result.add(new InstanceOverallStatusDto(inst.instanceConfiguration.id,\n new InstanceOverallState(inst.instance, hive).read()));\n }\n\n return result;\n }", "public void markVlanHostInterface2Merge() throws JNCException {\n markLeafMerge(\"vlanHostInterface2\");\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Provisionhostmulti)) {\n return false;\n }\n Provisionhostmulti other = (Provisionhostmulti) object;\n if ((this.provisionhostmultiPK == null && other.provisionhostmultiPK != null) || (this.provisionhostmultiPK != null && !this.provisionhostmultiPK.equals(other.provisionhostmultiPK))) {\n return false;\n }\n return true;\n }", "@Test\n public void testAddingSinkEventInnerVlanEnabled() throws InterruptedException {\n init(true, VlanId.vlanId(\"4000\"), VlanId.vlanId(\"1000\"));\n\n Set<ConnectPoint> sinks2Cp = new HashSet<ConnectPoint>(Arrays.asList(CONNECT_POINT_B));\n Map<HostId, Set<ConnectPoint>> sinks2 = ImmutableMap.of(HOST_ID_NONE, sinks2Cp);\n\n //Adding the details to create different routes\n previousSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks);\n currentSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks2);\n // Creating new mcast event for adding sink\n McastEvent event = new McastEvent(McastEvent.Type.SINKS_ADDED, previousSubject, currentSubject);\n cordMcast.listener.event(event);\n synchronized (forwardMap) {\n forwardMap.wait(WAIT_TIMEOUT);\n }\n\n // ForwardMap will contain the operation \"Add\" in the flowObjective. None -> CP_B\n assertNotNull(forwardMap.get(DEVICE_ID_OF_A));\n assertEquals(forwardMap.get(DEVICE_ID_OF_A).op(), Objective.Operation.ADD);\n\n // Output port number will be PORT_B i.e. 16\n Collection<TrafficTreatment> traffictreatMentCollection =\n nextMap.get(DEVICE_ID_OF_A).next();\n assertEquals(1, traffictreatMentCollection.size());\n OutputInstruction output = null;\n for (TrafficTreatment trafficTreatment : traffictreatMentCollection) {\n output = outputPort(trafficTreatment);\n }\n assertNotNull(output);\n assertEquals(PORT_B, output.port());\n // Checking the group ip address\n TrafficSelector trafficSelector = forwardMap.get(DEVICE_ID_OF_A).selector();\n IPCriterion ipCriterion = ipAddress(trafficSelector);\n assertNotNull(ipCriterion);\n assertEquals(MULTICAST_IP, ipCriterion.ip().address());\n //checking the vlan criteria\n TrafficSelector meta = forwardMap.get(DEVICE_ID_OF_A).meta();\n VlanIdCriterion vlanIdCriterion = vlanId(meta, Criterion.Type.VLAN_VID);\n assertNotNull(vlanIdCriterion); //since vlanEnabled flag is true\n assertEquals(cordMcast.assignedVlan(), vlanIdCriterion.vlanId());\n VlanIdCriterion innerVlanIdCriterion = vlanId(meta, Criterion.Type.INNER_VLAN_VID);\n assertNotNull(innerVlanIdCriterion);\n assertEquals(cordMcast.assignedInnerVlan(), innerVlanIdCriterion.vlanId());\n }", "public static void main(String[] args) throws BadServerResponse, XenAPIException, XmlRpcException {\n\t\tString masterName = \"vmaster\";\r\n\t\tString vmNamePrefix = \"vslave\";\r\n\t\tint clusterSize = 2;\r\n\t/*\tVMResource vslave1 = new VMResource(\"vslave1\");\r\n\t\tVMResource vslave2 = new VMResource(\"vslave2\");*/\r\n\t\t//vslave1.setVMMemory(1024*MEMORY_UNIT);\r\n/*\t\tvslave1.changeVMCpu(2);\r\n\t\tvslave2.changeVMCpu(2);*/\r\n\t\tif(startLHadoop(masterName, vmNamePrefix, clusterSize))\r\n\t\t\tSystem.out.println(\"complete!\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"not started!\");\r\n\t}", "@Test\n public void unstartedSenderShouldNotAddReceivedEventsIntoTmpDropped() {\n Integer lnPort = vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(2));\n Integer nyPort = vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(1, lnPort));\n\n // create receiver on site-ln and site-ny\n createCacheInVMs(lnPort, vm2, vm4);\n createReceiverInVMs(vm2, vm4);\n createCacheInVMs(nyPort, vm3, vm5);\n createReceiverInVMs(vm3, vm5);\n\n // create senders on site-ny, Note: sender-id is its destination, i.e. ny\n vm2.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n vm4.invoke(() -> WANTestBase.createSender(\"ny\", 1, true, 100, 10, false, false, null, true));\n\n // create senders on site-ln, Note: sender-id is its destination, i.e. ln\n vm3.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n vm5.invoke(() -> WANTestBase.createSender(\"ln\", 2, true, 100, 10, false, false, null, true));\n\n // create PR on site-ny\n vm2.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n vm4.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ny\", 1, 100,\n isOffHeap()));\n\n // create PR on site-ln\n vm3.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n vm5.invoke(() -> WANTestBase.createPartitionedRegion(getTestMethodName() + \"_PR\", \"ln\", 1, 100,\n isOffHeap()));\n\n // start sender on site-ny\n startSenderInVMs(\"ny\", vm2, vm4);\n\n // do 100 puts on site-ln\n vm3.invoke(() -> WANTestBase.doPutsFrom(getTestMethodName() + \"_PR\", 0, 100));\n\n // verify site-ny have 100 entries\n vm3.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n vm5.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 100));\n\n // verify tmpDroppedEvents should be 100 at site-ln, because the sender is not started yet\n vm3.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 100));\n vm5.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 100));\n\n // verify site-ln has not received the events from site-ny yet\n vm2.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 0));\n vm4.invoke(() -> WANTestBase.validateRegionSize(getTestMethodName() + \"_PR\", 0));\n\n // start sender on site-ln\n startSenderInVMsAsync(\"ln\", vm3, vm5);\n\n // verify tmpDroppedEvents should be 0 now at site-ny\n vm3.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 0));\n vm5.invoke(() -> WANTestBase.verifyTmpDroppedEventSize(\"ln\", 0));\n\n vm3.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ln\"));\n vm5.invoke(() -> WANTestBase.validateParallelSenderQueueAllBucketsDrained(\"ln\"));\n }", "public void markVlanHostInterface1Merge() throws JNCException {\n markLeafMerge(\"vlanHostInterface1\");\n }", "private void assertLocalAndRemote(RestClient local, RestClient remote, int localGeometries, int remoteGeometries, String param)\n throws IOException {\n final Request mvtRequest = new Request(HttpPost.METHOD_NAME, \"test/_mvt/location/0/0/0\" + param);\n final VectorTile.Tile localTile = execute(local, mvtRequest);\n assertThat(getLayer(localTile, \"hits\").getFeaturesCount(), Matchers.equalTo(localGeometries));\n assertEquals(localGeometries, countFeaturesWithTag(getLayer(localTile, \"hits\"), \"_index\", \"test\"));\n final VectorTile.Tile remoteTile = execute(remote, mvtRequest);\n assertThat(getLayer(remoteTile, \"hits\").getFeaturesCount(), Matchers.equalTo(remoteGeometries));\n assertEquals(remoteGeometries, countFeaturesWithTag(getLayer(remoteTile, \"hits\"), \"_index\", \"test\"));\n // call to both clusters\n final Request mvtCCSRequest = new Request(HttpPost.METHOD_NAME, \"/test,other:test/_mvt/location/0/0/0\" + param);\n final VectorTile.Tile ccsTile = execute(local, mvtCCSRequest);\n assertThat(getLayer(ccsTile, \"hits\").getFeaturesCount(), Matchers.equalTo(localGeometries + remoteGeometries));\n assertEquals(localGeometries, countFeaturesWithTag(getLayer(ccsTile, \"hits\"), \"_index\", \"test\"));\n assertEquals(remoteGeometries, countFeaturesWithTag(getLayer(ccsTile, \"hits\"), \"_index\", \"other:test\"));\n }", "HostingMode hostingMode();", "private boolean areBridged(Host source, Host destination) throws ConfigException {\n\n //If the locations is not the same we don't even check vlan or subnets\n if (Collections.disjoint(source.locations(), destination.locations())) {\n return false;\n }\n\n if (!source.vlan().equals(VlanId.NONE) && !destination.vlan().equals(VlanId.NONE)\n && !source.vlan().equals(destination.vlan())) {\n return false;\n }\n\n InterfaceConfig interfaceCfgH1 = networkConfigNib.getConfig(source.location(), InterfaceConfig.class);\n InterfaceConfig interfaceCfgH2 = networkConfigNib.getConfig(destination.location(), InterfaceConfig.class);\n if (interfaceCfgH1 != null && interfaceCfgH2 != null) {\n\n //following can be optimized but for clarity is left as is\n Interface intfH1 = interfaceCfgH1.getInterfaces().stream().findFirst().get();\n Interface intfH2 = interfaceCfgH2.getInterfaces().stream().findFirst().get();\n\n if (source.vlan().equals(VlanId.NONE) && !destination.vlan().equals(VlanId.NONE)) {\n return intfH1.vlanUntagged().equals(destination.vlan()) ||\n intfH1.vlanNative().equals(destination.vlan());\n }\n\n if (!source.vlan().equals(VlanId.NONE) && destination.vlan().equals(VlanId.NONE)) {\n return intfH2.vlanUntagged().equals(source.vlan()) ||\n intfH2.vlanNative().equals(source.vlan());\n }\n\n if (!intfH1.vlanNative().equals(intfH2.vlanNative())) {\n return false;\n }\n\n if (!intfH1.vlanUntagged().equals(intfH2.vlanUntagged())) {\n return false;\n }\n\n List<InterfaceIpAddress> intersection = new ArrayList<>(intfH1.ipAddressesList());\n intersection.retainAll(intfH2.ipAddressesList());\n if (intersection.size() == 0) {\n return false;\n }\n }\n return true;\n }", "Switch getHostSwitch();", "public void main2() throws StaleProxyException, InterruptedException\n {\n try\n {\n AgentController Agent1=main1.createNewAgent(\"Agent1\",\"players.Agent1\",null);\n Agent1.start();\n AgentController Agent2=main1.createNewAgent(\"Agent2\",\"players.Agent2\",null);\n Agent2.start();\n AgentController Agent3=main1.createNewAgent(\"Agent3\",\"players.Agent3\",null);\n Agent3.start();\n AgentController Agent4=main1.createNewAgent(\"Agent4\",\"players.Agent4\",null);\n Agent4.start();\n AgentController Agent5=main1.createNewAgent(\"Agent5\",\"players.Agent5\",null);\n Agent5.start();\n AgentController Agent6=main1.createNewAgent(\"Agent6\",\"players.Agent6\",null);\n Agent6.start();\n AgentController Agent7=main1.createNewAgent(\"Agent7\",\"players.Agent7\",null);\n Agent7.start();\n AgentController Agent8=main1.createNewAgent(\"Agent8\",\"players.Agent8\",null);\n Agent8.start();\n AgentController Agent9=main1.createNewAgent(\"Agent9\",\"players.Agent9\",null);\n Agent9.start();\n AgentController Agent10=main1.createNewAgent(\"Agent10\",\"players.Agent10\",null);\n Agent10.start();\n AgentController Agent11=main1.createNewAgent(\"Agent11\",\"players.Agent11\",null);\n Agent11.start();\n AgentController Agent12=main1.createNewAgent(\"Agent12\",\"players.Agent12\",null);\n Agent12.start();\n AgentController Agent13=main1.createNewAgent(\"Agent13\",\"players.Agent13\",null);\n Agent13.start();\n AgentController Agent14=main1.createNewAgent(\"Agent14\",\"players.Agent14\",null);\n Agent14.start();\n AgentController Agent15=main1.createNewAgent(\"Agent15\",\"players.Agent15\",null);\n Agent15.start();\n AgentController Agent16=main1.createNewAgent(\"Agent16\",\"players.Agent16\",null);\n Agent16.start();\n AgentController Main=main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n }\n catch (StaleProxyException e)\n {\n e.printStackTrace();\n }\n\n display();\n display();\n display();\n display();\n //showResualt();\n }", "boolean updateBase(TRemoteHostOperateVo source, TRemoteHostOperateVo target);", "public static void main(String[] args)\n {\n Client oneClient;\n\n try\n {\n oneClient = new Client();\n\n // We will try to create a new virtual machine. The first thing we\n // need is an OpenNebula virtual machine template.\n\n // This VM template is a valid one, but it will probably fail to run\n // if we try to deploy it; the path for the image is unlikely to\n // exist.\n String vmTemplate =\n \"NAME = vm_from_java CPU = 0.1 MEMORY = 64\\n\"\n + \"#DISK = [\\n\"\n + \"#\\tsource = \\\"/home/user/vmachines/ttylinux/ttylinux.img\\\",\\n\"\n + \"#\\ttarget = \\\"hda\\\",\\n\"\n + \"#\\treadonly = \\\"no\\\" ]\\n\"\n + \"# NIC = [ NETWORK = \\\"Non existing network\\\" ]\\n\"\n + \"FEATURES = [ acpi=\\\"no\\\" ]\";\n\n // You can try to uncomment the NIC line, in that case OpenNebula\n // won't be able to insert this machine in the database.\n\n System.out.println(\"Virtual Machine Template:\\n\" + vmTemplate);\n System.out.println();\n\n System.out.print(\"Trying to allocate the virtual machine... \");\n OneResponse rc = VirtualMachine.allocate(oneClient, vmTemplate);\n\n if( rc.isError() )\n {\n System.out.println( \"failed!\");\n throw new Exception( rc.getErrorMessage() );\n }\n\n // The response message is the new VM's ID\n int newVMID = Integer.parseInt(rc.getMessage());\n System.out.println(\"ok, ID \" + newVMID + \".\");\n\n // We can create a representation for the new VM, using the returned\n // VM-ID\n VirtualMachine vm = new VirtualMachine(newVMID, oneClient);\n\n // Let's hold the VM, so the scheduler won't try to deploy it\n System.out.print(\"Trying to hold the new VM... \");\n rc = vm.hold();\n\n if(rc.isError())\n {\n System.out.println(\"failed!\");\n throw new Exception( rc.getErrorMessage() );\n }\n else\n System.out.println(\"ok.\");\n\n // And now we can request its information.\n rc = vm.info();\n\n if(rc.isError())\n throw new Exception( rc.getErrorMessage() );\n\n System.out.println();\n System.out.println(\n \"This is the information OpenNebula stores for the new VM:\");\n System.out.println(rc.getMessage() + \"\\n\");\n\n // This VirtualMachine object has some helpers, so we can access its\n // attributes easily (remember to load the data first using the info\n // method).\n System.out.println(\"The new VM \" +\n vm.getName() + \" has status: \" + vm.status());\n\n // And we can also use xpath expressions\n System.out.println(\"The path of the disk is\");\n System.out.println( \"\\t\" + vm.xpath(\"template/disk/source\") );\n\n // Let's delete the VirtualMachine object.\n vm = null;\n\n // The reference is lost, but we can ask OpenNebula about the VM\n // again. This time however, we are going to use the VM pool\n VirtualMachinePool vmPool = new VirtualMachinePool(oneClient);\n // Remember that we have to ask the pool to retrieve the information\n // from OpenNebula\n rc = vmPool.info();\n\n if(rc.isError())\n throw new Exception( rc.getErrorMessage() );\n\n System.out.println(\n \"\\nThese are all the Virtual Machines in the pool:\");\n for ( VirtualMachine vmachine : vmPool )\n {\n System.out.println(\"\\tID : \" + vmachine.getId() +\n \", Name : \" + vmachine.getName() );\n\n // Check if we have found the VM we are looking for\n if ( vmachine.getId().equals( \"\"+newVMID ) )\n {\n vm = vmachine;\n }\n }\n\n // We have also some useful helpers for the actions you can perform\n // on a virtual machine, like suspend:\n rc = vm.suspend();\n System.out.println(\"\\nTrying to suspend the VM \" + vm.getId() +\n \" (should fail)...\");\n\n // This is all the information you can get from the OneResponse:\n System.out.println(\"\\tOpenNebula response\");\n System.out.println(\"\\t Error: \" + rc.isError());\n System.out.println(\"\\t Msg: \" + rc.getMessage());\n System.out.println(\"\\t ErrMsg: \" + rc.getErrorMessage());\n\n rc = vm.terminate();\n System.out.println(\"\\nTrying to terminate the VM \" +\n vm.getId() + \"...\");\n\n System.out.println(\"\\tOpenNebula response\");\n System.out.println(\"\\t Error: \" + rc.isError());\n System.out.println(\"\\t Msg: \" + rc.getMessage());\n System.out.println(\"\\t ErrMsg: \" + rc.getErrorMessage());\n\n\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n }\n\n\n }", "protected static boolean isVmFree(Guid vmId, java.util.ArrayList<String> messages) {\n boolean returnValue;\n\n // check that there isn't another user already attached to this VM:\n if (vmAssignedToUser(vmId, messages)) {\n returnValue = false;\n }\n\n // check that vm can be run:\n else if (!canRunPoolVm(vmId, messages)) {\n returnValue = false;\n }\n\n // check vm images:\n else {\n ValidationResult vmDuringSnapshotResult =\n new SnapshotsValidator().vmNotDuringSnapshot(vmId);\n if (!vmDuringSnapshotResult.isValid()) {\n messages.add(vmDuringSnapshotResult.getMessage().name());\n returnValue = false;\n } else {\n List<Disk> disks = DbFacade.getInstance().getDiskDao().getAllForVm(vmId);\n List<DiskImage> vmImages = ImagesHandler.filterImageDisks(disks, true, true);\n Guid storageDomainId = vmImages.size() > 0 ? vmImages.get(0).getstorage_ids().get(0) : Guid.Empty;\n VM vm = DbFacade.getInstance().getVmDao().get(vmId);\n returnValue =\n ImagesHandler.PerformImagesChecks(vm,\n messages,\n vm.getstorage_pool_id(),\n storageDomainId,\n false,\n true,\n false,\n false,\n true,\n false,\n !Guid.Empty.equals(storageDomainId), true, disks);\n }\n\n if (!returnValue) {\n if (messages != null) {\n messages.add(VdcBllMessages.VAR__TYPE__DESKTOP_POOL.toString());\n messages.add(VdcBllMessages.VAR__ACTION__ATTACHE_DESKTOP_TO.toString());\n }\n }\n }\n\n return returnValue;\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic boolean migrateVM(String newhost, ServiceInstance sInstance, String vmName) throws Exception{\n\t\tString vmname = vmName;\n\t\tString newHostName = newhost;\n\t\tFolder rootFolder = sInstance.getRootFolder();\n\t\tVirtualMachine vm = (VirtualMachine) new InventoryNavigator(\n\t\t\t\t\t\t\t\t\t\t\t\t\trootFolder).searchManagedEntity(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"VirtualMachine\", vmname);\n\t\t\n\t\tHostSystem newHost = (HostSystem) new InventoryNavigator(\n\t\t\t\t\t\t\t\t\t\t\trootFolder).searchManagedEntity(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"HostSystem\", newHostName);\n\t\t\n\t\tComputeResource cr = (ComputeResource) newHost.getParent();\n\t\tString[] checks = new String[] {\"cpu\", \"software\"};\n\t\tHostVMotionCompatibility[] vmcs =\n\t\t\t\t\t\t\t\t\t\t\tsInstance.queryVMotionCompatibility(vm, new HostSystem[] \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{newHost},checks );\n\n\t\tString[] comps = vmcs[0].getCompatibility();\n\t\tif(checks.length != comps.length)\n\t\t{\n\t\t\tSystem.out.println(\"CPU/software NOT compatible. Exit.\");\n\t\t\tsInstance.getServerConnection().logout();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(vm.getSummary().runtime.powerState==vm.getSummary().runtime.powerState.poweredOn){\n\t\t\tTask task =vm.powerOffVM_Task();\n\t\t\t\tif(task.waitForTask()==Task.SUCCESS){\n\t\t\t\t\tSystem.out.println(\"PoweredOff\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"Error while powering off the vm.\");\n\t\t\t\t}\n\t\t}\n\t\t\n\t\tTask task1 = vm.migrateVM_Task(cr.getResourcePool(), newHost,\n\t\t\t\t\t\t\t\t\t\t\t\tVirtualMachineMovePriority.highPriority, \n\t\t\t\t\t\t\t\t\t\t\t\t\t\tVirtualMachinePowerState.poweredOff);\n\n\t\tif(task1.waitForMe()==Task.SUCCESS)\n\t\t{\n\t\t\tSystem.out.println(\" Migrated\");\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Migrated failed!\");\n\t\t\tTaskInfo info = task1.getTaskInfo();\n\t\t\tSystem.out.println(info.getError().getFault());\n\t\t\treturn false;\n\t\t}\n\t}", "protected boolean handleHibernatedVm(VdcActionType parentCommand, boolean startPollingTasks) {\n String[] strings = getVm().gethibernation_vol_handle().split(\",\");\n List<Guid> guids = new LinkedList<Guid>();\n for (String string : strings) {\n guids.add(new Guid(string));\n }\n Guid[] imagesList = guids.toArray(new Guid[0]);\n if (imagesList.length == 6) {\n // get all vm disks in order to check post zero - if one of the\n // disks is marked with wipe_after_delete\n boolean postZero =\n LinqUtils.filter(getDiskDao().getAllForVm(getVm().getId()),\n new Predicate<Disk>() {\n @Override\n public boolean eval(Disk disk) {\n return disk.isWipeAfterDelete();\n }\n }).size() > 0;\n\n // delete first image\n // the next 'DeleteImageGroup' command should also take care of the\n // image removal:\n VDSReturnValue vdsRetValue1 = runVdsCommand(\n VDSCommandType.DeleteImageGroup,\n new DeleteImageGroupVDSCommandParameters(imagesList[1], imagesList[0], imagesList[2],\n postZero, false, getVm().getvds_group_compatibility_version().toString()));\n\n if (!vdsRetValue1.getSucceeded()) {\n return false;\n }\n\n Guid guid1 =\n createTask(vdsRetValue1.getCreationInfo(), parentCommand, VdcObjectType.Storage, imagesList[0]);\n getTaskIdList().add(guid1);\n\n // delete second image\n // the next 'DeleteImageGroup' command should also take care of the\n // image removal:\n VDSReturnValue vdsRetValue2 = runVdsCommand(\n VDSCommandType.DeleteImageGroup,\n new DeleteImageGroupVDSCommandParameters(imagesList[1], imagesList[0], imagesList[4],\n postZero, false, getVm().getvds_group_compatibility_version().toString()));\n\n if (!vdsRetValue2.getSucceeded()) {\n if (startPollingTasks) {\n updateTasksWithActionParameters();\n AsyncTaskManager.getInstance().StartPollingTask(guid1);\n }\n return false;\n }\n\n Guid guid2 = createTask(vdsRetValue2.getCreationInfo(), parentCommand);\n getTaskIdList().add(guid2);\n\n if (startPollingTasks) {\n updateTasksWithActionParameters();\n AsyncTaskManager.getInstance().StartPollingTask(guid1);\n AsyncTaskManager.getInstance().StartPollingTask(guid2);\n }\n }\n\n return true;\n }", "protected boolean hostsEqual(URL paramURL1, URL paramURL2) {\n/* 461 */ InetAddress inetAddress1 = getHostAddress(paramURL1);\n/* 462 */ InetAddress inetAddress2 = getHostAddress(paramURL2);\n/* */ \n/* 464 */ if (inetAddress1 != null && inetAddress2 != null) {\n/* 465 */ return inetAddress1.equals(inetAddress2);\n/* */ }\n/* 467 */ if (paramURL1.getHost() != null && paramURL2.getHost() != null) {\n/* 468 */ return paramURL1.getHost().equalsIgnoreCase(paramURL2.getHost());\n/* */ }\n/* 470 */ return (paramURL1.getHost() == null && paramURL2.getHost() == null);\n/* */ }", "public abstract void execute(VirtualMachine vm);", "protected abstract void discoverIpInterfaces(Host host, List<IpInterface> oldIpInterfaces);", "@Test\n public void testLockBatchParticipantsUpdate() throws Exception {\n final String rgnName = getUniqueName();\n Region rgn = getCache().createRegion(rgnName, getRegionAttributes());\n rgn.create(\"key\", null);\n\n Host host = Host.getHost(0);\n VM vm0 = host.getVM(0);\n VM vm1 = host.getVM(1);\n VM vm2 = host.getVM(2);\n SerializableRunnable initRegions =\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: initial configuration\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().createRegion(rgnName, getRegionAttributes());\n rgn1.create(\"key\", null);\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n };\n vm0.invoke(initRegions);\n vm1.invoke(initRegions);\n rgn.put(\"key\", \"val1\");\n\n // Connect vm2 also since it may have been shutdown when logPerTest\n // is turned on\n vm2.invoke(new SerializableRunnable(\"connect vm2 if not connected\") {\n @Override\n public void run() {\n getCache();\n }\n });\n\n // Make VM0 the Grantor\n vm0.invoke(new SerializableRunnable(\"testLockBatchParticipantsUpdate: remote grantor init\") {\n @Override\n public void run() {\n try {\n Region rgn1 = getCache().getRegion(rgnName);\n final CacheTransactionManager txMgr2 = getCache().getCacheTransactionManager();\n assertEquals(\"val1\", rgn1.getEntry(\"key\").getValue());\n txMgr2.begin();\n rgn1.put(\"key\", \"val2\");\n txMgr2.commit();\n assertNotNull(TXLockService.getDTLS());\n assertTrue(TXLockService.getDTLS().isLockGrantor());\n } catch (CacheException e) {\n fail(\"While performing first transaction\");\n }\n }\n });\n\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val2\", rgn.getEntry(\"key\").getValue());\n\n // Build sets of System Ids and set them up on VM0 for future batch member checks\n HashSet txMembers = new HashSet(4);\n txMembers.add(getSystemId());\n txMembers.add(vm0.invoke(TXDistributedDUnitTest::getSystemId));\n vm0.invoke(() -> TXDistributedDUnitTest.setPreTXSystemIds(txMembers));\n txMembers.add(vm2.invoke(TXDistributedDUnitTest::getSystemId));\n vm0.invoke(() -> TXDistributedDUnitTest.setPostTXSystemIds(txMembers));\n\n // Don't include the tx host in the batch member set(s)\n Serializable vm1HostId = vm1.invoke(TXDistributedDUnitTest::getSystemId);\n vm0.invoke(() -> TXDistributedDUnitTest.setTXHostSystemId(vm1HostId));\n\n // Create a TX on VM1 (such that it will ask for locks on VM0) that uses the callbacks\n // to pause and give us time to start a GII process on another VM\n vm1.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: slow tx (one that detects new member)\") {\n @Override\n public void run() {\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n\n PausibleTX pauseTXRunnable = new PausibleTX();\n pauseTXRunnable.rgnName = rgnName;\n pauseTXRunnable.myCache = getCache();\n pauseTXRunnable.key = \"key\";\n pauseTXRunnable.value = \"val3\";\n new Thread(pauseTXRunnable, \"PausibleTX Thread\").start();\n synchronized (PausibleTX.class) {\n while (!pauseTXRunnable.getIsRunning()) {\n try {\n PausibleTX.class.wait();\n } catch (InterruptedException ie) {\n fail(\"Did not expect \" + ie);\n }\n }\n }\n }\n });\n\n // Verify that the lock batch exists VM0 and has the size we expect\n vm0.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: Verify lock batch exists on VM0 with expected size\") {\n @Override\n public void run() {\n getCache().getRegion(rgnName);\n TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS();\n assertNotNull(dtls);\n assertTrue(dtls.isLockGrantor());\n DLockService dLockSvc = dtls.getInternalDistributedLockService();\n assertNotNull(TXDistributedDUnitTest.txHostId);\n DLockBatch[] batches = dLockSvc.getGrantor()\n .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId);\n assertEquals(batches.length, 1);\n TXLockBatch txLockBatch = (TXLockBatch) batches[0];\n assertNotNull(txLockBatch);\n assertNotNull(TXDistributedDUnitTest.preTXSystemIds);\n assertTrue(\n \"Members in lock batch \" + txLockBatch.getParticipants() + \" not the same as \"\n + TXDistributedDUnitTest.preTXSystemIds,\n txLockBatch.getParticipants().equals(TXDistributedDUnitTest.preTXSystemIds));\n }\n });\n\n // Start a GII process on VM2\n vm2.invoke(new SerializableRunnable(\"testLockBatchParticipantsUpdate: start GII\") {\n @Override\n public void run() {\n try {\n AttributesFactory factory = new AttributesFactory();\n factory.setScope(Scope.DISTRIBUTED_ACK);\n factory.setEarlyAck(false);\n factory.setDataPolicy(DataPolicy.REPLICATE);\n getCache().createRegion(rgnName, factory.create());\n } catch (CacheException e) {\n Assert.fail(\"While creating region\", e);\n }\n }\n });\n\n // Notify TX on VM1 so that it can continue\n vm1.invoke(\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: Notfiy VM1 TX to continue\") {\n @Override\n public void run() {\n synchronized (PausibleTX.class) {\n // Notify VM1 that it should proceed to the TX send\n PausibleTX.class.notifyAll();\n // Wait until VM1 has sent the TX\n try {\n PausibleTX.class.wait();\n } catch (InterruptedException ie) {\n fail(\"Did not expect \" + ie);\n }\n }\n }\n });\n\n // Verify that the batch on VM0 has added VM2 into the set\n vm0.invoke(new SerializableRunnable(\n \"testLockBatchParticipantsUpdate: Verify lock batch contains VM2\") {\n @Override\n public void run() {\n getCache().getRegion(rgnName);\n TXLockServiceImpl dtls = (TXLockServiceImpl) TXLockService.getDTLS();\n assertNotNull(dtls);\n assertTrue(dtls.isLockGrantor());\n DLockService dLockSvc = dtls.getInternalDistributedLockService();\n assertNotNull(TXDistributedDUnitTest.txHostId);\n DLockBatch[] batches = dLockSvc.getGrantor()\n .getLockBatches((InternalDistributedMember) TXDistributedDUnitTest.txHostId);\n assertEquals(batches.length, 1);\n TXLockBatch txLockBatch = (TXLockBatch) batches[0];\n assertNotNull(txLockBatch);\n assertNotNull(TXDistributedDUnitTest.preTXSystemIds);\n assertTrue(\n \"Members in lock batch \" + txLockBatch.getParticipants() + \" not the same as \"\n + TXDistributedDUnitTest.postTXSystemIds,\n txLockBatch.getParticipants().equals(TXDistributedDUnitTest.postTXSystemIds));\n }\n });\n // fix for bug 38843 causes the DTLS to be created in every TX participant\n assertNotNull(TXLockService.getDTLS());\n assertFalse(TXLockService.getDTLS().isLockGrantor());\n assertEquals(\"val3\", rgn.getEntry(\"key\").getValue());\n\n\n // Notify TX on VM1 that it can go ahead and complete the TX\n vm1.invoke(\n new SerializableRunnable(\"testLockBatchParticipantsUpdate: Notfiy VM1 TX to finish\") {\n @Override\n public void run() {\n synchronized (PausibleTX.class) {\n // Notify VM1 that it should finish the TX\n PausibleTX.class.notifyAll();\n }\n }\n });\n\n\n rgn.destroyRegion();\n }", "org.jacorb.imr.HostInfo[] list_hosts();", "public void testGenerateBrokerVirtualhostAndConnectionStatistics() throws Exception\n {\n sendUsing(_test, 5, 200);\n Thread.sleep(1000);\n \n for (ManagedConnection mc : _jmxUtils.getManagedConnections(\"test\"))\n {\n assertEquals(\"Incorrect connection total\", 5, mc.getTotalMessagesReceived());\n assertEquals(\"Incorrect connection data\", 1000, mc.getTotalDataReceived());\n\t assertTrue(\"Connection statistics should be enabled\", mc.isStatisticsEnabled());\n }\n \n ManagedBroker vhost = _jmxUtils.getManagedBroker(\"test\");\n assertEquals(\"Incorrect vhost data\", 5, vhost.getTotalMessagesReceived());\n assertEquals(\"Incorrect vhost data\", 1000, vhost.getTotalDataReceived());\n assertTrue(\"Vhost statistics should be enabled\", vhost.isStatisticsEnabled());\n\n assertEquals(\"Incorrect server total messages\", 5, _jmxUtils.getServerInformation().getTotalMessagesReceived());\n assertEquals(\"Incorrect server total data\", 1000, _jmxUtils.getServerInformation().getTotalDataReceived());\n assertTrue(\"Server statistics should be enabled\", _jmxUtils.getServerInformation().isStatisticsEnabled());\n }", "public void setHost(com.vmware.converter.DistributedVirtualSwitchHostMemberConfigSpec[] host) {\r\n this.host = host;\r\n }", "public void groupHostObjects(int addr) {\n\t\tfor(List<String> pkt : pkts) {\n\t\t\tif(!hosts.contains(pkt.get(addr)) && (!webPages.contains(pkt.get(addr)))) {\n\t\t\t\thosts.add(pkt.get(addr));\n\t\t\t}\n\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n protected void crossCheckReplicaStateWithLiveNodes(\n List<String> liveNodes, NamedList<Object> collectionProps) {\n for (Map.Entry<String, Object> next : collectionProps) {\n Map<String, Object> collMap = (Map<String, Object>) next.getValue();\n Map<String, Object> shards = (Map<String, Object>) collMap.get(\"shards\");\n for (Object nextShard : shards.values()) {\n Map<String, Object> shardMap = (Map<String, Object>) nextShard;\n Map<String, Object> replicas = (Map<String, Object>) shardMap.get(\"replicas\");\n for (Object nextReplica : replicas.values()) {\n Map<String, Object> replicaMap = (Map<String, Object>) nextReplica;\n if (Replica.State.getState((String) replicaMap.get(ZkStateReader.STATE_PROP))\n != Replica.State.DOWN) {\n // not down, so verify the node is live\n String node_name = (String) replicaMap.get(ZkStateReader.NODE_NAME_PROP);\n if (!liveNodes.contains(node_name)) {\n // node is not live, so this replica is actually down\n replicaMap.put(ZkStateReader.STATE_PROP, Replica.State.DOWN.toString());\n }\n }\n }\n }\n }\n }", "@Test\n public void testAddingSinkEventVlanEnabled() throws InterruptedException {\n init(true, VlanId.vlanId(\"4000\"), null);\n\n Set<ConnectPoint> sinks2Cp = new HashSet<ConnectPoint>(Arrays.asList(CONNECT_POINT_B));\n Map<HostId, Set<ConnectPoint>> sinks2 = ImmutableMap.of(HOST_ID_NONE, sinks2Cp);\n\n //Adding the details to create different routes\n previousSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks);\n currentSubject = McastRouteUpdate.mcastRouteUpdate(route1, sources, sinks2);\n // Creating new mcast event for adding sink\n McastEvent event = new McastEvent(McastEvent.Type.SINKS_ADDED, previousSubject, currentSubject);\n cordMcast.listener.event(event);\n synchronized (forwardMap) {\n forwardMap.wait(WAIT_TIMEOUT);\n }\n // ForwardMap will contain the operation \"Add\" in the flowObjective. None -> CP_B\n assertNotNull(forwardMap.get(DEVICE_ID_OF_A));\n assertEquals(forwardMap.get(DEVICE_ID_OF_A).op(), Objective.Operation.ADD);\n\n // Output port number will be PORT_B i.e. 16\n Collection<TrafficTreatment> traffictreatMentCollection =\n nextMap.get(DEVICE_ID_OF_A).next();\n assertEquals(1, traffictreatMentCollection.size());\n OutputInstruction output = null;\n for (TrafficTreatment trafficTreatment : traffictreatMentCollection) {\n output = outputPort(trafficTreatment);\n }\n assertNotNull(output);\n assertEquals(PORT_B, output.port());\n // Checking the group ip address\n TrafficSelector trafficSelector = forwardMap.get(DEVICE_ID_OF_A).selector();\n IPCriterion ipCriterion = ipAddress(trafficSelector);\n assertNotNull(ipCriterion);\n assertEquals(MULTICAST_IP, ipCriterion.ip().address());\n //checking the vlan criteria\n TrafficSelector meta = forwardMap.get(DEVICE_ID_OF_A).meta();\n VlanIdCriterion vlanIdCriterion = vlanId(meta, Criterion.Type.VLAN_VID);\n assertNotNull(vlanIdCriterion); //since vlanEnabled flag is true\n assertEquals(cordMcast.assignedVlan(), vlanIdCriterion.vlanId());\n VlanIdCriterion innerVlanIdCriterion = vlanId(meta, Criterion.Type.INNER_VLAN_VID);\n assertNull(innerVlanIdCriterion);\n }", "@Override\n public List<StaticPacketTrace> pingAll(EtherType type) {\n ImmutableList.Builder<StaticPacketTrace> tracesBuilder = ImmutableList.builder();\n hostNib.getHosts().forEach(host -> {\n List<IpAddress> ipAddresses = getIpAddresses(host, type, false);\n if (ipAddresses.size() > 0) {\n //check if the host has only local IPs of that ETH type\n boolean onlyLocalSrc = ipAddresses.size() == 1 && ipAddresses.get(0).isLinkLocal();\n hostNib.getHosts().forEach(hostToPing -> {\n List<IpAddress> ipAddressesToPing = getIpAddresses(hostToPing, type, false);\n //check if the other host has only local IPs of that ETH type\n boolean onlyLocalDst = ipAddressesToPing.size() == 1 && ipAddressesToPing.get(0).isLinkLocal();\n boolean sameLocation = Sets.intersection(host.locations(), hostToPing.locations()).size() > 0;\n //Trace is done only if they are both local and under the same location\n // or not local and if they are not the same host.\n if (((sameLocation && onlyLocalDst && onlyLocalSrc) ||\n (!onlyLocalSrc && !onlyLocalDst && ipAddressesToPing.size() > 0))\n && !host.equals(hostToPing)) {\n tracesBuilder.addAll(trace(host.id(), hostToPing.id(), type));\n }\n });\n }\n });\n return tracesBuilder.build();\n }", "private void connectToVirtualSites(int currentSite) {\n // if top row, connect to virtual top site\n if (currentSite < gridSize) {\n uf.union(currentSite, topVirtualSite);\n }\n\n // same with bottom row\n if (currentSite >= totalSites - gridSize) {\n uf.union(currentSite, bottomVirtualSite);\n }\n }", "VirtualMachine[] getPlacedVirtualMachines() {\n VirtualMachine[] vms = new VirtualMachine[mapped_vms.size()];\n mapped_vms.toArray(vms);\n return vms;\n }", "private synchronized void canAccessStreet() {\n checkRequiredSemaphores();\n for (Semaphore semaphore : requiredSemaphores) {\n try {\n semaphore.acquire();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n System.out.println(\"Car with [\" + car.start + \" to \" + car.end + \"] wanna pass the intersection.\");\n// try {\n// Thread.sleep(1000*requiredSemaphores.size());\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// }\n System.out.println(\"Car with [\" + car.start + \" to \" + car.end + \"] passes safely\");\n for (Semaphore semaphore : requiredSemaphores) {\n semaphore.release();\n }\n }", "@Test\n public void getVirtualDatacenterEmptyListWhenHasVLANsWithoutIPs()\n {\n RemoteService rs = remoteServiceGenerator.createInstance(RemoteServiceType.DHCP_SERVICE);\n VirtualDatacenter vdc = vdcGenerator.createInstance(rs.getDatacenter());\n setup(vdc.getDatacenter(), rs, vdc.getEnterprise(), vdc.getNetwork(), vdc);\n VLANNetwork vlan = vlanGenerator.createInstance(vdc.getNetwork(), rs);\n setup(vlan.getConfiguration(), vlan);\n String validURI = resolveVirtualDatacenterActionGetIPsURI(vdc.getId());\n\n ClientResponse response =\n get(validURI, SYSADMIN, SYSADMIN, IpsPoolManagementDto.MEDIA_TYPE);\n assertEquals(200, response.getStatusCode());\n }", "private static Datacenter Create_Datacenter(String name){\n\t\t// creating list of host machine \n\t\tList<Host> hostList = new ArrayList<Host>();\n\t\t// creating list of CPU for each host machine, In our simulation with choose 1 core per machine \n\t\tList<Pe> peList1 = new ArrayList<Pe>();\n\t\tint mips = 1000; // computing power of each core\n\t\t// add 1 core to each host machine \n\t\tfor (int i =0; i < VM_number; i ++ ) {\n\t\tpeList1.add(new Pe(i, new PeProvisionerSimple(mips)));\n\t\t}\n\t\t// configuring host\n\t\tint hostId=0;\n\t\tint ram = 56320; //host memory 40 GB\n\t\tlong storage = 10240000; //host storage 10000 GB\n\t\tint bw = 102400; // bandwidth 100 Gbps\n\t\t// create first host machine with 4 cores \n\t\thostList.add(\n \t\t\tnew Host(\n \t\t\t\thostId,\n \t\t\t\tnew RamProvisionerSimple(ram),\n \t\t\t\tnew BwProvisionerSimple(bw),\n \t\t\t\tstorage,\n \t\t\t\tpeList1,\n \t\t\t\tnew VmSchedulerTimeShared(peList1)\n \t\t\t)\n \t\t);\n\t\t// create another host machine with 1 cores\n\t\tList<Pe> peList2 = new ArrayList<Pe>();\n\t\t// add 1 core to each host machine \n\t\tfor (int i =0; i < VM_number; i ++ ) {\n\t\t\tpeList2.add(new Pe(i, new PeProvisionerSimple(mips)));\n\t\t\t}\n\t\thostId++;\n\n\t\thostList.add(\n \t\t\tnew Host(\n \t\t\t\thostId,\n \t\t\t\tnew RamProvisionerSimple(ram),\n \t\t\t\tnew BwProvisionerSimple(bw),\n \t\t\t\tstorage,\n \t\t\t\tpeList2,\n \t\t\t\tnew VmSchedulerTimeShared(peList2)\n \t\t\t)\n \t\t);\n\t\t\n\t // configuring datacenter \n\t\tString arch = \"x86\"; // system architecture\n\t\tString os = \"Linux\"; // operating system\n\t\tString vmm = \"Xen\";\n\t\tdouble time_zone = 10.0; // time zone this resource located\n\t\tdouble cost = 3.0; // the cost of using processing in this resource\n\t\tdouble costPerMem = 0.05;\t\t// the cost of using memory in this resource\n\t\tdouble costPerStorage = 0.001;\t// the cost of using storage in this resource\n\t\tdouble costPerBw = 0.0;\t\t\t// the cost of using bw in this resource\n\t\tLinkedList<Storage> storageList = new LinkedList<Storage>();\n\t\tDatacenterCharacteristics characteristics = new DatacenterCharacteristics(\n arch, os, vmm, hostList, time_zone, cost, costPerMem, costPerStorage, costPerBw);\n\n\t\t// creating data center \n\t\tDatacenter datacenter = null;\n\t\ttry {\n\t\t\tdatacenter = new Datacenter(name, characteristics, new VmAllocationPolicySimple(hostList), storageList, 0);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn datacenter;\n\t\t\n\t}", "@Override\n @GET\n @Path(\"/vms\")\n @Produces(\"application/json\")\n public Response getVMs() throws Exception {\n log.trace(\"getVMs() started.\");\n JSONArray json = new JSONArray();\n for (Vm vm : cluster.getVmList()) {\n JSONObject o = new JSONObject();\n String uri = String.format(\"%s/vms/%d\", rootUri, vm.getVmId());\n String vmUri = String.format(\"/providers/%d/vms/%d\", provider.getProviderId(), vm.getVmId());\n o.put(\"uri\", uri);\n o.put(\"baseUri\", vmUri);\n json.put(o);\n }\n\n log.trace(\"getVMs() finished successfully.\");\n return Response.ok(json.toString()).build();\n }", "private static boolean edgeConnectsTwoMachines(int rootOne, int rootTwo, Set<Integer> machines,\n\t\t\tSet<Integer> rootsLeadingToMachines) {\n\t\tboolean rootOne_leadsToMachine = rootsLeadingToMachines.contains(rootOne);\n\t\tboolean rootTwo_leadsToMachine = rootsLeadingToMachines.contains(rootTwo);\n\t\tboolean rootOne_isMachine = machines.contains(rootOne);\n\t\tboolean rootTwo_isMachine = machines.contains(rootTwo);\n\n\t\treturn (rootOne_leadsToMachine || rootOne_isMachine) && (rootTwo_leadsToMachine || rootTwo_isMachine);\n\t}", "@Test\n public final void testStaticTopology() {\n URL resourceUrl = this.getClass().getResource(configPath + \"/loadbalancer2.conf\");\n File configFile = new File(resourceUrl.getFile());\n\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n\n try {\n String validationError = \"Static topology validation failed\";\n\n TopologyProvider topologyProvider = LoadBalancerConfiguration.getInstance().getTopologyProvider();\n\n String clusterId = \"app-server-cluster1\";\n Cluster cluster1 = topologyProvider.getClusterByClusterId(clusterId);\n Assert.assertNotNull(String.format(\"%s, cluster not found: [cluster] %s\", validationError, clusterId), cluster1);\n Assert.assertEquals(String.format(\"%s, tenant range is not valid: [cluster] %s\", validationError, clusterId), cluster1.getTenantRange(), \"1-100\");\n\n String hostName = \"cluster1.appserver.foo.org\";\n Assert.assertTrue(String.format(\"%s, hostname not found: [hostname] %s\", validationError, hostName), hostNameExist(cluster1, hostName));\n\n hostName = \"cluster1.org\";\n Assert.assertTrue(String.format(\"%s, hostname not found: [hostname] %s\", validationError, hostName), hostNameExist(cluster1, hostName));\n Assert.assertEquals(String.format(\"%s, algorithm not valid\", validationError), \"round-robin\", cluster1.getLoadBalanceAlgorithmName());\n\n String memberId = \"m1\";\n Member m1 = cluster1.getMember(memberId);\n Assert.assertNotNull(String.format(\"%s, member not found: [member] %s\", validationError, memberId), m1);\n Assert.assertEquals(String.format(\"%s, member ip not valid\", validationError), \"10.0.0.10\", m1.getHostName());\n\n int proxyPort = 80;\n Port m1Http = m1.getPort(proxyPort);\n Assert.assertNotNull(String.format(\"%s, port not found: [member] %s [proxy-port] %d\", validationError, memberId, proxyPort), m1Http);\n Assert.assertEquals(String.format(\"%s, port value not valid: [member] %s [proxy-port] %d\", validationError, memberId, proxyPort), 8080, m1Http.getValue());\n Assert.assertEquals(String.format(\"%s, port proxy not valid: [member] %s [proxy-port] %d\", validationError, memberId, proxyPort), 80, m1Http.getProxy());\n\n Assert.assertFalse(String.format(\"%s, rewrite-location-header is not false\", validationError), LoadBalancerConfiguration.getInstance().isReWriteLocationHeader());\n Assert.assertTrue(String.format(\"%s, map-domain-names is not true\", validationError), LoadBalancerConfiguration.getInstance().isDomainMappingEnabled());\n\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }", "@Override\n\t public void process(PacketContext context) {\n\t InboundPacket pkt = context.inPacket();\n Ethernet ethPkt = pkt.parsed();\n HostId id = HostId.hostId(ethPkt.getDestinationMAC());\n/*\n InboundPacket pkt = context.inPacket();\n Ethernet ethPkt = pkt.parsed();\n\t MacAddress hostId = ethPkt.getSourceMAC();\n HostId id = HostId.hostId(ethPkt.getDestinationMAC());\n\t DeviceId apId = pkt.receivedFrom().deviceId();\n*/\n // Do we know who this is for? If not, flood and bail.\n\t //log.info(\"Host id : {}\",id);\n\n Host dst = hostService.getHost(id);\n\n\t\n if (dst == null) {\n ipv6process(context, pkt);\n\t \n return;\n\t }\n/*\n\t if (pkt.receivedFrom().deviceId().equals(dst.location().deviceId())) {\n if (!context.inPacket().receivedFrom().port().equals(dst.location().port())) {\n\t\t log.info(\"Rule is installed.-1\");\n\t\t log.info(\"DeviceID: dst={}\", pkt.receivedFrom().deviceId(), dst.location().deviceId());\n installRule(context, dst.location().port());\n }\n return;\n }\n\t\t\t\t\n*/\t\n \t if((stPreApId.equals(stNowApId) && stype ==1) || (stPreApId.equals(stNowApId) && stype ==2)){\n\t\t log.info(\"##############test same ap -------------[ok]\\n\");\n\t\t log.info(\"checking preApId ={}, nowApId={} \\n\",stPreApId, stNowApId);\n\t\t //TODO ::\t\t\t\n\t Set<Path> paths = topologyService.getPaths(topologyService.currentTopology(), pkt.receivedFrom().deviceId(), dst.location().deviceId()); \n\t\t if (paths.isEmpty()) {\n\t\t // If there are no paths, flood and bail.\n\t\t //flood(context);\n\t\t return;\n\t\t }\n\t\t \n\t\t Path path = pickForwardPathIfPossible(paths,pkt.receivedFrom().port());\n\t\t if (path == null) {\n\t\t log.warn(\"Don't know where to go from here {} for {} -> {}\",\n\t\t pkt.receivedFrom(), ethPkt.getSourceMAC(), ethPkt.getDestinationMAC());\n\t\t //flood(context);\n\t\t return;\n\t\t }\n\t\t log.info(\"Rule is installed.-2\");\n\t\t log.info(\"port()={}, path()={}\", pkt.receivedFrom().port(), path);\n\t\t mkList(hostId, apId, flowNum, pkt.receivedFrom().port(), ethPkt.getSourceMAC(), ethPkt.getDestinationMAC(), stype);\n\t\t saveFlowInfo(ethPkt.getDestinationMAC(),pkt.receivedFrom().deviceId(), stype);\n\t\t // stype = 0;\n\n\t }\n\n\n\t if(! stPreApId.equals(stNowApId) && stype ==3){\n\t\tif(! stNowApId.equals(\"\")){\n\t\t\tlog.info(\"##############test handover -------------[ok]\\n\");\n\t\t\tlog.info(\"checking preApId ={}, nowApId={} \\n\",stPreApId, stNowApId);\n\t\t\tlog.info(\"test : {}\",destList2.size());\n\n\t\t\t/*for(int i =0; i<destList2.size();i++){\n\t\t\t\tlog.info(\"test type 2 cnt: {}\",i);\n\t\t\t\t//if(((DeviceId)desApList2.get(i)).equals(dst.location().deviceId())){\n\t\t\t\t\t Set<Path> paths = topologyService.getPaths(topologyService.currentTopology(), pkt.receivedFrom().deviceId(), dst.location().deviceId()); \n\t\t\t\t if (paths.isEmpty()){\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t Path path = pickForwardPathIfPossible(paths, pkt.receivedFrom().port());\n\t\t\t\t if (path == null) {\n\t\t\t\t\tlog.warn(\"Don't know where to go from here\");\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t log.info(\"Rule is installed.-3\");\n\t\t\t\t log.info(\"port()={}, path()={}\", pkt.receivedFrom().port(), path);\t\n\t\t\t\t // }\n\t\t\t}*/\n\n\t\t\tfor(int i =0; i<destList1.size();i++){\n\t\t\t\tlog.info(\"test type 1 cnt: {}\",i);\n\t\t\t\t//if(((DeviceId)desApList1.get(i)).equals(dst.location().deviceId())){\n\t\t\t\t\t Set<Path> paths = topologyService.getPaths(topologyService.currentTopology(), pkt.receivedFrom().deviceId(), dst.location().deviceId());\n\t\t\t\t if (paths.isEmpty()){\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t Path path = pickForwardPathIfPossible(paths, pkt.receivedFrom().port());\n\t\t\t\t if (path == null) {\n\t\t\t\t\tlog.warn(\"Don't know where to go from here\");\n\t\t\t\t\treturn;\n\t\t\t\t }\n\t\t\t\t log.info(\"Rule is installed.-4\");\n\t\t\t\t log.info(\"port()={}, path()={}\", pkt.receivedFrom().port(), path);\t\n\t\t\t\t // }\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif (stype ==0) {\n\t\t\tlog.info(\"###-----------what is packet?\\n\");\n\t\t}\n\t\t\n\t }\n\t\tlog.info(\"#############-------------[waitting]\\n\");\n\t\t\n\t}", "public void getVisibleVirtualViews(List<Integer> list) {\n if (AbsVideoSceneMgr.this.getActiveScene() != null) {\n AbsVideoSceneMgr.this.getActiveScene().getAccessibilityVisibleVirtualViews(list);\n }\n }" ]
[ "0.5930315", "0.5919294", "0.58929795", "0.58117837", "0.57550687", "0.5744977", "0.57139546", "0.56702006", "0.557704", "0.5547124", "0.5488152", "0.5465144", "0.5412058", "0.52915764", "0.52318454", "0.5203266", "0.51873726", "0.5166983", "0.5166563", "0.5149495", "0.5137669", "0.51339334", "0.51251924", "0.51140016", "0.50963306", "0.50782114", "0.506758", "0.506283", "0.5055056", "0.5054405", "0.50516397", "0.50055975", "0.49775437", "0.49655575", "0.49616504", "0.4957225", "0.49490842", "0.49226984", "0.492143", "0.49073127", "0.48988092", "0.4896459", "0.48826924", "0.48615378", "0.48615378", "0.48490652", "0.48398262", "0.48293442", "0.48291764", "0.48239776", "0.48196062", "0.4817253", "0.48117468", "0.48082244", "0.48065263", "0.4804571", "0.47984976", "0.47853392", "0.4782938", "0.47683322", "0.47540373", "0.47524217", "0.4745967", "0.474557", "0.47308657", "0.47236875", "0.4717991", "0.47003278", "0.46996263", "0.46986267", "0.4694642", "0.4693947", "0.4684683", "0.4683776", "0.46742052", "0.4665613", "0.46646193", "0.4660978", "0.46585038", "0.46467477", "0.46448222", "0.4643653", "0.46310687", "0.46302396", "0.4629277", "0.4622288", "0.4619909", "0.4613813", "0.46071348", "0.4603507", "0.46031737", "0.45964", "0.4593588", "0.45934632", "0.4591267", "0.45906532", "0.45876968", "0.45798066", "0.45786953", "0.4577223" ]
0.5417962
12
Created by luozhihui on 2017/9/21.
public interface ProAbilityService { PageInfo findProAbilitiesByPage(ProAbilitySearch search, PageObject pageObject); boolean saveProAbility(ProAbility proAbility); List<ProAbility> findProAbilitiesById(String id); boolean updateProAbilityById(ProAbility proAbility); boolean deleteProAbilitiesById(String ids); /** * 根据查询条件不分页查询 * @param search * @return */ List<ProAbility> findProAbilitiesBySearch(ProAbilitySearch search); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\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}", "private static void cajas() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n void init() {\n }", "@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\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "private void poetries() {\n\n\t}", "private void init() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\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}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "public void mo38117a() {\n }", "public final void mo51373a() {\n }", "private void strin() {\n\n\t}", "@Override\n public void init() {}", "@Override\n protected void getExras() {\n }", "@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 public void initialize() { \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "private void init() {\n\n\n\n }", "@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}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void init() {}", "Petunia() {\r\n\t\t}", "@Override\n\tpublic void init() {\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\r\n\tpublic void init()\r\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "public void mo6081a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}" ]
[ "0.62042016", "0.6167399", "0.5958326", "0.58787596", "0.58527005", "0.58469707", "0.58469707", "0.5825521", "0.5810311", "0.5809166", "0.579823", "0.57646596", "0.5760451", "0.5752884", "0.5717128", "0.5716197", "0.5693269", "0.56904966", "0.56904966", "0.568921", "0.5688106", "0.5687308", "0.5679304", "0.5657436", "0.56515646", "0.5644941", "0.5643578", "0.56299347", "0.561483", "0.561483", "0.561483", "0.561483", "0.561483", "0.56141996", "0.5605331", "0.5605331", "0.56013596", "0.5592302", "0.55919844", "0.55919844", "0.55919844", "0.55919844", "0.55919844", "0.55919844", "0.5585939", "0.5562236", "0.5552847", "0.55485666", "0.55485666", "0.55485666", "0.5545325", "0.5545325", "0.5545325", "0.5538389", "0.552061", "0.5512155", "0.5506286", "0.5505876", "0.5503765", "0.5503765", "0.5503765", "0.54966015", "0.5494331", "0.5487184", "0.54852915", "0.54852915", "0.54793155", "0.54787093", "0.54738337", "0.5458021", "0.545592", "0.5452097", "0.54500663", "0.54498833", "0.54459345", "0.5441771", "0.54329765", "0.542264", "0.5419706", "0.541837", "0.541837", "0.541837", "0.541837", "0.541837", "0.541837", "0.541837", "0.54122037", "0.5410682", "0.54001164", "0.539445", "0.53931046", "0.53917706", "0.538757", "0.5373071", "0.5358991", "0.53579646", "0.53579646", "0.53579646", "0.53566355", "0.535354", "0.535354" ]
0.0
-1
player = new WormCharacter(width/2,length/2,10,10, width, length);
WormCharacter(int inx, int iny, int inw, int inl, int sw, int sl){ x = inx; y = iny; width = inw; length = inl; isVisible = true; screenwidth = sw; screenlength = sl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Character()\n\t{\n\t\tthis(450,810);\n\t}", "public Player(){\n this.health = 9;\n this.orientation = Orientation.FACING_NORTH;\n evaluateSprite();\n }", "public Player(int width, int height)\n {\n this.width = width;\n this.height = height;\n createImage();\n }", "public Player(){\n\t\tthis.cell = 0;\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1078, 672, 1); \n preparePlayer1();\n preparePlayer2();\n prepareTitle();\n //playmusic();\n }", "public HowToPlay()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(763, 578, 1); \n //HowToPlay play = new HowToPlay();\n }", "public Player(String name) {\r\n this.name = name;\r\n// Maxnum = 0;\r\n special = 0;\r\n index = 0;\r\n }", "public GameController(int width, int height) {\n\n // YOUR CODE HERE\n }", "public Player(int r, int c) { // contructor that makes the player object and declares the varaibles\r\n\t\t_row = r;\r\n\t\t_col = c;\r\n\t\t_isAlive = true;\r\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }", "public Player(){\r\n\r\n }", "public Player(){}", "public Player(){}", "public Player(){\n\n }", "public Player2(){\n super();\n name=\"110\";\n }", "public Game(int width, int height)\n {\n //make a panel with dimensions width by height with a black background\n this.setLayout( null );//Don't change\n this.setBackground( new Color(150,150,150 ));\n this.setPreferredSize( new Dimension( constants.getWidth(), constants.getHeight () ));//Don't change\n \n //initialize the instance variables\n over = false;\n player = new Player( (constants.getWidth())/2, (constants.getHeight())/2); //change these numbers and see what happens\n circle = new Circle( 400, 200 );\n label = new JLabel(\"Points: \" + points);\n this.add( label );\n label.setBounds(300,50,400,50);\n label.setForeground(Color.BLUE);\n label.setFont(new Font(\"Arial\",Font.BOLD,32));\n label.setHorizontalAlignment(SwingConstants.CENTER);\n projectileInitW=false;\n projectileInitA=false;\n projectileInitS=false;\n projectileInitD=false;\n this.addKeyListener(this);//allows the program to respond to key presses - Don't change\n track = new Sound(\"song.wav\");\n track.loop();\n this.setFocusable(true);//I'll tell you later - Don't change\n }", "public Character(int x, int y, int width, int type){\n\n super(x,y,width,type);\n setJFile(type);\n\n\n }", "public Player() {}", "public Player() {}", "public Player() {}", "public Player() {}", "Player createPlayer();", "public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }", "public Player() {\n\t\tsetDimensions(16, 16);\n\t\tsetLocation(512 + 16, 512 + 16);\n\t\tsetKeyBindings();\n\t}", "public int getPlayerBodyWidth();", "public Player(Orientation orientation){\n this.health = 9;\n this.orientation = orientation;\n evaluateSprite();\n\n }", "public HumanPlayer(int num){\r\n super(num);\r\n getHand().drawCards(7);\r\n }", "private void createCharacters()\n {\n Person player = new Person(PLAYER,getRoom(STARTROOM));\n characters.add(player);\n }", "public SoccerPlayer(String name, String position, TeamDB team){\n\n// Random num = new Random();\n// int randInt1;\n// int randInt2;\n// int randInt3;\n// int randInt4;\n//\n// randInt1 = num.nextInt(10); //fix for height and weight.\n// randInt2 = num.nextInt(190);\n// randInt3 = num.nextInt(300);\n// randInt4 = num.nextInt(10);\n\n playerName = name;\n playerPosition = position;\n playerTeam = new TeamDB(\"\");\n// playerUniform = randInt1;\n// playerHeight = randInt2;\n// playerWeight = randInt3;\n// playerGoals = randInt4;\n }", "public ComputerPlayer()\r\n {\r\n x = 0;\r\n }", "public Square(int w)\n {\n width = w;\n }", "public CrabWorld()\n {\n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n musica=new GreenfootSound(\"Ufo-t-balt.mp3\");\n super(560,560, 1);\n }", "Player attackingPlayer(int age, int overall, int potential) {\r\n Player newPlayer = new Player(this.nameGenerator.generateName(), age, overall, potential, 'C' , 'F');\r\n\r\n\r\n\r\n\r\n }", "public Player() {\n this(\"\", \"\", \"\");\n }", "public MyWorld()\n { \n // Create a new world with 600x550 cells with a cell size of 1x1 pixels.\n super(600, 550, 1);\n // Set the order in which Actors are drawn on the screen in this World\n setPaintOrder ( Counter.class, HighScore.class, Fader.class);\n // Counter\n counter = new Counter (\"Score: \");\n addObject (counter, 50, 30);\n // Initialize the player\n player = new Player ();\n addObject (player, 300, 530); \n platforms = new Platform[10]; \n startingPlatform = new Platform();\n addObject (startingPlatform, 300, 550);\n // Loop through as many Meteors as there are on this level\n for (int i = 0; i < platforms.length; i++)\n {\n // Initialize a new Platform object for each spot in the array\n platforms[i] = new Platform ();\n // Add each platform at a random position anywhere on the X axis and at intervals of 15 on the Y axis\n addObject (platforms[i], Greenfoot.getRandomNumber(600), platformCounter);\n platformCounter = platformCounter - 55;\n }\n }", "public Player() {\t\n\t}", "public Player(){\n reset();\n }", "public int getLength () { return spriteLength; }", "public Pawn(String player){\r\n this.player=player;\r\n\r\n }", "public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }", "Piece(int a, int b, int player)\n {\n x = a;\n y = b;\n this.player = player;\n }", "public Player() {\n hand = new Hand();\n }", "public Player(){\n default_init();\n }", "public Player(int i){\r\n playerID=i;\r\n }", "Player(float xp, float yp){\n px = xp; py = yp;\n sx = .01f;\n sy = .1f;\n score = 0;\n debug = true;\n }", "public MyWorld()\n { \n // Create a new world with 1600x1200 cells with a cell size of 1x1 pixels.\n super(1125, 1125, 1);\n //Adds the Cornucopia to the center of the Arena.\n int centerX = this.getWidth()/2;\n int centerY = this.getHeight()/2;\n this.addObject(new Cornucopia(), centerX, centerY);\n \n //The following adds the main character for the game.\n int CharacterX = 1125/2;\n int CharacterY = 770;\n this.addObject(new Character(), CharacterX, CharacterY);\n \n //The following code adds 6 \"Careers\" into the arena.\n int CareerX = 405;\n int CareerY = 328;\n this.addObject(new Careers(), CareerX, CareerY);\n this.addObject(new Careers(), CareerX+310, CareerY-5);\n this.addObject(new Careers(), CareerX+90, CareerY+430);\n this.addObject(new Careers(), CareerX+290, CareerY+405);\n this.addObject(new Careers(), CareerX+190, CareerY-60);\n \n //The following code add the remaining 17 Tributes to the arena.\n //Also, I cannot add like a normal person so there will only be twenty-three tributes. The Capitol goofed this year.\n int TribX = 660;\n int TribY = 288;\n this.addObject(new Tributes(), TribX, TribY);\n this.addObject(new Tributes(), TribX-200, TribY);\n this.addObject(new Tributes(), TribX-227, TribY+443);\n this.addObject(new Tributes(), TribX-280, TribY+400);\n this.addObject(new Tributes(), TribX-34, TribY+467);\n this.addObject(new Tributes(), TribX+86, TribY+397);\n this.addObject(new Tributes(), TribX-134, TribY-22);\n this.addObject(new Tributes(), TribX+103, TribY+82);\n this.addObject(new Tributes(), TribX+139, TribY+144);\n this.addObject(new Tributes(), TribX+150, TribY+210);\n this.addObject(new Tributes(), TribX+150, TribY+280);\n this.addObject(new Tributes(), TribX+120, TribY+342);\n this.addObject(new Tributes(), TribX-338, TribY+275);\n this.addObject(new Tributes(), TribX-319, TribY+343);\n this.addObject(new Tributes(), TribX-343, TribY+210);\n this.addObject(new Tributes(), TribX-330, TribY+150);\n this.addObject(new Tributes(), TribX-305, TribY+80);\n \n //The following code should add the forest onto the map.\n int ForX = this.getWidth()/2;\n int ForY = 900;\n this.addObject(new Forest(), ForX, ForY);\n \n //The following code should add the lake to the map.\n int LakX = 790;\n int LakY = 990;\n this.addObject(new Lake(), LakX, LakY);\n \n //The following should add the cave to the map.\n int CavX = 125;\n int CavY = 110;\n this.addObject(new Cave(), CavX, CavY);\n \n \n int actorCount = getObjects(Tributes.class).size();\n if(actorCount == 17) {\n int BeastX = 200;\n int BeastY = 200;\n this.addObject(new Beasts(), BeastX, BeastY);\n this.addObject(new Beasts(), BeastX+100, BeastY+100);\n }\n }", "public Player(String name, int x, int y) {\n \t\t\n \t\tsuper(x*Main.gridSize, y*Main.gridSize);\n \t\t\n \t\tsetMaxHP(100);\n \t\tsetMaxPP(100);\n \t\t\n \t\tsetLevel(1);\n \t\tsetExp(0);\n \t\t\n \t\tsetScene(0, 0);\n \t\t\n \t\tthis.name = name;\n \t}", "public MyWorld()\n {\n super(600, 400, 1);\n }", "void createPlayer(Player player);", "int paddleWidth();", "public Player() {\n\t\timg = new ImageIcon(\"rick.jpg\");\n\t\tplayer = img.getImage();\n\t\ttileX = 1;\n\t\ttileY = 1;\n\t\tsetCastraveti(0);\n\t}", "public SaboWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1);\n addObject(counter, 100, 380); //Add the scoreboard\n addObject(healthBar, 300, 370); //Add the health bar\n addObject(turret, getWidth()/2-5, getHeight()-turret.getImage().getWidth()); \n }", "public Player(Position position) {\n this.position = position;\n this.image = new Image(\"O\");\n }", "public Level(int width, int height)\r\n\t{\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(width,height);//CHANGE GRID COORDINATES WHILE MAKING A NEW LEVEL\r\n\t\tmakeButton = new GameSprite(Player.filename);\r\n\t\tmakeButton.setPosition(0,0);\r\n\t\tplayer = new Player(100, 420);\r\n\t\tbackground = new Background(1, grid);\r\n\t}", "public Warrior(Point3D position, int speed) {\r\n super(\"img/Ants/warrior.png\", position, speed);\r\n currentBehaviour = WarriorBehaviour.PATROL;\r\n }", "public Player(String name) {\r\n\t\tthis.name=name;\r\n\t\tinitializeGameboard();\r\n\t\tlastRedNumber=2; \r\n\t\tlastYellowNumber=2;\r\n\t\tlastGreenNumber=12;\r\n\t\tlastBlueNumber=12;\r\n\t\tnegativePoints=0;\r\n\t}", "private void addCharacters() {\r\n\t\tplayer = new GImage(\"PlayerEast.png\");\r\n\t\tplayer.scale(.75);\r\n\t\tadd(player, player.getWidth() / 2.0, level1.getY() - player.getHeight());\r\n\t\t\r\n\t\tdragon1 = new GImage(\"Dragon1.png\");\r\n\t\tadd(dragon1, getWidth() - dragon1.getWidth() * 1.5, level1.getY() - dragon1.getHeight());\r\n\t\t\r\n\t\tdragon2 = new GImage(\"Dragon2.png\");\r\n\t\tadd(dragon2, dragon2.getWidth() / 2.0, level2.getY() - dragon2.getHeight());\r\n\t\t\r\n\t\tGObject karel = new GImage(\"karel.png\");\r\n\t\tadd(karel, getWidth() - karel.getWidth(), level3.getY() - karel.getHeight());\r\n\t\t\r\n\t\tmehran = new GImage(\"EvilMehran1.png\");\r\n\t\tadd(mehran, getWidth() - mehran.getWidth() - karel.getWidth(), level3.getY() - mehran.getHeight());\r\n\t}", "public Sword(Warrior owner) {\n\t\tsuper(owner.getX(), owner.getY(), owner.getX() + length, owner.getY());\n\t\tthis.owner= owner;\n\t\tangle= 0;\n\t}", "public Player() {\r\n\t\tname=null;\r\n\t\tinitializeGameboard();\r\n\t\tlastRedNumber=2; \r\n\t\tlastYellowNumber=2;\r\n\t\tlastGreenNumber=12;\r\n\t\tlastBlueNumber=12;\r\n\t\tnegativePoints=0;\r\n }", "public Wand() {\n damage = 5;\n damageType = \"Magic\";\n }", "public static Character createCharacter () {\n\n System.out.println(\"Enter the name of your character : \");\n Scanner sc = new Scanner(System.in);\n String nameCharacter = sc.next();\n\n System.out.println(\"Enter the healpoint of your character : \");\n Scanner scan = new Scanner(System.in);\n String healPointCharacter = scan.next();\n int hpCharacter = Integer.parseInt(healPointCharacter);\n\n System.out.println(\"Enter the power of your character : \");\n Scanner sca = new Scanner(System.in);\n String powerCharacter = sca.next();\n int pcCharacter = Integer.parseInt(powerCharacter);\n\n System.out.println(\"Enter the initiative of your character : \");\n Scanner scann = new Scanner(System.in);\n String initiativeCharacter = scann.next();\n int iniCharacter = Integer.parseInt(initiativeCharacter);\n\n Character characterPlayer = new Character(nameCharacter, pcCharacter, hpCharacter, iniCharacter);\n System.out.println(\"Your character has been created with success!\");\n System.out.println(characterPlayer);\n\n return characterPlayer;\n }", "Player(int posX,int posY,int velX,int velY, int accX, int accY,int attack,int health, int numOfBomb, int sInterval){\n this.posX = posX;\n this.posY = posY;\n this.velX = velX;\n this.velY = velY;\n this.accX = accX;\n this.accY = accY;\n this.health = health;\n this.numOfBomb = numOfBomb;\n this.attack = attack;\n this.sInterval = sInterval;\n invincibleTime = 0;\n invincible = false;\n wid = 300/4;\n hei = 400/4;\n classOfObejct = 0;\n alive = true;\n }", "public Player(int x, int y, int X, int Y){\n\t\tx1 = x;\n\t\ty1 = y;\n\t\tx2 = X;\n\t\ty2 = Y;\n\t\titemsInInventory = 0;\n\t\tfor (int i = 0; i < 10; i++){\n\t\t\tinventorySpaces[i] = false;\n\t\t}\n\t\tint k = 0;\n\t\tfor (int i = 0; i < 3; i++){\n\t\t\tfor (int j = 1; j < 4; j++){\n\t\t\t\tcharAnimation[k] = new TextureRegion(charTexture, i * TILE_SIZE, j * TILE_SIZE, TILE_SIZE, TILE_SIZE);\n\t\t\t\tk++;\n\t\t\t}\n\t\t}\n\t\tcharacter = new Sprite (charAnimation[0]);\n\t\tcharacter.setPosition(x1,y1); \n\t}", "public Character(String name, int armor, int attack, int stamina, int speed, int luck) {\r\n\t\tthis.name.set(name);\r\n\t\tthis.armor.set(armor);\r\n\t\tthis.attack.set(attack);\r\n\t\tthis.stamina.set(stamina);\r\n\t\tthis.speed.set(speed);\r\n\t\tthis.luck.set(luck);\r\n\t\tthis.level.set((armor + attack + stamina + speed + luck) / 100);\r\n\t}", "public MyWorld()\n { \n super(1200, 600, 1); \n prepare();\n bienvenida();\n instrucciones();\n sonido();\n }", "public Character() {\n }", "public Player(Level level, double x, double y){\n\t\tsuper(level ,x, y);\n\t\tsprite = sprite.player;\n\t\twidth = sprite.getWidth();\n\t\theight = sprite.getHeight();\n\t\tspeed = 1.5;\n\t}", "public Player() {\n\n\t\tnumberOfPlayers++;\n\t\tthis.playerNumber = \"Player \" + numberOfPlayers; \n\t\tthis.balance = 500.00; \n\t\tthis.numberOfLoans = 0;\n\t\tthis.score = 0;\n\t\tthis.inRound = true; \n\t}", "void drawPlayer(float x, float y, float w)\n\t{\n\t\tline(x, y, x + 50, y);\n\t\tline(x, y, x, y - 50);\n\t\tline(x + 50, y, x + 50, y - 50);\n\t\tline(x, y - 50, x + 50, y - 50);\n\t\tstroke(255,0,0);\n\t}", "public Character(Player player, int characterID)\r\n {\r\n gameOver = false;\r\n this.name = player.name;\r\n this.characterID = characterID;\r\n direction = 2;\r\n speed = 1;\r\n invincible = false;\r\n }", "public Player(String name){\r\n\t\tthis.name = name;\r\n\t\tDie die = new Die();\r\n\t\tthis.die = die;\r\n\t}", "public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }", "public Player(String name) {\n setName(name);\n setId(++idCounter);\n setHealthPoints(100);\n setYourTurn(false);\n }", "public Game(String title, int width, int height) {\n this.title = title;\n this.width = width;\n this.height = height;\n running = false;\n aliens = new LinkedList<Alien>();\n bombs = new LinkedList<Bomb>();\n vec = new Vector();\n keyManager = new KeyManager();\n shotVisible = false;\n bombInAir = false;\n direction = 1;\n shot = new Shot(0, 0, false, this);\n CHANCE = 5;\n gameOver=true;\n inPause = false;\n }", "public void newPlayer() {\r\n\t\tthis.nbMonster ++;\r\n\t\tthis.nbPlayer ++;\r\n\t}", "public Player(String s) //only constructor\n {\n \tsuper(s,1,false);\n \tposition=-1;\n \tship=false;\n \tSetHealth();\n \tSetWealth();\n }", "public WallCollision(NinjaEntity player){\n this.player = player;\n }", "public Paddle(int width, int height) {\r\n \r\n this.width = width;\r\n this.height = height;\r\n \r\n }", "public Die()\n {\n sides = 6;\n }", "public Game()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1, false); \n Greenfoot.start(); //Autostart the game\n Greenfoot.setSpeed(50); // Set the speed to 30%\n setBackground(bgImage);// Set the background image\n \n //Create instance\n \n Airplane gameplayer = new Airplane ();\n addObject (gameplayer, 100, getHeight()/2);\n \n }", "public Player2(State state){\n super(state);\n name=\"110\";\n }", "public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }", "public WiuWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1xpixels.\n super(WIDTH_WORLD, HEIGHT_WORLD, 1); \n }", "public void initPlayer();", "public int paddleWidth() {\r\n return 100;\r\n }", "public Character()\n\t{\n\t\tlevel = 0;\n\t\thealth = 0;\n\t}", "public Player(World world) {\n\n super(world, playerShape);\n addImage(idleImage);\n score = 0;\n lives = 3;\n\n }", "public static Character newPlayer(int nbPlayer) {\n\n\n\n int characterClass, level, strength, agility, intelligence, health;\n System.out.println(\"Création du personnage du Joueur \" + nbPlayer);\n characterClass = Character.askAction(\"Veuillez choisir la classe de votre personnage (1 : Guerrier, 2 : Rôdeur, 3 : Mage)\", 1, 3);\n\n do {\n level = Character.askAction(\"Niveau du personnage ?\", 1, 100);\n health = 5 * level;\n System.out.println(\"Votre personnage possède \" + health + \" points de vie\");\n System.out.println(\"Il vous reste \" + level + \" point(s) restant à allouer aux caractéristiques de votre personnage\");\n strength = Character.askAction(\"Force du personnage ?\", 0);\n\n while (level <= 0 || level > 100){\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n level = Character.askAction(\"Niveau du personnage ?\", 0);\n }\n while (strength < 0 || strength > level) {\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n strength = Character.askAction(\"Force du personnage ?\", 0);\n }\n\n int levelMinusStrength = level - strength;\n System.out.println(\"Il vous reste \" + levelMinusStrength + \" point(s) restant à allouer aux caractéristiques de votre personnage\");\n agility = Character.askAction(\"Agilité du personnage ?\", 0);\n while (agility <0 || agility > level - strength) {\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n strength = Character.askAction(\"Agilité du personnage ?\", 0);\n }\n\n\n\n int levelMinusStrengthMinusAgility = level - strength - agility;\n System.out.println(\"Il vous reste \" + levelMinusStrengthMinusAgility + \" point(s) restant à allouer aux caractéristiques de votre personnage\");\n intelligence = Character.askAction(\"Intelligence du personnage ?\", 0);\n while (intelligence <0 || intelligence > level - strength - agility) {\n System.out.println(\"Recommencez : Votre choix n'est pas bon!\");\n strength = Character.askAction(\"Intelligence du personnage ?\", 0);\n }\n\n\n if (strength + agility + intelligence != level) {\n System.out.println(\"Attention le total 'force + agilité + intelligence' doit être égal au niveau du joueur !\");\n }\n }while (strength + agility + intelligence != level);\n\n Character player;\n switch (characterClass) {\n case 1:\n player = new Warrior(nbPlayer, strength, agility, intelligence);\n break;\n case 2:\n player = new Prowler(nbPlayer, strength, agility, intelligence);\n break;\n default:\n player = new Wizard(nbPlayer, strength, agility, intelligence);\n break;\n }\n return player;\n }", "public Player(String name) {\n this.name = name;\n this.points = 0;\n }", "@Override\n public void run() {\n// handler.addObject(new Enemy(rnd.nextInt(Game.WIDTH), rnd.nextInt(200), ID.Trump));\n// handler.addObject(new Enemy(rnd.nextInt(Game.WIDTH), rnd.nextInt(200), ID.Trump));\n int rnd_x = rnd.nextInt(Game.WIDTH);\n handler.addObject(new Enemy(getX() + 30, y, ID.Trump, 0));\n handler.addObject(new Enemy(getX() -30, y, ID.Trump, 0));\n handler.addObject(new Enemy(getX() , y+30, ID.Trump, 0));\n handler.addObject(new Enemy(getX() , y-30, ID.Trump, 0));\n\n\n }", "public SniperEnemy()\n { \n scoreBoost = 15;\n moneyBoost = 300;\n healthPoints = 500; \n fireRate = 45; \n movementCounter = 20;\n movementMod = 20;\n }", "public Player(String name) {\r\n this.name = name;\r\n }", "public Game(TileGrid grid) {\n this.grid = grid;\n\n waveManager = new WaveManager(\n new Enemy(quickLoad(\"Ufo\"), grid.getTile(2, 9), grid, TILE_SIZE, TILE_SIZE, 70, 25), 2, 10);\n player = new Player(grid, waveManager);\n player.setup();\n setupUI();\n\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }", "public Level1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(560, 560, 1); \n prepare();\n gfs_level1 = new GreenfootSound(\"main.wav\");\n\n }", "public CombatController(Player player, Monster monster) {\n this.player = player;\n this.monster = monster;\n\n\n\n }", "public Player()\r\n\t{\r\n\t\tpCards = new String[DECK_SIZE];\r\n\t\thandCount = 0;\r\n\t\tstand = false;\r\n\t}", "public War(String name) {\n // contructs the parent class\n super(name);\n // initialize the game deck\n gameDeck = new GeneralDeck(52);\n // create array of players\n players = new ArrayList<>();\n \n // creates a new player\n System.out.print(\"Enter player name: \");\n player = new WarPlayer(in.nextLine());\n \n // adds the player and the cpu to the players ArrayList\n players.add(cpu);\n players.add(player);\n // adds the players to the list of players\n super.setPlayers(players);\n \n // populates the gameDeck with PokerCards\n System.out.println(\"Initializing game deck\");\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 13; j++) {\n Card card = new PokerCard(j, i);\n gameDeck.addCard(card);\n }\n\n }\n \n //shuffles the game deck\n gameDeck.shuffle();\n System.out.println(\"Finished initializing game deck\");\n System.out.println(\"Initializing Player decks\");\n \n // adding cards to both the player and the cpu decks\n player.getDeck().addCards(gameDeck.showCards().subList(0, \n gameDeck.getSize() / 2));\n\n cpu.getDeck().addCards(gameDeck.showCards().subList(gameDeck.getSize() \n / 2, gameDeck.getSize()));\n\n gameDeck.clearDeck();\n System.out.println(\"Finished initializing Player decks\");\n \n //prompts the user to start the game with enter\n System.out.println(\"Press enter to start the game\");\n in.nextLine();\n }", "public Player(World world, float x, float y) {\n super(new Texture(\"Player/Player1_sg.png\"));\n\n\n //Centra el personaje este\n this.world = world;\n setPosition(x - this.getWidth() / 2,\n y - this.getHeight() / 2);\n createBody();\n }", "public RandomPlayer() {\n\t\tsuper(\"Random\");\n\t}" ]
[ "0.6660229", "0.6466042", "0.6446519", "0.64373714", "0.643398", "0.643061", "0.6396389", "0.6387114", "0.634693", "0.6337585", "0.6215892", "0.61811334", "0.61811334", "0.6181013", "0.61743057", "0.6161528", "0.61501247", "0.61499685", "0.61499685", "0.61499685", "0.61499685", "0.6140334", "0.6138577", "0.61354446", "0.6129579", "0.61203754", "0.61093956", "0.61035585", "0.6101899", "0.60853225", "0.6083738", "0.607839", "0.606303", "0.6060937", "0.6040042", "0.603581", "0.60251594", "0.6015128", "0.5998944", "0.5985462", "0.59846103", "0.5964835", "0.5963442", "0.5949655", "0.5946234", "0.5918214", "0.5891632", "0.58901286", "0.5882539", "0.58731437", "0.5871462", "0.58633757", "0.585835", "0.58543134", "0.585046", "0.5850432", "0.58408844", "0.5837652", "0.5829254", "0.58202815", "0.5809998", "0.58085424", "0.57993364", "0.57988775", "0.57903886", "0.5785536", "0.57851803", "0.57748985", "0.5770782", "0.5770399", "0.57681286", "0.5757227", "0.57545596", "0.57523674", "0.5748886", "0.5745905", "0.5745319", "0.57346725", "0.57329684", "0.5732331", "0.5730607", "0.5720397", "0.5712039", "0.5706095", "0.56925756", "0.56916887", "0.56891143", "0.56862414", "0.5679913", "0.5675683", "0.56748724", "0.5673369", "0.56701356", "0.5666253", "0.5665301", "0.5660401", "0.5659475", "0.5657267", "0.56568253", "0.5656542" ]
0.7318341
0
/ renamed from: h
private void m17251h() { this.f13994d.unregisterReceiver(this.f13995e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void h() {}", "public void h() {\n }", "public abstract long h();", "float getH() {\n return _h;\n }", "H1 createH1();", "@Override\n public String toString() {\n return \"H\";\n }", "public void add2Hash( Hashtable h, String source ) {\n \n AstCursor c = new AstCursor();\n \n for ( c.FirstElement( this ); c.MoreElement(); c.NextElement() ) {\n Es es = ( Es ) c.node;\n es.add2Hash( h, source );\n }\n }", "public Husdjurshotell(){}", "public abstract int mo123249h();", "public int getH() {\n\t\treturn h;\n\t}", "public ho e_()\r\n/* 455: */ {\r\n/* 456:469 */ if (k_()) {\r\n/* 457:470 */ return new hy(d_());\r\n/* 458: */ }\r\n/* 459:472 */ return new hz(d_(), new Object[0]);\r\n/* 460: */ }", "public H(String a, String b, String c, String d, String e, String f, String g, String h, X x) {\n super(a, b, c, d, e, f, g, x);\n this.h = h;\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic int getH() {\n\t\treturn 100;\n\t}", "public double getH();", "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}", "public boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }", "public void setH(int h) {\n\t\tthis.H = h;\n\t}", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "public double utilisation(int h)\n {\n \tDouble result;\n \tDouble n1=(Math.pow(2,h))-1;\n \tresult=size()/n1;\n \treturn result;\n \t \t\n }", "public void setH(int h) {\n this.H = h;\n\n }", "public void setH(double h) {\n this.h = h;\n }", "public void mo21783H() {\n }", "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 double getH_() {\n\t\treturn h_;\n\t}", "H4 createH4();", "public abstract long mo9743h();", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "public void applyHorn() {\n\t\t\r\n\t}", "public double getH() {\n return h;\n }", "public double getH() {\n return h;\n }", "public amj h()\r\n/* 17: */ {\r\n/* 18: 41 */ if ((this.c < 9) && (this.c >= 0)) {\r\n/* 19: 42 */ return this.a[this.c];\r\n/* 20: */ }\r\n/* 21: 44 */ return null;\r\n/* 22: */ }", "public int indexFor(int h) {\n\t\treturn (int) (h & (allLength - 1));\n\t}", "@Override\n\tpublic void visit(Have h) {\n\t\t// Reception de l'entier indiquant\n\t\t// l'index de la piŹce possédée par\n\t\t// le pair.\n\t\tSystem.out.println(\"visit have\");\n\t\tif (pieces == null) {\n\t\t\tpieces = new ArrayList<Integer>();\n\t\t}\n\t\tpieces.add(byteArrayToInt(h.getIndex()));\n\t}", "public abstract C17954dh<E> mo45842a();", "void mo1501h();", "static int indexFor(int h, int length) {\n return h & (length-1);\r\n }", "public int getH() {\n\t\treturn this.H;\n\t}", "public void setH_(double h_) {\n\t\tthis.h_ = h_;\n\t}", "public void setH(boolean h) {\n\tthis.h = h;\n }", "protected abstract void calculateH(Node node);", "private void attachHeader(SIPHeader h) {\n if (h == null) throw new IllegalArgumentException(\"null header!\");\n try {\n if (h instanceof SIPHeaderList) {\n SIPHeaderList hl = (SIPHeaderList) h;\n if (hl.isEmpty()) {\n return;\n }\n }\n attachHeader(h,false,false);\n } catch ( SIPDuplicateHeaderException ex) {\n // InternalErrorHandler.handleException(ex);\n }\n }", "void mo304a(C0366h c0366h);", "static int indexFor(int h, int length) {\n return h & (length - 1);\n }", "public final j h() {\n return new d(this);\n }", "C32446a mo21077h() throws Exception;", "private HSBC() {\n\t\t\n\t\t\n\t}", "@Hide\n private final zzs zzahx() {\n }", "public void mo9233aH() {\n }", "public abstract String header();", "abstract public void header();", "public static void hehe(){\n \n }", "H3 createH3();", "public void setH(Double h);", "private HeaderUtil() {}", "public void visit(Have h);", "private stendhal() {\n\t}", "private void add0(int h, int i, final String name, final String value) {\n HeaderEntry e = entries[i];\n HeaderEntry newEntry;\n entries[i] = newEntry = new HeaderEntry(h, name, value);\n newEntry.next = e;\n\n // Update the linked list.\n newEntry.addBefore(head);\n }", "int numberofhc()\n{\n\treturn hc.size();}", "static void dad_with_hl_internal(int h,int l){\n\t\tl+=hexa_to_deci(registers.get('L'));\n\t\tint carry = l>255?1:0;\n\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\th+=hexa_to_deci(registers.get('H'));\n\t\th+=carry;\n\t\tCS = h>255?true:false;\n\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t}", "public Void mo7069h() {\n return null;\n }", "public Lechuga(Hamburguesa h){\n this.hamburguesa = h;\n }", "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 }", "@java.lang.Override\n public java.lang.String getH() {\n java.lang.Object ref = h_;\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 h_ = s;\n return s;\n }\n }", "private static String printH(Tuple[] h){\n\t\tString answer = \"ISOMORPHISM:\\t{\";\n\t\tfor(int i = 0; i < h.length; i++){\n\t\t\tanswer = answer + h[i] + (i < h.length-1? \",\": \"\");\n\t\t}\n\t\t\n\t\tanswer = answer + \"}\";\n\t\treturn answer;\n\t}", "double getStartH();", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "public String createH() {\n\t\t// Create H per the algorithm\n\t\t// Create vertices of X --- The number of vertices in X is taken from the paper\n\t\t// k = (2 + epsilon)log n\n\t\tthis.createXVertices();\n\t\t// Create edges within X (both successive and random)\n\t\tthis.createXEdges();\n\n\t\treturn \"H Created (X Vertices)\";\n\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "protected void b(dh paramdh) {}", "public interface HTableWrapper {\n\n /**\n * To get the table name.\n * \n * @return\n */\n public byte[] getName();\n\n /**\n * To get a row.\n * \n * @param get\n * @return\n * @throws IOException\n */\n public Result get(Get get) throws IOException;\n\n /**\n * To get a row using lockId.\n * \n * @param get\n * @param lockId\n * @return\n * @throws IOException\n */\n public Result get(Get get, Integer lockId) throws IOException;\n\n /**\n * To rollback a row.\n * \n * @param row\n * @param startId\n * @param lockId\n * @throws IOException\n */\n public void rollbackRow(byte[] row, long startId, Integer lockId)\n throws IOException;\n\n /**\n * To commit a row.\n * \n * @param row\n * @param startId\n * @param commitId\n * @param isDelete\n * @param lockId\n * @throws IOException\n */\n public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;\n\n}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getHBytes() {\n java.lang.Object ref = h_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n h_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "HEAD createHEAD();", "private void insertItem(Hashtable<String, List<Integer>> h, Element e) {\n\t\tString key = e.attribute(\"sourcefilepath\").getValue().replace('/', '\\\\') + e.attribute(\"sourcefile\").getValue();\r\n\t\tint line = Integer.parseInt(e.attribute(\"line\").getValue().trim());\r\n\t\tList<Integer> l = h.get(key);\r\n\t\tif(l==null){\r\n\t\t\tl = new ArrayList<Integer>();\r\n\t\t\th.put(key, l);\r\n\t\t}\r\n\t\tl.add(line);\r\n\t}", "private Parser(FScript h,HashMap l,HashMap g, HashMap f) {\n vars=l;\n gVars=g;\n funcs=f;\n host=h;\n }", "String getHashControl();", "public static void printHHSV(FqImage imh){\n\t\tint\ti,j;\r\n\t\tfor( i = 0 ; i < imh.width ; i++ ){\r\n\t\t\tfor( j = 0 ; j < imh.height ; j++ ){\r\n\t\t\t\tSystem.out.print(\"h\"+imh.points[i][j].getHHSV() );\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t}", "String mo7388hl() throws RemoteException;", "static String d(NetLoginHandler var0)\n {\n return var0.h;\n }", "private static char toHexDigit(int h) {\n char out;\n if (h <= 9) out = (char) (h + 0x30);\n else out = (char) (h + 0x37);\n //System.err.println(h + \": \" + out);\n return out;\n }", "void mo7372a(C0802fh fhVar) throws RemoteException;", "double getEndH();", "public String getParameterFromH();", "public interface C22383h {\n}", "public void setH(double value) {\n this.h = value;\n }", "public void b(ahd paramahd) {}", "void mo35722a(C14235h hVar);", "public abstract void mo102585a(VH vh, int i);", "SmilHead getHead();", "@Override\n public void computeHash(Hasher hasher) {\n }", "HSet entrySet();", "public HELPFit getHF(){\n return HF;\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "H getProfile();", "@Override\n\tpublic String getHead(Handler h) {\n\t\tStringBuffer buf = new StringBuffer(10000);\n\t\tbuf.append(\"<!DOCTYPE html>\\n\");\n\t\t\n\t\tbuf.append(\"\\t<head>\\n\");\n\t\tbuf.append(\"\\t\\t<style>\\n\");\n\t\tbuf.append(\"\\t\\ttable { width: 100% }\\n\");\n\t\tbuf.append(\"\\t\\tth { font: bold 10pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\ttd { font: normal 10pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\th1 { font: normal 11pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\t</style>\\n\");\n\t\tbuf.append(\"\\t</head>\\n\");\n\t\t\n\t\tbuf.append(\"\\t<body>\\n\");\n\t\tbuf.append(\"\\t\\t<h1>\" + (new Date()) + \"\\n\");\n\t\tbuf.append(\"\\t\\t<table border=\\\"0\\\" cellpadding=\\\"5\\\" cellspacing=\\\"3\\\">\\n\");\n\t\tbuf.append(\"\\t\\t\\t<tr align=\\\"left\\\">\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:10%\\\">LogLevel</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:15%\\\">Time</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:75%\\\">LogMessage</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t</tr>\\n\");\n\t\t\n\t\treturn buf.toString();\n\t}", "protected void a(dh paramdh) {}", "public com.google.protobuf.ByteString\n getHBytes() {\n java.lang.Object ref = h_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n h_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tprotected void interr() {\n\t}", "public int func_176881_a() {\n/* */ return this.field_176893_h;\n/* */ }" ]
[ "0.7006457", "0.6376803", "0.6152193", "0.6099337", "0.599903", "0.5976422", "0.5881053", "0.5878019", "0.5851139", "0.5840173", "0.58104765", "0.57935345", "0.5784397", "0.577195", "0.5760394", "0.5758641", "0.57195157", "0.5717094", "0.5712681", "0.57083744", "0.5691357", "0.5675319", "0.5654622", "0.5647394", "0.5633566", "0.5630044", "0.5611922", "0.5607437", "0.55959165", "0.55954385", "0.55954385", "0.5585786", "0.55847657", "0.5573256", "0.5557641", "0.55522007", "0.55487716", "0.55462223", "0.55379975", "0.55343676", "0.55202854", "0.55091685", "0.5500832", "0.54957825", "0.5495365", "0.548653", "0.5483489", "0.54801226", "0.5476092", "0.54691756", "0.5457996", "0.5454038", "0.54173815", "0.54168785", "0.5415112", "0.54006886", "0.53944254", "0.53781533", "0.5358132", "0.5352097", "0.5350295", "0.53456247", "0.53152686", "0.5314088", "0.5306762", "0.53060544", "0.5305655", "0.5299146", "0.52944684", "0.52934664", "0.5282273", "0.52762216", "0.52678543", "0.52643436", "0.5263177", "0.52619565", "0.52585053", "0.5258431", "0.5251732", "0.5248985", "0.524418", "0.52275395", "0.5224416", "0.5206976", "0.5205791", "0.5202667", "0.5201214", "0.5192617", "0.5188043", "0.5187125", "0.51868486", "0.5182988", "0.51596665", "0.5158084", "0.5158084", "0.51560694", "0.5155596", "0.51440835", "0.5138143", "0.51342785", "0.51331306" ]
0.0
-1
/ access modifiers changed from: protected / renamed from: b
public final void mo31290b() { C5108gb gbVar = C5108gb.this; int i = C5116c.f14001c; int i2 = C5116c.f14000b; gbVar.mo31283a(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "@Override\n\tpublic void b() {\n\n\t}", "public abstract void mo70713b();", "@Override\n protected void prot() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "@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\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "private stendhal() {\n\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public void b() {\n }", "public void b() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo35054b();", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected void h() {}", "@Override\n\tpublic void anular() {\n\n\t}", "public abstract void mo6549b();", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "private abstract void privateabstract();", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract int b();", "public abstract Object mo1185b();", "public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public abstract void mo45765b();", "public abstract void mo27386d();", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public abstract void mo56925d();", "public abstract Object mo26777y();", "public abstract void mo957b();", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public void mo21825b() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n public void perish() {\n \n }", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "protected void b(dh paramdh) {}", "public abstract void mo27385c();", "public abstract void mo27464a();", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public abstract String mo118046b();", "public abstract void m15813a();", "public abstract void mo30696a();", "@Override\n\tpublic void b() {\n\t\tSystem.out.println(\"b method\");\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "protected FanisamBato(){\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public abstract void mo102899a();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public static void bi() {\n\t}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public abstract B zzjo();", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "public void mo23813b() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "public abstract int mo4375b();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract Object mo1771a();", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public /* bridge */ /* synthetic */ void mo55095b() {\n super.mo55095b();\n }", "protected abstract void a(bru parambru);", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract C0631bt mo9227aB();", "public abstract void b(StringBuilder sb);", "public abstract BoundType b();", "public abstract void mo3994a();", "private BigB()\r\n{\tsuper();\t\r\n}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void dormir() {\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}", "public final void mo1285b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public abstract void mo42331g();", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void b() {\n ((a) this.a).b();\n }" ]
[ "0.72647965", "0.70757526", "0.69538903", "0.6843598", "0.6814932", "0.6797555", "0.678733", "0.678733", "0.67240256", "0.66868144", "0.66532105", "0.6633965", "0.6575914", "0.6544083", "0.6537197", "0.6515595", "0.6515595", "0.64513147", "0.64497304", "0.6440768", "0.6413821", "0.6411164", "0.6385805", "0.63559335", "0.634962", "0.6335079", "0.63230604", "0.63119084", "0.6293087", "0.6290132", "0.62737495", "0.62706304", "0.6259656", "0.6257977", "0.62514955", "0.6250706", "0.62485975", "0.6241958", "0.62355953", "0.6234135", "0.62287265", "0.6214806", "0.621131", "0.62103593", "0.61698616", "0.6168585", "0.6165749", "0.6158153", "0.61454266", "0.6142935", "0.61392134", "0.6132412", "0.613088", "0.6100317", "0.6100317", "0.60985416", "0.60908264", "0.60881317", "0.6081985", "0.6075115", "0.60727805", "0.60615665", "0.6059287", "0.6046944", "0.60423493", "0.6033696", "0.603187", "0.6027175", "0.60232574", "0.60229826", "0.60184133", "0.60179824", "0.6017621", "0.6009212", "0.5993222", "0.59917045", "0.5987095", "0.5984678", "0.5974785", "0.5974785", "0.5972016", "0.59692204", "0.5964884", "0.59629023", "0.5955451", "0.59551406", "0.5954253", "0.59480304", "0.5942666", "0.59399974", "0.59388334", "0.59325767", "0.5922155", "0.59210855", "0.59210855", "0.59104705", "0.5910361", "0.5908576", "0.5905429", "0.58998924", "0.58937347" ]
0.0
-1
/ access modifiers changed from: protected / renamed from: c
public final void mo31291c() { C5108gb gbVar = C5108gb.this; if (gbVar.f13978c == this) { gbVar.f13978c = null; } if (C5108gb.this.f13977b == C5116c.f14001c) { C5108gb gbVar2 = C5108gb.this; int i = C5116c.f13999a; int i2 = C5116c.f14001c; gbVar2.mo31283a(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "private stendhal() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void c() {\n }", "protected void h() {}", "public int c()\r\n/* 74: */ {\r\n/* 75:78 */ return this.c;\r\n/* 76: */ }", "public abstract void mo27386d();", "public abstract void mo53562a(C18796a c18796a);", "public abstract int c();", "public abstract int c();", "public static void c0() {\n\t}", "public abstract Object mo26777y();", "public abstract C mo29734a();", "public abstract void mo70713b();", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void ccc() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public abstract String mo118046b();", "public abstract void mo56925d();", "public abstract void mo30696a();", "public abstract int mo41077c();", "public abstract String mo41079d();", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "private abstract void privateabstract();", "public void mo1403c() {\n }", "public static void c1() {\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}", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "private TMCourse() {\n\t}", "public abstract String mo13682d();", "public abstract void m15813a();", "public abstract void mo102899a();", "public void mo12628c() {\n }", "public abstract void mo27464a();", "public abstract void mo35054b();", "public void mo56167c() {\n }", "public void mo97906c() {\n }", "public abstract void mo6549b();", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void method_4270() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo42329d();", "public abstract void mo70702a(C30989b c30989b);", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "public abstract void mo2624j();", "@Override\n public void perish() {\n \n }", "public void mo21779D() {\n }", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "void mo57278c();", "void m1864a() {\r\n }", "public abstract String mo11611b();", "public abstract Object mo1185b();", "private final void i() {\n }", "public void m23075a() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public void mo21825b() {\n }", "public static a c() {\n }", "public void mo97908d() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "void mo17012c();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:02:04.534 -0500\", hash_original_method = \"E4DEB0C107DDB25A537EF0E89F1C04F8\", hash_generated_method = \"2E76AFD8C90588F5139C0C2D28CAEA05\")\n \nprivate static int translateCodingErrorAction(CodingErrorAction action) {\n if (action == CodingErrorAction.REPORT) {\n return 0;\n } else if (action == CodingErrorAction.IGNORE) {\n return 1;\n } else if (action == CodingErrorAction.REPLACE) {\n return 2;\n } else {\n throw new AssertionError(); // Someone changed the enum.\n }\n }", "public static void c3() {\n\t}", "public abstract void mo42331g();", "public final void mo91715d() {\n }", "public static void CC2_1() {\n\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C0335c {\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public interface C0939c {\n }", "abstract String mo1748c();", "private void ss(){\n }", "public /* bridge */ /* synthetic */ void mo55097d() {\n super.mo55097d();\n }", "public abstract String mo9239aw();", "public void cocinar(){\n\n }", "public void c(int paramInt)\r\n/* 101: */ {\r\n/* 102:122 */ this.b = false;\r\n/* 103:123 */ super.c(paramInt);\r\n/* 104: */ }", "public final void mo51373a() {\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public abstract String mo41086i();", "public abstract C0270jy mo5354b();", "@Override\n public boolean c() {\n return false;\n }", "public void smell() {\n\t\t\n\t}", "void mo80457c();", "public abstract Object mo1771a();", "private Get() {}", "private Get() {}", "public interface AbstractC1953c50 {\n}", "public abstract void mo45765b();", "public abstract void mo3994a();" ]
[ "0.66924864", "0.66411537", "0.65851027", "0.6580517", "0.65778816", "0.6472804", "0.6470441", "0.63714427", "0.63621235", "0.6345467", "0.6340551", "0.6321844", "0.6311739", "0.6311739", "0.6306555", "0.6302653", "0.62911993", "0.62734205", "0.6258664", "0.62205344", "0.6200374", "0.6190521", "0.6189736", "0.618528", "0.6181414", "0.61576974", "0.6141395", "0.6139532", "0.6124259", "0.6098026", "0.60894746", "0.6074481", "0.6074481", "0.6058117", "0.6057089", "0.60568964", "0.60354376", "0.60162145", "0.6005308", "0.6005274", "0.6000945", "0.59924364", "0.5973349", "0.59670454", "0.59512764", "0.5929641", "0.59279084", "0.5913976", "0.5913514", "0.58937657", "0.5888859", "0.5888563", "0.58774126", "0.5864202", "0.5860269", "0.58588463", "0.5855396", "0.5855061", "0.5854569", "0.5849112", "0.58352137", "0.582998", "0.5829068", "0.5826098", "0.5817764", "0.5816565", "0.5815243", "0.58105206", "0.5808883", "0.5805747", "0.58024025", "0.57935864", "0.57931256", "0.57928246", "0.5789851", "0.57885647", "0.5780116", "0.57799983", "0.57784194", "0.577525", "0.5774174", "0.5772772", "0.5769631", "0.5768847", "0.57672256", "0.5765346", "0.5757497", "0.57574743", "0.57567066", "0.57539165", "0.57518566", "0.5750389", "0.57503474", "0.57502294", "0.57484907", "0.574797", "0.5746324", "0.5746324", "0.5746146", "0.5731857", "0.572682" ]
0.0
-1
/ access modifiers changed from: protected / JADX WARNING: Exception block dominator not found, dom blocks: [] / JADX WARNING: Missing exception handler attribute for start block: B:11:0x004e / JADX WARNING: Removed duplicated region for block: B:17:0x0064 A[SYNTHETIC, Splitter:B:17:0x0064] / JADX WARNING: Removed duplicated region for block: B:24:0x0052 A[SYNTHETIC] / renamed from: d / Code decompiled incorrectly, please refer to instructions dump.
public final void mo31292d() { /* r7 = this; com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this com.tapjoy.internal.gb$a r0 = r0.mo31282a() android.content.Context r0 = r0.f13987a r7.f13994d = r0 android.content.IntentFilter r0 = new android.content.IntentFilter java.lang.String r1 = "android.net.conn.CONNECTIVITY_CHANGE" r0.<init>(r1) android.content.Context r1 = r7.f13994d android.content.BroadcastReceiver r2 = r7.f13995e r1.registerReceiver(r2, r0) L_0x0018: boolean r0 = r7.f13992b // Catch:{ all -> 0x008b } if (r0 != 0) goto L_0x0087 java.util.concurrent.CountDownLatch r0 = new java.util.concurrent.CountDownLatch // Catch:{ all -> 0x008b } r1 = 1 r0.<init>(r1) // Catch:{ all -> 0x008b } com.tapjoy.internal.fs$a r2 = com.tapjoy.internal.C5096fs.f13949b // Catch:{ all -> 0x008b } com.tapjoy.internal.gb$b$1 r3 = new com.tapjoy.internal.gb$b$1 // Catch:{ all -> 0x008b } r3.<init>(r0) // Catch:{ all -> 0x008b } r2.addObserver(r3) // Catch:{ all -> 0x008b } com.tapjoy.internal.gb r2 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } com.tapjoy.internal.gb$a r2 = r2.mo31282a() // Catch:{ all -> 0x008b } com.tapjoy.internal.gb r3 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } android.content.Context r4 = r2.f13987a // Catch:{ all -> 0x008b } java.lang.String r5 = r2.f13988b // Catch:{ all -> 0x008b } java.util.Hashtable r2 = r2.f13989c // Catch:{ all -> 0x008b } r6 = 0 boolean r2 = r3.mo31194a(r4, r5, r2, r6) // Catch:{ all -> 0x008b } r3 = 0 if (r2 != 0) goto L_0x004b com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } r0.mo31284a((boolean) r3) // Catch:{ all -> 0x008b } r7.m17251h() return L_0x004b: r0.await() // Catch:{ InterruptedException -> 0x004e } L_0x004e: boolean r0 = r7.f13993c // Catch:{ all -> 0x008b } if (r0 == 0) goto L_0x0064 com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } int r2 = com.tapjoy.internal.C5108gb.C5116c.f14003e // Catch:{ all -> 0x008b } int r3 = com.tapjoy.internal.C5108gb.C5116c.f14001c // Catch:{ all -> 0x008b } r0.mo31283a((int) r2) // Catch:{ all -> 0x008b } com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } r0.mo31284a((boolean) r1) // Catch:{ all -> 0x008b } r7.m17251h() return L_0x0064: com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } r0.mo31284a((boolean) r3) // Catch:{ all -> 0x008b } com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } long r0 = r0.f13979d // Catch:{ all -> 0x008b } r2 = 1000(0x3e8, double:4.94E-321) long r0 = java.lang.Math.max(r0, r2) // Catch:{ all -> 0x008b } com.tapjoy.internal.gb r2 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } r3 = 2 long r3 = r0 << r3 r5 = 3600000(0x36ee80, double:1.7786363E-317) long r3 = java.lang.Math.min(r3, r5) // Catch:{ all -> 0x008b } r2.f13979d = r3 // Catch:{ all -> 0x008b } com.tapjoy.internal.gb r2 = com.tapjoy.internal.C5108gb.this // Catch:{ all -> 0x008b } r2.mo31285a((long) r0) // Catch:{ all -> 0x008b } goto L_0x0018 L_0x0087: r7.m17251h() return L_0x008b: r0 = move-exception r7.m17251h() goto L_0x0091 L_0x0090: throw r0 L_0x0091: goto L_0x0090 */ throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.C5108gb.C5113b.mo31292d():void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo2485a() {\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/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\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/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public void mo3613a() {\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.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\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 r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "void m5771e() throws C0841b;", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\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/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "public void m9741j() throws cf {\r\n }", "void m5770d() throws C0841b;", "private ElementDebugger() {\r\n\t\t/* PROTECTED REGION ID(java.constructor._17_0_5_12d203c6_1363681638138_829588_2092) ENABLED START */\r\n\t\t// :)\r\n\t\t/* PROTECTED REGION END */\r\n\t}", "void m5769c() throws C0841b;", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "void m5768b() throws C0841b;", "protected void extraExplosions_EM() {\n }", "public void mo1964g() throws cf {\r\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "static void m13383b() {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "private V e() throws com.amap.api.col.n3.gh {\n /*\n r6 = this;\n r0 = 0\n r1 = 0\n L_0x0002:\n int r2 = r6.b\n if (r1 >= r2) goto L_0x00cd\n com.amap.api.col.n3.ki r2 = com.amap.api.col.n3.ki.c() // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n android.content.Context r3 = r6.d // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.net.Proxy r3 = com.amap.api.col.n3.ik.a(r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n r6.a((java.net.Proxy) r3) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n byte[] r2 = r2.a((com.amap.api.col.n3.kj) r6) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n java.lang.Object r2 = r6.a((byte[]) r2) // Catch:{ ic -> 0x0043, gh -> 0x0032, Throwable -> 0x002a }\n int r0 = r6.b // Catch:{ ic -> 0x0025, gh -> 0x0020, Throwable -> 0x002a }\n r1 = r0\n r0 = r2\n goto L_0x0002\n L_0x0020:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0033\n L_0x0025:\n r0 = move-exception\n r5 = r2\n r2 = r0\n r0 = r5\n goto L_0x0044\n L_0x002a:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"未知错误\"\n r0.<init>(r1)\n throw r0\n L_0x0032:\n r2 = move-exception\n L_0x0033:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 < r3) goto L_0x0002\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0043:\n r2 = move-exception\n L_0x0044:\n int r1 = r1 + 1\n int r3 = r6.b\n if (r1 >= r3) goto L_0x008a\n int r3 = r6.e // Catch:{ InterruptedException -> 0x0053 }\n int r3 = r3 * 1000\n long r3 = (long) r3 // Catch:{ InterruptedException -> 0x0053 }\n java.lang.Thread.sleep(r3) // Catch:{ InterruptedException -> 0x0053 }\n goto L_0x0002\n L_0x0053:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x0082\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x0078\n goto L_0x0082\n L_0x0078:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x0082:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x008a:\n java.lang.String r0 = \"http连接失败 - ConnectionException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"socket 连接异常 - SocketException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"未知的错误\"\n java.lang.String r1 = r2.a()\n boolean r0 = r0.equals(r1)\n if (r0 != 0) goto L_0x00c5\n java.lang.String r0 = \"服务器连接失败 - UnknownServiceException\"\n java.lang.String r1 = r2.getMessage()\n boolean r0 = r0.equals(r1)\n if (r0 == 0) goto L_0x00bb\n goto L_0x00c5\n L_0x00bb:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = r2.a()\n r0.<init>(r1)\n throw r0\n L_0x00c5:\n com.amap.api.col.n3.gh r0 = new com.amap.api.col.n3.gh\n java.lang.String r1 = \"http或socket连接失败 - ConnectionException\"\n r0.<init>(r1)\n throw r0\n L_0x00cd:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.api.col.n3.gi.e():java.lang.Object\");\n }", "public void mo1944a() throws cf {\r\n }", "public void visit(BinThrowStatement x){\n }", "@Test(timeout = 4000)\n public void test055() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(3046);\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"SourceDebugExtension\";\n stringArray0[1] = \")1Dc@`M-,v4\";\n stringArray0[2] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[3] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[4] = \"s4#6U\";\n stringArray0[5] = \"81<U@W{b30+,bjYk\";\n stringArray0[6] = \"R$_Ff!sF,uE4P'wGFDy\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \")1Dc@`M-,v4\", \"81<U@W{b30+,bjYk\", \"81<U@W{b30+,bjYk\", stringArray0, false, false);\n MethodWriter methodWriter1 = classWriter0.firstMethod;\n methodWriter1.visitInsn(1);\n methodWriter1.visitFrame(11, (-764), stringArray0, 2048, stringArray0);\n methodWriter0.getSize();\n methodWriter0.visitFrame(3, 2048, stringArray0, (-1551), stringArray0);\n Attribute attribute0 = new Attribute(\"iL9-M\");\n // Undeclared exception!\n try { \n attribute0.write(classWriter0, (byte[]) null, 3378, 3407, (-28));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.Attribute\", e);\n }\n }", "@Test(timeout = 4000)\n public void test14() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(32767);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"tE\";\n stringArray0[1] = \"tE\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 32767, \"&h'pH__a\", \"tE\", \"org.objectweb.asm.jip.Attribute\", stringArray0, false, false);\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"org.objectweb.asm.jip.Attribute\", \"_b}n0f['\", \"_b}n0f['\", stringArray0, false, false);\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n MethodWriter methodWriter2 = classWriter0.firstMethod;\n methodWriter2.visitTypeInsn(262144, \"_b}n0f['\");\n methodWriter2.visitTypeInsn(1639, \"tE\");\n // Undeclared exception!\n try { \n methodWriter0.visitLocalVariable(\"tE\", \"tE\", \"org.objectweb.asm.jip.Attribute\", (Label) null, (Label) null, (-2699));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "private static final void a() {\n NoClassDefFoundError noClassDefFoundError2;\n block5: {\n int n10 = 0;\n Object object = null;\n try {\n int n11 = i.h.d.l();\n if (n11 == 0) {\n object = i.h.d.f();\n i.h.d.s((Set)object);\n }\n StaticLoggerBinder.getSingleton();\n p = n11 = 3;\n i.h.d.r((Set)object);\n i.h.d.g();\n i.h.d.p();\n object = q;\n ((h)object).b();\n return;\n }\n catch (Exception exception) {\n i.h.d.e(exception);\n IllegalStateException illegalStateException = new IllegalStateException(\"Unexpected initialization failure\", exception);\n throw illegalStateException;\n }\n catch (NoSuchMethodError noSuchMethodError) {\n String string2 = noSuchMethodError.getMessage();\n if (string2 == null) throw noSuchMethodError;\n String string3 = \"org.slf4j.impl.StaticLoggerBinder.getSingleton()\";\n int n12 = string2.contains(string3);\n if (n12 == 0) throw noSuchMethodError;\n p = n12 = 2;\n i.h.h.i.c(\"slf4j-api 1.6.x (or later) is incompatible with this binding.\");\n i.h.h.i.c(\"Your binding is version 1.5.5 or earlier.\");\n string2 = \"Upgrade your binding to version 1.6.x.\";\n i.h.h.i.c(string2);\n throw noSuchMethodError;\n }\n catch (NoClassDefFoundError noClassDefFoundError2) {\n String string4 = noClassDefFoundError2.getMessage();\n boolean bl2 = i.h.d.m(string4);\n if (!bl2) break block5;\n p = n10 = 4;\n i.h.h.i.c(\"Failed to load class \\\"org.slf4j.impl.StaticLoggerBinder\\\".\");\n i.h.h.i.c(\"Defaulting to no-operation (NOP) logger implementation\");\n String string5 = \"See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\";\n i.h.h.i.c(string5);\n }\n return;\n }\n i.h.d.e(noClassDefFoundError2);\n throw noClassDefFoundError2;\n }", "public long mo915b() {\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.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\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 r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "@Test(timeout = 4000)\n public void test122() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(3131);\n FieldWriter fieldWriter0 = (FieldWriter)classWriter0.visitField(182, \"IK\", \"IK\", \"IK\", \"The FileFilter must not be null\");\n classWriter0.firstField = fieldWriter0;\n ClassWriter classWriter1 = new ClassWriter(1);\n Item item0 = classWriter0.key2;\n fieldWriter0.getSize();\n fieldWriter0.visitAnnotation(\"Exceptions\", false);\n classWriter1.newFloat((-2110.0F));\n item0.hashCode = 231;\n // Undeclared exception!\n try { \n frame0.execute(182, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void warning(SAXParseException e) throws SAXException {\r\n\t\t// System.err.println(\"Warning on line \" + _locator.getLineNumber() + \",\r\n\t\t// column \" +\r\n\t\t// _locator.getColumnNumber() + \"\\n\\t\" + e.getMessage());\r\n\t}", "@Test(timeout = 4000)\n public void test044() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(4096);\n ClassWriter classWriter1 = new ClassWriter((-2894));\n String[] stringArray0 = new String[7];\n stringArray0[0] = \"ConstantValue\";\n stringArray0[1] = \"LocalVariableTable\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, true);\n stringArray0[2] = \"ConstantValue\";\n stringArray0[3] = \"ConstantValue\";\n stringArray0[4] = \"0T1MW_`O#}<L\";\n stringArray0[5] = \"h#w=z5(0SfaM)DKLY\";\n stringArray0[6] = \"Synthetic\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 1, \"ConstantValue\", \"h#w=z5(0SfaM)DKLY\", \"Synthetic\", stringArray0, true, false);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"LocalVariableTable\");\n Label label0 = new Label();\n Edge edge0 = label0.successors;\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn((-2894), \"/#p[v!vM>^U#((tz?0\", \"0T1MW_`O#}<L\", \"Code\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test19() throws Throwable {\n int int0 = 2320;\n ClassWriter classWriter0 = new ClassWriter(2320);\n String string0 = \"c6c\\\\)y~[K\";\n String[] stringArray0 = new String[0];\n boolean boolean0 = true;\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2127, \"c6c)y~[K\", \"c6c)y~[K\", \"c6c)y~[K\", stringArray0, true, true);\n Label label0 = null;\n // Undeclared exception!\n try { \n methodWriter0.visitLineNumber(115, (Label) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"Label offset position has not been resolved yet\";\n stringArray0[1] = \"'0\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"tE\", \"Class not found\", \"&h'pH__a\", stringArray0, false, false);\n Object object0 = new Object();\n methodWriter0.visitFrame(76, (-1840700267), stringArray0, (-3070), stringArray0);\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(8, (-1000), stringArray0, (-1000), stringArray0);\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "private void buildBasicStructure( Exception e )\r\n {\r\n m_rootID = addElement(0, m_Document_TypeID, DTM.NULL, DTM.NULL);\r\n m_extErrorID = addElement(1, m_ErrorExt_TypeID, m_rootID, DTM.NULL);\r\n m_MainMessageID = addElementWithData\r\n (e != null ? e.getLocalizedMessage() : \"SQLWarning\", 2, m_Message_TypeID, m_extErrorID, DTM.NULL);\r\n }", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "void mo57276a(Exception exc);", "@Test(timeout = 4000)\n public void test026() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259326));\n classWriter0.newInteger((-2013884533));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2013884533), \"H\", \"cM6G}.\", \"cM6G}.\", stringArray0, false, false);\n methodWriter0.visitLdcInsn(\"H\");\n // Undeclared exception!\n try { \n methodWriter0.visitLineNumber(1, (Label) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test034() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048576);\n ClassWriter classWriter1 = new ClassWriter(285212630);\n Item item0 = classWriter1.newFieldItem(\"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\");\n classWriter1.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n Frame frame1 = new Frame();\n classWriter0.visitField(1048576, \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"u1;`1Jz{4~0\", (Object) null);\n // Undeclared exception!\n try { \n frame1.execute(191, 1, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private final java.util.Map<java.lang.String, java.lang.String> m11967c() {\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 r7 = this;\n r0 = new java.util.HashMap;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r0.<init>();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r7.f10169c;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r2 = r7.f10170d;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r3 = f10168i;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r4 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r5 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r6 = 0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1 = r1.query(r2, r3, r4, r5, r6);\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n if (r1 == 0) goto L_0x0031;\n L_0x0014:\n r2 = r1.moveToNext();\t Catch:{ all -> 0x002c }\n if (r2 == 0) goto L_0x0028;\t Catch:{ all -> 0x002c }\n L_0x001a:\n r2 = 0;\t Catch:{ all -> 0x002c }\n r2 = r1.getString(r2);\t Catch:{ all -> 0x002c }\n r3 = 1;\t Catch:{ all -> 0x002c }\n r3 = r1.getString(r3);\t Catch:{ all -> 0x002c }\n r0.put(r2, r3);\t Catch:{ all -> 0x002c }\n goto L_0x0014;\n L_0x0028:\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n goto L_0x0031;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x002c:\n r0 = move-exception;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n r1.close();\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n throw r0;\t Catch:{ SecurityException -> 0x0032, SecurityException -> 0x0032 }\n L_0x0031:\n return r0;\n L_0x0032:\n r0 = \"ConfigurationContentLoader\";\n r1 = \"PhenotypeFlag unable to load ContentProvider, using default values\";\n android.util.Log.e(r0, r1);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzsi.c():java.util.Map<java.lang.String, java.lang.String>\");\n }", "public JBlock _finally() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: iconst_0 \n // 1: nop \n // 2: nop \n // 3: nop \n // 4: aload_3 \n // 5: nop \n // 6: lconst_0 \n // 7: nop \n // 8: iaload \n // 9: nop \n // 10: ldc2_w \"Lcom/sun/codemodel/JFormatter;\"\n // 13: nop \n // 14: fload_0 /* this */\n // 15: nop \n // 16: nop \n // 17: nop \n // 18: lload_2 \n // 19: nop \n // 20: iconst_0 \n // 21: nop \n // 22: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -----------------------------\n // 0 23 0 this Lcom/sun/codemodel/JTryBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.execute(StackMappingVisitor.java:935)\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.visit(StackMappingVisitor.java:398)\n // at com.strobel.decompiler.ast.AstBuilder.performStackAnalysis(AstBuilder.java:2030)\n // at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:108)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:210)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public JCatchBlock _catch(final JClass exception) {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: nop \n // 1: nop \n // 2: nop \n // 3: laload \n // 4: nop \n // 5: aconst_null \n // 6: nop \n // 7: aconst_null \n // 8: nop \n // 9: nop \n // 10: nop \n // 11: iconst_2 \n // 12: aload_0 /* this */\n // 13: getfield com/sun/codemodel/JTryBlock.body:Lcom/sun/codemodel/JBlock;\n // 16: areturn \n // 17: nop \n // 18: nop \n // 19: nop \n // 20: iconst_m1 \n // 21: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- --------- -------------------------------\n // 0 22 0 this Lcom/sun/codemodel/JTryBlock;\n // 0 22 1 exception Lcom/sun/codemodel/JClass;\n // 9 13 2 cb Lcom/sun/codemodel/JCatchBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ArrayIndexOutOfBoundsException\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "@Test(timeout = 4000)\n public void test092() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-4015));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n String[] stringArray0 = null;\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n methodWriter0.visitInsn(14);\n FieldWriter fieldWriter0 = classWriter0.firstField;\n classWriter0.firstField = null;\n methodWriter0.getSize();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"dVw2Z7M){e/Y(#j\");\n Label label0 = new Label();\n Edge edge0 = label0.successors;\n methodWriter0.visitLineNumber(1, label0);\n methodWriter0.getSize();\n classWriter0.visitInnerClass(\"/#p[v!vM>^U#((tz?0\", \"Us\", \"dVw2Z7M){e/Y(#j\", (-4015));\n int int0 = 73;\n methodWriter0.visitMethodInsn(73, \"dVw2Z7M){e/Y(#j\", \"Code\", \"/#p[v!vM>^U#((tz?0\");\n // Undeclared exception!\n try { \n methodWriter0.visitInsn(3926);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.Frame\", e);\n }\n }", "public void mo1976s() throws cf {\r\n }", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n System.out.println(\"Warning reported: \" + saxpe.getMessage());\n }", "public void state(final JFormatter f) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // com.strobel.assembler.metadata.MethodBodyParseException: An error occurred while parsing the bytecode of method 'com/sun/codemodel/JTryBlock.state:(Lcom/sun/codemodel/JFormatter;)V'.\n // at com.strobel.assembler.metadata.MethodReader.readBody(MethodReader.java:65)\n // at com.strobel.assembler.metadata.MethodDefinition.tryLoadBody(MethodDefinition.java:722)\n // at com.strobel.assembler.metadata.MethodDefinition.getBody(MethodDefinition.java:83)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:202)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // Caused by: java.lang.ArrayIndexOutOfBoundsException: -1\n // at java.util.ArrayList.elementData(Unknown Source)\n // at java.util.ArrayList.get(Unknown Source)\n // at com.strobel.assembler.ir.ConstantPool.get(ConstantPool.java:80)\n // at com.strobel.assembler.metadata.ClassFileReader$Scope.lookupConstant(ClassFileReader.java:1313)\n // at com.strobel.assembler.metadata.MethodReader.readBodyCore(MethodReader.java:286)\n // at com.strobel.assembler.metadata.MethodReader.readBody(MethodReader.java:62)\n // ... 16 more\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "@Test(timeout = 4000)\n public void test031() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259326));\n classWriter0.newInteger((-2013884533));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2013884533), \"H\", \"cM6G}.\", \"cM6G}.\", stringArray0, false, false);\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n // Undeclared exception!\n try { \n methodWriter0.visitLocalVariable(\"org.objectweb.asm.jip.FieldWriter\", (String) null, \"cM6G}.\", (Label) null, (Label) null, (-2013884533));\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "public void mo1962e() throws cf {\r\n }", "public int describeContents() {\n/* 1781 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private static void runTestCWE4() {\n}", "private static void runTestCWE4() {\n}", "private static void m13385d() {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n public void warning(SAXParseException saxpe) throws SAXException {\n }", "@Test(timeout = 4000)\n public void test104() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(0);\n ClassWriter classWriter1 = new ClassWriter(2);\n classWriter0.visitSource(\"&l{u&egzGn.@\", \"&l{u&egzGn.@\");\n ClassWriter classWriter2 = new ClassWriter(0);\n ClassWriter classWriter3 = new ClassWriter(1);\n Item item0 = classWriter1.newLong(1);\n Item item1 = new Item(1, item0);\n // Undeclared exception!\n try { \n frame0.execute(194, 1, classWriter0, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test035() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n FileInput fileInput0 = new FileInput(errorPage0, \"http://xmlpull.org/v1/doc/properties.html#serializer-indentation\", \"trying to write past already finished output\");\n // Undeclared exception!\n try { \n fileInput0.wBlock(\"trying to write past already finished output\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Can't add components to a component that is not an instance of IContainer.\n //\n verifyException(\"wheel.components.Component\", e);\n }\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Label label0 = new Label();\n Label label1 = label0.getFirst();\n label0.successor = label1;\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2463));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n classWriter0.newConst(\"Cpd7(e\");\n String[] stringArray0 = new String[9];\n stringArray0[0] = \"Fj)3/|(;sZXz$\";\n stringArray0[1] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[2] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[3] = \"~)yCTRxQ#s$y[Ly%\";\n stringArray0[4] = \"Fj)3/|(;sZXz$\";\n stringArray0[5] = \"oc[MfnZM[~MHOK iO\";\n FileSystemHandling.shouldAllThrowIOExceptions();\n classWriter0.newUTF8(\"Cpd7(e\");\n Frame frame0 = label0.successor.frame;\n label0.frame = null;\n classWriter0.index = (-2463);\n stringArray0[6] = \"Cpd7(e\";\n stringArray0[7] = \"oc[MfnZM[~MHOK iO\";\n stringArray0[8] = \"Cpd7(e\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"oc[MfnZM[~MHOK iO\", \"~)yCTRxQ#s$y[Ly%\", \"oc[MfnZM[~MHOK iO\", stringArray0, true, false);\n classWriter0.newFieldItem(\"oc[MfnZM[~MHOK iO\", \"~hm$aI6.7xL0\", \"~hm$aI6.7xL0\");\n methodWriter0.visitJumpInsn(168, label0);\n methodWriter0.visitMaxs(1, (-969));\n // Undeclared exception!\n try { \n methodWriter0.visitVarInsn((-333), 32767);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -333\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"unterminated block comment\");\n // Undeclared exception!\n try { \n xmlEntityRef0.noframes();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test109() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n ClassWriter classWriter1 = new ClassWriter(285212648);\n String[] stringArray0 = new String[5];\n stringArray0[0] = \"\";\n stringArray0[1] = \"{uh\";\n stringArray0[2] = \"\";\n classWriter1.visitOuterClass(\"pUA>[s%>wi5%'noId\", \"\", \"{uh\");\n stringArray0[3] = \"i&b}d$\";\n stringArray0[4] = \"{uh\";\n classWriter0.visit(285212648, 184, \"{uh\", \"i&b}d$\", \"\", stringArray0);\n Item item0 = classWriter0.newClassItem(\"The size must be non-negative\");\n Item item1 = classWriter1.key2;\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(183, 191, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void mo1960c() throws cf {\r\n }", "public int describeContents() {\n/* 48 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test096() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n Item item0 = new Item(2);\n classWriter0.version = (-523);\n FileSystemHandling.shouldAllThrowIOExceptions();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"RunimeVisibleParaeterAnnotations\");\n String[] stringArray0 = new String[0];\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"RunimeVisibleParaeterAnnotations\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"AnnotationDefault\", \"AnnotationDefault\", \"RunimeVisibleParaeterAnnotations\", stringArray0, false, false);\n methodWriter0.visitMethodInsn(197, \"RunimeVisibleParaeterAnnotations\", \"RunimeVisibleParaeterAnnotations\", \"AnnotationDefault\");\n methodWriter0.visitMethodInsn(183, \"AnnotationDefault\", \"AnnotationDefault\", \"RunimeVisibleParaeterAnnotations\");\n int int0 = 4;\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(4, 5, stringArray0, 188, stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1790259313));\n classWriter0.newInteger((-2013884528));\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"LocalVariableTable\";\n stringArray0[1] = \"LocalVariableTable\";\n stringArray0[2] = \"cM6G}.\";\n stringArray0[3] = \"H\";\n classWriter0.newConst(\"cM6G}.\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1790259313), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"LocalVariableTable\", stringArray0, true, true);\n Label label0 = new Label();\n // Undeclared exception!\n try { \n methodWriter0.visitJumpInsn((-2013884528), label0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter((-4015));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n methodWriter0.visitMultiANewArrayInsn(\"dVw2Z7M){e/Y(#j\", (-615));\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, true, true);\n Label label0 = new Label();\n int int0 = 268435455;\n // Undeclared exception!\n try { \n methodWriter1.visitFieldInsn(268435455, \"\", \"Exceptions\", \"KY0B/+MuB[P.E(8)u)\");\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n Label label0 = new Label();\n label0.getFirst();\n ClassWriter classWriter0 = new ClassWriter(3002);\n Item item0 = classWriter0.newFieldItem(\"zOfq\", \"zv)])\\\"nPel4&5\", \"\");\n ClassWriter classWriter1 = new ClassWriter(1);\n ClassWriter classWriter2 = new ClassWriter((-201));\n int int0 = Frame.INTEGER;\n classWriter1.newInteger(172);\n Frame frame0 = new Frame();\n // Undeclared exception!\n try { \n frame0.execute(12, (-1108), classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test105() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Attribute attribute0 = new Attribute(\"LineNumberTable\");\n methodWriter0.getSize();\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(0, 1, (Object[]) null, 23, (Object[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Override\r\n public void warning(SAXParseException e) throws SAXException\r\n {\r\n System.out.println(\"Warning: \"); \r\n printInfo(e);\r\n }", "@Test(timeout = 4000)\n public void test063() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.threshold = (-3);\n FileSystemHandling.shouldAllThrowIOExceptions();\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"H\";\n stringArray0[1] = \"A\\\"69NpZ!\";\n stringArray0[2] = \"/i%NB\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"oQm>;z{ZYH6=AwV\", \"oc[MfnZM[~MHOK iO\", \"Code\", stringArray0, false, false);\n Integer integer0 = new Integer(11);\n Frame frame0 = new Frame();\n Label label0 = frame0.owner;\n // Undeclared exception!\n try { \n methodWriter0.visitLocalVariable(\"Deprecated\", \"H\", (String) null, (Label) null, (Label) null, 384);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(2694);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2160), \"\", \"\", \"\", (String[]) null, false, false);\n // Undeclared exception!\n try { \n methodWriter0.visitMethodInsn(1, \"\", \"Qu&Dpe|l~l,7f={:f!\", (String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Override\n public void warning(SAXParseException e) throws SAXParseException {\n System.err.println(\"Aviso: \" + e.toString());\n\n throw (e);\n }", "@Override\n public void warning(SAXParseException e) throws SAXParseException {\n System.err.println(\"Aviso: \" + e.toString());\n\n throw (e);\n }", "@Test(timeout = 4000)\n public void test098() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n ClassWriter classWriter2 = new ClassWriter(2);\n Item item0 = classWriter2.newLong(2);\n classWriter1.newLong(2178L);\n classWriter2.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(197, (-5054), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public void mo1966i() throws cf {\r\n }", "@Test(timeout = 4000)\n public void test04() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(958);\n FieldWriter fieldWriter0 = new FieldWriter(classWriter0, (byte) (-82), \"The array of suffixes must not be null\", \"O8\", \"wheel.asm.MethodWriter\", (Object) null);\n ByteVector byteVector0 = classWriter0.pool;\n byteVector0.putByteArray((byte[]) null, 50, (-3862));\n // Undeclared exception!\n try { \n fieldWriter0.visitAnnotation(\"D&G}fBu\", true);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test023() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n int int0 = Frame.INTEGER;\n Item item0 = classWriter0.newInteger((-1786));\n int int1 = 187;\n // Undeclared exception!\n try { \n frame0.execute(187, 49, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public final void mo83182c_(Exception exc) {\n }", "@Test(timeout = 4000)\n public void test093() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(82);\n String[] stringArray0 = new String[5];\n stringArray0[0] = \"wheel.asm.Frame\";\n stringArray0[1] = \"wheel.asm.Frame\";\n stringArray0[2] = \"wheel.asm.Frame\";\n int[] intArray0 = new int[8];\n intArray0[0] = 82;\n intArray0[1] = 1;\n intArray0[2] = (-2095);\n intArray0[3] = 82;\n intArray0[4] = 82;\n intArray0[5] = 82;\n intArray0[6] = (-268435456);\n intArray0[7] = (-106);\n frame0.inputLocals = intArray0;\n stringArray0[3] = \"wheel.asm.Frame\";\n stringArray0[4] = \"wheel.asm.Frame\";\n classWriter0.visit(82, (-106), \"wheel.asm.Frame\", \"wheel.asm.Frame\", \"wheel.asm.Frame\", stringArray0);\n // Undeclared exception!\n try { \n frame0.execute(170, 82, classWriter0, (Item) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test002() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n ClassWriter classWriter0 = new ClassWriter((-1312));\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"value \";\n stringArray0[1] = \"\";\n stringArray0[2] = \"{uh\";\n stringArray0[3] = \"i&b}d$\";\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n classWriter0.thisName = null;\n stringArray0[4] = \"\";\n stringArray0[5] = \"Ac\";\n classWriter0.newClassItem(\"value \");\n Item item0 = classWriter0.newLong(0L);\n classWriter0.newFieldItem(\"\", \"\\\"}422X3^Z.n4y5<z!\", \"\");\n classWriter0.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(76, 0, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public final void mo91715d() {\n }", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(32767);\n String[] stringArray0 = new String[3];\n stringArray0[0] = \"tE\";\n stringArray0[1] = \"RuntimeInvisibleParameterAnnotations\";\n stringArray0[2] = \"oG0Y(?Kt\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 32767, \"LocalVariableTable\", \"S&D$-ctBdre@#\", \"LocalVariableTable\", stringArray0, false, false);\n MethodWriter methodWriter1 = classWriter0.firstMethod;\n Object object0 = new Object();\n MethodWriter methodWriter2 = new MethodWriter(classWriter0, (-488), \"tE\", \"S&D$-ctBdre@#\", \"RuntimeInvisibleParameterAnnotations\", stringArray0, false, false);\n int int0 = 2282;\n Object[] objectArray0 = new Object[4];\n objectArray0[0] = (Object) \"oG0Y(?Kt\";\n objectArray0[1] = (Object) \"S&D$-ctBdre@#\";\n objectArray0[2] = (Object) \"RuntimeInvisibleParameterAnnotations\";\n objectArray0[3] = (Object) \"&h'pH__a\";\n // Undeclared exception!\n try { \n methodWriter2.visitFrame(1, 2282, objectArray0, 2, stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 4\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test\n public void test023() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef(\"i%mts\");\n // Undeclared exception!\n try {\n Component component0 = xmlEntityRef0.b((Object) \"i%mts\");\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[0];\n String string0 = \"6U7NPvC\";\n String string1 = \"LineNumberTable\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"6U7NPvC\", \"LineNumberTable\", \".s.IFJDCS\", stringArray0, false, false);\n MethodWriter methodWriter1 = methodWriter0.next;\n Label label0 = new Label();\n Label label1 = label0.getFirst();\n MethodWriter methodWriter2 = classWriter0.lastMethod;\n Label[] labelArray0 = new Label[7];\n labelArray0[0] = label0;\n labelArray0[1] = label0;\n labelArray0[2] = label0;\n labelArray0[3] = label0;\n labelArray0[4] = label1;\n labelArray0[5] = label0;\n Label label2 = new Label();\n labelArray0[6] = label2;\n methodWriter2.visitTableSwitchInsn((-226294317), 186, label1, labelArray0);\n int[] intArray0 = new int[2];\n intArray0[0] = (-226294317);\n intArray0[1] = (-226294317);\n // Undeclared exception!\n try { \n methodWriter2.visitLookupSwitchInsn(label0, intArray0, labelArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "@Test(timeout = 4000)\n public void test020() throws Throwable {\n Frame frame0 = new Frame();\n Class<String> class0 = String.class;\n Type.getType(class0);\n Type.getType(class0);\n Type.getObjectType(\"The prefix must not be null\");\n Type type0 = Type.INT_TYPE;\n ClassWriter classWriter0 = new ClassWriter(1093);\n Item item0 = classWriter0.newFieldItem(\"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\", \"%B\\\"F$,FHLc-:\");\n classWriter0.toByteArray();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n // Undeclared exception!\n try { \n frame0.execute(153, 3176, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public int getDrawingOrder() {\n/* 1068 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"Label offset position has not been resolved yet\";\n stringArray0[1] = \"'0\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"'0\", \"Label offset position has not been resolved yet\", \"'0\", stringArray0, false, false);\n Label label0 = new Label();\n Object object0 = new Object();\n label0.info = object0;\n methodWriter0.visitMultiANewArrayInsn(\"@pW02*kbwab-\", (-299));\n Label label1 = label0.getFirst();\n label0.position = 185;\n Label[] labelArray0 = new Label[2];\n labelArray0[0] = label1;\n methodWriter0.visitMultiANewArrayInsn(\"Ljava/lang/Synthetic;\", (-1840700267));\n methodWriter0.visitTryCatchBlock(label1, label0, label0, \"double\");\n methodWriter0.visitIincInsn(2, (-533));\n MethodWriter methodWriter1 = classWriter0.lastMethod;\n methodWriter1.visitFrame(1557, (-802), labelArray0, (-1840700267), stringArray0);\n methodWriter1.visitJumpInsn((-533), label1);\n methodWriter0.visitTryCatchBlock(label1, label1, label0, \"\");\n assertSame(methodWriter0, methodWriter1);\n }", "@Test(timeout = 4000)\n public void test018() throws Throwable {\n Label label0 = new Label();\n Label label1 = new Label();\n ClassWriter classWriter0 = new ClassWriter(3002);\n classWriter0.newFieldItem(\"zOfq\", \"zv)])\\\"nPel4&5\", \"\");\n ClassWriter classWriter1 = new ClassWriter(162);\n classWriter1.toByteArray();\n Type type0 = Type.VOID_TYPE;\n Type type1 = Type.BOOLEAN_TYPE;\n Type type2 = Type.FLOAT_TYPE;\n Type type3 = Type.SHORT_TYPE;\n ClassWriter classWriter2 = new ClassWriter(40);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(2);\n Frame frame0 = new Frame();\n // Undeclared exception!\n try { \n frame0.execute(26, (-345), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test\n public void test104() throws Throwable {\n Hidden hidden0 = new Hidden((Component) null, \"Col componet can be added only to a TableBlock.\", \"Col componet can be added only to a TableBlock.\");\n // Undeclared exception!\n try {\n Component component0 = hidden0.fieldset();\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Label label0 = new Label();\n Label[] labelArray0 = new Label[5];\n labelArray0[0] = label0;\n Label label1 = label0.next;\n labelArray0[1] = null;\n labelArray0[2] = label0;\n labelArray0[3] = label0;\n labelArray0[4] = label0;\n // Undeclared exception!\n try { \n methodWriter0.visitTableSwitchInsn((-2030), (-3196), label0, labelArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "static void ignore() {\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "public interface NoCopySpan\n/* */ {\n/* */ public static class Concrete\n/* */ implements NoCopySpan\n/* */ {\n/* */ public Concrete() {\n/* 37 */ throw new RuntimeException(\"Stub!\");\n/* */ }\n/* */ }\n/* */ }", "@Test(timeout = 4000)\n public void test046() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(16777228);\n ClassWriter classWriter1 = new ClassWriter(2);\n Item item0 = classWriter0.newFieldItem(\"\", \"\", \"T~1S2uS7<aMtHqcUL\");\n Frame frame1 = new Frame();\n // Undeclared exception!\n try { \n frame1.execute(154, 1, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test058() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter((-2826));\n classWriter0.visit(1872, 1048575, \"Sensitive\", \"\", \"\", (String[]) null);\n ClassWriter classWriter1 = new ClassWriter((-2077));\n MethodWriter methodWriter0 = classWriter1.firstMethod;\n classWriter0.lastMethod = null;\n classWriter0.newClassItem(\"\");\n Item item0 = classWriter0.newLong(0L);\n Item item1 = new Item(2, item0);\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)126;\n byteArray0[1] = (byte) (-85);\n byteArray0[2] = (byte) (-99);\n byteArray0[3] = (byte)11;\n byteArray0[4] = (byte)91;\n byteArray0[5] = (byte)91;\n byteArray0[6] = (byte) (-33);\n byteArray0[7] = (byte)74;\n byteArray0[8] = (byte)69;\n FileSystemHandling.appendDataToFile((EvoSuiteFile) null, byteArray0);\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"u;T>z)bm]K%a}Ta\");\n classWriter1.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(23, 1872, classWriter1, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test024() throws Throwable {\n Label label0 = new Label();\n label0.getFirst();\n ClassWriter classWriter0 = new ClassWriter(3002);\n classWriter0.newFieldItem(\"zOfq\", \"zv)])\\\"nPel4&5\", \"\");\n ClassWriter classWriter1 = new ClassWriter(162);\n classWriter1.visitOuterClass(\"LNXn*Z.`tGd\\\"dR\", \"8}kxRrNjQ;\\\"/a\", (String) null);\n classWriter1.toByteArray();\n Type type0 = Type.VOID_TYPE;\n Type type1 = Type.BOOLEAN_TYPE;\n Type type2 = Type.FLOAT_TYPE;\n Type type3 = Type.SHORT_TYPE;\n ClassWriter classWriter2 = new ClassWriter(40);\n Item item0 = classWriter0.key2;\n Item item1 = new Item(2);\n Frame frame0 = new Frame();\n // Undeclared exception!\n try { \n frame0.execute(60, (-345), classWriter2, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "public interface C0846i extends C0831g {\n /* renamed from: a */\n C0832f m5767a() throws C0841b, WDException;\n\n /* renamed from: b */\n void m5768b() throws C0841b;\n\n /* renamed from: c */\n void m5769c() throws C0841b;\n\n /* renamed from: d */\n void m5770d() throws C0841b;\n\n /* renamed from: e */\n void m5771e() throws C0841b;\n}", "@Test(timeout = 4000)\n public void test057() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n String string0 = \"H\";\n classWriter0.addType(\"H\");\n FileSystemHandling.shouldAllThrowIOExceptions();\n String string1 = \"Fj)3/|(;sZXz$\";\n boolean boolean0 = false;\n String string2 = null;\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"H\";\n stringArray0[1] = \"<inat>\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \"<inat>\", \"Fj)3/|(;sZXz$\", (String) null, stringArray0, false, true);\n methodWriter0.visitVarInsn(191, (-1725718076));\n int int0 = 176;\n methodWriter0.visitInsn(176);\n Integer integer0 = new Integer(2);\n Label label0 = new Label();\n Label label1 = label0.successor;\n FileSystemHandling.shouldThrowIOException((EvoSuiteFile) null);\n // Undeclared exception!\n try { \n label0.visitSubroutine((Label) null, (-672L), 813);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1\n //\n verifyException(\"org.objectweb.asm.jip.Label\", e);\n }\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"\");\n String[] stringArray0 = new String[0];\n classWriter0.visit(1, 1, \"InnerClasses\", \"\", \"EQIUR?\", stringArray0);\n classWriter0.newField(\"\", \"\", \"\\\"\");\n String[] stringArray1 = new String[4];\n stringArray1[0] = \"\\\"\";\n stringArray1[1] = \"char\";\n stringArray1[2] = \"boolean\";\n stringArray1[3] = \" ,G\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \" ,G\", \"<T'RwU+)i.UKJX>\", \"\", stringArray1, true, true);\n // Undeclared exception!\n try { \n methodWriter0.visitIntInsn(849, 849);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.Frame\", e);\n }\n }", "private static void runTestCWE5() {\n}", "private static void runTestCWE5() {\n}", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"Label offset position has not been resolved yet\";\n stringArray0[1] = \"'0\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"'0\", \"Label offset position has not been resolved yet\", \"'0\", stringArray0, false, false);\n Label label0 = new Label();\n Label label1 = label0.successor;\n Label[] labelArray0 = new Label[3];\n labelArray0[0] = null;\n methodWriter0.visitMaxs(3281, 6);\n methodWriter0.visitFieldInsn(90, \"Label offset position has not been resolved yet\", \"'0\", \"ZWx\\\"3;rcoG`-\");\n int int0 = 188;\n methodWriter0.visitMultiANewArrayInsn(\"\", 188);\n methodWriter0.visitEnd();\n Attribute attribute0 = new Attribute(\"'0\");\n byte[] byteArray0 = new byte[0];\n // Undeclared exception!\n try { \n attribute0.write(classWriter0, byteArray0, 90, 3281, 188);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.Attribute\", e);\n }\n }", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n Frame frame0 = new Frame();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n ClassWriter classWriter1 = new ClassWriter(1);\n ClassWriter classWriter2 = new ClassWriter((-719));\n Item item0 = classWriter2.newClassItem(\"n0*\");\n Item item1 = new Item(2, item0);\n Item item2 = new Item(184, item0);\n classWriter2.toByteArray();\n // Undeclared exception!\n try { \n frame0.execute(179, 1048575, classWriter2, item1);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "@Test(timeout = 4000)\n public void test102() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-2450));\n String string0 = \"9~\\\"GM0+ ?&-(JmN[0f.\";\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"`abrPw?i1\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"9~\\\"GM0+ ?&-(JmN[0f.\", \"Fj)3/|(;sZXz$\", \"oc[MfnZM[~MHOK iO\", (String[]) null, false, false);\n Object object0 = new Object();\n classWriter0.newInteger((-2450));\n classWriter0.newDouble((-2450));\n Item item0 = classWriter0.key3;\n // Undeclared exception!\n try { \n methodWriter0.visitFrame((-1), 2, (Object[]) null, 2, (Object[]) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }", "static void d() throws LowLevelException {\n e();\n }" ]
[ "0.6180847", "0.6116066", "0.5969414", "0.59651595", "0.5951053", "0.5934575", "0.58812034", "0.5868394", "0.5857444", "0.58565927", "0.5848016", "0.5767215", "0.5765949", "0.5745094", "0.57194626", "0.5708709", "0.56929463", "0.5682206", "0.5681707", "0.5641022", "0.5614942", "0.5604829", "0.55946136", "0.55861175", "0.5584241", "0.5583851", "0.55768", "0.5572908", "0.5557578", "0.5552919", "0.5546309", "0.55302507", "0.55249476", "0.5520038", "0.5514282", "0.5507175", "0.5499064", "0.5498934", "0.5496259", "0.5489298", "0.54674804", "0.54641706", "0.54575956", "0.54350865", "0.54350865", "0.54320693", "0.5430955", "0.5423532", "0.54145676", "0.54137385", "0.5407399", "0.54012525", "0.53925115", "0.53905743", "0.5389761", "0.53872496", "0.53749335", "0.5374173", "0.5372964", "0.5370762", "0.53706163", "0.53706163", "0.5368279", "0.5364833", "0.53562486", "0.53543746", "0.535056", "0.535056", "0.53492606", "0.53439623", "0.53436995", "0.53427076", "0.5332337", "0.53303206", "0.532887", "0.5325253", "0.53193885", "0.5316409", "0.5313788", "0.53104156", "0.53080744", "0.5308054", "0.5307958", "0.5302416", "0.53018904", "0.5299565", "0.5296443", "0.52958655", "0.52956545", "0.5295047", "0.5292182", "0.5285429", "0.52851176", "0.5284908", "0.5282878", "0.52824616", "0.52824616", "0.5277762", "0.52723205", "0.5269601", "0.5268217" ]
0.0
-1
/ access modifiers changed from: protected / renamed from: a
public final void mo31289a() { this.f13992b = true; C5108gb.this.mo31286b(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public abstract String a();", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public void a() {\r\n }", "public void a() {\n ((a) this.a).a();\n }", "@Override\n public void b() {\n }", "public abstract void m15813a();", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public abstract void mo70713b();", "private abstract void privateabstract();", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public abstract void mo27464a();", "public abstract Object mo26777y();", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public abstract Object mo1771a();", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void b() {\n\n\t}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public void a() {\n }", "public void a() {\n }", "private stendhal() {\n\t}", "public void b() {\r\n }", "public abstract void mo30696a();", "public abstract void mo102899a();", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public abstract void mo3994a();", "public final void mo51373a() {\n }", "public abstract T a();", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public static void a() {\n\n }", "public void mo38117a() {\n }", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "public abstract void mo27386d();", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo4359a();", "public void m23075a() {\n }", "public void b() {\n }", "public void b() {\n }", "public abstract int a();", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "void m1864a() {\r\n }", "public abstract void afvuren();", "public abstract void mo27385c();", "@Override\n public void perish() {\n \n }", "public abstract void mo56925d();", "protected void h() {}", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public abstract void mo35054b();", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "public abstract void mo53562a(C18796a c18796a);", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public abstract void alimentarse();", "public void mo4359a() {\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract String mo118046b();", "protected void a(dh paramdh) {}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public abstract void mo45765b();", "public abstract BoundType a();", "public void mo2740a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public static a c() {\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public int b()\r\n/* 45: */ {\r\n/* 46: 58 */ g();\r\n/* 47: */ \r\n/* 48: 60 */ return super.b();\r\n/* 49: */ }", "public Set a()\r\n/* 44: */ {\r\n/* 45: 47 */ return this.e;\r\n/* 46: */ }", "public abstract Object mo1185b();", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo9848a() {\n }", "private final void i() {\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo6549b();", "public void mo6944a() {\n }", "public void mo12930a() {\n }", "public abstract void a(StringBuilder sb);", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract void mo1184a(Object obj);", "public static void main(String[] args) {\r\n\t\t//A obj = new A(); //A cannot be resolved to a type...try to access the class A method in thz class -- error \r\n\t // obj.i = 80; //here..The field A.i is not visible...it, allow as to create the object, but still it is not allow as to access thev & m, bcoz if we dont specify anything-- default(V & M) so it only accessible within the package.\r\n\t\r\n\t // obj.j = 90; //The field A.j is not visible -- error, cant access since it is protected.\r\n\t // obj.flow(); //The method flow() from the type A is not visible, cant access since it is protected.\r\n\t \r\n\t B obj1 = new B(); //extended class A, so we can access its V and M here.\r\n\t obj1.j = 70;\r\n\t obj1.flow();\r\n\t \r\n\t A obj3 = new A(); // here no need to extend class A , just create obj for A class and access it, bcoz it is \"public\".\r\n\t obj3.D = 100;\r\n\t obj3.sub();\r\n\t}", "public void mo21825b() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public abstract boolean a();" ]
[ "0.75464964", "0.73093235", "0.71735907", "0.692263", "0.68435764", "0.6787232", "0.67364866", "0.6659923", "0.6635336", "0.6635336", "0.65571475", "0.65408033", "0.65371394", "0.6500136", "0.6494878", "0.6494545", "0.6485399", "0.6476603", "0.64670885", "0.6403744", "0.6394189", "0.63858354", "0.63791156", "0.6359318", "0.635862", "0.63452816", "0.6342364", "0.6338125", "0.6318679", "0.6308252", "0.6302185", "0.6302185", "0.6297184", "0.6286423", "0.6281061", "0.6277148", "0.62757826", "0.62720114", "0.6261936", "0.6259821", "0.62542534", "0.62433994", "0.6240186", "0.62257165", "0.62044704", "0.6188935", "0.61817116", "0.6180415", "0.6169017", "0.6164467", "0.6156291", "0.6156291", "0.6153341", "0.6152147", "0.61438286", "0.6107348", "0.6106999", "0.6105938", "0.61047196", "0.61005807", "0.60873705", "0.60854256", "0.60787046", "0.60570186", "0.6056411", "0.60460806", "0.6044947", "0.6044947", "0.6043863", "0.604216", "0.60415447", "0.6019007", "0.6006512", "0.6003148", "0.59860367", "0.59761965", "0.5969308", "0.5968431", "0.59634477", "0.5958228", "0.595593", "0.59471744", "0.5946021", "0.59442663", "0.59337384", "0.5933126", "0.59321463", "0.5931256", "0.5929537", "0.5924491", "0.59230584", "0.591813", "0.5916826", "0.5914802", "0.5913617", "0.59135664", "0.58989006", "0.5897495", "0.5892505", "0.5891249", "0.58905417" ]
0.0
-1
/ renamed from: a
public static int[] m17256a() { return (int[]) f14004f.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: a
public abstract boolean mo31194a(Context context, String str, Hashtable hashtable, TJConnectListener tJConnectListener);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
public final boolean mo31287b(Context context, String str, Hashtable hashtable, TJConnectListener tJConnectListener) { this.f13976a.lock(); if (tJConnectListener != null) { try { this.f13982g.addLast(C5087fn.m17200a(tJConnectListener, TJConnectListener.class)); } catch (Throwable th) { this.f13976a.unlock(); throw th; } } C5112a aVar = new C5112a(context, str, hashtable); int i = C51113.f13986a[this.f13977b - 1]; if (i != 1) { if (i == 2) { this.f13980e = aVar; C5096fs.f13949b.addObserver(new Observer() { /* JADX WARNING: Code restructure failed: missing block: B:2:0x0015, code lost: r3 = r2.f13984a; */ /* Code decompiled incorrectly, please refer to instructions dump. */ public final void update(java.util.Observable r3, java.lang.Object r4) { /* r2 = this; com.tapjoy.internal.fs$a r3 = com.tapjoy.internal.C5096fs.f13949b r3.deleteObserver(r2) java.lang.Boolean r3 = java.lang.Boolean.TRUE boolean r3 = r3.equals(r4) java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3) boolean r3 = r3.booleanValue() if (r3 != 0) goto L_0x0030 com.tapjoy.internal.gb r3 = com.tapjoy.internal.C5108gb.this com.tapjoy.internal.gb$a r4 = r3.f13980e if (r4 == 0) goto L_0x0030 android.content.Context r4 = r4.f13987a if (r4 == 0) goto L_0x0030 com.tapjoy.internal.gb$b r4 = new com.tapjoy.internal.gb$b com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this r1 = 0 r4.<init>(r0, r1) r3.f13978c = r4 com.tapjoy.internal.gb r3 = com.tapjoy.internal.C5108gb.this com.tapjoy.internal.gb$b r3 = r3.f13978c r3.mo31467e() L_0x0030: return */ throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.C5108gb.C51091.update(java.util.Observable, java.lang.Object):void"); } }); if (mo31194a(aVar.f13987a, aVar.f13988b, aVar.f13989c, new TJConnectListener() { public final void onConnectFailure() { C5108gb.this.mo31284a(false); } public final void onConnectSuccess() { C5108gb gbVar = C5108gb.this; int i = C5116c.f14003e; int i2 = C5116c.f14000b; gbVar.mo31283a(i); C5108gb.this.mo31284a(true); } })) { int i2 = C5116c.f14000b; int i3 = C5116c.f13999a; mo31283a(i2); } else { this.f13982g.clear(); } } else if (i == 3 || i == 4) { this.f13983h = aVar; } else if (i != 5) { mo31283a(C5116c.f13999a); } else { this.f13983h = aVar; mo31286b(); } this.f13976a.unlock(); return false; } mo31284a(true); this.f13976a.unlock(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "public an b() {\n return a(this.a);\n }", "protected abstract void a(bru parambru);", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.64558864", "0.6283203", "0.6252635", "0.6250949", "0.6244743", "0.6216273", "0.6194491", "0.6193556", "0.61641675", "0.6140157", "0.60993093", "0.60974354", "0.6077849", "0.6001867", "0.5997364", "0.59737104", "0.59737104", "0.5905105", "0.5904295", "0.58908087", "0.5886636", "0.58828026", "0.5855491", "0.584618", "0.5842517", "0.5824137", "0.5824071", "0.58097327", "0.5802052", "0.58012927", "0.579443", "0.5792392", "0.57902914", "0.5785124", "0.57718205", "0.57589084", "0.5735892", "0.5735892", "0.5734873", "0.5727929", "0.5720821", "0.5712531", "0.5706813", "0.56896514", "0.56543154", "0.5651059", "0.5649904", "0.56496733", "0.5647035", "0.5640965", "0.5640109", "0.563993", "0.5631903", "0.5597427", "0.55843794", "0.5583287", "0.557783", "0.55734867", "0.55733293", "0.5572254", "0.55683887", "0.55624336", "0.55540246", "0.5553985", "0.55480546", "0.554261", "0.5535739", "0.5529958", "0.5519634", "0.5517503", "0.55160624", "0.5511545", "0.5505353", "0.5500533", "0.5491741", "0.5486198", "0.5481978", "0.547701", "0.54725856", "0.5471632", "0.5463497", "0.5460805", "0.5454913", "0.5454885", "0.54519916", "0.5441594", "0.5436747", "0.5432453", "0.5425923", "0.5424724", "0.54189867", "0.54162544", "0.54051477", "0.53998184", "0.53945845", "0.53887725", "0.5388146", "0.5387678", "0.53858143", "0.53850687", "0.5384439" ]
0.0
-1
/ JADX WARNING: Code restructure failed: missing block: B:2:0x0015, code lost: r3 = r2.f13984a; / Code decompiled incorrectly, please refer to instructions dump.
public final void update(java.util.Observable r3, java.lang.Object r4) { /* r2 = this; com.tapjoy.internal.fs$a r3 = com.tapjoy.internal.C5096fs.f13949b r3.deleteObserver(r2) java.lang.Boolean r3 = java.lang.Boolean.TRUE boolean r3 = r3.equals(r4) java.lang.Boolean r3 = java.lang.Boolean.valueOf(r3) boolean r3 = r3.booleanValue() if (r3 != 0) goto L_0x0030 com.tapjoy.internal.gb r3 = com.tapjoy.internal.C5108gb.this com.tapjoy.internal.gb$a r4 = r3.f13980e if (r4 == 0) goto L_0x0030 android.content.Context r4 = r4.f13987a if (r4 == 0) goto L_0x0030 com.tapjoy.internal.gb$b r4 = new com.tapjoy.internal.gb$b com.tapjoy.internal.gb r0 = com.tapjoy.internal.C5108gb.this r1 = 0 r4.<init>(r0, r1) r3.f13978c = r4 com.tapjoy.internal.gb r3 = com.tapjoy.internal.C5108gb.this com.tapjoy.internal.gb$b r3 = r3.f13978c r3.mo31467e() L_0x0030: return */ throw new UnsupportedOperationException("Method not decompiled: com.tapjoy.internal.C5108gb.C51091.update(java.util.Observable, java.lang.Object):void"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private p000a.p001a.p002a.p003a.C0916s m1655b(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.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\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 processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "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 }", "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 }", "private final void zzR(Object var1_1, zzha var2_2) {\n block94: {\n var3_3 = this;\n var4_4 = var1_1;\n var5_5 = var2_2;\n var6_6 = this.zzh;\n if (var6_6 != 0) break block94;\n var7_7 = this.zzc;\n var6_6 = ((int[])var7_7).length;\n var8_8 = zzja.zzb;\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n var11_11 = var9_9;\n var13_13 = 0;\n for (var12_12 = 0; var12_12 < var6_6; var12_12 += 3) {\n block95: {\n var14_14 = var3_3.zzA(var12_12);\n var15_15 = var3_3.zzc;\n var16_16 = var15_15[var12_12];\n var17_17 = zzja.zzC(var14_14);\n var18_18 = 17;\n var19_19 = 1;\n if (var17_17 <= var18_18) {\n var20_20 = var3_3.zzc;\n var21_21 = var12_12 + 2;\n var18_18 = var20_20[var21_21];\n if ((var21_21 = var18_18 & var9_9) != var11_11) {\n var22_22 = var21_21;\n var13_13 = var8_8.getInt(var4_4, var22_22);\n var11_11 = var21_21;\n }\n var18_18 >>>= 20;\n var18_18 = var19_19 << var18_18;\n } else {\n var18_18 = 0;\n var20_20 = null;\n }\n var24_23 = var14_14 &= var9_9;\n switch (var17_17) lbl-1000:\n // 56 sources\n\n {\n default: {\n var17_17 = 0;\n break block95;\n }\n case 68: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 67: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 66: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 65: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 64: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 63: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 62: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 61: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n ** GOTO lbl-1000\n }\n case 60: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 59: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 58: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = (int)zzja.zzH(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n ** GOTO lbl-1000\n }\n case 57: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 56: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 55: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 54: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 53: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 52: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var10_10 = zzja.zzE(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n ** GOTO lbl-1000\n }\n case 51: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var28_26 = zzja.zzD(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n ** GOTO lbl-1000\n }\n case 50: {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var3_3.zzS(var5_5, var16_16, var26_24, var12_12);\n ** GOTO lbl-1000\n }\n case 49: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzaa(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 48: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzN(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 47: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 46: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 45: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 44: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 43: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 42: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzW(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 41: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 40: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 39: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 38: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 37: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 36: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 35: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 34: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var16_16 = 0;\n var15_15 = null;\n zzjk.zzN(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 33: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 32: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 31: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 30: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 29: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, false);\nlbl290:\n // 6 sources\n\n var17_17 = 0;\n break block95;\n }\n case 28: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzY(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 27: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzZ(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 26: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzX(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 25: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var17_17 = 0;\n zzjk.zzW(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 24: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 23: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 22: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 21: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 20: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 19: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 18: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 17: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 16: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n }\n break block95;\n }\n case 15: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n }\n break block95;\n }\n case 14: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n }\n break block95;\n }\n case 13: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n }\n break block95;\n }\n case 12: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n }\n break block95;\n }\n case 11: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n }\n break block95;\n }\n case 10: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n }\n break block95;\n }\n case 9: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 8: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n }\n break block95;\n }\n case 7: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = (int)zzkh.zzh(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n }\n break block95;\n }\n case 6: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n }\n break block95;\n }\n case 5: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n }\n break block95;\n }\n case 4: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n }\n break block95;\n }\n case 3: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n }\n break block95;\n }\n case 2: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n }\n break block95;\n }\n case 1: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var10_10 = zzkh.zzj(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n }\n break block95;\n }\n case 0: \n }\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var28_26 = zzkh.zzl(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n }\n }\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n }\n var7_7 = var3_3.zzn;\n var4_4 = var7_7.zzd(var4_4);\n var7_7.zzi(var4_4, var5_5);\n return;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }", "private final com.google.android.finsky.verifier.p259a.p260a.C4709m m21920b(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 10: goto L_0x000e;\n case 16: goto L_0x0015;\n case 26: goto L_0x0046;\n case 34: goto L_0x0053;\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 r0 = r7.f();\n r6.f24221c = r0;\n goto L_0x0000;\n L_0x0015:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r2) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0020;\n case 2: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = 44;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n r4 = \" is not a valid enum ResourceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x003b }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x0043:\n r6.f24222d = r2;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0000;\n L_0x0046:\n r0 = r7.g();\n r6.f24223e = r0;\n r0 = r6.f24220b;\n r0 = r0 | 1;\n r6.f24220b = r0;\n goto L_0x0000;\n L_0x0053:\n r0 = r7.f();\n r6.f24224f = r0;\n r0 = r6.f24220b;\n r0 = r0 | 2;\n r6.f24220b = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.finsky.verifier.a.a.m.b(com.google.protobuf.nano.a):com.google.android.finsky.verifier.a.a.m\");\n }", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "static void m13383b() {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "public long mo915b() {\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.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\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 r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }", "public final void mo56977b() {\n /*\n r2 = this;\n com.ss.android.ugc.aweme.common.e r0 = r2.f67572c\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.i r0 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28951i) r0\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.common.a r1 = r2.f67571b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.d r1 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28944d) r1\n if (r1 == 0) goto L_0x0014\n java.lang.Object r1 = r1.getData()\n java.lang.String r1 = (java.lang.String) r1\n if (r1 != 0) goto L_0x0016\n L_0x0014:\n java.lang.String r1 = \"\"\n L_0x0016:\n r0.mo74240a(r1)\n return\n L_0x001a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28946e.mo56977b():void\");\n }", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\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/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\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/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }", "private void bщ04490449щ0449щ(rrrrrr.rcccrr r6) {\n /*\n r5 = this;\n r4 = 0;\n r0 = r6.getJsonData();\t Catch:{ Exception -> 0x0056 }\n r1 = new rrrrrr.ccrcrc;\t Catch:{ Exception -> 0x0056 }\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0056 }\n r2.<init>();\t Catch:{ Exception -> 0x0056 }\n r3 = r5.bнн043Dннн;\t Catch:{ Exception -> 0x0056 }\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = r3.getFilesDir();\t Catch:{ Exception -> 0x0056 }\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = java.io.File.separator;\t Catch:{ Exception -> 0x0056 }\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = \"3HC4C-01.txt\";\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r2 = r2.toString();\t Catch:{ Exception -> 0x0056 }\n r1.<init>(r2);\t Catch:{ Exception -> 0x0056 }\n r2 = bЗ04170417ЗЗЗ;\n r3 = bЗЗЗ0417ЗЗ;\n r3 = r3 + r2;\n r2 = r2 * r3;\n r3 = b04170417З0417ЗЗ;\n r2 = r2 % r3;\n switch(r2) {\n case 0: goto L_0x0041;\n default: goto L_0x0039;\n };\n L_0x0039:\n r2 = 38;\n bЗ04170417ЗЗЗ = r2;\n r2 = 29;\n b041704170417ЗЗЗ = r2;\n L_0x0041:\n r1.load();\t Catch:{ Exception -> 0x0056 }\n L_0x0044:\n switch(r4) {\n case 0: goto L_0x004b;\n case 1: goto L_0x0044;\n default: goto L_0x0047;\n };\t Catch:{ Exception -> 0x0056 }\n L_0x0047:\n switch(r4) {\n case 0: goto L_0x004b;\n case 1: goto L_0x0044;\n default: goto L_0x004a;\n };\t Catch:{ Exception -> 0x0056 }\n L_0x004a:\n goto L_0x0047;\n L_0x004b:\n r0 = r0.toString();\t Catch:{ Exception -> 0x0056 }\n r1.push(r0);\t Catch:{ Exception -> 0x0056 }\n r1.save();\t Catch:{ Exception -> 0x0056 }\n L_0x0055:\n return;\n L_0x0056:\n r0 = move-exception;\n goto L_0x0055;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.bщ04490449щ0449щ(rrrrrr.rcccrr):void\");\n }", "public final void m15744a(com.p111d.p112a.p114b.C5301g r9) {\n /*\n r8 = this;\n r0 = r8.f17783i;\n r1 = r8.f17781g;\n r2 = 0;\n r3 = 1;\n if (r1 == 0) goto L_0x0010;\n L_0x0008:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0010;\n L_0x000e:\n r4 = r3;\n goto L_0x0011;\n L_0x0010:\n r4 = r2;\n L_0x0011:\n r5 = -1;\n L_0x0012:\n r5 = r5 + r3;\n r6 = 16;\n if (r5 < r6) goto L_0x0029;\n L_0x0017:\n r0 = r0.m4032a();\n if (r0 == 0) goto L_0x0148;\n L_0x001d:\n if (r1 == 0) goto L_0x0027;\n L_0x001f:\n r4 = r0.m4038b();\n if (r4 == 0) goto L_0x0027;\n L_0x0025:\n r4 = r3;\n goto L_0x0028;\n L_0x0027:\n r4 = r2;\n L_0x0028:\n r5 = r2;\n L_0x0029:\n r6 = r0.m4031a(r5);\n if (r6 == 0) goto L_0x0148;\n L_0x002f:\n if (r4 == 0) goto L_0x0043;\n L_0x0031:\n r7 = r0.m4039c(r5);\n if (r7 == 0) goto L_0x003a;\n L_0x0037:\n r9.writeObjectId(r7);\n L_0x003a:\n r7 = r0.m4040d(r5);\n if (r7 == 0) goto L_0x0043;\n L_0x0040:\n r9.writeTypeId(r7);\n L_0x0043:\n r7 = com.p111d.p112a.p121c.p138m.C6523u.C15401.f4807a;\n r6 = r6.ordinal();\n r6 = r7[r6];\n switch(r6) {\n case 1: goto L_0x0143;\n case 2: goto L_0x013e;\n case 3: goto L_0x0139;\n case 4: goto L_0x0134;\n case 5: goto L_0x011e;\n case 6: goto L_0x0108;\n case 7: goto L_0x00c5;\n case 8: goto L_0x0074;\n case 9: goto L_0x0070;\n case 10: goto L_0x006c;\n case 11: goto L_0x0068;\n case 12: goto L_0x0056;\n default: goto L_0x004e;\n };\n L_0x004e:\n r9 = new java.lang.RuntimeException;\n r0 = \"Internal error: should never end up through this code path\";\n r9.<init>(r0);\n throw r9;\n L_0x0056:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p121c.p138m.C5378q;\n if (r7 == 0) goto L_0x0064;\n L_0x005e:\n r6 = (com.p111d.p112a.p121c.p138m.C5378q) r6;\n r6.m11598a(r9);\n goto L_0x0012;\n L_0x0064:\n r9.writeObject(r6);\n goto L_0x0012;\n L_0x0068:\n r9.writeNull();\n goto L_0x0012;\n L_0x006c:\n r9.writeBoolean(r2);\n goto L_0x0012;\n L_0x0070:\n r9.writeBoolean(r3);\n goto L_0x0012;\n L_0x0074:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Double;\n if (r7 == 0) goto L_0x0086;\n L_0x007c:\n r6 = (java.lang.Double) r6;\n r6 = r6.doubleValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0086:\n r7 = r6 instanceof java.math.BigDecimal;\n if (r7 == 0) goto L_0x0090;\n L_0x008a:\n r6 = (java.math.BigDecimal) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0090:\n r7 = r6 instanceof java.lang.Float;\n if (r7 == 0) goto L_0x009f;\n L_0x0094:\n r6 = (java.lang.Float) r6;\n r6 = r6.floatValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x009f:\n if (r6 != 0) goto L_0x00a2;\n L_0x00a1:\n goto L_0x0068;\n L_0x00a2:\n r7 = r6 instanceof java.lang.String;\n if (r7 == 0) goto L_0x00ad;\n L_0x00a6:\n r6 = (java.lang.String) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00ad:\n r0 = new com.d.a.b.f;\n r1 = \"Unrecognized value type for VALUE_NUMBER_FLOAT: %s, can not serialize\";\n r3 = new java.lang.Object[r3];\n r4 = r6.getClass();\n r4 = r4.getName();\n r3[r2] = r4;\n r1 = java.lang.String.format(r1, r3);\n r0.<init>(r1, r9);\n throw r0;\n L_0x00c5:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof java.lang.Integer;\n if (r7 == 0) goto L_0x00d8;\n L_0x00cd:\n r6 = (java.lang.Integer) r6;\n r6 = r6.intValue();\n L_0x00d3:\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00d8:\n r7 = r6 instanceof java.math.BigInteger;\n if (r7 == 0) goto L_0x00e3;\n L_0x00dc:\n r6 = (java.math.BigInteger) r6;\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00e3:\n r7 = r6 instanceof java.lang.Long;\n if (r7 == 0) goto L_0x00f2;\n L_0x00e7:\n r6 = (java.lang.Long) r6;\n r6 = r6.longValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x00f2:\n r7 = r6 instanceof java.lang.Short;\n if (r7 == 0) goto L_0x0101;\n L_0x00f6:\n r6 = (java.lang.Short) r6;\n r6 = r6.shortValue();\n r9.writeNumber(r6);\n goto L_0x0012;\n L_0x0101:\n r6 = (java.lang.Number) r6;\n r6 = r6.intValue();\n goto L_0x00d3;\n L_0x0108:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x0117;\n L_0x0110:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x0117:\n r6 = (java.lang.String) r6;\n r9.writeString(r6);\n goto L_0x0012;\n L_0x011e:\n r6 = r0.m4037b(r5);\n r7 = r6 instanceof com.p111d.p112a.p114b.C1382p;\n if (r7 == 0) goto L_0x012d;\n L_0x0126:\n r6 = (com.p111d.p112a.p114b.C1382p) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x012d:\n r6 = (java.lang.String) r6;\n r9.writeFieldName(r6);\n goto L_0x0012;\n L_0x0134:\n r9.writeEndArray();\n goto L_0x0012;\n L_0x0139:\n r9.writeStartArray();\n goto L_0x0012;\n L_0x013e:\n r9.writeEndObject();\n goto L_0x0012;\n L_0x0143:\n r9.writeStartObject();\n goto L_0x0012;\n L_0x0148:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.m.u.a(com.d.a.b.g):void\");\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final com.google.android.play.p179a.p352a.C6210u m28673b(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 10: goto L_0x000e;\n case 16: goto L_0x001b;\n case 26: goto L_0x0058;\n case 34: goto L_0x0065;\n case 42: goto L_0x0072;\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 r0 = r7.f();\n r6.f31049b = r0;\n r0 = r6.f31048a;\n r0 = r0 | 1;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x001b:\n r1 = r6.f31048a;\n r1 = r1 | 2;\n r6.f31048a = r1;\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0047 }\n switch(r2) {\n case 0: goto L_0x004f;\n case 1: goto L_0x004f;\n case 2: goto L_0x004f;\n case 3: goto L_0x004f;\n case 4: goto L_0x004f;\n case 5: goto L_0x004f;\n case 6: goto L_0x004f;\n default: goto L_0x002c;\n };\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x002c:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = 38;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r4 = \" is not a valid enum OsType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0047 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0047 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0047 }\n L_0x0047:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x004f:\n r6.f31050c = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r6.f31048a;\t Catch:{ IllegalArgumentException -> 0x0047 }\n r2 = r2 | 2;\n r6.f31048a = r2;\t Catch:{ IllegalArgumentException -> 0x0047 }\n goto L_0x0000;\n L_0x0058:\n r0 = r7.f();\n r6.f31051d = r0;\n r0 = r6.f31048a;\n r0 = r0 | 4;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0065:\n r0 = r7.f();\n r6.f31052e = r0;\n r0 = r6.f31048a;\n r0 = r0 | 8;\n r6.f31048a = r0;\n goto L_0x0000;\n L_0x0072:\n r0 = r7.f();\n r6.f31053f = r0;\n r0 = r6.f31048a;\n r0 = r0 | 16;\n r6.f31048a = r0;\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.u.b(com.google.protobuf.nano.a):com.google.android.play.a.a.u\");\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "@Override\n public void a() {\n block25 : {\n block24 : {\n block22 : {\n var17_1 = a.a;\n var3_2 = this.c.i();\n var4_3 = var3_2.a().a();\n this.d = new w();\n this.e = new y.f.h.D(this.d);\n this.h = M.a(new Object[this.b.e()]);\n this.i = M.b(new Object[this.b.g()]);\n var5_4 = this.b.o();\n while (var5_4.f()) {\n var6_5 = var5_4.e();\n if (var17_1 == 0) {\n if (var6_5.c() <= this.l) {\n var7_6 = this.d.d();\n this.h.a(var6_5, var7_6);\n }\n var5_4.g();\n if (var17_1 == 0) continue;\n }\n break block22;\n }\n this.j = M.b(new Object[this.b.g()]);\n this.k = M.b(new Object[this.b.g()]);\n this.a(this.j, this.k);\n }\n var2_8 = this.b.o();\n block3 : do {\n v0 = var2_8.f();\n block4 : while (v0 != 0) {\n var5_4 = var2_8.e();\n if (var5_4.c() != 0) {\n var1_9 = var5_4.l();\n var6_5 = var1_9.a();\n var7_6 = (y.c.q)this.j.b(var6_5);\n var1_9.b();\n while (var1_9.f()) {\n var8_10 = var1_9.a();\n var9_11 = (y.c.q)this.j.b(var8_10);\n var10_12 = (y.c.q)this.k.b(var8_10);\n var11_13 = this.a((y.c.q)var7_6, (y.c.q)var9_11);\n v0 = var5_4.c();\n if (var17_1 != 0) continue block4;\n if (v0 > this.l) {\n this.h.a(var5_4, var11_13);\n }\n var7_6 = (y.c.q)this.j.b(var8_10);\n var12_14 /* !! */ = this.d.a((y.c.q)var9_11, (y.c.q)var10_12);\n this.i.a(var8_10, var12_14 /* !! */ );\n if (var8_10 == var6_5) break;\n var1_9.b();\n if (var17_1 == 0) continue;\n }\n }\n var2_8.g();\n if (var17_1 == 0) continue block3;\n }\n break block3;\n break;\n } while (true);\n var1_9 = this.b.p();\n while (var1_9.f()) {\n var5_4 = var1_9.a();\n v1 = this;\n if (var17_1 == 0) {\n block23 : {\n if (v1.c.n((y.c.d)var5_4)) {\n this.e.m((y.c.d)this.i.b(var5_4));\n if (var17_1 == 0) break block23;\n }\n this.e.e((y.c.d)this.i.b(var5_4));\n }\n var6_5 = this.c.h((y.c.d)var5_4);\n this.e.b((y.c.d)this.i.b(var5_4), (y.c.d)this.i.b(var6_5));\n var1_9.g();\n if (var17_1 == 0) continue;\n }\n break block24;\n }\n v1 = this;\n }\n var5_4 = v1.e.m();\n this.d.a(\"y.layout.orthogonal.general.NodeSplitter.NODE_FACES\", (y.c.c)var5_4);\n var6_5 = this.e.m();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", (y.c.c)var6_5);\n this.m = this.e.g().t();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", new c((r)var6_5, this.m));\n try {\n this.e.l();\n var7_6 = (y.c.d)this.i.b(var4_3);\n this.e.b(this.e.i((y.c.d)var7_6));\n var8_10 = this.e.h();\n while (var8_10.f()) {\n var5_4.a(var8_10.a(), false);\n var8_10.g();\n if (var17_1 == 0) {\n if (var17_1 == 0) continue;\n }\n break block25;\n }\n var8_10 = this.b.o();\n while (var8_10.f()) {\n var9_11 = var8_10.e();\n if (var17_1 != 0) break;\n if (var9_11.c() <= this.l) ** GOTO lbl-1000\n var10_12 = (y.c.d)this.h.b(var9_11);\n var11_13 = this.e.i((y.c.d)var10_12);\n this.h.a(var9_11, var11_13);\n var5_4.a((p)var11_13, true);\n var12_14 /* !! */ = (y.c.d)this.b.p((y.c.q)var9_11);\n var14_15 = this.b.q((y.c.q)var9_11);\n var16_16 = new Dimension((int)var12_14 /* !! */ , (int)var14_15);\n var6_5.a((p)var11_13, var16_16);\n if (var17_1 != 0) lbl-1000: // 2 sources:\n {\n var10_12 = this.b.r((y.c.q)var9_11);\n if (var10_12.a > 0.0 || var10_12.b > 0.0) {\n var11_13 = (y.c.q)this.h.b(var9_11);\n this.m.a(var11_13, this.b.r((y.c.q)var9_11));\n }\n }\n var8_10.g();\n if (var17_1 == 0) continue;\n break;\n }\n }\n catch (Exception var7_7) {\n System.err.println(\"Internal Error in Face calculation !\");\n var7_7.printStackTrace(System.err);\n }\n }\n var7_6 = this.e.h();\n block9 : do {\n if (var7_6.f() == false) return;\n var8_10 = (p)var7_6.d();\n if (var5_4.d(var8_10)) {\n var9_11 = var8_10.a();\n while (var9_11.f()) {\n var10_12 = var9_11.a();\n this.e.m(this.e.h((y.c.d)var10_12));\n this.e.e((y.c.d)var10_12);\n var9_11.g();\n if (var17_1 != 0) continue block9;\n if (var17_1 == 0) continue;\n }\n }\n var7_6.g();\n } while (var17_1 == 0);\n }", "private static void m13381a(long r3, float r5) {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\n r0.beginTransaction();\t Catch:{ Exception -> 0x001f }\n r1 = \"INSERT INTO battery_watcher (timestamp, level) VALUES (?, ?)\";\t Catch:{ Exception -> 0x001f }\n r1 = r0.compileStatement(r1);\t Catch:{ Exception -> 0x001f }\n r2 = 1;\t Catch:{ Exception -> 0x001f }\n r1.bindLong(r2, r3);\t Catch:{ Exception -> 0x001f }\n r3 = 2;\t Catch:{ Exception -> 0x001f }\n r4 = (double) r5;\t Catch:{ Exception -> 0x001f }\n r1.bindDouble(r3, r4);\t Catch:{ Exception -> 0x001f }\n r1.execute();\t Catch:{ Exception -> 0x001f }\n r0.setTransactionSuccessful();\t Catch:{ Exception -> 0x001f }\n goto L_0x0026;\n L_0x001d:\n r3 = move-exception;\n goto L_0x002a;\n L_0x001f:\n r3 = f10646a;\t Catch:{ all -> 0x001d }\n r4 = \"Issue adding location to battery history\";\t Catch:{ all -> 0x001d }\n com.foursquare.internal.util.FsLog.m6807d(r3, r4);\t Catch:{ all -> 0x001d }\n L_0x0026:\n r0.endTransaction();\n return;\n L_0x002a:\n r0.endTransaction();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.a(long, float):void\");\n }", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void m7211c() {\n /*\n r34 = this;\n r16 = 0;\n r15 = 0;\n r5 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case -1172269795: goto L_0x002e;\n case 2157948: goto L_0x0038;\n case 2571565: goto L_0x0024;\n default: goto L_0x0018;\n };\n L_0x0018:\n r2 = r3;\n L_0x0019:\n switch(r2) {\n case 0: goto L_0x0042;\n case 1: goto L_0x0162;\n case 2: goto L_0x01a9;\n default: goto L_0x001c;\n };\n L_0x001c:\n r2 = \"Undefined type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n L_0x0023:\n return;\n L_0x0024:\n r4 = \"TEXT\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x002c:\n r2 = 0;\n goto L_0x0019;\n L_0x002e:\n r4 = \"STICKER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0036:\n r2 = 1;\n goto L_0x0019;\n L_0x0038:\n r4 = \"FILE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x0018;\n L_0x0040:\n r2 = 2;\n goto L_0x0019;\n L_0x0042:\n r4 = mobi.mmdt.ott.provider.p169c.C1594n.TEXT;\n r33 = r5;\n L_0x0046:\n r8 = mobi.mmdt.componentsutils.p079a.p084e.C1113a.m6421a();\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.IN;\n r0 = r34;\n r2 = r0.f4758b;\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.p109d.p111b.C1309a.m6934a(r3);\n r3 = r3.m6942b();\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x0064;\n L_0x0062:\n r10 = mobi.mmdt.ott.provider.p169c.C1592l.OUT;\n L_0x0064:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m7972a(r2, r3, r10);\n if (r2 != 0) goto L_0x0023;\n L_0x0072:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n if (r2 == 0) goto L_0x008a;\n L_0x007a:\n r2 = mobi.mmdt.ott.MyApplication.m6445a();\n r2 = r2.f4177h;\n r0 = r34;\n r3 = r0.f4759c;\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x024e;\n L_0x008a:\n r17 = 0;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x00b8;\n L_0x0098:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x00b8;\n L_0x00aa:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r17 = r2;\n L_0x00b8:\n r2 = new mobi.mmdt.ott.d.a.b;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.NOT_READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n r2.<init>(r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16, r17);\n r0 = r34;\n r3 = r0.f4757a;\n r3 = mobi.mmdt.ott.logic.p157e.C1509a.m7621a(r3);\n r0 = r34;\n r4 = r0.f4762f;\n r0 = r33;\n r3.m7626a(r2, r0, r4);\n L_0x00f2:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n if (r2 == 0) goto L_0x013c;\n L_0x00fe:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x013c;\n L_0x0110:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"REPLY_ON_MESSAGE_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n mobi.mmdt.ott.provider.p169c.C1583c.m7976b(r3, r4, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r2 = mobi.mmdt.ott.provider.p169c.C1583c.m8003n(r3, r2);\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4761e;\n r5 = mobi.mmdt.ott.provider.p169c.C1595o.SINGLE;\n mobi.mmdt.ott.logic.p112a.p120c.p121a.p123b.C1387u.m7218a(r3, r4, r2, r5);\n L_0x013c:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"MINOR_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = \"TEXT\";\n r2 = r2.equals(r3);\n if (r2 != 0) goto L_0x0023;\n L_0x0150:\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.b;\n r0 = r34;\n r3 = r0.f4757a;\n r0 = r34;\n r4 = r0.f4762f;\n r2.<init>(r3, r15, r4);\n mobi.mmdt.ott.logic.C1494c.m7541c(r2);\n goto L_0x0023;\n L_0x0162:\n r6 = mobi.mmdt.ott.provider.p169c.C1594n.STICKER;\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"STICKER_ID\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r0 = r34;\n r3 = r0.f4762f;\n r4 = \"STICKER_PACKAGE_ID\";\n r3 = r3.get(r4);\n r3 = (java.lang.String) r3;\n r0 = r34;\n r4 = r0.f4762f;\n r7 = \"STICKER_VERSION\";\n r4 = r4.get(r7);\n r4 = (java.lang.String) r4;\n if (r4 == 0) goto L_0x02c9;\n L_0x018a:\n if (r2 == 0) goto L_0x02c9;\n L_0x018c:\n if (r3 == 0) goto L_0x02c9;\n L_0x018e:\n r7 = r4.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x0194:\n r7 = r2.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x019a:\n r7 = r3.isEmpty();\n if (r7 != 0) goto L_0x02c9;\n L_0x01a0:\n r16 = mobi.mmdt.ott.provider.p174h.C1629b.m8295a(r4, r3, r2);\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n L_0x01a9:\n r0 = r34;\n r2 = r0.f4762f;\n r3 = \"FILE_TYPE\";\n r2 = r2.get(r3);\n r2 = (java.lang.String) r2;\n r3 = -1;\n r4 = r2.hashCode();\n switch(r4) {\n case 327328941: goto L_0x01de;\n case 796404377: goto L_0x01ca;\n case 802160718: goto L_0x01e8;\n case 808293817: goto L_0x01d4;\n default: goto L_0x01bd;\n };\n L_0x01bd:\n r2 = r3;\n L_0x01be:\n switch(r2) {\n case 0: goto L_0x01f2;\n case 1: goto L_0x020c;\n case 2: goto L_0x0222;\n case 3: goto L_0x0238;\n default: goto L_0x01c1;\n };\n L_0x01c1:\n r2 = \"Undefined file type\";\n r0 = r34;\n mobi.mmdt.componentsutils.p079a.p080a.C1104b.m6366b(r0, r2);\n goto L_0x0023;\n L_0x01ca:\n r4 = \"FILE_TYPE_IMAGE\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01d2:\n r2 = 0;\n goto L_0x01be;\n L_0x01d4:\n r4 = \"FILE_TYPE_VIDEO\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01dc:\n r2 = 1;\n goto L_0x01be;\n L_0x01de:\n r4 = \"FILE_TYPE_PUSH_TO_TALK\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01e6:\n r2 = 2;\n goto L_0x01be;\n L_0x01e8:\n r4 = \"FILE_TYPE_OTHER\";\n r2 = r2.equals(r4);\n if (r2 == 0) goto L_0x01bd;\n L_0x01f0:\n r2 = 3;\n goto L_0x01be;\n L_0x01f2:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.IMAGE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.IMAGE;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n L_0x0207:\n r33 = r2;\n r4 = r3;\n goto L_0x0046;\n L_0x020c:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.VIDEO;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.VIDEO;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0222:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.PUSH_TO_TALK;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.PUSH_TO_TALK;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x0238:\n r3 = mobi.mmdt.ott.provider.p169c.C1594n.FILE;\n r2 = new mobi.mmdt.ott.logic.a.c.a.b.h;\n r0 = r34;\n r4 = r0.f4757a;\n r0 = r34;\n r5 = r0.f4762f;\n r6 = mobi.mmdt.ott.provider.p170d.C1605j.OTHER;\n r2.<init>(r4, r5, r6);\n r2 = r2.m7152a();\n goto L_0x0207;\n L_0x024e:\n if (r33 == 0) goto L_0x029c;\n L_0x0250:\n r0 = r34;\n r0 = r0.f4757a;\n r18 = r0;\n r19 = r33.m8082n();\n r20 = r33.m8069a();\n r21 = r33.m8079k();\n r22 = r33.m8073e();\n r23 = r33.m8078j();\n r24 = r33.m8077i();\n r26 = 0;\n r27 = r33.m8081m();\n r28 = r33.m8080l();\n r29 = r33.m8075g();\n r30 = r33.m8071c();\n r31 = r33.m8072d();\n r32 = r33.m8070b();\n r33 = r33.m8074f();\n r2 = mobi.mmdt.ott.provider.p170d.C1598c.m8100a(r18, r19, r20, r21, r22, r23, r24, r26, r27, r28, r29, r30, r31, r32, r33);\n r2 = r2.getLastPathSegment();\n r2 = java.lang.Long.parseLong(r2);\n r15 = java.lang.Long.valueOf(r2);\n L_0x029c:\n r0 = r34;\n r2 = r0.f4757a;\n r0 = r34;\n r3 = r0.f4761e;\n r0 = r34;\n r5 = r0.f4760d;\n r0 = r34;\n r6 = r0.f4762f;\n r7 = \"SEND_TIME_IN_GMT\";\n r6 = r6.get(r7);\n r6 = (java.lang.String) r6;\n r6 = java.lang.Long.parseLong(r6);\n r11 = mobi.mmdt.ott.provider.p169c.C1593m.READ;\n r0 = r34;\n r12 = r0.f4759c;\n r13 = mobi.mmdt.ott.provider.p169c.C1595o.GROUP;\n r0 = r34;\n r14 = r0.f4758b;\n mobi.mmdt.ott.provider.p169c.C1583c.m7966a(r2, r3, r4, r5, r6, r8, r10, r11, r12, r13, r14, r15, r16);\n goto L_0x00f2;\n L_0x02c9:\n r33 = r5;\n r4 = r6;\n goto L_0x0046;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: mobi.mmdt.ott.logic.a.c.a.b.s.c():void\");\n }", "protected int b(i var1_1, y.c.q var2_2, y.c.q var3_3, h var4_4, h var5_5, int var6_6, ArrayList var7_7, ArrayList var8_8, h var9_9, h var10_10) {\n block26 : {\n block25 : {\n var24_11 = o.p;\n this.c = var6_6;\n this.d = var2_2;\n this.e = var3_3;\n this.n = var1_1.h();\n this.o = var1_1.f();\n this.h = var1_1;\n this.i = new int[this.n];\n this.j = new int[this.n];\n this.k = new int[this.o];\n this.l = new int[this.o];\n this.m = new int[this.n];\n this.b = new Object[this.o];\n this.t = new int[this.n];\n this.r = new d[this.n];\n this.s = new d[this.n];\n this.f = var4_4;\n this.a = new a[this.n];\n this.q = new ArrayList<E>(var1_1.f());\n this.p = new I(this.o);\n var11_12 = 0;\n block0 : do {\n v0 = var11_12;\n block1 : while (v0 < var7_7.size()) {\n var12_15 = (a)var7_7.get(var11_12);\n v1 /* !! */ = var12_15.b();\n if (var24_11) break block25;\n var13_17 = v1 /* !! */ ;\n while (var13_17.f()) {\n var14_20 = var13_17.a();\n var15_23 = var14_20.b();\n this.a[var14_20.b()] = var12_15;\n this.i[var15_23] = var12_15.a();\n v0 = this.i[var15_23];\n if (var24_11) continue block1;\n if (v0 < 0) {\n throw new B(\"found negative capacity\");\n }\n var13_17.g();\n if (!var24_11) continue;\n }\n ++var11_12;\n if (!var24_11) continue block0;\n }\n break block0;\n break;\n } while (true);\n v1 /* !! */ = var11_13 = this.h.p();\n }\n while (var11_13.f()) {\n var12_15 = var11_13.a();\n this.r[var12_15.b()] = (d)var10_10.b(var12_15);\n this.s[var12_15.b()] = (d)var9_9.b(var12_15);\n var11_13.g();\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block26;\n }\n this.g = new u[this.o];\n }\n var11_13 = var1_1.o();\n while (var11_13.f()) {\n var12_15 = var11_13.e();\n v2 = this;\n if (!var24_11) {\n v2.g[var12_15.d()] = new u((y.c.q)var12_15, var12_15.d());\n var11_13.g();\n if (!var24_11) continue;\n }\n ** GOTO lbl65\n }\n block5 : do {\n v2 = this;\nlbl65: // 2 sources:\n var11_14 = var13_18 = v2.a();\n var12_16 = 0;\n var14_21 = 0;\n block6 : do {\n v3 = var14_21;\n v4 = var8_8.size();\n block7 : while (v3 < v4) {\n v5 = var8_8.get(var14_21);\n do {\n var15_24 = (ArrayList)v5;\n var16_26 = false;\n var17_27 = 0;\n var18_28 = 0;\n v6 = 0;\n if (!var24_11) {\n for (var19_29 = v1574606; var19_29 < var15_24.size(); ++var19_29) {\n block28 : {\n block27 : {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n ++var12_16;\n var21_31 = this.s[var20_30.b[0].b()];\n var22_32 = 0;\n while (this.m[var21_31.b()] == 1) {\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block27;\n }\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n var23_33 = 0;\n var21_31 = this.s[var20_30.b[1].b()];\n while (this.m[var21_31.b()] == 1) {\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block28;\n }\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n if (var23_33 > 400 || var22_32 > 400) {\n block29 : {\n if (var23_33 < var22_32) {\n this.a(var20_30);\n if (!var24_11) break block29;\n }\n this.b(var20_30);\n }\n var16_26 = true;\n }\n var18_28 += var23_33;\n var17_27 += var22_32;\n if (!var24_11) continue;\n }\n if (!var16_26) {\n for (var19_29 = 0; var19_29 < var15_24.size(); ++var19_29) {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n if (var18_28 < var17_27) {\n this.a(var20_30);\n if (!var24_11) continue;\n }\n this.b(var20_30);\n if (!var24_11) continue;\n }\n }\n ++var14_21;\n if (!var24_11) continue block6;\n }\n ** GOTO lbl133\n v6 = var12_16;\nlbl133: // 2 sources:\n if (v6 > 0) continue block5;\n v5 = this.h.p();\n } while (var24_11);\n }\n break;\n } while (true);\n break;\n } while (true);\n var13_19 = v5;\n while (var13_19.f()) {\n var14_22 = var13_19.a();\n v7 = var14_22.b();\n if (var24_11 != false) return v7;\n var15_25 = v7;\n var5_5.a((Object)var14_22, this.m[var15_25]);\n var13_19.g();\n if (!var24_11) continue;\n }\n v7 = var11_14;\n return v7;\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final void m710e() {\n /*\n r12 = this;\n akn r0 = r12.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x0155\n boolean r1 = r0.f580d\n r2 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n if (r1 == 0) goto L_0x0017\n aws r1 = r0.f577a\n long r4 = r1.mo1486c()\n r8 = r4\n goto L_0x0019\n L_0x0017:\n r8 = r2\n L_0x0019:\n int r1 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1))\n if (r1 != 0) goto L_0x0122\n ajf r1 = r12.f528m\n akn r2 = r12.f531p\n akl r2 = r2.f602e\n akx r3 = r1.f445c\n r4 = 0\n if (r3 == 0) goto L_0x008a\n boolean r3 = r3.mo486w()\n if (r3 != 0) goto L_0x008a\n akx r3 = r1.f445c\n boolean r3 = r3.mo485v()\n if (r3 == 0) goto L_0x0037\n goto L_0x0042\n L_0x0037:\n if (r0 != r2) goto L_0x008a\n akx r2 = r1.f445c\n boolean r2 = r2.mo359g()\n if (r2 == 0) goto L_0x0042\n goto L_0x008a\n L_0x0042:\n bkr r2 = r1.f446d\n long r2 = r2.mo379b()\n boolean r5 = r1.f447e\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n long r5 = r5.mo379b()\n int r7 = (r2 > r5 ? 1 : (r2 == r5 ? 0 : -1))\n if (r7 >= 0) goto L_0x005c\n blf r2 = r1.f443a\n r2.mo2109d()\n goto L_0x0096\n L_0x005c:\n r1.f447e = r4\n boolean r5 = r1.f448f\n if (r5 == 0) goto L_0x0068\n blf r5 = r1.f443a\n r5.mo2107a()\n L_0x0068:\n blf r5 = r1.f443a\n r5.mo2108a(r2)\n bkr r2 = r1.f446d\n akq r2 = r2.mo376Q()\n blf r3 = r1.f443a\n akq r3 = r3.f4280a\n boolean r3 = r2.equals(r3)\n if (r3 != 0) goto L_0x0096\n blf r3 = r1.f443a\n r3.mo378a(r2)\n aje r3 = r1.f444b\n ake r3 = (p000.ake) r3\n r3.m694a(r2, r4)\n goto L_0x0096\n L_0x008a:\n r2 = 1\n r1.f447e = r2\n boolean r2 = r1.f448f\n if (r2 == 0) goto L_0x0096\n blf r2 = r1.f443a\n r2.mo2107a()\n L_0x0096:\n long r1 = r1.mo379b()\n r12.f513D = r1\n long r0 = r0.mo440b(r1)\n akp r2 = r12.f533r\n long r2 = r2.f623m\n java.util.ArrayList r5 = r12.f530o\n boolean r5 = r5.isEmpty()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n awt r5 = r5.f612b\n boolean r5 = r5.mo1504a()\n if (r5 != 0) goto L_0x011d\n akp r5 = r12.f533r\n long r6 = r5.f613c\n int r8 = (r6 > r2 ? 1 : (r6 == r2 ? 0 : -1))\n if (r8 != 0) goto L_0x00c5\n boolean r6 = r12.f515F\n if (r6 == 0) goto L_0x00c5\n r6 = -1\n long r2 = r2 + r6\n L_0x00c5:\n r12.f515F = r4\n alh r4 = r5.f611a\n awt r5 = r5.f612b\n java.lang.Object r5 = r5.f2566a\n int r4 = r4.mo525a(r5)\n int r5 = r12.f514E\n r6 = 0\n if (r5 <= 0) goto L_0x00e1\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x00e1:\n L_0x00e2:\n r5 = r6\n L_0x00e3:\n if (r5 != 0) goto L_0x00e6\n goto L_0x0109\n L_0x00e6:\n int r5 = r5.f502a\n if (r4 >= 0) goto L_0x00eb\n L_0x00ea:\n goto L_0x00f4\n L_0x00eb:\n if (r4 != 0) goto L_0x0109\n r7 = 0\n int r5 = (r2 > r7 ? 1 : (r2 == r7 ? 0 : -1))\n if (r5 >= 0) goto L_0x0109\n goto L_0x00ea\n L_0x00f4:\n int r5 = r12.f514E\n int r5 = r5 + -1\n r12.f514E = r5\n if (r5 <= 0) goto L_0x0108\n java.util.ArrayList r7 = r12.f530o\n int r5 = r5 + -1\n java.lang.Object r5 = r7.get(r5)\n akb r5 = (p000.akb) r5\n goto L_0x00e3\n L_0x0108:\n goto L_0x00e2\n L_0x0109:\n int r2 = r12.f514E\n java.util.ArrayList r3 = r12.f530o\n int r3 = r3.size()\n if (r2 >= r3) goto L_0x011d\n java.util.ArrayList r2 = r12.f530o\n int r3 = r12.f514E\n java.lang.Object r2 = r2.get(r3)\n akb r2 = (p000.akb) r2\n L_0x011d:\n akp r2 = r12.f533r\n r2.f623m = r0\n goto L_0x0140\n L_0x0122:\n r12.m691a(r8)\n akp r0 = r12.f533r\n long r0 = r0.f623m\n int r2 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1))\n if (r2 == 0) goto L_0x0140\n akp r0 = r12.f533r\n awt r7 = r0.f612b\n long r10 = r0.f614d\n r6 = r12\n akp r0 = r6.m686a(r7, r8, r10)\n r12.f533r = r0\n akc r0 = r12.f529n\n r1 = 4\n r0.mo409b(r1)\n L_0x0140:\n akn r0 = r12.f531p\n akl r0 = r0.f603f\n akp r1 = r12.f533r\n long r2 = r0.mo442c()\n r1.f621k = r2\n akp r0 = r12.f533r\n long r1 = r12.m719n()\n r0.f622l = r1\n return\n L_0x0155:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m710e():void\");\n }", "@androidx.annotation.Nullable\n /* renamed from: j */\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final p005b.p096l.p097a.p151d.p152a.p154b.C3474b mo14822j(java.lang.String r9) {\n /*\n r8 = this;\n java.io.File r0 = new java.io.File\n java.io.File r1 = r8.mo14820g()\n r0.<init>(r1, r9)\n boolean r1 = r0.exists()\n r2 = 3\n r3 = 6\n r4 = 1\n r5 = 0\n r6 = 0\n if (r1 != 0) goto L_0x0022\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s\"\n r0.mo14884b(r2, r9, r1)\n L_0x001f:\n r9 = r6\n goto L_0x0093\n L_0x0022:\n java.io.File r1 = new java.io.File\n b.l.a.d.a.b.o1 r7 = r8.f6567b\n int r7 = r7.mo14797a()\n java.lang.String r7 = java.lang.String.valueOf(r7)\n r1.<init>(r0, r7)\n boolean r0 = r1.exists()\n r7 = 2\n if (r0 != 0) goto L_0x0050\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Pack not found with pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0050:\n java.io.File[] r0 = r1.listFiles()\n if (r0 == 0) goto L_0x007b\n int r1 = r0.length\n if (r1 != 0) goto L_0x005a\n goto L_0x007b\n L_0x005a:\n if (r1 <= r4) goto L_0x0074\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"Multiple pack versions found for pack name: %s app version: %s\"\n r0.mo14884b(r3, r9, r1)\n goto L_0x001f\n L_0x0074:\n r9 = r0[r5]\n java.lang.String r9 = r9.getCanonicalPath()\n goto L_0x0093\n L_0x007b:\n b.l.a.d.a.e.f r0 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r7]\n r1[r5] = r9\n b.l.a.d.a.b.o1 r9 = r8.f6567b\n int r9 = r9.mo14797a()\n java.lang.Integer r9 = java.lang.Integer.valueOf(r9)\n r1[r4] = r9\n java.lang.String r9 = \"No pack version found for pack name: %s app version: %s\"\n r0.mo14884b(r2, r9, r1)\n goto L_0x001f\n L_0x0093:\n if (r9 != 0) goto L_0x0096\n return r6\n L_0x0096:\n java.io.File r0 = new java.io.File\n java.lang.String r1 = \"assets\"\n r0.<init>(r9, r1)\n boolean r1 = r0.isDirectory()\n if (r1 != 0) goto L_0x00af\n b.l.a.d.a.e.f r9 = f6563c\n java.lang.Object[] r1 = new java.lang.Object[r4]\n r1[r5] = r0\n java.lang.String r0 = \"Failed to find assets directory: %s\"\n r9.mo14884b(r3, r0, r1)\n return r6\n L_0x00af:\n java.lang.String r0 = r0.getCanonicalPath()\n b.l.a.d.a.b.w r1 = new b.l.a.d.a.b.w\n r1.<init>(r5, r9, r0)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p005b.p096l.p097a.p151d.p152a.p154b.C3544t.mo14822j(java.lang.String):b.l.a.d.a.b.b\");\n }", "private final com.google.wireless.android.finsky.dfe.p513g.p514a.C7467r m35669b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 10: goto L_0x000f;\n case 18: goto L_0x001c;\n case 26: goto L_0x0029;\n case 34: goto L_0x003c;\n case 42: goto L_0x0050;\n case 50: goto L_0x0064;\n case 82: goto L_0x0078;\n case 98: goto L_0x008e;\n case 138: goto L_0x00a4;\n case 146: goto L_0x00b9;\n case 152: goto L_0x00c7;\n case 162: goto L_0x0106;\n case 170: goto L_0x011c;\n case 178: goto L_0x012e;\n case 184: goto L_0x0143;\n case 192: goto L_0x0151;\n case 218: goto L_0x015f;\n case 226: goto L_0x0171;\n case 234: goto L_0x0187;\n case 258: goto L_0x019d;\n case 266: goto L_0x01b3;\n case 274: goto L_0x01c8;\n case 290: goto L_0x01de;\n case 298: goto L_0x021e;\n case 306: goto L_0x022c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r0 = r8.m33564f();\n r7.f37912d = r0;\n r0 = r7.f37911c;\n r0 = r0 | 1;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x001c:\n r0 = r8.m33564f();\n r7.f37914f = r0;\n r0 = r7.f37911c;\n r0 = r0 | 4;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x0029:\n r0 = r7.f37916h;\n if (r0 != 0) goto L_0x0034;\n L_0x002d:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.c;\n r0.<init>();\n r7.f37916h = r0;\n L_0x0034:\n r0 = r7.f37916h;\n r8.m33552a(r0);\n r7.f37910a = r1;\n goto L_0x0001;\n L_0x003c:\n r0 = r7.f37917i;\n if (r0 != 0) goto L_0x0047;\n L_0x0040:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.z;\n r0.<init>();\n r7.f37917i = r0;\n L_0x0047:\n r0 = r7.f37917i;\n r8.m33552a(r0);\n r0 = 1;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0050:\n r0 = r7.f37919k;\n if (r0 != 0) goto L_0x005b;\n L_0x0054:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.f;\n r0.<init>();\n r7.f37919k = r0;\n L_0x005b:\n r0 = r7.f37919k;\n r8.m33552a(r0);\n r0 = 3;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0064:\n r0 = r7.f37922n;\n if (r0 != 0) goto L_0x006f;\n L_0x0068:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.o;\n r0.<init>();\n r7.f37922n = r0;\n L_0x006f:\n r0 = r7.f37922n;\n r8.m33552a(r0);\n r0 = 6;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0078:\n r0 = r7.f37924p;\n if (r0 != 0) goto L_0x0083;\n L_0x007c:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.d;\n r0.<init>();\n r7.f37924p = r0;\n L_0x0083:\n r0 = r7.f37924p;\n r8.m33552a(r0);\n r0 = 8;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x008e:\n r0 = r7.f37926r;\n if (r0 != 0) goto L_0x0099;\n L_0x0092:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.n;\n r0.<init>();\n r7.f37926r = r0;\n L_0x0099:\n r0 = r7.f37926r;\n r8.m33552a(r0);\n r0 = 10;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x00a4:\n r0 = r7.f37923o;\n if (r0 != 0) goto L_0x00af;\n L_0x00a8:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.q;\n r0.<init>();\n r7.f37923o = r0;\n L_0x00af:\n r0 = r7.f37923o;\n r8.m33552a(r0);\n r0 = 7;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x00b9:\n r0 = r8.m33565g();\n r7.f37931w = r0;\n r0 = r7.f37911c;\n r0 = r0 | 16;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x00c7:\n r2 = r7.f37911c;\n r2 = r2 | 2;\n r7.f37911c = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x00f3 }\n switch(r3) {\n case 0: goto L_0x00fc;\n case 101: goto L_0x00fc;\n case 102: goto L_0x00fc;\n case 103: goto L_0x00fc;\n case 105: goto L_0x00fc;\n case 106: goto L_0x00fc;\n case 107: goto L_0x00fc;\n case 108: goto L_0x00fc;\n case 109: goto L_0x00fc;\n case 111: goto L_0x00fc;\n case 112: goto L_0x00fc;\n case 113: goto L_0x00fc;\n case 114: goto L_0x00fc;\n case 115: goto L_0x00fc;\n case 116: goto L_0x00fc;\n case 117: goto L_0x00fc;\n case 118: goto L_0x00fc;\n case 119: goto L_0x00fc;\n case 120: goto L_0x00fc;\n case 201: goto L_0x00fc;\n case 202: goto L_0x00fc;\n case 203: goto L_0x00fc;\n case 204: goto L_0x00fc;\n case 205: goto L_0x00fc;\n case 206: goto L_0x00fc;\n case 207: goto L_0x00fc;\n case 209: goto L_0x00fc;\n case 210: goto L_0x00fc;\n case 211: goto L_0x00fc;\n case 212: goto L_0x00fc;\n case 213: goto L_0x00fc;\n case 214: goto L_0x00fc;\n case 215: goto L_0x00fc;\n case 217: goto L_0x00fc;\n case 218: goto L_0x00fc;\n case 219: goto L_0x00fc;\n case 220: goto L_0x00fc;\n case 221: goto L_0x00fc;\n case 222: goto L_0x00fc;\n case 223: goto L_0x00fc;\n case 224: goto L_0x00fc;\n case 301: goto L_0x00fc;\n case 302: goto L_0x00fc;\n case 304: goto L_0x00fc;\n case 305: goto L_0x00fc;\n case 307: goto L_0x00fc;\n case 309: goto L_0x00fc;\n case 310: goto L_0x00fc;\n case 311: goto L_0x00fc;\n case 312: goto L_0x00fc;\n case 313: goto L_0x00fc;\n case 314: goto L_0x00fc;\n case 316: goto L_0x00fc;\n case 317: goto L_0x00fc;\n case 318: goto L_0x00fc;\n case 319: goto L_0x00fc;\n case 320: goto L_0x00fc;\n case 321: goto L_0x00fc;\n case 322: goto L_0x00fc;\n case 323: goto L_0x00fc;\n case 324: goto L_0x00fc;\n case 325: goto L_0x00fc;\n case 326: goto L_0x00fc;\n case 327: goto L_0x00fc;\n case 328: goto L_0x00fc;\n case 401: goto L_0x00fc;\n case 402: goto L_0x00fc;\n case 403: goto L_0x00fc;\n case 404: goto L_0x00fc;\n case 405: goto L_0x00fc;\n case 406: goto L_0x00fc;\n case 407: goto L_0x00fc;\n case 408: goto L_0x00fc;\n case 409: goto L_0x00fc;\n case 410: goto L_0x00fc;\n case 411: goto L_0x00fc;\n case 412: goto L_0x00fc;\n case 501: goto L_0x00fc;\n case 502: goto L_0x00fc;\n case 503: goto L_0x00fc;\n case 504: goto L_0x00fc;\n case 505: goto L_0x00fc;\n case 506: goto L_0x00fc;\n case 507: goto L_0x00fc;\n case 508: goto L_0x00fc;\n case 509: goto L_0x00fc;\n case 510: goto L_0x00fc;\n case 511: goto L_0x00fc;\n case 512: goto L_0x00fc;\n case 513: goto L_0x00fc;\n case 514: goto L_0x00fc;\n case 515: goto L_0x00fc;\n case 601: goto L_0x00fc;\n case 701: goto L_0x00fc;\n case 702: goto L_0x00fc;\n case 703: goto L_0x00fc;\n case 704: goto L_0x00fc;\n case 705: goto L_0x00fc;\n case 706: goto L_0x00fc;\n case 707: goto L_0x00fc;\n case 708: goto L_0x00fc;\n case 709: goto L_0x00fc;\n case 710: goto L_0x00fc;\n case 711: goto L_0x00fc;\n case 801: goto L_0x00fc;\n case 802: goto L_0x00fc;\n case 803: goto L_0x00fc;\n case 804: goto L_0x00fc;\n case 805: goto L_0x00fc;\n case 806: goto L_0x00fc;\n case 807: goto L_0x00fc;\n case 808: goto L_0x00fc;\n case 809: goto L_0x00fc;\n case 810: goto L_0x00fc;\n case 811: goto L_0x00fc;\n case 812: goto L_0x00fc;\n case 901: goto L_0x00fc;\n case 902: goto L_0x00fc;\n case 903: goto L_0x00fc;\n case 904: goto L_0x00fc;\n case 905: goto L_0x00fc;\n case 906: goto L_0x00fc;\n case 907: goto L_0x00fc;\n case 908: goto L_0x00fc;\n case 909: goto L_0x00fc;\n case 910: goto L_0x00fc;\n case 911: goto L_0x00fc;\n case 912: goto L_0x00fc;\n case 913: goto L_0x00fc;\n case 914: goto L_0x00fc;\n case 915: goto L_0x00fc;\n case 916: goto L_0x00fc;\n case 1001: goto L_0x00fc;\n case 1002: goto L_0x00fc;\n default: goto L_0x00d8;\n };\t Catch:{ IllegalArgumentException -> 0x00f3 }\n L_0x00d8:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r5 = 44;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r5 = \" is not a valid enum RelationType\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x00f3 }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n L_0x00f3:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x00fc:\n r7.f37913e = r3;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r7.f37911c;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n r3 = r3 | 2;\n r7.f37911c = r3;\t Catch:{ IllegalArgumentException -> 0x00f3 }\n goto L_0x0001;\n L_0x0106:\n r0 = r7.f37927s;\n if (r0 != 0) goto L_0x0111;\n L_0x010a:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.m;\n r0.<init>();\n r7.f37927s = r0;\n L_0x0111:\n r0 = r7.f37927s;\n r8.m33552a(r0);\n r0 = 11;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x011c:\n r0 = r7.f37932x;\n if (r0 != 0) goto L_0x0127;\n L_0x0120:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.ag;\n r0.<init>();\n r7.f37932x = r0;\n L_0x0127:\n r0 = r7.f37932x;\n r8.m33552a(r0);\n goto L_0x0001;\n L_0x012e:\n r0 = r7.f37920l;\n if (r0 != 0) goto L_0x0139;\n L_0x0132:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.t;\n r0.<init>();\n r7.f37920l = r0;\n L_0x0139:\n r0 = r7.f37920l;\n r8.m33552a(r0);\n r0 = 4;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0143:\n r0 = r8.m33560d();\n r7.f37933y = r0;\n r0 = r7.f37911c;\n r0 = r0 | 32;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x0151:\n r0 = r8.m33560d();\n r7.f37934z = r0;\n r0 = r7.f37911c;\n r0 = r0 | 64;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x015f:\n r0 = r7.f37908A;\n if (r0 != 0) goto L_0x016a;\n L_0x0163:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.k;\n r0.<init>();\n r7.f37908A = r0;\n L_0x016a:\n r0 = r7.f37908A;\n r8.m33552a(r0);\n goto L_0x0001;\n L_0x0171:\n r0 = r7.f37929u;\n if (r0 != 0) goto L_0x017c;\n L_0x0175:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.y;\n r0.<init>();\n r7.f37929u = r0;\n L_0x017c:\n r0 = r7.f37929u;\n r8.m33552a(r0);\n r0 = 13;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x0187:\n r0 = r7.f37928t;\n if (r0 != 0) goto L_0x0192;\n L_0x018b:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.b;\n r0.<init>();\n r7.f37928t = r0;\n L_0x0192:\n r0 = r7.f37928t;\n r8.m33552a(r0);\n r0 = 12;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x019d:\n r0 = r7.f37925q;\n if (r0 != 0) goto L_0x01a8;\n L_0x01a1:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.e;\n r0.<init>();\n r7.f37925q = r0;\n L_0x01a8:\n r0 = r7.f37925q;\n r8.m33552a(r0);\n r0 = 9;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01b3:\n r0 = r7.f37921m;\n if (r0 != 0) goto L_0x01be;\n L_0x01b7:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.h;\n r0.<init>();\n r7.f37921m = r0;\n L_0x01be:\n r0 = r7.f37921m;\n r8.m33552a(r0);\n r0 = 5;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01c8:\n r0 = r7.f37930v;\n if (r0 != 0) goto L_0x01d3;\n L_0x01cc:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.x;\n r0.<init>();\n r7.f37930v = r0;\n L_0x01d3:\n r0 = r7.f37930v;\n r8.m33552a(r0);\n r0 = 14;\n r7.f37910a = r0;\n goto L_0x0001;\n L_0x01de:\n r0 = 290; // 0x122 float:4.06E-43 double:1.433E-321;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37909B;\n if (r0 != 0) goto L_0x020a;\n L_0x01e8:\n r0 = r1;\n L_0x01e9:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p513g.p514a.C7468s[r2];\n if (r0 == 0) goto L_0x01f3;\n L_0x01ee:\n r3 = r7.f37909B;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x01f3:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x020e;\n L_0x01f8:\n r3 = new com.google.wireless.android.finsky.dfe.g.a.s;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x01f3;\n L_0x020a:\n r0 = r7.f37909B;\n r0 = r0.length;\n goto L_0x01e9;\n L_0x020e:\n r3 = new com.google.wireless.android.finsky.dfe.g.a.s;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37909B = r2;\n goto L_0x0001;\n L_0x021e:\n r0 = r8.m33564f();\n r7.f37915g = r0;\n r0 = r7.f37911c;\n r0 = r0 | 8;\n r7.f37911c = r0;\n goto L_0x0001;\n L_0x022c:\n r0 = r7.f37918j;\n if (r0 != 0) goto L_0x0237;\n L_0x0230:\n r0 = new com.google.wireless.android.finsky.dfe.g.a.w;\n r0.<init>();\n r7.f37918j = r0;\n L_0x0237:\n r0 = r7.f37918j;\n r8.m33552a(r0);\n r0 = 2;\n r7.f37910a = r0;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.g.a.r.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.g.a.r\");\n }", "public void c() {\n /*\n r4 = this;\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.c()\n r1 = 1\n r2 = 0\n if (r0 == 0) goto L_0x000c\n L_0x000a:\n r0 = 0\n goto L_0x0023\n L_0x000c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n boolean r0 = r0.a()\n if (r0 != 0) goto L_0x001c\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r0 = r0.b()\n r2 = r0\n goto L_0x000a\n L_0x001c:\n com.shopee.app.data.store.o r0 = r4.f16997c\n int r2 = r0.e()\n r0 = 1\n L_0x0023:\n boolean r3 = r4.f16998d\n if (r3 == 0) goto L_0x0032\n if (r0 == 0) goto L_0x003a\n com.shopee.app.network.d.c.d r0 = new com.shopee.app.network.d.c.d\n r0.<init>()\n r0.a(r2, r1)\n goto L_0x003a\n L_0x0032:\n com.shopee.app.network.d.c.d r1 = new com.shopee.app.network.d.c.d\n r1.<init>()\n r1.a(r2, r0)\n L_0x003a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.shopee.app.d.c.f.m.c():void\");\n }", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "private final void asx() {\n /*\n r12 = this;\n r0 = r12.cFE;\n if (r0 == 0) goto L_0x0073;\n L_0x0004:\n r1 = r12.cxs;\n if (r1 == 0) goto L_0x0073;\n L_0x0008:\n r1 = r12.ayL;\n if (r1 != 0) goto L_0x000d;\n L_0x000c:\n goto L_0x0073;\n L_0x000d:\n r2 = 0;\n if (r1 == 0) goto L_0x0027;\n L_0x0010:\n r1 = r1.Km();\n if (r1 == 0) goto L_0x0027;\n L_0x0016:\n r1 = r1.aar();\n if (r1 == 0) goto L_0x0027;\n L_0x001c:\n r3 = r0.getName();\n r1 = r1.get(r3);\n r1 = (java.util.ArrayList) r1;\n goto L_0x0028;\n L_0x0027:\n r1 = r2;\n L_0x0028:\n if (r1 == 0) goto L_0x0051;\n L_0x002a:\n r1 = (java.lang.Iterable) r1;\n r1 = kotlin.collections.u.Z(r1);\n if (r1 == 0) goto L_0x0051;\n L_0x0032:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$1;\n r3.<init>(r12);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.b(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x003f:\n r3 = new com.iqoption.deposit.light.perform.DepositPerformLightFragment$setPresets$items$2;\n r3.<init>(r0);\n r3 = (kotlin.jvm.a.b) r3;\n r1 = kotlin.sequences.n.f(r1, r3);\n if (r1 == 0) goto L_0x0051;\n L_0x004c:\n r1 = kotlin.sequences.n.f(r1);\n goto L_0x0052;\n L_0x0051:\n r1 = r2;\n L_0x0052:\n r3 = r12.asr();\n if (r1 == 0) goto L_0x0059;\n L_0x0058:\n goto L_0x005d;\n L_0x0059:\n r1 = kotlin.collections.m.emptyList();\n L_0x005d:\n r4 = r12.bub;\n if (r4 == 0) goto L_0x006d;\n L_0x0061:\n r5 = 0;\n r6 = 0;\n r7 = 1;\n r8 = 0;\n r9 = 0;\n r10 = 19;\n r11 = 0;\n r2 = com.iqoption.core.util.e.a(r4, r5, r6, r7, r8, r9, r10, r11);\n L_0x006d:\n r3.c(r1, r2);\n r12.d(r0);\n L_0x0073:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asx():void\");\n }", "public void mo2485a() {\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/79094208.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = r2.f11863a;\n monitor-enter(r0);\n r1 = r2.f11873l;\t Catch:{ all -> 0x002a }\n if (r1 != 0) goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x0007:\n r1 = r2.f11872k;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x000c;\t Catch:{ all -> 0x002a }\n L_0x000b:\n goto L_0x0028;\t Catch:{ all -> 0x002a }\n L_0x000c:\n r1 = r2.f11875n;\t Catch:{ all -> 0x002a }\n if (r1 == 0) goto L_0x0015;\n L_0x0010:\n r1 = r2.f11875n;\t Catch:{ RemoteException -> 0x0015 }\n r1.cancel();\t Catch:{ RemoteException -> 0x0015 }\n L_0x0015:\n r1 = r2.f11870i;\t Catch:{ all -> 0x002a }\n m14216b(r1);\t Catch:{ all -> 0x002a }\n r1 = 1;\t Catch:{ all -> 0x002a }\n r2.f11873l = r1;\t Catch:{ all -> 0x002a }\n r1 = com.google.android.gms.common.api.Status.zzfnm;\t Catch:{ all -> 0x002a }\n r1 = r2.mo3568a(r1);\t Catch:{ all -> 0x002a }\n r2.m14217c(r1);\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x0028:\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n return;\t Catch:{ all -> 0x002a }\n L_0x002a:\n r1 = move-exception;\t Catch:{ all -> 0x002a }\n monitor-exit(r0);\t Catch:{ all -> 0x002a }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.common.api.internal.BasePendingResult.a():void\");\n }", "private final com.google.android.play.p179a.p352a.ae m28545b(com.google.protobuf.nano.a r8) {\n /*\n r7 = this;\n r6 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n L_0x0002:\n r0 = r8.a();\n switch(r0) {\n case 0: goto L_0x000f;\n case 8: goto L_0x0010;\n case 18: goto L_0x001d;\n case 24: goto L_0x002a;\n case 34: goto L_0x0037;\n case 42: goto L_0x0044;\n case 50: goto L_0x0051;\n case 58: goto L_0x005e;\n case 66: goto L_0x006b;\n case 74: goto L_0x0078;\n case 82: goto L_0x0086;\n case 90: goto L_0x0094;\n case 98: goto L_0x00a2;\n case 106: goto L_0x00b0;\n case 114: goto L_0x00be;\n case 122: goto L_0x00cc;\n case 130: goto L_0x00dc;\n case 138: goto L_0x00eb;\n case 144: goto L_0x00fa;\n case 152: goto L_0x0108;\n case 160: goto L_0x0117;\n case 168: goto L_0x0126;\n default: goto L_0x0009;\n };\n L_0x0009:\n r0 = super.m4918a(r8, r0);\n if (r0 != 0) goto L_0x0002;\n L_0x000f:\n return r7;\n L_0x0010:\n r0 = r8.j();\n r7.f30754b = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x001d:\n r0 = r8.f();\n r7.f30755c = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x002a:\n r0 = r8.i();\n r7.f30757e = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0037:\n r0 = r8.f();\n r7.f30758f = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0044:\n r0 = r8.f();\n r7.f30759g = r0;\n r0 = r7.f30753a;\n r0 = r0 | 32;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0051:\n r0 = r8.f();\n r7.f30762j = r0;\n r0 = r7.f30753a;\n r0 = r0 | 256;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x005e:\n r0 = r8.f();\n r7.f30763k = r0;\n r0 = r7.f30753a;\n r0 = r0 | 512;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x006b:\n r0 = r8.f();\n r7.f30760h = r0;\n r0 = r7.f30753a;\n r0 = r0 | 64;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0078:\n r0 = r8.f();\n r7.f30761i = r0;\n r0 = r7.f30753a;\n r0 = r0 | 128;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0086:\n r0 = r8.f();\n r7.f30764l = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1024;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0094:\n r0 = r8.f();\n r7.f30765m = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2048;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00a2:\n r0 = r8.f();\n r7.f30766n = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4096;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00b0:\n r0 = r8.f();\n r7.f30767o = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8192;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00be:\n r0 = r8.f();\n r7.f30768p = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16384;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00cc:\n r0 = r8.f();\n r7.f30769q = r0;\n r0 = r7.f30753a;\n r1 = 32768; // 0x8000 float:4.5918E-41 double:1.61895E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00dc:\n r0 = r8.f();\n r7.f30770r = r0;\n r0 = r7.f30753a;\n r1 = 65536; // 0x10000 float:9.18355E-41 double:3.2379E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00eb:\n r0 = r8.f();\n r7.f30771s = r0;\n r0 = r7.f30753a;\n r1 = 131072; // 0x20000 float:1.83671E-40 double:6.47582E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00fa:\n r0 = r8.j();\n r7.f30756d = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0108:\n r0 = r8.i();\n r7.f30772t = r0;\n r0 = r7.f30753a;\n r1 = 262144; // 0x40000 float:3.67342E-40 double:1.295163E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0117:\n r0 = r8.e();\n r7.f30773u = r0;\n r0 = r7.f30753a;\n r1 = 524288; // 0x80000 float:7.34684E-40 double:2.590327E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0126:\n r1 = r7.f30753a;\n r1 = r1 | r6;\n r7.f30753a = r1;\n r1 = r8.o();\n r2 = r8.i();\t Catch:{ IllegalArgumentException -> 0x0151 }\n switch(r2) {\n case 0: goto L_0x015a;\n case 1: goto L_0x015a;\n case 2: goto L_0x015a;\n default: goto L_0x0136;\n };\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0136:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = 48;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = \" is not a valid enum PairedDeviceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0151 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0151:\n r2 = move-exception;\n r8.e(r1);\n r7.m4918a(r8, r0);\n goto L_0x0002;\n L_0x015a:\n r7.f30774v = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r7.f30753a;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2 | r6;\n r7.f30753a = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n goto L_0x0002;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.ae.b(com.google.protobuf.nano.a):com.google.android.play.a.a.ae\");\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 JBlock _finally() {\n // This method could not be decompiled.\n // \n // Original Bytecode:\n // \n // 0: iconst_0 \n // 1: nop \n // 2: nop \n // 3: nop \n // 4: aload_3 \n // 5: nop \n // 6: lconst_0 \n // 7: nop \n // 8: iaload \n // 9: nop \n // 10: ldc2_w \"Lcom/sun/codemodel/JFormatter;\"\n // 13: nop \n // 14: fload_0 /* this */\n // 15: nop \n // 16: nop \n // 17: nop \n // 18: lload_2 \n // 19: nop \n // 20: iconst_0 \n // 21: nop \n // 22: nop \n // LocalVariableTable:\n // Start Length Slot Name Signature\n // ----- ------ ---- ---- -----------------------------\n // 0 23 0 this Lcom/sun/codemodel/JTryBlock;\n // \n // The error that occurred was:\n // \n // java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.execute(StackMappingVisitor.java:935)\n // at com.strobel.assembler.ir.StackMappingVisitor$InstructionAnalyzer.visit(StackMappingVisitor.java:398)\n // at com.strobel.decompiler.ast.AstBuilder.performStackAnalysis(AstBuilder.java:2030)\n // at com.strobel.decompiler.ast.AstBuilder.build(AstBuilder.java:108)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:210)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "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 }", "@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "public static void m5820b(java.lang.String r3, java.lang.String r4, java.lang.String r5) {\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 = new com.crashlytics.android.answers.StartCheckoutEvent;\n r0.<init>();\n r1 = java.util.Locale.getDefault();\n r1 = java.util.Currency.getInstance(r1);\n r0.putCurrency(r1);\n r1 = 1;\n r0.putItemCount(r1);\n r1 = java.lang.Long.parseLong(r3);\t Catch:{ Exception -> 0x001f }\n r3 = java.math.BigDecimal.valueOf(r1);\t Catch:{ Exception -> 0x001f }\n r0.putTotalPrice(r3);\t Catch:{ Exception -> 0x001f }\n L_0x001f:\n r3 = \"type\";\n r0.putCustomAttribute(r3, r4);\n r3 = \"cta\";\n r0.putCustomAttribute(r3, r5);\n r3 = com.crashlytics.android.answers.Answers.getInstance();\n r3.logStartCheckout(r0);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.b(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "private void c() {\n /*\n r14 = this;\n r12 = android.os.SystemClock.elapsedRealtime();\n r8 = r14.d();\n r0 = r14.t;\n if (r0 == 0) goto L_0x007a;\n L_0x000c:\n r0 = 1;\n r7 = r0;\n L_0x000e:\n r0 = r14.r;\n r0 = r0.a();\n if (r0 != 0) goto L_0x0018;\n L_0x0016:\n if (r7 == 0) goto L_0x007d;\n L_0x0018:\n r0 = 1;\n r10 = r0;\n L_0x001a:\n if (r10 != 0) goto L_0x0095;\n L_0x001c:\n r0 = r14.d;\n r0 = r0.b;\n if (r0 != 0) goto L_0x0028;\n L_0x0022:\n r0 = -1;\n r0 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1));\n if (r0 != 0) goto L_0x0032;\n L_0x0028:\n r0 = r14.p;\n r0 = r12 - r0;\n r2 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0095;\n L_0x0032:\n r14.p = r12;\n r0 = r14.d;\n r1 = r14.f;\n r1 = r1.size();\n r0.a = r1;\n r0 = r14.c;\n r1 = r14.f;\n r2 = r14.o;\n r4 = r14.m;\n r6 = r14.d;\n r0.getChunkOperation(r1, r2, r4, r6);\n r0 = r14.d;\n r0 = r0.a;\n r0 = r14.a(r0);\n r1 = r14.d;\n r1 = r1.b;\n if (r1 != 0) goto L_0x0080;\n L_0x0059:\n r4 = -1;\n L_0x005b:\n r0 = r14.b;\n r2 = r14.m;\n r1 = r14;\n r6 = r10;\n r0 = r0.update(r1, r2, r4, r6);\n if (r7 == 0) goto L_0x0087;\n L_0x0067:\n r0 = r14.v;\n r0 = r12 - r0;\n r2 = r14.u;\n r2 = (long) r2;\n r2 = r14.c(r2);\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 < 0) goto L_0x0079;\n L_0x0076:\n r14.e();\n L_0x0079:\n return;\n L_0x007a:\n r0 = 0;\n r7 = r0;\n goto L_0x000e;\n L_0x007d:\n r0 = 0;\n r10 = r0;\n goto L_0x001a;\n L_0x0080:\n if (r0 == 0) goto L_0x0095;\n L_0x0082:\n r4 = r14.d();\n goto L_0x005b;\n L_0x0087:\n r1 = r14.r;\n r1 = r1.a();\n if (r1 != 0) goto L_0x0079;\n L_0x008f:\n if (r0 == 0) goto L_0x0079;\n L_0x0091:\n r14.f();\n goto L_0x0079;\n L_0x0095:\n r4 = r8;\n goto L_0x005b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer.chunk.ChunkSampleSource.c():void\");\n }", "public void mo5832b(android.content.Context r4) {\n /*\n r3 = this;\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002f, IOException -> 0x0027 }\n L_0x0008:\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x002d, IOException -> 0x0027 }\n L_0x0010:\n r0 = 25\n java.lang.Long r1 = m3303w() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n long r1 = r1.longValue() // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n r3.mo5829a(r0, r1) // Catch:{ a -> 0x002b, IOException -> 0x0027 }\n L_0x001d:\n r0 = 24\n java.lang.String r1 = m3300d(r4) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n r3.mo5830a(r0, r1) // Catch:{ a -> 0x0029, IOException -> 0x0027 }\n L_0x0026:\n return\n L_0x0027:\n r0 = move-exception\n goto L_0x0026\n L_0x0029:\n r0 = move-exception\n goto L_0x0026\n L_0x002b:\n r0 = move-exception\n goto L_0x001d\n L_0x002d:\n r0 = move-exception\n goto L_0x0010\n L_0x002f:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5832b(android.content.Context):void\");\n }", "public void a(IBlockAccess paramard, BlockPosition paramdt)\r\n/* 119: */ {\r\n/* 120:148 */ bdv localbdv = e(paramard, paramdt);\r\n/* 121:149 */ if (localbdv != null)\r\n/* 122: */ {\r\n/* 123:150 */ Block localbec = localbdv.b();\r\n/* 124:151 */ BlockType localatr = localbec.getType();\r\n/* 125:152 */ if ((localatr == this) || (localatr.getMaterial() == Material.air)) {\r\n/* 126:153 */ return;\r\n/* 127: */ }\r\n/* 128:156 */ float f = localbdv.a(0.0F);\r\n/* 129:157 */ if (localbdv.d()) {\r\n/* 130:158 */ f = 1.0F - f;\r\n/* 131: */ }\r\n/* 132:160 */ localatr.a(paramard, paramdt);\r\n/* 133:161 */ if ((localatr == BlockList.J) || (localatr == BlockList.F)) {\r\n/* 134:162 */ f = 0.0F;\r\n/* 135: */ }\r\n/* 136:164 */ EnumDirection localej = localbdv.e();\r\n/* 137:165 */ this.B = (localatr.z() - localej.g() * f);\r\n/* 138:166 */ this.C = (localatr.B() - localej.h() * f);\r\n/* 139:167 */ this.D = (localatr.D() - localej.i() * f);\r\n/* 140:168 */ this.E = (localatr.A() - localej.g() * f);\r\n/* 141:169 */ this.F = (localatr.C() - localej.h() * f);\r\n/* 142:170 */ this.G = (localatr.E() - localej.i() * f);\r\n/* 143: */ }\r\n/* 144: */ }", "public final synchronized com.google.android.m4b.maps.bu.C4910a m21843a(java.lang.String r10) {\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/79094208.run(Unknown Source)\n*/\n /*\n r9 = this;\n monitor-enter(r9);\n r0 = r9.f17909e;\t Catch:{ all -> 0x0056 }\n r1 = 0;\n if (r0 != 0) goto L_0x0008;\n L_0x0006:\n monitor-exit(r9);\n return r1;\n L_0x0008:\n r0 = r9.f17907c;\t Catch:{ all -> 0x0056 }\n r2 = com.google.android.m4b.maps.az.C4733b.m21060a(r10);\t Catch:{ all -> 0x0056 }\n r0 = r0.m21933a(r2, r1);\t Catch:{ all -> 0x0056 }\n if (r0 == 0) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0014:\n r2 = r0.length;\t Catch:{ all -> 0x0056 }\n r3 = 9;\t Catch:{ all -> 0x0056 }\n if (r2 <= r3) goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0019:\n r2 = 0;\t Catch:{ all -> 0x0056 }\n r2 = r0[r2];\t Catch:{ all -> 0x0056 }\n r4 = 1;\t Catch:{ all -> 0x0056 }\n if (r2 == r4) goto L_0x0020;\t Catch:{ all -> 0x0056 }\n L_0x001f:\n goto L_0x0054;\t Catch:{ all -> 0x0056 }\n L_0x0020:\n r5 = com.google.android.m4b.maps.bs.C4891e.m21914c(r0, r4);\t Catch:{ all -> 0x0056 }\n r2 = new com.google.android.m4b.maps.ar.a;\t Catch:{ all -> 0x0056 }\n r7 = com.google.android.m4b.maps.de.C5350x.f20104b;\t Catch:{ all -> 0x0056 }\n r2.<init>(r7);\t Catch:{ all -> 0x0056 }\n r7 = new java.io.ByteArrayInputStream;\t Catch:{ IOException -> 0x0052 }\n r8 = r0.length;\t Catch:{ IOException -> 0x0052 }\n r8 = r8 - r3;\t Catch:{ IOException -> 0x0052 }\n r7.<init>(r0, r3, r8);\t Catch:{ IOException -> 0x0052 }\n r2.m20818a(r7);\t Catch:{ IOException -> 0x0052 }\n r0 = 2;\n r0 = r2.m20843h(r0);\t Catch:{ all -> 0x0056 }\n r10 = r10.equals(r0);\t Catch:{ all -> 0x0056 }\n if (r10 != 0) goto L_0x0042;\n L_0x0040:\n monitor-exit(r9);\n return r1;\n L_0x0042:\n r10 = new com.google.android.m4b.maps.bu.a;\t Catch:{ all -> 0x0056 }\n r10.<init>();\t Catch:{ all -> 0x0056 }\n r10.m22018a(r4);\t Catch:{ all -> 0x0056 }\n r10.m22020a(r2);\t Catch:{ all -> 0x0056 }\n r10.m22016a(r5);\t Catch:{ all -> 0x0056 }\n monitor-exit(r9);\n return r10;\n L_0x0052:\n monitor-exit(r9);\n return r1;\n L_0x0054:\n monitor-exit(r9);\n return r1;\n L_0x0056:\n r10 = move-exception;\n monitor-exit(r9);\n throw r10;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.bs.b.a(java.lang.String):com.google.android.m4b.maps.bu.a\");\n }", "public void mo3613a() {\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.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\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 r4 = this;\n r0 = r4.f18081b;\n monitor-enter(r0);\n r1 = r4.f18080a;\t Catch:{ all -> 0x001f }\n if (r1 == 0) goto L_0x0009;\t Catch:{ all -> 0x001f }\n L_0x0007:\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n return;\t Catch:{ all -> 0x001f }\n L_0x0009:\n r1 = 1;\t Catch:{ all -> 0x001f }\n r4.f18080a = r1;\t Catch:{ all -> 0x001f }\n r2 = r4.f18081b;\t Catch:{ all -> 0x001f }\n r3 = r2.f12200d;\t Catch:{ all -> 0x001f }\n r3 = r3 + r1;\t Catch:{ all -> 0x001f }\n r2.f12200d = r3;\t Catch:{ all -> 0x001f }\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n r0 = r4.f18083d;\n okhttp3.internal.C2933c.m14194a(r0);\n r0 = r4.f18082c;\t Catch:{ IOException -> 0x001e }\n r0.m14100c();\t Catch:{ IOException -> 0x001e }\n L_0x001e:\n return;\n L_0x001f:\n r1 = move-exception;\n monitor-exit(r0);\t Catch:{ all -> 0x001f }\n throw r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.a.a():void\");\n }", "public static /* synthetic */ p163g.p201e.p203b.p204d.C5419r.C5420a m18181a(p163g.p201e.p203b.p204d.C5419r.C5420a r3, com.bamtech.sdk4.account.DefaultAccount r4, java.util.List<com.bamtech.sdk4.subscription.Subscription> r5, boolean r6, boolean r7, boolean r8, int r9, java.lang.Object r10) {\n /*\n r10 = r9 & 1\n if (r10 == 0) goto L_0x0006\n com.bamtech.sdk4.account.DefaultAccount r4 = r3.f12933a\n L_0x0006:\n r10 = r9 & 2\n if (r10 == 0) goto L_0x000c\n java.util.List<com.bamtech.sdk4.subscription.Subscription> r5 = r3.f12934b\n L_0x000c:\n r10 = r5\n r5 = r9 & 4\n if (r5 == 0) goto L_0x0013\n boolean r6 = r3.f12935c\n L_0x0013:\n r0 = r6\n r5 = r9 & 8\n if (r5 == 0) goto L_0x001a\n boolean r7 = r3.f12936d\n L_0x001a:\n r1 = r7\n r5 = r9 & 16\n if (r5 == 0) goto L_0x0021\n boolean r8 = r3.f12937e\n L_0x0021:\n r2 = r8\n r5 = r3\n r6 = r4\n r7 = r10\n r8 = r0\n r9 = r1\n r10 = r2\n g.e.b.d.r$a r3 = r5.mo17152a(r6, r7, r8, r9, r10)\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p163g.p201e.p203b.p204d.C5419r.C5420a.m18181a(g.e.b.d.r$a, com.bamtech.sdk4.account.DefaultAccount, java.util.List, boolean, boolean, boolean, int, java.lang.Object):g.e.b.d.r$a\");\n }", "private final boolean e() {\n /*\n r15 = this;\n r2 = 0\n r1 = 0\n dtd r0 = r15.m // Catch:{ all -> 0x008e }\n if (r0 != 0) goto L_0x000d\n dtd r0 = new dtd // Catch:{ all -> 0x008e }\n r0.<init>() // Catch:{ all -> 0x008e }\n r15.m = r0 // Catch:{ all -> 0x008e }\n L_0x000d:\n int r0 = r15.k // Catch:{ all -> 0x008e }\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x039e\n dvk r3 = r15.g // Catch:{ all -> 0x008e }\n if (r3 == 0) goto L_0x0356\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 == 0) goto L_0x0025\n int r3 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != r4) goto L_0x0032\n L_0x0025:\n r3 = 2097152(0x200000, float:2.938736E-39)\n int r3 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = new byte[r3] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r15.h = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r15.i = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0032:\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.length // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r4\n int r6 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r7 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r8 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r9 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n boolean r0 = r7.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x00ac\n r0 = 1\n L_0x0047:\n java.lang.String r3 = \"GzipInflatingBuffer is closed\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 0\n r0 = 1\n r5 = r3\n L_0x004f:\n if (r0 == 0) goto L_0x02ef\n int r3 = r6 - r5\n if (r3 <= 0) goto L_0x02ef\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.ordinal() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n switch(r0) {\n case 0: goto L_0x00ae;\n case 1: goto L_0x0148;\n case 2: goto L_0x0171;\n case 3: goto L_0x01d7;\n case 4: goto L_0x01fc;\n case 5: goto L_0x0221;\n case 6: goto L_0x0256;\n case 7: goto L_0x0289;\n case 8: goto L_0x02a2;\n case 9: goto L_0x02e9;\n default: goto L_0x005e;\n } // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x005e:\n java.lang.AssertionError r0 = new java.lang.AssertionError // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = java.lang.String.valueOf(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4.length() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r4 + 15\n java.lang.StringBuilder r5 = new java.lang.StringBuilder // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5.<init>(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r4 = \"Invalid state: \"\n java.lang.StringBuilder r4 = r5.append(r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.StringBuilder r3 = r4.append(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = r3.toString() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0087:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x008e:\n r0 = move-exception\n if (r2 <= 0) goto L_0x00ab\n dxe r3 = r15.a\n r3.a(r2)\n dxh r3 = r15.j\n dxh r4 = defpackage.dxh.BODY\n if (r3 != r4) goto L_0x00ab\n dvk r3 = r15.g\n if (r3 == 0) goto L_0x03c9\n dzo r2 = r15.d\n long r4 = (long) r1\n r2.d(r4)\n int r2 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n L_0x00ab:\n throw r0\n L_0x00ac:\n r0 = 0\n goto L_0x0047\n L_0x00ae:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x00ba\n r0 = 0\n goto L_0x004f\n L_0x00ba:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 35615(0x8b1f, float:4.9907E-41)\n if (r0 == r3) goto L_0x00d4\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Not in GZIP format\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00cd:\n r0 = move-exception\n java.lang.RuntimeException r3 = new java.lang.RuntimeException // Catch:{ all -> 0x008e }\n r3.<init>(r0) // Catch:{ all -> 0x008e }\n throw r3 // Catch:{ all -> 0x008e }\n L_0x00d4:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 8\n if (r0 == r3) goto L_0x00e6\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Unsupported compression method\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x00e6:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.j = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvl r4 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 6\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r10.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3 - r10\n if (r3 <= 0) goto L_0x03d9\n r0 = 6\n int r0 = java.lang.Math.min(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r10 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r10 = r10.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r11 = r11.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r10, r11, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = 6 - r0\n r3 = r0\n L_0x0118:\n if (r3 <= 0) goto L_0x013b\n r0 = 512(0x200, float:7.175E-43)\n byte[] r10 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x011f:\n if (r0 >= r3) goto L_0x013b\n int r11 = r3 - r0\n r12 = 512(0x200, float:7.175E-43)\n int r11 = java.lang.Math.min(r11, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r12 = r12.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.a(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r12 = r12.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r13 = 0\n r12.update(r10, r13, r11) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r11\n goto L_0x011f\n L_0x013b:\n dvk r0 = r4.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 6\n defpackage.dvk.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA_LEN // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0148:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 4\n r3 = 4\n if (r0 == r3) goto L_0x0156\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0156:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0162\n r0 = 0\n goto L_0x004f\n L_0x0162:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.k = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_EXTRA // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0171:\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 >= r3) goto L_0x017e\n r0 = 0\n goto L_0x004f\n L_0x017e:\n dvl r10 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r7.k // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x03d6\n int r0 = java.lang.Math.min(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r3 = r3.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r11 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r11 = r11.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r12 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r12 = r12.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.update(r11, r12, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r3 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.a(r3, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r4 - r0\n r3 = r0\n L_0x01a8:\n if (r3 <= 0) goto L_0x01cb\n r0 = 512(0x200, float:7.175E-43)\n byte[] r11 = new byte[r0] // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 0\n L_0x01af:\n if (r0 >= r3) goto L_0x01cb\n int r12 = r3 - r0\n r13 = 512(0x200, float:7.175E-43)\n int r12 = java.lang.Math.min(r12, r13) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r13 = r13.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.a(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r13 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.CRC32 r13 = r13.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r14 = 0\n r13.update(r11, r14, r12) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r12\n goto L_0x01af\n L_0x01cb:\n dvk r0 = r10.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n defpackage.dvk.b(r0, r4) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.HEADER_NAME // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01d7:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 8\n r3 = 8\n if (r0 != r3) goto L_0x01f5\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x01e1:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x01f3\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x01e1\n r0 = 1\n L_0x01ee:\n if (r0 != 0) goto L_0x01f5\n r0 = 0\n goto L_0x004f\n L_0x01f3:\n r0 = 0\n goto L_0x01ee\n L_0x01f5:\n dvm r0 = defpackage.dvm.HEADER_COMMENT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x01fc:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 16\n r3 = 16\n if (r0 != r3) goto L_0x021a\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0206:\n int r3 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 <= 0) goto L_0x0218\n int r3 = r0.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r3 != 0) goto L_0x0206\n r0 = 1\n L_0x0213:\n if (r0 != 0) goto L_0x021a\n r0 = 0\n goto L_0x004f\n L_0x0218:\n r0 = 0\n goto L_0x0213\n L_0x021a:\n dvm r0 = defpackage.dvm.HEADER_CRC // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0221:\n int r0 = r7.j // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = r0 & 2\n r3 = 2\n if (r0 != r3) goto L_0x024f\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 2\n if (r0 >= r3) goto L_0x0234\n r0 = 0\n goto L_0x004f\n L_0x0234:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n long r10 = r0.getValue() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = (int) r10 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 65535(0xffff, float:9.1834E-41)\n r0 = r0 & r3\n dvl r3 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r3.c() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == r3) goto L_0x024f\n java.util.zip.ZipException r0 = new java.util.zip.ZipException // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.lang.String r3 = \"Corrupt GZIP header\"\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n throw r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x024f:\n dvm r0 = defpackage.dvm.INITIALIZE_INFLATER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x0256:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x027e\n java.util.zip.Inflater r0 = new java.util.zip.Inflater // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 1\n r0.<init>(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.g = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x0262:\n java.util.zip.CRC32 r0 = r7.b // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 - r3\n if (r0 <= 0) goto L_0x0284\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n L_0x027b:\n r0 = 1\n goto L_0x004f\n L_0x027e:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.reset() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x0262\n L_0x0284:\n dvm r0 = defpackage.dvm.INFLATER_NEEDS_INPUT // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x027b\n L_0x0289:\n int r0 = r9 + r5\n int r0 = r7.a(r8, r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r5 + r0\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r4 = defpackage.dvm.TRAILER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r4) goto L_0x029e\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r5 = r3\n goto L_0x004f\n L_0x029e:\n r0 = 1\n r5 = r3\n goto L_0x004f\n L_0x02a2:\n java.util.zip.Inflater r0 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 == 0) goto L_0x02c7\n r0 = 1\n L_0x02a7:\n java.lang.String r3 = \"inflater is null\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r7.f // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x02c9\n r0 = 1\n L_0x02b3:\n java.lang.String r3 = \"inflaterInput has unconsumed bytes\"\n defpackage.cld.b(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r0 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 512(0x200, float:7.175E-43)\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != 0) goto L_0x02cb\n r0 = 0\n goto L_0x004f\n L_0x02c7:\n r0 = 0\n goto L_0x02a7\n L_0x02c9:\n r0 = 0\n goto L_0x02b3\n L_0x02cb:\n r3 = 0\n r7.e = r3 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.f = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dtd r3 = r7.a // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.a(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n java.util.zip.Inflater r3 = r7.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r4 = r7.d // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r10 = r7.e // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3.setInput(r4, r10, r0) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r0 = defpackage.dvm.INFLATING // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r7.h = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0 = 1\n goto L_0x004f\n L_0x02e9:\n boolean r0 = r7.a() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x004f\n L_0x02ef:\n if (r0 == 0) goto L_0x0301\n dvm r0 = r7.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvm r3 = defpackage.dvm.HEADER // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n if (r0 != r3) goto L_0x0334\n dvl r0 = r7.c // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0.b() // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r3 = 10\n if (r0 >= r3) goto L_0x0334\n L_0x0301:\n r0 = 1\n L_0x0302:\n r7.n = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.l // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.l = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r2 = r2 + r3\n dvk r0 = r15.g // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r3 = r0.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r4 = 0\n r0.m = r4 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r1 = r1 + r3\n if (r5 != 0) goto L_0x0342\n if (r2 <= 0) goto L_0x0332\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0332\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x0336\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0332:\n r0 = 0\n L_0x0333:\n return r0\n L_0x0334:\n r0 = 0\n goto L_0x0302\n L_0x0336:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0332\n L_0x0342:\n dtd r0 = r15.m // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n byte[] r3 = r15.h // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r4 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n dxv r3 = defpackage.dxw.a(r3, r4, r5) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n r0.a(r3) // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r15.i // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n int r0 = r0 + r5\n r15.i = r0 // Catch:{ IOException -> 0x0087, DataFormatException -> 0x00cd }\n goto L_0x000d\n L_0x0356:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n if (r3 != 0) goto L_0x0386\n if (r2 <= 0) goto L_0x0378\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x0378\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x037a\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x0378:\n r0 = 0\n goto L_0x0333\n L_0x037a:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x0378\n L_0x0386:\n dtd r3 = r15.n // Catch:{ all -> 0x008e }\n int r3 = r3.a // Catch:{ all -> 0x008e }\n int r0 = java.lang.Math.min(r0, r3) // Catch:{ all -> 0x008e }\n int r2 = r2 + r0\n dtd r3 = r15.m // Catch:{ all -> 0x008e }\n dtd r4 = r15.n // Catch:{ all -> 0x008e }\n dxv r0 = r4.a(r0) // Catch:{ all -> 0x008e }\n dtd r0 = (defpackage.dtd) r0 // Catch:{ all -> 0x008e }\n r3.a(r0) // Catch:{ all -> 0x008e }\n goto L_0x000d\n L_0x039e:\n if (r2 <= 0) goto L_0x03ba\n dxe r0 = r15.a\n r0.a(r2)\n dxh r0 = r15.j\n dxh r3 = defpackage.dxh.BODY\n if (r0 != r3) goto L_0x03ba\n dvk r0 = r15.g\n if (r0 == 0) goto L_0x03bd\n dzo r0 = r15.d\n long r2 = (long) r1\n r0.d(r2)\n int r0 = r15.r\n int r0 = r0 + r1\n r15.r = r0\n L_0x03ba:\n r0 = 1\n goto L_0x0333\n L_0x03bd:\n dzo r0 = r15.d\n long r4 = (long) r2\n r0.d(r4)\n int r0 = r15.r\n int r0 = r0 + r2\n r15.r = r0\n goto L_0x03ba\n L_0x03c9:\n dzo r1 = r15.d\n long r4 = (long) r2\n r1.d(r4)\n int r1 = r15.r\n int r1 = r1 + r2\n r15.r = r1\n goto L_0x00ab\n L_0x03d6:\n r3 = r4\n goto L_0x01a8\n L_0x03d9:\n r3 = r0\n goto L_0x0118\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxd.e():boolean\");\n }", "TACBlock optimise(TACBlock code);", "private final void asB() {\n /*\n r6 = this;\n r0 = r6.cxs;\n r1 = r6.asp();\n r1 = r1.cCg;\n r2 = \"binding.depositAmountEdit\";\n kotlin.jvm.internal.i.e(r1, r2);\n r2 = r0 instanceof com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d;\n r3 = 0;\n r4 = 1;\n if (r2 == 0) goto L_0x002b;\n L_0x0013:\n r2 = r0;\n r2 = (com.iqoption.core.microservices.billing.response.deposit.cashboxitem.d) r2;\n r2 = r2.aaH();\n if (r2 == 0) goto L_0x0027;\n L_0x001c:\n r2 = r2.aaT();\n if (r2 == 0) goto L_0x0027;\n L_0x0022:\n r2 = r2.size();\n goto L_0x0028;\n L_0x0027:\n r2 = 0;\n L_0x0028:\n if (r2 != 0) goto L_0x002b;\n L_0x002a:\n goto L_0x0040;\n L_0x002b:\n if (r0 == 0) goto L_0x0032;\n L_0x002d:\n r2 = r0.ZL();\n goto L_0x0033;\n L_0x0032:\n r2 = 0;\n L_0x0033:\n r5 = com.iqoption.core.microservices.billing.response.deposit.cashboxitem.CashboxItemType.USER_CARD;\n if (r2 != r5) goto L_0x0038;\n L_0x0037:\n goto L_0x0040;\n L_0x0038:\n r2 = r6.aoJ();\n if (r2 == 0) goto L_0x003f;\n L_0x003e:\n goto L_0x0040;\n L_0x003f:\n r4 = 0;\n L_0x0040:\n r2 = \"binding.depositPresetsList\";\n if (r4 == 0) goto L_0x0053;\n L_0x0044:\n r0 = r6.asp();\n r0 = r0.cCr;\n kotlin.jvm.internal.i.e(r0, r2);\n r0 = (android.view.View) r0;\n com.iqoption.core.ext.a.ak(r0);\n goto L_0x006b;\n L_0x0053:\n r3 = r6.asp();\n r3 = r3.cCr;\n kotlin.jvm.internal.i.e(r3, r2);\n r3 = (android.view.View) r3;\n com.iqoption.core.ext.a.al(r3);\n r2 = new com.iqoption.deposit.light.perform.c$s;\n r2.<init>(r6, r0);\n r2 = (android.view.View.OnFocusChangeListener) r2;\n r1.setOnFocusChangeListener(r2);\n L_0x006b:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.iqoption.deposit.light.perform.c.asB():void\");\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "public com.google.cX a(com.google.cM r5) {\n /*\n r4 = this;\n r0 = 0;\n r1 = com.google.bA.b;\n r2 = com.google.cM.k();\n if (r5 != r2) goto L_0x000a;\n L_0x0009:\n return r4;\n L_0x000a:\n r2 = r4.h;\n if (r2 != 0) goto L_0x003f;\n L_0x000e:\n r2 = com.google.cM.a(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0018:\n r2 = r4.g;\n r2 = r2.isEmpty();\n if (r2 == 0) goto L_0x002e;\n L_0x0020:\n r2 = com.google.cM.a(r5);\n r4.g = r2;\n r2 = r4.f;\n r2 = r2 & -2;\n r4.f = r2;\n if (r1 == 0) goto L_0x003a;\n L_0x002e:\n r4.j();\n r2 = r4.g;\n r3 = com.google.cM.a(r5);\n r2.addAll(r3);\n L_0x003a:\n r4.g();\n if (r1 == 0) goto L_0x0079;\n L_0x003f:\n r2 = com.google.cM.a(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0049:\n r2 = r4.h;\n r2 = r2.i();\n if (r2 == 0) goto L_0x0070;\n L_0x0051:\n r2 = r4.h;\n r2.b();\n r4.h = r0;\n r2 = com.google.cM.a(r5);\n r4.g = r2;\n r2 = r4.f;\n r2 = r2 & -2;\n r4.f = r2;\n r2 = com.google.bL.d;\n if (r2 == 0) goto L_0x006c;\n L_0x0068:\n r0 = r4.b();\n L_0x006c:\n r4.h = r0;\n if (r1 == 0) goto L_0x0079;\n L_0x0070:\n r0 = r4.h;\n r1 = com.google.cM.a(r5);\n r0.a(r1);\n L_0x0079:\n r4.a(r5);\n r0 = r5.getUnknownFields();\n r4.a(r0);\n goto L_0x0009;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.cX.a(com.google.cM):com.google.cX\");\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void state(final JFormatter f) {\n // This method could not be decompiled.\n // \n // Could not show original bytecode, likely due to the same error.\n // \n // The error that occurred was:\n // \n // com.strobel.assembler.metadata.MethodBodyParseException: An error occurred while parsing the bytecode of method 'com/sun/codemodel/JTryBlock.state:(Lcom/sun/codemodel/JFormatter;)V'.\n // at com.strobel.assembler.metadata.MethodReader.readBody(MethodReader.java:65)\n // at com.strobel.assembler.metadata.MethodDefinition.tryLoadBody(MethodDefinition.java:722)\n // at com.strobel.assembler.metadata.MethodDefinition.getBody(MethodDefinition.java:83)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:202)\n // at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:99)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:757)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:655)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:532)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:499)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:141)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:130)\n // at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:105)\n // at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)\n // at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)\n // at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:317)\n // at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:238)\n // at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:123)\n // Caused by: java.lang.ArrayIndexOutOfBoundsException: -1\n // at java.util.ArrayList.elementData(Unknown Source)\n // at java.util.ArrayList.get(Unknown Source)\n // at com.strobel.assembler.ir.ConstantPool.get(ConstantPool.java:80)\n // at com.strobel.assembler.metadata.ClassFileReader$Scope.lookupConstant(ClassFileReader.java:1313)\n // at com.strobel.assembler.metadata.MethodReader.readBodyCore(MethodReader.java:286)\n // at com.strobel.assembler.metadata.MethodReader.readBody(MethodReader.java:62)\n // ... 16 more\n // \n throw new IllegalStateException(\"An error occurred while decompiling this method.\");\n }", "public boolean mo9310a(java.lang.Exception r4) {\n /*\n r3 = this;\n java.lang.Object r0 = r3.f8650a\n monitor-enter(r0)\n boolean r1 = r3.f8651b // Catch:{ all -> 0x002c }\n r2 = 0\n if (r1 == 0) goto L_0x000a\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r2\n L_0x000a:\n r1 = 1\n r3.f8651b = r1 // Catch:{ all -> 0x002c }\n r3.f8654e = r4 // Catch:{ all -> 0x002c }\n r3.f8655f = r2 // Catch:{ all -> 0x002c }\n java.lang.Object r4 = r3.f8650a // Catch:{ all -> 0x002c }\n r4.notifyAll() // Catch:{ all -> 0x002c }\n r3.m11250m() // Catch:{ all -> 0x002c }\n boolean r4 = r3.f8655f // Catch:{ all -> 0x002c }\n if (r4 != 0) goto L_0x002a\n bolts.n$q r4 = m11249l() // Catch:{ all -> 0x002c }\n if (r4 == 0) goto L_0x002a\n bolts.p r4 = new bolts.p // Catch:{ all -> 0x002c }\n r4.<init>(r3) // Catch:{ all -> 0x002c }\n r3.f8656g = r4 // Catch:{ all -> 0x002c }\n L_0x002a:\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n return r1\n L_0x002c:\n r4 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x002c }\n throw r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: bolts.C2177n.mo9310a(java.lang.Exception):boolean\");\n }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\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/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final int mo11683a(com.google.android.gms.internal.ads.bci r11, com.google.android.gms.internal.ads.bcn r12) {\n /*\n r10 = this;\n L_0x0000:\n int r12 = r10.f3925e\n r0 = -1\n r1 = 1\n r2 = 0\n switch(r12) {\n case 0: goto L_0x00b2;\n case 1: goto L_0x0044;\n case 2: goto L_0x000e;\n default: goto L_0x0008;\n }\n L_0x0008:\n java.lang.IllegalStateException r11 = new java.lang.IllegalStateException\n r11.<init>()\n throw r11\n L_0x000e:\n int r12 = r10.f3928h\n if (r12 <= 0) goto L_0x0031\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r0 = 3\n r11.mo11675b(r12, r2, r0)\n com.google.android.gms.internal.ads.bcq r12 = r10.f3924d\n com.google.android.gms.internal.ads.bkh r3 = r10.f3923c\n r12.mo11681a(r3, r0)\n int r12 = r10.f3929i\n int r12 = r12 + r0\n r10.f3929i = r12\n int r12 = r10.f3928h\n int r12 = r12 - r1\n r10.f3928h = r12\n goto L_0x000e\n L_0x0031:\n int r11 = r10.f3929i\n if (r11 <= 0) goto L_0x0041\n com.google.android.gms.internal.ads.bcq r3 = r10.f3924d\n long r4 = r10.f3927g\n r6 = 1\n int r7 = r10.f3929i\n r8 = 0\n r9 = 0\n r3.mo11680a(r4, r6, r7, r8, r9)\n L_0x0041:\n r10.f3925e = r1\n return r2\n L_0x0044:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n int r12 = r10.f3926f\n if (r12 != 0) goto L_0x006a\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 5\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x005a\n L_0x0058:\n r1 = 0\n goto L_0x008d\n L_0x005a:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12063j()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r3 = r3 * r5\n r5 = 45\n long r3 = r3 / r5\n r10.f3927g = r3\n goto L_0x0083\n L_0x006a:\n int r12 = r10.f3926f\n if (r12 != r1) goto L_0x0097\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 9\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 != 0) goto L_0x007b\n goto L_0x0058\n L_0x007b:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n long r3 = r12.mo12066m()\n r10.f3927g = r3\n L_0x0083:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3928h = r12\n r10.f3929i = r2\n L_0x008d:\n if (r1 == 0) goto L_0x0094\n r12 = 2\n r10.f3925e = r12\n goto L_0x0000\n L_0x0094:\n r10.f3925e = r2\n return r0\n L_0x0097:\n com.google.android.gms.internal.ads.bad r11 = new com.google.android.gms.internal.ads.bad\n int r12 = r10.f3926f\n r0 = 39\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>(r0)\n java.lang.String r0 = \"Unsupported version number: \"\n r1.append(r0)\n r1.append(r12)\n java.lang.String r12 = r1.toString()\n r11.<init>((java.lang.String) r12)\n throw r11\n L_0x00b2:\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n r12.mo12047a()\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n byte[] r12 = r12.f4559a\n r3 = 8\n boolean r12 = r11.mo11672a(r12, r2, r3, r1)\n if (r12 == 0) goto L_0x00df\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12065l()\n int r2 = f3921a\n if (r12 != r2) goto L_0x00d7\n com.google.android.gms.internal.ads.bkh r12 = r10.f3923c\n int r12 = r12.mo12059f()\n r10.f3926f = r12\n r2 = 1\n goto L_0x00df\n L_0x00d7:\n java.io.IOException r11 = new java.io.IOException\n java.lang.String r12 = \"Input not RawCC\"\n r11.<init>(r12)\n throw r11\n L_0x00df:\n if (r2 == 0) goto L_0x00e5\n r10.f3925e = r1\n goto L_0x0000\n L_0x00e5:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.bef.mo11683a(com.google.android.gms.internal.ads.bci, com.google.android.gms.internal.ads.bcn):int\");\n }", "protected static android.graphics.Bitmap m6543a(int r1, int r2) {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\t Catch:{ OutOfMemoryError -> 0x0007 }\n r0 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\t Catch:{ OutOfMemoryError -> 0x0007 }\n return r0;\n L_0x0007:\n java.lang.System.gc();\n r0 = android.graphics.Bitmap.Config.ARGB_8888;\n r1 = android.graphics.Bitmap.createBitmap(r1, r2, r0);\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.a(int, int):android.graphics.Bitmap\");\n }", "public void run() {\n /*\n r8 = this;\n r1 = com.umeng.commonsdk.proguard.b.b;\t Catch:{ Throwable -> 0x00c9 }\n monitor-enter(r1);\t Catch:{ Throwable -> 0x00c9 }\n r0 = r8.a;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x0009:\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n if (r0 == 0) goto L_0x00c4;\n L_0x000d:\n r0 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n if (r0 != 0) goto L_0x00c4;\n L_0x0013:\n r0 = 1;\n com.umeng.commonsdk.proguard.b.a = r0;\t Catch:{ all -> 0x00c6 }\n r0 = \"walle-crash\";\n r2 = 1;\n r2 = new java.lang.Object[r2];\t Catch:{ all -> 0x00c6 }\n r3 = 0;\n r4 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r4.<init>();\t Catch:{ all -> 0x00c6 }\n r5 = \"report thread is \";\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r5 = com.umeng.commonsdk.proguard.b.a;\t Catch:{ all -> 0x00c6 }\n r4 = r4.append(r5);\t Catch:{ all -> 0x00c6 }\n r4 = r4.toString();\t Catch:{ all -> 0x00c6 }\n r2[r3] = r4;\t Catch:{ all -> 0x00c6 }\n com.umeng.commonsdk.statistics.common.e.a(r0, r2);\t Catch:{ all -> 0x00c6 }\n r0 = r8.b;\t Catch:{ all -> 0x00c6 }\n r0 = com.umeng.commonsdk.proguard.c.a(r0);\t Catch:{ all -> 0x00c6 }\n r2 = android.text.TextUtils.isEmpty(r0);\t Catch:{ all -> 0x00c6 }\n if (r2 != 0) goto L_0x00c4;\n L_0x0045:\n r2 = new java.lang.StringBuilder;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r3.getFilesDir();\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"stateless\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"/\";\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r3 = \"umpx_internal\";\n r3 = r3.getBytes();\t Catch:{ all -> 0x00c6 }\n r4 = 0;\n r3 = android.util.Base64.encodeToString(r3, r4);\t Catch:{ all -> 0x00c6 }\n r2 = r2.append(r3);\t Catch:{ all -> 0x00c6 }\n r2 = r2.toString();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r4 = 10;\n com.umeng.commonsdk.stateless.f.a(r3, r2, r4);\t Catch:{ all -> 0x00c6 }\n r2 = new com.umeng.commonsdk.stateless.UMSLEnvelopeBuild;\t Catch:{ all -> 0x00c6 }\n r2.<init>();\t Catch:{ all -> 0x00c6 }\n r3 = r8.a;\t Catch:{ all -> 0x00c6 }\n r3 = r2.buildSLBaseHeader(r3);\t Catch:{ all -> 0x00c6 }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"content\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = \"ts\";\n r6 = java.lang.System.currentTimeMillis();\t Catch:{ JSONException -> 0x00cb }\n r4.put(r0, r6);\t Catch:{ JSONException -> 0x00cb }\n r0 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r0.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"crash\";\n r0.put(r5, r4);\t Catch:{ JSONException -> 0x00cb }\n r4 = new org.json.JSONObject;\t Catch:{ JSONException -> 0x00cb }\n r4.<init>();\t Catch:{ JSONException -> 0x00cb }\n r5 = \"tp\";\n r4.put(r5, r0);\t Catch:{ JSONException -> 0x00cb }\n r0 = r8.a;\t Catch:{ JSONException -> 0x00cb }\n r5 = \"umpx_internal\";\n r0 = r2.buildSLEnvelope(r0, r3, r4, r5);\t Catch:{ JSONException -> 0x00cb }\n if (r0 == 0) goto L_0x00c4;\n L_0x00bc:\n r2 = \"exception\";\n r0 = r0.has(r2);\t Catch:{ JSONException -> 0x00cb }\n if (r0 != 0) goto L_0x00c4;\n L_0x00c4:\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n L_0x00c5:\n return;\n L_0x00c6:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x00c6 }\n throw r0;\t Catch:{ Throwable -> 0x00c9 }\n L_0x00c9:\n r0 = move-exception;\n goto L_0x00c5;\n L_0x00cb:\n r0 = move-exception;\n goto L_0x00c4;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.umeng.commonsdk.proguard.bb.run():void\");\n }", "final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\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 }", "public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }", "public final /* synthetic */ java.lang.Object mo13031b(java.lang.String r14, kotlin.coroutines.Continuation<? super kotlin.Unit> r15) {\n /*\n r13 = this;\n boolean r0 = r15 instanceof p008c.p009a.p024e.p026b.C0963b.C0967d\n if (r0 == 0) goto L_0x0013\n r0 = r15\n c.a.e.b.b$d r0 = (p008c.p009a.p024e.p026b.C0963b.C0967d) r0\n int r1 = r0.f1060b\n r2 = -2147483648(0xffffffff80000000, float:-0.0)\n r3 = r1 & r2\n if (r3 == 0) goto L_0x0013\n int r1 = r1 - r2\n r0.f1060b = r1\n goto L_0x0018\n L_0x0013:\n c.a.e.b.b$d r0 = new c.a.e.b.b$d\n r0.<init>(r13, r15)\n L_0x0018:\n java.lang.Object r15 = r0.f1059a\n java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r2 = r0.f1060b\n r3 = 2\n r4 = 1\n if (r2 == 0) goto L_0x0059\n if (r2 == r4) goto L_0x0049\n if (r2 != r3) goto L_0x0041\n java.lang.Object r14 = r0.f1066h\n org.mobileid.time_key.util.TimeKeyParams r14 = (org.mobileid.time_key.util.TimeKeyParams) r14\n java.lang.Object r14 = r0.f1065g\n org.mobileid.requester.web_service.Response r14 = (org.mobileid.requester.web_service.Response) r14\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1063e\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r14 = r0.f1062d\n c.a.e.b.b r14 = (p008c.p009a.p024e.p026b.C0963b) r14\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x00c0\n L_0x0041:\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r15 = \"call to 'resume' before 'invoke' with coroutine\"\n r14.<init>(r15)\n throw r14\n L_0x0049:\n java.lang.Object r14 = r0.f1064f\n java.lang.String r14 = (java.lang.String) r14\n java.lang.Object r2 = r0.f1063e\n java.lang.String r2 = (java.lang.String) r2\n java.lang.Object r5 = r0.f1062d\n c.a.e.b.b r5 = (p008c.p009a.p024e.p026b.C0963b) r5\n kotlin.ResultKt.throwOnFailure(r15)\n goto L_0x0085\n L_0x0059:\n kotlin.ResultKt.throwOnFailure(r15)\n c.a.e.c.a r15 = r13.f1032c\n java.lang.String r15 = r15.mo13035a()\n if (r15 == 0) goto L_0x00c3\n org.mobileid.time_key.web_service.TimeKeyWebService r2 = r13.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r11 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n r8 = 0\n r9 = 4\n r10 = 0\n r5 = r11\n r6 = r14\n r7 = r15\n r5.<init>(r6, r7, r8, r9, r10)\n r0.f1062d = r13\n r0.f1063e = r14\n r0.f1064f = r15\n r0.f1060b = r4\n java.lang.Object r2 = r2.deactivateKey(r11, r0)\n if (r2 != r1) goto L_0x0080\n return r1\n L_0x0080:\n r5 = r13\n r12 = r2\n r2 = r14\n r14 = r15\n r15 = r12\n L_0x0085:\n org.mobileid.requester.web_service.Response r15 = (org.mobileid.requester.web_service.Response) r15\n java.lang.Object r6 = r15.getResult()\n java.lang.Boolean r6 = (java.lang.Boolean) r6\n java.lang.Boolean r7 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r4)\n boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r6, (java.lang.Object) r7)\n r4 = r4 ^ r6\n if (r4 == 0) goto L_0x009b\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x009b:\n org.mobileid.time_key.util.TimeKeyParams$a r4 = org.mobileid.time_key.util.TimeKeyParams.Companion\n android.content.Context r6 = r5.f1030a\n org.mobileid.time_key.util.TimeKeyParams r4 = r4.mo60138a(r6)\n kotlinx.coroutines.MainCoroutineDispatcher r6 = kotlinx.coroutines.Dispatchers.getMain()\n c.a.e.b.b$e r7 = new c.a.e.b.b$e\n r8 = 0\n r7.<init>(r5, r4, r8)\n r0.f1062d = r5\n r0.f1063e = r2\n r0.f1064f = r14\n r0.f1065g = r15\n r0.f1066h = r4\n r0.f1060b = r3\n java.lang.Object r14 = kotlinx.coroutines.BuildersKt.withContext(r6, r7, r0)\n if (r14 != r1) goto L_0x00c0\n return r1\n L_0x00c0:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n L_0x00c3:\n kotlin.Unit r14 = kotlin.Unit.INSTANCE\n return r14\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13031b(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "private c b(c blk, int i) {\n/* 585 */ int w = blk.g;\n/* 586 */ int h = blk.h;\n/* */ \n/* */ \n/* 589 */ if (blk.a() != 4) {\n/* 590 */ if (this.j == null || this.j.a() != 4) {\n/* 591 */ this.j = (c)new d();\n/* */ }\n/* 593 */ this.j.g = w;\n/* 594 */ this.j.h = h;\n/* 595 */ this.j.e = blk.e;\n/* 596 */ this.j.f = blk.f;\n/* 597 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 601 */ float[] outdata = (float[])blk.b();\n/* */ \n/* */ \n/* 604 */ if (outdata == null || outdata.length < w * h) {\n/* 605 */ outdata = new float[h * w];\n/* 606 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* 610 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* */ \n/* */ \n/* 614 */ if (this.m == null)\n/* 615 */ this.m = new e(); \n/* 616 */ if (this.n == null)\n/* 617 */ this.n = new e(); \n/* 618 */ if (this.o == null)\n/* 619 */ this.o = new e(); \n/* 620 */ this.o.g = blk.g;\n/* 621 */ this.o.h = blk.h;\n/* 622 */ this.o.e = blk.e;\n/* 623 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* 626 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 627 */ int[] data0 = (int[])this.m.b();\n/* 628 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 629 */ int[] data1 = (int[])this.n.b();\n/* 630 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 631 */ int[] data2 = (int[])this.o.b();\n/* */ \n/* */ \n/* 634 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 636 */ blk.i = 0;\n/* 637 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 642 */ int k = w * h - 1;\n/* 643 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 644 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 645 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 647 */ switch (i) {\n/* */ \n/* */ case 0:\n/* 650 */ for (j = h - 1; j >= 0; j--) {\n/* 651 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 652 */ outdata[k] = 0.299F * data0[k0] + 0.587F * data1[k1] + 0.114F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 658 */ k0 -= this.m.j - w;\n/* 659 */ k1 -= this.n.j - w;\n/* 660 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 1:\n/* 666 */ for (j = h - 1; j >= 0; j--) {\n/* 667 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 668 */ outdata[k] = -0.16875F * data0[k0] - 0.33126F * data1[k1] + 0.5F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 674 */ k0 -= this.m.j - w;\n/* 675 */ k1 -= this.n.j - w;\n/* 676 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 2:\n/* 682 */ for (j = h - 1; j >= 0; j--) {\n/* 683 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 684 */ outdata[k] = 0.5F * data0[k0] - 0.41869F * data1[k1] - 0.08131F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 690 */ k0 -= this.m.j - w;\n/* 691 */ k1 -= this.n.j - w;\n/* 692 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ } else {\n/* 697 */ if (i >= 3) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 702 */ e indb = new e(blk.e, blk.f, w, h);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 707 */ this.e.getInternCompData((c)indb, i);\n/* 708 */ int[] indata = (int[])indb.b();\n/* */ \n/* */ \n/* 711 */ int k = w * h - 1;\n/* 712 */ int k0 = indb.i + (h - 1) * indb.j + w - 1;\n/* 713 */ for (int j = h - 1; j >= 0; j--) {\n/* 714 */ for (int mink = k - w; k > mink; k--, k0--) {\n/* 715 */ outdata[k] = indata[k0];\n/* */ }\n/* */ \n/* 718 */ k0 += indb.g - w;\n/* */ } \n/* */ \n/* */ \n/* 722 */ blk.k = indb.k;\n/* 723 */ blk.i = 0;\n/* 724 */ blk.j = w;\n/* 725 */ return blk;\n/* */ } \n/* */ \n/* */ \n/* 729 */ throw new IllegalArgumentException();\n/* */ } \n/* 731 */ return blk;\n/* */ }", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "AnonymousClass3(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "public static int m22557b(java.lang.String 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 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "private android.graphics.Bitmap m6555f() {\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/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }", "public static boolean m19464a(java.lang.String r3, int[] r4) {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = android.text.TextUtils.isEmpty(r3);\n r1 = 0;\n if (r0 == 0) goto L_0x0008;\n L_0x0007:\n return r1;\n L_0x0008:\n r0 = r4.length;\n r2 = 2;\n if (r0 == r2) goto L_0x000d;\n L_0x000c:\n return r1;\n L_0x000d:\n r0 = \"x\";\n r3 = r3.split(r0);\n r0 = r3.length;\n if (r0 == r2) goto L_0x0017;\n L_0x0016:\n return r1;\n L_0x0017:\n r0 = r3[r1];\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = java.lang.Integer.parseInt(r0);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r1] = r0;\t Catch:{ NumberFormatException -> 0x0029 }\n r0 = 1;\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = r3[r0];\t Catch:{ NumberFormatException -> 0x0029 }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x0029 }\n r4[r0] = r3;\t Catch:{ NumberFormatException -> 0x0029 }\n return r0;\n L_0x0029:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.arp.a(java.lang.String, int[]):boolean\");\n }", "public boolean mo3969a() {\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 r4 = this;\n r0 = r4.f19005h;\n if (r0 != 0) goto L_0x0011;\n L_0x0004:\n r0 = r4.f19004g;\n if (r0 == 0) goto L_0x000f;\n L_0x0008:\n r0 = r4.f19004g;\n r1 = com.facebook.ads.C1700b.f5123e;\n r0.mo1313a(r4, r1);\n L_0x000f:\n r0 = 0;\n return r0;\n L_0x0011:\n r0 = new android.content.Intent;\n r1 = r4.f19002e;\n r2 = com.facebook.ads.AudienceNetworkActivity.class;\n r0.<init>(r1, r2);\n r1 = \"predefinedOrientationKey\";\n r2 = r4.m25306b();\n r0.putExtra(r1, r2);\n r1 = \"uniqueId\";\n r2 = r4.f18999b;\n r0.putExtra(r1, r2);\n r1 = \"placementId\";\n r2 = r4.f19000c;\n r0.putExtra(r1, r2);\n r1 = \"requestTime\";\n r2 = r4.f19001d;\n r0.putExtra(r1, r2);\n r1 = \"viewType\";\n r2 = r4.f19009l;\n r0.putExtra(r1, r2);\n r1 = \"useCache\";\n r2 = r4.f19010m;\n r0.putExtra(r1, r2);\n r1 = r4.f19008k;\n if (r1 == 0) goto L_0x0052;\n L_0x004a:\n r1 = \"ad_data_bundle\";\n r2 = r4.f19008k;\n r0.putExtra(r1, r2);\n goto L_0x005b;\n L_0x0052:\n r1 = r4.f19006i;\n if (r1 == 0) goto L_0x005b;\n L_0x0056:\n r1 = r4.f19006i;\n r1.m18953a(r0);\n L_0x005b:\n r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;\n r0.addFlags(r1);\n r1 = r4.f19002e;\t Catch:{ ActivityNotFoundException -> 0x0066 }\n r1.startActivity(r0);\t Catch:{ ActivityNotFoundException -> 0x0066 }\n goto L_0x0072;\n L_0x0066:\n r1 = r4.f19002e;\n r2 = com.facebook.ads.InterstitialAdActivity.class;\n r0.setClass(r1, r2);\n r1 = r4.f19002e;\n r1.startActivity(r0);\n L_0x0072:\n r0 = 1;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.k.a():boolean\");\n }", "AnonymousClass2(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "private static void m13385d() {\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/79094208.run(Unknown Source)\n*/\n /*\n r0 = java.lang.System.currentTimeMillis();\t Catch:{ Exception -> 0x0024 }\n r2 = java.util.concurrent.TimeUnit.DAYS;\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r2 = r2.toMillis(r3);\t Catch:{ Exception -> 0x0024 }\n r4 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = r0 - r2;\t Catch:{ Exception -> 0x0024 }\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x0024 }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x0024 }\n r2 = \"timestamp < ?\";\t Catch:{ Exception -> 0x0024 }\n r3 = 1;\t Catch:{ Exception -> 0x0024 }\n r3 = new java.lang.String[r3];\t Catch:{ Exception -> 0x0024 }\n r6 = 0;\t Catch:{ Exception -> 0x0024 }\n r4 = java.lang.String.valueOf(r4);\t Catch:{ Exception -> 0x0024 }\n r3[r6] = r4;\t Catch:{ Exception -> 0x0024 }\n r0.delete(r1, r2, r3);\t Catch:{ Exception -> 0x0024 }\n L_0x0024:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.d():void\");\n }", "public final synchronized java.lang.String m92g(java.lang.String r5) {\n /*\n r4 = this;\n r1 = 1;\n r0 = 0;\n monitor-enter(r4);\n if (r5 == 0) goto L_0x002c;\n L_0x0005:\n r2 = r5.trim();\t Catch:{ all -> 0x0037 }\n r2 = r2.length();\t Catch:{ all -> 0x0037 }\n if (r2 <= 0) goto L_0x002c;\n L_0x000f:\n if (r0 == 0) goto L_0x002e;\n L_0x0011:\n r0 = \"key should not be empty %s\";\n r1 = 1;\n r1 = new java.lang.Object[r1];\t Catch:{ all -> 0x0037 }\n r2 = 0;\n r3 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0037 }\n r3.<init>();\t Catch:{ all -> 0x0037 }\n r3 = r3.append(r5);\t Catch:{ all -> 0x0037 }\n r3 = r3.toString();\t Catch:{ all -> 0x0037 }\n r1[r2] = r3;\t Catch:{ all -> 0x0037 }\n com.tencent.bugly.legu.proguard.C0073w.m524d(r0, r1);\t Catch:{ all -> 0x0037 }\n r0 = 0;\n L_0x002a:\n monitor-exit(r4);\n return r0;\n L_0x002c:\n r0 = r1;\n goto L_0x000f;\n L_0x002e:\n r0 = r4.f112Y;\t Catch:{ all -> 0x0037 }\n r0 = r0.get(r5);\t Catch:{ all -> 0x0037 }\n r0 = (java.lang.String) r0;\t Catch:{ all -> 0x0037 }\n goto L_0x002a;\n L_0x0037:\n r0 = move-exception;\n monitor-exit(r4);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.bugly.legu.crashreport.common.info.a.g(java.lang.String):java.lang.String\");\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public final void mo1285b() {\n }", "static /* synthetic */ void m201-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public final void run() {\n /*\n r10 = this;\n r8 = 2;\n r7 = 1;\n r6 = 0;\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n r1 = 0;\n r0 = r10.e;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r3 = r10.f;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r0 = com.uc.apollo.media.b.c.a(r0, r3);\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n if (r0 == 0) goto L_0x004b;\n L_0x0010:\n r2 = com.uc.apollo.media.impl.O.M3U8;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n r1 = r0.c();\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n if (r1 == 0) goto L_0x00db;\n L_0x0018:\n r1 = com.uc.apollo.media.impl.O.M3U8_LIVE;\t Catch:{ d -> 0x00cf, Throwable -> 0x0090 }\n L_0x001a:\n r2 = r10.h;\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n if (r2 == 0) goto L_0x0022;\n L_0x001e:\n r2 = 1;\n r0.a(r2);\t Catch:{ d -> 0x00d5, Throwable -> 0x0090 }\n L_0x0022:\n r2 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r1 == r2) goto L_0x0030;\n L_0x0026:\n r2 = new java.lang.StringBuilder;\n r3 = \"content type is \";\n r2.<init>(r3);\n r2.append(r1);\n L_0x0030:\n r2 = r10.g;\n if (r2 == 0) goto L_0x004a;\n L_0x0034:\n r2 = c;\n r3 = r10.d;\n r4 = 3;\n r4 = new java.lang.Object[r4];\n r5 = r10.g;\n r4[r6] = r5;\n r4[r7] = r1;\n r4[r8] = r0;\n r0 = r2.obtainMessage(r8, r3, r6, r4);\n r0.sendToTarget();\n L_0x004a:\n return;\n L_0x004b:\n r0 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\t Catch:{ d -> 0x0051, Throwable -> 0x0090 }\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0051:\n r0 = move-exception;\n r9 = r0;\n r0 = r2;\n r2 = r9;\n L_0x0055:\n r3 = r2.a();\n if (r3 == 0) goto L_0x007e;\n L_0x005b:\n r4 = r3.length;\n r5 = 8;\n if (r4 < r5) goto L_0x007e;\n L_0x0060:\n r4 = 4;\n r4 = r3[r4];\n r5 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0067:\n r4 = 5;\n r4 = r3[r4];\n r5 = 116; // 0x74 float:1.63E-43 double:5.73E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x006e:\n r4 = 6;\n r4 = r3[r4];\n r5 = 121; // 0x79 float:1.7E-43 double:6.0E-322;\n if (r4 == r5) goto L_0x007c;\n L_0x0075:\n r4 = 7;\n r3 = r3[r4];\n r4 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n if (r3 != r4) goto L_0x007e;\n L_0x007c:\n r0 = com.uc.apollo.media.impl.O.MP4;\n L_0x007e:\n r3 = com.uc.apollo.media.impl.O.UNKNOWN;\n if (r0 != r3) goto L_0x008c;\n L_0x0082:\n r3 = new java.lang.StringBuilder;\n r4 = \"parse failure, msg: \";\n r3.<init>(r4);\n r3.append(r2);\n L_0x008c:\n r9 = r1;\n r1 = r0;\n r0 = r9;\n goto L_0x0022;\n L_0x0090:\n r0 = move-exception;\n r1 = com.uc.apollo.media.impl.O.PARSE_FAILURE;\n r1 = a;\n r2 = new java.lang.StringBuilder;\n r3 = \"parse failure: \";\n r2.<init>(r3);\n r2 = r2.append(r0);\n r2 = r2.toString();\n android.util.Log.w(r1, r2);\n r1 = r10.g;\n if (r1 == 0) goto L_0x004a;\n L_0x00ab:\n r1 = c;\n r2 = r10.d;\n r3 = new java.lang.Object[r8];\n r4 = r10.g;\n r3[r6] = r4;\n r4 = new java.lang.StringBuilder;\n r5 = \"parse failure: \";\n r4.<init>(r5);\n r0 = r4.append(r0);\n r0 = r0.toString();\n r3[r7] = r0;\n r0 = r1.obtainMessage(r7, r2, r6, r3);\n r0.sendToTarget();\n goto L_0x004a;\n L_0x00cf:\n r1 = move-exception;\n r9 = r1;\n r1 = r0;\n r0 = r2;\n r2 = r9;\n goto L_0x0055;\n L_0x00d5:\n r2 = move-exception;\n r9 = r0;\n r0 = r1;\n r1 = r9;\n goto L_0x0055;\n L_0x00db:\n r1 = r2;\n goto L_0x001a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.uc.apollo.media.impl.f.run():void\");\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 boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "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 }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "static /* synthetic */ void m205-wrap9(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1, int r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap9(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01, int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap9(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01, int):void\");\n }", "public static void m5812a(java.lang.String r0, java.lang.String r1, java.lang.String r2) {\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 r2 = new com.crashlytics.android.answers.AddToCartEvent;\n r2.<init>();\n r2.putItemType(r0);\n r0 = java.lang.Long.parseLong(r1);\t Catch:{ Exception -> 0x0013 }\n r0 = java.math.BigDecimal.valueOf(r0);\t Catch:{ Exception -> 0x0013 }\n r2.putItemPrice(r0);\t Catch:{ Exception -> 0x0013 }\n L_0x0013:\n r0 = java.util.Locale.getDefault();\n r0 = java.util.Currency.getInstance(r0);\n r2.putCurrency(r0);\n r0 = com.crashlytics.android.answers.Answers.getInstance();\n r0.logAddToCart(r2);\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.cuvora.carinfo.helpers.d.a(java.lang.String, java.lang.String, java.lang.String):void\");\n }", "public final synchronized void a(com.ss.android.ugc.aweme.base.e.b r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r9 = 0\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r2 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r2 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n if (r1 == 0) goto L_0x0032\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x0041 }\n r1[r9] = r11 // Catch:{ all -> 0x0041 }\n com.meituan.robust.ChangeQuickRedirect r3 = f34732a // Catch:{ all -> 0x0041 }\n r4 = 0\n r5 = 25164(0x624c, float:3.5262E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x0041 }\n java.lang.Class<com.ss.android.ugc.aweme.base.e.b> r0 = com.ss.android.ugc.aweme.base.e.b.class\n r6[r9] = r0 // Catch:{ all -> 0x0041 }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x0041 }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x0041 }\n monitor-exit(r10)\n return\n L_0x0032:\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n boolean r1 = r1.contains(r11) // Catch:{ all -> 0x0041 }\n if (r1 != 0) goto L_0x003f\n java.util.ArrayList<com.ss.android.ugc.aweme.base.e.b<T>> r1 = r10.f34733b // Catch:{ all -> 0x0041 }\n r1.add(r11) // Catch:{ all -> 0x0041 }\n L_0x003f:\n monitor-exit(r10)\n return\n L_0x0041:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.base.e.a.a(com.ss.android.ugc.aweme.base.e.b):void\");\n }", "protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public java.lang.Object mo13022a(java.lang.String r18, kotlin.coroutines.Continuation<? super java.lang.Boolean> r19) {\n /*\n r17 = this;\n r0 = r17\n r1 = r19\n boolean r2 = r1 instanceof p008c.p009a.p024e.p026b.C0963b.C0970g\n if (r2 == 0) goto L_0x0017\n r2 = r1\n c.a.e.b.b$g r2 = (p008c.p009a.p024e.p026b.C0963b.C0970g) r2\n int r3 = r2.f1086b\n r4 = -2147483648(0xffffffff80000000, float:-0.0)\n r5 = r3 & r4\n if (r5 == 0) goto L_0x0017\n int r3 = r3 - r4\n r2.f1086b = r3\n goto L_0x001c\n L_0x0017:\n c.a.e.b.b$g r2 = new c.a.e.b.b$g\n r2.<init>(r0, r1)\n L_0x001c:\n java.lang.Object r1 = r2.f1085a\n java.lang.Object r3 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()\n int r4 = r2.f1086b\n r5 = 0\n r6 = 2\n r7 = 1\n if (r4 == 0) goto L_0x0051\n if (r4 == r7) goto L_0x0045\n if (r4 != r6) goto L_0x003d\n java.lang.Object r3 = r2.f1090f\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r3 = r2.f1089e\n java.lang.String r3 = (java.lang.String) r3\n java.lang.Object r2 = r2.f1088d\n c.a.e.b.b r2 = (p008c.p009a.p024e.p026b.C0963b) r2\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x00a1\n L_0x003d:\n java.lang.IllegalStateException r1 = new java.lang.IllegalStateException\n java.lang.String r2 = \"call to 'resume' before 'invoke' with coroutine\"\n r1.<init>(r2)\n throw r1\n L_0x0045:\n java.lang.Object r4 = r2.f1089e\n java.lang.String r4 = (java.lang.String) r4\n java.lang.Object r8 = r2.f1088d\n c.a.e.b.b r8 = (p008c.p009a.p024e.p026b.C0963b) r8\n kotlin.ResultKt.throwOnFailure(r1)\n goto L_0x0066\n L_0x0051:\n kotlin.ResultKt.throwOnFailure(r1)\n c.a.e.c.a r1 = r0.f1032c\n r2.f1088d = r0\n r4 = r18\n r2.f1089e = r4\n r2.f1086b = r7\n java.lang.Object r1 = r1.mo13034a(r2)\n if (r1 != r3) goto L_0x0065\n return r3\n L_0x0065:\n r8 = r0\n L_0x0066:\n c.a.e.c.a r1 = r8.f1032c\n java.lang.String r1 = r1.mo13035a()\n if (r1 == 0) goto L_0x00b7\n org.mobileid.time_key.web_service.TimeKeyWebService r15 = r8.f1031b\n org.mobileid.time_key.web_service.ActionOnKeyBody r14 = new org.mobileid.time_key.web_service.ActionOnKeyBody\n java.util.Locale r9 = java.util.Locale.getDefault()\n java.lang.String r10 = \"Locale.getDefault()\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r9, r10)\n if (r4 == 0) goto L_0x00af\n java.lang.String r10 = r4.toUpperCase(r9)\n java.lang.String r9 = \"(this as java.lang.String).toUpperCase(locale)\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r10, r9)\n r12 = 0\n r13 = 4\n r16 = 0\n r9 = r14\n r11 = r1\n r7 = r14\n r14 = r16\n r9.<init>(r10, r11, r12, r13, r14)\n r2.f1088d = r8\n r2.f1089e = r4\n r2.f1090f = r1\n r2.f1086b = r6\n java.lang.Object r1 = r15.activateKey(r7, r2)\n if (r1 != r3) goto L_0x00a1\n return r3\n L_0x00a1:\n org.mobileid.requester.web_service.Response r1 = (org.mobileid.requester.web_service.Response) r1\n java.lang.Object r1 = r1.getResult()\n if (r1 == 0) goto L_0x00aa\n r5 = 1\n L_0x00aa:\n java.lang.Boolean r1 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n return r1\n L_0x00af:\n java.lang.NullPointerException r1 = new java.lang.NullPointerException\n java.lang.String r2 = \"null cannot be cast to non-null type java.lang.String\"\n r1.<init>(r2)\n throw r1\n L_0x00b7:\n java.lang.Boolean r1 = kotlin.coroutines.jvm.internal.Boxing.boxBoolean(r5)\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p008c.p009a.p024e.p026b.C0963b.mo13022a(java.lang.String, kotlin.coroutines.Continuation):java.lang.Object\");\n }", "void m5768b() throws C0841b;", "public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }", "public com.google.cr a(com.google.ca r5) {\n /*\n r4 = this;\n r0 = 0;\n r1 = com.google.bA.b;\n r2 = com.google.ca.d();\n if (r5 != r2) goto L_0x000a;\n L_0x0009:\n return r4;\n L_0x000a:\n r2 = r4.f;\n if (r2 != 0) goto L_0x003f;\n L_0x000e:\n r2 = com.google.ca.b(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0018:\n r2 = r4.g;\n r2 = r2.isEmpty();\n if (r2 == 0) goto L_0x002e;\n L_0x0020:\n r2 = com.google.ca.b(r5);\n r4.g = r2;\n r2 = r4.h;\n r2 = r2 & -2;\n r4.h = r2;\n if (r1 == 0) goto L_0x003a;\n L_0x002e:\n r4.d();\n r2 = r4.g;\n r3 = com.google.ca.b(r5);\n r2.addAll(r3);\n L_0x003a:\n r4.g();\n if (r1 == 0) goto L_0x0079;\n L_0x003f:\n r2 = com.google.ca.b(r5);\n r2 = r2.isEmpty();\n if (r2 != 0) goto L_0x0079;\n L_0x0049:\n r2 = r4.f;\n r2 = r2.i();\n if (r2 == 0) goto L_0x0070;\n L_0x0051:\n r2 = r4.f;\n r2.b();\n r4.f = r0;\n r2 = com.google.ca.b(r5);\n r4.g = r2;\n r2 = r4.h;\n r2 = r2 & -2;\n r4.h = r2;\n r2 = com.google.bL.d;\n if (r2 == 0) goto L_0x006c;\n L_0x0068:\n r0 = r4.k();\n L_0x006c:\n r4.f = r0;\n if (r1 == 0) goto L_0x0079;\n L_0x0070:\n r0 = r4.f;\n r1 = com.google.ca.b(r5);\n r0.a(r1);\n L_0x0079:\n r4.a(r5);\n r0 = r5.getUnknownFields();\n r4.a(r0);\n goto L_0x0009;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.cr.a(com.google.ca):com.google.cr\");\n }", "private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }" ]
[ "0.6892645", "0.68348897", "0.6683956", "0.6677536", "0.6617159", "0.6555686", "0.6548365", "0.65187836", "0.6506713", "0.6481324", "0.6468834", "0.64685845", "0.64508814", "0.64057153", "0.6388195", "0.6371574", "0.6362525", "0.6357843", "0.6347948", "0.6338392", "0.6331037", "0.6323017", "0.63038236", "0.62720907", "0.6265761", "0.62561", "0.62466544", "0.62434644", "0.6241768", "0.6239775", "0.62393665", "0.62337154", "0.62157327", "0.6207243", "0.6192773", "0.61754507", "0.61641467", "0.6147838", "0.61368483", "0.6117739", "0.6095207", "0.6094364", "0.60822", "0.6073462", "0.6066994", "0.6057922", "0.60531944", "0.6048402", "0.60441", "0.6043029", "0.6039021", "0.6029009", "0.6021025", "0.60175455", "0.60095507", "0.599747", "0.59966165", "0.59966165", "0.59920406", "0.59901506", "0.5983455", "0.59806836", "0.5974942", "0.597391", "0.5973499", "0.5968726", "0.5963362", "0.5962119", "0.59606373", "0.59517133", "0.5947885", "0.59471995", "0.5943074", "0.59320134", "0.5927906", "0.5923747", "0.5921532", "0.5918522", "0.59168494", "0.5909486", "0.5897375", "0.58948606", "0.5891863", "0.58911425", "0.5891007", "0.58907664", "0.58896476", "0.5888427", "0.5880175", "0.5872404", "0.58585113", "0.5847597", "0.5840028", "0.58380836", "0.5836615", "0.58353394", "0.58344185", "0.5828222", "0.582776", "0.58274084", "0.5826506" ]
0.0
-1
/ access modifiers changed from: packageprivate / renamed from: a
public final void mo31283a(int i) { this.f13976a.lock(); try { this.f13977b = i; } finally { this.f13976a.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n public void func_104112_b() {\n \n }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void a() {\r\n }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "void m1864a() {\r\n }", "public static void a() {\n\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public void a() {\n }", "public void a() {\n }", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public void mo2740a() {\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public void mo44053a() {\n }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public void mo12930a() {\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public void b() {\r\n }", "public void mo4359a() {\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public void mo6944a() {\n }", "public static a c() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "@Override\n public void b() {\n }", "public static aa a() {\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public abstract void m15813a();", "public void mo115188a() {\n }", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "private stendhal() {\n\t}", "public void a() {\n ((a) this.a).a();\n }", "public abstract void mo70713b();", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface C0069a {\n void a();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public void mo1531a() {\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void b() {\n }", "public void b() {\n }", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo23813b() {\n }", "public abstract void mo27464a();", "public abstract void mo53562a(C18796a c18796a);", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public void mo5248a() {\n }", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "public interface a {\n }", "public abstract Object mo1771a();", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "public interface C48855s {\n\n /* renamed from: a */\n public static final C48856a f124209a = C48856a.f124210a;\n\n /* renamed from: shark.s$a */\n public static final class C48856a {\n\n /* renamed from: a */\n static final /* synthetic */ C48856a f124210a = new C48856a();\n\n private C48856a() {\n }\n }\n\n /* renamed from: a */\n void mo123342a(C48857t tVar);\n}", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C3660a {\n /* renamed from: a */\n void mo9777a();\n }", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "@Override\n\tpublic void b() {\n\n\t}", "public void method_4270() {}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}" ]
[ "0.726614", "0.7028642", "0.6933734", "0.6797219", "0.6743934", "0.66733205", "0.6584452", "0.6570101", "0.6557708", "0.6544726", "0.6517904", "0.65065676", "0.64968956", "0.6494875", "0.6490343", "0.64685714", "0.6464895", "0.64589024", "0.6456748", "0.645063", "0.64302754", "0.64259994", "0.6418206", "0.64038676", "0.6396655", "0.6396655", "0.63769853", "0.63754815", "0.63626075", "0.63554215", "0.6298631", "0.62745935", "0.62713397", "0.6250795", "0.62500924", "0.62217367", "0.62198335", "0.62182236", "0.6217519", "0.62144375", "0.6209828", "0.61948", "0.61924505", "0.6182665", "0.6178249", "0.61736834", "0.6171266", "0.61682963", "0.61679614", "0.6165108", "0.6161636", "0.6156759", "0.61409724", "0.61406535", "0.6136912", "0.6134955", "0.6132045", "0.61299914", "0.61257833", "0.61210406", "0.61075145", "0.610687", "0.610687", "0.6105947", "0.6105947", "0.6100679", "0.6092896", "0.6090916", "0.6088333", "0.6084522", "0.60778475", "0.60704833", "0.60686016", "0.6067827", "0.60577345", "0.6056262", "0.6053221", "0.6042458", "0.6042157", "0.6041819", "0.6041249", "0.60401785", "0.6038439", "0.60375166", "0.602528", "0.60202867", "0.60163146", "0.60136825", "0.6010149", "0.60044646", "0.6002931", "0.6000395", "0.600011", "0.5999535", "0.59966975", "0.5990569", "0.59903556", "0.59877336", "0.5987433", "0.5984592", "0.59840417" ]
0.0
-1
/ access modifiers changed from: packageprivate / renamed from: a
public final C5112a mo31282a() { this.f13976a.lock(); try { if (this.f13983h != null) { this.f13980e = this.f13983h; this.f13983h = null; } return this.f13980e; } finally { this.f13976a.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n public void func_104112_b() {\n \n }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void a() {\r\n }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "void m1864a() {\r\n }", "public static void a() {\n\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public void a() {\n }", "public void a() {\n }", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public void mo2740a() {\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public void mo44053a() {\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public void mo12930a() {\n }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public void mo4359a() {\n }", "public void b() {\r\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public void mo6944a() {\n }", "public static a c() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "@Override\n public void b() {\n }", "public static aa a() {\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public abstract void m15813a();", "public void mo115188a() {\n }", "private stendhal() {\n\t}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public abstract void mo70713b();", "public void a() {\n ((a) this.a).a();\n }", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface C0069a {\n void a();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public void mo1531a() {\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void b() {\n }", "public void b() {\n }", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo23813b() {\n }", "public abstract void mo27464a();", "public abstract void mo53562a(C18796a c18796a);", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public void mo5248a() {\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "public abstract Object mo1771a();", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface a {\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "public interface C48855s {\n\n /* renamed from: a */\n public static final C48856a f124209a = C48856a.f124210a;\n\n /* renamed from: shark.s$a */\n public static final class C48856a {\n\n /* renamed from: a */\n static final /* synthetic */ C48856a f124210a = new C48856a();\n\n private C48856a() {\n }\n }\n\n /* renamed from: a */\n void mo123342a(C48857t tVar);\n}", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C3660a {\n /* renamed from: a */\n void mo9777a();\n }", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "public void method_4270() {}", "@Override\n\tpublic void b() {\n\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}" ]
[ "0.72647583", "0.7027308", "0.6932353", "0.67963594", "0.6744744", "0.66718376", "0.65831935", "0.6568693", "0.6556423", "0.65451646", "0.6518747", "0.650733", "0.64985996", "0.64938843", "0.64893854", "0.64701945", "0.6464074", "0.6460309", "0.6458465", "0.64509946", "0.643186", "0.6427179", "0.6419455", "0.64049494", "0.6395156", "0.6395156", "0.6378282", "0.63768566", "0.6363736", "0.6356563", "0.6299064", "0.6276125", "0.6272923", "0.62520134", "0.6251762", "0.6221248", "0.6220622", "0.6218144", "0.621636", "0.6216286", "0.6209636", "0.6195781", "0.6193595", "0.6184515", "0.61769086", "0.61750984", "0.6173085", "0.6167652", "0.61671597", "0.61656874", "0.6163014", "0.6158435", "0.6142869", "0.61415905", "0.6137351", "0.6133502", "0.6133217", "0.6129663", "0.61237186", "0.6122764", "0.6108453", "0.61054856", "0.61054856", "0.6105089", "0.6105089", "0.61013615", "0.6093955", "0.60925406", "0.6090081", "0.6085911", "0.60787773", "0.6072023", "0.6068931", "0.6068869", "0.60570276", "0.60554385", "0.6053668", "0.604404", "0.6043717", "0.60427934", "0.60409576", "0.6039098", "0.603881", "0.6038171", "0.60264635", "0.6021221", "0.6014869", "0.60147643", "0.6012015", "0.60056275", "0.60039663", "0.6001122", "0.60010886", "0.5999939", "0.5998138", "0.59913003", "0.5991137", "0.59897935", "0.5986967", "0.598586", "0.59844047" ]
0.0
-1
/ access modifiers changed from: packageprivate / renamed from: a
public final void mo31284a(boolean z) { this.f13976a.lock(); try { if (this.f13982g.size() != 0) { ArrayList arrayList = new ArrayList(this.f13982g); this.f13982g.clear(); this.f13976a.unlock(); Iterator it = arrayList.iterator(); while (it.hasNext()) { TJConnectListener tJConnectListener = (TJConnectListener) it.next(); if (z) { tJConnectListener.onConnectSuccess(); } else { tJConnectListener.onConnectFailure(); } } } } finally { this.f13976a.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n public void func_104112_b() {\n \n }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void a() {\r\n }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "void m1864a() {\r\n }", "public static void a() {\n\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public void a() {\n }", "public void a() {\n }", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public void mo2740a() {\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public void mo44053a() {\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public void mo12930a() {\n }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public void mo4359a() {\n }", "public void b() {\r\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public void mo6944a() {\n }", "public static a c() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "@Override\n public void b() {\n }", "public static aa a() {\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public abstract void m15813a();", "public void mo115188a() {\n }", "private stendhal() {\n\t}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public abstract void mo70713b();", "public void a() {\n ((a) this.a).a();\n }", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface C0069a {\n void a();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public void mo1531a() {\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void b() {\n }", "public void b() {\n }", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo23813b() {\n }", "public abstract void mo27464a();", "public abstract void mo53562a(C18796a c18796a);", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public void mo5248a() {\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "public abstract Object mo1771a();", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface a {\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "public interface C48855s {\n\n /* renamed from: a */\n public static final C48856a f124209a = C48856a.f124210a;\n\n /* renamed from: shark.s$a */\n public static final class C48856a {\n\n /* renamed from: a */\n static final /* synthetic */ C48856a f124210a = new C48856a();\n\n private C48856a() {\n }\n }\n\n /* renamed from: a */\n void mo123342a(C48857t tVar);\n}", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C3660a {\n /* renamed from: a */\n void mo9777a();\n }", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "public void method_4270() {}", "@Override\n\tpublic void b() {\n\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}" ]
[ "0.72647583", "0.7027308", "0.6932353", "0.67963594", "0.6744744", "0.66718376", "0.65831935", "0.6568693", "0.6556423", "0.65451646", "0.6518747", "0.650733", "0.64985996", "0.64938843", "0.64893854", "0.64701945", "0.6464074", "0.6460309", "0.6458465", "0.64509946", "0.643186", "0.6427179", "0.6419455", "0.64049494", "0.6395156", "0.6395156", "0.6378282", "0.63768566", "0.6363736", "0.6356563", "0.6299064", "0.6276125", "0.6272923", "0.62520134", "0.6251762", "0.6221248", "0.6220622", "0.6218144", "0.621636", "0.6216286", "0.6209636", "0.6195781", "0.6193595", "0.6184515", "0.61769086", "0.61750984", "0.6173085", "0.6167652", "0.61671597", "0.61656874", "0.6163014", "0.6158435", "0.6142869", "0.61415905", "0.6137351", "0.6133502", "0.6133217", "0.6129663", "0.61237186", "0.6122764", "0.6108453", "0.61054856", "0.61054856", "0.6105089", "0.6105089", "0.61013615", "0.6093955", "0.60925406", "0.6090081", "0.6085911", "0.60787773", "0.6072023", "0.6068931", "0.6068869", "0.60570276", "0.60554385", "0.6053668", "0.604404", "0.6043717", "0.60427934", "0.60409576", "0.6039098", "0.603881", "0.6038171", "0.60264635", "0.6021221", "0.6014869", "0.60147643", "0.6012015", "0.60056275", "0.60039663", "0.6001122", "0.60010886", "0.5999939", "0.5998138", "0.59913003", "0.5991137", "0.59897935", "0.5986967", "0.598586", "0.59844047" ]
0.0
-1
/ access modifiers changed from: packageprivate / renamed from: b
public final void mo31286b() { this.f13976a.lock(); try { this.f13979d = 1000; this.f13981f.signal(); } finally { this.f13976a.unlock(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public abstract void mo70713b();", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "@Override\n\tpublic void b() {\n\n\t}", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void mo21825b() {\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public void b() {\r\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "private stendhal() {\n\t}", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public void b() {\n }", "public void b() {\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public void mo115190b() {\n }", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void mo23813b() {\n }", "public abstract void mo6549b();", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "public void m23075a() {\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "void m1864a() {\r\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public final void mo51373a() {\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public abstract void mo35054b();", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "public void method_4270() {}", "private final zzgy zzgb() {\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "void mo57277b();", "public abstract Object mo1185b();", "public final void mo1285b() {\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public abstract C0631bt mo9227aB();", "public void mo9137b() {\n }", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "public void mo38117a() {\n }", "void mo2508a(bxb bxb);", "public void mo5251b() {\n }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public abstract void mo70702a(C30989b c30989b);", "private void kk12() {\n\n\t}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public abstract void mo56925d();", "private void m50366E() {\n }", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public static void bi() {\n\t}", "public abstract String mo118046b();", "private Rekenhulp()\n\t{\n\t}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C26438t {\n /* renamed from: b */\n void mo5959b(boolean z, String str, Bundle bundle);\n}", "void mo72113b();", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "public abstract Object mo26777y();", "public void mo97908d() {\n }", "@Override\n protected void prot() {\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public void mo44053a() {\n }", "public abstract void mo27464a();", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1255b {\n /* renamed from: a */\n public static final C1255b f3973a = new C34771();\n /* renamed from: b */\n public static final C1255b f3974b = new C34782();\n /* renamed from: c */\n public static final C1255b f3975c = new C34793();\n /* renamed from: d */\n public static final C1255b f3976d = f3974b;\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$1 */\n class C34771 implements C1255b {\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n }\n\n C34771() {\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$2 */\n class C34782 implements C1255b {\n C34782() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: com.bumptech.glide.load.engine.c.a$b$3 */\n class C34793 implements C1255b {\n C34793() {\n }\n\n /* renamed from: a */\n public void mo1031a(Throwable th) {\n if (th != null) {\n throw new RuntimeException(\"Request threw uncaught throwable\", th);\n }\n }\n }\n\n /* renamed from: a */\n void mo1031a(Throwable th);\n }", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public void mo2740a() {\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }", "public abstract void mo45765b();", "public void mo115188a() {\n }", "public abstract void mo27386d();", "public static final class <init> extends com.google.android.m4b.maps.ct.<init>\n implements b\n{\n\n private ()\n {\n super(com.google.android.m4b.maps.cy.a.d());\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public abstract void mo27385c();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public void mo23438b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public interface b {\n}", "public interface b {\n}", "public abstract void mo53562a(C18796a c18796a);", "public final void mo91715d() {\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}" ]
[ "0.71655", "0.6648464", "0.65830326", "0.6510913", "0.6505194", "0.6490603", "0.64902574", "0.648904", "0.6482411", "0.6421281", "0.6419241", "0.6412395", "0.6381937", "0.637991", "0.6367403", "0.6367403", "0.635312", "0.63344365", "0.63042736", "0.63023925", "0.62962645", "0.6264736", "0.6239408", "0.6222712", "0.62191457", "0.62163246", "0.6207753", "0.6182244", "0.6180712", "0.6178752", "0.6178752", "0.61647254", "0.6159893", "0.6159893", "0.6153914", "0.6153009", "0.6146343", "0.61458933", "0.6133739", "0.61327004", "0.6117305", "0.61012816", "0.6094578", "0.6084946", "0.60801554", "0.60755616", "0.6070511", "0.6068759", "0.60521346", "0.6045141", "0.6037777", "0.6037256", "0.6034815", "0.60252047", "0.6023499", "0.6020533", "0.60167974", "0.60062116", "0.60061663", "0.6000144", "0.5999674", "0.59980845", "0.59957916", "0.59948796", "0.59906846", "0.5979869", "0.59692866", "0.59567064", "0.59528273", "0.59460294", "0.5942166", "0.59420586", "0.594158", "0.594082", "0.59399164", "0.5936763", "0.5935757", "0.5926862", "0.5926836", "0.5922028", "0.5918786", "0.59182954", "0.59148914", "0.59124637", "0.59095204", "0.59078455", "0.5907544", "0.59050125", "0.5898072", "0.5894777", "0.5893687", "0.58911604", "0.58911604", "0.58813316", "0.5880358", "0.58775115", "0.58772254", "0.58772254", "0.5876818", "0.5875466", "0.5874572" ]
0.0
-1
/ access modifiers changed from: packageprivate / renamed from: a
public final boolean mo31285a(long j) { this.f13976a.lock(); try { int i = C5116c.f14002d; int i2 = C5116c.f14001c; mo31283a(i); if (this.f13981f.await(j, TimeUnit.MILLISECONDS)) { this.f13979d = 1000; } } catch (InterruptedException unused) { } catch (Throwable th) { int i3 = C5116c.f14001c; int i4 = C5116c.f14002d; mo31283a(i3); this.f13976a.unlock(); throw th; } int i5 = C5116c.f14001c; int i6 = C5116c.f14002d; mo31283a(i5); this.f13976a.unlock(); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\n\tpublic void a() {\n\t\t\n\t}", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override\n public void func_104112_b() {\n \n }", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public void a() {\r\n }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "public void m23075a() {\n }", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public int a()\r\n/* 64: */ {\r\n/* 65:70 */ return this.a;\r\n/* 66: */ }", "void m1864a() {\r\n }", "public static void a() {\n\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public void a() {\n }", "public void a() {\n }", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public void mo2740a() {\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public void mo44053a() {\n }", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public void mo12930a() {\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public void b() {\r\n }", "public void mo4359a() {\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public void mo6944a() {\n }", "public static a c() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "@Override\n public void b() {\n }", "public static aa a() {\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public abstract void m15813a();", "public void mo115188a() {\n }", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "private stendhal() {\n\t}", "public void a() {\n ((a) this.a).a();\n }", "public abstract void mo70713b();", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface C0069a {\n void a();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public void mo1531a() {\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void b() {\n }", "public void b() {\n }", "@Override\n\tpublic void A() {\n\t\t\n\t}", "@Override\n\tpublic void A() {\n\t\t\n\t}", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo23813b() {\n }", "public abstract void mo27464a();", "public abstract void mo53562a(C18796a c18796a);", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public void mo5248a() {\n }", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public String i() {\n/* 44 */ return this.a.toString();\n/* */ }", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "@Override // g.i.a.a\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void a(android.view.View r18, android.content.Context r19, android.database.Cursor r20) {\n /*\n // Method dump skipped, instructions count: 441\n */\n throw new UnsupportedOperationException(\"Method not decompiled: g.b.g.t0.a(android.view.View, android.content.Context, android.database.Cursor):void\");\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "public interface a {\n }", "public abstract Object mo1771a();", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void a(ik paramik)\r\n/* 59: */ {\r\n/* 60:66 */ paramik.a(this);\r\n/* 61: */ }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "interface C0868a {\n /* renamed from: a */\n void mo3207a(Object obj);\n\n /* renamed from: a */\n void mo3208a(String str, Bundle bundle);\n\n /* renamed from: a */\n void mo3209a(String str, Bundle bundle, ResultReceiver resultReceiver);\n\n /* renamed from: a */\n boolean mo3210a(Intent intent);\n }", "interface C9251a {\n /* renamed from: a */\n boolean mo24941a(Context context);\n }", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "public interface C48855s {\n\n /* renamed from: a */\n public static final C48856a f124209a = C48856a.f124210a;\n\n /* renamed from: shark.s$a */\n public static final class C48856a {\n\n /* renamed from: a */\n static final /* synthetic */ C48856a f124210a = new C48856a();\n\n private C48856a() {\n }\n }\n\n /* renamed from: a */\n void mo123342a(C48857t tVar);\n}", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C3660a {\n /* renamed from: a */\n void mo9777a();\n }", "public interface AbstractC16592a {\n /* renamed from: a */\n void mo67920a();\n\n /* renamed from: a */\n void mo67921a(Object obj);\n\n /* renamed from: a */\n void mo67922a(AbstractC32732ag agVar, Throwable th);\n\n /* renamed from: b */\n void mo67923b();\n\n /* renamed from: c */\n void mo67924c();\n }", "@Override\n\tpublic void b() {\n\n\t}", "public void method_4270() {}", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}" ]
[ "0.726614", "0.7028642", "0.6933734", "0.6797219", "0.6743934", "0.66733205", "0.6584452", "0.6570101", "0.6557708", "0.6544726", "0.6517904", "0.65065676", "0.64968956", "0.6494875", "0.6490343", "0.64685714", "0.6464895", "0.64589024", "0.6456748", "0.645063", "0.64302754", "0.64259994", "0.6418206", "0.64038676", "0.6396655", "0.6396655", "0.63769853", "0.63754815", "0.63626075", "0.63554215", "0.6298631", "0.62745935", "0.62713397", "0.6250795", "0.62500924", "0.62217367", "0.62198335", "0.62182236", "0.6217519", "0.62144375", "0.6209828", "0.61948", "0.61924505", "0.6182665", "0.6178249", "0.61736834", "0.6171266", "0.61682963", "0.61679614", "0.6165108", "0.6161636", "0.6156759", "0.61409724", "0.61406535", "0.6136912", "0.6134955", "0.6132045", "0.61299914", "0.61257833", "0.61210406", "0.61075145", "0.610687", "0.610687", "0.6105947", "0.6105947", "0.6100679", "0.6092896", "0.6090916", "0.6088333", "0.6084522", "0.60778475", "0.60704833", "0.60686016", "0.6067827", "0.60577345", "0.6056262", "0.6053221", "0.6042458", "0.6042157", "0.6041819", "0.6041249", "0.60401785", "0.6038439", "0.60375166", "0.602528", "0.60202867", "0.60163146", "0.60136825", "0.6010149", "0.60044646", "0.6002931", "0.6000395", "0.600011", "0.5999535", "0.59966975", "0.5990569", "0.59903556", "0.59877336", "0.5987433", "0.5984592", "0.59840417" ]
0.0
-1