query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public void validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 validaDatos() {
} | {
"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 |
Java Recursion Example 1: Infinite times | static void p(){
System.out.println("My recursion example 1");
p();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"CalculationResult goInfinite();",
"static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }",
"@Test public void selfRecursive() {\n check(\"declare function local:f($i) { if($i eq 12345) then $i else local:f($i+1) };\" +\n \"local:f(0)\",\n\n 12345,\n\n exists(Util.className(If.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\")\n );\n }",
"static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}",
"public static int recursiveFactorial(int num){\n\n //base case\n if(num == 0){\n return 1;\n }\n\n //recursive call\n return num * recursiveFactorial(num-1);\n\n //int 3 would be recursing down to recursiveFactorial(0), checking each time for base case\n //adding to call stack, then recursing up in reverse order through the\n // call stack to recursiveFactorial(3) with 3 * 2\n // or num - 1\n\n //sample call stack\n //recursiveFactorial(0) = returns right away, then pops and recurses up\n //recursiveFactorial(1)\n // recursiveFactorial(2)\n //recursiveFactorial(3)\n }",
"int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\n}",
"@Test public void mixedSelfRecursive() {\n check(\"declare function local:inc($i) { $i + 1 };\" +\n \"declare function local:f($i) { if($i eq 12345) then $i \" +\n \"else local:f(local:inc($i)) };\" +\n \"local:f(0)\",\n\n 12345,\n\n exists(Util.className(If.class) + '/' + Util.className(StaticFuncCall.class) +\n \"[@tailCall eq 'true']\")\n );\n }",
"public static long pureRecursive (int n)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n else if (n==1)\r\n return (n);\r\n else\r\n return (n * pureRecursive(n-1));\r\n }",
"@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}",
"private static int recursion(int x) {\n\t\tif(x == 1) return 0;\n\n\t\tif(dp[x] != -1) return dp[x];\n\t\tint result = Integer.MAX_VALUE;\n\n\t\tif(x % 3 == 0) result = Math.min(recursion(x / 3), result);\n\t\tif(x % 2 == 0) result = Math.min(recursion(x >> 1), result);\n\t\tif(x >= 1) result = Math.min(recursion(x - 1), result);\n\n\t\treturn dp[x] = result + 1;\n\t}",
"public int recursive(int n) {\r\n //base case: return n if <= 1\r\n if (n <= 1) {\r\n return n;\r\n }\r\n //else return result of of two previous #s being added to each other\r\n return recursive(n - 1) + recursive(n - 2);\r\n }",
"public static void main(String[] args) {\n\t\trecursion(1,5);\n\t\t\t}",
"private void incRecursion(int amount) {\n if (amount < 0) {\n Assert.assertTrue(recursion - amount >= 0,\n amount + \" cannot be subtracted from recursion \" + recursion);\n }\n recursion += amount;\n }",
"@Test\r\n\tpublic void test02_fib() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\t\tassertEquals(1, +rm.fib(1));\r\n\t\tassertEquals(1, +rm.fib(2));\r\n\t\tassertEquals(2, +rm.fib(3));\r\n\t\tassertEquals(3, +rm.fib(4));\r\n\t\tassertEquals(5, +rm.fib(5));\r\n\t\tassertEquals(8, +rm.fib(6));\r\n\t}",
"private int recursiveFib(int n) {\r\n if (n <= 2) {\r\n return 1;\r\n }\r\n \r\n return recursiveFib(n - 2) + recursiveFib(n - 1);\r\n }",
"public static long factorialUsingRecursion (int num){\n\n if(num < 0){\n throw new UnsupportedOperationException(Util.NEGATIVE_MESSAGE);\n }\n\n if(num == 0)\n return 1;\n\n return num*factorialUsingRecursion(num-1);\n\n }",
"public static int factorialiterativa(int n){\n if(n>0){\r\n factorialrecursiva(n-1);//LLAMO A LA RECURSIVA\r\n }else {\r\n return 1;\r\n }\r\nreturn factorialrecursiva(n-1);\r\n }",
"private static int factorial(int num) {\n /**\n * validation\n */\n if (num < 0) {\n throw new IllegalArgumentException(\"num is invalid\");\n }\n\n /**\n * base case\n */\n if (num == 0) {\n return 1;\n }\n\n /**\n * recursive case\n */\n\n return num * factorial(num - 1);\n }",
"private int fibonacciHelper (int fibCurrent, int fibPrevious, int n) {\n\t\tcounter ++;\n\t\tif (n==1) \n\t\t\treturn fibCurrent;\n\t\t\telse \n\t\t\t\treturn fibonacciHelper ( fibCurrent+ fibPrevious, fibCurrent, n-1);\n\t}",
"private long factorial(int i) {\n\t\t/*\n\t\t * if the number is greater than 1, then we continue\n\t\t * else we return our results\n\t\t */\n\t\tif(i > 1)\n\t\t\treturn factorial(i -1) * i;\n\t\treturn i;\n\t}",
"private static int factorial(int n) {\n if (n <= 0) {\n return 1;\n }\n\n return n * factorial(n - 1);\n }",
"public static void print_recursion(int a){\r\n if(a<2){\r\n array.add(a);\r\n for(int i=1;i<=array.size();i++){\r\n System.out.print(array.get(array.size()-i));\r\n }\r\n System.out.println(\"\");\r\n }\r\n else{\r\n array.add(a%2);\r\n print_recursion(a/2);\r\n }\r\n }",
"private static int factorial(int n) {\n if (n == 1 || n == 0)\n return 1;\n else\n return n * factorial(n - 1);\n }",
"public static int foo3( int n )\r\n\t{\r\n\t\tif ( n == 0 )\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t\treturn n + foo3( n - 1 );\r\n\t\t\r\n\t}",
"public static int fibonacciRecursion(int n) {\r\n if (n == 0) {\r\n return 0;\r\n }\r\n if (n == 1 || n == 2) {\r\n return 1;\r\n }\r\n return fibonacciRecursion(n - 2) + fibonacciRecursion(n - 1);\r\n }",
"boolean isRecursive();",
"public static void reduceByOne(int n) {\n if (n >= 0) {\n reduceByOne(n - 1); //recursion function\n }\n System.out.println(\"Completed call using rec:\" + n);\n }",
"static int recursiva2(int n)\n\t\t{\n\t\t\tif (n==0)\n\t\t\treturn 10; \n\t\t\tif (n==1)\n\t\t\treturn 20;\n\t\t\tif (n==2)\n\t\t\treturn 30;\n\t\t\t\n\t\t\treturn recursiva2(n-1) + recursiva2 (n-2) * recursiva2 (n-3); \n\t\t}",
"public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}",
"private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}",
"int factorial(int n){\n return (n==1||n==0)?1: n*factorial(n-1);\n }",
"static void recursive(SootMethod method){\r\n \tvisited.put(method.getSignature(),true);\r\n \tIterator <MethodOrMethodContext> target_1=new Targets(cg.edgesOutOf(method));\r\n \r\n \tif(target_1!=null){\r\n \t\twhile(target_1.hasNext())\r\n \t\t{\r\n \t\t\tSootMethod target_2=(SootMethod)target_1.next();\r\n \t\t\tSystem.out.println(\"\\t\"+ target_2.getSignature().toString());\r\n \t\t\tif(!visited.containsKey(target_2.getSignature()))\r\n \t\t\t\trecursive(target_2);\r\n \t\t}\r\n \t}\r\n \t}",
"@Test public void facTest() {\n check(\"declare function local:fac($n, $f) {\" +\n \" if($n = 0) then $f\" +\n \" else local:fac($n - 1, $f * $n)\" +\n \"};\" +\n \"local:fac(123, xs:decimal('1'))\",\n\n \"12146304367025329675766243241881295855454217088483382315328918161829\" +\n \"23589236216766883115696061264020217073583522129404778259109157041165\" +\n \"14721860295199062616467307339074198149529600000000000000000000000000\" +\n \"00\",\n\n exists(Util.className(StaticFuncCall.class) + \"[@tailCall eq 'true']\")\n );\n }",
"static int fact1(int n)\n {\n if(n == 0 || n == 1)\n return 1;\n return n * fact1(n-1);\n }",
"public static void main(String[] args) {\n\t\tInteger[] arr = new Integer[]{1,5,10,25};\r\n\t\tInteger N = 100;\r\n\t\t\r\n\t\tInteger[] dp = new Integer[N+1];\r\n\t\tCoinChange obj = new CoinChange();\r\n\t\t\r\n\t\tSystem.out.println(obj.recurse(arr,dp,100));\r\n\t}",
"@Test\r\n\tpublic void test05_occurrencesOf() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\r\n\t\tassertEquals(0, rm.occurrencesOf(\"\", 'a'));\r\n\t\tassertEquals(1, rm.occurrencesOf(\"a\", 'a'));\r\n\t\tassertEquals(0, rm.occurrencesOf(\"b\", 'a'));\r\n\t\tassertEquals(3, rm.occurrencesOf(\"baaba\", 'a'));\r\n\t\tassertEquals(2, rm.occurrencesOf(\"baaba\", 'b'));\r\n\t\tassertEquals(0, rm.occurrencesOf(\"baaba\", 'c'));\r\n\t}",
"@Test\n public void withRecursion() {\n assertThat(ReturnKthtoLast.withRecursion(list, 4), is(2));\n }",
"public static void main(String[] args){\n LinkedListDeque<String> lld = new LinkedListDeque<>();\n lld.addFirst(\"Hello\");\n lld.addLast(\"Java\");\n lld.addLast(\"!\");\n\n String s0 = lld.getRecursive(0);\n String s1 = lld.getRecursive(1);\n String s2 = lld.getRecursive(2);\n System.out.println(s0 + s1 + s2);\n System.out.println(lld.getRecursive(556));\n //lld.getRecursive(2);\n }",
"@Test\r\n\tpublic void test01_fact() {\r\n\t\tRecursiveMethods rm = new RecursiveMethods();\r\n\t\tassertEquals(1, rm.factorial(0));\r\n\t\tassertEquals(1, rm.factorial(1));\r\n\t\tassertEquals(2, rm.factorial(2));\r\n\t\tassertEquals(6, rm.factorial(3));\r\n\t\tassertEquals(24, rm.factorial(4));\r\n\t\tassertEquals(120, rm.factorial(5));\r\n\t}",
"int getRecursionDepth();",
"public static long iterative (int n)\r\n {\r\n long mult=1;\r\n while(true)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n if (n==1)\r\n return (mult*n);\r\n mult=mult*n;\r\n n=n-1;\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Type number for fabonacci : \");\n\t\tScanner scanner = new Scanner(System.in);\n\t\t int number = scanner.nextInt();\n\t\t \n\t\t for(int m=1;m<=number;m++) {\n\t\tint result= fabi(m);\n\t System.out.println(\" Loop : \" + result);\n\n\t\t }\n\t\t \n\t\tint result1= fabi1(number);\n\t\tSystem.out.println(\" Recursion : \"+result1);\n scanner.close();\n \n\t}",
"boolean hasRecursive();",
"static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}",
"void calculating(int depth);",
"protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint n = 10;\n\t\tint[] lookUp = new int[n+1];\n\t\tArrays.fill(lookUp, 0);\n\t\tSystem.out.println(numberOfWaysRecursive(n));\n\t\tSystem.out.println(numberOfWaysDynamic(n,lookUp));\n\n\t}",
"@Override\r\n\tpublic int fib(int x) {\n\t\treturn 0;\r\n\t}",
"private long fibonacci(long n) {\n if (n <= 1) {\n return n;\n } else {\n return fibonacci(n - 1) + fibonacci(n - 2);\n }\n }",
"int fibonacciNumberFinder(int n){\n if (n <= 1){\n return n;\n }\n return fibonacciNumberFinder(n - 1) + fibonacciNumberFinder(n - 2);\n }",
"static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}",
"public static int factorial(int n) {\n //Base case\n /* Strictly, checking if n < 1 is enough, however\n ** checking for 1 as well saves a recursion.\n */\n if(n <= 1)\n return 1;\n return n * factorial(n - 1);\n }",
"static long factorialLoop(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n int accum = 1;\r\n for(int i=n; i>0; i--) {\r\n accum *= i;\r\n }\r\n return accum;\r\n }",
"private static int numberOfWaysRecursive(int n) {\n\t\tif(n<0)\n\t\t\treturn 0;\n\t\tif(n==0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn numberOfWaysRecursive(n-1) + numberOfWaysRecursive(n-2) + numberOfWaysRecursive(n-3);\n\t}",
"public static int fibGenerator(int x, int y){\n\n if (iterator == 10){\n System.out.println(\"The sequence has ended!\");\n return 0;\n }\n\n if (iterator == 0) {\n x = 0;\n y = 1;\n int z = x + y;\n iterator++;\n System.out.println(x+\" \"+y+\" \");\n return fibGenerator(y,z);\n }\n\n int z = x + y;\n iterator++;\n System.out.println(y+\" \");\n return fibGenerator(y,z);\n }",
"public boolean hasSelfLoops();",
"private static void checkRecursion(RolapEvaluator eval, int c) {\n RolapMember[] members = eval.currentMembers.clone();\n Member expanding = eval.expandingMember;\n\n // Find an ancestor evaluator that has identical context to this one:\n // same member context, and expanding the same calculation.\n while (true) {\n if (c < 0) {\n eval = eval.parent;\n if (eval == null) {\n return;\n }\n c = eval.commandCount - 1;\n } else {\n Command command = (Command) eval.commands[c];\n switch (command) {\n case SET_CONTEXT:\n int memberOrdinal = (Integer) eval.commands[c - 1];\n RolapMember member = (RolapMember) eval.commands[c - 2];\n members[memberOrdinal] = member;\n break;\n case SET_EXPANDING:\n expanding = (RolapMember) eval.commands[c - 2];\n if (Arrays.equals(members, eval.currentMembers)\n && expanding == eval.expandingMember)\n {\n throw FunUtil.newEvalException(\n null,\n \"Infinite loop while evaluating calculated member '\"\n + eval.expandingMember + \"'; context stack is \"\n + eval.getContextString());\n }\n }\n c -= command.width;\n }\n }\n }",
"private static int fibonacci(int n) {\n if (n == 1 || n == 2)\n return 1;\n else\n return fibonacci(n - 1) + fibonacci(n - 2);\n }",
"public static long factorial(int num)\n {\n if (num >= 1) {\n System.out.println(\"before num = \" + num);\n return factorial(num - 1) * num;\n\n }\n else\n return 1;\n }",
"public static void main(String[] args){\n\t\tint[] intArr = new int[100];\n\t\tfor(int i = 0; i < 100; i++){\n\t\t\tintArr[i] = i + 1;\n\t\t}\n\t\t\n\t\t// use tail recursion\n\t\tint tSum = tailSum(intArr);\n\t\tSystem.out.println(\"Tail recursion sum: \" + tSum);\n\t\t\n\t\t// use normal recursion\n\t\tint nSum = sum(intArr);\n\t\tSystem.out.println(\"Normal recursion sum: \" + nSum);\n\t}",
"@Override\n public void onRecursionEnd(int faces)\n {\n if(faces > previousResult)\n previousResult = faces;\n }",
"static int recursion(int steps, int arrLen, int index, int[][] dp) {\n\n if (steps == 0 && index == 0) {\n return 1;\n }\n\n // extra base condition is index> steps , because we cannot return from there at all.\n if (steps == 0 || index < 0 || index >= arrLen || index > steps) return 0;\n\n if (dp[steps][index] != -1) return dp[steps][index];\n\n int ans = 0;\n\n // we can go either left , right or stay there itself.\n ans = (ans + recursion(steps - 1, arrLen, index, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index + 1, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index - 1, dp)) % MOD;\n dp[steps][index] = ans % MOD;\n return dp[steps][index];\n }",
"public void inOrderTraverseRecursive();",
"private static int fibonacci(int num) {\n if (num <= 1) {\n return num;\n }\n int number1 = fibonacci(num - 1);\n int number2 = fibonacci(num - 2);\n return number1 + number2;\n }",
"private int fib(int n) {\n int retVal = 0;\n if (n == 1) {\n retVal = 1;\n } else if (n == 2) {\n retVal = 1;\n } else {\n \n int nextfib = fib(n-2) + fib(n-1);\n retVal = nextfib;\n }\n \n return retVal;\n }",
"@Test public void dynFuncCall() {\n check(\"let $sum :=\" +\n \" function($seq) {\" +\n \" let $go :=\" +\n \" function($seq, $acc, $go) {\" +\n \" if(empty($seq)) then $acc\" +\n \" else $go(tail($seq), $acc + head($seq), $go)\" +\n \" }\" +\n \" return $go($seq, 0, $go)\" +\n \" }\" +\n \"return $sum(1 to 100000)\",\n\n 5000050000L,\n\n empty(Util.className(FuncItem.class) + \"//\" + Util.className(DynFuncCall.class) +\n \"[@tailCall eq 'false']\")\n );\n }",
"public int run() {\n\n int n = 1;\n\n int primeCounter = 0;\n\n while (true) {\n\n if (isPrime.run(n) == true) {\n\n primeCounter += 1;\n\n }\n\n if (primeCounter == 10001) {\n\n break;\n\n }\n\n n += 1;\n\n }\n\n return n;\n\n }",
"public int fact(int n) {\n if (n == 0 || n == 1) {\r\n // Return 1\r\n return 1;\r\n }\r\n // Anthing else? 2 times 1!\r\n return n * fact(n - 1);\r\n }",
"private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }",
"public static long fib(long index) {\n if (index == 0) // Base case\n return 0;\n else if (index == 1) //base case)\n return 1;\n else //reducting and recursive calls\n return fib(index - 1) + fib(index - 2); \n }",
"public static void main(String[] args) {\n\t\tint maxRepeats = 0, number = -1;\n\t\tfor(int i = 1; i < 1000; i++) {\n\t\t\tif(!willTerminate(i)) {\n\t\t\t\tList<Integer> remainders = new ArrayList<Integer>();\n\t\t\t\tint repeats = numberOfRepeats(i, remainders);\n\t\t\t\tif(repeats > maxRepeats) {\n\t\t\t\t\tmaxRepeats = repeats;\n\t\t\t\t\tnumber = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(number);\n\t}",
"public static void main(String args[]){\n\tint depth = 10;\n\t\n\t// if an argument is passed, use that value as recursion depth\n\tif (args.length > 0) {\n\t depth = Integer.parseInt(args[0]);\n\t}\n\t\n JFrame frame = new JFrame(\"Recursion\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setContentPane(new Recursion(depth));\n frame.pack();\n frame.setVisible(true);\n }",
"public int fibo1(int n){\r\n if(n == 1 || n == 2){\r\n return 1;\r\n }\r\n return fibo1(n-1)+fibo1(n-2);\r\n }",
"private static long tail(long mult, int n)\r\n {\r\n if (n<1)\r\n throw new IllegalArgumentException(\"Number is non-positive!\");\r\n else if (n==1)\r\n return (mult*n);\r\n else\r\n return tail(mult*n,n-1);\r\n }",
"public long fibonacci(int n){\n global_count++;\n if(n<=1){\n return n;\n }else {\n return fibonacci(n-1) + fibonacci(n-2);\n }\n }",
"public static void getStackOverFlowErrorNoRecursion() {\n LOGGER.info(String.format(MESSAGE, \"StackOverflowError\", \"instantiating object whose constructor instantiates the object\"));\n new StackOverFlowObject();\n }",
"protected void incrementDepthLimit() {\n currDepthLimit++;\n }",
"public int badFibonacci(int n){\n if (n <= 1){\n return (n);\n }\n return (badFibonacci(n-2) + badFibonacci(n-1));\n }",
"@Override\n\tpublic Integer call() {\n\t\tint count = ThreadLocalRandom.current().nextInt(1, 11);\n\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tSystem.out.println(\"Running...\" + i);\n\t\t}\n\n\t\treturn count;\n\t}",
"private void restartFunc() {\n\t\tdoMinus = false;\n\t\tdoDiv = false;\n\t\tdoPlus = false;\n\t\tdoMinus = false;\n\t\t\n\t}",
"private int pushDownRoot() {\n\t\treturn pushDown(0);// TODO: A one-line function that calls pushDown()\n\t}",
"private void doOneUpdateStep(){\r\n SparseFractalSubTree target = null; //stores the tree which will receive the update\r\n for (int i = 0; i < subTrees.length - 1; i++) { //top tree never receives an update (reason for -1)\r\n SparseFractalSubTree subTree = subTrees[i];\r\n if (!subTree.hasStopped()) { //not permanently or temporary finished\r\n if (target != null) { //are we the first tree who can receive an update\r\n if ((subTree.getTailHeight() < target.getTailHeight())) { //are we a better candidate then the last one?\r\n target = subTree;\r\n }\r\n } else { //we are the first not finished subtree, so we receive the update if no better candidate is found\r\n target = subTree;\r\n }\r\n\r\n }\r\n }\r\n assert (target != null);\r\n assert (check(target)); //check all the assumptions\r\n\r\n measureDynamicSpace(); //measure\r\n\r\n target.updateTreeHashLow(); //apply a update to the target\r\n }",
"public void inOrderTraverseIterative();",
"@Test\n public void testRecursion() throws Exception {\n//TODO: Test goes here... \n/* \ntry { \n Method method = Solution.getClass().getMethod(\"recursion\", ArrayList<Integer>.class, TreeNode.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 }",
"public static void metodo01 ( int x )\r\n {\r\n // repetir enquanto valor maior que zero\r\n while ( x > 0 )\r\n {\r\n // mostrar valor\r\n IO.println ( \"Valor = \" + x );\r\n // passar ao próximo\r\n x = x - 1;\r\n } // fim se\r\n }",
"static public Integer fib (Integer num){\n\t\tif (num == 0) {\n\t\t\treturn 0;\n\t\t} else if (num == 1) {\n\n\t\t\treturn 1;\n\n\t\t} else {\n\n\t\t return fib(num -1) + fib(num -2);\n\n }\n\t}",
"public static void main(String[] args) \r\n\t{\r\n\t\t\t\t\r\n\t\tFactorial F = new Factorial ();\r\n\t\tF.NonRecursion();\r\n\t\t\r\n\t\tF.fact( 5);\r\n\t\t\r\n\r\n\t}",
"public void printCombinationsRecurse(int value) {\r\n\t\tint stackPtr = 0;\r\n\t\tint[] stack = new int[LARGEST_NUMBER];\r\n\t\t// push each starting number from 1 to LARGEST_NUMBER\r\n\t\tfor (int a = 1; a <= LARGEST_NUMBER; a++) {\r\n\t\t\tstack[stackPtr] = a;\r\n\t\t\tprintRecursive(value, stack, stackPtr);\r\n\t\t}\r\n\t}",
"public void nextIteration() {t++;}",
"boolean hasRecursionDepth();",
"public void RecursiveExpansion() throws TreeTooBigException {\r\n int transIndex; //Index to count transitions\r\n int[] newMarkup; //markup used to create new node\r\n boolean aTransitionIsEnabled = false; //To check for deadlock\r\n //Attribute used for assessing whether a node has occured before\r\n boolean repeatedNode = false; \r\n \r\n boolean allOmegas = false;\r\n \r\n boolean[] enabledTransitions = \r\n tree.dataLayer.getTransitionEnabledStatusArray(markup);\r\n\r\n //For each transition\r\n for (int i = 0; i < enabledTransitions.length; i++) {\r\n if (enabledTransitions[i] == true) {\r\n //Set transArray of to true for this index\r\n transArray[i] = true;\r\n \r\n //System.out.println(\"\\n Transition \" + i + \" Enabled\" );\r\n aTransitionIsEnabled = true;\r\n \r\n //print (\"\\n Old Markup is :\", markup);//debug\r\n \r\n //Fire transition to produce new markup vector\r\n newMarkup = fire(i);\r\n \r\n //print (\"\\n New Markup is :\", newMarkup);//debug\r\n \r\n //Check for safeness. If any of places have > 1 token set variable.\r\n for (int j = 0; j < newMarkup.length; j++) {\r\n if (newMarkup[j] > 1 || newMarkup[j] == -1) {\r\n tree.moreThanOneToken = true;\r\n break;\r\n }\r\n } \r\n \r\n //Create a new node using the new markup vector and attach it to\r\n //the current node as a child.\r\n children[i] = \r\n new myNode(newMarkup, this, tree, depth + 1);\r\n \r\n /* Now need to (a) check if any omegas (represented by -1) need to \r\n * be inserted in the markup vector of the new node, and (b) if the \r\n * resulting markup vector has appeared anywhere else in the tree. \r\n * We must do (a) before (b) as we need to know if the new node \r\n * contains any omegas to be able to compare it with existing nodes. \r\n */ \r\n allOmegas = children[i].InsertOmegas();\r\n \r\n //check if the resulting markup vector has occured anywhere else in the tree\r\n repeatedNode = (tree.root).FindMarkup(children[i]);\r\n \r\n if (tree.nodeCount >= Pipe.MAX_NODES && !tree.tooBig) {\r\n tree.tooBig = true;\r\n throw new TreeTooBigException();\r\n }\r\n \r\n if (!repeatedNode && !allOmegas) {\r\n children[i].RecursiveExpansion();\r\n }\r\n }\r\n }\r\n \r\n if (!aTransitionIsEnabled) {\r\n System.err.println(\"No transition enabled\");\r\n if (!tree.noEnabledTransitions || tree.pathToDeadlock.length < depth-1) {\r\n RecordDeadlockPath();\r\n tree.noEnabledTransitions = true;\r\n } else {\r\n System.err.println(\"Deadlocked node found, but path is not shorter\"\r\n + \" than current path.\");\r\n }\r\n } else {\r\n //System.out.println(\"Transitions enabled.\");\r\n }\r\n }",
"public static int recursiveFibonacci(int n) {\n\t\t// calculate nth fibonacci number recursively\n\t\treturn n == 0 ? 0 : n == 1 ? 1 : recursiveFibonacci(n-1) + recursiveFibonacci(n-2);\n\t}",
"public static int factorial(int n){\n if(n <= 1){\n return 1;\n }\n else{\n return n*factorial(n-1);\n }\n }",
"private boolean helperDFS(Node current){\n\n if(expandedNode.size() == 999){\n //limit has been reached. jump out of recursion.\n expandedNode.add(current);\n System.out.println(\"No solution found.\");\n printExpanded(expandedNode);\n System.exit(0);\n return false;\n }\n\n boolean b = cycleCheck(current,expandedNode);\n\n if(!b){\n expandedNode.add(current);\n }else{\n return false;\n }\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal reached.\n //expandedNode.add(current);\n solutionPath(current);\n printExpanded(expandedNode);\n System.exit(0);\n }\n\n //Now make the children.\n\n if(!forbidden.contains(current.getDigit().getDigitString())){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 1){\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n }\n return false;\n }",
"public static void main(String[] args) {\n\t\t Scanner sc = new Scanner(System.in); \n\t\t \t\t \n\t\t System.out.println(\"Enter nth element: \");\n\t\t nth1 = sc.nextInt();\n\t\t sc.close();\n\t\t \n\t\t //non recursive\n\t\t for(i = 2;i < nth1; ++i)//loop starts from 2 because 0 and 1 are already printed \n\t\t {\tn3 = n1 + n2;\n\t\t n1=n2;\n\t\t n2=n3; \n\t\t } \n\t\t \n\t\t System.out.println(n3);\n\t\t \n\t\t System.out.println(\"--*--*--*--*\");\n\t\t \n\t\t System.out.println(fib(nth1));\n\t}",
"public double findFactorial(double num) \r\n\t{ \r\n\t if (num == 0) \r\n\t return 1; \r\n\t return num * findFactorial(num - 1); \r\n\t}",
"public int fibonacci(int num) {\r\n\r\n if (num == 0) {\r\n return 0;\r\n }\r\n else if(num == 1)\r\n {\r\n return 1;\r\n }\r\n \r\n return fibonacci(num-1) + fibonacci(num-2);\r\n }",
"public static int f(int x) {\n if (x == 0) {\n return 0;\n } else {\n return 2 * f(x - 1) + x * x;\n }\n }",
"@Test\r\n public void testSimpleDeadEnd() {\r\n int[][] path =\r\n {{1, 1, 0, 0, 0, 0},\r\n {0, 1, 1, 0, 0, 0},\r\n {0, 0, 1, 1, 0, 0},\r\n {0, 0, 0, 0, 0, 0},\r\n {0, 0, 0, 0, 0, 0}};\r\n assertEquals(6, RecursiveMethods.maxPathLength(path));\r\n }",
"public static long factorial(long number){\n if (number == 0){\n return 1;\n } else {\n// return result;\n return number * factorial(number - 1);\n }\n }"
] | [
"0.6597498",
"0.65748894",
"0.637071",
"0.6275312",
"0.62546474",
"0.5989268",
"0.59429896",
"0.5903885",
"0.58287853",
"0.581978",
"0.5812973",
"0.58046967",
"0.5803731",
"0.57857275",
"0.5763948",
"0.5763744",
"0.57520694",
"0.5686441",
"0.56745607",
"0.5652095",
"0.56195384",
"0.5615334",
"0.56066346",
"0.55918103",
"0.55765414",
"0.5575699",
"0.5549234",
"0.5538232",
"0.5516044",
"0.5476884",
"0.54640883",
"0.5461422",
"0.5448345",
"0.54293954",
"0.54084754",
"0.5399258",
"0.5383936",
"0.53796494",
"0.53723794",
"0.5363613",
"0.5327738",
"0.5325603",
"0.5316172",
"0.52962667",
"0.52913046",
"0.52781695",
"0.526719",
"0.526234",
"0.52407706",
"0.52383524",
"0.52204674",
"0.52064747",
"0.51876545",
"0.5178533",
"0.5177408",
"0.5166235",
"0.51584995",
"0.51570654",
"0.5149902",
"0.5149846",
"0.5140031",
"0.513637",
"0.5129789",
"0.5129168",
"0.51115143",
"0.5103271",
"0.509666",
"0.50714153",
"0.5065303",
"0.50629854",
"0.5062203",
"0.50601256",
"0.5041471",
"0.5036692",
"0.50361216",
"0.5034562",
"0.50315464",
"0.5028871",
"0.5017686",
"0.5017464",
"0.5015209",
"0.5013236",
"0.50129336",
"0.5006805",
"0.49971607",
"0.49912617",
"0.4987848",
"0.498186",
"0.4977131",
"0.49745125",
"0.49697673",
"0.49686214",
"0.49683753",
"0.49655998",
"0.4956664",
"0.49527267",
"0.49501136",
"0.49478978",
"0.49462342",
"0.49420658"
] | 0.6862377 | 0 |
Created by Meiji on 2017/5/9. | public interface IVideoApi {
/**
* 获取视频标题等信息
* http://toutiao.com/api/article/recent/?source=2&category=类型&as=A105177907376A5&cp=5797C7865AD54E1&count=20"
*/
@GET("api/article/recent/?source=2&as=A105177907376A5&cp=5797C7865AD54E1&count=30")
Observable<ResponseBody> getVideoArticle(
@Query("category") String category,
@Query("_") String time);
/**
* 获取视频信息
* Api 生成较复杂 详情查看 {@linkplain com.meiji.toutiao.module.video.content.VideoContentPresenter#doLoadVideoData(String)}
* http://ib.365yg.com/video/urls/v/1/toutiao/mp4/视频ID?r=17位随机数&s=加密结果
*/
@GET
Observable<VideoContentBean> getVideoContent(@Url String url);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\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\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 tires() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void poetries() {\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\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void memoria() {\n \n }",
"public void mo38117a() {\n }",
"public void mo4359a() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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 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}",
"private void init() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"private void strin() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void gored() {\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 public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void einkaufen() {\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}",
"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 protected void initialize() \n {\n \n }",
"@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 void mo6081a() {\n }",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {}",
"@Override\r\n\tpublic void anularFact() {\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 }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"private void init() {\n\n\n\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"public void mo55254a() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"Petunia() {\r\n\t\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"protected boolean func_70814_o() { return true; }"
] | [
"0.60901225",
"0.5893037",
"0.5886684",
"0.5886684",
"0.5874931",
"0.5860185",
"0.5826849",
"0.5770583",
"0.57614475",
"0.57376254",
"0.5730767",
"0.56984305",
"0.5696308",
"0.5679484",
"0.56670123",
"0.5662964",
"0.5634709",
"0.5628835",
"0.5621745",
"0.5591665",
"0.55794746",
"0.5571688",
"0.55632114",
"0.55631477",
"0.5540584",
"0.5538793",
"0.55299586",
"0.55215985",
"0.5515039",
"0.5515039",
"0.5515039",
"0.5515039",
"0.5515039",
"0.5514563",
"0.5512287",
"0.5512287",
"0.54967636",
"0.54903203",
"0.54768497",
"0.54705644",
"0.5466401",
"0.54615545",
"0.54499036",
"0.5442344",
"0.5438659",
"0.5425758",
"0.5425758",
"0.5425758",
"0.5416588",
"0.5416588",
"0.54096055",
"0.540366",
"0.540366",
"0.540366",
"0.54034746",
"0.54034746",
"0.54034746",
"0.54034746",
"0.54034746",
"0.54034746",
"0.54034746",
"0.5397889",
"0.5394325",
"0.5394325",
"0.5394325",
"0.5381046",
"0.5374679",
"0.535457",
"0.5349267",
"0.534335",
"0.53429526",
"0.53429526",
"0.53429526",
"0.53429526",
"0.53429526",
"0.53429526",
"0.5341622",
"0.53415143",
"0.5338003",
"0.5337539",
"0.5334814",
"0.53312343",
"0.53146166",
"0.53146166",
"0.53131855",
"0.53123367",
"0.5307128",
"0.5296724",
"0.5295958",
"0.5295098",
"0.5291844",
"0.5288223",
"0.52877116",
"0.5278672",
"0.52774245",
"0.5274249",
"0.5258633",
"0.5255843",
"0.52483124",
"0.52418905",
"0.52403164"
] | 0.0 | -1 |
Constructs an instance of this object. | public Tag(String key, String value) {
setKey(key);
setValue(value);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Instantiation(){}",
"protected abstract void construct();",
"Constructor() {\r\n\t\t \r\n\t }",
"public Instance() {\n }",
"public Constructor(){\n\t\t\n\t}",
"Reproducible newInstance();",
"Instance createInstance();",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {\n\t\t}",
"public Factory() {\n\t\tsuper();\n\t}",
"public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }",
"public static Construtor construtor() {\n return new Construtor();\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"private Composite() {\n }",
"private Builder()\n {\n }",
"private Builder() {}",
"private Builder() {\n\t\t}",
"public GantBuilder ( ) { }",
"@Override\n public void construct() throws IOException {\n \n }",
"public CMObject newInstance();",
"public Builder() { }",
"public PSRelation()\n {\n }",
"public Vector() {\n construct();\n }",
"private MazeBuilder() {\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"private Construct(Builder builder) {\n super(builder);\n }",
"public Builder() {\n }",
"public Orbiter() {\n }",
"public PjxParser()\r\n {\r\n LOG.info(this + \" instantiated\");\r\n }",
"public Magazzino() {\r\n }",
"public XCanopusFactoryImpl()\r\n {\r\n super();\r\n }",
"private Sequence() {\n this(\"<Sequence>\", null, null);\n }",
"public ObjectFactory() {\n\t}",
"public Building() {\n\t}",
"@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}",
"public CyanSus() {\n\n }",
"public Odontologo() {\n }",
"Composite() {\n\n\t}",
"public SgaexpedbultoImpl()\n {\n }",
"private UI()\n {\n this(null, null);\n }",
"public Person build(){\n return new Person(this);\n }",
"public Curso() {\r\n }",
"public Chick() {\n\t}",
"public Taginstance() {\n\t\tthis(\"taginstance\", null);\n\t}",
"public BuiltBy() {\n }",
"public ObjectFactory() {\r\n\t}",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public Trening() {\n }",
"public Property() {\n this(0, 0, 0, 0);\n }",
"public Implementor(){}",
"public Aanbieder() {\r\n\t\t}",
"@Override\n protected T createInstance() throws Exception {\n return this.isSingleton() ? this.builder().build() : XMLObjectSupport.cloneXMLObject(this.builder().build());\n }",
"public Builder() {\n this(Graphs.<N, E>createUndirected());\n }",
"public Livro() {\n\n\t}",
"public Subject build() {\n return new Subject(this);\n }",
"public Gasto() {\r\n\t}",
"public ScriptBuilder() {\n }",
"public Builder(){\n }",
"public Libro() {\r\n }",
"public AFMV() {\r\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"public LabelFactory() {\n this(0);\n }",
"public Ov_Chipkaart() {\n\t\t\n\t}",
"public Mitarbeit() {\r\n }",
"public Rectangle() {\n this(50, 40);\n }",
"private SingleObject()\r\n {\r\n }",
"public RngObject() {\n\t\t\n\t}",
"public Student build() { \n\t return new Student(this); \n\t }",
"public Component() {\n\t\tlocation = new Point(0, 0);\n\t\tsize = new Dimension(100, 80);\n\t\tproperties = new LinkedHashMap<>();\n\t\tsubJobContainer= new LinkedHashMap<>();\n\t\tleftPortCount = 0;\n\t\trightPortCount = 0;\n\t\tbottomPortCount = 0;\n\t\tinputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\n\t\tinputLinks = new ArrayList<Link>();\n\t\toutputLinksHash = new Hashtable<String, ArrayList<Link>>();\n\t\toutputLinks = new ArrayList<Link>();\n\t\tinputportTerminals = new ArrayList<String>();\n\t\toutputPortTerminals = new ArrayList<String>();\n\t\twatcherTerminals = new HashMap();\n\t\tnewInstance = true;\n\t\tvalidityStatus = ValidityStatus.WARN.name();\n\t\tcomponentName = DynamicClassProcessor.INSTANCE.getClazzName(this\n\t\t\t\t.getClass());\n\n\t\tcomponentLabel = new ComponentLabel(componentName);\n\t\tcomponentLabelMargin = 16;\n\n\t\tprefix = XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\t\n\t\tdefaultPrefix=XMLConfigUtil.INSTANCE.getComponent(componentName)\n\t\t\t\t.getDefaultNamePrefix();\n\t\tinitPortSettings();\n\t\ttoolTipErrorMessages = new LinkedHashMap<>();\n\t\tstatus = ComponentExecutionStatus.BLANK;\n\t}",
"public Object construct() {\n try {\n Object res;\n\n res = mTarget.invokeTimeout(mMethodName, mParams, mTimeout);\n return res;\n }\n catch (TokenFailure ex) {\n return ex;\n }\n catch (RPCException ex) {\n return ex;\n }\n catch (XMPPException ex) {\n return ex;\n }\n }",
"public Builder()\n {\n this(\"\", \"\");\n }",
"public Phl() {\n }",
"public Self__1() {\n }",
"public ExamMB() {\n }",
"public TV() {\r\n\t}",
"public Parser()\n {\n //nothing to do\n }",
"public Core() {\r\n inputs = new ArrayList<>();\r\n outputs = new ArrayList<>();\r\n converter = new Converter();\r\n\r\n }",
"public CMN() {\n\t}",
"public void create(){}",
"public Bus() {\n\t}",
"public Cohete() {\n\n\t}",
"public Boop() {\n\t\tsuper();\n\t}",
"private TMCourse() {\n\t}",
"public ArcadeDrivetrain build() {\n verify();\n return new ArcadeDrivetrain(this);\n }",
"protected IPCGCallDetailCreator()\r\n {\r\n // empty\r\n }",
"public Card() { this(12, 3); }",
"public Clade() {}",
"private IndexBitmapObject() {\n\t}",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }",
"public ObjectFactory() {\r\n }"
] | [
"0.7097721",
"0.6708468",
"0.66993845",
"0.6611118",
"0.6570859",
"0.656304",
"0.6414013",
"0.63846934",
"0.6383381",
"0.6383381",
"0.6383381",
"0.63337547",
"0.63293505",
"0.6329333",
"0.6323472",
"0.6288401",
"0.6288401",
"0.62726927",
"0.62726927",
"0.62425464",
"0.62425464",
"0.62361753",
"0.6223707",
"0.62161374",
"0.6193336",
"0.6175841",
"0.6170463",
"0.6162937",
"0.6162543",
"0.6161166",
"0.6158328",
"0.61485994",
"0.6122484",
"0.61203474",
"0.61202466",
"0.6119198",
"0.611501",
"0.6107195",
"0.6079636",
"0.60736555",
"0.60736525",
"0.6066348",
"0.6056004",
"0.6053026",
"0.60491276",
"0.6048738",
"0.6047993",
"0.6044048",
"0.60423625",
"0.6042156",
"0.60399485",
"0.6038113",
"0.6032952",
"0.6031654",
"0.60298353",
"0.60298353",
"0.6026603",
"0.6025151",
"0.60040563",
"0.59972864",
"0.59853095",
"0.59796405",
"0.5977075",
"0.5974688",
"0.59738314",
"0.5968111",
"0.59643507",
"0.59640753",
"0.59622526",
"0.5958271",
"0.5953315",
"0.59474766",
"0.5945078",
"0.59448487",
"0.593624",
"0.5935179",
"0.59180105",
"0.59175533",
"0.59161735",
"0.5909217",
"0.5897844",
"0.5896125",
"0.58960146",
"0.58886963",
"0.5885466",
"0.5881104",
"0.58787805",
"0.5877291",
"0.58706445",
"0.5866029",
"0.5863143",
"0.58616686",
"0.58597773",
"0.585481",
"0.5851593",
"0.5850273",
"0.5848406",
"0.5848119",
"0.5848119",
"0.5848119",
"0.5848119"
] | 0.0 | -1 |
Set the tag key. | public void setKey(String key) throws ClientException {
Pattern pattern = Pattern.compile(KEY_REGEX);
Matcher matcher = pattern.matcher(key);
if (matcher.matches()) {
this.key = key;
} else {
throw new ClientException("your key is invalid", OSSErrorCode.INVALID_ARGUMENT, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTagKey(String tagKey) {\n this.tagKey = tagKey;\n }",
"public void setKey(String key) {\n if (element != null) {\n element.setKey(key);\n }\n }",
"public void setKey(final String key);",
"public void setKey(final String key);",
"void setKey(java.lang.String key);",
"public void setKey (K k) {\n key = k;\n }",
"void setKey(final String key);",
"void setTag(java.lang.String tag);",
"void setKey(String key);",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\r\n this.key = key;\r\n }",
"private void setKey(String key) {\n this.key = key;\n }",
"void setKey(K key);",
"protected void setKey(String key) {\r\n this.key = key;\r\n }",
"private void setKey(String key){\n\t\tthis.key=key;\n\t}",
"public void setTag(String tag);",
"public void setKey(String key) {\r\n\t\tthis.key = key;\r\n\t}",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n\n this.key = key;\n }",
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"public void setKey(Key key) {\n this.key = key;\n }",
"public void setKey(String key)\r\n {\r\n m_key = key;\r\n }",
"public final void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n\t\tthis.key = key;\n\t}",
"public void setKey(String key) {\n\t\tthis.key = key;\n\t}",
"public void setKey(String key) {\n\t\tthis.key = key;\n\t}",
"public void setKey(java.lang.String key) {\n\t\tthis.key = key;\n\t}",
"public void setKey(final String key) {\n this.key = key;\n }",
"public void setKey(int key);",
"public void setKey(int key);",
"public void setTagProperty(String tagProperty);",
"public String getTagKey() {\n return tagKey;\n }",
"public void setKey( Long key ) {\n this.key = key ;\n }",
"public void setAttributeKey(java.lang.String param) {\r\n localAttributeKeyTracker = true;\r\n\r\n this.localAttributeKey = param;\r\n\r\n\r\n }",
"public void setKey(int key){\r\n this.key = key; \r\n }",
"public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}",
"public void setKey(String nkey) {\r\n setAttribute(\"id\", nkey);\r\n }",
"public void setTag(String tagName, Object value);",
"public void setKey(String aKey) {\n\t\tthis.key = aKey;\n\t}",
"public void setAttribute(Object key, Object value);",
"public void _setKey(String e)\n {\n _key = e;\n }",
"public void setKey(K newKey) {\r\n\t\tkey = newKey;\r\n\t}",
"void xsetKey(org.apache.xmlbeans.XmlNMTOKEN key);",
"void setObjectKey(String objectKey);",
"public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }",
"void setKey(int key);",
"public void setTag(int tag) {\n this.tag = tag;\n }",
"public void setTag(Tag tag) {\n\t\tProgramTags newTag = program.getTagIfPresent(tag); // throws if no such tag in program\n\t\tsetTag(newTag);\n\t}",
"public void setKey(com.coda.www.efinance.schemas.elementmaster.ElmFullKey key) {\r\n this.key = key;\r\n }",
"public Tag(String key, String value) {\n setKey(key);\n setValue(value);\n }",
"public void xsetIdTag(ocpp.IdToken idTag)\n {\n synchronized (monitor())\n {\n check_orphaned();\n ocpp.IdToken target = null;\n target = (ocpp.IdToken)get_store().find_element_user(IDTAG$0, 0);\n if (target == null)\n {\n target = (ocpp.IdToken)get_store().add_element_user(IDTAG$0);\n }\n target.set(idTag);\n }\n }",
"public void setAttribute(String key, Object value)\n {\n final IAttributeEditor editor = editors.get(key);\n if (editor != null)\n {\n editor.setValue(value);\n }\n }",
"public void setMyTag(int theTag)\n\t{\n\t\tmyTag = theTag;\n\t}",
"@Test\n public void testSetKey() {\n Integer key = 12;\n AVLNode<Integer> instance = new AVLNode<> ();\n instance.setKey( key );\n assertEquals( instance.getKey(), key );\n }",
"@Override\n public void setTag(int t) {\n this.tag = t;\n\n }",
"public void setKey(K newKey) {\n this.key = newKey;\n }",
"public void setTag( String tag )\n {\n this.tag = tag;\n }",
"public abstract void setRefKey(String paramString);",
"void setAuthInfoKey(Object key);",
"public void set(String key, Object value) {\r\n\t\tthis.context.setValue(key, value);\r\n\t}",
"public Builder putTags(\n java.lang.String key,\n java.lang.String value) {\n if (key == null) { throw new java.lang.NullPointerException(); }\n if (value == null) { throw new java.lang.NullPointerException(); }\n internalGetMutableTags().getMutableMap()\n .put(key, value);\n return this;\n }",
"public void setKeyId(String keyId) {\n setProperty(KEY_ID, keyId);\n }",
"public void setToTag(String tag) throws ParseException,NullPointerException;",
"public void setItskey(String newItskey) {\n keyTextField.setText(newItskey);\n itskey = newItskey;\n }",
"private void setKey() {\n\t\t \n\t}",
"public K setKey(K key);",
"public void setKey(TableKey key) {\n\tthis.key = key;\n }",
"void xsetTag(org.apache.xmlbeans.XmlString tag);",
"public void setTag(String tag) {\r\n this.tag = tag;\r\n }",
"public static void setTag(Tag tag, String newValue){\n makeInstance();\n //set the new tag value\n settingsFile.setTag(tag, newValue);\n //notify all of the listeners of the modified tag that its value changed\n notifyListenersOfTag(tag);\n }",
"public void setKey(MessageKey key) {\n\tthis.key = key;\n }",
"public void setKey(Boolean key) {\n this.key = key;\n }",
"public void put(String key) {\n\t root = put(root, key, 0);\n\t }",
"final <T> void set(String key, T value) {\n set(key, value, false);\n }",
"public void setKey(byte[] argKey) {\n this.key = argKey;\n }",
"public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }",
"public void setAssetKey(AssetKey key) {\n file.setAssetKeyData(key);\n }",
"public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}",
"public abstract void set(String key, T data);",
"@Override\n public void setKey(byte[] key) {\n }",
"public static void setTag(String string) {\n\t\ttags.put(last[0], string);\n\t}",
"public void setKey(char key){ this.key = key;}",
"public CacheTagImpl(String key) {\n this(key, ANY);\n }",
"public void setTag(String tag) {\n this.tag = tag;\n }",
"public void setTag(String tag) {\n this.tag = tag;\n }",
"public void setKey(int position,int key) {\r\n\t\tthis.treeKey[position]=key;\r\n\t}",
"void set(K key, V value);",
"public void setKeyField(KeyField k) {\n\tkeyField = k;\n }",
"@JsonSetter(\"tag\")\r\n public void setTag(String tag) {\r\n this.tag = tag;\r\n }",
"public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }",
"public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }",
"public static void setUserKey(Key newKey) {\n\t\tlocalKey.set(newKey);\n\t}",
"public void set(String key, Object value) {\n set(key, value, 0);\n }",
"public Builder setTag(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n tag_ = value;\n onChanged();\n return this;\n }",
"public void setKeyName(String newName){\n\n //assigns the value newName to the keyName field\n this.keyName = newName;\n }",
"public void setFromTag(String tag) throws ParseException,NullPointerException;",
"public void setTag(ProgramTags tag) {\n\t\tthis.tag = program.getTagIfPresent(tag.getTag());\n\t}",
"@Override\n\tpublic ManagedFunctionObjectTypeBuilder<M> setKey(M key) {\n\t\tthis.key = key;\n\t\tthis.index = key.ordinal();\n\t\treturn this;\n\t}",
"public Tag(String tag) {\n\t\tthis.tag = tag;\n\t}"
] | [
"0.7363941",
"0.6778644",
"0.6772145",
"0.6772145",
"0.67631364",
"0.6754455",
"0.67404366",
"0.67361474",
"0.67164636",
"0.6710416",
"0.6707471",
"0.66893315",
"0.666976",
"0.6664032",
"0.6637805",
"0.6631986",
"0.66311395",
"0.6620801",
"0.6620801",
"0.6620801",
"0.6620033",
"0.66043305",
"0.65897834",
"0.6579994",
"0.6569202",
"0.6559395",
"0.6559395",
"0.65360165",
"0.64858276",
"0.6450091",
"0.64275575",
"0.64275575",
"0.6405579",
"0.6359468",
"0.63586974",
"0.6350434",
"0.6348603",
"0.63242894",
"0.63000876",
"0.62520343",
"0.622928",
"0.62267107",
"0.621976",
"0.61815065",
"0.6164724",
"0.61585975",
"0.61135334",
"0.6112901",
"0.6105528",
"0.6085326",
"0.60690856",
"0.6067996",
"0.6066969",
"0.60534984",
"0.6047888",
"0.60395443",
"0.60337394",
"0.6032809",
"0.601026",
"0.600271",
"0.59769017",
"0.59713864",
"0.59712476",
"0.59691685",
"0.5943118",
"0.5940961",
"0.59390575",
"0.5931439",
"0.59296757",
"0.5904252",
"0.5895523",
"0.58946365",
"0.58814996",
"0.5877972",
"0.5860773",
"0.5844224",
"0.5839917",
"0.5837375",
"0.58349615",
"0.5824641",
"0.58180207",
"0.580907",
"0.5808332",
"0.5791907",
"0.5787496",
"0.5786875",
"0.5786875",
"0.57755816",
"0.5769484",
"0.5757193",
"0.5754426",
"0.57346845",
"0.57346845",
"0.57261825",
"0.5718687",
"0.5716841",
"0.5697929",
"0.56950927",
"0.56848776",
"0.56832665",
"0.5680413"
] | 0.0 | -1 |
Set the tag value. | public void setValue(String value) throws ClientException {
Pattern pattern = Pattern.compile(VALUE_REGEX);
Matcher matcher = pattern.matcher(value);
if (matcher.matches()) {
this.value = value;
} else {
throw new ClientException("your value is invalid", OSSErrorCode.INVALID_ARGUMENT, null);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTag(String tagName, Object value);",
"public void setTag(Object tag)\n {\n fTag = tag;\n }",
"void setTag(java.lang.String tag);",
"public void setToTag(String tag) throws ParseException,NullPointerException;",
"public void setTag(String tag);",
"public static void setTag(Tag tag, String newValue){\n makeInstance();\n //set the new tag value\n settingsFile.setTag(tag, newValue);\n //notify all of the listeners of the modified tag that its value changed\n notifyListenersOfTag(tag);\n }",
"public void setFromTag(String tag) throws ParseException,NullPointerException;",
"public void setTagValue(String tagValue) {\n this.tagValue = tagValue;\n }",
"public Builder setTagValue(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n tagValue_ = value;\n onChanged();\n return this;\n }",
"public Builder setTag(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n tag_ = value;\n onChanged();\n return this;\n }",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(T value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(Object value) { this.value = value; }",
"public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }",
"public void setValue(T value) {\n this.value = value;\n }",
"void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}",
"private void setHasTag(int value) {\n \n hasTag_ = value;\n }",
"public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}",
"public void setTag(Tag tag) {\n\t\tProgramTags newTag = program.getTagIfPresent(tag); // throws if no such tag in program\n\t\tsetTag(newTag);\n\t}",
"@Override\n public void setTag(int t) {\n this.tag = t;\n\n }",
"public void setValue(Object value) {\n this.value = value;\n }",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public void setValue(String value);",
"public static void setProperty(String tag, String val) {\n\n prop.setProperty(tag, val);\n }",
"public void setValue(final Object value) { _value = value; }",
"public void setTagProperty(String tagProperty);",
"protected void setValue(T value) {\r\n this.value = value;\r\n }",
"public void setValue( String value )\n {\n this.value = value;\n }",
"protected synchronized void setStringValue(String tag, String value) {\n if (actualProperties != null) {\n actualProperties.put(tag, value);\n }\n }",
"public void setValue(Object value);",
"public void setValue(String value) {\n\t\tthis.text = value;\n\t}",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"public void setValue(String value) {\r\n this.value = value;\r\n }",
"protected synchronized void setIntegerValue(String tag, int value) {\n if (actualProperties != null) {\n actualProperties.put(tag, Integer.toString(value));\n }\n }",
"public void setMyTag(int theTag)\n\t{\n\t\tmyTag = theTag;\n\t}",
"public void setValue (String Value);",
"@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }",
"public void setValue(final String value) {\n super.setAttributeValue(value);\n }",
"public void setValue(Object value)\r\n {\r\n m_value = value;\r\n }",
"public void setValue(String value)\n {\n this.value = value;\n }",
"public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}",
"public void setValue(String value) {\r\n\t\tthis.value = value;\r\n\t}",
"@Override\n public void setValue(Object val)\n {\n value = val;\n }",
"public void setTag(int tag) {\n this.tag = tag;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(String value) {\n this.value = value;\n }",
"public void setValue(Value value) {\n this.value = value;\n }",
"@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}",
"public void setCustomTag(String pTagName, String pTagValue){\n\t\tassert pTagName != null && pTagValue != null;\n\t\taCustomTags.put(pTagName, pTagValue);\n\t}",
"public void setValue(String value) {\n set (value);\n }",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(String value) {\n\t\tthis.value = value;\n\t}",
"public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}",
"public void setValue(T v){\n \telement = v;\n }",
"public void setTag( String tag )\n {\n this.tag = tag;\n }",
"public void setValue(final V value) {\n this.value = value;\n }",
"void setValue(String value);",
"void setValue(String value);",
"public void setValue(Integer value) {\n _value = value ;\n }",
"public void setValue(Object val);",
"public void setValue(String value) {\n\t this.valueS = value;\n\t }",
"public void setValue(Object value) {\n setValue(value.toString());\n }",
"void setValue(T value);",
"void setValue(T value);",
"public void setValue(T element) {\n\t\t\n\t}",
"public void setValue(String text) {\n\t\tthis.value = text;\n\t}",
"@Override\r\n\tpublic void setValue(String x) {\r\n\t\tthis.elementWrapper.setAttribute(this.attribute, x);\r\n\t}",
"void setValue(V value);",
"public void setValue(S s) { value = s; }",
"@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}",
"public void setTag(ProgramTags tag) {\n\t\tthis.tag = program.getTagIfPresent(tag.getTag());\n\t}",
"void setValue(Object value);",
"public void setData(T val) {\r\n\t\tthis.val = val;\r\n\t}",
"public void setTag(String tag) {\r\n this.tag = tag;\r\n }",
"public void setValue(String value) {\n\t\tmValue = value;\n\t}",
"void setElementValue(SetElementValue cmd);",
"protected abstract void setValue(V value);",
"void setValue(java.lang.String value);",
"@Override\n\t\tpublic void setAttribute(String name, Object value) {\n\t\t\t\n\t\t}",
"public V setValue(V value);",
"void setValue(final String value);",
"public void setValue (V v) {\n value = v;\n }",
"public void set(final V value) {\n\t\tthis.value = value;\n\t}",
"public void setAttribute_value(String string) {\n this.attribute_value = string;\n }",
"@Override\n\t\tprotected void setAttributeValue(String value) {\n\t\t}",
"void setValue(T value) throws YangException;",
"public void setValue(final String value)\n {\n this.value = value;\n }",
"public abstract void setValue(ELContext context, Object value);",
"public String getTagVal() {\n return tagVal;\n }",
"public void setValue(Object o){\n \tthis.value = o;\n }"
] | [
"0.77587694",
"0.73228353",
"0.69824994",
"0.6930416",
"0.69202733",
"0.68387777",
"0.67361665",
"0.67327994",
"0.67303187",
"0.6727716",
"0.65920866",
"0.65920866",
"0.65885544",
"0.65859467",
"0.65620923",
"0.65308845",
"0.65302527",
"0.6524378",
"0.6519963",
"0.65125227",
"0.65033823",
"0.64716125",
"0.64716125",
"0.64716125",
"0.64716125",
"0.6465927",
"0.646138",
"0.64394414",
"0.6431185",
"0.6425132",
"0.64237285",
"0.63768476",
"0.6376077",
"0.6374433",
"0.6374433",
"0.6374433",
"0.6374433",
"0.6374433",
"0.63593423",
"0.63573956",
"0.6357325",
"0.6356075",
"0.63468176",
"0.6340998",
"0.6328586",
"0.6315407",
"0.6295438",
"0.629096",
"0.62829334",
"0.6277449",
"0.6277449",
"0.6277449",
"0.6277449",
"0.6277449",
"0.62692666",
"0.6260854",
"0.6253785",
"0.6250919",
"0.6250776",
"0.62495077",
"0.62495077",
"0.62495077",
"0.62495077",
"0.6236803",
"0.62359923",
"0.623512",
"0.6225865",
"0.6222224",
"0.6222224",
"0.62062997",
"0.6196677",
"0.61893797",
"0.6172733",
"0.61645555",
"0.61645555",
"0.61529255",
"0.6144991",
"0.61417973",
"0.6139648",
"0.6133819",
"0.6117022",
"0.6099624",
"0.60992855",
"0.6087915",
"0.60856587",
"0.6072262",
"0.60663235",
"0.60537845",
"0.60493386",
"0.6046355",
"0.60392356",
"0.60382193",
"0.60308206",
"0.6027134",
"0.60264254",
"0.60221446",
"0.6012519",
"0.6006394",
"0.59937686",
"0.5981028",
"0.5975619"
] | 0.0 | -1 |
Returns the size of this serialized object in bytes | public int getMarshalledSize()
{
int marshalSize = 0;
marshalSize += recordType.getMarshalledSize();
marshalSize += changeIndicator.getMarshalledSize();
marshalSize += entityType.getMarshalledSize();
marshalSize += 2; // padding
marshalSize += 4; // padding1
return marshalSize;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int serializedSizeInBytes() {\n\t\treturn this.sizeInBytes() + 3 * 4;\n\t}",
"public int getSize() {\n return this.serialize().limit();\n }",
"public int size() {\n\t\tif (baos == null || baos.toByteArray() == null) return 0;\n\t\telse return baos.toByteArray().length;\n\t}",
"public java.lang.Long getObjectSize() {\n return object_size;\n }",
"public java.lang.Long getObjectSize() {\n return object_size;\n }",
"public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}",
"public int size() {\n return bytes.length;\n }",
"public Long sizeInBytes() {\n return this.sizeInBytes;\n }",
"public int getLengthInBytes()\n {\n return lengthInBytes;\n }",
"@Override\n\tpublic long size() {\n\t\t\n\t\treturn mySize;\n\t}",
"public long getSize() {\n\t\treturn size;\n\t}",
"public long getSize() {\r\n\t\treturn size;\r\n\t}",
"public Long sizeInKB() {\n return this.sizeInKB;\n }",
"@NotPersistent\n public String getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public long getSize() {\n return size;\n }",
"public short getObjectSize() { return objectSize; }",
"public long size() {\n\t\treturn size;\n\t}",
"@MavlinkFieldInfo(\n position = 2,\n unitSize = 4,\n description = \"total data size (set on ACK only).\"\n )\n public final long size() {\n return this.size;\n }",
"public int getSizeBytes() {\n if (getDataType() == DataType.SEQUENCE)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRING)\n return getDataType().getSize();\n else if (getDataType() == DataType.STRUCTURE)\n return size * members.getStructureSize();\n // else if (this.isVariableLength())\n // return 0; // do not know\n else\n return size * getDataType().getSize();\n }",
"public long getSize() {\r\n return size;\r\n }",
"public long getSize() {\n return mSize;\n }",
"public long getSize() {\n return size;\n }",
"public int numberOfBytes() {\n return this.data.size();\n }",
"public final long getSize() { return size; }",
"public int sizeInBytes() {\n\t\treturn this.actualsizeinwords * 8;\n\t}",
"public long picoSize() throws IOException {\n return _backing.length();\n }",
"public String getSize() {\n return size;\n }",
"public String getSize() {\n return size;\n }",
"public long getSize()\n {\n return getLong(\"Size\");\n }",
"public int getSize() {\n\t\treturn _size;\n\t}",
"public String getSize() {\r\n return size;\r\n }",
"public long getSize() {\n\t\treturn this.payloadSize; // UTF-16 => 2 bytes per character\n\t}",
"public int get_size()\r\n\t{\r\n\t\treturn this.size;\r\n\t}",
"public long getSize() {\n return size.get();\n }",
"public int getSize() {\r\n return _size;\r\n }",
"@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}",
"public int getNumberOfBytes() {\n\treturn this.type.getNumberOfBytes();\n }",
"public long getSize() {\n // a char is two bytes\n int size = (key.length() * 2) + 4;\n\n if (id != null) {\n size += ((id.length() * 2) + 4);\n }\n\n if (content != null) {\n if (content.getClass() == String.class) {\n size += ((content.toString().length() * 2) + 4);\n } else if (content instanceof CacheContent) {\n size += ((CacheContent) content).getSize();\n } else {\n return -1;\n }\n\n //add created, lastUpdate, and wasFlushed field sizes (1, 8, and 8)\n return size + 17;\n } else {\n return -1;\n }\n }",
"public int getByteLength() {\n return byteLength;\n }",
"public synchronized long size() {\n\t\treturn size;\n\t}",
"public long getByteCount() {\n return byteCount;\n }",
"public final int getSize() {\n return size;\n }",
"public Integer getSize() {\n return size;\n }",
"public int getSize() {\n\t\treturn m_size;\n\t}",
"public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}",
"public static byte getSize() {\n return SIZE;\n }",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getSize() {\n\t\treturn size;\n\t}",
"public int getLength() {\n return mySize.getLength();\n }",
"public int size() {\n return 4 + value.length + BufferUtil.paddingLength(value.length, 4);\n }",
"private static int objectSize(Serializable object)\n\t throws NullPointerException {\n\tif (null == object)\n\t throw new NullPointerException(\"object cannot be null\");\n\ttry {\n\t ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n\t (new ObjectOutputStream(bytes)).writeObject(object);\n\t return bytes.size();\n\t} catch (Exception eX) {\n\t return 0;\n\t}\n }",
"int getByteCount() {\n\t\treturn byteCount;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n\t\treturn this.size;\n\t}",
"public int getSize() {\n return this.size;\n }",
"public int getSize() {\n\t\t\treturn this.size;\n\t\t}",
"public int getSize() {\r\n\t\treturn size;\r\n\t}",
"public synchronized int getSize() {\n\t\treturn this.size;\n\t}",
"public long getSize();",
"public int getSize() {\n return size;\n }",
"public int getSize() {\n return size;\n }",
"public int getSize() {\n return size;\n }",
"public int getSize() {\n return size;\n }",
"public int getSize() {\n return size;\n }",
"public int getSize() {\n return size;\n }",
"public int getSize() {\n return size;\n }",
"public int getSize() {\n return size;\n }",
"public int getSize()\n\t{\n\t\treturn size;\n\t}",
"public int getSize()\n\t{\n\t\treturn size;\n\t}",
"@java.lang.Override\n public int getSize() {\n return size_;\n }",
"@java.lang.Override\n public int getSize() {\n return size_;\n }",
"public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }",
"public int getSize(){\n\t\treturn size;\n\t}",
"public int getSize(){\n\t\treturn size;\n\t}",
"public int getSize(){\n\t\treturn size;\n\t}",
"public int getSize(){\n\t\treturn size;\n\t}",
"public int getSize()\n\t{\n\t\treturn this.size;\n\t}",
"public int getSize() {\r\n\t\treturn this.size;\r\n\t}",
"public int getSize() {\r\n\t\treturn this.size;\r\n\t}",
"public int getSize(){\n\t\treturn this.size;\n\t}",
"public int getSize()\n {\n return this.size;\n }",
"public int getSize() {\r\n \treturn size;\r\n }",
"public int getSize() {\n return size;\n }"
] | [
"0.8364493",
"0.76924604",
"0.76735914",
"0.7638173",
"0.76136434",
"0.75876606",
"0.755861",
"0.74876976",
"0.73612",
"0.7336066",
"0.7331558",
"0.72940975",
"0.7291328",
"0.72901756",
"0.7286639",
"0.7286639",
"0.7286639",
"0.7286639",
"0.72861713",
"0.72647226",
"0.7260993",
"0.7258845",
"0.724883",
"0.72415954",
"0.7226367",
"0.7222591",
"0.72004586",
"0.71985024",
"0.71776634",
"0.7168015",
"0.7168015",
"0.7154829",
"0.7153474",
"0.7129174",
"0.7112687",
"0.71120006",
"0.71015984",
"0.70864534",
"0.70854926",
"0.70854884",
"0.7077814",
"0.7048886",
"0.704043",
"0.7029617",
"0.70233494",
"0.70212066",
"0.70046115",
"0.6994535",
"0.69732934",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.6969922",
"0.69582343",
"0.6958109",
"0.695595",
"0.69527274",
"0.6942409",
"0.6942409",
"0.6942409",
"0.6942409",
"0.6942409",
"0.6918691",
"0.69172907",
"0.6912035",
"0.6909534",
"0.690724",
"0.690712",
"0.690712",
"0.690712",
"0.690712",
"0.690712",
"0.690712",
"0.690712",
"0.690712",
"0.6905203",
"0.6905203",
"0.69020885",
"0.69020885",
"0.6901614",
"0.69006425",
"0.69006425",
"0.69006425",
"0.69006425",
"0.6899929",
"0.68936694",
"0.68936694",
"0.68907535",
"0.6886191",
"0.6884399",
"0.68808633"
] | 0.72092956 | 26 |
Serializes an object to a DataOutputStream. | public void marshal(DataOutputStream dos) throws Exception
{
try
{
recordType.marshal(dos);
changeIndicator.marshal(dos);
entityType.marshal(dos);
dos.writeShort( (short)padding);
dos.writeInt( (int)padding1);
}
catch(Exception e)
{
System.err.println(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeObject(OutputStream stream, Object object, int format) throws IOException;",
"void serialize(Object obj, OutputStream stream) throws IOException;",
"public abstract void serialize(DataOutputStream dataOutputStream) throws IOException;",
"public abstract void serialize(OutputStream stream, T object) throws IOException;",
"public abstract void writeToStream(DataOutputStream dataOutputStream);",
"private void writeObject(ObjectOutputStream _stream)\n/* 428: */ throws IOException\n/* 429: */ {\n/* 430:503 */ _stream.defaultWriteObject();\n/* 431:504 */ writeCustomData(_stream);\n/* 432: */ }",
"public void writeObject(Object obj) throws IOException;",
"private void writeObject(\n \t\t ObjectOutputStream aOutputStream\n\t\t ) throws IOException {\n\t\t //perform the default serialization for all non-transient, non-static fields\n \t\t aOutputStream.defaultWriteObject();\n \t}",
"private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n //perform the default serialization for all non-transient, non-static fields\n aOutputStream.defaultWriteObject();\n }",
"void writeObject(OutputSerializer out) throws java.io.IOException;",
"public void writeObject( Container.ContainerOutputStream cos ) throws SerializationException;",
"public abstract <T> SerializationStream writeObject(T t);",
"private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n aOutputStream.defaultWriteObject();\n }",
"OutputStream serialize(OutputStream toSerialize);",
"public static <T> void encodeData(T object, OutputStream stream) throws Exception {\n\t\t//Patch for to code the data on the net with the length header:\n\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n\t\tIEncoder<T> encoder = CoderFactory.getInstance().newEncoder(\"MDER\");\n\t\tencoder.encode(object, os);\n\t\t\n\t\t//Write the data\n\t\t/*\n\t\tIEncoder<INT_U16> coder = CoderFactory.getInstance().newEncoder(\"MDER\");\n\t\tINT_U16 iu = new INT_U16(new Integer(os.size()));\n\t\tcoder.encode(iu, stream);\n\t\t*/\n\t\tstream.write(os.toByteArray());\n\t}",
"@Override\n @SuppressWarnings(\"unchecked\")\n public void serialize(OutputStream stream, BaseType o) throws IOException {\n Class c = o.getClass();\n val si = this.serializersByType.get(c);\n ensureCondition(si != null, \"No serializer found for %s.\", c.getName());\n si.serializer.beforeSerialization(o);\n\n // Encode the Serialization Format Version.\n stream.write(SERIALIZER_VERSION);\n\n // Encode the Object type; this will be used upon deserialization.\n stream.write(si.id);\n\n // Write contents.\n si.serializer.serializeContents(stream, o);\n }",
"public void save(DataOutput stream)\n throws IOException\n {\n stream.write(getBytes());\n }",
"private void writeObject(final ObjectOutputStream out) throws IOException {\n try {\n if (location == null) location = IOHelper.serializeData(object);\n IOHelper.writeData(location, new StreamOutputDestination(out));\n } catch (final IOException e) {\n throw e;\n } catch (final Exception e) {\n throw new IOException(e);\n }\n }",
"public void writeObject(ZObjectOutputStream out) throws IOException {\n }",
"@Override\n\tpublic void write(DataOutputStream dataOutStream) throws IOException {\n\t\tdataOutStream.writeLong(id);\n\t\tsuper.write(dataOutStream);\n\t}",
"public <T> void serialize(T obj, Class<T> type, OutputStream os) throws SerializationException;",
"@Override\n public int writeData(OutputStream out, T data) throws Exception\n {\n OutputStreamWriter w = new OutputStreamWriter(out, \"UTF-8\");\n w.write(_serializer.deepSerialize(data));\n w.close();\n return -1;\n }",
"public void serialize() {\n FileOutputStream fileOutput = null;\n ObjectOutputStream outStream = null;\n // attempts to write the object to a file\n try {\n clearFile();\n fileOutput = new FileOutputStream(data);\n outStream = new ObjectOutputStream(fileOutput);\n outStream.writeObject(this);\n } catch (Exception e) {\n } finally {\n try {\n if (outStream != null)\n outStream.close();\n } catch (Exception e) {\n }\n }\n }",
"public void writeObject ();",
"private void writeObject(ObjectOutputStream stream) throws IOException {\r\n\t\tstream.defaultWriteObject();\r\n\t\tGZIPOutputStream gzos = new GZIPOutputStream(stream);\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(gzos);\r\n\t\toos.writeObject(map);\r\n\t\toos.writeObject(visibility);\r\n\t\toos.writeObject(occupied);\r\n\t\toos.writeObject(danger);\r\n\t\toos.writeObject(attacking);\r\n\t\toos.writeObject(fade);\r\n\t\toos.writeObject(cost);\r\n\t\toos.writeObject(difficulty);\r\n\t\toos.flush();\r\n\t\tgzos.finish();\r\n\t}",
"private void writeObject(java.io.ObjectOutputStream s)\n throws java.lang.ClassNotFoundException,\n java.io.IOException\n {\n s.defaultWriteObject();\n }",
"private void writeObject(ObjectOutputStream out) throws IOException\r\n\t{\r\n\t\tthis.serialize(out);\r\n\t}",
"private void writeObject(java.io.ObjectOutputStream s)\n throws java.lang.ClassNotFoundException,\n\t java.io.IOException\n {\n s.defaultWriteObject();\n }",
"@Override\n\tpublic void serialize(DataOutputStream stream) throws IOException {\n\t\tsuper.serialize(stream);\n\t\tstream.writeInt(getState());\n\t}",
"private void writeObject(ObjectOutputStream out) throws IOException {\n\tout.defaultWriteObject();\n\tservID.writeBytes(out);\n }",
"public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;",
"private final void writeObject(ObjectOutputStream out) throws java.io.IOException {\n\t\tthrow new java.io.IOException(\"Object cannot be serialized\");\n\t}",
"public void writeTo(Object obj, String mimeType, OutputStream os)\n\t throws IOException;",
"public abstract void writeData(DataOutput dout) throws IOException;",
"void serialize(@NotNull OutputStream out) throws IOException;",
"public abstract void write (DataOutputStream outStream)\r\n throws IOException;",
"byte[] serialize(Serializable object);",
"public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}",
"public DataOutputStream openDataOutputStream() throws IOException {\n return new DataOutputStream(openOutputStream());\n }",
"private void writeObject(java.io.ObjectOutputStream s)\r\n throws java.io.IOException {\r\n // Write out any hidden serialization magic\r\n s.defaultWriteObject();\r\n\r\n // Write out size\r\n s.writeInt(size);\r\n\r\n // Write out all elements in the proper order.\r\n for (Entry e = header.next; e != header; e = e.next)\r\n s.writeObject(e.element);\r\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 static void writeObject(Class<?> objectSizeType, ByteBuf netStream, byte[] objectStream) {\n if (Integer.class.equals(objectSizeType)) {\n netStream.writeInt(objectStream.length);\n }\n else if (Short.class.equals(objectSizeType)) {\n netStream.writeShort(objectStream.length);\n }\n else {\n throw new RuntimeException(\"object size only supports the type of Integer or Short\");\n }\n\n if (objectStream.length > 0) {\n netStream.writeBytes(objectStream);\n }\n }",
"ObjectOutputStream newObjectOutputStream(OutputStream out) throws Exception;",
"private void writeObject(ObjectOutputStream stream) throws IOException {\r\n\t\tstream.defaultWriteObject();\r\n\t\tif (sprite != null) {\r\n\t\t\tstream.writeBoolean(true);\r\n\t\t\tstream.writeObject(sprite.getName());\r\n\t\t\tstream.writeFloat(sprite.getSpritespeed());\r\n\t\t\tstream.writeFloat(sprite.getMovingspeed());\r\n\t\t\tstream.writeInt(sprite.getDirection());\r\n\t\t} else {\r\n\t\t\tstream.writeBoolean(false);\r\n\t\t}\r\n\t}",
"public void serialize(RevisionDataOutput dataOutput, T object) throws IOException {\n serialize(dataOutput.getBaseStream(), object);\n }",
"@Override\n public void encode(DataOutputStream ostream) throws IOException {\n\n ostream.writeInt(this.location.getWorldMapID());\n ostream.writeInt(this.location.getTownMapID());\n ostream.writeInt(this.location.getBuildingID());\n ostream.writeInt(this.location.getInteriorMapID());\n ostream.writeInt(this.location.getRoomID());\n ostream.writeInt(this.location.getTileMapID());\n\n ostream.writeInt(this.roomLinkIDs.length);\n\n for (int i = 0; i < this.roomLinkIDs.length; i++) {\n ostream.writeInt(this.roomLinkIDs[i]);\n ostream.writeBoolean(this.isOpened[i]);\n }\n }",
"void mo6321a(OutputStream outputStream, Object obj);",
"private void writeObject(ObjectOutputStream stream) throws IOException {\n/* 188 */ stream.defaultWriteObject();\n/* 189 */ stream.writeInt(this.store.size());\n/* 190 */ Set keys = this.store.keySet();\n/* 191 */ Iterator iterator = keys.iterator();\n/* 192 */ while (iterator.hasNext()) {\n/* 193 */ Comparable key = (Comparable)iterator.next();\n/* 194 */ stream.writeObject(key);\n/* 195 */ Stroke stroke = getStroke(key);\n/* 196 */ SerialUtilities.writeStroke(stroke, stream);\n/* */ } \n/* */ }",
"public void write(DataOutputStream out) throws IOException;",
"public void write(DataOutput dataOutput) throws IOException {\n }",
"private void writeObject (ObjectOutputStream out) throws IOException {\n\t\tout.writeInt (CURRENT_SERIAL_VERSION);\n\t\tout.writeObject(inputPipe);\n\t\tout.writeObject(outputPipe);\n\t\tout.writeObject(sumLatticeFactory);\n\t\tout.writeObject(maxLatticeFactory);\n\t}",
"public DataOutputStream openDataOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }",
"public void writeObject(Object toServer) {\n try {\n outputStream.writeObject(toServer);\n }\n catch(InvalidClassException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the object being written could not be serialized!\");\n e.printStackTrace();\n System.exit(1);\n } catch(NotSerializableException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the object being written belongs to a non-serializable data type!\");\n e.printStackTrace();\n System.exit(1);\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - error writing an object into the socket's output stream!\");\n e.printStackTrace();\n System.exit(1);\n }\n }",
"private void writeObject(ObjectOutputStream oos) throws IOException {\n oos.defaultWriteObject();\n /*if(serializeEverything) {\n //The cast to Serializable is necessary to avoid Sonar bug issues because List does not implement Serializable but all implementations of List (such as ArrayList) in effect implements Serializable\n //oos.writeObject((Serializable)cardPower);\n oos.writeObject((Serializable)weapons);\n oos.writeInt(points);\n }\n serializeEverything = false;*/\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 writeExternal(ObjectOutput objectOutput)\n throws IOException\n {\n objectOutput.writeLong(serialVersionUID);\n objectOutput.writeObject(_wrapped);\n objectOutput.writeObject(_label);\n }",
"private void writeObject(ObjectOutputStream paramObjectOutputStream) throws IOException {\n/* 1334 */ paramObjectOutputStream.defaultWriteObject();\n/* 1335 */ if (getUIClassID().equals(\"ScrollPaneUI\")) {\n/* 1336 */ byte b = JComponent.getWriteObjCounter(this);\n/* 1337 */ b = (byte)(b - 1); JComponent.setWriteObjCounter(this, b);\n/* 1338 */ if (b == 0 && this.ui != null) {\n/* 1339 */ this.ui.installUI(this);\n/* */ }\n/* */ } \n/* */ }",
"private void writeObject( final ObjectOutputStream oos ) \n\t\tthrows IOException {\n\t\t\n\t\tObjectOutputStream.PutField fields = oos.putFields();\n\t\tfields.put(\"streetNumbers\", streetNumbers);\n\t\tfields.put(\"city\", city);\n\t\tfields.put(\"state\", state);\n\t\tfields.put(\"postalCode\", postalCode);\n\t\tfields.put(\"hashCode\", hashCode);\n\t\toos.writeFields();\n\t}",
"public interface WritableObject {\n\n\t/** Write this object to the specified {@link DataTransferOutput} stream.\n\t * @param outputStream the data output stream to write the data to\n\t * @throws IOException if there is an error writing data to the output stream\n\t */\n\tpublic void writeData(DataTransferOutput outputStream) throws IOException;\n\n}",
"@Override\n\tpublic void WriteData(String obj) {\n\t\t\n\t}",
"private void writeObject(java.io.ObjectOutputStream out) throws IOException {\n throw new NotSerializableException();\n }",
"private void writeObject(java.io.ObjectOutputStream s)\r\n throws java.io.IOException {\r\n // Write out any hidden serialization magic\r\n s.defaultWriteObject();\r\n\r\n // Write out HashMap capacity and load factor\r\n // s.writeInt(map.capacity());\r\n // s.writeFloat(map.loadFactor());\r\n\r\n // Write out size\r\n s.writeInt(this.map.size());\r\n\r\n // Write out all elements in the proper order.\r\n for (Iterator<E> i = this.map.values().iterator(); i.hasNext();)\r\n s.writeObject(i.next());\r\n }",
"public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}",
"public void serialize(OutputStream stream, T message, SendContext<T> ctx)\r\n\t\t\tthrows IOException;",
"private void writeObject(java.io.ObjectOutputStream out) throws NotSerializableException {\n throw new NotSerializableException(\"Not serializable.\");\n }",
"public static void putObjectToStream(Object obj, OutputStream os)\n throws IOException {\n ObjectOutputStream oos = new ObjectOutputStream(os);\n oos.writeObject(obj);\n oos.flush();\n oos.close();\n }",
"public static void writeObject(final OutputStream os, final Object obj)\n\t\tthrows JSONException\n\t{\n\t writeObject(os, UTF_8_CHARSET, obj, false, false);\n\t}",
"public void writeObject(Object obj) throws IOException\n\t{\n\t\tif (obj == null) {\n\t\t\twriteMark(Ion.NULL);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof IonBinary) {\n\t\t\tfinal IonBinary iObj = (IonBinary) obj;\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\tiObj.save(this);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof IonBundled) {\n\t\t\tfinal IonBundled iObj = (IonBundled) obj;\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tfinal IonDataBundle bundle = new IonDataBundle();\n\t\t\tiObj.save(bundle);\n\t\t\twriteBundle(bundle);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Ion.isObjectIndirectBundled(obj)) {\n\t\t\tfinal IonizerBundled<?> ionizer = Ion.getIonizerBundledForClass(obj.getClass());\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tfinal IonDataBundle bundle = new IonDataBundle();\n\t\t\tionizer._save(obj, bundle);\n\t\t\twriteBundle(bundle);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (Ion.isObjectIndirectBinary(obj)) {\n\t\t\tfinal IonizerBinary<?> ionizer = Ion.getIonizerBinaryForClass(obj.getClass());\n\t\t\t\n\t\t\twriteMark(Ion.getMark(obj));\n\t\t\t\n\t\t\tionizer._save(obj, this);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Map) {\n\t\t\twriteMark(Ion.MAP);\n\t\t\twriteMap((Map<?, ?>) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Collection) {\n\t\t\twriteMark(Ion.SEQUENCE);\n\t\t\twriteSequence((Collection<?>) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Boolean) {\n\t\t\twriteMark(Ion.BOOLEAN);\n\t\t\twriteBoolean((Boolean) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Byte) {\n\t\t\twriteMark(Ion.BYTE);\n\t\t\twriteByte((Byte) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Character) {\n\t\t\twriteMark(Ion.CHAR);\n\t\t\twriteChar((Character) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Short) {\n\t\t\twriteMark(Ion.SHORT);\n\t\t\twriteShort((Short) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Integer) {\n\t\t\twriteMark(Ion.INT);\n\t\t\twriteInt((Integer) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Long) {\n\t\t\twriteMark(Ion.LONG);\n\t\t\twriteLong((Long) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Float) {\n\t\t\twriteMark(Ion.FLOAT);\n\t\t\twriteFloat((Float) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Double) {\n\t\t\twriteMark(Ion.DOUBLE);\n\t\t\twriteDouble((Double) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof String) {\n\t\t\twriteMark(Ion.STRING);\n\t\t\twriteString((String) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof boolean[]) {\n\t\t\twriteMark(Ion.BOOLEAN_ARRAY);\n\t\t\twriteBooleans((boolean[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof byte[]) {\n\t\t\twriteMark(Ion.BYTE_ARRAY);\n\t\t\twriteBytes((byte[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof char[]) {\n\t\t\twriteMark(Ion.CHAR_ARRAY);\n\t\t\twriteChars((char[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof short[]) {\n\t\t\twriteMark(Ion.SHORT_ARRAY);\n\t\t\twriteShorts((short[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof int[]) {\n\t\t\twriteMark(Ion.INT_ARRAY);\n\t\t\twriteInts((int[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof long[]) {\n\t\t\twriteMark(Ion.LONG_ARRAY);\n\t\t\twriteLongs((long[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof float[]) {\n\t\t\twriteMark(Ion.FLOAT_ARRAY);\n\t\t\twriteFloats((float[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof double[]) {\n\t\t\twriteMark(Ion.DOUBLE_ARRAY);\n\t\t\twriteDoubles((double[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof String[]) {\n\t\t\twriteMark(Ion.STRING_ARRAY);\n\t\t\twriteStrings((String[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (obj instanceof Object[]) {\n\t\t\twriteMark(Ion.OBJECT_ARRAY);\n\t\t\twriteObjects((Object[]) obj);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tthrow new IOException(\"Object \" + obj + \" could not be be written to stream.\");\n\t}",
"public void writeExternal(DataOutput out, Object o)\n throws IOException\n {\n writeObject(out, o);\n }",
"public void writePacket(DataOutputStream dataOutputStream) throws IOException;",
"@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}",
"private void writeObject(final java.io.ObjectOutputStream out) throws java.io.IOException {\n\t\t/*\n\t\t * out.writeInt(0); // Version of the stream. // Version 0 outstuff...\n\t\t * out.writeObject(states); out.writeObject(initialState);\n\t\t * out.writeObject(finalStates); out.writeObject(transitions); if (this\n\t\t * instanceof TuringMachine) { out.writeInt(((TuringMachine)\n\t\t * this).tapes); } out.writeObject(\"SENT\"); // The sentinel object.\n\t\t */\n\t}",
"public abstract void write(DataOutput out) throws IOException;",
"@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer.\n private static void serializeToLz4Data(Serializable object, OutputStream out) {\n try (Closer closer = Closer.create()) {\n OutputStream los = closer.register(new LZ4FrameOutputStream(out));\n ObjectOutputStream oos = closer.register(new ObjectOutputStream(los));\n oos.writeObject(object);\n } catch (Throwable e) {\n throw new BatfishException(\"Failed to convert object to LZ4 data\", e);\n }\n }",
"private byte[] serialize(Serializable object) throws Exception {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream objectStream = new ObjectOutputStream(stream);\n objectStream.writeObject(object);\n objectStream.flush();\n return stream.toByteArray();\n }",
"public final void serialize(OutputStream out){\n }",
"@Override\n public void serializeObject(Object o, int hashCode, String destDir) {\n // throw new NotImplementedException();\n }",
"void saveObject(DataObject sdo, XMLStreamWriter writer) throws XMLStreamException;",
"public void writeObject( DataOutput out ) throws IOException {\n boolean sgIO = node instanceof eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO;\n out.writeBoolean( sgIO );\n out.writeInt( symbol.nodeID );\n\n\n int nodeClassID = control.getNodeClassID( node );\n\n out.writeShort( nodeClassID );\n\n if (nodeClassID==-1)\n out.writeUTF( nodeClassName );\n\n writeConstructorParams( out );\n\n if (sgIO) {\n ByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t DataOutputStream tmpOut = new DataOutputStream( byteStream );\n ((eu.mihosoft.ext.j3d.com.sun.j3d.scenegraph.io.SceneGraphIO)node).writeSceneGraphObject( tmpOut );\n\t tmpOut.close();\n\t out.writeInt( byteStream.size() );\n\t out.write( byteStream.toByteArray() );\n }\n\n writeUserData( out );\n writeString(node.getName(), out);\n\n writeCapabilities( out );\n }",
"@Override\r\n public byte[] toBinary(Object obj) {\r\n return JSON.toJSONBytes(obj, SerializerFeature.WriteClassName);\r\n }",
"void serializeContents(OutputStream stream, TargetType o) throws IOException {\n val writeVersion = this.versions[getWriteVersion()];\n stream.write(writeVersion.getVersion());\n stream.write(writeVersion.getRevisions().size());\n\n // Write each Revision for this Version, in turn.\n for (val r : writeVersion.getRevisions()) {\n stream.write(r.getRevision());\n try (val revisionOutput = RevisionDataOutputStream.wrap(stream)) {\n r.getWriter().accept(o, revisionOutput);\n }\n }\n }",
"@Override\n public void writeTo(DataOutput dout) throws IOException {\n\n if (!isHeadless()) {\n dout.writeShort(getTransactionID());\n dout.writeShort(getProtocolID());\n dout.writeShort(getDataLength());\n }\n dout.writeByte(getUnitID());\n dout.writeByte(getFunctionCode());\n writeData(dout);\n }",
"public static void writeObjectToDisk(Object obj, String name) throws IOException {\r\n\t\t// Create file output stream\r\n\t\tFileOutputStream fileOutStr = new FileOutputStream(name);\r\n\t\t// Create object output stream and write object\r\n\t\tObjectOutputStream objOutStr = new ObjectOutputStream(fileOutStr);\r\n\t\tobjOutStr.writeObject(obj);\r\n\t\t// Close all streams\r\n\t\tobjOutStr.close();\r\n\t\tfileOutStr.close();\r\n\t\tSystem.out.printf(\"Serialized data is saved in a file - \" + name); // Printing message and file name which is\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// saved\r\n\t}",
"private void writeObject(ObjectOutputStream out) throws IOException {\n out.writeObject(avroObject.getSchema().toString());\n DatumWriter<T> writer = new GenericDatumWriter<>();\n writer.setSchema(avroObject.getSchema());\n Encoder encoder = EncoderFactory.get().binaryEncoder(out, null);\n writer.write(avroObject, encoder);\n encoder.flush();\n }",
"private void writeObject(ObjectOutputStream out) throws IOException {\n out.defaultWriteObject();\n }",
"private void writeObject(java.io.ObjectOutputStream stream)\r\n throws IOException {\r\n\t\tstream.writeInt(scoreNumber);\r\n\t\tfor (int i = 0; i < scoreNumber; i++)\r\n\t\t\tstream.writeObject(highScores[i]);\r\n }",
"private void writeObject(ObjectOutputStream s) throws IOException {\n\t\ts.defaultWriteObject();\n\t\t// Write in size\n\t\tModel delegate = getDelegate();\n\t\ts.writeInt(delegate.size());\n\t\t// Write in all elements\n\t\tfor (Statement st : delegate) {\n\t\t\tResource subj = st.getSubject();\n\t\t\tURI pred = st.getPredicate();\n\t\t\tValue obj = st.getObject();\n\t\t\tResource ctx = st.getContext();\n\t\t\ts.writeObject(new ContextStatementImpl(subj, pred, obj, ctx));\n\t\t}\n\t}",
"private void writeObject(ObjectOutputStream out) throws IOException{\n out.defaultWriteObject();\n // writeUTF <--> readUTF, will write length;\n // writeChars <--> readChar, will not write length, you should know the length before read.\n out.writeUTF(company);\n // out.writeChars(company);\n out.writeUTF(encryptor.xor(password));\n }",
"@Override\n\tpublic void send(OutputStream stream) throws IOException {\n\t\tstream.write(this.data);\n\t}",
"private void writeObject(ObjectOutputStream s) throws IOException\t\n\t{\n\t\ts.writeInt(score);\t\n\t\ts.writeDouble(this.centre.getX());\t\n\t\ts.writeDouble(this.centre.getY());\t\n\t\ts.writeObject(rectangle.getFill().toString());\t\n//\t\tSystem.out.println(\"something\");\t\n\t}",
"public static void sendObjects (DataOutputStream dos, Hashtable<Long,TuioObject> objectList) throws IOException {\n\t\tif(objectList != null) dos.writeInt(objectList.size());\n\t\telse dos.writeInt(0);\n\t\tdos.flush();\n\t\tif(objectList.size() == 0) return;\n\t\tSystem.out.println(\"Sending \"+objectList.size()+\" objects\");\n\t\tEnumeration<TuioObject> iterate = objectList.elements();\n\t\twhile(iterate.hasMoreElements()) {\n\t\t\tTuioObject obj = iterate.nextElement();\n\t\t\t// write the symbol ID (number of each fiducial in the PDF), not session ID\n\t\t\tdos.writeInt(obj.getSymbolID());\n\t\t\tdos.writeFloat(obj.getX());\n\t\t\tdos.writeFloat(obj.getY());\n\t\t\tdos.writeFloat(obj.getAngle());\n\t\t\tdos.flush();\n\t\t\tSystem.out.println(\"Sent object \"+obj.getSymbolID()+\" at (\"+obj.getX()+\",\"+obj.getY()+\" angle \"+obj.getAngle());\n\t\t}\n\t}",
"private ObjectOutputStream getOutputStream() {\n\t\t// retornamos el stream de salida\n\t\treturn this.outputStream;\n\t}",
"public static void Serialize(AsonValue obj,OutputStream os, int flag) throws java.io.IOException {\n new AsonSerializer(flag).serialize(obj, os);\n }",
"public void writeObject(Object obj, String path)throws IOException{\n FileOutputStream fos = new FileOutputStream(path);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n\n oos.writeObject(obj);\n oos.close();\n }",
"public static DataOutputStream asDataOutputStream(DataFile df) {\n return new DataOutputStream(asOutputStream(df));\n }",
"@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}",
"@Override\r\n public boolean toData(Object o, PdxWriter out) {\r\n //handle PortfolioPdx objects\r\n if (o instanceof PortfolioPdx) {\r\n return portfolioSerializer.toData(o, out);\r\n }\r\n \r\n //handle PositionPdx objects\r\n if (o instanceof PositionPdx) {\r\n return positionSerializer.toData(o, out);\r\n }\r\n \r\n //If the object type is something we don't understand, return false\r\n //to allow the serialization framework to try to serialize the object\r\n //using java serialization\r\n return false;\r\n }",
"void serialize(OutputStream output, Object graph);",
"public synchronized final void write(Serializable o) {\n\t\toutQueue.enqueue(o);\n\t}",
"private void writeToFile(String filename, Object object) {\n try {\n FileOutputStream fileOutputStream = openFileOutput(filename, MODE_PRIVATE);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(object);\n objectOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public interface Serializable {\n\n\t/**\n\t * Method to convert the object into a stream\n\t *\n\t * @param out OutputSerializer to write the object to\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid writeObject(OutputSerializer out) throws java.io.IOException;\n\n\t/** \n\t * Method to build the object from a stream of bytes\n\t *\n\t * @param in InputSerializer to read from\n\t * @throws IOException in case of an IO-error\n\t */\n\tvoid readObject(InputSerializer in) throws java.io.IOException;\n}"
] | [
"0.7594018",
"0.75842583",
"0.7218151",
"0.71532375",
"0.7060227",
"0.6992179",
"0.69737077",
"0.69535524",
"0.6940301",
"0.6932118",
"0.6854399",
"0.6828336",
"0.68141717",
"0.6710562",
"0.66788924",
"0.6626738",
"0.6614246",
"0.6596821",
"0.6591274",
"0.65796953",
"0.65709674",
"0.6535172",
"0.65085495",
"0.6483643",
"0.6457553",
"0.64051366",
"0.63863075",
"0.6376751",
"0.6323303",
"0.6295775",
"0.6287226",
"0.6253543",
"0.6251873",
"0.62367886",
"0.62324136",
"0.62277156",
"0.6214859",
"0.62106115",
"0.62010413",
"0.6194623",
"0.619138",
"0.61910385",
"0.6186759",
"0.6176757",
"0.61678666",
"0.61587286",
"0.61511785",
"0.6145179",
"0.61392343",
"0.61202484",
"0.61194444",
"0.61169875",
"0.61162025",
"0.60817534",
"0.6069738",
"0.6061407",
"0.60555625",
"0.6053468",
"0.6036041",
"0.60276324",
"0.6025146",
"0.6020497",
"0.60065913",
"0.5993976",
"0.59882885",
"0.5973393",
"0.59659934",
"0.5963227",
"0.59171414",
"0.5896297",
"0.5887389",
"0.5875422",
"0.58705723",
"0.5861163",
"0.5861055",
"0.5857275",
"0.5855887",
"0.5846375",
"0.58360136",
"0.5821482",
"0.5820491",
"0.58184683",
"0.5808331",
"0.5802554",
"0.5800432",
"0.57871944",
"0.57848173",
"0.5776088",
"0.5768227",
"0.57438636",
"0.57385373",
"0.57359993",
"0.57317144",
"0.5729038",
"0.5727926",
"0.57207227",
"0.5712814",
"0.57119983",
"0.5711106",
"0.57025856",
"0.57014894"
] | 0.0 | -1 |
Unserializes an object from a DataInputStream. | public int unmarshal(DataInputStream dis) throws Exception
{
int uPosition = 0;
try
{
recordType = VariableParameterRecordType.unmarshalEnum(dis);
uPosition += recordType.getMarshalledSize();
changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);
uPosition += changeIndicator.getMarshalledSize();
uPosition += entityType.unmarshal(dis);
padding = (short)dis.readUnsignedShort();
uPosition += 2;
padding1 = dis.readInt();
uPosition += 4;
}
catch(Exception e)
{
System.out.println(e);
}
return getMarshalledSize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"InputStream deserialize(InputStream toDeserialize);",
"void deserialize(@NotNull InputStream in) throws IOException;",
"Object deserialize(Class objClass, InputStream stream) throws IOException;",
"T deserialize(InputStream stream) throws IOException;",
"private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tthreadLocalDedup = new ThreadLocal<Dedup>() {\n\t\t\t@Override\n\t\t\tprotected Dedup initialValue() {\n\t\t\t\treturn new Dedup();\n\t\t\t}\n\t\t};\n\t\tin.defaultReadObject();\n\t}",
"private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n\t\tname = in.readUTF();\n\t\tdesc = (String[]) in.readObject();\n\t\tmembers = (Members) in .readObject();\n\t\tbanlist = (List<UUID>) in .readObject();\n\t\tterritoryIds = (List<String>) in .readObject();\n\t\tinvite = in.readBoolean();\n\t}",
"public abstract Object decode(InputStream is) ;",
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tthis.deserialize(in);\r\n\t}",
"void readObject(InputSerializer in) throws java.io.IOException;",
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException\n {\n // TODO - temp?\n }",
"private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException\n\t{\n\t\t// read values\n\t\tin.defaultReadObject();\n\n\t\tOutputStream output = getOutputStream();\n\t\tif (cachedContent != null)\n\t\t{\n\t\t\toutput.write(cachedContent);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tFileInputStream input = new FileInputStream(dfosFile);\n\t\t\tStreams.copy(input, output);\n\t\t\tFiles.remove(dfosFile);\n\t\t\tdfosFile = null;\n\t\t}\n\t\toutput.close();\n\n\t\tcachedContent = null;\n\t}",
"private void readObject(final ObjectInputStream stream) throws IOException, ClassNotFoundException {\n stream.defaultReadObject();\n answerMarks_.clear();\n }",
"public static<T> T decodeData(InputStream stream, Class<T> objectClass) throws Exception{\n\t\t//Read two bytes (Length of the packet data): This is not part of MDER specification. BinaryNotes checks all\n\t\t//length constraints of all data types. This operation is not neccesary.\n\t\t/*\n\t\tint i=1;\n\t\tbyte[] hex = new byte[1];\t\t\t\t\n\t\twhile ((i<3)&&((i=stream.read())!=-1)){\n\t\t\thex[0]=(byte)i;\n\t\t}\n\t\t*/\n\t\t//Get the data in mder codification\n\t\tIDecoder decoder = CoderFactory.getInstance().newDecoder(\"MDER\");\n\t\treturn decoder.decode(stream, objectClass);\n\t}",
"Object deserialize(InputStream input, Class type, String format,\r\n String contentEncoding);",
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n Schema schema = new Schema.Parser().parse((String) in.readObject());\n DatumReader<T> reader = new GenericDatumReader<>(schema);\n Decoder decoder = DecoderFactory.get().binaryDecoder(in, null);\n avroObject = reader.read(avroObject, decoder);\n }",
"private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}",
"public static Object deserializeObject(byte[] data) throws IOException {\n\t\tif (data == null || data.length < 1) {\n\t\t\treturn null;\n\t\t}\n\t\tObject object = null;\n\t\ttry {\n\t\t\tObjectInputStream objectStream = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\t\tobject = objectStream.readObject();\n\t\t\tobjectStream.close();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn object;\n\t}",
"private void readObject(ObjectInputStream paramObjectInputStream) throws IOException, ClassNotFoundException {\n/* 91 */ paramObjectInputStream.defaultReadObject();\n/* 92 */ this.types = null;\n/* */ }",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n throw new NotSerializableException();\n }",
"@SuppressWarnings(\"unchecked\")\n public BaseType deserialize(InputStream stream) throws IOException {\n processHeader(stream);\n\n // Decode the object type and look up its serializer.\n byte type = (byte) stream.read();\n if (type < 0) {\n throw new EOFException();\n }\n\n val si = this.serializersById.get(type);\n ensureCondition(si != null, \"No serializer found for object type %s.\", type);\n\n // Deserialize contents.\n return (BaseType) si.serializer.deserializeContents(stream);\n }",
"private void readObject(ObjectInputStream _stream)\n/* 435: */ throws IOException, ClassNotFoundException\n/* 436: */ {\n/* 437:508 */ _stream.defaultReadObject();\n/* 438:509 */ this._origin_VA.restoreOwner(this);\n/* 439:510 */ //finishReadObject_xjal(_stream, TileGIS.class);\n/* 440: */ }",
"private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {\n\t\tois.defaultReadObject(); // Calling the default deserialization logic\n\n\t}",
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n in.defaultReadObject();\n company = in.readUTF();\n // Just for test static member\n company = \"pica8_from_serialization\";\n password = encryptor.xor(in.readUTF());\n }",
"public static Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));\n\t\treturn ois.readObject();\n\t}",
"private void readObject(\n\t\tObjectInputStream aInputStream\n \t\t) throws ClassNotFoundException, IOException {\n \t\taInputStream.defaultReadObject();\n \t}",
"private void readObject(\n ObjectInputStream aInputStream\n ) throws ClassNotFoundException, IOException {\n aInputStream.defaultReadObject();\n\n }",
"public Object readObject() throws IOException, ClassNotFoundException {\n if (objectInputStream == null) {\n objectInputStream = new ObjectInputStream(byteArrayInputStream);\n }\n return objectInputStream.readObject();\n }",
"private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\r\n\t\tstream.defaultReadObject();\r\n\t\tif (stream.readBoolean()) {\r\n\t\t\tsprite = Database.instance().getSprites().get((String) (stream.readObject()))\r\n\t\t\t\t\t.createSprite(stream.readFloat(), stream.readFloat());\r\n\t\t\tsprite.setDirection(stream.readInt());\r\n\t\t}\r\n\t}",
"private void readObject(ObjectInputStream ois)\n throws IOException, ClassNotFoundException {\n ois.defaultReadObject();\n myhash = -1;\n timestamp = new Date(timestamp.getTime());\n }",
"private void readObject(\n ObjectInputStream aInputStream\n ) throws ClassNotFoundException, IOException {\n aInputStream.defaultReadObject();\n }",
"public <T> T deserialize(Class<T> type, InputStream is) throws SerializationException;",
"public void restore(DataInputStream dis) throws Exception;",
"protected void unserialize(InputStream paramInputStream) throws IOException {\n/* 336 */ this.m_index_ = new char[this.m_dataOffset_];\n/* 337 */ DataInputStream dataInputStream = new DataInputStream(paramInputStream);\n/* 338 */ for (byte b = 0; b < this.m_dataOffset_; b++) {\n/* 339 */ this.m_index_[b] = dataInputStream.readChar();\n/* */ }\n/* */ }",
"private void readObject(ObjectInputStream s) throws InvalidObjectException {\n throw new InvalidObjectException(\"Deserialization via serialization delegate\");\n }",
"public abstract Object deserialize(Object object);",
"private void readObject(ObjectInputStream inStream) \r\n\t\t\tthrows IOException, ClassNotFoundException {\r\n\t\tmPublicKey = (String)inStream.readObject();\r\n\t\tmIssuer = (String)inStream.readObject();\r\n\t\tmSubject = (String)inStream.readObject();\r\n\t}",
"GeneratedMessage deserialize(InputStream in) throws IOException, InstantiationException, IllegalAccessException, ClassNotFoundException;",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T extends ImogBean> T deSerialize(InputStream xml) throws ImogSerializationException {\n\t\treturn (T) xstream.fromXML(xml);\n\t}",
"public static Object deserialize(byte[] objectStream) {\n ByteArrayInputStream bais = null;\n try {\n bais = new ByteArrayInputStream(objectStream);\n ObjectInputStream ois = new ObjectInputStream(bais);\n return ois.readObject();\n } catch (IOException | ClassNotFoundException e) {\n throw new RuntimeException(e);\n } finally {\n if (bais != null) {\n try {\n bais.close();\n } catch (IOException ex) {\n }\n }\n }\n }",
"private void readObject( final ObjectInputStream ois ) \n\t\tthrows ClassNotFoundException, IOException {\n\t\tObjectInputStream.GetField fields = ois.readFields();\n\t\tstreetNumbers = (String) fields.get(\"streetNumbers\", NA );\n\t\tcity = (String) fields.get(\"city\", NA);\n\t\tstate = (StateCode) fields.get(\"state\", StateCode.NY);\n\t\tpostalCode = (String) fields.get(\"postalCode\", NA);\n\t\thashCode = fields.get(\"hashCode\", 0);\n\t}",
"private void readObject(ObjectInputStream os) throws IOException, ClassNotFoundException {\n \t// rebuild this object\n \tos.defaultReadObject();\n \tthis.stat = new EdgeStat(this.edgeId);\n \tthis.curPackets = new ArrayList<ITransmissible>();\n }",
"@Override\n public T readData(InputStream in) throws IOException\n {\n String doc = _read(in, \"UTF-8\");\n return _deserializer.deserialize(doc, _itemClass);\n }",
"private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException {\n try {\n location = IOHelper.readData(new StreamInputSource(in));\n } catch (final IOException | ClassNotFoundException e) {\n throw e;\n } catch (final Exception e) {\n throw new IOException(e);\n }\n }",
"public Object parseAndClose(InputStream in, Charset charset, Type dataType) throws IOException {\n return mMapper.readValue(in, dataType.getClass());\n }",
"private void readObject(ObjectInputStream in)\n\tthrows IOException, ClassNotFoundException\n {\n\tin.defaultReadObject();\n\tservID = new ServiceID(in);\n }",
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {\n in.defaultReadObject();\n\n _firstTime = true;\n _isReset = false;\n }",
"private void readObject(ObjectInputStream ois) throws ClassNotFoundException, IOException {\n \n \t// Default de-serialization\n \tois.defaultReadObject();\n \t\n \t// Set default estimator if de-serializing an older object\n if (this.estimator == null) {\n this.estimator = EntropyEstimator.SHANNON;\n }\n }",
"public Object readExternal(DataInput in)\n throws IOException\n {\n return readObject(in, getBeanInfo().getType().getClassLoader());\n }",
"Object deserialize() throws SQLException {\n\ttry {\n\t ByteArrayInputStream bi = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(bi);\n\n\t return is.readObject();\n\t} catch (Exception e) {\n\t throw Trace.error(Trace.SERIALIZATION_FAILURE, e.getMessage());\n\t}\n }",
"ObjectInputStream newObjectInputStream(InputStream in) throws Exception;",
"@Deprecated\n public ObjectInputStream deserialize(ObjectName name,byte[] data)\n throws InstanceNotFoundException, OperationsException{\n final ClassLoader loader=getClassLoaderFor(name);\n return instantiator.deserialize(loader,data);\n }",
"protected abstract DBObject parse(InputStream is) throws DeserializationException;",
"private void readObject(java.io.ObjectInputStream in)\n throws IOException, ClassNotFoundException {\n\n // UnSerialize captcha fields with default method\n in.defaultReadObject();\n \n try {\n\n this.challenge =ImageIO.read(new MemoryCacheImageInputStream(in));\n } catch (IOException e) {\n if (!hasChallengeBeenCalled.booleanValue()) {\n // If the getChallenge method has not been called the challenge should be available for unmarhslling.\n // In this case, the thrown Exception is not related to the dispose status \n throw e;\n }\n }\n }",
"protected void readObject(ObjectInputStream in)\n\t\tthrows\n\t\t\tClassNotFoundException,\n\t\t\tIOException,\n\t\t\tIncompleteSpecificationException,\n\t\t\tInvalidPropertyNameException,\n\t\t\tInvalidPropertyValueException {\n\t\tin.defaultReadObject();\n\t\tLong serialSubVersionUID = (Long) in.readObject();\n\t\tif (serialSubVersionUID.longValue() == 0L) {\n\t\t\tProperties p = (Properties) in.readObject();\n\t\t\tthis.setAllProperties(p);\n\t\t} else if (serialSubVersionUID.longValue() > 0L) {\n\t\t\t// Subclasses should override this for sub-version values > 0\n\t\t\tthrow new ClassNotFoundException(\"Unsupported object version\"); //$NON-NLS-1$\n\t\t}\n\t}",
"@Deprecated\n\tprivate void readObject(final java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {\n\t\t// Reset all nonread objects.\n\t\t/*\n\t\t * resetForLoad();\n\t\t *\n\t\t * // Do the reading in of objects. int version = in.readInt(); if\n\t\t * (version >= 0) { // Adjust by version. // The reading for version 0\n\t\t * of this object. Set s = (Set) in.readObject(); Iterator it =\n\t\t * s.iterator(); while (it.hasNext()) addState((State) it.next());\n\t\t *\n\t\t * initialState = (State) in.readObject(); finalStates = (Set)\n\t\t * in.readObject(); // Let the class take care of the transition stuff.\n\t\t * Set trans = (Set) in.readObject(); it = trans.iterator(); while\n\t\t * (it.hasNext()) addTransition((Transition) it.next()); if (this\n\t\t * instanceof TuringMachine) { ((TuringMachine) this).tapes =\n\t\t * in.readInt(); } } while (!in.readObject().equals(\"SENT\")) ; // Read\n\t\t * until sentinel.\n\t\t */\n\t}",
"@Override\n public Model decode(InputStream inStream) throws CoderException, IOException {\n long length = VarInt.decodeLong(inStream);\n if (length < 0) {\n throw new IOException(\"Invalid length \" + length);\n }\n\n InputStream limited = new CloseShieldInputStream(ByteStreams.limit(inStream, length));\n\n return Rio.parse(limited, \"\", RDF_FORMAT);\n }",
"public void readExternal(ObjectInput objectInput)\n throws IOException, ClassNotFoundException\n {\n Long version = objectInput.readLong();\n \n if(version != serialVersionUID)\n {\n throw new InvalidClassException(\"Classes are not compatible. Received serialVersionUID = \" + version + \", local serialVersionUID = \"+ serialVersionUID);\n }\n\n _wrapped = (FacesMessage)objectInput.readObject();\n _label = objectInput.readObject();\n }",
"public void read(DataInputStream in) throws IOException;",
"@Override\n public void decode(DataInputStream istream) throws IOException {\n\n this.location = new WotlasLocation();\n\n this.location.setWorldMapID(istream.readInt());\n this.location.setTownMapID(istream.readInt());\n this.location.setBuildingID(istream.readInt());\n this.location.setInteriorMapID(istream.readInt());\n this.location.setRoomID(istream.readInt());\n this.location.setTileMapID(istream.readInt());\n\n int size = istream.readInt();\n this.roomLinkIDs = new int[size];\n this.isOpened = new boolean[size];\n\n for (int i = 0; i < size; i++) {\n this.roomLinkIDs[i] = istream.readInt();\n this.isOpened[i] = istream.readBoolean();\n }\n }",
"Object deserialize(Writable blob) throws SerDeException;",
"public static UserDetails deSerialize(String s) throws IOException, ClassNotFoundException\r\n\t{\r\n\t\tbyte [] data = Base64Coder.decode(s);\r\n\t\tObjectInputStream ois = new ObjectInputStream(new ByteArrayInputStream(data));\r\n\t\tUserDetails o = (UserDetails) ois.readObject();\r\n\t\tois.close();\r\n\t\treturn o;\r\n\t}",
"public void deserialize(JoyBuffer in) {\n\t\t\n\t}",
"public Object readObject() {\n Object fromServer = null;\n\n try {\n fromServer = inputStream.readObject();\n } catch(InvalidClassException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - could not deserialize the read object!\");\n e.printStackTrace();\n System.exit(1);\n } catch(IOException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - error reading an object from the socket's input stream!\");\n e.printStackTrace();\n System.exit(1);\n } catch(ClassNotFoundException e) {\n GenericIO.writelnString(Thread.currentThread().getName()\n + \" - the read object's data type is unknown!\");\n e.printStackTrace();\n System.exit(1);\n }\n\n return fromServer;\n }",
"private void readObject ( ObjectInputStream in ) throws IOException, ClassNotFoundException {\n ObjectInputStream.GetField fields = in.readFields();\n _user = (CTEUser) fields.get(\"_user\", null);\n }",
"private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\r\n\t\tstream.defaultReadObject();\r\n\t\tGZIPInputStream gzis = new GZIPInputStream(stream, 1024 * 1024);\r\n\t\tObjectInputStream ois = new ObjectInputStream(gzis);\r\n\t\tmap = (MapClip) ois.readObject();\r\n\t\tvisibility = (IntGrid) ois.readObject();\r\n\t\toccupied = (IntGrid) ois.readObject();\r\n\t\tdanger = (IntGrid) ois.readObject();\r\n\t\tattacking = (IntGrid) ois.readObject();\r\n\t\tfade = (IntGrid) ois.readObject();\r\n\t\tcost = (IntGrid) ois.readObject();\r\n\t\tdifficulty = (IntGrid) ois.readObject();\r\n\t}",
"public TargetType deserialize(InputStream stream) throws IOException {\n ReaderType builder = newBuilder();\n deserialize(stream, builder);\n return builder.build();\n }",
"public void readObject (ObjectInputStream in)\n throws IOException\n {\n int topSlots = in.readByte();\n long flips = in.readLong();\n long balls = in.readLong();\n long holes = in.readLong();\n\n populate(topSlots, flips, balls, holes);\n }",
"private static InPacket deserializePacket(ByteArrayDataInput in)\n\t\t\tthrows IOException\n\t{\n\t\tbyte id = in.readByte();\n\t\tint len = in.readInt();\n\t\tbyte[] array = new byte[len];\n\t\tin.readFully(array);\n\n\t\treturn deserializeRawPacket(id, array);\n\t}",
"private void readObject(ObjectInputStream in) throws IOException,\n \t\t\tClassNotFoundException {\n \t\tin.defaultReadObject();\n \t\tlog.debug(\"GalleryFeed has been deserialized.\");\n \t}",
"SessionSerializationMetadata deserialize( byte[] data ) throws IOException, ClassNotFoundException;",
"private void readObjectNoData() throws ObjectStreamException {}",
"public void readData(InputStream inStream);",
"private Artikel liesArtikel(ObjectInputStream ois) throws IOException, ClassNotFoundException {\n \n try {\n return (Artikel) ois.readObject();\n\n \n } catch (EOFException exc) {\n return null;\n }\n \n \n }",
"@Override\n public <T> T deSerialize( final byte[] data, final ClassLoader loader )\n throws IOException, ClassNotFoundException\n {\n if ( data == null )\n {\n return null;\n }\n\n final byte[] deccrypted = decrypt(data);\n return serializer.deSerialize(deccrypted, loader);\n }",
"private void readObject(java.io.ObjectInputStream in) throws NotSerializableException {\n throw new NotSerializableException(\"Not serializable.\");\n }",
"public static Serializable deserialize(byte[] data) throws ClassNotFoundException, IOException {\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(data);\n\t\tObjectInputStream ois;\n\t\tois = new ObjectInputStream(bis);\n\t\treturn (Serializable) ois.readObject();\n\t}",
"public static Serializable getObjectFromStream(InputStream is)\n throws IOException, ClassNotFoundException {\n ObjectInputStream ois = new ObjectInputStream(is);\n Object result = ois.readObject();\n ois.close();\n return (Serializable)result;\n }",
"private void m21434a(ObjectInputStream objectInputStream) throws IOException, ClassNotFoundException {\n try {\n mo7211a(new ci(new bk((InputStream) objectInputStream)));\n } catch (bv e) {\n throw new IOException(e.getMessage());\n }\n }",
"private Rechnung liesRechnung(ObjectInputStream ois) throws IOException, ClassNotFoundException {\n try {\n Rechnung r = new Rechnung((Rechnung) ois.readObject());\n return r;\n } catch (EOFException exc) {\n return null;\n }\n }",
"public void unmarshal(DataInputStream dis)\n{\n super.unmarshal(dis);\n\n try \n {\n munitionID.unmarshal(dis);\n eventID.unmarshal(dis);\n velocity.unmarshal(dis);\n locationInWorldCoordinates.unmarshal(dis);\n burstDescriptor.unmarshal(dis);\n detonationResult = dis.readByte();\n numberOfArticulationParameters = dis.readByte();\n pad = dis.readShort();\n for(int idx = 0; idx < numberOfArticulationParameters; idx++)\n {\n ArticulationParameter anX = new ArticulationParameter();\n anX.unmarshal(dis);\n articulationParameters.add(anX);\n };\n\n } // end try \n catch(Exception e)\n { \n System.out.println(e); \n }\n }",
"@Override\n public void read(DataInput in) throws IOException {\n int cordinatesSize = in.readInt();\n\n ByteArrayInputStream bi = new ByteArrayInputStream(b.toByteArray());\n ObjectInputStream o = new ObjectInputStream(bi);\n\n for(Coordinate coordinate : cordinates){\n try {\n coordinate = (Coordinate)o.readObject();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }\n\n\n }",
"public void read(final InputStream stream)\r\n throws IOException, DataFormatException {\r\n decoder.read(stream);\r\n }",
"public void deserialize(InputStream stream, ReaderType target) throws IOException {\n processHeader(stream);\n deserializeContents(stream, target);\n }",
"@Override\n public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { in.readByte(); // version\n type = in.readUTF();\n subType = in.readUTF();\n // allow for more data from future version\n int extra = in.readShort();\n if (extra > 0) {\n byte[] extraBytes = new byte[extra];\n in.read(extraBytes, 0, extra);\n }\n }",
"private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException \n\t{\n\t\tin.defaultReadObject() ;\n\t\tthis.factoryLoader = ServiceLoader.load(CalendarParameterFactory.class, CalendarParameterFactory.class.getClassLoader());\n\t}",
"public Object readObject() throws ClassNotFoundException, IOException;",
"void deserialize(InputStream in) throws IOException, ClassNotFoundException {\n trie.deserialize(in);\n }",
"DataObject loadObject(XMLStreamReader reader) throws XMLStreamException, IllegalStateException;",
"public void unmarshalReferences(uka.transport.UnmarshalStream _stream)\n throws java.io.IOException, ClassNotFoundException\n {\n //Extracting the byte array\n int _size = _length * uka.transport.BasicIO.SIZEOF_byte;\n if(_size > uka.transport.BasicIO.REQUEST_MAX){\n //b is too big to be serialized as a primitive field\n value = (byte[]) _stream.readObject();\n } else {\n //b is small enough to be serialized as a primitive field\n _stream.request(_size);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n value = new byte[_length];\n _pos = uka.transport.BasicIO.extract(_buffer, _pos, value);\n _stream.accept(_size);\n }\n }",
"private void readObject(java.io.ObjectInputStream s)\n throws java.lang.ClassNotFoundException,\n java.io.IOException\n {\n s.defaultReadObject();\n try\n {\n toGregorian(); // restore transient fields\n }\n catch ( IllegalArgumentException e )\n {\n throw new java.io.IOException(\"bad serialized DateUtil\");\n }\n }",
"@Override\r\n\tprotected Object readObject() throws IOException, SerializeException {\r\n\t\treturn AdvancedDeserializerUtil.readObject(super.readObject());\r\n\t}",
"private void readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException {\n/* 486 */ stream.defaultReadObject();\n/* 487 */ this.errorIndicatorPaint = SerialUtilities.readPaint(stream);\n/* 488 */ this.errorIndicatorStroke = SerialUtilities.readStroke(stream);\n/* */ }",
"private void readObject(java.io.ObjectInputStream stream)\n throws IOException, ClassNotFoundException {\n trackers = new ArrayList<>();\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static <T extends Serializable> T deserializeObject(final byte[] str) {\n\t\tfinal ObjectInputStream in;\n\t\tfinal ByteArrayInputStream inputStream = new ByteArrayInputStream(str);\n\t\tfinal T ret;\n\n\t\ttry {\n\t\t\tin = new ObjectInputStream(inputStream);\n\n\t\t\tret = (T) in.readObject();\n\t\t} catch (final Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\n\t\treturn ret;\n\t}",
"@Override\n\tpublic void readExternal(ObjectInput in) throws IOException,\n\t\t\tClassNotFoundException {\n\t\t\n\t\tname = (String) in.readObject();\n\t\ti = in.readInt();\n\t\t\n\t}",
"public void load(DataInput stream)\n throws IOException\n {\n final int MAX = 8192;\n byte[] abBuf = new byte[MAX];\n ByteArrayOutputStream streamRaw = new ByteArrayOutputStream(MAX);\n\n int of = 0;\n try\n {\n while (true)\n {\n byte b = stream.readByte();\n\n abBuf[of++] = b;\n\t\t\t\tif (of == MAX)\n {\n streamRaw.write(abBuf, 0, MAX);\n of = 0;\n }\n }\n }\n catch (EOFException e)\n {\n if (of > 0)\n {\n streamRaw.write(abBuf, 0, of);\n }\n }\n\n\n setBytes(streamRaw.toByteArray());\n }",
"public <T> T parseAndClose(InputStream in, Charset charset, Class<T> dataClass)\n throws IOException {\n return (T) mMapper.readValue(in, dataClass);\n }",
"public Object deserialize(byte[] bytes) {\n try {\n ByteArrayInputStream b = new ByteArrayInputStream(bytes);\n ObjectInputStream o = new ObjectInputStream(b);\n return o.readObject();\n } catch (Exception e) {\n return null;\n }\n }",
"public Object DeSerializeObject(String sFilePath) {\n File f = null;\n FileInputStream fis = null;\n ObjectInputStream ois = null;\n Object object = null;\n try {\n f = new File(sFilePath);\n\n if (!f.exists()) {\n throw new Exception(\"File Not found for \" + sFilePath);\n }\n\n fis = new FileInputStream(f);\n ois = new ObjectInputStream(fis);\n\n try {\n object = ois.readObject();\n } catch (Exception e) {\n }\n\n } catch (Exception e) {\n } finally {\n try {\n ois.close();\n } catch (Exception e) {\n }\n try {\n fis.close();\n } catch (Exception e) {\n }\n f = null;\n return object;\n }\n }",
"@SuppressWarnings(\"PMD.CloseResource\") // PMD does not understand Closer\n protected static <S extends Serializable> S deserializeObject(\n Path inputFile, Class<S> outputClass) {\n try {\n // Awkward nested try blocks required because we refuse to throw IOExceptions.\n try (Closer closer = Closer.create()) {\n FileInputStream fis = closer.register(new FileInputStream(inputFile.toFile()));\n BufferedInputStream bis = closer.register(new BufferedInputStream(fis));\n // Allows us to peek at the beginning of the stream and then push the bytes back in for\n // downstream consumers to read.\n PushbackInputStream pbCompressed =\n new PushbackInputStream(bis, DEFAULT_HEADER_LENGTH_BYTES);\n Format f = detectFormat(pbCompressed);\n if (f == Format.GZIP) {\n InputStream gis = closer.register(new GZIPInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(gis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else if (f == Format.LZ4) {\n InputStream lis = closer.register(new LZ4FrameInputStream(pbCompressed));\n // Update format after decompression\n PushbackInputStream pbUncompressed =\n new PushbackInputStream(lis, DEFAULT_HEADER_LENGTH_BYTES);\n return deserializeObject(pbUncompressed, outputClass);\n } else {\n return deserializeObject(pbCompressed, outputClass);\n }\n }\n } catch (Exception e) {\n throw new BatfishException(\n String.format(\n \"Failed to deserialize object of type %s from file %s\",\n outputClass.getCanonicalName(), inputFile),\n e);\n }\n }"
] | [
"0.6753063",
"0.67354083",
"0.6655444",
"0.65200627",
"0.64520156",
"0.6424979",
"0.6395261",
"0.63929725",
"0.6301523",
"0.6263989",
"0.62420833",
"0.6239937",
"0.6233511",
"0.61894494",
"0.6183486",
"0.6175731",
"0.6079519",
"0.60670763",
"0.606004",
"0.60491437",
"0.60306525",
"0.6013778",
"0.5996171",
"0.5985543",
"0.59830433",
"0.5978195",
"0.59534943",
"0.5952478",
"0.5950214",
"0.5944774",
"0.5943425",
"0.59214395",
"0.5892259",
"0.58819544",
"0.58746606",
"0.5851331",
"0.5845531",
"0.5838285",
"0.58113974",
"0.58109444",
"0.5806261",
"0.58043325",
"0.57957417",
"0.57745755",
"0.5766576",
"0.57549167",
"0.5742891",
"0.5724647",
"0.5682173",
"0.5678801",
"0.5668337",
"0.56389695",
"0.5636783",
"0.56289303",
"0.5607779",
"0.5581763",
"0.55482113",
"0.5547397",
"0.55424553",
"0.55232096",
"0.55218893",
"0.5511036",
"0.55097604",
"0.55062884",
"0.55030125",
"0.5502601",
"0.5466113",
"0.54630876",
"0.54616296",
"0.5429992",
"0.5417237",
"0.541152",
"0.53990483",
"0.53795546",
"0.53785026",
"0.53665346",
"0.5356843",
"0.5356427",
"0.5347863",
"0.53467363",
"0.5331593",
"0.5319777",
"0.5317881",
"0.53149676",
"0.5310274",
"0.53071976",
"0.530707",
"0.5296806",
"0.52946746",
"0.52857953",
"0.5260849",
"0.5257324",
"0.52408224",
"0.52372265",
"0.5227666",
"0.5221475",
"0.52092385",
"0.52053523",
"0.51936704",
"0.5182617",
"0.5181601"
] | 0.0 | -1 |
Packs an object into the ByteBuffer. | public void marshal(java.nio.ByteBuffer buff) throws Exception
{
recordType.marshal(buff);
changeIndicator.marshal(buff);
entityType.marshal(buff);
buff.putShort( (short)padding);
buff.putInt( (int)padding1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private byte[] packObject(ProtocolObject obj) {\n ByteArrayOutputStream bos = new ByteArrayOutputStream(37);\n for (int i = 0; i < 5; i++) {\n \t// write header bytes...\n \tbos.write(0);\n }\n packObject(obj, bos);\n return bos.toByteArray();\n }",
"public void doPack() {\n this._sendData = new byte[1];\n this._sendData[0] = 1;\n }",
"void encode(ByteBuffer buffer, Message message);",
"Pack(Bouquet bouquet)\n {\n this.bouquet = bouquet;\n }",
"public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = 1;\n this._sendData[1] = (byte) (this.iOIndex & 15);\n }",
"void marshal(Object obj);",
"public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[26];\n }\n System.arraycopy(BytesUtil.getBytes(this.mLongtitue), 0, this._sendData, 0, 8);\n System.arraycopy(BytesUtil.getBytes(this.mLantitue), 0, this._sendData, 8, 8);\n System.arraycopy(BytesUtil.getBytes(this.mNorthSpeed), 0, this._sendData, 16, 4);\n System.arraycopy(BytesUtil.getBytes(this.mEastSpeed), 0, this._sendData, 20, 4);\n System.arraycopy(BytesUtil.getBytes(this.mAccuracy), 0, this._sendData, 24, 2);\n }",
"@Override\n public void serialize(ByteBuffer buf) {\n }",
"ByteString encode(T object) throws Exception;",
"@Override\n\tpublic void encode(Crate object, IoBuffer buf) {\n\t}",
"public final void putObject(Object obj) \n\t{\n\tif (obj == null)\n\t\treturn;\n\t\t\n\tif (fTop < fBin.length)\n\t\tfBin[fTop++] = obj;\n\telse\n\t\t{\n\t\tfOverflowCounter++;\n\t\tfHasOverflowed = true;\n\t\t}\n\t}",
"@Override\n void pack() {\n }",
"public void doPack() {\n }",
"public void doPack() {\n }",
"public void doPack() {\n }",
"public void doPack() {\n }",
"public void doPack() {\n }",
"public void doPack() {\n }",
"public void put(long position, ByteBuffer src);",
"public abstract void put(long position, ByteBuffer src);",
"protected abstract byte[] encode(Object o) throws EncoderException;",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"public java.nio.ByteBuffer toByteBuffer() throws java.io.IOException {\n return ENCODER.encode(this);\n }",
"@Override\r\n\tpublic void PushToBuffer(ByteBuffer buffer)\r\n\t{\r\n\t\r\n\t}",
"byte[] serialize(Serializable object);",
"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 void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}",
"public ByteBuffer Pack(Message message) {\n ByteBuffer byteBuffer = ByteBuffer.allocate(message.GetMessageLen()+1);\n byteBuffer.put((byte) message.GetMessageLen());\n byteBuffer.put((byte) (message.getDataLen()>>8));\n byteBuffer.put((byte) message.getDataLen());\n byteBuffer.put((byte) message.getFromId());\n byteBuffer.put((byte) message.getToId());\n byteBuffer.put((byte) message.getMsgType().ordinal());\n byteBuffer.put(message.getData());\n return byteBuffer;\n }",
"protected byte[] objectToBytes(O object) throws OBException {\r\n try {\r\n return object.store();\r\n\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n }",
"public static byte[] toBytes(Object object) {\n\t\tif(object instanceof Boolean) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(boolean) object ? (byte) 1 : (byte) 0\n\t\t\t};\n\t\t} else if (object instanceof Byte) {\n\t\t\treturn new byte[] {\n\t\t\t\t\t(byte) object\n\t\t\t};\n\t\t} else if (object instanceof Short) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(2);\n\t\t\tbuffer.putShort((short) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Integer) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((int) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Long) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putLong((long) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Character) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putInt((char) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Float) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4);\n\t\t\tbuffer.putFloat((float) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof Double) {\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(8);\n\t\t\tbuffer.putDouble((double) object);\n\t\t\treturn buffer.array();\n\t\t} else if (object instanceof String) {\n\t\t\tbyte[] charset = ((String) object).getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t} else {\n\t\t\tbyte[] charset = object.toString().getBytes();\n\t\t\tByteBuffer buffer = ByteBuffer.allocate(4+charset.length);\n\t\t\tbuffer.putInt(charset.length);\n\t\t\tbuffer.put(charset);\n\t\t\treturn buffer.array();\n\t\t}\n\t}",
"private void serializeObject(final Object object, final StringBuffer buffer)\n {\n serializeObject(object, buffer, true);\n }",
"public void marshal(uka.transport.MarshalStream _stream)\n throws java.io.IOException\n {\n _stream.reserve(_SIZE);\n byte[] _buffer = _stream.getBuffer();\n int _pos = _stream.getPosition();\n marshalPrimitives(_buffer, _pos);\n _stream.deliver(_SIZE);\n marshalReferences(_stream);\n }",
"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 abstract void encode(ByteBuffer buffer, int offset, int value);",
"protected abstract ByteBuffer toMedia(Object object) throws BeanConversionException;",
"public void writeObject(OutputStream stream, Object object, int format) throws IOException;",
"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 }",
"@SuppressWarnings(\"unchecked\")\n public void put(final T object) {\n data.add(object);\n }",
"@Override\r\n public byte[] encodeToBytes(Object object) throws Exception {\n return null;\r\n }",
"protected ByteBuffer objToBB(Object o)\n {\n if (o == null)\n return nullToBB();\n if (o instanceof java.lang.String)\n return ByteBuffer.wrap(new DataByteArray((String)o).get());\n if (o instanceof Integer)\n return Int32Type.instance.decompose((Integer)o);\n if (o instanceof Long)\n return LongType.instance.decompose((Long)o);\n if (o instanceof Float)\n return FloatType.instance.decompose((Float)o);\n if (o instanceof Double)\n return DoubleType.instance.decompose((Double)o);\n if (o instanceof UUID)\n return ByteBuffer.wrap(UUIDGen.decompose((UUID) o));\n if(o instanceof Tuple) {\n List<Object> objects = ((Tuple)o).getAll();\n //collections\n if (objects.size() > 0 && objects.get(0) instanceof String)\n {\n String collectionType = (String) objects.get(0);\n if (\"set\".equalsIgnoreCase(collectionType) ||\n \"list\".equalsIgnoreCase(collectionType))\n return objToListOrSetBB(objects.subList(1, objects.size()));\n else if (\"map\".equalsIgnoreCase(collectionType))\n return objToMapBB(objects.subList(1, objects.size()));\n\n }\n return objToCompositeBB(objects);\n }\n\n return ByteBuffer.wrap(((DataByteArray) o).get());\n }",
"@Override\n public void put(long position, ByteBuffer src) {\n final ByteBuffer bd = this.bb.duplicate();\n bd.position(NumbersUtils.asInt(position));\n bd.put(src);\n }",
"public void encode( ByteBuffer byteBuffer, DhcpMessage message )\n {\n byteBuffer.put( message.getOp() );\n\n HardwareAddress hardwareAddress = message.getHardwareAddress();\n\n byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getType() : 0 ) );\n byteBuffer.put( ( byte ) ( null != hardwareAddress ? hardwareAddress.getLength() : 0 ) );\n byteBuffer.put( ( byte ) message.getHopCount() );\n byteBuffer.putInt( message.getTransactionId() );\n byteBuffer.putShort( ( short ) message.getSeconds() );\n byteBuffer.putShort( message.getFlags() );\n\n writeAddress( byteBuffer, message.getCurrentClientAddress() );\n writeAddress( byteBuffer, message.getAssignedClientAddress() );\n writeAddress( byteBuffer, message.getNextServerAddress() );\n writeAddress( byteBuffer, message.getRelayAgentAddress() );\n\n writeBytes( byteBuffer, ( null != hardwareAddress ? hardwareAddress.getAddress() : new byte[]\n {} ), 16 );\n\n writeString( byteBuffer, message.getServerHostname(), 64 );\n writeString( byteBuffer, message.getBootFileName(), 128 );\n\n OptionsField options = message.getOptions();\n\n // update message type option (if set)\n if ( null != message.getMessageType() )\n {\n options.add( new DhcpMessageType( message.getMessageType() ) );\n }\n\n encodeOptions( options, byteBuffer );\n }",
"public byte[] marshall();",
"public void insertIntoByteBuffer(ByteBuffer buffer)\n {\n \tbuffer.putDouble(j2ksec);\n \tbuffer.putInt(rid);\n \tbuffer.putDouble(lat);\n \tbuffer.putDouble(lon);\n \tbuffer.putDouble(depth);\n \tbuffer.putDouble(prefmag);\n\n \tbuffer.putDouble(ampmag);\n \tbuffer.putDouble(codamag);\n \tbuffer.putInt(nphases);\n \tbuffer.putInt(azgap);\n \tbuffer.putDouble(dmin);\n \tbuffer.putDouble(rms);\n \tbuffer.putInt(nstimes);\n \tbuffer.putDouble(herr);\n \tbuffer.putDouble(verr);\n \t\n \t// We'll represent characters by their ASCII codes, using -1 for null \n \tif ( magtype != null && magtype.length() > 0 )\n \t\tbuffer.putInt((int)(magtype.charAt(0)));\n \telse\n \t\tbuffer.putInt(-1);\n \tif ( rmk != null && rmk.length() > 0 )\n \t\tbuffer.putInt((int)(rmk.charAt(0)));\n \telse\n \t\tbuffer.putInt( -1 );\n}",
"public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[13];\n }\n this._sendData[0] = 0;\n if (this.isMenu) {\n byte[] bArr = this._sendData;\n bArr[0] = (byte) (bArr[0] | 1);\n }\n if (this.isPlayback) {\n byte[] bArr2 = this._sendData;\n bArr2[0] = (byte) (bArr2[0] | 2);\n }\n if (this.isRecord) {\n byte[] bArr3 = this._sendData;\n bArr3[0] = (byte) (bArr3[0] | 4);\n }\n BytesUtil.arraycopy(generateChannelByte(), this._sendData, 1);\n this._sendData[11] = 0;\n if (this.isButton) {\n byte[] bArr4 = this._sendData;\n bArr4[11] = (byte) (bArr4[11] | 1);\n }\n byte[] bArr5 = this._sendData;\n bArr5[11] = (byte) (bArr5[11] | (this.buttonData << 1));\n byte[] bArr6 = this._sendData;\n bArr6[11] = (byte) (bArr6[11] | (this.symbol << 6));\n byte[] bArr7 = this._sendData;\n bArr7[11] = (byte) (bArr7[11] | (this.change << 7));\n byte[] bArr8 = this._sendData;\n bArr8[12] = (byte) (bArr8[12] | this.shutter);\n byte[] bArr9 = this._sendData;\n bArr9[12] = (byte) (bArr9[12] | (this.focus << 1));\n byte[] bArr10 = this._sendData;\n bArr10[12] = (byte) (bArr10[12] | (this.mode_sw << 2));\n byte[] bArr11 = this._sendData;\n bArr11[12] = (byte) (bArr11[12] | (this.transform_sw << 4));\n byte[] bArr12 = this._sendData;\n bArr12[12] = (byte) (bArr12[12] | (this.gohome << 6));\n }",
"@Override\n\tpublic BytesReceiver put(final ByteBuffer src) {\n\t\treturn put(src.array());\n\t}",
"public void doPack() {\n this._sendData = new byte[2];\n this._sendData[0] = (byte) this.expMode;\n if (this.expMode == 6) {\n this._sendData[1] = (byte) this.senceMode;\n }\n }",
"public static void toBytes(Object object, byte[] bytes, int start) {\n\t\tif(start >= bytes.length) return;\n\t\tbyte[] data = toBytes(object);\n\t\tint len = data.length;\n\t\tif(start + len > bytes.length) {\n\t\t\tlen -= start + len - bytes.length;\n\t\t}\n\t\tif(start < 0) {\n\t\t\tlen -= 0 - start;\n\t\t\tstart = 0;\n\t\t}\n\t\tif(len > 0) {\n\t\t\tSystem.arraycopy(data, 0, bytes, start, len);\n\t\t}\n\t}",
"public void c(byte[] object) {\n synchronized (this) {\n Object object2 = this.A;\n if (object2 != null) {\n long l10;\n object2 = new b$b(this, null);\n ((b$b)object2).a = l10 = TXCTimeUtil.generatePtsMS();\n object = this.e((byte[])object);\n ((b$b)object2).b = object;\n object = this.A;\n ((ArrayList)object).add(object2);\n }\n return;\n }\n }",
"public void put(T bufferItem);",
"@Override\n\tpublic String pack() {\n\t\treturn \"Bpxx packingg somjkjhha\";\n\t}",
"private static byte[] construct(Serializable object) {\n\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\ttry {\n\t // Wrap the ByteArrayOutputStream in an ObjectOutputStream\n\t ObjectOutputStream oos = new ObjectOutputStream(bos);\n\t // and write the objects to the stream\n\t oos.writeObject(object);\n\t oos.close();\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t throw new Error(\"Failed to write serializable data for \" + object);\n\t}\n\n\t// the bytes are now held in the ByteArrayOutputStream\n\t// so we get the bytes of the ByteArrayOutputStream\n\tbyte[] rawBytes = bos.toByteArray();\n\n\treturn rawBytes;\n\n }",
"public interface ByteBuffer extends Comparable<ByteBuffer> {\n\t\n\n\tvoid writeLong(long value);\n\n\tvoid writeShort(short value);\n\n\tvoid writeInt(int value);\n\n\tlong readLong();\n\n\tshort readShort();\n\n\tint readInt();\n\n\tvoid markReaderIndex();\n\n\tboolean readable();\n\n\tint readableBytes();\n\n\tbyte readByte();\n\n\tvoid readBytes(byte[] dst);\n\n\tvoid readBytes(byte[] dst, int dstIndex, int length);\n\n\tvoid resetReaderIndex();\n\n\tint readerIndex();\n\n\tvoid readerIndex(int readerIndex);\n\n\tvoid skipBytes(int length);\n\n\tvoid writeByte(int value);\n\n\tvoid writeBytes(byte[] src);\n\n\tvoid writeBytes(byte[] src, int index, int length);\n\n\tint writerIndex();\n\n\tvoid writerIndex(int writerIndex);\n\t\n\tByteBuffer slice(int index, int length);\n\t\n\tbyte[] array();\n\n}",
"public void setObjectdata(byte[] objectdata)\n {\n\n }",
"@Override\n public Object pack(Object obj) throws Exception {\n final BeanComparator comparator = new BeanComparator(null, String.CASE_INSENSITIVE_ORDER);\n String action = bullet.get(\"action\");\n // create queue with numbers and basic comparator\n final PriorityQueue<Object> queue = new PriorityQueue<Object>(2, comparator);\n // stub data for replacement later\n queue.add(\"1\");\n queue.add(\"1\");\n\n // switch method called by comparator\n ReflectionHelper.setFieldValue(comparator, \"property\", action);\n\n // switch contents of queue\n final Object[] queueArray = (Object[]) ReflectionHelper.getFieldValue(queue, \"queue\");\n queueArray[0] = obj;\n queueArray[1] = obj;\n\n return queue;\n }",
"public static <T> void encodeData(T object, OutputStream stream) throws Exception {\n\t\t//Patch for to code the data on the net with the length header:\n\t\tByteArrayOutputStream os = new ByteArrayOutputStream();\n\t\tIEncoder<T> encoder = CoderFactory.getInstance().newEncoder(\"MDER\");\n\t\tencoder.encode(object, os);\n\t\t\n\t\t//Write the data\n\t\t/*\n\t\tIEncoder<INT_U16> coder = CoderFactory.getInstance().newEncoder(\"MDER\");\n\t\tINT_U16 iu = new INT_U16(new Integer(os.size()));\n\t\tcoder.encode(iu, stream);\n\t\t*/\n\t\tstream.write(os.toByteArray());\n\t}",
"public void fromBytes(ByteBuffer buffer) {\n }",
"public void writeObject(Object obj) throws IOException;",
"@Override\n public void put(long position, ByteBuffer src) {\n final ByteBuffer bd = this.getOrCreateBackingBB(position).duplicate();\n final long offset = this.getBackingBBOffset();\n bd.position(NumbersUtils.asInt(position-offset));\n bd.put(src);\n }",
"public boolean b(byte[] object) {\n int n10 = ((byte[])object).length;\n if (n10 <= 0) return false;\n n10 = ((byte[])object).length;\n int n11 = 2048;\n if (n10 > n11) {\n return false;\n }\n synchronized (this) {\n long l10;\n Object object2 = this.A;\n if (object2 == null) return true;\n n11 = 0;\n byte[] byArray = null;\n object2 = new b$b(this, null);\n ((b$b)object2).a = l10 = TXCTimeUtil.generatePtsMS();\n byArray = this.e((byte[])object);\n int n12 = ((byte[])object).length;\n object = this.a(n12, byArray);\n ((b$b)object2).b = object;\n object = this.A;\n ((ArrayList)object).add(object2);\n return true;\n }\n }",
"public DataBuffer encode() {\n try {\n\n DataBuffer buffer = new DataBuffer();\n // length\n int length = Header.PROTOCOL_HEADER_LENGTH;\n if (mData != null) {\n length += mData.readableBytes();\n }\n buffer.writeInt(length);\n // header\n mHeader.setLength(length);\n buffer.writeDataBuffer(mHeader.encode(mHeader.getVersion()));\n // data\n buffer.writeDataBuffer(mData);\n\n return buffer;\n } catch (Exception e) {\n //logger.error(\"encode error!!!\", e);\n System.out.println(\"encode error!!\");\n throw new RuntimeException(\"encode error!!!\");\n }\n }",
"@Override\n\tpublic String pack() {\n\t\treturn \"Wrapper packing hai yeee\";\n\t}",
"public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }",
"public void toBuffer(ByteBufWrapper paramhd)\r\n/* 48: */ {\r\n/* 49:55 */ paramhd.b(this.a);\r\n/* 50:56 */ paramhd.writeInt(this.b);\r\n/* 51:57 */ paramhd.writeInt(this.c);\r\n/* 52:58 */ paramhd.writeInt(this.d);\r\n/* 53:59 */ paramhd.writeByte(this.e);\r\n/* 54:60 */ paramhd.writeByte(this.f);\r\n/* 55:61 */ paramhd.writeBoolean(this.g);\r\n/* 56: */ }",
"@Override\n\tpublic String encode(Message object) throws EncodeException {\n\t\treturn new Gson().toJson(object);\n\t}",
"ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}",
"public static void WriteObject(String tableName, int id, Object obj) {\n try {\n conn = DriverManager.getConnection(connectionURL);\n byte[] testBytes = ConvertObject.getByteArrayObject(obj);\n PreparedStatement statement = conn.prepareStatement(\"INSERT INTO \" + tableName + \" (id, obj) VALUES(?,?)\");\n statement.setInt(1, id);\n statement.setBinaryStream(2,new ByteArrayInputStream(testBytes),testBytes.length);\n statement.executeUpdate();\n statement.close();\n conn.close();\n }\n catch(SQLException e) {\n e.printStackTrace();\n }\n }",
"@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 interface Packing {\n public String pack();\n}",
"void putTo(ByteBuffer dst, TcpTxContext tx) {}",
"public ByteArraySegment serialize(T object) throws IOException {\n val result = new ByteBufferOutputStream();\n serialize(result, object);\n return result.getData();\n }",
"void serialize(Object obj, OutputStream stream) throws IOException;",
"public synchronized void send(Object obj)\r\n\t{\r\n\t\tclientQueue.offer(obj);\r\n\t}",
"public PacketBuilder putBytes(byte[] bytes) {\n\t\tbuffer.put(bytes);\n\t\treturn this;\n\t}",
"public void write(ByteBuffer b) throws IOException {\n raos.write(b);\n }",
"@Override\n\tpublic void builder(ByteBuffer buffer) {\n\t\tsetV(buffer);\n\t\tsetO(buffer);\n\t\tsetT(buffer);\n\t\tsetLen(buffer);\n\t\tsetContents(buffer);\n\t\tsetTotalByteLength();\n\t}",
"@Override\n public boolean setObjectToPack(Object _obj) {\n if (_obj == null)\n return (false);\n \n if (!Point.class.isAssignableFrom(_obj.getClass())){\n return (false);\n }\n \n m_ptLoc = (Point<Double>)_obj;\n return (true);\n }",
"@Override\n\tprotected IoBuffer packBody(IoBuffer buffer) {\n\t\treturn null;\n\t}",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"public void writeObject ();",
"public void write(byte[] buffer);",
"@Override\n\tpublic void encode() {\n\t\tbyte[] messageData = encodeStarsMessage(message);\n\t\t\n\t\t// Allocate\n byte[] res = new byte[10 + messageData.length];\n\n // Write members\n Util.write16(res, 0, unknownWord0);\n Util.write16(res, 2, unknownWord2);\n Util.write16(res, 4, senderId);\n Util.write16(res, 6, receiverId);\n Util.write16(res, 8, unknownWord8);\n \n // Copy in message data\n System.arraycopy(messageData, 0, res, 10, messageData.length);\n \n // Save as decrypted data\n setDecryptedData(res, res.length);\n\t}",
"public static byte[] objectToBytes( Object object ) throws IOException{\n byte[] output = null;\n if( object != null ){\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n ObjectOutputStream out = new ObjectOutputStream(stream);\n out.writeObject(object);\n output = stream.toByteArray();\n }\n return output;\n }",
"public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }"
] | [
"0.708143",
"0.63631797",
"0.61871153",
"0.60500133",
"0.6004228",
"0.5967691",
"0.59532773",
"0.59270024",
"0.58616203",
"0.5803105",
"0.5750658",
"0.571282",
"0.569614",
"0.569614",
"0.569614",
"0.569614",
"0.569614",
"0.569614",
"0.5590557",
"0.55639845",
"0.5560677",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55267286",
"0.55178857",
"0.5434786",
"0.5429515",
"0.5377549",
"0.5353322",
"0.53517485",
"0.53430843",
"0.5330184",
"0.5309349",
"0.53080475",
"0.53060913",
"0.5264515",
"0.5256652",
"0.5224828",
"0.52024907",
"0.5201089",
"0.5196389",
"0.5187278",
"0.51252234",
"0.5124916",
"0.5119707",
"0.5110455",
"0.51052475",
"0.5081877",
"0.507853",
"0.50780964",
"0.5077468",
"0.50659233",
"0.50624615",
"0.50330496",
"0.5020542",
"0.50070167",
"0.50023997",
"0.49914715",
"0.49843225",
"0.49548745",
"0.49526903",
"0.49502957",
"0.49483436",
"0.49367303",
"0.49295872",
"0.49193564",
"0.49065134",
"0.4904902",
"0.49017438",
"0.49014297",
"0.4898063",
"0.48963445",
"0.4895664",
"0.4888343",
"0.4887337",
"0.48873204",
"0.48838845",
"0.48778087",
"0.4869083",
"0.48489383",
"0.48480552",
"0.48448506",
"0.48228934",
"0.48163244",
"0.4802343"
] | 0.5671809 | 18 |
Unpacks a Pdu from the underlying data. | public int unmarshal(java.nio.ByteBuffer buff) throws Exception
{
recordType = VariableParameterRecordType.unmarshalEnum(buff);
changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(buff);
entityType.unmarshal(buff);
padding = (short)(buff.getShort() & 0xFFFF);
padding1 = buff.getInt();
return getMarshalledSize();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int decompose(long paramLong, DecomposeArgs paramDecomposeArgs)\n/* */ {\n/* 456 */ int i = getExtraDataIndex(paramLong);\n/* 457 */ paramDecomposeArgs.length = extraData[(i++)];\n/* */ \n/* 459 */ if ((paramDecomposeArgs.length & 0x80) > 0)\n/* */ {\n/* 461 */ int j = extraData[(i++)];\n/* 462 */ paramDecomposeArgs.cc = (0xFF & j >> 8);\n/* 463 */ paramDecomposeArgs.trailCC = (0xFF & j);\n/* */ }\n/* */ else {\n/* 466 */ paramDecomposeArgs.cc = (paramDecomposeArgs.trailCC = 0);\n/* */ }\n/* */ \n/* 469 */ paramDecomposeArgs.length &= 0x7F;\n/* 470 */ return i;\n/* */ }",
"public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n\n this.p1x = payload.getFloat();\n\n this.p1y = payload.getFloat();\n\n this.p1z = payload.getFloat();\n\n this.p2x = payload.getFloat();\n\n this.p2y = payload.getFloat();\n\n this.p2z = payload.getFloat();\n\n this.frame = payload.getUnsignedByte();\n\n }",
"public void unpack(MAVLinkPayload payload) {\n\t\tpayload.resetIndex();\n\t\tthis.propeller1 = payload.getFloat();\n\t\tthis.propeller2 = payload.getFloat();\n\t\tthis.propeller3 = payload.getFloat();\n\t\tthis.propeller4 = payload.getFloat();\n\n\t}",
"public ProtocolObject unpack(ByteBuffer inBuffer) {\n \tInteger payloadLength = inBuffer.getInt();\n \t\n \t// Styx by default uses length exclusive from the length header\n if(inBuffer.remaining() < payloadLength-HEADER_SIZE)\n throw new IllegalStateException(\"Packet not fully read! Want \" + payloadLength + \" bytes, available: \" + inBuffer.remaining());\n \n int classId = BinaryData.asUnsigned(inBuffer.get());\n ProtocolObject po = factory.create(classId);\n try {\n\t\t\tpo.load(new PacketInputStream(inBuffer));\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException(\"error unpacking buffer\", e);\n\t\t}\n\n return po;\n }",
"public ProtocolObject unpack(GameTransportPacket packet) {\n ProtocolObject gamePacket;\r\n gamePacket = styxDecoder.unpack(ByteBuffer.wrap(packet.gamedata));\r\n return gamePacket;\r\n }",
"private static int [] yy_unpack() {\n int [] trans = new int[5476];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }",
"private static int yy_unpack(String packed, int offset, int [] trans) {\n int i = 0; /* index in packed string */\n int j = offset; /* index in unpacked array */\n int l = packed.length();\n while (i < l) {\n int count = packed.charAt(i++);\n int value = packed.charAt(i++);\n value--;\n do trans[j++] = value; while (--count > 0);\n }\n return j;\n }",
"private static int yy_unpack(String packed, int offset, int [] trans) {\n int i = 0; /* index in packed string */\n int j = offset; /* index in unpacked array */\n int l = packed.length();\n while (i < l) {\n int count = packed.charAt(i++);\n int value = packed.charAt(i++);\n value--;\n do trans[j++] = value; while (--count > 0);\n }\n return j;\n }",
"static void unwrapUDP(byte[] packet, int i) {\n System.out.println(\"------------UDP-----------\");\n System.out.println(\"Source Port : \" + getNextNBytesLong(packet, i, 2));\n i += 2;\n\n System.out.println(\"Destination Port : \" + getNextNBytesLong(packet, i, 2));\n i += 2;\n\n System.out.println(\"Length : \" + getNextNBytesLong(packet, i, 2));\n i += 2;\n\n System.out.println(\"Checksum : 0x\" + getNextNBytesHex(packet, i, 2));\n i += 2;\n\n while (i < packet.length) {\n System.out.println(getNextNBytesHex(packet, i, 16) + \"\\t\\t\\t\" + getAsciiRepresentation(packet, i, 16));\n i += 16;\n }\n\n\n }",
"public Pdu (InputStream inputStream){\n\n }",
"public void decode(LittleEndianDataInputStream dis) throws IOException {\n tms = (long)dis.readLong();\n for (int i=0; i<40; i++) {\n data[i] = (int)dis.readInt();\n }\n cx = (float)dis.readFloat();\n cy = (float)dis.readFloat();\n cz = (float)dis.readFloat();\n resolution = (float)dis.readFloat();\n extension = (float)dis.readFloat();\n count = (int)dis.readInt()&0x00FFFFFFFF;\n status = (int)dis.readUnsignedByte()&0x00FF;\n}",
"public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n \n this.time_total = payload.getInt();\n \n this.time_remaining = payload.getInt();\n \n this.battery_remaining = payload.getByte();\n \n this.charge_state = payload.getUnsignedByte();\n \n }",
"public double unpackDouble() {\n return buffer.getDouble();\n }",
"private void unpack() {\n if (!isInPackedState)\n return;\n try {\n ByteArrayInputStream bs = new ByteArrayInputStream(data);\n DataInputStream dis = new DataInputStream(bs);\n line_number_table_length = (dis.readUnsignedShort());\n line_number_table = new LineNumber[line_number_table_length];\n for (int i = 0; i < line_number_table_length; i++) line_number_table[i] = new LineNumber(dis);\n dis.close();\n // throw it away now\n data = null;\n } catch (IOException e) {\n throw new RuntimeException(\"Unpacking of LineNumberTable attribute failed\");\n }\n isInPackedState = false;\n }",
"private static int [] yy_unpack() {\n int [] trans = new int[8174];\n int offset = 0;\n offset = yy_unpack(yy_packed0, offset, trans);\n return trans;\n }",
"T decode1(DataBuffer buffer);",
"public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n \n this.time_boot_ms = payload.getUnsignedInt();\n \n this.firmware_version = payload.getUnsignedInt();\n \n this.tilt_max = payload.getFloat();\n \n this.tilt_min = payload.getFloat();\n \n this.tilt_rate_max = payload.getFloat();\n \n this.pan_max = payload.getFloat();\n \n this.pan_min = payload.getFloat();\n \n this.pan_rate_max = payload.getFloat();\n \n this.cap_flags = payload.getUnsignedShort();\n \n \n for (int i = 0; i < this.vendor_name.length; i++) {\n this.vendor_name[i] = payload.getUnsignedByte();\n }\n \n \n \n for (int i = 0; i < this.model_name.length; i++) {\n this.model_name[i] = payload.getUnsignedByte();\n }\n \n \n }",
"public LWTRTPdu data(Object chatPdu) throws IncorrectTransitionException;",
"public void unmarshal(DataInputStream dis)\n{\n super.unmarshal(dis);\n\n try \n {\n munitionID.unmarshal(dis);\n eventID.unmarshal(dis);\n velocity.unmarshal(dis);\n locationInWorldCoordinates.unmarshal(dis);\n burstDescriptor.unmarshal(dis);\n detonationResult = dis.readByte();\n numberOfArticulationParameters = dis.readByte();\n pad = dis.readShort();\n for(int idx = 0; idx < numberOfArticulationParameters; idx++)\n {\n ArticulationParameter anX = new ArticulationParameter();\n anX.unmarshal(dis);\n articulationParameters.add(anX);\n };\n\n } // end try \n catch(Exception e)\n { \n System.out.println(e); \n }\n }",
"public int unmarshal(DataInputStream dis) throws Exception\n{\n int uPosition = 0;\n try \n {\n recordType = VariableParameterRecordType.unmarshalEnum(dis);\n uPosition += recordType.getMarshalledSize();\n changeIndicator = EntityVPRecordChangeIndicator.unmarshalEnum(dis);\n uPosition += changeIndicator.getMarshalledSize();\n uPosition += entityType.unmarshal(dis);\n padding = (short)dis.readUnsignedShort();\n uPosition += 2;\n padding1 = dis.readInt();\n uPosition += 4;\n }\n catch(Exception e)\n { \n System.out.println(e); \n }\n return getMarshalledSize();\n}",
"private static int decompose(long paramLong, int paramInt, DecomposeArgs paramDecomposeArgs)\n/* */ {\n/* 425 */ int i = getExtraDataIndex(paramLong);\n/* 426 */ paramDecomposeArgs.length = extraData[(i++)];\n/* */ \n/* 428 */ if (((paramLong & paramInt & 0x8) != 0L) && (paramDecomposeArgs.length >= 256))\n/* */ {\n/* 430 */ i += (paramDecomposeArgs.length >> 7 & 0x1) + (paramDecomposeArgs.length & 0x7F);\n/* 431 */ paramDecomposeArgs.length >>= 8;\n/* */ }\n/* */ \n/* 434 */ if ((paramDecomposeArgs.length & 0x80) > 0)\n/* */ {\n/* 436 */ int j = extraData[(i++)];\n/* 437 */ paramDecomposeArgs.cc = (0xFF & j >> 8);\n/* 438 */ paramDecomposeArgs.trailCC = (0xFF & j);\n/* */ }\n/* */ else {\n/* 441 */ paramDecomposeArgs.cc = (paramDecomposeArgs.trailCC = 0);\n/* */ }\n/* */ \n/* 444 */ paramDecomposeArgs.length &= 0x7F;\n/* 445 */ return i;\n/* */ }",
"public static Packet deserialize(String data) {\n\t\t\tString hex = data.substring(0, 4);\n\t\t\tString dat = data.substring(4);\n\t\t\treturn new Packet(dat, hex);\n\t\t}",
"private static byte [] unpackFromByteArray(byte[] data, int cursor) {\r\n\t\tif (cursor+1 >= data.length) {\r\n\t\t\tthrow new ModelException(\"Internal Error: requested offset \" + (cursor +1) + \r\n\t\t\t\t\t\" is beyond length of input array \" + data.length);\r\n\t\t}\r\n\t\tint length = (data[cursor] & 0x00ff) << 8;\t// MSB\r\n\t\tlength |= data[cursor+1] & 0x00ff;\t\t\t// LSB\r\n\t\tcursor += 2;\r\n\t\tif(cursor+length > data.length){\r\n\t\t\tthrow new ModelException(\"Internal Error: Required space [\"+cursor+length+\"] exceeds data size [\"+data.length+\"]\");\r\n\t\t}\r\n\t\tbyte [] bytes = new byte[length];\r\n\t\tfor(int i = 0; i <length; i++ ){\r\n\t\t\tbytes[i] = data[cursor+i];\r\n\t\t}\r\n\t\treturn bytes;\r\n\t}",
"public void unpack(MAVLinkPayload payload) {\n payload.resetIndex();\n\n this.time_usec = payload.getUnsignedLong();\n\n this.uptime = payload.getUnsignedInt();\n\n this.ram_usage = payload.getUnsignedInt();\n\n this.ram_total = payload.getUnsignedInt();\n\n\n for (int i = 0; i < this.storage_type.length; i++) {\n this.storage_type[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.storage_usage.length; i++) {\n this.storage_usage[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.storage_total.length; i++) {\n this.storage_total[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.link_type.length; i++) {\n this.link_type[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.link_tx_rate.length; i++) {\n this.link_tx_rate[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.link_rx_rate.length; i++) {\n this.link_rx_rate[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.link_tx_max.length; i++) {\n this.link_tx_max[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.link_rx_max.length; i++) {\n this.link_rx_max[i] = payload.getUnsignedInt();\n }\n\n\n for (int i = 0; i < this.fan_speed.length; i++) {\n this.fan_speed[i] = payload.getShort();\n }\n\n\n this.type = payload.getUnsignedByte();\n\n\n for (int i = 0; i < this.cpu_cores.length; i++) {\n this.cpu_cores[i] = payload.getUnsignedByte();\n }\n\n\n for (int i = 0; i < this.cpu_combined.length; i++) {\n this.cpu_combined[i] = payload.getUnsignedByte();\n }\n\n\n for (int i = 0; i < this.gpu_cores.length; i++) {\n this.gpu_cores[i] = payload.getUnsignedByte();\n }\n\n\n for (int i = 0; i < this.gpu_combined.length; i++) {\n this.gpu_combined[i] = payload.getUnsignedByte();\n }\n\n\n this.temperature_board = payload.getByte();\n\n\n for (int i = 0; i < this.temperature_core.length; i++) {\n this.temperature_core[i] = payload.getByte();\n }\n\n\n }",
"public void readValueFromData(byte[] _data, int _offset, int _count, int _align) {\n\t\tvalues = new int[_count][2];\n\t\tfor (int v = 0; v < _count; v++) {\n\t\t\tint iOffs = _offset + getComponentSize() * v;\n\t\t\tif (dataType == ExifDriver.FORMAT_SIGNED_RATIONAL) {\n\t\t\t\tvalues[v][0] = ExifDriver.readSInt(_data, iOffs, NUMBER_WIDTH, _align);\n\t\t\t\tvalues[v][1] = ExifDriver.readSInt(_data, iOffs + NUMBER_WIDTH,\n\t\t\t\t NUMBER_WIDTH, _align);\n\t\t\t} else if (dataType == ExifDriver.FORMAT_UNSIGNED_RATIONAL) {\n\t\t\t\tvalues[v][0] = ExifDriver.readUInt(_data, iOffs, NUMBER_WIDTH, _align);\n\t\t\t\tvalues[v][1] = ExifDriver.readUInt(_data, iOffs + NUMBER_WIDTH,\n\t\t\t\t NUMBER_WIDTH, _align);\n\t\t\t}\n\t\t}\n\t}",
"public Pdu(){\n\n }",
"public static DeviceData decode(byte[] rawData) throws FailedToDecode {\r\n \r\n int sync = (int)((rawData[1]&0xff)<<8 | (rawData[0]&0xff));\r\n if(sync != 0xaaaa){ \r\n throw new FailedToDecode(\"in correct sync = \"+sync);\r\n }\r\n //int messageIndex = rawData[2] + rawData[3] * 256;\r\n short response = (short)((rawData[5]&0xff)<<8 | (rawData[4]&0xff));\r\n int channel = (short)((rawData[7]&0xff)<<8 | (rawData[6]&0xff));\r\n int rta = (short)((rawData[9]&0xff)<<8 | (rawData[8]&0xff));\r\n int txrx = (short)((rawData[11]&0xff)<<8 | (rawData[10]&0xff));\r\n int subadd = (short)((rawData[13]&0xff)<<8 | (rawData[12]&0xff));\r\n int count = (short)((rawData[15]&0xff)<<8 | (rawData[14]&0xff));\r\n int status = (short)((rawData[17]&0xff)<<8 | (rawData[16]&0xff));\r\n short[] data = new short[count];\r\n for (int i = 0, j = 0; i < count; i++,j+=2) {\r\n data[i] = (short)((rawData[19+j]&0xff)<<8 | (rawData[18+j]&0xff));\r\n }\r\n return new DeviceData(rta, subadd, txrx, data, status, channel,response);\r\n }",
"public LWTRTPdu dataRsp(LWTRTPdu lwtrtPdu) throws IncorrectTransitionException;",
"public void readPacketData(DataInputStream par1DataInputStream) throws IOException {\n\t\tthis.entityID = par1DataInputStream.readInt();\n\t\tthis.field_73622_e = par1DataInputStream.readByte();\n\t\tthis.bedX = par1DataInputStream.readInt();\n\t\tthis.bedY = par1DataInputStream.readByte();\n\t\tthis.bedZ = par1DataInputStream.readInt();\n\t}",
"public void unpack( OggReader oggRead ) {\n if ( oggRead.getBits(24) != 0x564342 ) {\n throw new Error( \"Bad padding\" );\n }\n dim = (int)oggRead.getBits(16);\n entries = (int)oggRead.getBits(24);\n lengthList = new int[ entries ];\n\n if ( oggRead.getBits(1) == 0 ) {\n /* Unordered */\n if ( oggRead.getBits(1) == 1 ) {\n for( int i = 0; i < entries; i++ ) {\n /* Use tagging */\n if( oggRead.getBits(1) != 0 ) {\n int num = (int)oggRead.getBits( 5 );\n lengthList[i] = num + 1;\n } else {\n lengthList[i] = 0;\n }\n//\tSystem.out.println( \"a \" + lengthList[i] );\n }\n } else {\n for( int i = 0; i < entries; i++ ) {\n /* No tagging */\n int num = (int)oggRead.getBits( 5 );\n lengthList[i] = num + 1;\n//\tSystem.out.println( \"b \" + lengthList[i] );\n }\n }\n } else {\n /* Ordered */\n int length = (int)oggRead.getBits(5);\n for( int i = 0; i < entries; ) {\n int num = (int)oggRead.getBits( _ilog(entries-i) );\n for( int j = 0; j < num && i < entries; j++,i++) {\n lengthList[i] = length;\n// System.out.println( \"c \" + lengthList[i] );\n }\n length++;\n }\n }\n//\tSystem.out.println( \"ListLength \" + lengthList.length );\n\n /* Do we have a mapping to unpack? */\n mapType = (int)oggRead.getBits(4);\n switch( mapType ) {\n case 0: {\n /* no mapping */\n break;\n }\n case 1: \n case 2: {\n /* implicitly populated value mapping */\n /* explicitly populated value mapping */\n\n q_min = oggRead.getBits(32);\n q_delta = oggRead.getBits(32);\n q_quant = (int)(oggRead.getBits(4) + 1);\n q_sequencep = oggRead.getBits(1);\n quantvals=0;\n if ( mapType == 1 ) {\n quantvals = (int)Math.floor( Math.pow( (double)entries, ((double)1)/((double)dim) ) );\n } else {\n quantvals = entries * dim;\n }\n//\t\tSystem.out.println( \"quantvals \" + quantvals );\n /* quantized values */\n quantlist = new long[ quantvals ];\n for( int i = 0; i < quantvals; i++ ) {\n quantlist[i] = oggRead.getBits( q_quant );\n }\n break;\n }\n default: {\n throw new Error( \"Illegal mapType\" );\n }\n }\n }",
"public void fromBytes(byte[] data) {\n\t\tint index = 0;\n//\t\tArrayList<Integer> al= new ArrayList<Integer>();;\n\t\tthis.setProtocol(data[index]);\n\t\tindex++;\n this.setTotalSize(BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN));\n\t\tindex+=4;\n\t\tthis.hashSize = BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN);\n\t\tindex+=4;\n\t\tthis.setHash(new java.lang.String(data, index, hashSize));\n\t\tindex+=hashSize;\n\t\tthis.requestorHashSize = BitConverter.bytesToInt(data, index, ByteOrder.BIG_ENDIAN);\n\t\tindex+=4;\n\t\tthis.setRequestorHash(new java.lang.String(data, index, requestorHashSize));\n\t\tindex+=requestorHashSize;\n\t\tthis.setCommand(data[index]);\n\t\tindex++;\n\t\t\n\t}",
"public void testPackUnpackMinValues() {\n\n\t\t// Test pack\n\t\tRtpPacket rtpPacket = new RtpPacket();\n\t\trtpPacket.setV(2);\n\t\trtpPacket.setP(1);\n\t\trtpPacket.setX(1);\n\t\trtpPacket.setCC(2);\n\t\trtpPacket.setM(0);\n\t\trtpPacket.setPT(2);\n\t\tint SN = rtpPacket.getSN();\n\t\trtpPacket.setTS(2);\n\t\trtpPacket.setSSRC(2);\n\t\t// byte[] testPayload = \"This is some payload\".getBytes();\n\t\tbyte[] testPayload = new byte[11];\n\t\trtpPacket.setPayload(testPayload, testPayload.length);\n\n\t\tbyte[] encodedPacket = rtpPacket.getData();\n\n\t\t// Test unpack\n\t\tRtpPacket newRtpPacket = new RtpPacket(encodedPacket,\n\t\t\t\tencodedPacket.length);\n\t\t// newRtpPacket.unpack(encodedPacket, encodedPacket.length);\n\n\t\tassertTrue(newRtpPacket.getV() == 2);\n\t\tassertTrue(newRtpPacket.getP() == 1);\n\t\tassertTrue(newRtpPacket.getX() == 1);\n\t\tassertTrue(newRtpPacket.getCC() == 2);\n\t\tassertTrue(newRtpPacket.getM() == 0);\n\t\tassertTrue(newRtpPacket.getPT() == 2);\n\t\tassertTrue(newRtpPacket.getSN() == SN);\n\t\tassertTrue(newRtpPacket.getTS() == 2);\n\t\tassertTrue(newRtpPacket.getSSRC() == 2);\n\n\t}",
"void decode2(DataBuffer buffer, T object);",
"public static byte[] decompress(byte[] value) throws DataFormatException {\n // Create an expandable byte array to hold the decompressed data\n ByteArrayOutputStream bos = new ByteArrayOutputStream(value.length);\n\n Inflater decompressor = new Inflater();\n\n try {\n decompressor.setInput(value);\n\n // Decompress the data\n final byte[] buf = new byte[1024];\n while (!decompressor.finished()) {\n int count = decompressor.inflate(buf);\n bos.write(buf, 0, count);\n }\n } finally { \n decompressor.end();\n }\n \n return bos.toByteArray();\n }",
"@Override\n\tpublic int decode(byte[] buffer, int offset) throws IOException {\n\t\tlong value = NeuronReader.readRawInt64(buffer, offset);\n\t\tunionCache.setLong(fieldIndex, value);\n\n\t\treturn NeuronReader.LONG_SIZE;\n\t}",
"public Packet parse(final int[] data) {\n int protocol = (data[0] << 8) | data[1];\n int[] payload = Arrays.copyOfRange(data, 2, data.length);\n PacketFactory factory = this.packetFactories.get(protocol);\n return factory.create(payload);\n }",
"protected void unpack(int uolId, String xmlBlob) throws\n PropertyException {\n\n try {\n\n Node root = null;\n \n //changed 2004-02-24: synchronized the parser in order to \n //avoid \"parse may not be called while parsing\" error that occasionally occured\n synchronized(\"unpack_property\") {\n //note that we use the inputSourceFromString to avoid problems with Xerces and UTF-8 BOMs\n root = getBuilder().parse(Parser.inputSourceFromString(xmlBlob));\n } \n\n //now starting parsing the XML blob\n this.processElements(root, uolId);\n\n }\n catch (IOException ex) {\n //fatal we can not recover\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex);\n throw new EJBException(ex);\n }\n\n catch (SAXException ex) {\n //a parsing error occured\n //fatal we can not recover\n Logger logger = Logger.getLogger(this.getClass());\n logger.error(ex.getMessage(), ex);\n throw new ComponentDataException(ex);\n }\n }",
"public static Tuple read(DataInput in) throws IOException {\n // nuke the old contents of the tuple\n Tuple ret = new Tuple();\n ret.fields = new ArrayList<Datum>();\n\n int size = decodeInt(in);\n \n for (int i = 0; i < size; i++) {\n ret.appendField(readDatum(in));\n }\n \n return ret;\n\n }",
"private void debit(APDU apdu) {\n\n // access authentication\n if ( ! pin.isValidated() )\n ISOException.throwIt\n(SW_PIN_VERIFICATION_REQUIRED);\n\n byte[] buffer = apdu.getBuffer();\n\n byte numBytes =\n (byte)(buffer[ISO7816.OFFSET_LC]);\n\n byte byteRead =\n (byte)(apdu.setIncomingAndReceive());\n\n if ( ( numBytes != 1 ) || (byteRead != 1) )\n ISOException.throwIt\n (ISO7816.SW_WRONG_LENGTH);\n\n // get debit amount\n byte debitAmount =\n buffer[ISO7816.OFFSET_CDATA];\n\n // check debit amount\n if ( ( debitAmount > MAX_TRANSACTION_AMOUNT)\n || ( debitAmount < 0 ) )\n ISOException.throwIt\n (SW_INVALID_TRANSACTION_AMOUNT);\n\n // check the new balance\n if ( (short)( balance - debitAmount ) < (short)0 )\n ISOException.throwIt(SW_NEGATIVE_BALANCE);\n\n balance = (short) (balance - debitAmount);\n\n }",
"public abstract int decode(ByteBuffer buffer, int offset);",
"public DValParser(byte[] data)\r\n/* 18: */ {\r\n/* 19: 72 */ int options = IntegerHelper.getInt(data[0], data[1]);\r\n/* 20: */ \r\n/* 21: 74 */ this.promptBoxVisible = ((options & PROMPT_BOX_VISIBLE_MASK) != 0);\r\n/* 22: 75 */ this.promptBoxAtCell = ((options & PROMPT_BOX_AT_CELL_MASK) != 0);\r\n/* 23: 76 */ this.validityDataCached = ((options & VALIDITY_DATA_CACHED_MASK) != 0);\r\n/* 24: */ \r\n/* 25: 78 */ this.objectId = IntegerHelper.getInt(data[10], data[11], data[12], data[13]);\r\n/* 26: 79 */ this.numDVRecords = IntegerHelper.getInt(data[14], data[15], \r\n/* 27: 80 */ data[16], data[17]);\r\n/* 28: */ }",
"private void nocompressedUnPack()throws UnpackException,ZipEndException{\n skipByte();\n //get the len\n long LEN = 0x00;\n byte byte0 = getByte();\n byte byte1 = getByte();\n byte byte2 = getByte();\n byte byte3 = getByte();\n LEN |= byte1;\n LEN |= (byte0 << 8);\n LEN &= 0X0000ffff;\n// LEN |= (byte2<<24);\n// LEN |= (byte3<<16);\n int l = 0;\n try{\n for (long num = 0; num < LEN ; num ++){\n outputStoredByte(getByte());\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"IMessage decode(byte[] data) throws InvalidMessageException;",
"public static interface MsgUnpacker {\n\t public Parser.Dict unpack(String msg) throws Exception;\n }",
"public static<T> T decodeData(InputStream stream, Class<T> objectClass) throws Exception{\n\t\t//Read two bytes (Length of the packet data): This is not part of MDER specification. BinaryNotes checks all\n\t\t//length constraints of all data types. This operation is not neccesary.\n\t\t/*\n\t\tint i=1;\n\t\tbyte[] hex = new byte[1];\t\t\t\t\n\t\twhile ((i<3)&&((i=stream.read())!=-1)){\n\t\t\thex[0]=(byte)i;\n\t\t}\n\t\t*/\n\t\t//Get the data in mder codification\n\t\tIDecoder decoder = CoderFactory.getInstance().newDecoder(\"MDER\");\n\t\treturn decoder.decode(stream, objectClass);\n\t}",
"public static UsageBreakdown deserialize(java.nio.ByteBuffer data) {\n return deserialize(new org.chromium.mojo.bindings.Message(\n data, new java.util.ArrayList<org.chromium.mojo.system.Handle>()));\n }",
"private Pdu makePdu(String name)\n {\n Pdu pdu = this.channel.makePdu();\n pdu.putString(\"tkn\", \"PEER-\" + TKN_CPT++);\n pdu.putString(\"name\", name);\n return pdu;\n }",
"public static ResponseApdu fromBytes(byte[] buf) throws ParseException {\n return new ResponseApdu(new ByteArrayInputStreamExtension(buf));\n }",
"public void readPacketData(PacketBuffer buf) throws IOException {\n this.entityId = buf.readVarInt();\n this.effectId = buf.readByte();\n this.amplifier = buf.readByte();\n this.duration = buf.readVarInt();\n this.flags = buf.readByte();\n }",
"private void getCardData(APDU apdu, byte[] buffer) \r\n \t //@ requires [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n \t //@ ensures [1/2]valid() &*& APDU(apdu, buffer) &*& array_slice(buffer, 0, buffer.length, _);\r\n\t{\r\n\t\t// check P1 and P2\r\n\t\tif (buffer[ISO7816.OFFSET_P1] != (byte) 0x00 || buffer[ISO7816.OFFSET_P2] != (byte) 0x00)\r\n\t\t\tISOException.throwIt(ISO7816.SW_INCORRECT_P1P2);\r\n\t\t// inform the JCRE that the applet has data to return\r\n\t\tapdu.setOutgoing();\r\n\t\t\r\n\t\t////@ open [1/2]valid();\r\n\t\t\t\t\t\t\t\t\r\n\t\tbyte[] data = identityFile.getData(); \r\n\t\t// Only the chip number is of importance: get this at tag position 2\r\n\t\tshort pos = 1;\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, ?identityFileData, _, _, ?info); // todo (integrate with array_element search)\r\n\t\tshort dataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1 + dataLen + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen <= 0 || dataLen + pos + 2 >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\tdataLen = (short) data[pos];\r\n\t\tpos = (short) (pos + 1);\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\tif (dataLen < 0 || pos + dataLen >= identityFile.getCurrentSize())\r\n\t\t\tISOException.throwIt(ISO7816.SW_DATA_INVALID);\r\n\t\t//@ open [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info);\r\n\t\t// check Le\r\n\t\t// if (le != dataLen)\r\n\t\t// ISOException.throwIt((short)(ISO7816.SW_WRONG_LENGTH));\r\n\t\t/*VF*byte version[] = { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };*/\r\n\t\tbyte version[] = new byte[] { (byte) 0xA5, (byte) 0x03, (byte) 0x01, (byte) 0x01, (byte) 0x01, (byte) 0x11, (byte) 0x00, (byte) 0x02, (byte) 0x00, (byte) 0x01, (byte) 0x01, (byte) 0x0F };\r\n\t\tbyte chipNumber[] = new byte[(short) (dataLen + 12)];\r\n\t\tUtil.arrayCopy(data, pos, chipNumber, (short) 0, dataLen);\r\n\t\tUtil.arrayCopy(version, (short) 0, chipNumber, dataLen, (short) 12);\r\n\t\t// //Set serial number\r\n\t\t// Util.arrayCopy(tokenInfo.getData(), (short) 7, tempBuffer, (short) 0,\r\n\t\t// (short) 16);\r\n\t\t//\t\t\r\n\t\t// //Set component code: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS number: TODO\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set OS version: TODO\r\n\t\t// JCSystem.getVersion();\r\n\t\t//\t\t\r\n\t\t// //Set softmask number: TODO\r\n\t\t//\t\t\r\n\t\t// //Set softmask version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet version: TODO : 4 bytes in file system\r\n\t\t//\t\t\r\n\t\t//\t\t\r\n\t\t// //Set Interface version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set PKCS#15 version: TODO\r\n\t\t//\t\t\r\n\t\t// //Set applet life cycle\r\n\t\t// tempBuffer[(short)(le-1)] = GPSystem.getCardState();\r\n\t\t// set the actual number of outgoing data bytes\r\n\t\tapdu.setOutgoingLength((short) chipNumber.length);\r\n\t\t// send content of buffer in apdu\r\n\t\tapdu.sendBytesLong(chipNumber, (short) 0, (short) chipNumber.length);\r\n\t\t\t\t\t\t\t\t\r\n\t\t////@ close [1/2]identityFile.ElementaryFile(_, _, identityFileData, _, _, info); // auto\r\n\t\t////@ close [1/2]valid(); // auto\r\n\t}",
"private PassedData(Parcel p) {\n this.a = p.readInt();\n this.b = p.readLong();\n this.c = p.readString();\n }",
"protected void parsePacket(byte[] data)\r\n\t\t\tthrows BeCommunicationDecodeException {\r\n\t\tsuper.parsePacket(data);\r\n\t\t\r\n\t\t// it's infoData is empty\r\n\t}",
"public static byte[] decompressBytes(byte[] data) {\n\t\t\tInflater inflater = new Inflater();\n\t\t\tinflater.setInput(data);\n\t\t\tByteArrayOutputStream outputStream = new ByteArrayOutputStream(data.length);\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\ttry {\n\t\t\t\twhile (!inflater.finished()) {\n\t\t\t\t\tint count = inflater.inflate(buffer);\n\t\t\t\t\toutputStream.write(buffer, 0, count);\n\t\t\t\t}\n\t\t\t\toutputStream.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t} catch (DataFormatException e) {\n\t\t\t}\n\t\t\treturn outputStream.toByteArray();\n\t\t}",
"public ISOCommandAPDU(int size, byte classByte, byte instruction, byte p1, byte p2, byte[] data) {\n this(size, classByte, instruction, p1, p2, data, -1);\n }",
"private static InPacket deserializePacket(ByteArrayDataInput in)\n\t\t\tthrows IOException\n\t{\n\t\tbyte id = in.readByte();\n\t\tint len = in.readInt();\n\t\tbyte[] array = new byte[len];\n\t\tin.readFully(array);\n\n\t\treturn deserializeRawPacket(id, array);\n\t}",
"public static Payload fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }",
"protected abstract ByteBuf decompress(ByteBuf compressed, int originalLength) throws Exception;",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2, byte[] data) {\n this(data.length+5+4, classByte, instruction, p1, p2, data, -1); // 5 = max overhead for coding data; 4 = header bytes\n }",
"public Str(byte[] data) {\n unpack(data);\n }",
"static void decompress(final DataInputStream input, final byte[] result, int offset, int length) throws IOException {\n int resultPos = offset;\n int remaining = length;\n\n while (remaining > 0) {\n byte run = input.readByte();\n int runLength;\n\n if ((run & 0x80) != 0) {\n // Compressed run\n runLength = run + 131; // PackBits: -run + 1 and run == 0x80 is no-op... This allows 1 byte longer runs...\n\n byte runData = input.readByte();\n\n for (int i = 0; i < runLength; i++) {\n result[resultPos++] = runData;\n }\n }\n else {\n // Uncompressed run\n runLength = run + 1;\n\n input.readFully(result, resultPos, runLength);\n resultPos += runLength;\n }\n\n remaining -= runLength;\n }\n }",
"protected ILPacket getPacketFromData(String id) \n\t\t\tthrows PacketFormatException, IOException \n\t{\n\t\tthis.buffer.rewind();\n\t\treturn ILPacketFactory.getPacketFromData(this.buffer, id);\n\t}",
"public void deserialize(byte[] buf){\n int size = buf.length;\n ByteBuffer buffer = ByteBuffer.wrap(buf);\n msgType = buffer.getShort(0);\n byte[] srcIP_temp = new byte[15];\n System.arraycopy(buf, 2, srcIP_temp, 0, 15);\n String srcIP_str = new String(srcIP_temp);\n srcIP = srcIP_str.trim();\n srcPort = buffer.getInt(17);\n desCost = buffer.getFloat(21);\n byte[] desIP_temp = new byte[15];\n System.arraycopy(buf, 25, desIP_temp, 0, 15);\n String desIP_str = new String(desIP_temp);\n desIP = desIP_str.trim();\n desPort = buffer.getInt(40);\n int pos = 44;\n\n while(pos+45 < size) {\n byte[] des = new byte[21];\n byte[] hop = new byte[21];\n\n System.arraycopy(buf, pos, des, 0, 21);\n String nei = new String(des);\n nei = nei.trim();\n if(!nei.matches(\"[0-9]+\\\\.[0-9]+\\\\.[0-9]+\\\\.[0-9]+:[0-9]+\")){\n return;\n }\n\n float cost = buffer.getFloat(pos+21);\n\n System.arraycopy(buf, pos+25, hop, 0, 21);\n String firstHop = new String(hop);\n firstHop = firstHop.trim();\n if(!firstHop.matches(\"[0-9]+\\\\.[0-9]+\\\\.[0-9]+\\\\.[0-9]+:[0-9]+\")){\n return;\n }\n pos += 46;\n\n DistanceInfo item = new DistanceInfo(cost, firstHop);\n distanceVectors.put(nei, item);\n }\n }",
"private ByteBuffer getData(ChannelBuffer buf) throws Exception {\n if (buf.readableBytes() < 4) {\n // The length field was not received yet - return null.\n // This method will be invoked again when more packets are\n // received and appended to the buffer.\n return null;\n }\n // The length field is in the buffer.\n\n // Mark the current buffer position before reading the length field\n // because the whole frame might not be in the buffer yet.\n // We will reset the buffer position to the marked position if\n // there's not enough bytes in the buffer.\n buf.markReaderIndex();\n\n // Read the length field.\n int length = buf.readInt();\n\n if (length == RpcClient.PING_CALL_ID) {\n if (!connection.useWrap) { // covers the !useSasl too\n return null; // ping message\n }\n }\n if (length < 0) { // A data length of zero is legal.\n throw new IllegalArgumentException(\"Unexpected data length \" + length + \"!! from \"\n + connection.getHostAddress());\n }\n if (length > maxRpcSize) {\n String warningMsg =\n \"data length is too large: \" + length + \"!! from \" + connection.getHostAddress() + \":\"\n + connection.getRemotePort();\n LOG.warn(warningMsg);\n throw new DoNotRetryIOException(warningMsg);\n }\n\n // Make sure if there's enough bytes in the buffer.\n if (buf.readableBytes() < length) {\n // The whole bytes were not received yet - return null.\n // This method will be invoked again when more packets are\n // received and appended to the buffer.\n\n // Reset to the marked position to read the length field again\n // next time.\n buf.resetReaderIndex();\n return null;\n }\n // There's enough bytes in the buffer. Read it.\n ByteBuffer data = buf.toByteBuffer(buf.readerIndex(), length);\n buf.skipBytes(length);\n //ByteBuffer data = ByteBuffer.allocate(length);\n //buf.readBytes(data);\n //data.flip();\n return data;\n }",
"Object unpack(Info vi, Buffer opb) {\n\t\tInfoMapping0 info = new InfoMapping0();\n\n\t\tif (opb.read(1) != 0) {\n\t\t\tinfo.submaps = opb.read(4) + 1;\n\t\t} else {\n\t\t\tinfo.submaps = 1;\n\t\t}\n\n\t\tif (opb.read(1) != 0) {\n\t\t\tinfo.coupling_steps = opb.read(8) + 1;\n\n\t\t\tfor (int i = 0; i < info.coupling_steps; i++) {\n\t\t\t\tint testM = info.coupling_mag[i] = opb.read(Util\n\t\t\t\t\t\t.ilog2(vi.channels));\n\t\t\t\tint testA = info.coupling_ang[i] = opb.read(Util\n\t\t\t\t\t\t.ilog2(vi.channels));\n\n\t\t\t\tif (testM < 0 || testA < 0 || testM == testA\n\t\t\t\t\t\t|| testM >= vi.channels || testA >= vi.channels) {\n\t\t\t\t\t// goto err_out;\n\t\t\t\t\tinfo.free();\n\t\t\t\t\treturn (null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (opb.read(2) > 0) { /* 2,3:reserved */\n\t\t\tinfo.free();\n\t\t\treturn (null);\n\t\t}\n\n\t\tif (info.submaps > 1) {\n\t\t\tfor (int i = 0; i < vi.channels; i++) {\n\t\t\t\tinfo.chmuxlist[i] = opb.read(4);\n\t\t\t\tif (info.chmuxlist[i] >= info.submaps) {\n\t\t\t\t\tinfo.free();\n\t\t\t\t\treturn (null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < info.submaps; i++) {\n\t\t\tinfo.timesubmap[i] = opb.read(8);\n\t\t\tif (info.timesubmap[i] >= vi.times) {\n\t\t\t\tinfo.free();\n\t\t\t\treturn (null);\n\t\t\t}\n\t\t\tinfo.floorsubmap[i] = opb.read(8);\n\t\t\tif (info.floorsubmap[i] >= vi.floors) {\n\t\t\t\tinfo.free();\n\t\t\t\treturn (null);\n\t\t\t}\n\t\t\tinfo.residuesubmap[i] = opb.read(8);\n\t\t\tif (info.residuesubmap[i] >= vi.residues) {\n\t\t\t\tinfo.free();\n\t\t\t\treturn (null);\n\t\t\t}\n\t\t}\n\t\treturn info;\n\t}",
"public static int decompose(char[] paramArrayOfChar1, int paramInt1, int paramInt2, char[] paramArrayOfChar2, int paramInt3, int paramInt4, boolean paramBoolean, int[] paramArrayOfInt, UnicodeSet paramUnicodeSet)\n/* */ {\n/* 932 */ char[] arrayOfChar1 = new char[3];\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 941 */ int i7 = paramInt3;\n/* 942 */ int i8 = paramInt1;\n/* 943 */ int i2; int k; if (!paramBoolean) {\n/* 944 */ i2 = (char)indexes[8];\n/* 945 */ k = 4;\n/* */ } else {\n/* 947 */ i2 = (char)indexes[9];\n/* 948 */ k = 8;\n/* */ }\n/* */ \n/* */ \n/* 952 */ int j = 0xFF00 | k;\n/* 953 */ int m = 0;\n/* 954 */ int i4 = 0;\n/* 955 */ long l = 0L;\n/* 956 */ int i1 = 0;\n/* 957 */ int i6 = 0;\n/* */ int i5;\n/* 959 */ int i3 = i5 = -1;\n/* */ \n/* */ \n/* */ \n/* */ for (;;)\n/* */ {\n/* 965 */ int i = i8;\n/* */ \n/* 967 */ while ((i8 != paramInt2) && (((i1 = paramArrayOfChar1[i8]) < i2) || \n/* 968 */ (((l = getNorm32(i1)) & j) == 0L))) {\n/* 969 */ i4 = 0;\n/* 970 */ i8++;\n/* */ }\n/* */ \n/* */ int n;\n/* 974 */ if (i8 != i) {\n/* 975 */ n = i8 - i;\n/* 976 */ if (i7 + n <= paramInt4) {\n/* 977 */ System.arraycopy(paramArrayOfChar1, i, paramArrayOfChar2, i7, n);\n/* */ }\n/* */ \n/* 980 */ i7 += n;\n/* 981 */ m = i7;\n/* */ }\n/* */ \n/* */ \n/* 985 */ if (i8 == paramInt2) {\n/* */ break;\n/* */ }\n/* */ \n/* */ \n/* 990 */ i8++;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ char c2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ char[] arrayOfChar2;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ char c1;\n/* */ \n/* */ \n/* */ \n/* 1009 */ if (isNorm32HangulOrJamo(l)) {\n/* 1010 */ if (nx_contains(paramUnicodeSet, i1)) {\n/* 1011 */ c2 = '\\000';\n/* 1012 */ arrayOfChar2 = null;\n/* 1013 */ n = 1;\n/* */ }\n/* */ else {\n/* 1016 */ arrayOfChar2 = arrayOfChar1;\n/* 1017 */ i6 = 0;\n/* 1018 */ i3 = i5 = 0;\n/* */ \n/* 1020 */ c1 = (char)(i1 - 44032);\n/* */ \n/* 1022 */ c2 = (char)(c1 % '\\034');\n/* 1023 */ c1 = (char)(c1 / '\\034');\n/* 1024 */ if (c2 > 0) {\n/* 1025 */ arrayOfChar1[2] = ((char)('ᆧ' + c2));\n/* 1026 */ n = 3;\n/* */ } else {\n/* 1028 */ n = 2;\n/* */ }\n/* */ \n/* 1031 */ arrayOfChar1[1] = ((char)(4449 + c1 % '\\025'));\n/* 1032 */ arrayOfChar1[0] = ((char)(4352 + c1 / '\\025'));\n/* */ }\n/* */ } else {\n/* 1035 */ if (isNorm32Regular(l)) {\n/* 1036 */ c2 = '\\000';\n/* 1037 */ n = 1;\n/* */ \n/* */ }\n/* 1040 */ else if ((i8 != paramInt2) && \n/* 1041 */ (UTF16.isTrailSurrogate(c2 = paramArrayOfChar1[i8]))) {\n/* 1042 */ i8++;\n/* 1043 */ n = 2;\n/* 1044 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ } else {\n/* 1046 */ c2 = '\\000';\n/* 1047 */ n = 1;\n/* 1048 */ l = 0L;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 1053 */ if (nx_contains(paramUnicodeSet, c1, c2))\n/* */ {\n/* 1055 */ i3 = i5 = 0;\n/* 1056 */ arrayOfChar2 = null;\n/* 1057 */ } else if ((l & k) == 0L)\n/* */ {\n/* 1059 */ i3 = i5 = (int)(0xFF & l >> 8);\n/* 1060 */ arrayOfChar2 = null;\n/* 1061 */ i6 = -1;\n/* */ } else {\n/* 1063 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* */ \n/* */ \n/* */ \n/* 1067 */ i6 = decompose(l, k, localDecomposeArgs);\n/* 1068 */ arrayOfChar2 = extraData;\n/* 1069 */ n = localDecomposeArgs.length;\n/* 1070 */ i3 = localDecomposeArgs.cc;\n/* 1071 */ i5 = localDecomposeArgs.trailCC;\n/* 1072 */ if (n == 1)\n/* */ {\n/* 1074 */ c1 = arrayOfChar2[i6];\n/* 1075 */ c2 = '\\000';\n/* 1076 */ arrayOfChar2 = null;\n/* 1077 */ i6 = -1;\n/* */ }\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1085 */ if (i7 + n <= paramInt4) {\n/* 1086 */ int i9 = i7;\n/* 1087 */ if (arrayOfChar2 == null)\n/* */ {\n/* 1089 */ if ((i3 != 0) && (i3 < i4))\n/* */ {\n/* */ \n/* */ \n/* 1093 */ i7 += n;\n/* 1094 */ i5 = insertOrdered(paramArrayOfChar2, m, i9, i7, c1, c2, i3);\n/* */ }\n/* */ else\n/* */ {\n/* 1098 */ paramArrayOfChar2[(i7++)] = c1;\n/* 1099 */ if (c2 != 0) {\n/* 1100 */ paramArrayOfChar2[(i7++)] = c2;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ \n/* */ }\n/* 1107 */ else if ((i3 != 0) && (i3 < i4))\n/* */ {\n/* */ \n/* */ \n/* 1111 */ i7 += n;\n/* 1112 */ i5 = mergeOrdered(paramArrayOfChar2, m, i9, arrayOfChar2, i6, i6 + n);\n/* */ }\n/* */ else\n/* */ {\n/* */ do {\n/* 1117 */ paramArrayOfChar2[(i7++)] = arrayOfChar2[(i6++)];\n/* 1118 */ n--; } while (n > 0);\n/* */ }\n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* 1124 */ i7 += n;\n/* */ }\n/* */ \n/* 1127 */ i4 = i5;\n/* 1128 */ if (i4 == 0) {\n/* 1129 */ m = i7;\n/* */ }\n/* */ }\n/* */ \n/* 1133 */ paramArrayOfInt[0] = i4;\n/* */ \n/* 1135 */ return i7 - paramInt3;\n/* */ }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:13.509 -0500\", hash_original_method = \"F3F9FDCE1484676B88E382A49EC8877F\", hash_generated_method = \"E98CBD85708A9D853A0E84BBC5FA6CF1\")\n \npublic static ASN1Object fromByteArray(byte[] data)\n throws IOException\n {\n ASN1InputStream aIn = new ASN1InputStream(data);\n\n try\n {\n return (ASN1Object)aIn.readObject();\n }\n catch (ClassCastException e)\n {\n throw new IOException(\"cannot recognise object in stream\"); \n }\n }",
"public ISOCommandAPDU(byte classByte, byte instruction, byte p1, byte p2, byte[] data, int le) {\n this(data.length+5+4, classByte, instruction, p1, p2, data, le); // 5 = max overhead for coding data; 4 = header bytes\n }",
"public int readFromDataStream( MixedDataInputStream in )\n {\n try {\n etype = new Integer( in.readInt() );\n pad = in.readInt();\n color = in.readString( StrColor.BYTESIZE );\n name = in.readString( StrDesc.BYTESIZE );\n format = in.readString( StrFormat.BYTESIZE );\n } catch ( IOException ioerr ) {\n ioerr.printStackTrace();\n return 0;\n }\n\n return BYTESIZE;\n }",
"public static Trip fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }",
"byte[] decodeBytes();",
"public static DeviceInfo fromByteBuffer(\n java.nio.ByteBuffer b) throws java.io.IOException {\n return DECODER.decode(b);\n }",
"public static FullPositionVector decodeValue(PerCoder coder, InputBitStream source, FullPositionVector data)\n\t throws IOException, DecoderException, DecodeFailedException\n {\n\tboolean _has_extensions0 = source.readBit();\n\tint len0 = 0;\n\tInputBitStream bitstream0 = null;\n\n\tboolean has_utcTime0 = source.readBit();\n\tboolean has_elevation0 = source.readBit();\n\tboolean has_heading0 = source.readBit();\n\tboolean has_speed0 = source.readBit();\n\tboolean has_posAccuracy0 = source.readBit();\n\tboolean has_timeConfidence0 = source.readBit();\n\tboolean has_posConfidence0 = source.readBit();\n\tboolean has_speedConfidence0 = source.readBit();\n /** Decode root fields **/\n\tif (has_utcTime0) {\n\t // Decode field 'utcTime'\n\t try {\n\t\tif (data.utcTime == null)\n\t\t data.utcTime = new DDateTime();\n\t\tdata.utcTime.decodeValue(coder, source, data.utcTime);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"utcTime\", \"DDateTime\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.utcTime = null;\n\t}\n\t// Decode field 'long'\n\ttry {\n\t long temp1;\n\n\t if (data._long == null)\n\t\tdata._long = new Longitude();\n\t temp1 = coder.decodeConstrainedWholeNumber(source, -1800000000, 1800000001);\n\t if (temp1 > 1800000001)\n\t\tthrow new DecoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t data._long.setValue(temp1);\n\t} catch (Exception e) {\n\t DecoderException de = DecoderException.wrapException(e);\n\t de.appendFieldContext(\"long\", \"Longitude\");\n\t throw de;\n\t}\n\t// Decode field 'lat'\n\ttry {\n\t long temp1;\n\n\t if (data.lat == null)\n\t\tdata.lat = new Latitude();\n\t temp1 = coder.decodeConstrainedWholeNumber(source, -900000000, 900000001);\n\t if (temp1 > 900000001)\n\t\tthrow new DecoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t data.lat.setValue(temp1);\n\t} catch (Exception e) {\n\t DecoderException de = DecoderException.wrapException(e);\n\t de.appendFieldContext(\"lat\", \"Latitude\");\n\t throw de;\n\t}\n\tif (has_elevation0) {\n\t // Decode field 'elevation'\n\t try {\n\t\tdata.elevation = new Elevation(com.oss.coders.per.PerOctets.decode(coder, source, 2, 2));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"elevation\", \"Elevation\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.elevation = null;\n\t}\n\tif (has_heading0) {\n\t // Decode field 'heading'\n\t try {\n\t\tlong temp1;\n\n\t\tif (data.heading == null)\n\t\t data.heading = new Heading();\n\t\ttemp1 = coder.decodeConstrainedWholeNumber(source, 0, 28800);\n\t\tif (temp1 > 28800)\n\t\t throw new DecoderException(com.oss.util.ExceptionDescriptor._valueRange, null, temp1);\n\t\tdata.heading.setValue(temp1);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"heading\", \"Heading\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.heading = null;\n\t}\n\tif (has_speed0) {\n\t // Decode field 'speed'\n\t try {\n\t\tdata.speed = new TransmissionAndSpeed(com.oss.coders.per.PerOctets.decode(coder, source, 2, 2));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"speed\", \"TransmissionAndSpeed\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.speed = null;\n\t}\n\tif (has_posAccuracy0) {\n\t // Decode field 'posAccuracy'\n\t try {\n\t\tdata.posAccuracy = new PositionalAccuracy(com.oss.coders.per.PerOctets.decode(coder, source, 4, 4));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"posAccuracy\", \"PositionalAccuracy\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.posAccuracy = null;\n\t}\n\tif (has_timeConfidence0) {\n\t // Decode field 'timeConfidence'\n\t try {\n\t\tint idx1;\n\n\t\tidx1 = (int)coder.decodeConstrainedWholeNumber(source, 0, 39);\n\t\tif (idx1 < 0 || idx1 > 39)\n\t\t throw new DecoderException(ExceptionDescriptor._not_enumerated, null, \"index = \" + idx1);\n\t\tdata.timeConfidence = TimeConfidence.valueAt(idx1);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"timeConfidence\", \"TimeConfidence\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.timeConfidence = null;\n\t}\n\tif (has_posConfidence0) {\n\t // Decode field 'posConfidence'\n\t try {\n\t\tdata.posConfidence = new PositionConfidenceSet(com.oss.coders.per.PerOctets.decode(coder, source, 1, 1));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"posConfidence\", \"PositionConfidenceSet\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.posConfidence = null;\n\t}\n\tif (has_speedConfidence0) {\n\t // Decode field 'speedConfidence'\n\t try {\n\t\tdata.speedConfidence = new SpeedandHeadingandThrottleConfidence(com.oss.coders.per.PerOctets.decode(coder, source, 1, 1));\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendFieldContext(\"speedConfidence\", \"SpeedandHeadingandThrottleConfidence\");\n\t\tthrow de;\n\t }\n\t} else {\n\t data.speedConfidence = null;\n\t}\n /** Decode extensions **/\n\tif (!_has_extensions0) {\n\t return data;\n\t}\n\tlen0 = coder.decodeNormallySmallLength(source);\n\tif (coder.moreFragments())\n\t throw new DecoderException(com.oss.util.ExceptionDescriptor._too_many_ext_additions, null, \"16384 or more\");\n\tint unknown_exts0 = 0;\n\tif (len0 > 0)\n\t for (int idx0 = 0; idx0 < len0 - 0; idx0++) {\n\t\tif (source.readBit())\n\t\t ++unknown_exts0;\n\t }\n /** Decode extension fields **/\n\tbitstream0 = source;\n\tsource = coder.createNestedStream(bitstream0);\n\ttry {\n\t} finally {\n\t source.close();\n\t}\n\tsource = bitstream0;\n\tfor (int idx0 = 0; idx0 < unknown_exts0; idx0++) {\n\t try {\n\t\tcom.oss.coders.per.PerOctets.skip(coder, source);\n\t } catch (Exception e) {\n\t\tDecoderException de = DecoderException.wrapException(e);\n\t\tde.appendExtensionContext(null, idx0);\n\t\tthrow de;\n\t }\n\t}\n\treturn data;\n }",
"public abstract Tuple parseFrom(byte[] bytes) throws Exception;",
"protected O bytesToObject(ByteBuffer data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n return bytesToObject(data.array());\r\n }",
"private void handlePduIn(Pdu pdu) {\n int code;\n if (pdu != null) {\n code = pdu.code;\n\n switch (code) {\n\n //sList\n case 4:\n //Mess\n case 10:\n //pJoin\n case 16:\n //pLeave\n case 17:\n //participants\n case 19:\n pdu.print();\n break;\n\n //quit\n case 11:\n done = true;\n System.out.println(\"Server har avslutat\");\n\n default:\n System.out.println(\"Corrupt PDU\");\n }\n }\n }",
"public void testPackUnpackMaxValues() {\n\n\t\t// Test pack\n\t\tRtpPacket rtpPacket = new RtpPacket();\n\t\trtpPacket.setV(ByteUtil.getMaxIntValueForNumBits(2));\n\t\trtpPacket.setP(ByteUtil.getMaxIntValueForNumBits(1));\n\t\trtpPacket.setX(ByteUtil.getMaxIntValueForNumBits(1));\n\t\trtpPacket.setCC(ByteUtil.getMaxIntValueForNumBits(4));\n\t\trtpPacket.setM(ByteUtil.getMaxIntValueForNumBits(1));\n\t\trtpPacket.setPT(ByteUtil.getMaxIntValueForNumBits(7));\n\t\tint SN = rtpPacket.getSN();\n\t\t//rtpPacket.setSN(ByteUtil.getMaxIntValueForNumBits(16));\n\t\trtpPacket.setTS(ByteUtil.getMaxLongValueForNumBits(32));\n\t\trtpPacket.setSSRC(ByteUtil.getMaxLongValueForNumBits(32));\n\t\t// byte[] testPayload = \"This is some payload\".getBytes();\n\t\tbyte[] testPayload = new byte[11];\n\t\trtpPacket.setPayload(testPayload, testPayload.length);\n\n\t\tbyte[] encodedPacket = rtpPacket.getData();\n\n\t\t// Test unpack\n\t\tRtpPacket newRtpPacket = new RtpPacket(encodedPacket,\n\t\t\t\tencodedPacket.length);\n\t\t// newRtpPacket.unpack(encodedPacket, encodedPacket.length);\n\n\t\tassertTrue(newRtpPacket.getV() == ByteUtil.getMaxIntValueForNumBits(2));\n\t\tassertTrue(newRtpPacket.getP() == ByteUtil.getMaxIntValueForNumBits(1));\n\t\tassertTrue(newRtpPacket.getX() == ByteUtil.getMaxIntValueForNumBits(1));\n\t\tassertTrue(newRtpPacket.getCC() == ByteUtil.getMaxIntValueForNumBits(4));\n\t\tassertTrue(newRtpPacket.getM() == ByteUtil.getMaxIntValueForNumBits(1));\n\t\tassertTrue(newRtpPacket.getPT() == ByteUtil.getMaxIntValueForNumBits(7));\n\t\tassertTrue(newRtpPacket.getSN() == SN);\n\t\tassertTrue(newRtpPacket.getTS() == ByteUtil.getMaxLongValueForNumBits(32));\n\t\tassertTrue(newRtpPacket.getSSRC() == ByteUtil.getMaxLongValueForNumBits(32));\n\n\t}",
"public void decipher(ByteBuffer buf, final int offset, final int size)\r\n\t{\r\n\t\tint count = size / 8;\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\t_decrypt.processBlock(buf, offset + i * 8);\r\n\t}",
"protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }",
"public static Vector readBytes(DataInputStream dis) throws IOException, InstantiationException,IllegalAccessException {\r\n\t\t\r\n\t\tbyte len = dis.readByte();\r\n\t\t/*if(len == 0)\r\n\t\t\treturn null;*/\r\n\t\t\r\n\t\tVector byteVector = new Vector(len);\r\n\t\t\r\n\t\tfor(byte i=0; i<len; i++ )\r\n\t\t\tbyteVector.addElement(new Byte(dis.readByte()));\r\n\t\t\r\n\t\treturn byteVector;\r\n\t}",
"public CardCommandAPDU(byte cla, byte ins, byte p1, byte p2, byte[] data) {\n\tthis(cla, ins, p1, p2);\n\tthis.data = data;\n\n\tsetLC(data.length);\n }",
"public void unmarshal(java.nio.ByteBuffer buff) {\n parameterTypeDesignator = (byte) (buff.get() & 0xFF);\n changeIndicator = (byte) (buff.get() & 0xFF);\n partAttachedTo = (short) (buff.getShort() & 0xFFFF);\n parameterType = buff.getInt();\n parameterValue = buff.getDouble();\n }",
"public Object getTransferData(ActivationDataFlavor df, DataSource ds)\n\t\t\t\tthrows /*UnsupportedFlavorException,*/ IOException;",
"@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tbytes = in.readInt();\n\t\tbuffer = new byte[bytes];\n\t\tint num = 0;\t\t\n\t\twhile(num < bytes){\n\t\t\tbuffer[num] = in.readByte();\n\t\t\tnum++;\n\t\t}\n\t}",
"protected PastContent deserialize(byte[] bytes, Endpoint endpoint, PastContentDeserializer pcd) throws IOException, ClassNotFoundException {\n \n SimpleInputBuffer sib = new SimpleInputBuffer(bytes);\n short type = sib.readShort();\n return pcd.deserializePastContent(sib, endpoint, type); \n }",
"public float unpackFloat() {\n return buffer.getFloat();\n }",
"public ZABEMobileNetwork decode(ProtoReader hVar) throws IOException {\n C30677a aVar = new C30677a();\n long a = hVar.mo40516a();\n while (true) {\n int b = hVar.mo40518b();\n if (b != -1) {\n FieldEncoding c = hVar.mo40519c();\n aVar.addUnknownField(b, c, c.rawProtoAdapter().decode(hVar));\n } else {\n hVar.mo40517a(a);\n return aVar.build();\n }\n }\n }",
"final void parseUpperTransportPDU(@NonNull final Message message) throws ExtendedInvalidCipherTextException {\n try {\n switch (message.getPduType()) {\n case MeshManagerApi.PDU_TYPE_NETWORK:\n if (message instanceof AccessMessage) { //Access message\n final AccessMessage accessMessage = (AccessMessage) message;\n reassembleLowerTransportAccessPDU(accessMessage);\n final byte[] decryptedUpperTransportControlPdu = decryptUpperTransportPDU(accessMessage);\n accessMessage.setAccessPdu(decryptedUpperTransportControlPdu);\n } else {\n //TODO\n //this where control messages such as heartbeat and friendship messages are to be implemented\n }\n break;\n case MeshManagerApi.PDU_TYPE_PROXY_CONFIGURATION:\n final ControlMessage controlMessage = (ControlMessage) message;\n if (controlMessage.getLowerTransportControlPdu().size() == 1) {\n final byte[] lowerTransportControlPdu = controlMessage.getLowerTransportControlPdu().get(0);\n final ByteBuffer buffer = ByteBuffer.wrap(lowerTransportControlPdu)\n .order(ByteOrder.BIG_ENDIAN);\n message.setOpCode(buffer.get());\n final byte[] parameters = new byte[buffer.capacity() - 1];\n buffer.get(parameters);\n message.setParameters(parameters);\n }\n break;\n }\n } catch (InvalidCipherTextException ex) {\n throw new ExtendedInvalidCipherTextException(ex.getMessage(), ex.getCause(), TAG);\n }\n }",
"public static <T> T readParam(final Component component, final InputPort port) {\n @SuppressWarnings(\"unchecked\")\n final Packet<T> pack = port.receive();\n final T res = pack.getContent();\n component.drop(pack);\n port.close();\n return res;\n }",
"private void read(byte[] data, int offset) throws IllegalVariantTypeException,\n UnsupportedEncodingException\n {\n if ((type != (Variant.VT_VECTOR | Variant.VT_LPSTR))\n && (type != (Variant.VT_VECTOR | Variant.VT_LPWSTR)))\n {\n throw new IllegalVariantTypeException(type, data);\n }\n\n numElements = (int) LittleEndian.getUInt(data, offset);\n offset += LittleEndian.INT_SIZE;\n elements = new StringProperty[numElements];\n for (int i = 0; i < numElements; i++)\n {\n elements[i] = new StringProperty(data, offset, type & 0x00ff);\n //because the strings are constructed with an already-read type field,\n //we only need to advance over the StringLength field and the string,\n //not the type field (there isn't one in this case).\n offset += elements[i].getSize() - LittleEndian.INT_SIZE;\n }\n }",
"public abstract Object decode(InputStream is) ;",
"public abstract byte[] readData(int address, int length);",
"public static long byteArrayToUnsignedLong(byte @NotNull [] data) {\n return byteArrayToUnsignedLong(data, 0, Endian.BIG, LONG_WIDTH);\n }",
"private Object deserialize(byte[] data) throws IOException, ClassNotFoundException {\n\t\tByteArrayInputStream in = new ByteArrayInputStream(data);\n\t ObjectInputStream is = new ObjectInputStream(in);\n\t\treturn (Object) is.readObject();\n\t}",
"public LWTRTPdu dataReq(LWTRTPdu lwtrtPdu) throws IncorrectTransitionException;",
"public static int getDecompose(int[] paramArrayOfInt, String[] paramArrayOfString)\n/* */ {\n/* 2467 */ DecomposeArgs localDecomposeArgs = new DecomposeArgs(null);\n/* 2468 */ int i = 0;\n/* 2469 */ long l = 0L;\n/* 2470 */ int j = -1;\n/* 2471 */ int k = 0;\n/* 2472 */ int m = 0;\n/* */ for (;;) {\n/* 2474 */ j++; if (j >= 195102) {\n/* */ break;\n/* */ }\n/* 2477 */ if (j == 12543) {\n/* 2478 */ j = 63744;\n/* 2479 */ } else if (j == 65536) {\n/* 2480 */ j = 119134;\n/* 2481 */ } else if (j == 119233) {\n/* 2482 */ j = 194560;\n/* */ }\n/* 2484 */ l = getNorm32(j);\n/* 2485 */ if (((l & 0x4) != 0L) && (m < paramArrayOfInt.length)) {\n/* 2486 */ paramArrayOfInt[m] = j;\n/* 2487 */ k = decompose(l, localDecomposeArgs);\n/* 2488 */ paramArrayOfString[(m++)] = new String(extraData, k, localDecomposeArgs.length);\n/* */ }\n/* */ }\n/* 2491 */ return m;\n/* */ }",
"public final long getUInt(final boolean endianess) throws IOException {\r\n\r\n long val = 0;\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n val = ( (tagBuffer[bPtr] & 0xffL) << 24) | ( (tagBuffer[bPtr + 1] & 0xffL) << 16)\r\n | ( (tagBuffer[bPtr + 2] & 0xffL) << 8) | (tagBuffer[bPtr + 3] & 0xffL); // Big Endian\r\n } else {\r\n val = ( (tagBuffer[bPtr + 3] & 0xffL) << 24) | ( (tagBuffer[bPtr + 2] & 0xffL) << 16)\r\n | ( (tagBuffer[bPtr + 1] & 0xffL) << 8) | (tagBuffer[bPtr] & 0xffL);\r\n }\r\n\r\n bPtr += 4;\r\n\r\n return val;\r\n }",
"public void readDataInto(UnknownFieldData unknownFieldData, List<Object> list) {\n list.add(readData(CodedInputByteBufferNano.newInstance(unknownFieldData.bytes)));\n }",
"protected ByteBuffer extractPattern(byte[] bytes, int offset, int length) {\n if (bytes.length <= 2) {\n return ByteBuffer.wrap(bytes);\n }\n\n // parse from the end to enable handling nasty field values\n int pos = offset + length - 1;\n for (; pos >= 0 && bytes[pos] != 0; pos--)\n ;\n // no null bytes found, assume no datatype\n if (pos < 0) {\n return ByteBuffer.wrap(bytes, 0, 0);\n }\n int stop = pos;\n pos--;\n for (; pos >= 0 && bytes[pos] != 0; pos--)\n ;\n // only one null byte found, assume second half is datatype\n if (pos < 0) {\n return ByteBuffer.wrap(bytes, stop + 1, length - (stop + 1));\n }\n int start = pos + 1;\n // multiple null bytes, assume next to last part is the datatype\n return ByteBuffer.wrap(bytes, start, stop - start);\n }",
"void decodeNetwork(double[] data);",
"public void decode(byte[] data)\n\t{\n\t\ttry\n\t\t{\n\n\t\t\tByteArrayInputStream bstream = new ByteArrayInputStream(data);\n\t\t\tDataInputStream istream = new DataInputStream(bstream);\n\t\t\tlevel = istream.readInt();\n\t\t\thp = istream.readInt();\n\t\t\tattack = istream.readInt();\n\t\t\tdefend = istream.readInt();\n\t\t\tmoney = istream.readInt();\n\t\t\texperience = istream.readInt();\n\t\t\tyellowKey = istream.readInt();\n\t\t\tblueKey = istream.readInt();\n\t\t\tredKey = istream.readInt();\n\t\t\tint can = istream.readInt();\n\t\t\t// canlookup\n\t\t\tif (can == 0)\n\t\t\t{\n\t\t\t\tcanLookup = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcanLookup = true;\n\t\t\t}\n\t\t\tcan = istream.readInt();\n\t\t\t// canjump\n\t\t\tif (can == 0)\n\t\t\t{\n\t\t\t\tcanJump = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcanJump = true;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"decode error::\" + e);\n\t\t}\n\t}"
] | [
"0.5172028",
"0.5165741",
"0.5159844",
"0.5123821",
"0.5101708",
"0.50336105",
"0.5012526",
"0.5012526",
"0.49939975",
"0.49759296",
"0.49114653",
"0.48958582",
"0.4890522",
"0.4885149",
"0.48780665",
"0.48691335",
"0.4863678",
"0.48150772",
"0.4805869",
"0.47853902",
"0.47210914",
"0.47000292",
"0.46776962",
"0.46707013",
"0.46288368",
"0.45922184",
"0.45861888",
"0.45642063",
"0.45478377",
"0.45449162",
"0.45112637",
"0.44964394",
"0.44773856",
"0.44442344",
"0.44065017",
"0.44047225",
"0.44029543",
"0.43791336",
"0.43735585",
"0.43710238",
"0.43613815",
"0.43259594",
"0.43173078",
"0.4315373",
"0.4307249",
"0.42986667",
"0.42850068",
"0.42815486",
"0.42721704",
"0.4268432",
"0.42500773",
"0.42433867",
"0.4223545",
"0.42117068",
"0.41959232",
"0.41926712",
"0.4190312",
"0.41858968",
"0.41752246",
"0.41750473",
"0.41745642",
"0.41613948",
"0.4146336",
"0.41403782",
"0.41345438",
"0.41333205",
"0.4132233",
"0.41317993",
"0.41263562",
"0.4126317",
"0.4120324",
"0.4114142",
"0.41095287",
"0.41005185",
"0.4096219",
"0.4095313",
"0.40828037",
"0.40802675",
"0.40747967",
"0.40694305",
"0.4066254",
"0.40577993",
"0.40548968",
"0.40498617",
"0.404797",
"0.4044885",
"0.40439135",
"0.4039199",
"0.40340918",
"0.40328234",
"0.4030729",
"0.40291616",
"0.4028476",
"0.40273994",
"0.40157962",
"0.40078297",
"0.40048456",
"0.3999665",
"0.39967838",
"0.399295"
] | 0.44427913 | 34 |
/ Override of default equals method. Calls equalsImpl() for content comparison. | @Override
public boolean equals(Object obj)
{
if(this == obj)
return true;
if(obj == null)
return false;
if(!getClass().isAssignableFrom(obj.getClass())) //if(getClass() != obj.getClass())
return false;
return equalsImpl(obj);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }",
"@Override\n\tpublic abstract boolean equals(Object other);",
"@Override public boolean equals(Object object);",
"@Override\n public abstract boolean equals(Object other);",
"@Override\n public abstract boolean equals(Object other);",
"@Override\n public abstract boolean equals(final Object o);",
"@Override\n public abstract boolean equals(final Object o);",
"@Override\n boolean equals(Object other);",
"@Override\n boolean equals(Object o);",
"@Override\n public boolean equals(Object other) {\n return super.equals(other);\n }",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn super.equals(o);\n\t}",
"@Override\n public final boolean equals( Object obj ) {\n return super.equals(obj);\n }",
"@Override \n boolean equals(Object obj);",
"@Override\n boolean equals(Object obj);",
"@Override public boolean equals(Object o) { // since 1.3.1\n // should these ever match actually?\n return (o == this);\n }",
"@Override\n public boolean equals(Object o) {\n return this == o;\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n public boolean equals(Object other) {\n return this == other;\n }",
"@Override\n public final boolean equals(Object obj) {\n return super.equals(obj);\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}",
"@Override\n\t\tpublic boolean equals(Object obj) {\n\t\t\treturn super.equals(obj);\n\t\t}",
"@Override\n public boolean equals(Object obj) {\n return this == obj;\n }",
"@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }",
"@Override\n public boolean equals(Object obj) {\n return this == obj;\n }",
"@Override\n public abstract boolean equals(Object obj);",
"@Override\n\tpublic boolean equals(Object obj){\n\t\treturn super.equals(obj);\n\t}",
"@Override\r\n public boolean equals(Object obj) {\r\n return super.equals(obj);\r\n }",
"@Override\n public boolean equals(final Object obj) {\n return super.equals(obj);\n }",
"@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }",
"@Override\r\n \tpublic boolean equals(final Object obj) {\r\n \t\t// Insert code to compare the receiver and obj here.\r\n \t\t// This implementation forwards the message to super. You may replace or supplement this.\r\n \t\t// NOTE: obj might be an instance of any class\r\n \t\treturn super.equals(obj);\r\n \t}",
"@Override\n public boolean equals(Object o) {\n return true;\n }",
"@Override\n public boolean equals(Object o1) {\n return super.equals(o1);\n }",
"@Override\n public boolean equals(Object other) {\n if (other.getClass() == getClass()) {\n return hashCode() == other.hashCode();\n }\n\n return false;\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"public abstract boolean equals(Object other);",
"@Override\r\n\t\tpublic boolean implementEquals(Object obj) {\n\t\t\treturn false;\r\n\t\t}",
"@Override\n\tpublic boolean equals(Object other)\n\t{\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean equals(Object arg0) {\n\t\treturn super.equals(arg0);\r\n\t}",
"public abstract boolean equals(Object o);",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object o) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn super.equals(arg0);\n\t}",
"@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn super.equals(arg0);\n\t}",
"public void equals() {\r\n // todo Implement this java.lang.Object method\r\n throw new UnsupportedOperationException(\"Method equals() not yet implemented.\");\r\n }",
"@Override\n public boolean equals(Object obj) {\n \n //TODO: Complete Method\n \n return true;\n }",
"@Override\r\n public boolean equals(Object obj) {\r\n if (this == obj)\r\n return true;\r\n if (obj == null)\r\n return false;\r\n if (getClass() != obj.getClass())\r\n return false;\r\n ItemImpl other = (ItemImpl) obj;\r\n if (id != other.id)\r\n return false;\r\n return true;\r\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (getClass() != obj.getClass()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn (!super.equals(obj));\n\t}",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof EcomMarkupPrimary)) {\n return false;\n }\n return id != null && id.equals(((EcomMarkupPrimary) o).id);\n }",
"public boolean equals(Object other)\n {\n \t// if the *pointers* are the same, then by golly it must be the same object!\n \tif (this == other)\n \t\treturn true;\n \t\n \t// if the parameter is null or the two objects are not instances of the same class,\n \t// they can't be equal\n \telse if (other == null || this.getClass() != other.getClass())\n \t\treturn false;\n \t\n //Since this class is what the bag will use if it wants\n //to hold strings, we'll use the equals() method in the\n //String class to check for equality\n \telse if ((this.content).equals(((StringContent)other).content))\n return true;\n \t\n else return false;\n }",
"@Override\n public boolean equals(Object other) {\n return false;\n }",
"@Override\n public abstract boolean equals(Object abc);",
"@Override\n public boolean equals(Object o) {\n return false;\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn false;\n\t}",
"private Equals() {}",
"@Override\n\t\tpublic boolean equals(Object o)\n\t\t{\n\t\t\t\n\t\t\tif (o == null || o.getClass() != Entry.class)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\tEntry other = (Entry)o;\n\t\t\t\n\t\t\treturn key.equals(other.key);\n\t\t}",
"@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }",
"@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }",
"@Override\n public boolean equals(Object o) {\n return (o!=null && o.getClass().equals(this.getClass()));\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn EqualsBuilder.reflectionEquals(this, obj);\n\t}",
"@Override\n public boolean equals(Object o)\n {\n if (this == o)\n {\n return true;\n }\n if (o == null || getClass() != o.getClass())\n {\n return false;\n }\n\n Item item = (Item) o;\n\n if (getId() != item.getId())\n {\n return false;\n }\n if (getUserId() != item.getUserId())\n {\n return false;\n }\n if (getListId() != item.getListId())\n {\n return false;\n }\n if (getPositionIndex() != item.getPositionIndex())\n {\n return false;\n }\n if (!getTitle().equals(item.getTitle()))\n {\n return false;\n }\n return getBody().equals(item.getBody());\n }",
"@Override\r\n public boolean equals(final Object o) {\r\n if (o instanceof DomItemXml) {\r\n return this.getJsObject() == ((DomItemXml) o).getJsObject();\r\n }\r\n return false;\r\n }",
"@java.lang.Override()\n public boolean equals(@org.jetbrains.annotations.Nullable()\n java.lang.Object other) {\n return false;\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (obj instanceof Link) {\r\n\t\t\tLink other = (Link) obj;\r\n\t\t\treturn extendedId.equals(other.getExtendedId());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override // com.google.common.base.Equivalence\n public boolean doEquivalent(Object a, Object b) {\n return a.equals(b);\n }",
"public boolean equals(Object obj) {\n if (!super.equals(obj)) {\n return false;\n }\n\n if (obj.getClass() != getClass()) {\n return false;\n }\n \n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n\n if (TkRefexAbstractMember.class.isAssignableFrom(obj.getClass())) {\n TkRefexAbstractMember<?> another = (TkRefexAbstractMember<?>) obj;\n\n // =========================================================\n // Compare properties of 'this' class to the 'another' class\n // =========================================================\n // Compare refsetUuid\n if (!this.refexUuid.equals(another.refexUuid)) {\n return false;\n }\n\n // Compare componentUuid\n if (!this.componentUuid.equals(another.componentUuid)) {\n return false;\n }\n\n // Compare their parents\n return super.equals(obj);\n }\n\n return false;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Item item = (Item) o;\n return ID == item.ID;\n }",
"@Override\n\tpublic boolean equals(Object other) {\n\t\tif (this == null || other == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!(other instanceof TextNode)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (!(this.toString().equals(other.toString()))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean equals(Object obj)\n {\n return this.Word().equals(((Word)obj).Word());\n }",
"@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof Entry<?>)) {\n return false;\n }\n\n var entry = (Entry<?>) obj;\n\n if (!this.registry.equals(entry.registry)) {\n return false;\n }\n\n if (this.index != entry.index) {\n return false;\n }\n\n if (this.value.getClass() != entry.value.getClass()) {\n return false;\n }\n\n return true;\n }",
"public boolean equals(java.lang.Object other){\n return false; //TODO codavaj!!\n }",
"@Override\n public boolean equals(final Object obj) {\n return getClass().isInstance(obj);\n }",
"@Override\n public boolean equals(final Object obj)\n {\n return this.value.equals(obj);\n }",
"@Override\n\tpublic boolean equal() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == this)\n\t\t\treturn true;\n\t\tif (obj.getClass() != this.getClass())\n\t\t\treturn false;\n\t\tSubject sb = (Subject)obj;\n\t\tif(sb.getCode() == this.getCode())\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean equals (Object l) {\n\t\tif (l == null) return false;\r\n\t\tif ( (l.toString()).equals(toString()) ) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\r\n public boolean equals(Object other) {\r\n if (other instanceof Song == false)\r\n return false;\r\n return this.toString().equals(other.toString());\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TagPK)) {\r\n return false;\r\n }\r\n TagPK other = (TagPK) object;\r\n if (this.articleId != other.articleId) {\r\n return false;\r\n }\r\n if (this.seq != other.seq) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object arg0) {\n\t\treturn false;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CatGeneralAeweb)) {\n return false;\n }\n CatGeneralAeweb other = (CatGeneralAeweb) object;\n if ((this.catGeneralAewebPK == null && other.catGeneralAewebPK != null) || (this.catGeneralAewebPK != null && !this.catGeneralAewebPK.equals(other.catGeneralAewebPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof MatchEntryPK))\n {\n return false;\n }\n MatchEntryPK other = (MatchEntryPK) object;\n if (this.id != other.id)\n {\n return false;\n }\n if (this.formatId != other.formatId)\n {\n return false;\n }\n return this.formatGameId == other.formatGameId;\n }",
"@Override\n public boolean equals(Object obj)\n {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (this.getClass() != obj.getClass())\n return false;\n SearchNode other = (SearchNode) obj;\n if (this.s == null)\n {\n if (other.s != null)\n return false;\n }\n else if (!this.s.equals(other.s))\n return false;\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n } else if (obj == null || getClass() != obj.getClass()) {\n return false;\n } else {\n return getQualifiedName().equals(obj);\n }\n }"
] | [
"0.79249686",
"0.7828631",
"0.77949375",
"0.7772397",
"0.7772397",
"0.7771628",
"0.7771628",
"0.7768197",
"0.7728093",
"0.76893854",
"0.76612586",
"0.76446354",
"0.7605421",
"0.7578525",
"0.75755996",
"0.75697637",
"0.75558066",
"0.75558066",
"0.75558066",
"0.75558066",
"0.75558066",
"0.75558066",
"0.75557363",
"0.75430405",
"0.7541196",
"0.7541196",
"0.7541196",
"0.7536958",
"0.7525074",
"0.75055",
"0.7504858",
"0.74828905",
"0.74787164",
"0.7475508",
"0.7466373",
"0.7465261",
"0.7458583",
"0.73241174",
"0.7320579",
"0.73042274",
"0.72596204",
"0.71594286",
"0.71477187",
"0.7139706",
"0.7113144",
"0.710325",
"0.71009535",
"0.71009535",
"0.7092996",
"0.7092996",
"0.7092996",
"0.7092996",
"0.70725095",
"0.70725095",
"0.7061841",
"0.7049959",
"0.70226425",
"0.7003517",
"0.7002404",
"0.697177",
"0.69573915",
"0.69454455",
"0.6942219",
"0.6832375",
"0.6832375",
"0.6832375",
"0.6832375",
"0.683003",
"0.6812663",
"0.676733",
"0.676733",
"0.676733",
"0.6745702",
"0.67332494",
"0.67185086",
"0.67059946",
"0.66773397",
"0.6671455",
"0.6667199",
"0.6664592",
"0.6662615",
"0.665979",
"0.6653908",
"0.6641276",
"0.6625184",
"0.6619277",
"0.6605671",
"0.66016763",
"0.65886116",
"0.6537272",
"0.65370154",
"0.65338796",
"0.65337753",
"0.65337753",
"0.65337753",
"0.65337753",
"0.6518292",
"0.64925",
"0.6491256",
"0.64837295"
] | 0.67471313 | 72 |
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object | public boolean equalsImpl(Object obj)
{
boolean ivarsEqual = true;
final EntityTypeVP rhs = (EntityTypeVP)obj;
if( ! (recordType == rhs.recordType)) ivarsEqual = false;
if( ! (changeIndicator == rhs.changeIndicator)) ivarsEqual = false;
if( ! (entityType.equals( rhs.entityType) )) ivarsEqual = false;
if( ! (padding == rhs.padding)) ivarsEqual = false;
if( ! (padding1 == rhs.padding1)) ivarsEqual = false;
return ivarsEqual;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean haveTwoObjsSameFields(Class classObjects, Object obj1, Object obj2, ArrayList<String> fieldsToExcludeFromCompare) {\n log.info(\"TEST: comparing two objects of class \"+classObjects.getName());\n if (obj1.getClass() != obj2.getClass()) {\n log.error(\"TEST: The two objects are instances of different classes, thus different\");\n return false;\n }\n\n try {\n PropertyDescriptor[] pds= Introspector.getBeanInfo(classObjects).getPropertyDescriptors();\n for(PropertyDescriptor pd: pds) {\n log.info(pd.getDisplayName());\n String methodName=pd.getReadMethod().getName();\n String fieldName = methodName.substring(3, methodName.length());\n\n if(fieldsToExcludeFromCompare.contains(fieldName)==true) {\n continue;\n }\n\n boolean areEqual=false;\n try {\n Object objReturned1 = pd.getReadMethod().invoke(obj1);\n Object objReturned2 =pd.getReadMethod().invoke(obj2);\n if(objReturned1!=null && objReturned2!=null) {\n areEqual=objReturned1.equals(objReturned2);\n if(objReturned1 instanceof List<?> && ((List) objReturned1).size()>0 && ((List) objReturned1).size()>0 && ((List) objReturned1).get(0) instanceof String) {\n String str1=String.valueOf(objReturned1);\n String str2=String.valueOf(objReturned2);\n areEqual=str1.equals(str2);\n\n }\n }\n else if(objReturned1==null && objReturned2==null) {\n log.info(\"TEST: Field with name \"+fieldName+\" null in both objects.\");\n areEqual=true;\n }\n else {\n //log.info(\"One of two objects is null\");\n //log.info(\"{}\",objReturned1);\n //log.info(\"{}\",objReturned2);\n }\n if(areEqual==false) {\n log.info(\"TEST: field with name \"+fieldName+\" has different values in objects. \");\n return false;\n }\n else{\n log.info(\"TEST: field with name \"+fieldName+\" has same value in both objects. \");\n }\n } catch (IllegalAccessException e) {\n\n e.printStackTrace();\n return false;\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n return false;\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n return false;\n }\n }\n } catch (IntrospectionException e) {\n e.printStackTrace();\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Field)) {\n return false;\n }\n Field other = (Field) object;\n if ((this.fieldId == null && other.fieldId != null) || (this.fieldId != null && !this.fieldId.equals(other.fieldId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj){\n \tState s=(State) obj;\n if (this.state==s.getState())\n \treturn true;\n else\n \treturn false;\n \t\t\n }",
"@Override public boolean equals(Object obj) {\r\n\t\tif(this==obj)return true;\r\n\t\tif (obj instanceof Field) {\r\n\t\t\tField field = (Field) obj;\r\n\t\t\treturn field.getID() == getID() && field.getName().equals(getName());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic final boolean equals(Object o) {\n\t\tif (this == o) {\n\t\t\treturn true;\n\t\t}\n\t\tif (!(o instanceof CollectableField)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn equals((CollectableField) o, true);\n\t}",
"public boolean equals(Object o) {\r\n\t\tif (!(o instanceof IValuedField)) return false; //get rid of non fields\r\n\t\tIValuedField field= (IValuedField)o;\r\n\t\tboolean areEqual = type.equals(field.getType());//same type \r\n\t\tif (formal){\r\n\t\t\treturn (areEqual && field.isFormal());\r\n\t\t} else //the current field is actual\r\n\t\t\tif (((IValuedField) field).isFormal()) { //if the other is formal\r\n\t\t\t\treturn false;\r\n\t\t\t} else //if they're both actual then their values must match\r\n\t\t\t{\r\n\t\t\t\tif (varname != null) // there is a variable name\r\n\t\t\t\t\t{\r\n\t\t\t\t\tif (!(o instanceof NameValueField))\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\telse //check that names match\r\n\t\t\t\t\t\tareEqual = (areEqual && (varname.equals(((NameValueField)field).getVarName())));\r\n\t\t\t\t\t}\r\n\t\t\t\treturn areEqual && value.equals(field.getValue()); //values are the same\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t\t\r\n\t\t\r\n\t}",
"public void testEquals(PCEPObject object1, PCEPObject object2) {\n \tInteger test1=new Integer(2);\n\t\tobject1.equals(test1);\n \t//Test same object\n \tobject1.equals(object1);\n \t//Test change in parent\n \tobject2.setObjectClass(object1.getObjectClass()+1);\n \tobject1.equals(object2);\n \tobject2.setObjectClass(object1.getObjectClass());\n \t//Test changes in fields\n\t\tList<Field> fieldListNS = new ArrayList<Field>();\n\t\tList<Field> fieldList= Arrays.asList(object1.getClass().getDeclaredFields());\n\t\tfor (Field field : fieldList) {\n\t\t\tfieldListNS.add(field);\n\t\t\tType ty=field.getGenericType();\n\t\t\tif (!java.lang.reflect.Modifier.isStatic(field.getModifiers())) {\n\t\t\t\tif (ty instanceof Class){\n\t\t\t\t\tClass c =(Class)ty;\n\t\t\t\t\tSystem.out.println(\"XXXXXXXXXXXXXXXXXClass name: \"+c.getName()); \n\t\t\t\t\tMethod method;\n\t\t\t\t\tMethod methods;\n\t\t\t\t\tif (c.isPrimitive()){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tif (c.getName().equals(\"boolean\")) {\n\t\t\t\t\t\t\tmethod = object1.getClass().getMethod(\"is\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),boolean.class);\n\t\t\t\t\t\t\tif (((boolean)method.invoke(object1,null))==true) {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,false);\n\t\t\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tmethods.invoke(object2,true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,(boolean)method.invoke(object1,null));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tmethod = object1.getClass().getMethod(\"get\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()));\n\t\t\t\t\t\t\tmethods = object2.getClass().getMethod(\"set\"+field.getName().replaceFirst(field.getName().substring(0, 1), field.getName().substring(0, 1).toUpperCase()),c);\n\t\t\t\t\t\t\tmethods.invoke(object2,77);\n\t\t\t\t\t\t\tobject1.equals(object2);\n\t\t\t\t\t\t\tmethods.invoke(object2,method.invoke(object1,null));\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} catch (Exception 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}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \t\n }",
"@Override\n public boolean equals(Object o) {\n if (o == this) {\n return true;\n }\n\n /* Check if o is an instance of Complex or not\n \"null instanceof [type]\" also returns false */\n if (!(o instanceof DynamicPriorityVMState)) {\n return false;\n }\n\n // typecast o to Complex so that we can compare data members\n DynamicPriorityVMState c = (DynamicPriorityVMState) o;\n\n // Compare the data members and return accordingly\n return this.threadInfo.equals(c.threadInfo);\n }",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsAccessResultDiff) {\n BsAccessResultDiff other = (BsAccessResultDiff)obj;\n if (!xSV(_id, other._id)) { return false; }\n if (!xSV(_sessionId, other._sessionId)) { return false; }\n if (!xSV(_ruleId, other._ruleId)) { return false; }\n if (!xSV(_url, other._url)) { return false; }\n if (!xSV(_parentUrl, other._parentUrl)) { return false; }\n if (!xSV(_status, other._status)) { return false; }\n if (!xSV(_httpStatusCode, other._httpStatusCode)) { return false; }\n if (!xSV(_method, other._method)) { return false; }\n if (!xSV(_mimeType, other._mimeType)) { return false; }\n if (!xSV(_contentLength, other._contentLength)) { return false; }\n if (!xSV(_executionTime, other._executionTime)) { return false; }\n if (!xSV(_createTime, other._createTime)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"@Override\n public boolean equals(Object obj) {\n if(obj == null || obj.getClass() != getClass()) return false;\n\n State state = (State)obj;\n\n // if both side equals then we say this state is equivalent to the other state\n if(state.getSideInfo(\"left\") == getSideInfo(\"left\"))\n if(state.getSideInfo(\"right\") == getSideInfo(\"right\"))\n return true;\n\n return false;\n }",
"@Override\r\n public boolean equals(Object obj) {\r\n // check for null\r\n if (obj == null) {\r\n System.out.println(\"State.equals() null fail\");\r\n return false;\r\n }\r\n // check that these objects are both States\r\n if (getClass() != obj.getClass()) {\r\n System.out.println(\"State.equals() class fail\");\r\n return false;\r\n }\r\n // cast to State\r\n State other = (State) obj;\r\n // check if these have the same root stored\r\n if (!this.root.equals(other.root)) {\r\n System.out.println(\"State.equals() root fail\");\r\n return false;\r\n }\r\n // check if these have the same exit state\r\n if (this.getExit() != (other.getExit())) {\r\n System.out.println(\"State.equals() exit fail\");\r\n return false;\r\n }\r\n // check if these have the same directory stack\r\n if (!this.directoryStack.equals(other.directoryStack)) {\r\n System.out.println(\"State.equals() dirStack fail\");\r\n return false;\r\n }\r\n // check if these have the same working directory\r\n return this.getWorkingDirectory().equals(other.getWorkingDirectory());\r\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}",
"@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n\n if (TkRefexAbstractMember.class.isAssignableFrom(obj.getClass())) {\n TkRefexAbstractMember<?> another = (TkRefexAbstractMember<?>) obj;\n\n // =========================================================\n // Compare properties of 'this' class to the 'another' class\n // =========================================================\n // Compare refsetUuid\n if (!this.refexUuid.equals(another.refexUuid)) {\n return false;\n }\n\n // Compare componentUuid\n if (!this.componentUuid.equals(another.componentUuid)) {\n return false;\n }\n\n // Compare their parents\n return super.equals(obj);\n }\n\n return false;\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n BCGlobalProps other = (BCGlobalProps) that;\n return (this.getLogUuid() == null ? other.getLogUuid() == null : this.getLogUuid().equals(other.getLogUuid()))\n && (this.getBversion() == null ? other.getBversion() == null : this.getBversion().equals(other.getBversion()))\n && (this.getBlockHeight() == null ? other.getBlockHeight() == null : this.getBlockHeight().equals(other.getBlockHeight()))\n && (this.getPropKey() == null ? other.getPropKey() == null : this.getPropKey().equals(other.getPropKey()))\n && (this.getPropValue() == null ? other.getPropValue() == null : this.getPropValue().equals(other.getPropValue()))\n && (this.getMptType() == null ? other.getMptType() == null : this.getMptType().equals(other.getMptType()))\n && (this.getHashValue() == null ? other.getHashValue() == null : this.getHashValue().equals(other.getHashValue()))\n && (this.getTxid() == null ? other.getTxid() == null : this.getTxid().equals(other.getTxid()))\n && (this.getPrevHashValue() == null ? other.getPrevHashValue() == null : this.getPrevHashValue().equals(other.getPrevHashValue()))\n && (this.getPrevBlockHeight() == null ? other.getPrevBlockHeight() == null : this.getPrevBlockHeight().equals(other.getPrevBlockHeight()))\n && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))\n && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));\n }",
"@Override\n public boolean equals(Object object) {\n DFAState otherState = (DFAState) object;\n return this.hashCode == otherState.hashCode();\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof BlInfo)) {\n return false;\n }\n BlInfo other = (BlInfo) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"public boolean equals(Object object) {\n boolean bl = true;\n boolean bl2 = false;\n if (this == object) {\n return true;\n }\n boolean bl3 = bl2;\n if (object == null) return bl3;\n bl3 = bl2;\n if (this.getClass() != object.getClass()) return bl3;\n object = (BPMeasurementsDescription)object;\n if (this.userName != null) {\n bl3 = bl2;\n if (!this.userName.equals(((BPMeasurementsDescription)object).userName)) return bl3;\n } else if (((BPMeasurementsDescription)object).userName != null) {\n return false;\n }\n if (this.date != null) {\n bl3 = bl2;\n if (!this.date.equals(((BPMeasurementsDescription)object).date)) return bl3;\n } else if (((BPMeasurementsDescription)object).date != null) {\n return false;\n }\n if (this.sys != null) {\n bl3 = bl2;\n if (!this.sys.equals(((BPMeasurementsDescription)object).sys)) return bl3;\n } else if (((BPMeasurementsDescription)object).sys != null) {\n return false;\n }\n if (this.dia != null) {\n bl3 = bl2;\n if (!this.dia.equals(((BPMeasurementsDescription)object).dia)) return bl3;\n } else if (((BPMeasurementsDescription)object).dia != null) {\n return false;\n }\n if (this.pulse == null) {\n if (((BPMeasurementsDescription)object).pulse != null) return false;\n return bl;\n }\n bl3 = bl;\n if (this.pulse.equals(((BPMeasurementsDescription)object).pulse)) return bl3;\n return false;\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (this == obj)\n\t\t\treturn true;\n\t\tif (obj == null)\n\t\t\treturn false;\n\t\tif (getClass() != obj.getClass())\n\t\t\treturn false;\n\t\tState other = (State) obj;\n\t\tif (state_rep == null) {\n\t\t\tif (other.state_rep != null)\n\t\t\t\treturn false;\n\t\t} else if (!state_rep.equals(other.state_rep))\n\t\t\treturn false;\n\t\treturn true;\n\t}",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"@Override\n public boolean hardDiff(FObject o1, FObject o2, FObject diff) {\n if ( this.get(o1) == null ) {\n if ( this.get(o2) == null ) {\n return false;\n } else {\n //shadow copy, since we only use to print out diff entry in journal\n this.set(diff, this.get(o2));\n return true;\n }\n }\n //Both this.get(o1) and thid.get(o2) are not null\n //The propertyInfo is instance of AbstractObjectProperty, so that there is no way to do nested propertyInfo check\n //No matter if there are point to same instance or not, treat them as difference\n //if there are point to different instance, indeed there are different\n //if there are point to same instance, we can not guarantee if there are no difference comparing with record in the journal.\n //shodow copy\n this.set(diff, this.get(o2));\n return true;\n }",
"protected boolean haveDependingFields(EventType event1, EventType event2) {\r\n\t\treturn !getCommonFields(event1, event2).isEmpty();\r\n\t}",
"public void testEquals() throws Exception {\n State state1 = new State();\n state1.setCanJump(1);\n state1.setDirection(1);\n state1.setGotHit(1);\n state1.setHeight(1);\n state1.setMarioMode(1);\n state1.setOnGround(1);\n state1.setEnemiesSmall(new boolean[3]);\n state1.setObstacles(new boolean[4]);\n state1.setDistance(1);\n state1.setStuck(1);\n\n State state2 = new State();\n state2.setCanJump(1);\n state2.setDirection(1);\n state2.setGotHit(1);\n state2.setHeight(1);\n state2.setMarioMode(1);\n state2.setOnGround(1);\n state2.setEnemiesSmall(new boolean[3]);\n state2.setObstacles(new boolean[4]);\n state2.setStuck(1);\n\n State state3 = new State();\n state3.setCanJump(1);\n state3.setDirection(1);\n state3.setGotHit(1);\n state3.setHeight(1);\n state3.setMarioMode(2);\n state3.setOnGround(1);\n state3.setEnemiesSmall(new boolean[3]);\n state3.setObstacles(new boolean[4]);\n assertEquals(state1,state2);\n assertTrue(state1.equals(state2));\n assertFalse(state1.equals(state3));\n Set<State> qTable = new HashSet<State>();\n qTable.add(state1);\n qTable.add(state2);\n assertEquals(1,qTable.size());\n qTable.add(state3);\n assertEquals(2,qTable.size());\n\n }",
"public boolean compareEqual(org.vcell.util.Matchable obj) {\r\n\tif (obj instanceof ReferenceDataMappingSpec){\r\n\t\tReferenceDataMappingSpec rdms = (ReferenceDataMappingSpec)obj;\r\n\r\n\t\tif (!org.vcell.util.Compare.isEqual(referenceDataColumnName,rdms.referenceDataColumnName)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\tif ((fieldModelObject == null && rdms.fieldModelObject != null) ||\r\n\t\t\t(fieldModelObject != null && rdms.fieldModelObject == null)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\t//\r\n\t\t// if both are null, everything is ok\r\n\t\t// if both are non-null, then check for equivalence.\r\n\t\t//\r\n\t\tif (fieldModelObject != null && rdms.fieldModelObject != null){\r\n\t\t\tif (fieldModelObject instanceof org.vcell.util.Matchable){\r\n\t\t\t\tif (rdms.fieldModelObject instanceof org.vcell.util.Matchable){\r\n\t\t\t\t\tif (!org.vcell.util.Compare.isEqualOrNull((org.vcell.util.Matchable)this.fieldModelObject,(org.vcell.util.Matchable)rdms.fieldModelObject)){\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\t//\r\n\t\t\t\t// else compare symbol type, name, and nameScope name\r\n\t\t\t\t//\t\t\t\t\r\n\t\t\t\tif (!fieldModelObject.getClass().equals(rdms.fieldModelObject.getClass())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!fieldModelObject.getName().equals(rdms.fieldModelObject.getName())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\tif (!fieldModelObject.getNameScope().getName().equals(rdms.fieldModelObject.getNameScope().getName())){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}\r\n\treturn false;\r\n}",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsProject) {\n BsProject other = (BsProject)obj;\n if (!xSV(_projectId, other._projectId)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"@Override\n public boolean equals(Object obj) {\n return ((Variable)obj).name.equals(this.name) && ((Variable)obj).initialValue == this.initialValue;\n }",
"@Test(timeout = TIMEOUT)\n public void testInstanceFields() {\n Class sortingClass = Sorting.class;\n Field[] fields = sortingClass.getDeclaredFields();\n Field[] validFields = new Field[0];\n assertArrayEquals(fields, validFields);\n }",
"public boolean equals(Object obj)\n {\n if (obj instanceof BasicUpdate)\n {\n BasicUpdate other = (BasicUpdate) obj;\n if (counter == null)\n {\n if (other.counter != null)\n {\n return false;\n }\n }\n else\n {\n if (! counter.equals(other.counter))\n {\n return false;\n }\n }\n return true;\n }\n return false;\n }",
"public boolean equals(Object obj)\n {\n if (!super.equals(obj))\n return false;\n\n PSSearchField s2 = (PSSearchField) obj;\n\n return m_strDescription.equals(s2.m_strDescription)\n && m_strDisplayName.equals(s2.m_strDisplayName)\n && m_mnemonic.equals(s2.getMnemonic())\n && m_strFieldType.equals(s2.m_strFieldType)\n && m_strFieldName.equals(s2.m_strFieldName)\n && m_values.equals(s2.m_values)\n && m_strOperator.equals(s2.m_strOperator)\n && m_extOperator.equals(s2.m_extOperator)\n && m_sequence == s2.m_sequence\n && compare(m_choices, s2.m_choices);\n }",
"@Override\n public boolean equals(Object obj) {\n return (obj!=null && (obj instanceof TransactionType) && hashCode()==((TransactionType)obj).hashCode());\n }",
"@Override\n public boolean equals(Object obj) {\n if (obj == null) {\n return false;\n }\n\n if (TkRefexIntRevision.class.isAssignableFrom(obj.getClass())) {\n TkRefexIntRevision another = (TkRefexIntRevision) obj;\n\n // =========================================================\n // Compare properties of 'this' class to the 'another' class\n // =========================================================\n // Compare intValue\n if (this.intValue != another.intValue) {\n return false;\n }\n\n // Compare their parents\n return super.equals(obj);\n }\n\n return false;\n }",
"@Override\n public boolean equals(Object obj) {\n if (!canonicalizing) // use object identity as equality, except during canonicalization\n return obj == this;\n if (obj == this)\n return true;\n if (!(obj instanceof Value))\n return false;\n Value v = (Value) obj;\n // noinspection StringEquality\n return flags == v.flags\n && (var == v.var || (var != null && v.var != null && var.equals(v.var)))\n && ((num == null && v.num == null) || (num != null && v.num != null && num.equals(v.num)))\n && (str == v.str || (str != null && v.str != null && str.equals(v.str)))\n && (object_labels == v.object_labels || (object_labels != null && v.object_labels != null && object_labels.equals(v.object_labels)))\n && (getters == v.getters || (getters != null && v.getters != null && getters.equals(v.getters)))\n && (setters == v.setters || (setters != null && v.setters != null && setters.equals(v.setters)))\n && (excluded_strings == v.excluded_strings || (excluded_strings != null && v.excluded_strings != null && excluded_strings.equals(v.excluded_strings)))\n && (included_strings == v.included_strings || (included_strings != null && v.included_strings != null && included_strings.equals(v.included_strings)))\n && Objects.equals(functionPartitions, v.functionPartitions)\n && Objects.equals(functionTypeSignatures, v.functionTypeSignatures);\n }",
"@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (! (objectToCompare instanceof APIOperationResponse))\n {\n return false;\n }\n if (! super.equals(objectToCompare))\n {\n return false;\n }\n\n APIOperationResponse that = (APIOperationResponse) objectToCompare;\n\n if (headerAttributeCount != that.headerAttributeCount)\n {\n return false;\n }\n if (requestAttributeCount != that.requestAttributeCount)\n {\n return false;\n }\n if (responseAttributeCount != that.responseAttributeCount)\n {\n return false;\n }\n return apiOperation != null ? apiOperation.equals(that.apiOperation) : that.apiOperation == null;\n }",
"@Override\n public boolean equals(Object o) {\n // we may have the same object, further comparisons are not necessary\n // if it's not the case, we compare specific fields\n if (super.equals(o)) {\n return true;\n }\n\n // we can only compare FlightAdv objects\n if (!(o instanceof FlightAdv)) {\n return false;\n }\n\n // we need access to flightNumber and flightClass, we have to cast Object to FlightAdv\n FlightAdv other = (FlightAdv) o;\n return\n getFlightNumber() == other.getFlightNumber()\n && getFlightClass() == other.getFlightClass();\n\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn EqualsBuilder.reflectionEquals(this, obj);\n\t}",
"public boolean isObjectDifferentiaField(CharField cf) {\n return false;\n }",
"@Override\n public boolean equals(Object other) {\n return Arrays.equals(state, ((CannibalNode) other).state);\n }",
"boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }",
"@Override\n public boolean equals(Object obj) {\n PlanningSalle plaS;\n if (obj ==null || obj.getClass()!=this.getClass()){\n return false;\n }\n\n else {\n plaS =(PlanningSalle)obj;\n if(\n plaS.getDateDebutR().equals(getDateDebutR()) //vu que type primitif == pas equals\n & plaS.getDateFinR().equals(getDateFinR())) { \n {\n return true;\n }\n }\n\n else {\n return false;\n }\n }\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n Entry entry = (Entry) o;\n return field == entry.field;\n }",
"@Test\n public void checkEquals() {\n EqualsVerifier.forClass(GenericMessageDto.class).usingGetClass()\n .suppress(Warning.NONFINAL_FIELDS).verify();\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Structure)) {\r\n return false;\r\n }\r\n Structure other = (Structure) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TblSpecimenOld)) {\n return false;\n }\n TblSpecimenOld other = (TblSpecimenOld) object;\n if ((this.specimenId == null && other.specimenId != null) || (this.specimenId != null && !this.specimenId.equals(other.specimenId))) {\n return false;\n }\n return true;\n }",
"public final boolean equals(Object obj) {\n AppMethodBeat.m2504i(109592);\n if (this != obj) {\n if (obj instanceof C22192a) {\n C22192a c22192a = (C22192a) obj;\n if (C25052j.m39373j(this.username, c22192a.username)) {\n if (this.state == c22192a.state) {\n }\n }\n }\n AppMethodBeat.m2505o(109592);\n return false;\n }\n AppMethodBeat.m2505o(109592);\n return true;\n }",
"public boolean equals(Object inputObj) {\n\t\t\tboolean eredmeny = false;\n\t\t\tif (this.hashCode() == inputObj.hashCode()) {\n\t\t\t\teredmeny = true;\n\t\t\t}\n\t\t\treturn eredmeny;\n\t\t}",
"public boolean equals(Object o) {\r\n\t\tif (!(o instanceof State)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tState other = (State) o;\r\n\t\treturn id.equals(other.id) && flow.equals(other.flow);\r\n\t}",
"@Override\n public boolean equals(Object obj) {\n return this == obj;\n }",
"@Override\n public boolean equals(Object obj) {\n if(obj.getClass().equals(Lake.class)) {\n Lake lake = (Lake) obj;\n return lake.getId().equals(this.id) &\n lake.getName().equals(this.name) &\n lake.getNearestTown().equals(this.nearestTown) &\n lake.getMostRecentSurveyDate().equals(this.mostRecentSurveyDate) &\n lake.getCounty().equals(this.county);\n }\n return false;\n }",
"@Override\n public boolean equals(Object obj) {\n if (obj == this) {\n return true;\n }\n\n // instanceof handles nulls\n if (!(obj instanceof ModelManager)) {\n return false;\n }\n\n // state check\n ModelManager other = (ModelManager) obj;\n return versionedAddressBook.equals(other.versionedAddressBook)\n && filteredPersons.equals(other.filteredPersons)\n && filteredEvents.equals(other.filteredEvents);\n }",
"@Test\n public void testHashCodeAndEquals() throws Exception {\n final String name = \"testName\";\n\n TestStateDescriptor<String> original = new TestStateDescriptor<>(name, String.class);\n TestStateDescriptor<String> same = new TestStateDescriptor<>(name, String.class);\n TestStateDescriptor<String> sameBySerializer =\n new TestStateDescriptor<>(name, StringSerializer.INSTANCE);\n\n // test that hashCode() works on state descriptors with initialized and uninitialized\n // serializers\n assertEquals(original.hashCode(), same.hashCode());\n assertEquals(original.hashCode(), sameBySerializer.hashCode());\n\n assertEquals(original, same);\n assertEquals(original, sameBySerializer);\n\n // equality with a clone\n TestStateDescriptor<String> clone = CommonTestUtils.createCopySerializable(original);\n assertEquals(original, clone);\n\n // equality with an initialized\n clone.initializeSerializerUnlessSet(new ExecutionConfig());\n assertEquals(original, clone);\n\n original.initializeSerializerUnlessSet(new ExecutionConfig());\n assertEquals(original, same);\n }",
"public boolean equivalentTo (BusinessObject other, Callback<BusinessObject, Boolean> ignoreFields) {\n\t\tif (this == other) {\n\t\t\treturn true;\t// no point checking... we know they're the same...\n\t\t}\n\t\tif (getClass() != other.getClass() ||\t// different class... must be different\n\t\t\t\t((children == null) != (other.children == null)) ||\t// one is null while other isn't\n\t\t\t\t(children != null && children.size() != other.children.size())) {\t// both has children, but differing amounts\t\n\t\t\treturn false;\n\t\t} \n\t\tif (children != null) {\n\t\t\tfor (BusinessObject child : children.values()) {\n\t\t\t\t// Not going to bother comparing if callback returns true\n\t\t\t\tif (ignoreFields != null && ignoreFields.call(child)) continue;\t\n\t\t\t\tString name = child.nameProperty().getValue();\n\t\t\t\tBusinessObject otherChild = other.findChildByName(name);\n\t\t\t\tif(otherChild == null || !child.equivalentTo(otherChild, ignoreFields)) return false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean equals( Object other) {\n\n\t\tif( !( other instanceof BooleanStateValue)) {\n return false;\n }\n\n\t\tBooleanStateValue otherValue = (BooleanStateValue) other;\n\n\t\treturn _storage == otherValue._storage;\n\t}",
"public void checkFields(){\n }",
"@Override\n public boolean equals(Object obj) {\n final CacheKey cache = (CacheKey) obj;\n if (cache==null || this.getType()!=cache.getType()) {\n return false;\n }\n for (int i=size()-1; i>=0; --i) {\n final Object v1 = this.getValue(i);\n final Object v2 = cache.getValue(i);\n if (!v1.equals(v2)) {\n return false;\n }\n }\n return true;\n }",
"public int compareTo(Object obj) {\n AccessRequestStatusItem otherItem = (AccessRequestStatusItem)obj;\n int value = 0;\n\n value = objectCompareToFK(this.getProject(), otherItem.getProject());\n if (value != 0) { return value; }\n\n value = objectCompareToFK(this.getUser(), otherItem.getUser());\n if (value != 0) { return value; }\n\n value = objectCompareTo(AccessRequestStatusItem.arStringEquivalent(this.getStatus(), false),\n AccessRequestStatusItem.arStringEquivalent(otherItem.getStatus(), false));\n if (value != 0) { return value; }\n\n value = objectCompareTo(this.getLastActivityDate(), otherItem.getLastActivityDate());\n if (value != 0) { return value; }\n\n value = objectCompareTo(this.getHasPiSeen(), otherItem.getHasPiSeen());\n if (value != 0) { return value; }\n\n value = objectCompareTo(this.getHasDpSeen(), otherItem.getHasDpSeen());\n if (value != 0) { return value; }\n\n value = objectCompareTo(this.getHasAdminSeen(), otherItem.getHasAdminSeen());\n if (value != 0) { return value; }\n\n value = objectCompareTo(this.getHasRequestorSeen(), otherItem.getHasRequestorSeen());\n if (value != 0) { return value; }\n\n value = objectCompareTo(this.getEmailStatus(), otherItem.getEmailStatus());\n if (value != 0) { return value; }\n\n return value;\n }",
"public void testEqualsObject() {\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.0\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.1\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.2\")); //$NON-NLS-1$\n\t\t\tif (tipo1 != tipo1)\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.3\")); //$NON-NLS-1$\n\t\t\tif (!tipo1.equals(tipo2))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.4\"));\t\t\t //$NON-NLS-1$\n\t\t\tif (tipo1.equals(tipo3))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.5\"));\t //$NON-NLS-1$\n\t\t}",
"private boolean checkFields() {\n\t\tboolean status = true;\n\n\t\treturn status;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof ActGL)) {\n return false;\n }\n ActGL other = (ActGL) object;\n if ((this.nGLID == null && other.nGLID != null) || (this.nGLID != null && !this.nGLID.equals(other.nGLID))) {\n return false;\n }\n return true;\n }",
"@Override\n\t\tpublic boolean equals(Object obj) {\n\t\t\treturn super.equals(obj);\n\t\t}",
"public boolean betterEquals(Object obj)\n\t{\n\t\tif (obj instanceof Player)\n\t\t{\n\t\t\tPlayer other = (Player) obj;\n\t\t\treturn this.name.equals(other.name) && this.pawn == other.pawn;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean equals(Object o) {\n\t\tif (o == this)\n\t\t\treturn true;\n\t\tif (!(o instanceof ClientState))\n\t\t\treturn false;\n\n\t\tClientState cs = (ClientState) o;\n\t\tif (userId != cs.userId)\n\t\t\treturn false;\n\t\tif (yVote != cs.yVote)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"@Override\n public boolean equals(final Object obj) {\n return getClass().isInstance(obj);\n }",
"private boolean compareBaseHeaderFields(HeaderMsg requestHeader, HeaderMsg responseHeader) {\n return requestHeader.getRequestId() == responseHeader.getRequestId() &&\n requestHeader.getEpoch() == responseHeader.getEpoch() &&\n requestHeader.getClientId().equals(responseHeader.getClientId()) &&\n requestHeader.getClusterId().equals(responseHeader.getClusterId());\n }",
"@Test\n public void equals() {\n Log logCopy = new LogBuilder(LOG_A).build();\n assertFalse(LOG_A == logCopy);\n\n // same object -> returns true\n assertTrue(LOG_A == LOG_A);\n\n // null -> returns false\n assertFalse(LOG_A == null);\n\n // different type -> returns false\n assertFalse(LOG_A.equals(5));\n\n // different log -> returns false\n assertFalse(LOG_A == LOG_B);\n\n // different exercise -> returns false\n Log editedLog = new LogBuilder(LOG_A).withExercise(VALID_EXERCISE_B).build();\n assertFalse(LOG_A == editedLog);\n\n // different reps -> returns false\n editedLog = new LogBuilder(LOG_A).withReps(VALID_REP_B_INT).build();\n assertFalse(LOG_A == editedLog);\n\n // different comment -> returns false\n editedLog = new LogBuilder(LOG_A).withComment(VALID_COMMENT_B_STR).build();\n assertFalse(LOG_A == editedLog);\n\n // different dateTime -> returns false\n editedLog = new LogBuilder(LOG_A).withDateTime(VALID_DATE_TIME_B).build();\n assertFalse(LOG_A == editedLog);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Monitoring)) {\n return false;\n }\n Monitoring other = (Monitoring) object;\n if ((this.monitoringPK == null && other.monitoringPK != null) || (this.monitoringPK != null && !this.monitoringPK.equals(other.monitoringPK))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Local)) {\n return false;\n }\n Local other = (Local) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n // Cast type to correct type\n Student studentObj = (Student) obj;\n\n // Check if first name, last name, and grade are the same and return result\n return studentObj.firstName == this.firstName &&\n studentObj.lastName == this.lastName &&\n studentObj.grade == this.grade;\n }",
"@Override\r\n \tpublic boolean equals(final Object obj) {\r\n \t\t// Insert code to compare the receiver and obj here.\r\n \t\t// This implementation forwards the message to super. You may replace or supplement this.\r\n \t\t// NOTE: obj might be an instance of any class\r\n \t\treturn super.equals(obj);\r\n \t}",
"public int[] findDirty(Object obj, \r\n Serializable serial, \r\n Object[] currentState, \r\n Object[] previousState, \r\n String[] properties, \r\n Type[] types) {\n return null;\r\n }",
"default <T> T getAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isTransient(field.getModifiers())) continue;\n\n if (!contains(field.getName())) continue;\n\n try {\n if (field.getType().equals(double.class)) {\n if (!isNumber(field.getName())) continue;\n field.setDouble(object, getDouble(field.getName()));\n } else if (field.getType().equals(float.class)) {\n if (!isNumber(field.getName())) continue;\n field.setFloat(object, (float) getDouble(field.getName()));\n } else if (field.getType().equals(int.class)) {\n if (!isNumber(field.getName())) continue;\n field.setInt(object, getInt(field.getName()));\n } else if (field.getType().equals(boolean.class)) {\n if (!isBoolean(field.getName())) continue;\n field.setBoolean(object, getBoolean(field.getName()));\n } else if (field.getType().equals(long.class)) {\n if (!isNumber(field.getName())) continue;\n field.setLong(object, getLong(field.getName()));\n } else if (field.getType().equals(short.class)) {\n if (!isNumber(field.getName())) continue;\n field.setShort(object, (short) getInt(field.getName()));\n } else if (field.getType().equals(byte.class)) {\n if (!isNumber(field.getName())) continue;\n field.setByte(object, (byte) getInt(field.getName()));\n } else {\n Object newValue = getType(field.getName(), field.getType());\n if (newValue == null) continue;\n\n field.set(object, newValue);\n }\n\n } catch (IllegalAccessException e) {\n //This should not happen hopefully.\n e.printStackTrace();\n }\n }\n\n return object;\n }",
"@Override\n public boolean equals(Object objectToCompare)\n {\n if (this == objectToCompare)\n {\n return true;\n }\n if (objectToCompare == null || getClass() != objectToCompare.getClass())\n {\n return false;\n }\n TypeDefProperties that = (TypeDefProperties) objectToCompare;\n return Objects.equals(typeDefProperties, that.typeDefProperties);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Bd)) {\n return false;\n }\n Bd other = (Bd) object;\n if ((this.name == null && other.name != null) || (this.name != null && !this.name.equals(other.name))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object obj) {\r\n return super.equals(obj);\r\n }",
"@Override\n public boolean equals(final Object obj)\n {\n return this.value.equals(obj);\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tStudent obj1=(Student) obj;\r\n\t\treturn obj1.getAge().equals(this.getAge())&&obj1.getName().equals(this.getName());\r\n\t}",
"@Override\n public final boolean equals( Object obj ) {\n return super.equals(obj);\n }",
"private static boolean checkSingleFieldConsistency(\n LogManager pLogger, SMGObject pObject, UnmodifiableSMG pSmg) {\n\n // For all fields in the object, verify that sizeof(type)+field_offset < object_size\n SMGEdgeHasValueFilterByObject filter = SMGEdgeHasValueFilter.objectFilter(pObject);\n\n for (SMGEdgeHasValue hvEdge : pSmg.getHVEdges(filter)) {\n if ((hvEdge.getOffset() + hvEdge.getSizeInBits()) > pObject.getSize()) {\n pLogger.log(Level.SEVERE, \"SMG inconistent: field exceedes boundary of the object\");\n pLogger.log(Level.SEVERE, \"Object: \", pObject);\n pLogger.log(Level.SEVERE, \"Field: \", hvEdge);\n return false;\n }\n }\n return true;\n }",
"private static int preComparison(Object actualObject, Object compareObject) {\n\t\tint status = 0;\n\t\t//if primitive and not equal\n\t\tif ((status = compareIfPrimitive(actualObject, compareObject)) != 0) {\n\t\t\treturn status;\n\t\t}\n\t\t//if String\n\t\tif ((status = compareIfString(actualObject, compareObject)) != 0) {\n\t\t\treturn status;\n\t\t}\n\t\t//if list\n\t\tif ((status = compareIfList(actualObject, compareObject)) != 0) {\n\t\t\treturn status;\n\t\t}\n\t\t//if array\n\t\tif ((status = compareIfArray(actualObject, compareObject)) != 0) {\n\t\t\treturn status;\n\t\t}\n\t\t//if set\n\t\tif ((status = compareIfSet(actualObject, compareObject)) != 0) {\n\t\t\treturn status;\n\t\t}\n\t\t//if map\n\t\tif ((status = compareIfMap(actualObject, compareObject)) != 0) {\n\t\t\treturn status;\n\t\t}\n\n\t\treturn status;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof VillagePK)) {\n return false;\n }\n VillagePK other = (VillagePK) object;\n if (this.villageCode != other.villageCode) {\n return false;\n }\n if (this.villageVersion != other.villageVersion) {\n return false;\n }\n \n if (this.minorVersion != other.minorVersion) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(final Object obj) {\n return super.equals(obj);\n }",
"public boolean equal(Object obj) {\n\t\tif((super.equal(obj))==false) {return false;}\n\t\tif (!(this.purpose).equals(((Airborne)obj).purpose)) {return false;}\n\t\treturn true;\n\t}",
"default boolean isSameStateAs(ReadOnlyTask other) {\n return other == this // short circuit if same object\n || (other != null // this is first to avoid NPE below\n && other.getContent().equals(this.getContent())); // state checks here onwards\n //&& other.getDate().equals(this.getDate())\n //&& other.getTime().equals(this.getTime()));\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tif (obj == null)\r\n\t\t\treturn false;\r\n\t\tif(! (obj instanceof Transaction))\r\n\t\t\treturn false;\r\n\t\tTransaction t = (Transaction) obj;\r\n\t\tif(this.somme != t.somme)\r\n\t\t\treturn false;\r\n\t\tif(this.payeur != t.payeur)\r\n\t\t\treturn false;\r\n\t\tif(this.receveur != t.receveur)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"boolean containsObjectFlowState(ObjectFlowState objectFlowState);",
"public boolean equals(Object obj) {\n // Quick same object test\n if(this == obj) {\n return true;\n }\n\n // Quick fail tests\n if(!(obj instanceof SetQuery)) {\n return false;\n }\n\n SetQuery other = (SetQuery) obj;\n\n return getOperation() == other.getOperation() &&\n EquivalenceUtil.areEqual(this.isAll(), other.isAll()) &&\n EquivalenceUtil.areEqual(this.leftQuery, other.leftQuery) &&\n EquivalenceUtil.areEqual(this.rightQuery, other.rightQuery) &&\n EquivalenceUtil.areEqual(getOrderBy(), other.getOrderBy()) &&\n EquivalenceUtil.areEqual(getLimit(), other.getLimit()) &&\n EquivalenceUtil.areEqual(getWith(), other.getWith()) &&\n sameOptionAndHint(other);\n }",
"public boolean equals(Object obj) {\n\n if (!this.getClass().equals(obj.getClass())) {\n System.out.println(\"different classes\");\n return false;\n }\n\n Proto cmd = (Proto)obj;\n for (String key : cmd.getArguments().keySet()) {\n if (this.getArguments().containsKey(key)) {\n if(!this.getArguments().containsValue(cmd.getArgument(key))) {\n return false;\n }\n } else {\n return false;\n }\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof FastTrans)) {\n return false;\n }\n FastTrans other = (FastTrans) object;\n if ((this.tranferIdTransfer == null && other.tranferIdTransfer != null) || (this.tranferIdTransfer != null && !this.tranferIdTransfer.equals(other.tranferIdTransfer))) {\n return false;\n }\n return true;\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn this.hashCode() == obj.hashCode();\n\t}",
"@Test\n\tpublic void test_TCM__boolean_equals_Object() {\n\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\");\n\n assertFalse(\"attribute equal to null\", attribute.equals(null));\n\n final Object object = attribute;\n assertTrue(\"object not equal to attribute\", attribute.equals(object));\n assertTrue(\"attribute not equal to object\", object.equals(attribute));\n\n // current implementation checks only for identity\n// final Attribute clonedAttribute = (Attribute) attribute.clone();\n// assertTrue(\"attribute not equal to its clone\", attribute.equals(clonedAttribute));\n// assertTrue(\"clone not equal to attribute\", clonedAttribute.equals(attribute));\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Valvula)) {\n return false;\n }\n Valvula other = (Valvula) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }",
"protected abstract int compareOnAttribute( U obj );",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tboolean isSame = false;\r\n\t\tStatus sts = (Status) obj;\r\n\t\tif (this.statusId == sts.statusId) {\r\n\t\t\tisSame = true;\r\n\t\t}\r\n\t\treturn isSame;\r\n\t}",
"@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsMemberFollowing) {\n BsMemberFollowing other = (BsMemberFollowing)obj;\n if (!xSV(_memberFollowingId, other._memberFollowingId)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof BlastingtypeRelationsAud)) {\n return false;\n }\n BlastingtypeRelationsAud that = (BlastingtypeRelationsAud) other;\n Object myBtrAudUid = this.getBtrAudUid();\n Object yourBtrAudUid = that.getBtrAudUid();\n if (myBtrAudUid==null ? yourBtrAudUid!=null : !myBtrAudUid.equals(yourBtrAudUid)) {\n return false;\n }\n return true;\n }",
"@Override\n public final boolean equals(Object obj) {\n if (!(obj instanceof UniqueID))\n return false;\n UniqueID castObj = (UniqueID)obj;\n return this.leastSigBits == castObj.leastSigBits && this.mostSigBits == castObj.mostSigBits;\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}"
] | [
"0.6224978",
"0.5776585",
"0.5627261",
"0.56241596",
"0.5596343",
"0.55433035",
"0.5531606",
"0.5489745",
"0.545598",
"0.53999573",
"0.52864593",
"0.5251711",
"0.52252316",
"0.5219623",
"0.52134746",
"0.52103925",
"0.51997674",
"0.51893634",
"0.5183688",
"0.5171715",
"0.5171328",
"0.51475173",
"0.5137884",
"0.5084774",
"0.50646144",
"0.50588924",
"0.5035653",
"0.50243044",
"0.50190276",
"0.50188947",
"0.50166243",
"0.5004206",
"0.50022525",
"0.49937442",
"0.4987538",
"0.4987023",
"0.49803752",
"0.4976965",
"0.49734867",
"0.49727935",
"0.4967162",
"0.4945413",
"0.49425998",
"0.4924197",
"0.4924",
"0.49197358",
"0.4916668",
"0.4901336",
"0.48879248",
"0.4882203",
"0.48754576",
"0.48700556",
"0.4864347",
"0.48640472",
"0.4863721",
"0.48616073",
"0.48538095",
"0.4853275",
"0.48497984",
"0.48395514",
"0.48389798",
"0.48308137",
"0.48307648",
"0.48244306",
"0.48242003",
"0.48240814",
"0.48191652",
"0.48162785",
"0.48073688",
"0.48062864",
"0.4806194",
"0.48058483",
"0.48010498",
"0.47975093",
"0.4796971",
"0.4796679",
"0.47955737",
"0.47928435",
"0.47886536",
"0.47879833",
"0.4784862",
"0.47820696",
"0.47803468",
"0.47789717",
"0.47780767",
"0.4774095",
"0.47739443",
"0.47705027",
"0.47705027",
"0.47697976",
"0.47692528",
"0.47657105",
"0.4764472",
"0.4764137",
"0.47633064",
"0.4762347",
"0.47586772",
"0.47551",
"0.4753947",
"0.4753947"
] | 0.52330256 | 12 |
private static Map instruments = new HashMap(); | @GET
@Path("/{id}")
@Produces(MediaType.APPLICATION_JSON)
public Tool getInstrument(@PathParam("id") Integer id) {
return dao.findById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"HashMap<String, Instrument> getInstruments();",
"private void init() {\n UNIGRAM = new HashMap<>();\n }",
"public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }",
"Map<String, String> mo14888a();",
"public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }",
"private static Map getMapPotionIds() {\n/* 350 */ if (mapPotionIds == null) {\n/* */ \n/* 352 */ mapPotionIds = new LinkedHashMap<>();\n/* 353 */ mapPotionIds.put(\"water\", new int[1]);\n/* 354 */ mapPotionIds.put(\"awkward\", new int[] { 16 });\n/* 355 */ mapPotionIds.put(\"thick\", new int[] { 32 });\n/* 356 */ mapPotionIds.put(\"potent\", new int[] { 48 });\n/* 357 */ mapPotionIds.put(\"regeneration\", getPotionIds(1));\n/* 358 */ mapPotionIds.put(\"moveSpeed\", getPotionIds(2));\n/* 359 */ mapPotionIds.put(\"fireResistance\", getPotionIds(3));\n/* 360 */ mapPotionIds.put(\"poison\", getPotionIds(4));\n/* 361 */ mapPotionIds.put(\"heal\", getPotionIds(5));\n/* 362 */ mapPotionIds.put(\"nightVision\", getPotionIds(6));\n/* 363 */ mapPotionIds.put(\"clear\", getPotionIds(7));\n/* 364 */ mapPotionIds.put(\"bungling\", getPotionIds(23));\n/* 365 */ mapPotionIds.put(\"charming\", getPotionIds(39));\n/* 366 */ mapPotionIds.put(\"rank\", getPotionIds(55));\n/* 367 */ mapPotionIds.put(\"weakness\", getPotionIds(8));\n/* 368 */ mapPotionIds.put(\"damageBoost\", getPotionIds(9));\n/* 369 */ mapPotionIds.put(\"moveSlowdown\", getPotionIds(10));\n/* 370 */ mapPotionIds.put(\"diffuse\", getPotionIds(11));\n/* 371 */ mapPotionIds.put(\"smooth\", getPotionIds(27));\n/* 372 */ mapPotionIds.put(\"refined\", getPotionIds(43));\n/* 373 */ mapPotionIds.put(\"acrid\", getPotionIds(59));\n/* 374 */ mapPotionIds.put(\"harm\", getPotionIds(12));\n/* 375 */ mapPotionIds.put(\"waterBreathing\", getPotionIds(13));\n/* 376 */ mapPotionIds.put(\"invisibility\", getPotionIds(14));\n/* 377 */ mapPotionIds.put(\"thin\", getPotionIds(15));\n/* 378 */ mapPotionIds.put(\"debonair\", getPotionIds(31));\n/* 379 */ mapPotionIds.put(\"sparkling\", getPotionIds(47));\n/* 380 */ mapPotionIds.put(\"stinky\", getPotionIds(63));\n/* */ } \n/* */ \n/* 383 */ return mapPotionIds;\n/* */ }",
"Map getSPEXDataMap();",
"public Map<String, Counter> getMap(){\n\t\treturn map;\n\t}",
"private String[] getInstrumentIds(){\n logger.info(\"Getting Instruments from cache\");\n return instruments.keySet().toArray(new String[instruments.size()]);\n }",
"public static Map<String, Double> getMutMap(){\r\n\t\treturn new HashMap<String, Double>(codeToMutRateMap);\r\n\t}",
"private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }",
"public static HashMap<Integer, Item> storeItems(){\n\t\tItem prod1 = new Item(\"Candy\",40);\n\t\tItem prod2 = new Item(\"Bread\",30);\n\t\tItem prod3 = new Item(\"Butter\",50);\n\t\tItem prod4 = new Item(\"Milk\",43);\n\t\tItem prod5 = new Item(\"Toast\",60);\n\t\tItem prod6 = new Item(\"Curd\",20);\n\t\tItem prod7 = new Item(\"Cream\",80);\n\t\tItem prod8 = new Item(\"Pastry\",45);\n\t\tItem prod9 = new Item(\"Cake\",300);\n\t\tItem prod10 = new Item(\"Panner\",200);\n\t\tItem prod11 = new Item(\"Egg\",8);\n\t\tproducts.put(1,prod1);\n\t\tproducts.put(2,prod2);\n\t\tproducts.put(3,prod3);\n\t\tproducts.put(4,prod4);\n\t\tproducts.put(5,prod5);\n\t\tproducts.put(6,prod6);\n\t\tproducts.put(7,prod7);\n\t\tproducts.put(8,prod8);\n\t\tproducts.put(9,prod9);\n\t\tproducts.put(10,prod10);\n\t\tproducts.put(11,prod11);\n\t\treturn products;\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}",
"void setHashMap();",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public MyHashMap() {\n map = new HashMap();\n }",
"public static void getMapDetails(){\n\t\tmap=new HashMap<String,String>();\r\n\t map.put(getProjName(), getDevID());\r\n\t //System.out.println(\"\\n[TEST Teamwork]: \"+ map.size());\r\n\t \r\n\t // The HashMap is currently empty.\r\n\t\tif (map.isEmpty()) {\r\n\t\t System.out.println(\"It is empty\");\r\n\t\t \r\n\t\t System.out.println(\"Trying Again:\");\r\n\t\t map=new HashMap<String,String>();\r\n\t\t map.put(getProjName(), getDevID());\r\n\t\t \r\n\t\t System.out.println(map.isEmpty());\r\n\t\t}\r\n\t\t \r\n\t\t\r\n\t\t//retrieving values from map\r\n\t Set<String> keys= map.keySet();\r\n\t for(String key : keys){\r\n\t \t//System.out.println(key);\r\n\t System.out.println(key + \": \" + map.get(key));\r\n\t }\r\n\t \r\n\t //searching key on map\r\n\t //System.out.println(\"Map Value: \"+map.containsKey(toStringMap()));\r\n\t System.out.println(\"Map Value: \"+map.get(getProjName()));\r\n\t \r\n\t //searching value on map\r\n\t //System.out.println(\"Map Key: \"+map.containsValue(getDevID()));\r\n\t \r\n\t\t\t\t\t // Put keys into an ArrayList and sort it.\r\n\t\t\t\t\t\t//ArrayList<String> list = new ArrayList<String>();\r\n\t\t\t\t\t\t//list.addAll(keys);\r\n\t\t\t\t\t\t//Collections.sort(list);\r\n\t\t\t\t\r\n\t\t\t\t\t\t// Display sorted keys and their values.\r\n\t\t\t\t\t\t//for (String key : list) {\r\n\t\t\t\t\t\t// System.out.println(key + \": \" + map.get(key));\r\n\t\t\t\t\t\t//}\t\t\t \r\n\t}",
"public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}",
"public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }",
"@Override\n\tpublic Map<IAlgo, Integer> recommandAlgosContained() {\n\t\treturn Collections.EMPTY_MAP;\n\t}",
"public Map<String, Object> getTagMap();",
"public abstract java.util.Map<java.lang.String, java.lang.Integer> systemicEventIncidenceCountMap();",
"private ListaInstrucaoSingleton() {\r\n\t\tinstrucoes = new HashMap<>();\r\n\r\n\t\tDiscoverClassByAnnotation<InstrucaoAnnotation> discoverClassByAnnotation = new DiscoverClassByAnnotation<>(InstrucaoAnnotation.class);\r\n\t\tSet<Class<?>> classes = discoverClassByAnnotation.getClasses();\r\n\r\n\t\tfor (Class<?> c : classes) {\r\n\t\t\tInstrucaoAnnotation instrucaoAnnotation = c.getAnnotation(InstrucaoAnnotation.class);\r\n\t\t\tif (instrucaoAnnotation != null) {\r\n\t\t\t\tString nomeInstrucao = instrucaoAnnotation.nomeInstrucao();\r\n\r\n\t\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\t\tClass<? extends Instrucao> instrucaoClass = (Class<? extends Instrucao>) c;\r\n\r\n\t\t\t\tinstrucoes.put(nomeInstrucao, instrucaoClass);\r\n\t\t\t}\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}",
"public void initializeDictionary() {\n\t\tmyDictionary = new SLogoDictionary();\n\t}",
"public MagicDictionary() {\n this.map = new HashMap<>();\n }",
"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}",
"private static void m568a() {\n if (f878a == null) {\n HashMap hashMap = new HashMap();\n f878a = hashMap;\n hashMap.put(\"CN\", p.China);\n f878a.put(\"FI\", p.Europe);\n f878a.put(\"SE\", p.Europe);\n f878a.put(\"NO\", p.Europe);\n f878a.put(\"FO\", p.Europe);\n f878a.put(\"EE\", p.Europe);\n f878a.put(\"LV\", p.Europe);\n f878a.put(\"LT\", p.Europe);\n f878a.put(\"BY\", p.Europe);\n f878a.put(\"MD\", p.Europe);\n f878a.put(\"UA\", p.Europe);\n f878a.put(\"PL\", p.Europe);\n f878a.put(\"CZ\", p.Europe);\n f878a.put(\"SK\", p.Europe);\n f878a.put(\"HU\", p.Europe);\n f878a.put(\"DE\", p.Europe);\n f878a.put(\"AT\", p.Europe);\n f878a.put(\"CH\", p.Europe);\n f878a.put(\"LI\", p.Europe);\n f878a.put(\"GB\", p.Europe);\n f878a.put(\"IE\", p.Europe);\n f878a.put(\"NL\", p.Europe);\n f878a.put(\"BE\", p.Europe);\n f878a.put(\"LU\", p.Europe);\n f878a.put(\"FR\", p.Europe);\n f878a.put(\"RO\", p.Europe);\n f878a.put(\"BG\", p.Europe);\n f878a.put(\"RS\", p.Europe);\n f878a.put(\"MK\", p.Europe);\n f878a.put(\"AL\", p.Europe);\n f878a.put(\"GR\", p.Europe);\n f878a.put(\"SI\", p.Europe);\n f878a.put(\"HR\", p.Europe);\n f878a.put(\"IT\", p.Europe);\n f878a.put(\"SM\", p.Europe);\n f878a.put(\"MT\", p.Europe);\n f878a.put(\"ES\", p.Europe);\n f878a.put(\"PT\", p.Europe);\n f878a.put(\"AD\", p.Europe);\n f878a.put(\"CY\", p.Europe);\n f878a.put(\"DK\", p.Europe);\n f878a.put(\"RU\", p.Russia);\n f878a.put(\"IN\", p.India);\n }\n }",
"public DesignHashSet() {\n map=new HashMap<>();\n }",
"protected WumpusMap() {\n\t\t\n\t}",
"private Map<Good, Integer> initiateMarketplace() {\n Random noise = new Random();\n Map<Good, Integer> map = Collections.synchronizedMap(\n new EnumMap<Good, Integer>(Good.class));\n for (Good item : Good.values()) {\n if (item.getMinTech() <= techLevel) {\n Integer price = Math.max(item.getBasePrice()\n - (techLevel - item.getMinTech()) + alignment.getPriceChange()\n + noise.nextInt(5),\n 5);\n map.put(item, price);\n }\n }\n return map;\n }",
"public static void main(String[] args) {\n\t\tHashMap<Integer, Movil> moviles = new HashMap<Integer, Movil>();\r\n\t\t\r\n\t\t/*\r\n\t\t//Utilizando \"var\" como en C#\r\n\t\tvar movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tvar movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tvar movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\t\t*/\r\n\t\tMovil movilJuan = new Movil(111, 4, \"Samsung\", 4);\r\n\t\tMovil movilMaria = new Movil(232, 6, \"Apple\", 4);\r\n\t\tMovil movilPedro = new Movil(955, 4, \"Xiaomi\", 5);\r\n\r\n\t\tMovil movilBusqueda = new Movil(232, 6, \"Apple\", 4);\r\n\t\t\r\n\t\t//Añadimos los elementos a la colección\r\n\t\t/*\r\n\t\tmoviles.put(111, movilJuan);\r\n\t\tmoviles.put(232, movilMaria);\r\n\t\tmoviles.put(955, movilPedro);\r\n\t\t*/\r\n\t\tmoviles.put(movilJuan.getImei(), movilJuan);\r\n\t\tmoviles.put(movilMaria.getImei(), movilMaria);\r\n\t\tmoviles.put(movilPedro.getImei(), movilPedro);\r\n\t\t\r\n\t\t\r\n\t\t//Comprobamos is un elemento se encuentra en la colección por su valor\r\n\t\t//El método containsValue() requiere redefinir el método equals() de la clase Movil para saber que campo debe comparar para determinar que dos objetos sean iguales.\r\n\t\t//En caso de no hacerlo, los objetos se comparan utilizando sus Hashcodes (direcciones de memoria).\r\n\t\tif (moviles.containsValue(movilBusqueda)) {\r\n\t\t\tSystem.out.println(\"Encontrado\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No encontrado\");\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t}",
"public static Map<String, Integer> getFrequencies() {\n return UNIGRAM;\n }",
"@Before\n public void setUp() {\n dict = new Dictionary();\n\n\n }",
"private java.util.Map<java.lang.String, java.lang.Object> collectInformation() {\n /*\n // Method dump skipped, instructions count: 418\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ironsource.mediationsdk.utils.GeneralPropertiesWorker.collectInformation():java.util.Map\");\n }",
"public void setUp()\n {\n map = new Map(5, 5, null);\n }",
"public final synchronized Map<String, PlugInBean> m104s() {\n return null;\n }",
"public abstract java.util.Map<java.lang.String, java.lang.Integer> idiosyncraticEventIncidenceCountMap();",
"public abstract Map<Integer, Station> getStations(boolean includeSilent);",
"@SuppressWarnings(\"static-access\")\n\tpublic SequenceMap() {\n\t\tthis.seqNumbers = new HashMap<>();\n\t}",
"public TimeMap() {\n timeMap = new HashMap<>();\n }",
"public MyHashMap() {\n hashMap = new ArrayList<>();\n }",
"private Map<String, String> m12810c(int i) {\n Map hashMap = new HashMap();\n am.m5200a(hashMap, this.f10118e.getVideoStartReason() == VideoStartReason.AUTO_STARTED, this.f10118e.mo1836b() ^ true);\n m12807a(hashMap);\n m12809b(hashMap);\n m12808a(hashMap, i);\n m12811c(hashMap);\n return hashMap;\n }",
"public HashMap<String,SupplyNode> getMap(){\n return t;\n }",
"Map getIDPSTDDataMap();",
"@Override\n\tpublic Map<ByteString, Integer> getSeriesMap() {\n\t\treturn null;\n\t}",
"public void generateRandomMap() {\n\n\t}",
"public FakeScheduledInterviewDao() {\n data = new HashMap<Long, ScheduledInterview>();\n }",
"public MyHashMap() {\n\n }",
"public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}",
"@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }",
"public MyHashMap() {\n\n }",
"public OCRSet() {\r\n this.map = new HashMap<Integer, E>();\r\n }",
"private Map<String,List<Invertedindex>> collecting() //\r\n {\r\n Map<String,List<Invertedindex>> maps = new TreeMap<>();\r\n for (Core pon:pondred){\r\n for(Map.Entry<String,Double> term:pon.allTerms.entrySet()){\r\n if (maps.containsKey(term.getKey())){\r\n List<Invertedindex> index = maps.get(term.getKey());\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }else {\r\n List<Invertedindex> index = new ArrayList<>();\r\n index.add(new Invertedindex(pon.m_cle,term.getValue(),pon.getBalise(term.getKey())));\r\n maps.put(term.getKey(), index);\r\n }\r\n if(cleFreq.containsKey(pon.m_cle))\r\n cleFreq.put(pon.m_cle,cleFreq.get(pon.m_cle)+term.getValue());\r\n else cleFreq.put(pon.m_cle,term.getValue());\r\n\r\n }\r\n }\r\n return maps;\r\n }",
"@Override\n public Map<Integer, PenghuziPlayer> getSeatMap() {\n return seatMap;\n }",
"public Map<String, Object> getInfo();",
"Map<String, Defines> getDefinesMap();",
"public abstract Map<String, Protein> getProteins();",
"public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}",
"@Test\n\tpublic void populate_map() {\n\t\t//Arrange\n\t\t//testSteve.populateProductMap();\n\t\t\n\t\t//Act\n\t\ttestSteve.populateProductMap();\n\t\t\n\t\t//Assert\n\t\tAssert.assertEquals(testSteve.getProductGenerator().size(), (16));\n\t}",
"Map getIDPEXDataMap();",
"void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);",
"private void erstelleListenMap(){\n farbenMap = new TreeMap<>();\n symbolMap = new TreeMap<>();\n\n for(Symbol symbol:Symbol.values()){\n\n switch (symbol) // sortiert ihn in die entsprechende Liste ein\n {\n case ka_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,karos);\n break;\n case ks_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreise);\n break;\n case kr_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kreuze);\n break;\n case st_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,sterne);\n break;\n case qu_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_blau:\n farbenMap.put(symbol,blaue);\n symbolMap.put(symbol,kleeblaetter);\n break;\n\n case ka_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,karos);\n break;\n case ks_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gelb:\n farbenMap.put(symbol,gelbe);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,karos);\n break;\n case ks_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_gruen:\n farbenMap.put(symbol,gruene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,karos);\n break;\n case ks_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreise);\n break;\n case kr_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kreuze);\n break;\n case st_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,sterne);\n break;\n case qu_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_rot:\n farbenMap.put(symbol,rote);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,karos);\n break;\n case ks_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreise);\n break;\n case kr_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kreuze);\n break;\n case st_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,sterne);\n break;\n case qu_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_violett:\n farbenMap.put(symbol,violette);\n symbolMap.put(symbol,kleeblaetter);\n break;\n case ka_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,karos);\n break;\n case ks_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreise);\n break;\n case kr_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kreuze);\n break;\n case st_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,sterne);\n break;\n case qu_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,quadrate);\n break;\n case kb_orange:\n farbenMap.put(symbol,orangene);\n symbolMap.put(symbol,kleeblaetter);\n break;\n }\n\n }\n }",
"MAP createMAP();",
"public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }",
"void initialiseShowroom(){\n currentCars.put(\"Aston Martin\", new Car(\"Aston Martin\", 50000, 2012));\n currentCars.put(\"BMW\", new Car(\"BMW\", 30000, 2014));\n currentCars.put(\"Chevrolet\", new Car(\"Chevrolet\", 20000, 2013));\n currentCars.put(\"Datsun\", new Car(\"Datsun\", 2000, 2001));\n }",
"private PerformanceEntry() {\n this.configuration = new HashSet<>();\n this.regionsToPerf = new HashMap<>();\n this.regionsToMin = new HashMap<>();\n this.regionsToMax = new HashMap<>();\n this.regionsToDiff = new HashMap<>();\n this.regionsToSampleVariance = new HashMap<>();\n this.regionsToConfidenceInterval = new HashMap<>();\n this.regionsToCoefficientsOfVariation = new HashMap<>();\n this.regionsToPerfHumanReadable = new HashMap<>();\n this.regionsToMinHumanReadable = new HashMap<>();\n this.regionsToMaxHumanReadable = new HashMap<>();\n this.regionsToDiffHumanReadable = new HashMap<>();\n this.regionsToSampleVarianceHumanReadable = new HashMap<>();\n this.regionsToConfidenceIntervalsHumanReadable = new HashMap<>();\n this.regionsToCoefficientsOfVariationHumanReadable = new HashMap<>();\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 }",
"public HitCounter() {\n map = new HashMap<Integer, Integer>();\n }",
"public IntToIntMap getStaticMap() {\n return staticMap;\n }",
"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}",
"public MusicLibrary() {\n\t\tthis.idMap = new HashMap<String, Song>();\n\t\tthis.titleMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.artistMap = new TreeMap<String, TreeSet<Song>>(new StringComparator());\n\t\tthis.tagMap = new TreeMap<String, TreeSet<String>>(new StringComparator());\n\t\t//this.artistList = new ArrayList<>();\n\t}",
"public static HashMap getInterfaces() {\n\t\treturn interfacehashmapAlreadyImpl;\r\n\t\t\r\n\t}",
"private HashMap<String, Marker> loadNMarkers(){\n HashMap<String, Marker> map = new HashMap<String, Marker>();\n if (googleMap != null) {\n googleMap.clear();\n }\n float alpha = (float) 0.5;\n if (main.state.getBookingState() != State.RESERVE_BIKE_SELECTION_STATE && main.state.getBookingState() != State.RESERVE_DOCK_SELECTION_STATE){\n alpha = 1;\n }\n for (Station station : stationList) {\n float fillLevel = station.getFillLevel(); // change the marker colors depending on the station fill levels\n float colour = fillLevel * 120;\n Marker marker = googleMap.addMarker(new MarkerOptions().position(station.getLocation()).title(station.getName()).snippet(Integer.toString(station.getOccupancy())).icon(BitmapDescriptorFactory.defaultMarker(colour)).alpha(alpha));\n marker.setTag(station.getId()); // set tag to reference markers later\n map.put(station.getId(), marker);\n }\n return map;\n }",
"Map<String, ISensor> getSensorMap();",
"public static HashMap<String, Shelter> getMap() {\n return shelters;\n }",
"private TagListSingleton() {\n\t\t// The file is always going to have same pathname\n\t\tFile f = new File(pathName);\n\t\ttry {\n\t\t\tif (f.exists()) {\n\t\t\t\treadFromFile();\n\t\t\t} else {\n\t\t\t\t// If file does not exist, create new map\n\t\t\t\tf.createNewFile();\n\t\t\t\ttagToImg = new HashMap<String, HashSet<String>>();\n\t\t\t}\n\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Initialize the other map\n\t\tmakeImgToTag();\n\t}",
"public static Map<Integer, Double> InitializeMark() {\n\t\tMap<Integer, Double> mark = new HashMap<Integer, Double>();\r\n\t\tfinal Double giantConstant = 1.0E+45;\r\n\t\tfor (Entry<Integer, Vertex> currentVertex : vertexes.entrySet())\r\n\t\t\tmark.put(currentVertex.getKey(), giantConstant);\r\n\t\treturn mark;\r\n\t}",
"public HashMap<String, LiquidationRecord> getLiquidationRecords(){\n\t\treturn hmLiquidationRecord;\n\t}",
"private void initializeMaps() {\n\tcodon1 = new HashMap<String,String>();\n\tcodon3 = new HashMap<String,String>();\n\tiupac = new HashMap<String,String>();\n\t\n\tcodon1.put(\"AAA\",\"K\");\n\tcodon1.put(\"AAC\",\"N\");\n\tcodon1.put(\"AAG\",\"K\");\n\tcodon1.put(\"AAT\",\"N\");\n\tcodon1.put(\"ACA\",\"T\");\n\tcodon1.put(\"ACC\",\"T\");\n\tcodon1.put(\"ACG\",\"T\");\n\tcodon1.put(\"ACT\",\"T\");\n\tcodon1.put(\"AGA\",\"R\");\n\tcodon1.put(\"AGC\",\"S\");\n\tcodon1.put(\"AGG\",\"R\");\n\tcodon1.put(\"AGT\",\"S\");\n\tcodon1.put(\"ATA\",\"I\");\n\tcodon1.put(\"ATC\",\"I\");\n\tcodon1.put(\"ATG\",\"M\");\n\tcodon1.put(\"ATT\",\"I\");\n\tcodon1.put(\"CAA\",\"Q\");\n\tcodon1.put(\"CAC\",\"H\");\n\tcodon1.put(\"CAG\",\"Q\");\n\tcodon1.put(\"CAT\",\"H\");\n\tcodon1.put(\"CCA\",\"P\");\n\tcodon1.put(\"CCC\",\"P\");\n\tcodon1.put(\"CCG\",\"P\");\n\tcodon1.put(\"CCT\",\"P\");\n\tcodon1.put(\"CGA\",\"R\");\n\tcodon1.put(\"CGC\",\"R\");\n\tcodon1.put(\"CGG\",\"R\");\n\tcodon1.put(\"CGT\",\"R\");\n\tcodon1.put(\"CTA\",\"L\");\n\tcodon1.put(\"CTC\",\"L\");\n\tcodon1.put(\"CTG\",\"L\");\n\tcodon1.put(\"CTT\",\"L\");\n\tcodon1.put(\"GAA\",\"E\");\n\tcodon1.put(\"GAC\",\"D\");\n\tcodon1.put(\"GAG\",\"E\");\n\tcodon1.put(\"GAT\",\"D\");\n\tcodon1.put(\"GCA\",\"A\");\n\tcodon1.put(\"GCC\",\"A\");\n\tcodon1.put(\"GCG\",\"A\");\n\tcodon1.put(\"GCT\",\"A\");\n\tcodon1.put(\"GGA\",\"G\");\n\tcodon1.put(\"GGC\",\"G\");\n\tcodon1.put(\"GGG\",\"G\");\n\tcodon1.put(\"GGT\",\"G\");\n\tcodon1.put(\"GTA\",\"V\");\n\tcodon1.put(\"GTC\",\"V\");\n\tcodon1.put(\"GTG\",\"V\");\n\tcodon1.put(\"GTT\",\"V\");\n\tcodon1.put(\"TAA\",\"*\");\n\tcodon1.put(\"TAC\",\"Y\");\n\tcodon1.put(\"TAG\",\"*\");\n\tcodon1.put(\"TAT\",\"Y\");\n\tcodon1.put(\"TCA\",\"S\");\n\tcodon1.put(\"TCC\",\"S\");\n\tcodon1.put(\"TCG\",\"S\");\n\tcodon1.put(\"TCT\",\"S\");\n\tcodon1.put(\"TGA\",\"*\");\n\tcodon1.put(\"TGC\",\"C\");\n\tcodon1.put(\"TGG\",\"W\");\n\tcodon1.put(\"TGT\",\"C\");\n\tcodon1.put(\"TTA\",\"L\");\n\tcodon1.put(\"TTC\",\"F\");\n\tcodon1.put(\"TTG\",\"L\");\n\tcodon1.put(\"TTT\",\"F\");\n\n\tcodon3.put(\"AAA\",\"Lys\");\n\tcodon3.put(\"AAC\",\"Asn\");\n\tcodon3.put(\"AAG\",\"Lys\");\n\tcodon3.put(\"AAT\",\"Asn\");\n\tcodon3.put(\"ACA\",\"Thr\");\n\tcodon3.put(\"ACC\",\"Thr\");\n\tcodon3.put(\"ACG\",\"Thr\");\n\tcodon3.put(\"ACT\",\"Thr\");\n\tcodon3.put(\"AGA\",\"Arg\");\n\tcodon3.put(\"AGC\",\"Ser\");\n\tcodon3.put(\"AGG\",\"Arg\");\n\tcodon3.put(\"AGT\",\"Ser\");\n\tcodon3.put(\"ATA\",\"Ile\");\n\tcodon3.put(\"ATC\",\"Ile\");\n\tcodon3.put(\"ATG\",\"Met\");\n\tcodon3.put(\"ATT\",\"Ile\");\n\tcodon3.put(\"CAA\",\"Gln\");\n\tcodon3.put(\"CAC\",\"His\");\n\tcodon3.put(\"CAG\",\"Gln\");\n\tcodon3.put(\"CAT\",\"His\");\n\tcodon3.put(\"CCA\",\"Pro\");\n\tcodon3.put(\"CCC\",\"Pro\");\n\tcodon3.put(\"CCG\",\"Pro\");\n\tcodon3.put(\"CCT\",\"Pro\");\n\tcodon3.put(\"CGA\",\"Arg\");\n\tcodon3.put(\"CGC\",\"Arg\");\n\tcodon3.put(\"CGG\",\"Arg\");\n\tcodon3.put(\"CGT\",\"Arg\");\n\tcodon3.put(\"CTA\",\"Leu\");\n\tcodon3.put(\"CTC\",\"Leu\");\n\tcodon3.put(\"CTG\",\"Leu\");\n\tcodon3.put(\"CTT\",\"Leu\");\n\tcodon3.put(\"GAA\",\"Glu\");\n\tcodon3.put(\"GAC\",\"Asp\");\n\tcodon3.put(\"GAG\",\"Glu\");\n\tcodon3.put(\"GAT\",\"Asp\");\n\tcodon3.put(\"GCA\",\"Ala\");\n\tcodon3.put(\"GCC\",\"Ala\");\n\tcodon3.put(\"GCG\",\"Ala\");\n\tcodon3.put(\"GCT\",\"Ala\");\n\tcodon3.put(\"GGA\",\"Gly\");\n\tcodon3.put(\"GGC\",\"Gly\");\n\tcodon3.put(\"GGG\",\"Gly\");\n\tcodon3.put(\"GGT\",\"Gly\");\n\tcodon3.put(\"GTA\",\"Val\");\n\tcodon3.put(\"GTC\",\"Val\");\n\tcodon3.put(\"GTG\",\"Val\");\n\tcodon3.put(\"GTT\",\"Val\");\n\tcodon3.put(\"TAA\",\"*\");\n\tcodon3.put(\"TAC\",\"Tyr\");\n\tcodon3.put(\"TAG\",\"*\");\n\tcodon3.put(\"TAT\",\"Tyr\");\n\tcodon3.put(\"TCA\",\"Ser\");\n\tcodon3.put(\"TCC\",\"Ser\");\n\tcodon3.put(\"TCG\",\"Ser\");\n\tcodon3.put(\"TCT\",\"Ser\");\n\tcodon3.put(\"TGA\",\"*\");\n\tcodon3.put(\"TGC\",\"Cys\");\n\tcodon3.put(\"TGG\",\"Trp\");\n\tcodon3.put(\"TGT\",\"Cys\");\n\tcodon3.put(\"TTA\",\"Leu\");\n\tcodon3.put(\"TTC\",\"Phe\");\n\tcodon3.put(\"TTG\",\"Leu\");\n\tcodon3.put(\"TTT\",\"Phe\");\n\t\n\tiupac.put(\"-\",\"-\");\n\tiupac.put(\".\",\"-\");\n\tiupac.put(\"A\",\"AA\");\n\tiupac.put(\"B\",\"CGT\");\n\tiupac.put(\"C\",\"CC\");\n\tiupac.put(\"D\",\"AGT\");\n\tiupac.put(\"G\",\"GG\");\n\tiupac.put(\"H\",\"ACT\");\n\tiupac.put(\"K\",\"GT\");\n\tiupac.put(\"M\",\"AC\");\n\tiupac.put(\"N\",\"ACGT\");\n\tiupac.put(\"R\",\"AG\");\n\tiupac.put(\"S\",\"GC\");\n\tiupac.put(\"T\",\"TT\");\n\tiupac.put(\"V\",\"ACG\");\n\tiupac.put(\"W\",\"AT\");\n\tiupac.put(\"Y\",\"CT\");\n \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 ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}",
"public HashMap<String, NeonValue> getMap();",
"public Map() {\n\t\t//intially empty\n\t}",
"public IdentificationSet() {\n map = new HashMap<>();\n init();\n }",
"public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }",
"private void ini_MapPaks()\r\n\t{\r\n\r\n\t}",
"protected abstract Map<String, Serializable> getEventKeyAndIdMap();",
"public int sizeOfMap(){return size;}",
"private Itemsets() {\n\t\t\tfrequentItemsets = new LinkedHashMap<Itemset, Integer>();\n\t\t\tinfrequentItemsets = new LinkedHashMap<Itemset, Integer>();\n\t\t}",
"public static Map<String, Itinerary> getItineraryMap() {\r\n return itineraryMap;\r\n }",
"private InfoTable(Map<Integer, Vehicle> vehiclesDic) {\n\t\t\n\t\t//Set Vehicles dictionaries\n\t\tthis.vehiclesDic = vehiclesDic;\n\t\t\n\t\t// initialize Dictionary for info table\n\t\ttableDic = new ConcurrentHashMap<Integer, Object[]>();\n\t}",
"@Test\n\tpublic void testIdentityHashMap() {\n\t\tInteger i1 = new Integer(10);\n\t\tInteger i2 = new Integer(10);\n\n\t\tHashMap m = new HashMap();\n\t\tm.put(i1, \"evyaan\");\n\t\tm.put(i2, \"varun\");\n\n\t\tassertEquals(\"{10=varun}\", m.toString());\n\n\t\tIdentityHashMap im = new IdentityHashMap();\n\t\tim.put(i1, \"evyaan\");\n\t\tim.put(i2, \"varun\");\n\n\t\t// System.out.println(im);\n\n\t}",
"Map getAspectDatas();",
"public InMemoryServiceInstancePersistence() {\n this.serviceInstances = new HashMap<>(); \n }",
"public static void adicionaMap2() {\n\t\t\t\tcDebitos_DFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"dam\", new Integer[] { 6, 18 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"fiti\", new Integer[] { 19, 26 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"cartorio\", new Integer[] { 39, 76 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"valor\", new Integer[] { 77, 90 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_DFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\t\t\t\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"processo\", new Integer[] { 21, 34 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"data_Venc\", new Integer[] { 35, 46 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"tributos\", new Integer[] { 47, 60 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"historico\", new Integer[] { 61, 78 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"valor\", new Integer[] { 79, 90 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"multa\", new Integer[] { 91, 104 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\t\t\tcDebitos_GFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\t\t\t\t\r\n\t\t\t\t\r\n\r\n\r\n\t\t\r\n\r\n\t\t// No DAM ANO DATA VENC No. PROCESSO\r\n\t\t// No. PARCELAMENTO VALOR JUROS TOTAL\r\n\t\tcDebitos_JFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_JFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_JFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_JFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_JFlorianopolis.put(\"processo\", new Integer[] { 39, 55 });\r\n\t\tcDebitos_JFlorianopolis.put(\"nParcelamento\", new Integer[] { 55, 76 });\r\n\t\tcDebitos_JFlorianopolis.put(\"valor\", new Integer[] { 77, 104 });\r\n\t\tcDebitos_JFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_JFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t// DAM LIV/FOLHA/CERT. DATA INSC HISTORICO\r\n\t\t// INSCRICAO VALOR\r\n\r\n\t\tcDebitos_J1Florianopolis.put(\"dam\", new Integer[] { 1, 13 });\r\n\t\tcDebitos_J1Florianopolis.put(\"liv_Folha_Cert\", new Integer[] { 14, 34 });\r\n\t\tcDebitos_J1Florianopolis.put(\"data_Insc\", new Integer[] { 35, 46 });\r\n\t\tcDebitos_J1Florianopolis.put(\"historico\", new Integer[] { 47, 92 });\r\n\t\tcDebitos_J1Florianopolis.put(\"inscricao\", new Integer[] { 93, 119 });\r\n\t\tcDebitos_J1Florianopolis.put(\"valor\", new Integer[] { 120, 132 });\r\n\t\t\r\n\t\t\r\n\t\t// No DAM ANO DATA VENC HISTORICO PROCESSO VALOR JUROS TOTAL\r\n\t\tcDebitos_LFlorianopolis.put(\"seq\", new Integer[] { 1, 5 });\r\n\t\tcDebitos_LFlorianopolis.put(\"dam\", new Integer[] { 6, 20 });\r\n\t\tcDebitos_LFlorianopolis.put(\"ano\", new Integer[] { 21, 26 });\r\n\t\tcDebitos_LFlorianopolis.put(\"data_Venc\", new Integer[] { 27, 38 });\r\n\t\tcDebitos_LFlorianopolis.put(\"historico\", new Integer[] { 39, 76 });\r\n\t\tcDebitos_LFlorianopolis.put(\"processo\", new Integer[] { 77, 91 });\r\n\t\tcDebitos_LFlorianopolis.put(\"valor\", new Integer[] { 92, 104 });\r\n\t\tcDebitos_LFlorianopolis.put(\"juros\", new Integer[] { 105, 118 });\r\n\t\tcDebitos_LFlorianopolis.put(\"total\", new Integer[] { 119, 132 });\r\n\r\n\t\t\r\n\t}",
"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}",
"private static void createTypeMap() {\n\n }",
"public static void main(String[] args) {\n System.out.println(\"HW1\");\n Map<String, Integer> map = new HashMap<>();\n map.put(\"Ivan\",19);\n map.put(\"Dm\",20);\n map.put(\"Petr\",19);\n\n\n }",
"public MapSum() {\n map = new HashMap<>();\n }",
"public interface SilentLocations {\n public static final String BANK = \"bank\";\n public static final String CHURCH = \"church\";\n public static final String DENTIST = \"dentist\";\n public static final String DOCTOR = \"doctor\";\n public static final String EMBASSY = \"embassy\";\n public static final String FUNERAL_HOME = \"funeral_home\";\n public static final String HEALTH = \"health\";\n public static final String HOSPITAL = \"hospital\";\n public static final String LIBRARY = \"library\";\n public static final String MOSQUE = \"mosque\";\n public static final String SCHOOL = \"school\";\n public static final String HINDU_TEMPLE = \"hindu_temple\";\n public static final String UNIVERSITY = \"university\";\n}"
] | [
"0.7678389",
"0.613933",
"0.60706455",
"0.60459936",
"0.60112256",
"0.6010524",
"0.5982579",
"0.5867112",
"0.5857842",
"0.58374566",
"0.5811348",
"0.5798941",
"0.5798141",
"0.57801205",
"0.57429737",
"0.57250637",
"0.5723617",
"0.5716901",
"0.5709274",
"0.5670755",
"0.5661435",
"0.5637677",
"0.56318176",
"0.562182",
"0.56139874",
"0.56021464",
"0.55791813",
"0.5567881",
"0.55640477",
"0.55430484",
"0.55268484",
"0.5523137",
"0.5516425",
"0.55164117",
"0.5511509",
"0.5501016",
"0.5500878",
"0.54939055",
"0.54914033",
"0.5482104",
"0.54766816",
"0.5469916",
"0.5469637",
"0.5466702",
"0.5460465",
"0.5458815",
"0.5450572",
"0.54496986",
"0.5445734",
"0.5443288",
"0.5437529",
"0.54337054",
"0.54303604",
"0.5425577",
"0.5407841",
"0.5405682",
"0.53993213",
"0.53991395",
"0.5391051",
"0.5387081",
"0.53800946",
"0.53759015",
"0.5373473",
"0.5372147",
"0.5362037",
"0.53520226",
"0.5351729",
"0.5339339",
"0.5337117",
"0.5334828",
"0.53345454",
"0.533038",
"0.53268963",
"0.5326132",
"0.53224534",
"0.5321393",
"0.5318863",
"0.5318128",
"0.5315631",
"0.5313428",
"0.5308223",
"0.53000873",
"0.5298725",
"0.5296057",
"0.5289111",
"0.5278534",
"0.527665",
"0.5274161",
"0.5271871",
"0.5270958",
"0.52538526",
"0.5247193",
"0.524522",
"0.5244164",
"0.52434945",
"0.52361125",
"0.52339995",
"0.5232363",
"0.52287966",
"0.5224841",
"0.5221869"
] | 0.0 | -1 |
Set the dir attribute. | public void setDir(File dir) throws Exception
{
this.dir = dir;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@attribute(value = \"\", required = true)\t\r\n\tpublic void setDir(String dir) {\r\n\t\tthis.dir = new File(dir);\r\n\t}",
"@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"@Raw @Model\r\n\tvoid setDir(Directory dir) {\r\n\t\tthis.dir = dir;\r\n\t\tthis.move(dir);\r\n\t\t\r\n\t}",
"void setDirectory(File dir);",
"@DataBoundSetter\n public void setDir(String dir) {\n this.dir = dir;\n }",
"public void setDir(int dir) {\n this.dir = dir;\n }",
"public void setDir(String dir) {\n // Do this before setting the value\n boolean dirChanged = dir != null && !dir.equals(this.getDir());\n this.dir = Paths.get(dir);\n if(dirChanged) {\n this.dirChanged();\n }\n }",
"public void setDir(File dir) {\n this.dir = dir;\n }",
"public void setDir( final File dir )\n {\n m_dir = dir;\n }",
"public void setDir(File d) {\r\n this.dir = d;\r\n }",
"public void setDir(File dir)\n {\n this.dir = dir;\n }",
"public void setDirFlag(boolean dirFlag) { this.dirFlag = dirFlag; }",
"public void setToDir(File dir) {\n _destDir = dir;\n }",
"public void setCurrentDirectory(File dir) {\r\n\tif (dir == null) dir = new File(System.getProperty(\"user.home\"));\r\n\r\n\tdir = makeAbsolute(dir);\r\n\r\n\t/**\r\n\t * Note that we compare literal paths, not canonical\r\n\t * paths. If they want the chooser to represent the\r\n\t * files at the end of a different route to the same\r\n\t * place, that's perfectly legitimate. See NextStep\r\n\t * for e.g.\r\n\t */\r\n\tif (curDir == null || !curDir.equals(dir)) {\r\n\t invalidateCache();\r\n\t File oldDir = curDir;\r\n\t curDir = dir;\r\n\t firePropertyChange(\"currentDirectory\", oldDir, dir);\r\n\t fireContentsChanged();\r\n\t}\r\n }",
"public void setAndCreateDirPath(String dirname) {\r\n\t File newPath = new File(dirname); \r\n\t \r\n\t if(!newPath.isDirectory()) {\r\n\t\t newPath.mkdirs();\r\n\t }\r\n\t \r\n\t directory = newPath;\r\n }",
"public HtmlTagDir() {\n super(\"dir\");\n setValidAttributes(new String[]{\"compact\"});\n }",
"private void setDirInternal(File dir) {\n if (dir == null) {\n baseDir = null;\n return;\n }\n\n ReplicaDirInfo dirInfo = parseBaseDir(dir, getBlockId());\n this.hasSubdirs = dirInfo.hasSubidrs;\n\n synchronized (internedBaseDirs) {\n if (!internedBaseDirs.containsKey(dirInfo.baseDirPath)) {\n // Create a new String path of this file and make a brand new File object\n // to guarantee we drop the reference to the underlying char[] storage.\n File baseDir = new File(dirInfo.baseDirPath);\n internedBaseDirs.put(dirInfo.baseDirPath, baseDir);\n }\n this.baseDir = internedBaseDirs.get(dirInfo.baseDirPath);\n }\n }",
"public void setDir(File dir) {\n _sourceDir = dir;\n }",
"public void setDirAddress(String dirAddress) {\n String oDirAddress = getDirAddress();\n this.dirAddress = dirAddress;\n firePropertyChange(PROPNAME_DIRADDRESS, oDirAddress, this.dirAddress);\n }",
"public Builder setDirName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n dirName_ = value;\n onChanged();\n return this;\n }",
"public void setDirectory(final String directory) {\n directoryProperty().set(directory);\n }",
"public String getDir(){\r\n\t\treturn dir;\r\n\t}",
"public void setDirectory(Path path) throws IOException {\n\t\tsetFileContents(path, DIRECTORY_MARKER_STRING);\n\t}",
"public void setISdirectory(File directory)\n {\n is_directory = directory;\n }",
"protected void changeDirection(Direction newDir)\n {\n // Change direction.\n myDir = newDir;\n }",
"@Override\r\n\tpublic DTextArea setHtmlDir(final String dir) {\r\n\t\tsuper.setHtmlDir(dir) ;\r\n\t\treturn this ;\r\n\t}",
"public void setDirPort(Integer dirPort) {\n Integer oDirPort = getDirPort();\n this.dirPort = dirPort;\n firePropertyChange(PROPNAME_DIRPORT, oDirPort, this.dirPort);\n }",
"public void setDireccionActual( double dir ) {\n\t\tif (dir > 360) dir = dir - 360;\r\n\t\t\tmiDireccionActual = dir;\r\n\t}",
"public Directory(String dirName) {\n setDirName(dirName);\n }",
"public abstract void setDirection(int dir);",
"public void setOutputDirectory(String dir) {\n\t\tnew LabeledText(\"Output directory:\").setText(dir);\n\t}",
"public String getDir() {\n return dir;\n }",
"public String getDir() {\n return this.dir;\n }",
"public void setDirectory(final String directory) {\n\t\tthis.directory = directory;\n\t}",
"public void setHtmldir(String htmldir) \r\n {\r\n this.htmldir = htmldir;\r\n }",
"public void setRootDir(String rootDir);",
"public Builder setDirNameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n dirName_ = value;\n onChanged();\n return this;\n }",
"private void setMainTankDir() {\n Dir dir = myTank.getDir();\n\n if(!bL&&!bU&&!bR&&!bD){\n myTank.setMoving(false);\n Client.INSTANCE.send(new TankStopMsg(getMyTank()));\n }else {\n if (bL) myTank.setDir(Dir.LEFT);\n if (bU) myTank.setDir(Dir.UP);\n if (bR) myTank.setDir(Dir.RIGHT);\n if (bD) myTank.setDir(Dir.DOWN);\n if (bL && bU) myTank.setDir(Dir.LEFT_UP);\n if (bL && bD) myTank.setDir(Dir.LEFT_DOWN);\n if (bR && bU) myTank.setDir(Dir.RIGHT_UP);\n if (bR && bD) myTank.setDir(Dir.RIGHT_DOWN);\n if(!myTank.isMoving())\n Client.INSTANCE.send(new TankStartMovingMsg(getMyTank()));\n myTank.setMoving(true);\n\n if(dir != myTank.getDir()) {\n Client.INSTANCE.send(new TankDirChangedMsg(myTank));\n }\n }\n }",
"public static void setDiskCacheDir(String dir) {\n sDiskCacheDir = dir;\n }",
"public int getDir() {\n return this.dir;\n }",
"public void setBasedir( File basedir )\n {\n this.basedir = basedir;\n }",
"public void setDir(Vector2 dirVec) {\n this.dirVec = dirVec;\n // Travelling horizontally\n if (dirVec.x == 0) {\n setAngle(Math.PI);\n }\n else {\n setAngle(Math.PI/2);\n }\n }",
"protected void setWorkingDirectory(File dir) {\n\t\tthis.dir = dir;\n\t}",
"public NoKD getDir() {\r\n return dir;\r\n }",
"public void setDirection(int dir)\r\n\t{\r\n\t\tdirection = dir;\r\n\t}",
"public boolean setDirection(Direction dir)\n {\n this.dir = dir;\n return true;\n }",
"public static void setPreferenceDirectory(String dir) {\n\t\tPREF_DIR = dir;\n\t}",
"public void setSaveDirectory(String dir) {\r\n\t\tEmailServiceEJB.saveDirectory = dir;\r\n\t}",
"public int getDir() {\n\t\treturn dir;\r\n\t}",
"public void setDefDir(String d) {\n\n\t\tdefDir = d;\n\n\t}",
"public boolean setDirection(Direction dir) {\n //If a new direction was set but the update wasn't made yet,\n // you cannot change the direction.\n if (!moveMade) {\n return false;\n }\n if (!direction.isValid(dir)) {\n return false;\n }\n prevDir = direction;\n direction = dir;\n moveMade = false;\n return true;\n }",
"private void setMovingDir(Direction dir)\n {\n if(moving != dir)\n {\n \txSpeed = 0;\n \t\n \tSystem.out.println(\"xSpeed = 0\");\n \t\n resetAccelX();\n }\n moving = dir;\n setFacing(dir);\n //System.out.println(\"setMovingDir: \" + dir);\n }",
"public GlobFileSet setStartDir(String startDir)\n\t\t{\n\t\tm_startDir = startDir;\n\t\t\n\t\treturn (this);\n\t\t}",
"public void setNUMDIR(int value) {\n this.numdir = value;\n }",
"public void setDirection(int dir) {\n if((dir % 10) == 0 && dir <=350 && dir >=0) {\n this.directionDegree = dir; \n } else {\n throw new IllegalArgumentException(\"Direction \" + dir +\" is not valid. Directions must be between 0/350 in multiples of 10\"); \n }\n }",
"public void setExtractDir(final String dir) {\n this.extractBaseDir = new File(dir);\n extractBaseDir.mkdirs();\n }",
"@Basic @Raw\r\n\tpublic Directory getDir() {\r\n\t\treturn dir;\r\n\t}",
"public void setDirectoryKey(String key) {\n mDirectoryKey = key;\n }",
"private static void addDirectoryToLibraryPath(String dir) throws IOException {\n try {\n Field field = ClassLoader.class.getDeclaredField(\"usr_paths\");\n field.setAccessible(true);\n String[] paths = (String[]) field.get(null);\n for (String path: paths) {\n if (dir.equals(path)) {\n return;\n }\n }\n String[] tmp = new String[paths.length + 1];\n System.arraycopy(paths, 0, tmp, 0, paths.length);\n tmp[paths.length] = dir;\n field.set(null, tmp);\n } catch (IllegalAccessException e) {\n throw new IOException(\"Failed to get permissions to set library path.\");\n } catch (NoSuchFieldException e) {\n throw new IOException(\"Failed to get field handle to set library path.\");\n }\n }",
"public createDirectory_args setPath(String path) {\n this.path = path;\n return this;\n }",
"public GlobFileSet setDirectoryPattern(String pattern)\n\t\t{\n\t\tm_dirPattern = Pattern.compile(pattern);\n\t\treturn (this);\n\t\t}",
"@Override\n public void setOutputDir(String outputDir) {\n this.outputDir = outputDir;\n }",
"public void setDestDir( File d )\n {\n this.destDir = d;\n }",
"public Directory(String nm){\r\n\t\tsuper();\r\n\t}",
"public void setRootDirectory(IDirectory rootDir) {\r\n this.rootDir = (Directory) rootDir;\r\n }",
"private void setLabtainersDir() throws IOException{\n String newLabtainersPath = LabtainersDirTextfield.getText();\n \n // check if labtainers path exist\n if(new File(newLabtainersPath).isDirectory()){\n pathValidLabel.setVisible(false);\n \n FileOutputStream out = new FileOutputStream(iniFile);\n writeValueToINI(out, \"labtainersPath\", newLabtainersPath);\n\n labtainerPath = newLabtainersPath;\n updateLabtainersPath();\n \n LabtainersDirDialog.setVisible(false);\n }\n else{\n pathValidLabel.setVisible(true);\n } \n }",
"public void changeDir(int x) {\n\t\tswitch (x) {\r\n\t\tcase 0:\r\n\t\t\tif (!(dir == 1)) {\r\n\t\t\t\tdir = 0;\r\n\t\t\t} break;\r\n\t\tcase 1:\r\n\t\t\tif (!(dir == 0)) {\r\n\t\t\t\tdir = 1;\r\n\t\t\t} break;\r\n\t\tcase 2:\r\n\t\t\tif (!(dir == 3)) {\r\n\t\t\t\tdir = 2;\r\n\t\t\t} break;\r\n\t\tcase 3:\r\n\t\t\tif (!(dir == 2)) {\r\n\t\t\t\tdir = 3;\r\n\t\t\t} break;\r\n\t\t}\r\n\t}",
"public void directoryChange( int type, Set fileSet );",
"public String getDir();",
"public void setSsDir(String ssdir) {\n \t\tthis.ssdir = \"$\" + ssdir;\n \t}",
"public synchronized static void setCurrentDirectory(File newDirectory) {\n if (newDirectory == null) // this can actually happen\n currentDirectory = canon(System.getProperty(\"user.home\"));\n else\n currentDirectory = canon(newDirectory.getAbsolutePath());\n }",
"void setKarafInstallDir(String installDir);",
"public void setDestdir(File dest) {\n this.destdir = dest;\n }",
"public void setShHarvestDir(String val) {\n\n\t\tshHarvestDir = val;\n\n\t\t// add to the commonDirs object\n\n\t\tadd_to_common_dirs(val);\n\n\t}",
"public void setDirection(char dir) throws IllegalArgumentException {\n\t\tif (dir == 'N' || dir == 'n'){\n\t\t\tthis.direction = 'n';\n\t\t} else if (dir == 'E' || dir == 'e'){\n\t\t\tthis.direction = 'e';\n\t\t} else if (dir == 'S' || dir == 's'){\n\t\t\tthis.direction = 's';\n\t\t} else if (dir == 'W' || dir == 'w'){\n\t\t\tthis.direction = 'w';\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t}",
"public void setHarvestedDataDir(String val) {\n\n\t\tthis.harvestedDataDir = val;\n\n\t}",
"public boolean changeDirectory(String newDir){\n\t\tthis.currentDir = newDir;\n\t\treturn true;\n\t}",
"void setDirections(Directions dir){\n this.dir = dir;\n }",
"public Directory(String name) {\n super(name);\n this.parent = null;\n }",
"abstract public void setDataResourcesDir(String path);",
"public void setImageDir(File imageRepDir) {\n\t\tFileDataPersister.getInstance().put(\"gui.configuration\", \"image.repository\", imageRepDir.getPath());\n\t\tRepository.getInstance().setRepository(imageRepDir);\n\t\tthis.getSelectedGraphEditor().repaint();\n\t}",
"public void setDTEDDir(String dtedDirectory) {\n if (dtedDirectory == null) {\n dtedDir = \"\";\n }\n dtedDir = dtedDirectory;\n }",
"abstract public void setRingResourcesDir(String path);",
"public void setShowdir(boolean showdir) {\r\n\t\tthis.showdir = showdir;\r\n\t}",
"public final void setClearToolDir(String dir) {\n mClearToolDir = FileUtils.translatePath(dir);\n }",
"Object getDir();",
"public void setWarDir(final File val) {\n warDir = val;\n }",
"@Override\r\n\tpublic void atacar(int dir) {\n\t\t\r\n\t}",
"public boolean isDirFlag() { return this.dirFlag; }",
"public void setBasedir( String basedir )\n {\n setBasedir( new File( basedir.replace( '/', File.separatorChar ).replace( '\\\\', File.separatorChar ) ) );\n }",
"public void setDataDirectory(String dataDirectory) {\n this.dataDirectory = dataDirectory;\n }",
"public void setDireccion(String direccion);",
"void setAttribute( String attrName, Object value ) throws FileSystemException;",
"public void setRootDir(File rootDir) {\r\n\t\tthis.rootDir = rootDir;\r\n\t}",
"public Builder clearDirName() {\n bitField0_ = (bitField0_ & ~0x00000001);\n dirName_ = getDefaultInstance().getDirName();\n onChanged();\n return this;\n }",
"public StringProperty directoryProperty() {\n return directory;\n }",
"public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }",
"void setPath(String path);",
"public static boolean DirAttributeValue(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"DirAttributeValue\")) return false;\n if (!nextTokenIs(b, \"<dir attribute value>\", OPENINGAPOS, OPENINGQUOT)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, DIR_ATTRIBUTE_VALUE, \"<dir attribute value>\");\n r = DirAttributeValue_0(b, l + 1);\n if (!r) r = DirAttributeValue_1(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }",
"public void setAsinstalldir(File asinstalldir) {\n\t\tthis.asinstalldir = asinstalldir;\n\t}"
] | [
"0.82695824",
"0.81379056",
"0.7953311",
"0.7918466",
"0.79024017",
"0.7861806",
"0.77994287",
"0.77489245",
"0.77325207",
"0.77291757",
"0.76903576",
"0.719134",
"0.6924452",
"0.6752035",
"0.6673378",
"0.6605579",
"0.6595857",
"0.6595631",
"0.657297",
"0.6563713",
"0.65238816",
"0.6503427",
"0.64373446",
"0.64114213",
"0.6372195",
"0.63576424",
"0.6332578",
"0.62925315",
"0.62834233",
"0.62697846",
"0.62587184",
"0.6240992",
"0.61945164",
"0.612035",
"0.60999423",
"0.60674477",
"0.60618013",
"0.60294336",
"0.6017902",
"0.6011857",
"0.6007873",
"0.6006792",
"0.60009956",
"0.5978003",
"0.59670043",
"0.5960733",
"0.5955797",
"0.5943452",
"0.5942488",
"0.5931648",
"0.59138715",
"0.5877486",
"0.58754617",
"0.5875023",
"0.5862463",
"0.5861575",
"0.58538115",
"0.5767808",
"0.5767001",
"0.57588696",
"0.57303977",
"0.5720849",
"0.5720006",
"0.5716983",
"0.5703636",
"0.5697934",
"0.5693783",
"0.56733584",
"0.5668389",
"0.5664535",
"0.5664215",
"0.5659645",
"0.565927",
"0.5652603",
"0.5649119",
"0.56461656",
"0.56386757",
"0.5635674",
"0.56033033",
"0.5598192",
"0.55955184",
"0.55821073",
"0.55762374",
"0.5572136",
"0.5564475",
"0.5552649",
"0.5527683",
"0.5512342",
"0.55093455",
"0.5500519",
"0.5498885",
"0.5478798",
"0.54647577",
"0.545372",
"0.5451844",
"0.5444017",
"0.54202914",
"0.54154336",
"0.54148746",
"0.5386082"
] | 0.6840202 | 13 |
Set the filenames attribute. | public void setFiles(String filenames)
{
if (filenames != null && filenames.length() > 0)
{
StringTokenizer tok = new StringTokenizer(
filenames, ", \t\n\r\f", false);
while (tok.hasMoreTokens())
{
this.filenames.addElement(tok.nextToken());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setFileName( String fileName );",
"public Builder setFileNames(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileNamesIsMutable();\n fileNames_.set(index, value);\n onChanged();\n return this;\n }",
"public void setFileName(String fileName) {\n/* 39:39 */ this.fileName = fileName;\n/* 40: */ }",
"public void setFileName(String fileName)\r\n/* 16: */ {\r\n/* 17:49 */ this.fileName = fileName;\r\n/* 18: */ }",
"public void setFiles(ArrayList<BatchFileModel> value) {\n this.files = value;\n }",
"public Builder setFilename(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n filename_ = value;\n onChanged();\n return this;\n }",
"public Builder setFilename(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n filename_ = value;\n onChanged();\n return this;\n }",
"public void setName(String filename) {\n\t\tthis.filename = filename;\n\t}",
"public void setFileName( String name ) {\n\tfilename = name;\n }",
"public void setFilename(String f){\n\t\tfilename = f;\n\t}",
"public void setFile(String fileName)\n {\n }",
"public void setFilename(String fn) {\n\t\tfilename = fn;\n\t}",
"public Builder addFileNames(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileNamesIsMutable();\n fileNames_.add(value);\n onChanged();\n return this;\n }",
"public void setFilename( String name) {\n\tfilename = name;\n }",
"public void setFileName(String fileName)\r\n {\r\n sFileName = fileName;\r\n }",
"public static void setFilename(String filename) {\n DownloadManager.filename = filename;\n }",
"void setFile(String i) {\n file = i;\n }",
"private void setHTTPFileArgs(HTTPFileArgs value) {\n if (value.getHTTPFileArgCount() > 0) {\n setProperty(new TestElementProperty(FILE_ARGS, value));\n } else {\n removeProperty(FILE_ARGS); // no point saving an empty list\n }\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n fileName_ = value;\n onChanged();\n return this;\n }",
"public void setFilename(String filename) {\n this.filename = filename;\n }",
"public void setFilename(String filename) {\n this.filename = filename;\n }",
"private void setFileNamePath(String value) {\n\t\tthis.fileNamePath = value;\n\t}",
"public void setFilename(final String filename) {\n\t\tthis.filename = filename;\n\t}",
"@JsonSetter(\"fileName\")\r\n public void setFileName (String value) { \r\n this.fileName = value;\r\n }",
"public void setFileName(final File filename) {\n fFileName = filename;\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n fileName_ = value;\n onChanged();\n return this;\n }",
"public void setFileAttributes(Attributes fileAttributes)\r\n {\r\n aFileAttributes = fileAttributes;\r\n }",
"public Builder setFileName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n fileName_ = value;\n onChanged();\n return this;\n }",
"public void setNewFiles(java.lang.String[] param){\r\n \r\n validateNewFiles(param);\r\n\r\n localNewFilesTracker = true;\r\n \r\n this.localNewFiles=param;\r\n }",
"public void setFiles(ArrayList<VipeFile> files) {\n this.files = files;\n }",
"void setInFiles(String inFilesStr) {\n\t\tString[] result = inFilesStr.split(\",\");\n\t\tfor (int x = 0; x < result.length; x++) {\n\t\t\tString fName = result[x].trim();\n\t\t\tthis.inFiles.add(new File(fName));\n\t\t}\n\t}",
"public void setFilename(String name){\n\t\tfilename = name;\n\t}",
"public void setFilename(String filename) {\n\t\tthis.filename = filename;\n\t}",
"public void setFilename(String filename) {\n\t\tthis.filename = filename;\n\t}",
"public void SetTestFiles(File[] testFiles)\n\t{\n\t\tthis.testFiles = testFiles;\n\t}",
"public void setFileName(edu.umich.icpsr.ddi.FileNameType fileName)\n {\n synchronized (monitor())\n {\n check_orphaned();\n edu.umich.icpsr.ddi.FileNameType target = null;\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().find_element_user(FILENAME$0, 0);\n if (target == null)\n {\n target = (edu.umich.icpsr.ddi.FileNameType)get_store().add_element_user(FILENAME$0);\n }\n target.set(fileName);\n }\n }",
"public void setFileName(String filename)\n\t{\n\t\tsuper.setFileName(filename);\n\t\t\n\t\t//#CM702602\n\t\t// Generate the path name of Working data File. \n\t\tworkingDataFileName = wFileName.replaceAll(\"\\\\\\\\send\\\\\\\\\", \"\\\\\\\\recv\\\\\\\\\");\n\t}",
"public void setFileName(String fileName)\r\n\t{\r\n\t\tm_fileName = fileName;\r\n\t}",
"public void setFiles(org.hpccsystems.ws.filespray.PhysicalFileStruct[] files) {\n\t\t this.files = files;\n\t }",
"public void setHTTPFiles(HTTPFileArg[] files) {\n HTTPFileArgs fileArgs = new HTTPFileArgs();\n // Weed out the empty files\n if (files.length > 0) {\n for (HTTPFileArg file : files) {\n if (file.isNotEmpty()) {\n fileArgs.addHTTPFileArg(file);\n }\n }\n }\n setHTTPFileArgs(fileArgs);\n }",
"public Builder addAllFileNames(\n java.lang.Iterable<java.lang.String> values) {\n ensureFileNamesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, fileNames_);\n onChanged();\n return this;\n }",
"public final GetHTTP setFilename(final String filename) {\n properties.put(FILENAME_PROPERTY, filename);\n return this;\n }",
"void setAttribute( String attrName, Object value ) throws FileSystemException;",
"public void setFilename(String filename) {\n this.filename = filename == null ? null : filename.trim();\n }",
"public static void setPropertyFilename(String aFileName) {\n checkNotNull(aFileName, \"aFileName cannot be null\");\n propertyFileName = aFileName;\n }",
"public void SetFileName(String fileName) {\r\n\tthis.fileName = fileName;\r\n }",
"public void setOriginalFileName(String newValue);",
"public void setFile(File f) { file = f; }",
"private void setFile() {\n\t}",
"private void setFileName(final String fileName) {\n\t\t// almacenamos el nombre del fichero\n\t\tthis.fileName = fileName;\n\t}",
"@Test\n\tpublic void testSetFileInfo() {\n\n\t}",
"public void setDataFileName(String dataFileName) {\n this.dataFileName = dataFileName;\n }",
"public void setPropertyFileName(String propertyfileName)\r\n\t{\r\n\t\t// propertyfileName = propertyFileName;\r\n\t\tpropertyFileName = propertyfileName;\r\n\t}",
"public Builder clearFileNames() {\n fileNames_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public SetFileAttributesOptions(String... options) {\n\t\tsuper(options);\n\t}",
"public FileName(String fn) {\n setFile(fn);\n }",
"public Builder addFileNamesBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFileNamesIsMutable();\n fileNames_.add(value);\n onChanged();\n return this;\n }",
"public void setFilename(final String filename)\n {\n this.currentFile = filename; // for use with Gnu Emacs\n }",
"public void setFiles(String mkey, File[] values) {\n\t\tint j = 0;\n\t\tif (values != null)\n\t\t\tfor (File value : values) {\n\t\t\t\tif (value != null) {\n\t\t\t\t\tsetFile(mkey + j, value);\n\t\t\t\t\tj++;\n\t\t\t\t}\n\t\t\t}\n\t\t// erase other elements\n\t\tString last;\n\t\twhile (true) {\n\t\t\tlast = getString(mkey + j);\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tsetString(mkey + j, null);\n\t\t\tj++;\n\t\t}\n\t}",
"public void setFileName(String fileName) {\r\n this.fileName = fileName;\r\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public native void setFileName(String fileName) throws MagickException;",
"public void setOriginalFilename(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}",
"public void setFileName(final String fileName) {\r\n this.fileName = fileName;\r\n }",
"public void setFilename(String filename)\n\t{\n\t\tthis.filename = filename;\n\t\tIWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n\t\tthis.file = root.getFile(new Path(filename));\n\t}",
"public final void setPropertyFileName(String fileName) {\n this.propertyFileName = fileName;\n }",
"public final void setFileName(final String fileName) {\n this.fileName = fileName;\n }",
"public void setFile(File file);",
"void setFilePath(String filePath);",
"public void setFileName(String name)\n\t{\n\t\tfileName = name;\n\t}",
"public String[] getFilename() {\n return filename;\n }",
"public void setNewFilePath(String newValue);",
"@Override\n public void setFile(File f) {\n \n }",
"public void setFileName(String filename,String jsonFileName){\n this.ruleJsonFile=jsonFileName;\n this.filename=filename;\n this.propertyBuilder();\n\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setFileName(String fileName) {\n this.fileName = fileName;\n }",
"public void setQuantitationFileName(String aFileName){\n this.iQuantitationFileName = aFileName;\n }",
"void setFileName(String inputFileName)\n {\n this.inputFileName = inputFileName;\n }",
"void setModules(Set<File> modules);",
"@Override\n\tpublic void setReferenceFiles(String referenceFiles) {\n\t\tmodel.setReferenceFiles(referenceFiles);\n\t}",
"public void setFileName(String fileName) {\n\t\tnew LabeledText(\"File name\").setText(fileName);\n\t}",
"public void setFilesPath(File path) {\r\n\t\tfilesPathProperty.set(path);\r\n\t}",
"public void setFileName(String fileName)\n\t{\n\t\tthis.fileName = fileName;\n\t}",
"public void setFile(String value){\n ((MvwDefinitionDMO) core).setFile(value);\n }",
"public void setOriginalFilename( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), ORIGINALFILENAME, value);\r\n\t}",
"public void setUniqueFileIdentifier(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), UNIQUEFILEIDENTIFIER, value);\r\n\t}",
"public getFile_args(getFile_args other) {\n if (other.isSetFileName()) {\n this.FileName = other.FileName;\n }\n }",
"public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}",
"public void setFileName(String fileName) {\r\n\t\tthis.fileName = fileName;\r\n\t}",
"public void setFileTypes(String[] fileTypes);",
"public Builder setFiles(\n int index, entities.Torrent.FileInfo value) {\n if (filesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureFilesIsMutable();\n files_.set(index, value);\n onChanged();\n } else {\n filesBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public Builder setFilenameBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n filename_ = value;\n onChanged();\n return this;\n }"
] | [
"0.6687482",
"0.6521481",
"0.6406985",
"0.6380056",
"0.6358311",
"0.6350958",
"0.6350958",
"0.63429004",
"0.6333765",
"0.63320243",
"0.6268558",
"0.62603444",
"0.6247146",
"0.6219685",
"0.6193387",
"0.61666024",
"0.6144598",
"0.6142595",
"0.61258125",
"0.61258125",
"0.61258125",
"0.61258125",
"0.61258125",
"0.61258125",
"0.611945",
"0.611945",
"0.611458",
"0.6056073",
"0.6054578",
"0.6032199",
"0.6026814",
"0.6024389",
"0.599976",
"0.599414",
"0.5958698",
"0.5936001",
"0.5931194",
"0.5928886",
"0.5928886",
"0.59178",
"0.58899474",
"0.5881737",
"0.5864768",
"0.5858167",
"0.5830358",
"0.5829359",
"0.5824328",
"0.580899",
"0.57841617",
"0.57736504",
"0.5759163",
"0.5727662",
"0.5718019",
"0.5709611",
"0.57090473",
"0.56838757",
"0.56759053",
"0.5665054",
"0.5660242",
"0.5643296",
"0.563223",
"0.56236684",
"0.56233835",
"0.5622517",
"0.5620099",
"0.561253",
"0.56082",
"0.56038827",
"0.55748945",
"0.5568335",
"0.5561528",
"0.5555935",
"0.55432206",
"0.5531324",
"0.550086",
"0.5492138",
"0.5485061",
"0.54631466",
"0.5462047",
"0.5459047",
"0.5459047",
"0.5459047",
"0.5459047",
"0.5459047",
"0.5457561",
"0.54515165",
"0.5446092",
"0.54216135",
"0.5417857",
"0.5414942",
"0.5412813",
"0.53964615",
"0.5387774",
"0.5379042",
"0.53753",
"0.53716475",
"0.53716475",
"0.5368235",
"0.5361201",
"0.53540367"
] | 0.762196 | 0 |
Returns the list of files represented by this FileList. | public String[] getFiles() throws Exception
{
if (dir == null)
{
throw new Exception("No directory specified for filelist.");
}
if (filenames.size() == 0)
{
throw new Exception("No files specified for filelist.");
}
String[] result = new String[filenames.size()];
filenames.copyInto(result);
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<entities.Torrent.FileInfo>\n getFilesList();",
"public ArrayList<String> getFiles() {\n\t\t// Sort list\n\t\tCollections.sort(this.files);\n\t\t\n\t\treturn this.files;\n\t}",
"public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n if (filesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(files_);\n } else {\n return filesBuilder_.getMessageList();\n }\n }",
"public String[] getListOfFiles() {\n\t\treturn listOfFiles;\n\t}",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFilesList() {\n return files_;\n }",
"public File[] listFiles() {\n\n\t\tFileFilter Ff = f -> true;\n\t\treturn this.listFiles(Ff);\n\t}",
"public ArrayList<String> getFiles() {\n\n\t\tif (m_db == null)\n\t\t\treturn new ArrayList<String>();\n\n\t\t//\n\t\t// query database\n\t\t//\n\t\tCursor cursor = m_db.query(FILE_TABLE_NAME,\n\t\t\t\tnew String[] { FILE_FIELD_PATH }, null, null, null, null, null);\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result set\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn list;\n\t}",
"public List<FileObjects> getFiles() {\n\n\t\t\treturn files;\n\t\t}",
"public List<File> getFiles();",
"java.util.List<ds.hdfs.generated.FileMetadata> \n getFilesList();",
"public List<String> getFiles();",
"private List<File> getFiles() {\n\t\tList<File> mFileLists = new ArrayList<File>();\n\t\tfor (Category category : mFiles) {\n\t\t\tif (category.getName() == null) {\n\t\t\t\tLog.i(TAG, \"no file seleted=\" + category.tag);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmFileLists.add(new File(category.getName()));\n\t\t}\n\t\treturn mFileLists;\n\t}",
"public List<File> findAll() {\n\t\treturn files;\n\t}",
"public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFilesOrBuilderList() {\n if (filesBuilder_ != null) {\n return filesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(files_);\n }\n }",
"java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFilesOrBuilderList();",
"public List<TbomFile> getFileList() {\n\t\treturn fileList;\n\t}",
"List<Path> getFiles();",
"public List<String> getListOfZipFiles()\n {\n \treturn fileList;\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFilesOrBuilderList() {\n return files_;\n }",
"java.util.List<entities.Torrent.FileInfo>\n getFileInfoList();",
"java.util.List<java.lang.String>\n getFileNamesList();",
"public abstract List<String> getFiles( );",
"public File[] getFiles() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList) {\n ListModel<?> listModel = ((JList)list).getModel();\n File[] result = new File[listModel.getSize()];\n for (int i = 0; i < listModel.getSize(); i++) {\n result[i] = (File) listModel.getElementAt(i);\n }\n return result;\n } else if(list instanceof JTable){\n TableModel listModel = ((JTable)list).getModel();\n File[] result = new File[listModel.getRowCount()];\n for (int i = 0; i < listModel.getRowCount(); i++) {\n result[i] = (File) listModel.getValueAt(i, 0);\n }\n return result;\n } else\n throw new IllegalStateException(\"Wrong component type\");\n }",
"public Vector<String> listFiles()\n {\n Vector<String> fileNames = new Vector<String>();\n\n File[] files = fileLocation.listFiles();\n\n for (File file : files)\n {\n fileNames.add(file.getName());\n }\n\n return fileNames;\n }",
"public abstract List<LocalFile> getAllFiles();",
"public LinkedList<ApfsFile> getFiles() {\n LinkedList<ApfsFile> files = new LinkedList<ApfsFile>();\n for(ApfsElement apfse: children) {\n if(apfse.isFile())\n files.add((ApfsFile) apfse);\n }\n return files;\n }",
"java.util.List<java.lang.String>\n getFileNamesList();",
"public ArrayList<ImageFile> getImageFiles() {\n return new ArrayList<>(imageFiles);\n }",
"public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n if (fileInfoBuilder_ == null) {\n return java.util.Collections.unmodifiableList(fileInfo_);\n } else {\n return fileInfoBuilder_.getMessageList();\n }\n }",
"public List getAssociatedFiles()\n {\n return m_files;\n }",
"public Files getFiles() {\n\t\treturn this.files;\n\t}",
"public ChatFileTableModel getFilelist() {\n\t\treturn filelist;\n\t}",
"public List<FileManagerFile> getFiles() throws Exception {\n\n if (files == null) { // defer loading files list until requested.\n cacheFoldersFiles();\n }\n return files;\n }",
"public List<RAFFileEntry> getFileEntries() {\n\t\treturn fileEntries;\n\t}",
"@java.lang.Override\n public java.util.List<entities.Torrent.FileInfo> getFileInfoList() {\n return fileInfo_;\n }",
"public DBCursor getFileList() {\n\treturn getFileList(new BasicDBObject());\n }",
"public List<File> getListing(){\n\t return getFileList(new File(defaultPath));\n }",
"public ArrayList<BatchFileModel> getFiles() {\n return this.files;\n }",
"public String[] listFilesString() {\n\t\tFile[] FL = listFiles();\n\t\treturn FU.listFilesString(FL);\n\t}",
"@GetMapping(\"/all\")\r\n\tpublic List<FileModel> getListFiles() {\r\n\t\treturn fileRepository.findAll();\r\n\t}",
"public List listFiles(String path);",
"java.util.List<? extends ds.hdfs.generated.FileMetadataOrBuilder> \n getFilesOrBuilderList();",
"public ArrayList<FileDesc> getAllFiles() {\n\n\t\tArrayList<FileDesc> result = new ArrayList<FileDesc>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllFiles);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\n\t\t\tString query = \"SELECT FILEGID, TYPE, DESCRIPTION FROM FILE\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\t\n\t\t\twhile (rs.next() == true) {\n\t\t\t\tString fileGID = rs.getString(1);\n\t\t\t\tString type = rs.getString(2);\n\t\t\t\tString Description = rs.getString(3);\n\t\t\t\tresult.add(new FileDesc(fileGID, \"\", \"\", \"\", type, Description));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\t}",
"public org.hpccsystems.ws.filespray.PhysicalFileStruct[] getFiles() {\n\t\t return files;\n\t }",
"public com.google.protobuf.ProtocolStringList\n getFileNamesList() {\n return fileNames_;\n }",
"public synchronized ResultSet getFileList() {\n try {\n return statement.executeQuery(\"select * from FileManager\");\n } catch (SQLException ex) {\n Logger.getLogger(DataManager.class.getName()).log(Level.SEVERE,\n null, ex);\n }\n\n return null;\n }",
"public List<File> mo83571d() {\n File[] listFiles;\n this.f60298e.lock();\n try {\n ArrayList arrayList = new ArrayList();\n if (this.f60297d != null) {\n File file = new File(this.f60297d);\n if (file.exists() && file.isDirectory() && (listFiles = file.listFiles()) != null) {\n for (File file2 : listFiles) {\n if (file2.length() == 0) {\n if (!file2.delete()) {\n file2.deleteOnExit();\n }\n } else if (file2.isFile() && !this.f60299f.contains(file2)) {\n arrayList.add(file2);\n }\n }\n }\n }\n this.f60299f.addAll(arrayList);\n return arrayList;\n } finally {\n this.f60298e.unlock();\n }\n }",
"public Component getFileList() {\n final String fileListName;\n if (LookAndFeel.isMotif() || LookAndFeel.isGTK()) {\n fileListName = UIManager.getString(\"FileChooser.filesLabelText\", getLocale());\n } else {\n fileListName = UIManager.getString(\"FileChooser.filesListAccessibleName\", getLocale());\n }\n return innerSearcher.\n findComponent(new ComponentChooser() {\n @Override\n public boolean checkComponent(Component comp) {\n return ((comp instanceof JList && fileListName.equals(comp.getAccessibleContext().getAccessibleName()))\n || comp instanceof JTable);\n }\n\n @Override\n public String getDescription() {\n return \"JList or JTable used to show list of files\";\n }\n\n @Override\n public String toString() {\n return \"JFileChooserOperator.getFileList.ComponentChooser{description = \" + getDescription() + '}';\n }\n });\n }",
"@java.lang.Override\n public entities.Torrent.FileInfo getFiles(int index) {\n return files_.get(index);\n }",
"public List<MediaFile> list() {\n\t\treturn (doc != null ? listFeed() : listHtml());\n\t}",
"public com.google.protobuf.ProtocolStringList\n getFileNamesList() {\n return fileNames_.getUnmodifiableView();\n }",
"public abstract List<File> listFiles() throws AccessException;",
"@GetMapping(\"/files\")\n public ResponseEntity<List<FileInfo>> getListFiles() {\n List<FileInfo> fileInfos = storageService.loadAll().map(path -> {\n String filename = path.getFileName().toString();\n String url = MvcUriComponentsBuilder\n .fromMethodName(FilesController.class, \"getFile\", path.getFileName().toString()).build().toString();\n\n return new FileInfo(filename, url);\n }).collect(Collectors.toList());\n\n return ResponseEntity.status(HttpStatus.OK).body(fileInfos);\n }",
"public java.util.List<entities.Torrent.FileInfo.Builder>\n getFilesBuilderList() {\n return getFilesFieldBuilder().getBuilderList();\n }",
"java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList();",
"public List<IFile> getAllChildFiles() {\n return this.childFiles;\n }",
"public String[] list() {\n String[] list = _file.list();\n if (list == null) {\n return null;\n }\n for (int i = list.length; i-- > 0; ) {\n if (new File(_file, list[i]).isDirectory() && !list[i].endsWith(\"/\")) {\n list[i] += \"/\";\n }\n }\n return list;\n }",
"public String[] getListOfFileInArray() {\n String[] items = new String[this.listOfFile.size()];\n for(int x=0;x<this.listOfFile.size();x++) {\n items[x]=this.listOfFile.get(x).getName();\n }\n return items;\n }",
"public List<String> getFileNames() {\n\t\t\tList<String> names = new ArrayList<>();\n\t\t\tfor (FileObjects t : files) {\n\t\t\t\tnames.add(t.getName());\n\t\t\t}\n\n\t\t\treturn names;\n\t\t}",
"@Override\n public GitFile[] getFiles()\n {\n if(_files==null) try { _files = getFilesImpl(); } catch(Exception e) { throw new RuntimeException(e); }\n return _files;\n }",
"protected File[] getFiles() {\r\n DirectoryScanner scanner = new DirectoryScanner(rootDir,true,\"*.xml\");\r\n List<File> files = scanner.list();\r\n return files.toArray(new File[files.size()]);\r\n }",
"public List<DocumentFile> listDocumentFiles(\n @NonNull final Context context,\n @NonNull final DocumentFile parent,\n final FileHelper.NameFilter nameFilter,\n boolean listFolders,\n boolean listFiles,\n boolean stopFirst) {\n final List<DocumentProperties> results = queryDocumentFiles(parent, nameFilter, listFolders, listFiles, stopFirst);\n return convertFromProperties(context, results);\n }",
"public Collection<File> getRetrievedFiles() {\n Collection<File> result = new ArrayList<>(upToDateFiles.size() + copiedFiles.size());\n result.addAll(upToDateFiles);\n result.addAll(copiedFiles);\n return result;\n }",
"public Set<FilesetFile> getAllFiles() {\n\t\treturn allFiles;\n\t}",
"public static File[] listFiles(File f) {\n return f.listFiles();\n }",
"public ArrayList<File> getFileList(File file){\r\n\t\tFile dir = new File(file.getParent());\r\n\t\r\n\t\tString filename = file.getName();\r\n\t\t//get all files with the same beginning and end\r\n\t\tint index = filename.indexOf(\"Version\");\r\n\t\tString stringStart = filename.substring(0, index-1);\r\n\t\t\r\n\t\tArrayList<File> files = new ArrayList<File>();\r\n\t\t\r\n\t\tfor(File f:dir.listFiles()){\r\n\t\t\tif(f.getName().contains(stringStart))files.add(f);\r\n\t\t}\r\n\t\t\r\n\t\treturn files;\t\r\n\t}",
"public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList() {\n if (fileInfoBuilder_ != null) {\n return fileInfoBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(fileInfo_);\n }\n }",
"public synchronized ArrayList<String> getFastaFiles(){\n\t\treturn fastaFiles;\n\t}",
"private List<File> getSearchFiles() {\n\t\tif (searchDirs == null || searchDirs.size() <= 0) {\n\n\t\t\tsearchDirs = new ArrayList<File>();\n\t\t\t\n\t\t\tsearchDirs.add(StorageUtils.getLocalCacheDir(this));\n//\t\t\tsearchDirs.add(StorageUtils.getExternalCacheDir(this));\n\t\t\tsearchDirs.add(StorageUtils.getFavorDir(this));\n\t\t}\n\t\treturn searchDirs;\n\t}",
"public List<UpdateFile> getClientFileList() {\n List<UpdateFile> clientFileList = new ArrayList<>();\n listFilesFromDirectory(Paths.get(userLocalDirectory), clientFileList);\n return clientFileList;\n }",
"@Override\r\n\tpublic List<FileMetaDataEntity> getAllFiles() {\n\t\treturn null;\r\n\t}",
"@java.lang.Override\n public entities.Torrent.FileInfoOrBuilder getFilesOrBuilder(\n int index) {\n return files_.get(index);\n }",
"private void get_file_List() {\n\tString file_name=null;\r\n\tfor (int i = 0; i < listOfFiles.length; i++) \r\n\t {\r\n\t \r\n\t if (listOfFiles[i].isFile()) \r\n\t {\r\n\t\t file_name = listOfFiles[i].getName();\r\n\t if (file_name.endsWith(\".xml\") || file_name.endsWith(\".XML\"))\r\n\t {\r\n\t file_list.add(file_name) ;\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n}",
"public String[] list() {\n\t\tSet<String> fileSet = fileList.keySet();\n\t\tString[] fileListArray = fileSet.toArray(new String[fileList.size()]);\n \treturn fileListArray;\n }",
"protected ArrayList<String> getCheckedFiles()\n {\n SparseBooleanArray items = fileList.getCheckedItemPositions();\n ArrayList<String> files = new ArrayList<String>();\n \n for (int i = 0; i < items.size(); i++)\n {\n if (items.valueAt(i))\n {\n files\n .add(fileList.getItemAtPosition(items.keyAt(i)).toString());\n }\n }\n \n return files;\n }",
"@java.lang.Override\n public java.util.List<? extends entities.Torrent.FileInfoOrBuilder>\n getFileInfoOrBuilderList() {\n return fileInfo_;\n }",
"public void getFiles()\n\t{\n\t\tif(fileList.size() == 0)\n\t\t{\n\t\t\tSystem.out.println(\"There is no file or file not found\");\n\t\t}\n\t\tfor(int i = 0; i < fileList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(\"File is at: \" + fileList.get(i));\n\t\t}\n\t}",
"public ArrayList<String> getPendingFiles() {\n\n\t\tif (m_db == null) {\n\t\t\t//\n\t\t\t// database not yet initialized\n\t\t\t//\n\t\t\treturn null;\n\t\t}\n\n\t\tCursor cursor = m_db.query(PENDING_FILE_TABLE_NAME,\n\t\t\t\tnew String[] { PENDING_FIELD_PATH }, null, null, null, null,\n\t\t\t\tPENDING_FIELD_PATH + \" DESC\");\n\n\t\t//\n\t\t// construct array list\n\t\t//\n\t\tArrayList<String> list = new ArrayList<String>();\n\n\t\t//\n\t\t// collect result set\n\t\t//\n\t\tcollectResultSet(cursor, list);\n\n\t\t//\n\t\t// close cursor\n\t\t//\n\t\tcursor.close();\n\n\t\t//\n\t\t// done\n\t\t//\n\t\treturn list;\n\n\t}",
"public List<DocumentFile> listDocumentFiles(@NonNull final Context context,\n @NonNull final DocumentFile parent) {\n return listDocumentFiles(context, parent, null, true, true, false);\n }",
"public List<File> returnFiles(HttpServletRequest request, ServletContext context) {\n boolean isMultipart = ServletFileUpload.isMultipartContent(request);\n return isMultipart ? getFiles(request, context, null) : new ArrayList<File>();\n }",
"List<OIDataFile> getOIDataFileList() {\n return this.userCollection.getFiles();\n }",
"public List<DocumentFile> listFiles(@NonNull Context context, @NonNull DocumentFile parent, final FileHelper.NameFilter filter) {\n return listDocumentFiles(context, parent, filter, false, true, false);\n }",
"@Override\n public String getFileList() {\n StringBuilder string = null;\n //if (parentFile.isDirectory()) {\n File parentFile = currentDir;\n string = new StringBuilder();\n for (File childFile : parentFile.listFiles()) {\n try {\n //TODO: Verify that Paths.get() is retrieving a valid path relative to the project's location.\n Path file = Paths.get(childFile.getPath());\n\n BasicFileAttributes attr = Files.readAttributes(file, BasicFileAttributes.class);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"M\");\n String month = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"d\");\n String dayOfMonth = dateFormat.format(attr.creationTime().toMillis());\n dateFormat.applyPattern(\"y\");\n String year = dateFormat.format(attr.creationTime().toMillis());\n\n char fileType = childFile.isDirectory() ? 'd' : '-'; //'-' represents a file.\n string.append(String.format(\"%srw-r--r--\", fileType)); //Linux style permissions\n string.append(\"\\t\");\n string.append(\"1\"); //?\n string.append(\" \");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(\"0\"); //?\n string.append(\"\\t\");\n string.append(childFile.length()); //Length\n string.append(\" \");\n string.append(month); //Month\n string.append(\" \");\n string.append(dayOfMonth); //Day\n string.append(\" \");\n string.append(\" \");\n string.append(year); //Year\n string.append(\" \");\n string.append(childFile.getName());\n string.append(System.getProperty(\"line.separator\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //}\n\n String format = \"%S\\t%d %d\\t%d\\t%d %S %d %d %S\";\n //return \"-rw-r--r-- 1 0 0 1073741824000 Feb 19 2016 1000GB.zip\";\n if (!string.equals(null)) {\n return string.toString();\n } else {\n return \"Error when creating file list.\";\n }\n }",
"java.util.List<java.lang.Double> getFileList();",
"public static ObservableList<TestFile> getFiles(){\n return emails;\n }",
"private List<File> getFileList(File root){\n\t List<File> returnable = new ArrayList<File>();\n\t if(root.exists()){\n\t\t for(File currentSubFile : root.listFiles()){\n\t\t\t if(currentSubFile.isDirectory()){\n\t\t\t\t returnable.addAll(getFileList(currentSubFile));\n\t\t\t } else {\n\t\t\t\t returnable.add(currentSubFile);\n\t\t\t }\n\t\t }\n\t }\n\t return returnable;\n }",
"java.util.List<java.lang.String>\n getPathsList();",
"public ArrayList<String> getFileTypes() { return new ArrayList<String>(); }",
"java.util.List<java.lang.String>\n getSourceFileList();",
"public Files files();",
"private File[] getFiles() {\n\n if (mPPTFilePath == null) {\n mPPTFilePath = getArguments().getString(PPTPathString);\n }\n\n String Path = mPPTFilePath;\n File mFile = new File(Path);\n if (mFile.exists() && mFile.isDirectory() && mFile.listFiles()!=null) {\n\n return mFile.listFiles();\n } else {\n Log.d(TAG, \"File==null\");\n return null;\n }\n }",
"public File[] getRPFiles()\n\t{\n\t\treturn files;\n\t}",
"@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}",
"private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }",
"public File[] CreateListFiles() {\n\t\tif (!Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) {\n\t\t\tToast.makeText(this, \"Error! No SDCARD Found!\", Toast.LENGTH_LONG).show();\n\t\t} else {\n\t\t\tfile = new File(Environment.getExternalStorageDirectory(), File.separator + \"/MelanomaPics/\" + File.separator + MelanomaActivity.pacientSelected);\n\t\t\tfile.mkdirs();\n\t\t}\n\t\t// pega todas as imagens do diretorio MelanomaPics e coloca dentro de\n\t\t// uma lista\n\t\tif (file.isDirectory()) {\n\t\t\tlistFile = file.listFiles();\n\t\t}\n\t\treturn listFile;\n\t}",
"public final PseudoFileList getPseudoFileList()\n {\n return m_pseudoFiles;\n }",
"public List<RssGeneratedFile> selectRssFileList( )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_RSS_FILE_LIST );\n daoUtil.executeQuery( );\n\n List<RssGeneratedFile> list = new ArrayList<RssGeneratedFile>( );\n\n while ( daoUtil.next( ) )\n {\n RssGeneratedFile rssFile = new RssGeneratedFile( );\n rssFile.setId( daoUtil.getInt( 1 ) );\n rssFile.setPortletId( daoUtil.getInt( 2 ) );\n rssFile.setName( daoUtil.getString( 3 ) );\n rssFile.setState( daoUtil.getInt( 4 ) );\n rssFile.setUpdateDate( daoUtil.getTimestamp( 5 ) );\n rssFile.setDescription( daoUtil.getString( 6 ) );\n rssFile.setWorkgroup( daoUtil.getString( 7 ) );\n rssFile.setTypeResourceRss( daoUtil.getString( 8 ) );\n rssFile.setMaxItems( daoUtil.getInt( 9 ) );\n rssFile.setFeedType( daoUtil.getString( 10 ) );\n rssFile.setEncoding( daoUtil.getString( 11 ) );\n\n list.add( rssFile );\n }\n\n daoUtil.free( );\n\n return list;\n }",
"@Override\n public Iterable<File> list(File storageDirectory, FilenameFilter filter) {\n\treturn null;\n }",
"public List<String> getFiles() throws IOException {\n toServer.println(\"getFiles\");\n toServer.flush();\n\n List<String> files = new ArrayList<>();\n\n while (true) {\n String filename = fromServer.readLine();\n if (filename.isEmpty()) { break; }\n\n files.add(filename);\n }\n\n return files;\n }",
"@controllers.PUBLICAPI\r\n\tpublic Collection<PatientFileIN> getPatientFiles() {\r\n\t\treturn this.hospital.getPatientFileManager().getPatientFileINs();\r\n\t}"
] | [
"0.8162889",
"0.8147558",
"0.7983746",
"0.79808426",
"0.79163986",
"0.787268",
"0.7732454",
"0.77316165",
"0.76197463",
"0.7611418",
"0.7466862",
"0.7459977",
"0.74532413",
"0.7415161",
"0.74079436",
"0.7362591",
"0.73539454",
"0.7353607",
"0.73535025",
"0.7271038",
"0.717907",
"0.71183187",
"0.7117009",
"0.702886",
"0.6990063",
"0.69506764",
"0.6930613",
"0.6924973",
"0.68895674",
"0.6833489",
"0.6828638",
"0.68266004",
"0.6809885",
"0.67910266",
"0.6767914",
"0.6765901",
"0.6762568",
"0.6758858",
"0.6752353",
"0.67468536",
"0.674156",
"0.66884106",
"0.66797674",
"0.6678903",
"0.6674088",
"0.6670162",
"0.6669794",
"0.6654809",
"0.6645153",
"0.6630317",
"0.65986055",
"0.65570956",
"0.6554629",
"0.65514475",
"0.6536404",
"0.6519127",
"0.64973724",
"0.6481873",
"0.6478014",
"0.6440076",
"0.64112896",
"0.64013404",
"0.6395251",
"0.6385617",
"0.6382713",
"0.6370978",
"0.63530254",
"0.634323",
"0.63347346",
"0.63332355",
"0.6331235",
"0.63100624",
"0.6299534",
"0.6292727",
"0.6291449",
"0.6290083",
"0.62807465",
"0.6265574",
"0.6261883",
"0.6253748",
"0.62505716",
"0.62485176",
"0.62425613",
"0.620614",
"0.6192167",
"0.6188375",
"0.61827624",
"0.61683995",
"0.61586964",
"0.6138566",
"0.6137755",
"0.6111989",
"0.6095246",
"0.6090737",
"0.60749894",
"0.6066721",
"0.60462344",
"0.60339767",
"0.60252357",
"0.6022635"
] | 0.7075115 | 23 |
The name attribute of the file element. | public void setName(String name)
{
this.name = name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getName()\n {\n return( file );\n }",
"public String getName()\n\t{\n\t\treturn _fileName;\n\t}",
"@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}",
"public String getName() {\r\n return mFile.getName();\r\n }",
"public String getName() {\n\t\treturn filename;\n\t}",
"public String getNameFile(){\n\t\t\treturn this.nameFile;\n\t\t}",
"public String getFile_name() {\n\t\treturn file_name;\n\t}",
"public String getName() {\n return _file.getAbsolutePath();\n }",
"public String getFileName() {\n\t\treturn file.getName();\n\t}",
"@XmlElement\n @Nullable\n public String getFileName() {\n return this.fileName;\n }",
"public final String getFileName() {\n\n\t\treturn getValue(FILE_NAME);\n\t}",
"public String getFileName() {\r\n\t\treturn fileName;\r\n\t}",
"public String getFileName() {\r\n\t\treturn fileName;\r\n\t}",
"public String getFileName() {\r\n\t\treturn fileName;\r\n\t}",
"public String getSimpleName() { return FilePathUtils.getFileName(_name); }",
"public String getFileName()\n\t{\n\t\treturn fileName;\n\t}",
"public String getFileName()\n\t{\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getFileName(){\n\t\treturn fileName;\n\t}",
"public String getFileName() {\n\t\treturn file.getFileName();\n\t}",
"public String getFileName() {\r\n return fileName;\r\n }",
"public String getFileName() {\r\n return fileName;\r\n }",
"public String getFileName() {\r\n return fileName;\r\n }",
"public String getFileName()\r\n {\r\n return fileName;\r\n }",
"@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}",
"public String getNameForFileSystem() {\r\n\t\treturn filename;\r\n\t}",
"public String GetFileName() {\r\n\treturn fileName;\r\n }",
"public String fileName () {\n\t\treturn fileName;\n\t}",
"public final String getFileName()\r\n {\r\n return _fileName;\r\n }",
"public String getFILE_NAME() { return FILE_NAME; }",
"public String getFileName(){\n\t\treturn _fileName;\n\t}",
"@ApiModelProperty(required = true, value = \"The name of the file/folder.\")\n public String getName() {\n return name;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return fileName;\n }",
"public String getFileName() {\n return this.fileName;\n }",
"public String getFileName() {\n return this.fileName;\n }",
"protected String getFileName() {\n\t\treturn fileName;\n\t}",
"public String getName() {\n return dtedDir + \"/\" + filename;\n }",
"public String fileName() {\n return this.fileName;\n }",
"public String fileName() {\n return this.fileName;\n }",
"public String getFilename() {\n\t\treturn fileName;\n\t}",
"public String getFileName() {\r\n \t\tif (isFileOpened()) {\r\n \t\t\treturn curFile.getName();\r\n \t\t} else {\r\n \t\t\treturn \"\";\r\n \t\t}\r\n \t}",
"public File getFileName() {\n\t\treturn mFileName;\n\t}",
"public final String getFileName() {\n return this.fileName;\n }",
"public String getName() { return FilePathUtils.getFileName(getPath()); }",
"public String getFileName ()\n\t{\n\t\treturn FileName;\n\t}",
"public String getFileName()\n {\n return getString(\"FileName\");\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}",
"public String getName() {\n if (filename != null) {\n int index = filename.lastIndexOf(separatorChar);\n\n if (index >= 0) {\n return filename.substring(index + 1);\n } else {\n if (filename == null) {\n return \"\";\n } else {\n return filename;\n }\n }\n } else {\n return \"\";\n }\n }",
"private String getFileName() {\n\t\t// retornamos el nombre del fichero\n\t\treturn this.fileName;\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }",
"public String getFilename() {\n\treturn file.getFilename();\n }",
"public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getFileName() \n {\n return fileName;\n }",
"public String getFileName() {\n return filename;\n }",
"public String getFileName() {\n\t\treturn mItems.getJustFileName();\n\t}",
"public String getFileName()\r\n {\r\n return sFileName;\r\n }",
"public String getFilename(){\n\t\treturn filename;\n\t}",
"public String getFilename(){\n\t\treturn filename;\n\t}",
"public String getFileRealName() {\n return fileRealName;\n }",
"@XmlElement(required = true)\n\tpublic String getName()\n\t{\n\t\treturn name;\n\t}",
"public String getFilename()\r\n\t{\r\n\t\treturn filename;\r\n\t}",
"public String getFilename() {\r\n return filename;\r\n }",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFilename() {\n\t\treturn filename;\n\t}",
"public String getFileName() {\n return mFileNameTextField == null ? \"\" : mFileNameTextField.getText(); //$NON-NLS-1$\n }",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"public String getName() { \n\t\treturn getNameElement().getValue();\n\t}",
"@Override\r\n\tpublic String getName() {\n\t\treturn \"C:/path/to/file/rdfSpecimen_2013-06-28.xml\";\r\n\t}",
"protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }"
] | [
"0.7915087",
"0.77948123",
"0.7788666",
"0.77699786",
"0.7755494",
"0.7640525",
"0.763051",
"0.7475566",
"0.73428434",
"0.72752357",
"0.7266253",
"0.72246784",
"0.72246784",
"0.72246784",
"0.71936435",
"0.71722454",
"0.71722454",
"0.7168003",
"0.7168003",
"0.7168003",
"0.7168003",
"0.7168003",
"0.71553886",
"0.7152547",
"0.7134243",
"0.7134243",
"0.7134243",
"0.7107422",
"0.7107377",
"0.7101895",
"0.7099552",
"0.7089616",
"0.70848495",
"0.70830226",
"0.7079181",
"0.7040315",
"0.7021345",
"0.7021345",
"0.7021345",
"0.7021345",
"0.7021345",
"0.7021345",
"0.7021345",
"0.7021345",
"0.7021345",
"0.7021345",
"0.70180553",
"0.7016822",
"0.7016822",
"0.70126325",
"0.69994646",
"0.69961065",
"0.69961065",
"0.69907874",
"0.6988537",
"0.69859797",
"0.69705325",
"0.69632477",
"0.6949209",
"0.6942628",
"0.6906942",
"0.6906942",
"0.6906942",
"0.6906942",
"0.6906942",
"0.6906942",
"0.690571",
"0.69022435",
"0.69003516",
"0.68977743",
"0.68977743",
"0.68977743",
"0.68977743",
"0.68977743",
"0.68977743",
"0.68851745",
"0.68851745",
"0.68818796",
"0.68808043",
"0.6866705",
"0.6866705",
"0.6862994",
"0.6861427",
"0.68441",
"0.6843052",
"0.6750375",
"0.6750375",
"0.67421895",
"0.6733817",
"0.67157394",
"0.6703354",
"0.66968524",
"0.66968524",
"0.66968524",
"0.66968524",
"0.6692082",
"0.66908747",
"0.66908747",
"0.66908747",
"0.6680591",
"0.6677694"
] | 0.0 | -1 |
Add a nested nested element. | public void addConfiguredFile(FileName name) throws Exception
{
if (name.getName() == null)
{
throw new Exception(
"No name specified in nested file element");
}
filenames.addElement(name.getName());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addNestedTag(HTMLTagComponent tag) { \n nestedTagList.add(tag);\n }",
"public void add(NestedInteger ni){}",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}",
"Form addElement(Element element);",
"void addElement(FormElement elt);",
"public void add(NestedInteger ni);",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public void addElement(TLProperty element);",
"public abstract void add(NestedInteger ni);",
"public void add(NestedInteger ni) {\n this.nestedIntegers.add(ni);\n }",
"public void addElement(Object obj);",
"void add(Object element);",
"public XmlProtoElementBuilder addChildElement(XmlProtoElementBuilder newElement) {\n element.addChild(XmlNode.newBuilder().setElement(newElement.getProto()));\n return this;\n }",
"private void UpdateAddNestedValue(){\n notebookRef.document(\"IpWOjXtIgGJ2giKF4VTp\")\r\n// .update(KEY_Tags+\".tag1\", false);\r\n\r\n // ****** For Practice If we have nested over nested values likke:\r\n // tags-> tag1-> nested_tag-> nested_tag2 :true we write like\r\n .update(\"tags.tag1.nested_tag.nested_tag2\", true);\r\n\r\n }",
"public void addChild(WSLNode node) {children.addElement(node);}",
"public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }",
"public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}",
"public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }",
"public void addElement(int index, TLProperty element);",
"public void addNode(Node node){subNodes.add(node);}",
"public void add(NestedInteger ni) {\n this.list.add(ni);\n }",
"public void add (T element);",
"public void addBoundContainerElement(IDecisionVariable element) {\n nestedElements.add(element);\n }",
"TreeNode addChild(TreeNode node);",
"public void add(NestedInteger ni) {\n\t\tif (this.list == null) {\n\t\t\tthis.list = new ArrayList<>();\n\t\t}\n\t\tthis.list.add(ni);\n\t}",
"private void addSubnodes( Element root, String node_name ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement( node_name );\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\r\n\r\n\t\tint num = Inputs.getInt( \"¿Cuántos sub-elementos tiene <\" + node_name + \">?\" );\r\n\r\n\t\tfor ( int i = 0; i < num; i++ ) {\r\n\r\n\t\t\taddSubnodes( element, ( i + 1 ));\r\n\t\t}\r\n\t}",
"public void addNestedWidget(SlotWidget widget, String slotName,\r\n String tabName, String widgetName) {\r\n widgets.add(widget);\r\n WidgetHolder wh = new WidgetHolder();\r\n tabbedPane.add(tabName, (Component) widget);\r\n wh.tabName = tabName;\r\n wh.widgetName = widgetName;\r\n wh.slotName = slotName;\r\n widgetContainers.put(widget, wh);\r\n }",
"public void add(E element) {\n\t\t// your code here\n\t}",
"public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void addChild(Element child) {\n super.addChild(child);\n }",
"public void add(T element);",
"public void add(T element);",
"private static void addPart(Element parent, Node partValue) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n element.appendChild(element.getOwnerDocument().importNode(partValue,\n true));\n }",
"public void addChild( ChildType child );",
"private void addSubnodes( Element root, int num ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement(\r\n\t\t\tUtils.replaceWhitespaces(\r\n\t\t\t\tInputs.getStr( \"¿Nombre del elemento \" + num + \"?\" ), '_'\r\n\t\t\t)\r\n\t\t);\r\n\t\telement.appendChild( \r\n\t\t\tdoc.createTextNode(\r\n\t\t\t\tInputs.getStr( \"¿Texto del elemento?\" )\r\n\t\t\t)\r\n\t\t);\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\t}",
"public void add(T elem){\n\t\tNode<T> toAdd = new Node<T>(elem);\r\n\t\tif(this.start == null)\r\n\t\t\tthis.start = toAdd;\r\n\t\telse {\r\n\t\t\tNode<T> temp = this.start;\r\n\t\t\twhile (temp.next != null)\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\ttemp.next = toAdd;\r\n\t\t}\r\n\t}",
"public void add(IVisualElement elem) {\n IVisualGroup oldParent = elem.getParent();\n if (oldParent != null) {\n oldParent.remove(elem);\n }\n\n children.add(elem);\n elem.setParent(parentRef.get());\n }",
"public abstract void add(T element);",
"public abstract void add(T element);",
"public boolean add(Object element);",
"@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}",
"void add(ByteString element);",
"@Override\n public boolean add(T parent, T child) {\n boolean result = false;\n if (this.root == null) {\n this.root = new Node<>(parent);\n this.root.add(new Node<>(child));\n result = true;\n this.modCount++;\n } else if (findBy(parent).isPresent()) {\n findBy(parent).get().add(new Node<>(child));\n result = true;\n this.modCount++;\n }\n return result;\n }",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public void addElement(Object ob) {\r\n\t\tif (ob == null) {\r\n\t\t\telements.add(TObject.nullVal());\r\n\t\t} else if (ob instanceof TObject || ob instanceof ParameterSubstitution || ob instanceof Variable || ob instanceof FunctionDef || ob instanceof Operator || ob instanceof StatementTree || ob instanceof TableSelectExpression) {\r\n\t\t\telements.add(ob);\r\n\t\t} else {\r\n\t\t\tthrow new Error(\"Unknown element type added to expression: \" + ob.getClass());\r\n\t\t}\r\n\t}",
"void addChild(BaleElement be)\n{\n if (be.isLeaf()) {\n line_elements.add(be);\n if (be.isEndOfLine()) {\n\t addLine();\n\t line_elements.clear();\n }\n }\n else {\n for (int i = 0; i < be.getElementCount(); ++i) {\n\t BaleElement ce = be.getBaleElement(i);\n\t if (ce.getStartOffset() >= 0)\n\t addChild(ce);\n }\n }\n}",
"public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }",
"private static void addPart(Element parent, NodeList nodes) {\n Element element = DomUtil.createElement(parent,\n CxfJbiConstants.WSDL11_WRAPPER_PART);\n for (int i = 0; i < nodes.getLength(); i++) {\n Node node = nodes.item(i);\n element.appendChild(element.getOwnerDocument().importNode(node,\n true));\n }\n }",
"Element createElement();",
"void appendChild(Object child);",
"public void addChild(Node node){\n children.add(node);\n \n }",
"public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}",
"ElementDefinition createElementDefinition();",
"XomNode appendElement(Element element) throws XmlBuilderException;",
"private static void addToNested(List<FoldRegionImpl> nested, @NotNull FoldRegionImpl region) {\n for (int i=nested.size();i>=0;i--) {\n FoldRegion prev = i==0 ? null : nested.get(i - 1);\n if (prev == null ||\n TextRange.containsRange(prev, region) && (!TextRange.containsRange(region, prev) || prev.isExpanded() || !region.isExpanded())) {\n nested.add(i,region);\n break;\n }\n }\n }",
"void add(T element);",
"void add(T element);",
"protected void incrementNesting() {\n m_nestingDepth++;\n }",
"public void add(T value) {\n final Node node = new Node(value);\n if (root != null) {\n root.add(node);\n } else {\n root = node;\n }\n }",
"private void addChild(Content child) {\n/* 238 */ this.tail.setNext(this.document, child);\n/* 239 */ this.tail = child;\n/* */ }",
"default <T extends Tag<? extends Type>> T appendChild(T tag) {\n getChildren().add(tag);\n return tag;\n }",
"void addModelElement(EObject modelElement);",
"@Override\n public void add(Widget widget) {\n add(widget, getElement());\n }",
"public void addElement(Expression element){\n\t\telements.add(element);\n\t}",
"protected abstract void createNestedWidgets();",
"public Builder setNested(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000100;\n nested_ = value;\n onChanged();\n return this;\n }",
"public void add(E element)\r\n\t{\r\n\t\tif( root == null)\r\n\t\t{\r\n\t\t\troot = new BTNode<E>(element, null, null);\r\n\t\t\tnumItems++;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tBTNode<E> cursor = root;\r\n\t\t\tboolean done = false;\r\n\r\n\t\t\twhile(!done)\r\n\t\t\t{\r\n\t\t\t\tif(element.compareTo(cursor.getData()) <=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(cursor.getLeft() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcursor.setLeft(new BTNode<E>(element, null , null));\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tnumItems++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcursor = cursor.getLeft();\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif(cursor.getRight() == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcursor.setRight(new BTNode<E>(element, null, null));\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tnumItems++;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tcursor = cursor.getRight();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void addNestedClause(TempTableHeaderCell nestedClause);",
"void add(int index, Object element);",
"public void addChild(PDFMetadataProperty property) {\n\t\tif(this.childs==null) {\n\t\t\t//mostly there is only one entry.\n\t\t\tthis.childs = new ArrayList<>(1);\n\t\t}\n\t\tthis.childs.add(property);\n\t}",
"@Override\n\tpublic boolean add(E e) {\n\t\tTreeNode<E> newNode = new TreeNode(e);\n\t\tTreeNode<E> parent = null;\n\t\tTreeNode<E> curr = root;\n\t\twhile(curr != null) {\n\t\t\tif(e.compareTo( curr.element) < 0) {\n\t\t\t\tparent = curr;\n\t\t\t\tcurr = curr.left;\n\t\t\t}\n\t\t\telse if(e.compareTo(curr.element) > 0) {\n\t\t\t\tparent = curr;\n\t\t\t\tcurr = curr.right;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false; // this element is already there.\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(e.compareTo(parent.element) < 0) {\n\t\t\tparent.left = newNode;\n\t\t}\n\t\telse if (e.compareTo(parent.element) > 0){\n\t\t\tparent.right = newNode;\n\t\t}\n\t\tsize++;\n\t\treturn true;\n\t}",
"@Override\n public boolean add(E e) {\n if (root != null) {\n if (!root.addElement(e)) {\n return false;\n }\n root = root.balance();\n } else {\n root = new Node(e, null, null, 1);\n }\n size++;\n return true;\n }",
"private ParsedAnnotationTag addChild(final ParsedAnnotationTag parent,\n\t\t\tNode childNode) {\n\t\tlogger.log(Level.FINER, \"Entering addChild in EbayAnnotationParser\",new Object[]{parent,childNode});\n\t\tParsedAnnotationTag retData = createAnnotationData(childNode);\n\t\tparent.addChild(retData);\n\t\tlogger.log(Level.FINER, \"Exiting addChild in EbayAnnotationParser\",retData);\n\t\treturn retData;\n\t}",
"public void addChild(Node child){\n children.add(child);\n }",
"public Element addChild(String name, String value) {\n org.w3c.dom.Element child = (org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name));\n child.appendChild(element.getOwnerDocument().createTextNode(value));\n\n return new Element(child);\n }",
"public void addChild(ParsedComponent parsedComponent) {\n children.put(parsedComponent.getName(), parsedComponent);\n }",
"public void addchild(T data)\n\t{\n\t\tHtmlMap<T> child = new HtmlMap<T>(data);\n\t\tchild.setParent(this);\n\t\tthis.m_children.add(child);\n\t}",
"public void increaseNestingLevel() {\n\t\tthis.nestingLevel++;\n\t\tthis.resolvableType = null;\n\t\tif (this.methodParameter != null) {\n\t\t\tthis.methodParameter = this.methodParameter.nested();\n\t\t}\n\t}",
"@DISPID(1)\n\t// = 0x1. The runtime will prefer the VTID if present\n\t@VTID(7)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject addChild(\n\t\t\t@MarshalAs(NativeType.VARIANT) java.lang.Object node);",
"public abstract void addChild(Node node);",
"@Override\n public void add(T element) {\n add(size(), element);\n }",
"public ElementsBag add(HTMLElement element) {\n iterable.elements.push(element);\n return that();\n }",
"protected void addChild(DataNode value) {\n m_values.add(value);\n if (isCollection()) {\n \n // make this a complex collection if the added child is something more than a simple value\n if (value.getSchemaComponent() != getSchemaComponent() &&\n value.isInterior() || value.isCollection()) {\n m_complexCollection = true;\n }\n }\n }",
"@Test\n\tpublic void addElement() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tassertEquals(XMLTagParser.containsElement(\"Person\"), true);\n\t}",
"ClassPath add(ClassPathElement element);",
"public void addToRatebooks(entity.ImpactTestingRateBook element);",
"private TreeItem<String> addNewItem(Path path) {\n TreeItem<String> mostCorrespondingParent = findMostCorrespondingParentFor(path);\n TreeItem<String> newChildTreeItem;\n if (buildPathForNode(mostCorrespondingParent) != null) {\n Path newChildPath;\n if (mostCorrespondingParent != rootNode) {\n Path mostCorrespondingParentPath = getNodeAbsolutePath(mostCorrespondingParent);\n newChildPath = extractChildPath(path, mostCorrespondingParentPath);\n } else {\n newChildPath = path;\n }\n newChildTreeItem = new TreeItem<>(newChildPath.toString(), new ImageView(FileTreeItem.FileType.FILE.getImage()));\n } else {\n newChildTreeItem = new TreeItem<>(path.toString(), new ImageView(FileTreeItem.FileType.FILE.getImage()));\n }\n mostCorrespondingParent.getChildren().add(newChildTreeItem);\n sortChildren(mostCorrespondingParent);\n return extractFileNameToLeaf(newChildTreeItem);\n }",
"public static void add(String parent, String child, node tree){\n\t\ttree = names.get(parent);\r\n\t\tnode tmp = new node(child);\r\n\t\tnames.put(child, tmp);\t\r\n\t\ttree.children.add(tmp);\r\n\t}",
"public void add(T element, int pos);",
"public void add(Order order){\n if(this.root == null)\n this.root = new Node(order);\n\n else\n root.add(order);\n }",
"public boolean addChildPart( T part ) {\r\n\t\treturn _parts.add( part );\r\n\t}",
"public void add (K key) {\n\t\tthis.root = this.addRecursively(root,key);\n\t}",
"public void add (Object element)\n {\n if (position == null)\n {\n addFirst(element);//LL is empty\n position = first;\n }\n else{\n Node newNode = new Node();\n newNode.data = element; // Alias \n newNode.next = position.next; //I know who is next \n position.next =newNode; //Iterator thinks next is me\n position= newNode;// current posiion is me, little conflict if you call remove\n \n \n }\n isAfterNext = false;\n \n }",
"public void add(Node<E> child) {\n this.children.add(child);\n }",
"@Override\n\tpublic boolean add(E e) {\n\t\tNode<E> element = new Node<E>(e);\n\t\t// 2. Traverse to end of list\n\t\tif (root == null) {\n\t\t\troot = element;\n\t\t} else {\n\t\t\ttail.setNext(element);\n\t\t\telement.setBefore(tail);\n\t\t}\n\t\ttail = element;\n\t\treturn true;\n\t}"
] | [
"0.6214824",
"0.6036896",
"0.60213965",
"0.5934431",
"0.58943826",
"0.588192",
"0.58411366",
"0.5665929",
"0.5658977",
"0.55542994",
"0.5547456",
"0.55176514",
"0.54948133",
"0.54477304",
"0.54124457",
"0.5396575",
"0.5391837",
"0.53479224",
"0.5324105",
"0.5304788",
"0.52643675",
"0.52504116",
"0.5242593",
"0.5220559",
"0.52203065",
"0.5217103",
"0.5211159",
"0.5206701",
"0.52053076",
"0.51884574",
"0.51884574",
"0.51884574",
"0.51884574",
"0.51884574",
"0.51884574",
"0.51884574",
"0.51744443",
"0.51744443",
"0.5169664",
"0.5149151",
"0.5117039",
"0.50878197",
"0.506411",
"0.50503904",
"0.50503904",
"0.5035087",
"0.50281554",
"0.5028082",
"0.502611",
"0.5015494",
"0.5011032",
"0.50032187",
"0.49952886",
"0.498907",
"0.49837974",
"0.49718997",
"0.49664462",
"0.49624243",
"0.4954482",
"0.4948672",
"0.49465817",
"0.49459386",
"0.49459386",
"0.49424118",
"0.49360862",
"0.49331206",
"0.49321383",
"0.4926914",
"0.49147332",
"0.49075928",
"0.48838824",
"0.4876689",
"0.4875287",
"0.48698193",
"0.48676825",
"0.48667073",
"0.48630786",
"0.48575383",
"0.48542485",
"0.484564",
"0.48443615",
"0.48418376",
"0.48403314",
"0.48391438",
"0.48367634",
"0.48357588",
"0.48355284",
"0.48333597",
"0.48323396",
"0.48301852",
"0.48234126",
"0.48200294",
"0.48193464",
"0.4814044",
"0.48008838",
"0.48003578",
"0.47909552",
"0.4789199",
"0.47865176",
"0.4784489",
"0.4781452"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void CheckApkFiles(String sourceFolder) {
try {
String reportFolderPath = FileHandler.createDirectory(sourceFolder,
"reports");
Collection<File> files = FileHandler.findFiles(sourceFolder,
new String[] { Constants.APK_EXTENSION });
String reportPath = reportFolderPath + File.separator
+ "virustotal_results.tsv";
File reportFile = new File(reportPath);
// FileUtils.deleteQuietly(reportFile);
System.out.print("File Name" + Constants.TAB_CHAR + "SHA256"
+ Constants.TAB_CHAR + "Detected" + Constants.TAB_CHAR
+ "Undetected");
FileUtils.write(reportFile, "File Name" + Constants.TAB_CHAR
+ "SHA256" + Constants.TAB_CHAR + "Detected"
+ Constants.TAB_CHAR + "Undetected", true);
int count = 0;
VirusTotal VT = new VirusTotal(
FileHandler
.readConfigValue(Constants.VIRUS_TOTAL_TOKEN_CONFIG));
for (File file : files) {
String apkReportFilePath = file.getParentFile()
.getAbsolutePath()
+ File.separator
+ "reports"
+ File.separator + file.getName().replace("apk", "tsv");
File apkReportFile = new File(apkReportFilePath);
if (!apkReportFile.exists()) {
int detected = 0;
int undetected = 0;
byte[] data = FileUtils.readFileToByteArray(file);
String sha256Hex = DigestUtils.sha256Hex(data);
try {
count++;
Set<ReportScan> reports = VT.ReportScan(sha256Hex);
FileUtils.write(apkReportFile, "\nAV"
+ Constants.TAB_CHAR + "Detected"
+ Constants.TAB_CHAR + "Malware"
+ Constants.TAB_CHAR + "Update", true);
// Output the details of each scan result from a vendor
for (ReportScan report : reports) {
if (report.getDetected().equals("true"))
detected++;
else
undetected++;
FileUtils.write(
apkReportFile,
"\n" + report.getVendor()
+ Constants.TAB_CHAR
+ report.getDetected()
+ Constants.TAB_CHAR
+ report.getMalwarename()
+ Constants.TAB_CHAR
+ report.getUpdate(), true);
}
} catch (Exception e) {
System.out.print("\n" + file.getName()
+ Constants.TAB_CHAR + "ERROR");
FileUtils.write(reportFile, "\n" + file.getName()
+ Constants.TAB_CHAR + "ERROR", true);
}
if ((detected + undetected) != 0) {
System.out.print("\n" + file.getName()
+ Constants.TAB_CHAR + sha256Hex
+ Constants.TAB_CHAR + detected
+ Constants.TAB_CHAR + undetected);
FileUtils.write(reportFile, "\n" + file.getName()
+ Constants.TAB_CHAR + sha256Hex
+ Constants.TAB_CHAR + detected
+ Constants.TAB_CHAR + undetected, true);
}
}
if (count != 0 && count % 4 == 0)
Thread.sleep(61000);
}
} catch (Exception e) {
e.printStackTrace();
}
} | {
"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 | public static void CheckReportWithTopTenAV(String sourceFolder) {
try {
Collection<File> files = FileHandler.findFiles(sourceFolder,
new String[] { "tsv" });
String reportFilePath = sourceFolder + File.separator
+ "malware_list.tsv";
File reportFile = new File(reportFilePath);
FileUtils.deleteQuietly(reportFile);
System.out.print("File Name\tFamily\n");
String malwareName = "";
for (File file : files) {
int detected = 0;
String[] lines = FileHandler.readFileToString(file
.getAbsolutePath()).split("\n");
for (String line:lines)
{
if (line.contains("AntiVir\ttrue"))
detected++;
if (line.contains("AVG\ttrue"))
detected++;
if (line.contains("BitDefender\ttrue"))
{
detected++;
malwareName=line.split("\t")[2];
}
if (line.contains("ClamAV\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
if (line.contains("ESET-NOD32\ttrue"))
detected++;
if (line.contains("F-Secure\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
if (line.contains("Kaspersky\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
if (line.contains("McAfee\ttrue"))
detected++;
if (line.contains("Panda\ttrue"))
detected++;
if (line.contains("Sophos\ttrue"))
{
detected++;
if (malwareName.equals(""))
malwareName=line.split("\t")[2];
}
}
if (detected >= 2) {
FileUtils
.write(reportFile,
file.getName().replace(".tsv", ".apk")
+ "\t"+ malwareName +"\n", true);
System.out.print(file.getName().replace(".tsv", ".apk")
+ "\t"+ malwareName +"\n");
}
}
} catch (Exception e) {
e.printStackTrace();
}
} | {
"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 |
/ Seleciona um vendedor a partir do seu codigo | public Pedido select(Integer codigo) {
try (Connection con = db.getConnection()) {
String sql = "SELECT * FROM pedidos WHERE codigo = ?";
PreparedStatement cmd = con.prepareStatement(sql);
cmd.setInt(1, codigo);
ResultSet rs = cmd.executeQuery();
if (rs.next()) {
Pedido pedido = new Pedido();
pedido.setCodigo(codigo);
pedido.setCod_vend(rs.getInt("cod_vend"));
pedido.setCod_cli(rs.getInt("cod_cli"));
pedido.setData_pedido(rs.getDate("data_pedido"));
pedido.setData_entrega(rs.getDate("data_entrega"));
pedido.setFrete(rs.getDouble("frete"));
pedido.setStatus(Status_ped.valueOf(rs.getString("status")));
List<Item> itens = new ArrayList();
sql = "SELECT * FROM detalhes_pedidos WHERE cod_ped = ?";
cmd = con.prepareStatement(sql);
cmd.setInt(1, codigo);
rs = cmd.executeQuery();
while(rs.next()){
Item item = new Item();
item.setCod_ped(rs.getInt("cod_ped"));
item.setProduto(ProdutoDAO.select(rs.getInt("cod_prod")));
item.setQuantidade(rs.getInt("quantidade"));
itens.add(item);
}
pedido.setItens(itens);
return pedido;
}
return null;
} catch (Exception e) {
throw new RuntimeException(e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Vendedor getVendedor(Long id);",
"public Cuenta obtenerCuentaConMasDinero(String codigo_cliente) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo_Cliente = ? order by Credito desc limit 1\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return cuenta;\n }",
"@Override\n\tpublic VisitaTecnica findVisitaTecnica(String cod) {\n\t\treturn null;\n\t}",
"public Vendedor buscarVendedorPorNome(String nome);",
"private String entraCodPed(boolean isIncluir) {\n String cod = \"\";\n boolean isCadastro = false;\n\n ArrayList<Pedido> codPed = (obterTodosPedidos());\n\n // loop enquanto teclar vazio ou not fim\n while (cod.isEmpty() || true) {\n // janela de input do CPF\n cod = JOptionPane.showInputDialog(this, \"Cod do Pedido\");\n if (cod == null) {\n return null;\n } else if (cod.isEmpty()) {\n // SE DER <ENTER> JOGA MENSAGEM DE ERRO e VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null, \"Por Favor, Digite Algo!\",\n \"Msg do Servidor\", JOptionPane.INFORMATION_MESSAGE);\n } else {\n\n for (Pedido codPed1 : codPed) {\n if (cod.equals(codPed1.getCodPed())) {\n if (isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e\n // VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null,\n \"Pedido Ja Cadastrado!!!\",\n \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n isCadastro = true;\n break;\n } else {\n return cod;\n }\n }\n isCadastro = false;\n }\n\n if (!isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e VOLTA AO\n // LOOP.\n JOptionPane.showMessageDialog(null,\n \"Pedido nao encontrado!!!\", \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n } else {\n if (!isCadastro) {\n return cod;\n }\n }\n }\n\n }\n return cod;\n }",
"public Fornecedor BuscarPorID(int codigo) throws SQLException {\r\n\t\ttry {\r\n\t\t\tString query = \"select * from fornecedor where cd_fornecedor=?\";\r\n\t\t\tPreparedStatement preparedStatement = this.connection.prepareStatement(query);\r\n\t\t\tpreparedStatement.setInt(1, codigo);\r\n\r\n\t\t\tResultSet rs = preparedStatement.executeQuery();\r\n\t\t\tFornecedor fornecedor = new Fornecedor();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tfornecedor.setCodigoFornecedor(rs.getInt(\"cd_fornecedor\"));\r\n\t\t\t\tfornecedor.setNomeLocal(rs.getString(\"nm_local\"));\r\n\t\t\t\tfornecedor.setValorFornecedor(rs.getDouble(\"vl_fornecedor\"));\r\n\t\t\t\tfornecedor.setQuantidadePeso(rs.getInt(\"qt_peso\"));\r\n\t\t\t\tfornecedor.setNomeFornecedor(rs.getString(\"nm_fornecedor\"));\r\n\t\t\t\tfornecedor.setDescricao(rs.getString(\"ds_descricao\"));\r\n\t\t\t}\r\n\r\n\t\t\treturn fornecedor;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\tthis.connection.close();\r\n\t\t}\r\n\t}",
"public TipoDestino findByCodigo(String codigo);",
"public BCliente obtenerCliente(int codigo)throws SQLException{\r\n\t\tICliente daoCliente = new DCliente();\r\n\t\treturn daoCliente.obtenerCliente(codigo);\r\n\t}",
"public Artista findArtista(int codiceArtista) throws RecordNonPresenteException;",
"VentaJPA obtenerVenta(int comprobante);",
"public static DefaultComboBoxModel getArtigos(Integer codEv, Integer numEd) throws SQLException{\r\n DefaultComboBoxModel model = new DefaultComboBoxModel();\r\n String selectTableSQL = \"SELECT idArt FROM Artigo WHERE codEv = \" + codEv +\" AND numEd = \" + numEd + \"\";\r\n System.out.println(selectTableSQL);\r\n Statement statement = dbConnection.createStatement();\r\n ResultSet rs = statement.executeQuery(selectTableSQL);\r\n model.addElement(\" --- \");\r\n while(rs.next()){\r\n model.addElement(rs.getString(\"idArt\"));\r\n }\r\n rs.close();\r\n return model;\r\n }",
"public ArrayList<Cuenta> verCuentasDeCliente(String codigo_cliente) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta where Codigo_Cliente = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = new Cuenta();\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (Exception e) {\n System.out.println(e.toString());\n }\n return lista;\n }",
"public Juegos getJuegoPorCodigo(int codigo) {\n\n String metodo = \"getJuegoPorCodigo\";\n\n Juegos juego = null;\n Session session = null;\n Transaction tx = null;\n\n try {\n session = HibernateUtil.currentSession();\n tx = session.beginTransaction();\n\n juego = (Juegos) session.createQuery(\"from Juegos j where j.codigo= ?\").setString(0, \"\"+codigo).uniqueResult();\n\n session.flush();\n tx.commit();\n\n log.info(\"DAOJuegos: \" + metodo + \": Juego obtenido con CODIGO: \" + juego.getCodigo());\n\n } catch (org.hibernate.HibernateException he) {\n tx.rollback();\n log.error(\"DAOJuegos: \" + metodo + \": Error de Hibernate: \" + he.getMessage());\n } catch (SQLException sqle) {\n tx.rollback();\n log.error(\"DAOJuegos: \" + metodo + \": Error SQLException: \" + sqle.getMessage());\n } catch (Exception e) {\n tx.rollback();\n log.error(\"DAOJuegos: \" + metodo + \": Error Exception: \" + e.getMessage());\n } finally {\n // Liberamos sesión\n HibernateUtil.closeSession();\n log.info(\"DAOJuegos: \" + metodo + \": Sesion liberada. Finished\");\n }\n\n return juego;\n }",
"public List<Vendedor> listarVendedor();",
"public Cuenta obtenerCuenta(String codigo_cuenta) {\n Cuenta cuenta = new Cuenta();\n try {\n PreparedStatement PrSt;\n ResultSet rs = null;\n String Query = \"SELECT * FROM Cuenta WHERE Codigo = ?\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cuenta);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n cuenta.setCodigo(rs.getString(\"Codigo\"));\n cuenta.setCreacion(rs.getDate(\"Creacion\"));\n cuenta.setCredito(rs.getDouble(\"Credito\"));\n cuenta.setCodigo_cliente(rs.getString(\"Codigo_Cliente\"));\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return cuenta;\n }",
"public Cliente buscarCliente(int codigo) {\n Cliente cliente =new Cliente();\n try{\n\t\tString seleccion = \"SELECT codigo, nit, email, pais, fecharegistro, razonsocial, \"\n + \"idioma, categoria FROM clientes where codigo=? \";\n\t\tPreparedStatement ps = con.prepareStatement(seleccion);\n ps.setInt(1, codigo);\n\t\tSavepoint sp1 = con.setSavepoint(\"SAVE_POINT_ONE\");\n\t\tResultSet rs = ps.executeQuery();\n\t\tcon.commit();\n\t\twhile(rs.next()){\n cliente.setCodigo(rs.getInt(\"codigo\"));\n cliente.setNit(rs.getString(\"nit\"));\n cliente.setEmail(rs.getString(\"email\"));\n cliente.setPais(rs.getString(\"pais\"));\n cliente.setFechaRegistro(rs.getDate(\"fecharegistro\"));\n cliente.setRazonSocial(rs.getString(\"razonsocial\"));\n cliente.setIdioma(rs.getString(\"idioma\"));\n cliente.setCategoria(rs.getString(\"categoria\")); \n\t\t} \n }catch(Exception e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return cliente;\n\t}",
"public void recuperarDatosMedidor(String codigo){\n\t\ttry{\n\t\t\tList<Medidor> listaMedidor = new ArrayList<Medidor>();\n\t\t\tlistaMedidor = medidorDao.getRecuperaMedidor(codigo);\n\t\t\tfor(int i = 0 ; i < listaMedidor.size() ; i ++) {\n\t\t\t\ttxtIdMedidor.setText(String.valueOf(listaMedidor.get(i).getIdMedidor()));\n\t\t\t\ttxtCodigo.setText(listaMedidor.get(i).getCodigo());\n\t\t\t\tcboEstadoMed.setValue(listaMedidor.get(i).getEstadoMedidor());\n\t\t\t\ttxtMarca.setText(listaMedidor.get(i).getMarca());\n\t\t\t\ttxtModelo.setText(listaMedidor.get(i).getModelo());\n\t\t\t\ttxtPrecio.setText(String.valueOf(listaMedidor.get(i).getPrecio()));\n\t\t\t\t\n\t\t\t\tmedidorSeleccionado = listaMedidor.get(i);\n\t\t\t}\n\t\t\tif (listaMedidor.size() == 0)\n\t\t\t\tmedidorSeleccionado = new Medidor();\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Computador getComputador(long codigo)throws Exception{\n\t\tString sql = \"select * from \" + TABELA + \" where codigo=?\";\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\t//setar parametro na query sql\n\t\tstmt.setLong(1, codigo);\n\n\t\tResultSet rs = stmt.executeQuery();\n\n\t\t//se não retornar resultados o objeto não existe no banco de dados\n\t\tif(!rs.first()){\n\t\t\tthrow new Exception(\"Produto com codigo \" +codigo+\" não encontrado no banco\");\n\t\t}\n\n\t\tComputador computador = new Computador();\n\t\tcomputador.setCodigo(rs.getLong(\"codigo\"));\n\t\tcomputador.setDescricao(rs.getString(\"descricao\"));\n\t\tcomputador.setPreco(rs.getFloat(\"preco\"));\n\n\t\treturn computador;\n\t}",
"private String findObj(Integer codigoObj) {\r\n\t\tString valorObj = null;\r\n\t\tif (codigoObj != null) {\r\n\t\t\tsinObjList.setCod(codigoObj);\r\n\t\t\tList<SinObj> lista = new ArrayList<SinObj>();\r\n\t\t\tlista = sinObjList.listaResultados();\r\n\t\t\tif (lista.size() > 0)\r\n\t\t\t\tvalorObj = lista.get(0).getObjNombre();\r\n\t\t}\r\n\t\treturn valorObj;\r\n\t}",
"Videogioco findVideogiocoById(int id);",
"private Filtro filtroEscludiRiga(int codice) {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Campo campo = null;\n\n try { // prova ad eseguire il codice\n campo = this.getModulo().getCampoChiave();\n filtro = FiltroFactory.crea(campo, Operatore.DIVERSO, codice);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }",
"SdkMobileVcode selectByPrimaryKey(Integer vid);",
"public GrupoProducto colsultarPorCodigo(String codigo){\r\n for (int i = 0; i < listaGrupoProductos.size() ; i++) {\r\n if (!listaGrupoProductos.get(i).isEliminado()) {\r\n if (codigo.equals( listaGrupoProductos.get(i).getCodigo() ) ) {\r\n return listaGrupoProductos.get(i);\r\n }\r\n }\r\n }\r\n return null;\r\n }",
"public static Vendedor getVendedorById(int idVendedor) {\n\t\tSessionFactory sf = HibernateUtil.getSessionFactory();\n\t\tSession sesion = sf.openSession();\n\t\tsesion.beginTransaction();\n\n\t\tVendedor vendedor = null;\n\n\t\ttry {\n\t\t\tvendedor = (Vendedor) sesion.get(Vendedor.class, idVendedor);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\tsesion.close();\n\t\t}\n\n\t\treturn vendedor;\n\t}",
"public int getCodigoSelecionado() {\n return codigoSelecionado;\n }",
"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 }",
"private Optional<ItemVenda> buscarItemPorCerveja(Cerveja cerveja) {\r\n\t\t// retorna somente ItemVenda iguais ao passado no parametro \r\n\t\treturn itens.stream()\r\n\t\t\t\t.filter(i -> i.getCerveja().equals(cerveja))\r\n\t\t\t\t.findAny();\r\n\t}",
"String selectNumeroManifiestoAeat(final Long srvcId);",
"private String entraCodProd(boolean isIncluir) {\n String cod = \"\";\n boolean isCadastro = false;\n\n ArrayList<Produto> codProd = (obterTodosProdutos());\n\n // loop enquanto teclar vazio ou not fim\n while (cod.isEmpty() || true) {\n // janela de input do CPF\n cod = JOptionPane.showInputDialog(this, \"Cod do Produto\");\n if (cod == null) {\n return null;\n } else if (cod.isEmpty()) {\n // SE DER <ENTER> JOGA MENSAGEM DE ERRO e VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null, \"Por Favor, Digite Algo!\",\n \"Msg do Servidor\", JOptionPane.INFORMATION_MESSAGE);\n } else {\n\n for (Produto codProd1 : codProd) {\n if (cod.equals(codProd1.getCod())) {\n if (isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e\n // VOLTA AO LOOP.\n JOptionPane.showMessageDialog(null,\n \"Produto Ja Cadastrado!!!\",\n \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n isCadastro = true;\n break;\n } else {\n return cod;\n }\n }\n isCadastro = false;\n }\n\n if (!isIncluir) {\n // ENQUANTO NAO ENCONTRA JOGA MENSAGEM DE ERRO e VOLTA AO\n // LOOP.\n JOptionPane.showMessageDialog(null,\n \"Produto nao encontrado!!!\", \"Msg do Servidor\",\n JOptionPane.INFORMATION_MESSAGE);\n } else {\n if (!isCadastro) {\n return cod;\n }\n }\n }\n\n }\n return cod;\n }",
"public Cliente[] findWhereIdVendedorConsignaEquals(int idVendedorConsigna) throws ClienteDaoException;",
"DepAcctDO selectByPrimaryKey(String depCode);",
"public Conserto buscarCodigo(int codigo) throws SQLException{\r\n Conserto conserto = null;\r\n conecta = FabricaConexao.conexaoBanco();\r\n sql = \"select * from conserto join carro on carchassi = concarchassi join modelo on oficodigo = conoficodigo where concodigo = ? \";\r\n pstm = conecta.prepareStatement(sql);\r\n pstm.setInt(1, codigo);\r\n rs = pstm.executeQuery();\r\n \r\n if(rs.next()){\r\n conserto = new Conserto();\r\n conserto.setCodigo(rs.getInt(\"concodigo\"));\r\n conserto.setDataEntrada(rs.getDate(\"condataentrada\"));\r\n conserto.setDataSaida(rs.getDate(\"condatasaida\"));\r\n \r\n //instanciando o carro\r\n Carro carro = new Carro();\r\n carro.setChassi(rs.getString(\"carchassi\"));\r\n carro.setPlaca(rs.getString(\"carplaca\"));\r\n carro.setAno(rs.getInt(\"carano\"));\r\n carro.setCor(rs.getString(\"carcor\"));\r\n carro.setStatus(rs.getInt(\"carstatus\"));\r\n conserto.setCarro(carro);\r\n \r\n //instanciando a oficina\r\n Oficina oficina = new Oficina();\r\n oficina.setCodigo(rs.getInt(\"oficodigo\"));\r\n oficina.setNome(rs.getString(\"ofinome\"));\r\n conserto.setOficina(oficina);\r\n }\r\n FabricaConexao.fecharConexao();\r\n \r\n return conserto;\r\n }",
"List<Videogioco> retriveByNome(String nome);",
"public Info_laboral findByID(int cod){\n ConexionBD con = new ConexionBD();\n Connection c = con.conOracle();\n Info_laboral IL = new Info_laboral();\n try{\n CallableStatement cs = c.prepareCall(\"{? = call F_BUSNOMINFO(?)}\");\n cs.registerOutParameter(1, Types.VARCHAR);\n cs.setInt(2, cod);\n cs.execute();\n //IL.setId(cod);\n //IL.setJefe(cs.getString(1));\n System.out.println(cs.getString(1));\n con.CerrarCon();\n return IL;\n }catch(SQLException e){\n System.out.println(\"erorrrr findbyid \"+e);\n con.CerrarCon();\n return null;\n }\n \n }",
"Movimiento selectByPrimaryKey(Integer idMovCta);",
"private void cargarCodDocente() {\n ClsNegocioDocente negoDoc = new ClsNegocioDocente(); \n txtCodDocente.setText(negoDoc.ObtenerCodigo());\n try {\n negoDoc.conexion.close();\n } catch (SQLException ex) {\n Logger.getLogger(FrmCRUDDocente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"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}",
"ArticuloLeyMercadoDTO obtenerArticuloLeyMercado(Integer codigoCompania, String codigoArticulo) throws SICException;",
"ErpOaLicKey selectByPrimaryKey(String licFlow);",
"public Response getProduto_e_sua_receita(Integer codigo) {\n\t\tProduto resultado = ((ProdutoDao) getDao()).buscarProduto_e_sua_receita(codigo);\n\t\tif (resultado != null) {\n\t\t\t// pega os componentes da receita do produto retornado.\n\t\t\tList<ItemReceita> componentes = new ArrayList<>();\n\t\t\tfor (ItemReceita item : resultado.getReceita().getComponentes()) {\n\t\t\t\tcomponentes.add(new ItemReceita(item.getComponente(), item.getQtdUtilizada()));\n\t\t\t}\n\t\t\t// pega a receita do produto retornado.\n\t\t\tReceita receitaEmJava = new Receita(resultado.getReceita().getCodigo(),\n\t\t\t\t\tresultado.getReceita().getRendimento(), resultado.getReceita().getTempoPreparo(), componentes);\n\t\t\t// Instancia um novo produto com os dados do produto retornado do BD.\n\t\t\tProduto produtoEmJava = new Produto(resultado.getCodigo(), resultado.getDescricao(),\n\t\t\t\t\tresultado.getCategoria(), resultado.getSimbolo(), resultado.getPreco(), receitaEmJava);\n\t\t\t// converte o novo produto para uma string em JSON.\n\t\t\tString produtoEmJson = converterParaJSON(produtoEmJava);\n\t\t\t// retorna um response com o produto em JSON.\n\t\t\tsetResposta(mensagemSucesso(produtoEmJson));\n\t\t} else {\n\t\t\t// retorna um response informando que o Id informado não possui cadastro.\n\t\t\tsetResposta(mensagemNaoEncontrado());\n\t\t}\n\t\treturn getResposta();\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate EstadoDet buscarEstado(String estado) {\r\n\t\tString cad = \"select det.* from planificacion.estado_cab cab \"\r\n\t\t\t\t+ \"join planificacion.estado_det det \"\r\n\t\t\t\t+ \"on det.id_estado_cab = cab.id_estado_cab \"\r\n\t\t\t\t+ \"where lower(cab.descripcion)='concurso' \"\r\n\t\t\t\t+ \"and lower(det.descripcion)='\" + estado + \"'\";\r\n\t\tList<EstadoDet> lista = new ArrayList<EstadoDet>();\r\n\t\tlista = em.createNativeQuery(cad, EstadoDet.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0);\r\n\t\treturn null;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tprivate EstadoDet buscarEstado(String estado) {\r\n\t\tString cad = \"select det.* from planificacion.estado_cab cab \"\r\n\t\t\t\t+ \"join planificacion.estado_det det \"\r\n\t\t\t\t+ \"on det.id_estado_cab = cab.id_estado_cab \"\r\n\t\t\t\t+ \"where lower(cab.descripcion)='concurso' \"\r\n\t\t\t\t+ \"and lower(det.descripcion)='\" + estado + \"'\";\r\n\t\tList<EstadoDet> lista = new ArrayList<EstadoDet>();\r\n\t\tlista = em.createNativeQuery(cad, EstadoDet.class).getResultList();\r\n\t\tif (lista.size() > 0)\r\n\t\t\treturn lista.get(0);\r\n\t\treturn null;\r\n\t}",
"public Estado ReadEstado(int estadoID){\r\n SQLiteDatabase sqLiteDatabase = conn.getReadableDatabase();\r\n String query = \"select * from estados WHERE estadoID=?\";\r\n Cursor c= sqLiteDatabase.rawQuery(query, new String[]{String.valueOf(estadoID)});\r\n if (c.moveToFirst()) return new Estado(estadoID,c.getString(c.getColumnIndex(\"descripcion\")));\r\n return null;\r\n\r\n\r\n }",
"public HTMLSelectElement getElementCodigoEmpleado() { return this.$element_CodigoEmpleado; }",
"public Map<String,String> selectByCode(Context pActividad,int pId)\n {\n //tenemos que devolver un mapa con los valores resultantes del Select, solo sera una row\n Map<String,String> rst = new HashMap<String,String>();\n\n try\n {\n AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(pActividad, \"administracion\", null, 1);\n SQLiteDatabase db = admin.getWritableDatabase();\n\n //lanzamos una sentencia select --> el resultado de esta query vamos ha hacer que se guarde en una variable de tipo cursor\n //raw query es un metodo que hace eso precisamente, el resultado de un select a un cursor\n Cursor filas = db.rawQuery(\"Select descripcion, precio from Articulos where codigo = \" + pId, null);\n if (filas.moveToFirst())\n {\n rst.put(\"descripcion\", filas.getString(0));\n rst.put(\"precio\", filas.getString(1));\n }\n }\n catch (Exception e)\n {\n Toast.makeText(pActividad,\"Error al recuperar valores\",Toast.LENGTH_SHORT).show();\n }\n finally\n {\n return rst;\n }\n }",
"public ArrayList listarDetalleVenta(int codVenta){\n ArrayList<DetalleVentaConsulta> lista=new ArrayList<>();\n try {\n PreparedStatement pst=cn.prepareStatement(\"select dv.idVenta,dv.cantidad,p.nombreProducto,dv.precioUnidad from detalleVenta dv \\n\" +\n\"inner join producto p on p.idProducto=dv.nombreProducto\\n\" +\n\"where dv.idVenta=?\");\n pst.setInt(1, codVenta);\n ResultSet rs=pst.executeQuery();\n while (rs.next()) { \n lista.add(new DetalleVentaConsulta(rs.getInt(\"idVenta\"),rs.getInt(\"cantidad\"),rs.getDouble(\"precioUnidad\"),rs.getString(\"cancelado\"),rs.getString(\"nombreProducto\")));\n }rs.close();pst.close();\n } catch (Exception e) {\n System.out.println(\"listar Venta: \"+e.getMessage());\n }return lista;\n }",
"public Integer getExisteCliente(String codigoCliente);",
"public ArrayList<Cuenta> obtenerCuentasAsociadas(String codigo_cliente) {\n ArrayList<Cuenta> lista = new ArrayList<>();\n try {\n PreparedStatement PrSt;\n PreparedStatement PrSt2;\n ResultSet rs = null;\n ResultSet rs2 = null;\n String Query = \"SELECT * FROM Solicitud WHERE Codigo_ClienteS = ? AND Estado = 'Aceptada'\";\n PrSt = conexion.prepareStatement(Query);\n PrSt.setString(1, codigo_cliente);\n rs = PrSt.executeQuery();\n while (rs.next()) {\n Cuenta cuenta = obtenerCuenta(rs.getString(\"Codigo_Cuenta\"));\n lista.add(cuenta);\n }\n PrSt.close();\n rs.close();\n } catch (SQLException e) {\n System.out.println(e.toString());\n }\n return lista;\n }",
"@Override\n\tpublic Collection<VendedorWebVO> getListVendedor(GetVendedorParams params) {\n\t\ttry {\n\t\t\tVendedorModuleRemote service = getVendedorModuleService();\n\t\t\tCollection<VendedorDTO> listVendedores = service.getListVendedor(params);\n\t\t\tCollection<VendedorWebVO> vendedores = new ArrayList<VendedorWebVO>();\n\t\t\tfor (VendedorDTO vendedor : listVendedores) {\n\t\t\t\tVendedorWebVO vend = MarketPlaceAdapterService.vendedorDTO2VendedorWebVO(vendedor);\n\t\t\t\tvendedores.add(vend);\n\t\t\t}\n\n\t\t\treturn vendedores;\n\t\t} catch (Exception e) {\n\t\t\t//throw AcademiaExceptionHandler.handleException(AcademiaErrorLayerConstants.WEB_SERVER, null, null, e);\n\t\t}\n\t\treturn null;\n\t}",
"public void cargarEConcepto() {\n\tevidenciaConcepto = true;\n\tif (conceptoSeleccionado.getOrigen().equals(\n\t OrigenInformacionEnum.CONVENIOS.getValor())) {\n\t idEvidencia = convenioVigenteDTO.getId();\n\t nombreFichero = iesDTO.getCodigo() + \"_\"\n\t\t + convenioVigenteDTO.getId();\n\t}\n\n\ttry {\n\t listaEvidenciaConcepto = institutosServicio\n\t\t .obtenerEvidenciasDeIesPorIdConceptoEIdTabla(\n\t\t iesDTO.getId(), conceptoSeleccionado.getId(),\n\t\t idEvidencia, conceptoSeleccionado.getOrigen());\n\n\t} catch (ServicioException e) {\n\t LOG.log(Level.SEVERE, e.getMessage(), e);\n\t}\n }",
"public String getCodigoLivro() throws IOException {\r\n ArrayList<String> listLivros = livro.getListLivros();\r\n String codigo = null;\r\n for (int i = 0; i < listLivros.size(); i++) {\r\n if (listLivros.get(i).contains(jComboBoxLivros.getSelectedItem().toString())) {\r\n String[] temp = listLivros.get(i).split(\";\");\r\n codigo = temp[0];\r\n }\r\n }\r\n return codigo;\r\n }",
"public Cliente buscarClientePorDocumento(String id) throws ExceptionService {\n Optional<Cliente> verificar = repositorio.findById(Long.parseLong(id));\n if (verificar.isPresent()) { //verificamos que traiga un resultado\n Cliente cliente = verificar.get(); //con el get obtenemos del optional el objeto en este caso de tipo cliente\n return cliente;\n } else {\n throw new ExceptionService(\"no se encontro el cliente con el documento indicado\");\n }\n }",
"public abstract java.lang.String getCod_dpto();",
"public void carrega_cidade() throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUF.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n \n ResultSet rs = preparador.executeQuery();\n cbCidade.removeAllItems();\n //passando valores do banco para o objeto result; \n try{ \n \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidade.addItem(list); \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n Conexao.desConectar();\n \n }",
"public String getDenumireCaroserie(int id) {\n c = db.rawQuery(\"select denumire from caroserii where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"public void selecionarCliente() {\n int cod = tabCliente.getSelectionModel().getSelectedItem().getCodigo();\n cli = cli.buscar(cod);\n\n cxCPF.setText(cli.getCpf());\n cxNome.setText(cli.getNome());\n cxRua.setText(cli.getRua());\n cxNumero.setText(Integer.toString(cli.getNumero()));\n cxBairro.setText(cli.getBairro());\n cxComplemento.setText(cli.getComplemento());\n cxTelefone1.setText(cli.getTelefone1());\n cxTelefone2.setText(cli.getTelefone2());\n cxEmail.setText(cli.getEmail());\n btnSalvar.setText(\"Novo\");\n bloquear(false);\n }",
"Reserva Obtener();",
"List<SdkMobileVcode> selectByExample(SdkMobileVcodeExample example);",
"public Esame trovaEsame (String codice){\r\n\t\tint pos = esami.indexOf(new Esame (codice, null, null));\r\n\t\tif (pos==-1)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn esami.get(pos);\r\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 Jugador getJugadorIndice(String ID){\n\n Log.d(\"DATABASE\",\"Se consulta por un jugador\");\n\n //elemento de Retorno\n Jugador miJugador = new Jugador();\n\n //recupera DB\n SQLiteDatabase db = getReadableDatabase();\n\n //condiciones\n String columns[] = new String[]{JugadorEntry._ID, JugadorEntry.IDJUGADOR, JugadorEntry.NOMBRE};\n String selection = JugadorEntry.IDJUGADOR + \" LIKE ?\"; // WHERE id LIKE ?\n String selectionArgs[] = new String[]{ID};\n\n //ejecuta consulta\n Cursor cursor = db.query(\n JugadorEntry.TABLE_NAME, // Nombre de la tabla\n columns, // Lista de Columnas a consultar\n selection, // Columnas para la cláusula WHERE\n selectionArgs, // Valores a comparar con las columnas del WHERE\n null, // Agrupar con GROUP BY\n null, // Condición HAVING para GROUP BY\n null // Cláusula ORDER BY\n );\n\n //cursor a Ronda --- Debiese ser 1\n cursor.moveToFirst();\n miJugador.setIDJugador(cursor.getString(cursor.getColumnIndex(JugadorEntry.IDJUGADOR)));\n miJugador.setNombreJugador(cursor.getString(cursor.getColumnIndex(JugadorEntry.NOMBRE)));\n miJugador.set_ID(cursor.getString(cursor.getColumnIndex(JugadorEntry._ID)));\n cursor.close();\n\n\n return miJugador;\n }",
"public static Articulo consultarArticulo(String codigoArticulo){\n\t\tResultSet resultadoConsulta;\n\t\tArticulo articuloEncontrado=null;\n\t\tString query = \n\t\t\t\t\"SELECT \"\n\t\t\t\t+ \"articulo.nombre_articulo AS nombre,\"\n\t\t\t\t+\"articulo.categoria AS categoria,\"\n\t\t\t\t+ \"articulo.codigo as codigo, \"\n\t\t\t\t+ \"articulo.descripcion as descripcion, \"\n\t\t\t\t+ \"articulo.id as idArticulo, \"\n\t\t\t\t+ \"articulo.imagen as localizacionImagen \"\n\t\t\t\t+ \"FROM articulo \"\n\t\t\t\t+ \"WHERE articulo.codigo = ?\";\n\t\tPreparedStatement comando;\n\t\ttry {\n\t\t\tcomando = conexion.prepareStatement(query);\n\t\t\tcomando.setString(1, codigoArticulo);\n\t\t\tresultadoConsulta = comando.executeQuery();\n\t\t\twhile( resultadoConsulta.next() ){\n\t\t\t\t\n\t\t\t\tarticuloEncontrado = new Articulo(resultadoConsulta.getString(\"nombre\"),\n\t\t\t\t\t\tresultadoConsulta.getString(\"categoria\")\n\t\t\t\t\t\t, resultadoConsulta.getString(\"codigo\"),\n\t\t\t\t\t\tresultadoConsulta.getString(\"descripcion\"),resultadoConsulta.getInt(\"idArticulo\"),\n\t\t\t\t\t\tresultadoConsulta.getString(\"localizacionImagen\")\n\t\t\t\t\t\t);\n\t\t\t\t\n\t\t\t}\n\t\t\treturn articuloEncontrado;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\t\treturn null;\n\t}",
"public String consultaEqCiudad() {\n\t\tString res = \"\";\n\t\tString query = \"SELECT E.NOMBRE, C.NOMBRE FROM EQUIPOS E, CIUDADES C WHERE E.COD_CIUDAD == C.CODIGO\";\n\n\t\tConnection con = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet rslt = null;\n\n\t\ttry {\n\t\t\tcon = acceso.getConnection();\n\t\t\tpstmt = con.prepareStatement(query);\n\t\t\trslt = pstmt.executeQuery();\n\n\t\t\twhile (rslt.next()) {\n\t\t\t\tres = res + rslt.getString(1) + \" - \" + rslt.getString(2) + \"\\n\";\n\t\t\t}\n\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (rslt != null)\n\t\t\t\t\trslt.close();\n\t\t\t\tif (pstmt != null)\n\t\t\t\t\tpstmt.close();\n\t\t\t\tif (con != null)\n\t\t\t\t\tcon.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}",
"Prueba selectByPrimaryKey(Integer id);",
"@Override\r\n\tpublic Importancia findOne(Integer codigo) throws DataAccessException {\n\t\treturn null;\r\n\t}",
"public abstract java.lang.String getCod_tecnico();",
"public java.sql.ResultSet DatosdelaCita(String CodHorMed){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"SELECT * FROM pyp_citaspacientes WHERE CodHorMedico_fk=\"+CodHorMed+\"\");\r\n \tSystem.out.println(\"SELECT * FROM pyp_citaspacientes WHERE CodHorMedico_fk=\"+CodHorMed+\"\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>DatosdelaCita \"+ex);\r\n }\t\r\n return rs;\r\n }",
"public Candidato obterCandidato(Eleicao eleicao, int id) {\r\n\t\tCandidato candidato = null;\r\n\t\tcandidato = (Candidato) em.createNamedQuery(\"buscaCandidatoPorId\")\r\n\t\t\t\t.setParameter(1, eleicao).setParameter(2, id).getSingleResult();\r\n\t\treturn candidato;\r\n\t}",
"public String getCodigoExemplar(int select) throws IOException {\r\n ArrayList<String> listExemplar = exemplar.getListExemplar();\r\n ArrayList<String> templist = new ArrayList<String>();\r\n\r\n for (int i = 0; i < listExemplar.size(); i++) {\r\n if (listExemplar.get(i).contains(getCodigoLivro())) {\r\n templist.add(listExemplar.get(i));\r\n }\r\n }\r\n String[] temp = templist.get(select).split(\";\");\r\n return temp[1];\r\n }",
"public So_cdVO getById(String so_cd);",
"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 }",
"CTipoPersona selectByPrimaryKey(String idTipoPersona) throws SQLException;",
"@Override\r\n public VehiculoModel consultarVehiculo(String placa) {\n Connection conn = null;\r\n VehiculoModel vehiculo = null; //defino un objeto de vehiculo como nulo\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"Select * from vehiculo where vehPlaca=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql); //se prepara para la query\r\n statement.setString(1, placa);\r\n ResultSet result = statement.executeQuery(sql);\r\n while(result.next()){\r\n vehiculo = new VehiculoModel(result.getString(1), result.getString(2), result.getString(3), \r\n result.getInt(4), result.getInt(5), result.getString(6), result.getInt(7));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"Codigo : \" + ex.getErrorCode() + \"\\nError: \" + ex.getMessage());\r\n }\r\n \r\n return vehiculo;\r\n }",
"public static Persona buscaSolicitante(String codigo){\n\t\tPersona solicitante=null;\n\t\tif((solicitante = buscaAlumno(codigo))!=null){\n\t\t\tSystem.out.println(\"Alumno \"+solicitante.getNombreCompleto());\n\t\t\treturn solicitante;\n\t\t}else if((solicitante=buscaProfesor(codigo))!=null){\n\t\t\tSystem.out.println(\"Profesor \"+solicitante.getNombreCompleto());\n\t\t\treturn solicitante;\n\t\t}\n\t\treturn solicitante;\n\t}",
"@Override\r\n public Cliente buscarCliente(String cedula) throws Exception {\r\n return entity.find(Cliente.class, cedula);//busca el cliente\r\n }",
"public Usuario findUserByCodigo(Integer codigo) {\n Usuario user = null;\n try {\n// user = (Usuario) this.em.createNamedQuery(\"Usuario.findByCodigo\")\n// .setParameter(\"codigo\", codigo)\n// .getSingleResult();\n\n if (this.em.isOpen()) {\n Query query = this.em.createNamedQuery(\"Usuario.findByCodigo\")\n .setParameter(\"codigo\", codigo);\n\n user = (Usuario) query.getSingleResult();\n }\n } catch (Exception e) {\n// e.printStackTrace();\n }\n\n return user;\n }",
"public ComTicketsDependencia findByCodigo(Long idp2) {\n\t\t\r\n\t\treturn (ComTicketsDependencia)em.createQuery(\"Select c from ComTicketsDependencia c where c.id=\"+idp2+\"\").getSingleResult();\r\n\t}",
"Country selectByPrimaryKey(String code);",
"public ProveedorEntity getProveedor(Long id_proveedor){\n ProveedorEntity proveedor = proveedorPersistence.find(id_proveedor);\n if(proveedor == null){\n throw new IllegalArgumentException(\"El proveedor solicitado no existe\");\n }\n return proveedor;\n }",
"public java.sql.ResultSet consultaporespecialidad(String CodigoEspecialidad){\r\n java.sql.ResultSet rs=null;\r\n Statement st = null;\r\n try{\r\n \tConexion con=new Conexion();\r\n \tst = con.conn.createStatement();\r\n \trs=st.executeQuery(\"select phm.codigo,phm.horas,phm.fechas,phm.NombrePaciente,pes.nombre_especialidad,pmd.nombre,pmd.apellidos,phm.estado,pes.codigo,pmd.codigo from pyp_horariomedico phm,pyp_medico pmd,pyp_especialidad pes where pes.codigo=\"+CodigoEspecialidad+\" and phm.codMedico_fk=pmd.codigo and pmd.codEspe_fk=pes.codigo and phm.fechas >= CURDATE() ORDER BY phm.fechas,phm.horas\");\r\n }\r\n catch(Exception ex){\r\n \tSystem.out.println(\"Error en PYP_MetodoConsultasAsignacion>>consultaporespecialidad \"+ex);\r\n }\t\r\n return rs;\r\n }",
"public String getCopii(int id) {\n String denumiri=new String();\n String selectQuery = \"SELECT denumire FROM copii WHERE id=\"+id;\n Cursor cursor = db.rawQuery(selectQuery, new String[]{});\n if (cursor.moveToFirst()) {\n do {\n denumiri = cursor.getString(0);\n } while (cursor.moveToNext());\n }\n return denumiri;\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}",
"public Receta read(Long codigo);",
"SysCode selectByPrimaryKey(String id);",
"Depart selectByPrimaryKey(String id);",
"public ItemMedicamentoEntity listaPorCodigo(Integer codigo){\r\n\r\n\t\treturn this.entityManager.find(ItemMedicamentoEntity.class, codigo);\r\n\t}",
"public String getDenumireExperienta(String id) {\n c = db.rawQuery(\"select denumire from experienta where id='\" + id + \"'\", new String[]{});\n StringBuffer buffer = new StringBuffer();\n while (c.moveToNext()) {\n String denumire = c.getString(0);\n buffer.append(\"\" + denumire);\n }\n return buffer.toString();\n }",
"@Override\n\tpublic CorsoDiLaurea findByPrimaryKey(Long codice) {\n\t\treturn null;\n\t}",
"public void nom_ven(){\n \n String SQL_select = \"SELECT Nombres FROM `vendedor` WHERE User = '\"+login.a+\"'\";\n String lolo = \"\";\n try {\n ps = con.getConnection().prepareStatement(SQL_select);\n RS = ps.executeQuery();\n while (RS.next()) { \n lolo = RS.getString(1);\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"no encontro el usuario\");\n }\n \n txtVendedor.setText(lolo);\n }",
"String getCodiceFiscale();",
"Especialidad getEspecialidadPorId(Integer especialidadId);",
"public void carregaCidadeSelecionada(String nome) throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list);\n \n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbCidadeEditar.setSelectedItem(nome);\n \n \n \n \n }",
"List<ErpOaLicKey> selectByExample(ErpOaLicKeyExample example);",
"public Vehiculo buscarVehiculo(String patente) {\n return vehiculos.get(patente);\n }",
"public Cliente[] findWherePermisoVentaCreditoEquals(int permisoVentaCredito) throws ClienteDaoException;",
"MWeixinCodeDTO selectByPrimaryKey(String code);",
"CrmDept selectByPrimaryKey(String deptCode);",
"public static Profesor buscaProfesor(String codigo){\n\t\tProfesor profesor = null;\n\t\tResultSet resultadoConsulta;\n\t\tPreparedStatement comando;\n\t\tString query = \"SELECT \"\n\t\t\t\t+ \"id,\"\n\t\t\t\t+ \"nombre,\"\n\t\t\t\t+ \"apellido_paterno,\"\n\t\t\t\t+ \"apellido_materno,\"\n\t\t\t\t+ \"codigo \"\n\t\t\t\t+ \"FROM \"\n\t\t\t\t+ \"profesor \"\n\t\t\t\t+ \"WHERE \"\n\t\t\t\t+ \"codigo = ?\";\n\t\ttry {\n\t\t\tcomando = conexion.prepareStatement(query);\n\t\t\tcomando.setString(1,codigo);\n\t\t\tresultadoConsulta = comando.executeQuery();\n\t\t\t\n\t\t\twhile(resultadoConsulta.next()){\n\t\t\t\tprofesor= new Profesor(resultadoConsulta.getString(\"nombre\"),\n\t\t\t\t\t\tresultadoConsulta.getString(\"apellido_paterno\"),\n\t\t\t\t\t\tresultadoConsulta.getString(\"apellido_materno\"),\n\t\t\t\t\t\tresultadoConsulta.getString(\"codigo\"),\n\t\t\t\t\t\tresultadoConsulta.getInt(\"id\"));\n\t\t\t}\n\t\t\treturn profesor;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn profesor;\n\t}",
"Kaiwa selectByPrimaryKey(String maht);",
"public List<Dishes> selectChuan(Dishes book){\n StringBuilder sql=new StringBuilder(\"select * from REAPER.\\\"Dish\\\" where \\\"cuisines\\\"='´¨²Ë' \");\n //sqlÓï¾ä\n System.out.println(sql); \n List<Object> list=new ArrayList<Object>();\n if(book!=null){\n \tSystem.out.println(sql); \n if(book.getDishid()!=null){\n sql.append(\" and dishid=? \");\n System.out.println(book.getDishid()); \n list.add(book.getDishid());\n }\n }\n return dao.select(sql.toString(), list.toArray());\n }"
] | [
"0.6219948",
"0.61179525",
"0.5986566",
"0.59772485",
"0.5930886",
"0.5877164",
"0.5849775",
"0.58485836",
"0.58393615",
"0.58170074",
"0.5809072",
"0.577457",
"0.574708",
"0.57447046",
"0.5736797",
"0.57307625",
"0.5715089",
"0.5711433",
"0.5710196",
"0.5709082",
"0.56947356",
"0.5692037",
"0.56883943",
"0.5680642",
"0.56661654",
"0.5660868",
"0.56574315",
"0.5648187",
"0.5647081",
"0.55976045",
"0.5595848",
"0.5592897",
"0.55870426",
"0.5584365",
"0.5562219",
"0.5557185",
"0.55230397",
"0.5514058",
"0.5509129",
"0.55077064",
"0.5503701",
"0.5503701",
"0.5472775",
"0.54569775",
"0.5453772",
"0.545303",
"0.5443864",
"0.543766",
"0.54302204",
"0.5429736",
"0.5429718",
"0.5426575",
"0.5422505",
"0.5416681",
"0.5416321",
"0.54131126",
"0.54084724",
"0.54017943",
"0.53958225",
"0.53941196",
"0.538977",
"0.5385516",
"0.5383275",
"0.5383246",
"0.53756934",
"0.5372031",
"0.53688776",
"0.53618485",
"0.53609973",
"0.5348509",
"0.53483945",
"0.534104",
"0.5339563",
"0.5337461",
"0.53312",
"0.53278065",
"0.5321416",
"0.53122973",
"0.5300129",
"0.52993864",
"0.52916807",
"0.5287049",
"0.5278209",
"0.5272556",
"0.52681994",
"0.52657837",
"0.52582675",
"0.52567774",
"0.5256415",
"0.52563304",
"0.52562463",
"0.52519923",
"0.52501184",
"0.5245435",
"0.5244028",
"0.5237487",
"0.5235219",
"0.52347815",
"0.5231428",
"0.52088666"
] | 0.6939139 | 0 |
Construct an ADALINE trainer. | public TrainAdaline(final BasicNetwork network,
final NeuralDataSet training, final double learningRate) {
if (network.getStructure().getLayers().size() > 2) {
throw new NeuralNetworkError(
"An ADALINE network only has two layers.");
}
this.network = network;
final Layer input = network.getLayer(BasicNetwork.TAG_INPUT);
this.synapse = input.getNext().get(0);
this.training = training;
this.learningRate = learningRate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected Trainer(String tName) {\n this(tName, new ArrayList<>());\n }",
"public void createTrainer(Trainer trainer) {\n\t\ttrainerService.createTrainer(trainer);\n\t}",
"public Trainer()\n\t{\n\t\t//tba = new DualHashBidiMap<>();\n\t\t//fba = new DualHashBidiMap<>();\n\t\t//cba = new DualHashBidiMap<>();\n\t}",
"public LightningEnergy(ITrainer trainer){\n super(\"Lightning\", trainer);\n }",
"protected Trainer(String tName, ArrayList<Pokemon> pTeam) {\n name = tName;\n team = pTeam;\n }",
"public Trainer(double[][] data, double[] attribute, int hiddenLayerNodeCount, int outputLayerNodeCount){\r\n this.data = data;\r\n this.attribute = attribute;\r\n hiddenLayer = new Node[hiddenLayerNodeCount];\r\n outputLayer = new Node[outputLayerNodeCount];\r\n activation = new double[hiddenLayerNodeCount];\r\n desireHiddenLayerActivation = new double[hiddenLayerNodeCount];\r\n for (int i = 0; i < hiddenLayerNodeCount; i++) {\r\n hiddenLayer[i] = new Node(0.5, data[0].length - 1);\r\n }\r\n for (int i = 0; i < outputLayerNodeCount; i++) {\r\n outputLayer[i] = new Node(0.5, activation.length);\r\n }\r\n }",
"public QLearnAgent() {\n\t\tthis(name);\t\n\t}",
"public Trainer(String PlayerName){\t\t//initialize instance variables\n\t\tthis.playerName = PlayerName;\n\t\tnumberOfSteps = 0;\n\t\tpokemonCaught= 0;\n\t\tcaughtPokemon = new ArrayList<Pokemon>();\n\t\titemList = new ArrayList<Item>();\n\t\tusingItem =null;\n\t\tpokeballsRemaining = START_NUM_POKEBALLS;\n\t\tdir = Direction.NORTH;\n\t}",
"public static TrainEA constructNEATTrainer(NEATPopulation population,\n CalculateScore calculateScore) {\n final TrainEA result = new TrainEA(population, calculateScore);\n\n // Speciation\n result.setSpeciation(new NEATMSpeciation());\n\n // Selection\n result.setSelection(new TruncationSelection(result, 0.3));\n\n // Create compound operator for weight mutation\n CompoundOperator weightMutation = new CompoundOperator();\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(1), new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(2), new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(3), new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectProportion(0.004),\n new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(1), new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(2), new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(3), new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectProportion(0.02),\n new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.03,\n new NEATMutateWeights(new SelectFixed(1), new MutateResetLinkWeight()));\n weightMutation.getComponents().add(0.03,\n new NEATMutateWeights(new SelectFixed(2), new MutateResetLinkWeight()));\n weightMutation.getComponents().add(0.03,\n new NEATMutateWeights(new SelectFixed(3), new MutateResetLinkWeight()));\n weightMutation.getComponents().add(0.01,\n new NEATMutateWeights(new SelectProportion(0.02), new MutateResetLinkWeight()));\n weightMutation.getComponents().finalizeStructure();\n\n // Champ operator limits mutation operator on best genome (seems unused for now)\n result.setChampMutation(weightMutation);\n\n // Add all the operators, probability should sum to 1\n result.addOperation(0.32, new NEATMCrossover());\n result.addOperation(0.375, weightMutation);\n result.addOperation(0.05, new NEATMMutateAddNode());\n result.addOperation(0.05, new NEATMutateAddLink());\n result.addOperation(0.005, new NEATMMutateRemoveLink());\n\n // Add the sensor position mutators\n CompoundOperator positionMutation = new CompoundOperator();\n OperationList positionMutationComponents = positionMutation.getComponents();\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(1), new MutatePerturbSensorParameter(5.0f, BEARING)));\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(2), new MutatePerturbSensorParameter(5.0f, BEARING)));\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(1), new MutatePerturbSensorParameter(5.0f, ORIENTATION)));\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(2), new MutatePerturbSensorParameter(5.0f, ORIENTATION)));\n positionMutationComponents.finalizeStructure();\n\n result.addOperation(0.1, positionMutation);\n\n // Add the sensor field mutators\n CompoundOperator fieldMutation = new CompoundOperator();\n OperationList fieldMutationComponents = fieldMutation.getComponents();\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(ULTRASONIC), new MutatePerturbSensorParameter(5.0f, RANGE)));\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(PROXIMITY), new MutatePerturbSensorParameter(5.0f, RANGE)));\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(ULTRASONIC),\n new MutatePerturbSensorParameter(5.0f, FIELD_OF_VIEW)));\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(PROXIMITY),\n new MutatePerturbSensorParameter(5.0f, FIELD_OF_VIEW)));\n fieldMutationComponents.finalizeStructure();\n\n result.addOperation(0.05, fieldMutation);\n\n // Add sensor mutation\n double connectionDensity = 0.1;\n CompoundOperator addSensorMutation = new CompoundOperator();\n OperationList addSensorComponents = addSensorMutation.getComponents();\n addSensorComponents.add(0.5, new NEATMMutateAddSensor(SensorType.PROXIMITY,\n connectionDensity, new MutateResetLinkWeight()));\n addSensorComponents.add(0.5, new NEATMMutateAddSensor(SensorType.ULTRASONIC,\n connectionDensity, new MutatePerturbLinkWeight(0.2)));\n addSensorComponents.finalizeStructure();\n\n result.addOperation(0.05, addSensorMutation);\n\n\n result.getOperators().finalizeStructure();\n\n result.setCODEC(new NEATMCODEC());\n\n return result;\n }",
"public NEATTranscriberBain() {\n\t}",
"public Aanbieder() {\r\n\t\t}",
"@Override\n\tpublic ATN createATN() {\n\t\tSet<String> modes = ((LexerGrammar) g).modes.keySet();\n\t\tfor (String modeName : modes) {\n\t\t\t// create s0, start state; implied Tokens rule node\n\t\t\tTokensStartState startState =\n\t\t\t\tnewState(TokensStartState.class, null);\n\t\t\tatn.modeNameToStartState.put(modeName, startState);\n\t\t\tatn.modeToStartState.add(startState);\n\t\t\tatn.defineDecisionState(startState);\n\t\t}\n\n\t\t// INIT ACTION, RULE->TOKEN_TYPE MAP\n\t\tatn.ruleToTokenType = new int[g.rules.size()];\n\t\tfor (Rule r : g.rules.values()) {\n\t\t\tatn.ruleToTokenType[r.index] = g.getTokenType(r.name);\n\t\t}\n\n\t\t// CREATE ATN FOR EACH RULE\n\t\t_createATN(g.rules.values());\n\n\t\tatn.lexerActions = new LexerAction[indexToActionMap.size()];\n\t\tfor (Map.Entry<Integer, LexerAction> entry : indexToActionMap.entrySet()) {\n\t\t\tatn.lexerActions[entry.getKey()] = entry.getValue();\n\t\t}\n\n\t\t// LINK MODE START STATE TO EACH TOKEN RULE\n\t\tfor (String modeName : modes) {\n\t\t\tList<Rule> rules = ((LexerGrammar)g).modes.get(modeName);\n\t\t\tTokensStartState startState = atn.modeNameToStartState.get(modeName);\n\t\t\tfor (Rule r : rules) {\n\t\t\t\tif ( !r.isFragment() ) {\n\t\t\t\t\tRuleStartState s = atn.ruleToStartState[r.index];\n\t\t\t\t\tepsilon(startState, s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tATNOptimizer.optimize(g, atn);\n\t\tcheckEpsilonClosure();\n\t\treturn atn;\n\t}",
"public MyNLP()\n\t{\n\t\t//create StanfordNLP\n\t\tsnlp = new StanfordNLP();\n\t\t//create Recognizer\n\t\trec = new MyRecognizer();\n\t\t//build recognizers\n\t\trec.build();\n\t\t//create SentimentalAnalysis\n\t\tsa = new SentimentalAnalysis();\n\t}",
"public void create(Alien a1) {\n\t\t\r\n\t\taliens.add(a1);\r\n\t}",
"public AI(Trie trie) {\n this.bot = new Player();\n this.trie = trie;\n }",
"public static void main(String[] args) {\n\t\tTraining publictraining=new PublicTraining(\"Java\",5000, 50);\r\n\t\tSystem.out.println(\"Cost of Public training with Id \"+Training.getId()+\" is: \"+publictraining.getOrderValue());\r\n\t\t//CONSTRUCTOR HAVING AGUMENTS AS SUBJECT,FEES,DAYS\r\n\t\tTraining corporatetraining=new PublicTraining(\"BigDAta\",35000, 4);\r\n\t\tSystem.out.println(\"Cost of Corporate training with Id \"+Training.getId()+\" is: \"+corporatetraining.getOrderValue());\r\n\t}",
"public static ArrayList<Trainer> addTrainers() {\n System.out.println(\"\\nAdd a trainer!\");\n do {\n listOfTrainers.add(createTrainer());\n System.out.print(\"\\nWould you like to add a new trainer?(yes or no): \");\n boolean yesOrNo = yesOrNoValidation();\n if (yesOrNo) {\n } else if (!yesOrNo) {\n break;\n }\n } while (true);\n\n return listOfTrainers;\n }",
"public CitronellaAnt(){\n\t\tsuper(\"Citronella Ant\", AntCost.CITRONELLA_ANT);\n\t\tsuper.setLife(20);\n\t}",
"public Almacen(){}",
"public void train ()\t{\t}",
"public void runEvent(Trainer t){\n\t\tt.addToken(token);\r\n\t}",
"private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }",
"public Classroom(int id, String trainer, Set<Trainee> trainees) {\n\t\tsuper();\n\t\tthis.id = id;\n\t\tthis.trainer = trainer;\n//\t\tthis.trainees = trainees;\n\t}",
"public NgramAnalyser(String inp) \n {\n this(1,inp);\n }",
"TargetChain createTargetChain();",
"public static void main(String[] args) {\n\n TurkishTourist client=new TurkishTourist();\n\n BritishGuide adaptee1=new BritishGuide();\n\n BritishTranslator adapter1=new BritishTranslator(adaptee1);\n\n client.listenTranslator(adapter1);\n\n\n System.out.println();\n\n /**\n * Factory design pattern part\n */\n Organizer britishOrg=new BritishOrganizer();\n Organizer greekOrg=new GreekOrganizer();\n\n System.out.println(((BritishOrganizer) britishOrg).getRace()+\" organizator called translator for business\");\n Translator translator1=britishOrg.callTranslator(TranslatorLevel.EXPERT);\n\n\n System.out.println(((GreekOrganizer) greekOrg).getRace()+\" organizator called translator for business\");\n translator1=greekOrg.callTranslator(TranslatorLevel.JUNIOR);\n\n\n\n\n\n\n\n }",
"private TrainingPhrase(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Triplet(Builder builder) {\n super(builder);\n }",
"public void makeTea() {\n\t\tboil();\n\t\taddSugar();\n\t\taddTea();\n\t\tserve();\n\t}",
"public Trader(String traderName, Planet traderOrigin) {\n name = traderName;\n origin = traderOrigin;\n welcomeText = \"What're ya buy'in?\";\n }",
"Astro leafTwine(Twine data, SourceSpan optSpan);",
"@Override\n public void initialize() {\n if(prefix == null)\n prefix = getToolkit().getArguments().referenceFile.getAbsolutePath();\n BWTFiles bwtFiles = new BWTFiles(prefix);\n BWAConfiguration configuration = new BWAConfiguration();\n aligner = new BWACAligner(bwtFiles,configuration);\n }",
"public Train createTrain(int number, int capacity, int velocity){\n Train train = new Train();\n train.setNumber(number);\n train.setCapacity(capacity);\n train.setVelocity(velocity);\n return train;\n }",
"public Telefone() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tCentralTrafficRules AT = new AustralianTraffic();\n\t\tAustralianTraffic ATT = new AustralianTraffic();\n\t\tAT.green();\n\t\tATT.black();\n\t\tATT.holdup();\n\t\t\n\n\t}",
"public static LabelToNode createIncremental()\n { return new LabelToNode(new SingleScopePolicy(), nodeAllocatorDeterministic()); }",
"protected LearningAbstractAgent(){}",
"public Telefone() {\n\t}",
"public LALParser() {\n logins = new ArrayList<>();\n }",
"public _cls_script_13( AutomatonInstance ta,UserAccount _ua,UserInfo _ui) {\nparent = _cls_script_12._get_cls_script_12_inst( _ua,_ui);\nthis.ta = ta;\n}",
"public Trening(int trid, Trener trener, Polaznik polaznik, VrstaVezbe vv, Grad grad, Clanarina clanarina, Sala sala) {\n this.trid = trid;\n this.trener = trener;\n this.polaznik = polaznik;\n this.vv = vv;\n this.grad = grad;\n this.clanarina = clanarina;\n this.sala = sala;\n }",
"public EnsembleLettre() {\n\t\t\n\t}",
"public PredictorListener buildPredictor();",
"public WekaLogitLearner() { super(new Logistic2()); }",
"private void init() {\n initGate(); // 1. initialize Gate library\n loadAnnie(); // 2. load Annie plugin\n addPR(); // 3. initialise ANNIE\n setCorpus(); // 4. set corpus and extract with files.\n execute(); // 5. run the PR through the corpus in the ANNIE\n Out.prln(\"annotation completed ....\");\n MyWriter.write(corpus, outCorpusFile);\n Out.prln(\"*** ENTITY ANNOTATION COMPLETED *** \");\n }",
"Analyzer() {\n\t\tthis(\"\");\n\t}",
"public Agent(int AID) {\n this.AID = AID;\n this.leaderAID = AID;\n\n conversions = 0;\n metFollowers = 0;\n\n isLeader = false;\n electionComplete = false;\n \n\t this.color = blueish;\n\t size = new Dimension(25, 25);\n }",
"public Trainer getTrainer() {\n\t\treturn theTrainer;\n\t}",
"private MakeACaptain() {\n }",
"public static void main(String[] args) {\n\t\tLogicTrainPassenger tp = new LogicTrainPassenger();\n\t\t//tp.insert1();\n\t\ttp.select1();\n\t}",
"public Awale(Awale awale) {\r\n\tthis.listeners = new ArrayList<AwaleListener>();\r\n\tthis.currentSide = awale.currentSide;\r\n\tthis.size = awale.size;\r\n\tthis.territory = new short[2][size];\r\n\tSystem.arraycopy(awale.territory[0], 0, this.territory[0], 0,\r\n\t awale.territory[0].length);\r\n\tSystem.arraycopy(awale.territory[1], 0, this.territory[1], 0,\r\n\t awale.territory[1].length);\r\n\tthis.simulateTerritory = new short[2][size];\r\n\tSystem\r\n\t .arraycopy(awale.simulateTerritory[0], 0,\r\n\t this.simulateTerritory[0], 0,\r\n\t awale.simulateTerritory[0].length);\r\n\tSystem\r\n\t .arraycopy(awale.simulateTerritory[1], 0,\r\n\t this.simulateTerritory[1], 0,\r\n\t awale.simulateTerritory[1].length);\r\n\tthis.points = new short[2];\r\n\tSystem.arraycopy(awale.points, 0, this.points, 0, this.points.length);\r\n\r\n }",
"public ClientNaiveAgent() {\n // the default ip is the localhost\n ar = new ClientActionRobotJava(\"127.0.0.1\");\n tp = new TrajectoryPlanner();\n randomGenerator = new Random();\n }",
"public Train(){\n}",
"public LFSR(String seed, int tap) {\n // PUT YOUR CODE HERE\n }",
"public static void main(String[] args) throws CantAdd, CoronaWarn {\n\t\tTravelAgency TravelAgency = new TravelAgency();\r\n\r\n\t\tPlane p=new Plane(200,2,\"first plane max travelers\");\r\n\t\tPlane p1=new Plane(100,1,\"second plan min traelers\");\r\n\r\n\t\tTrip i=new Trip(p,Country.Australia,Country.Canada);\r\n\t\tTrip io=new Trip(p1,Country.Australia,Country.Canada);\r\n\t\t \r\n\t\tDate date=new Date(1,2,5);\r\n\t\tPassport passprt1=new Passport(\"anton\",44,date);\r\n\t\tPassport passprt2=new Passport(\"abdo\",44,date);\r\n\t\tPassport passprt3=new Passport(\"julie\",44,date);\r\n\t\tPassport passprt4=new Passport(\"juliana\",44,date);\r\n\t\tPassport passprt5=new Passport(\"bella\",44,date);\r\n\t\tPassport passprt6=new Passport(\"geris\",44,date);\r\n\t\tTraveler t1=new Traveler(passprt1,true,true);\r\n\t\tTraveler t2=new Traveler(passprt2,true,true);\r\n\t\tTraveler t3=new Traveler(passprt3,true,true);\r\n\t\tTraveler t4=new Traveler(passprt4,true,true);\r\n\t\tTraveler t5=new Traveler(passprt5,true,true);\r\n\t\tTraveler t6=new Traveler(passprt6,true,true);\r\n\t\t\r\n\t\t\r\n\t\tio.addTraveler(t1);\r\n\t\tio.addTraveler(t2);\r\n\t\tio.addTraveler(t3);\r\n\t\tio.addTraveler(t6);\r\n\t\tio.addTraveler(t5);\r\n\t\tio.addTraveler(t4);\r\n\t\tio.addTraveler(t6);\r\n \r\n\t\ti.addTraveler(t1);\r\n\t\ti.addTraveler(t2);\r\n\t\ti.addTraveler(t3);\r\n\t\ti.addTraveler(t4);\r\n\t\r\n\t\ti.addTraveler(t6);\r\n\t\t\r\n\t\tTravelAgency.addTrip(i);\t\r\n\t\tTravelAgency.addTrip(io);\r\n\t\tSystem.out.print(TravelAgency.findUnsafeTrips());\r\n\r\n\t\t\r\n\t\tTravelAgency.AddTraveler(t1);\r\n\t\tTravelAgency.AddTraveler(t2);\r\n\t\tTravelAgency.AddTraveler(t3);\r\n\t\tTravelAgency.AddTraveler(t4);\r\n\t\tTravelAgency.AddTraveler(t5);\r\n\t\tTravelAgency.AddTraveler(t6);\r\n\t\t\r\n\t}",
"static void startJavaTrainer() {\n initializeMap();\n promptUser();\n startProgram();\n }",
"public AI(String n) {//constructor for super class\n super(n);\n }",
"public static void main(String []args) \n\t{ \n\t\tnew BMTron();\n\t}",
"public static void main(String[] args){\n\t\t\tANN neuralNetwork= new ANN();\n\t\t\tCenteredFrame frame = new CenteredFrame(neuralNetwork);\n\t\t\t\n\t\t}",
"public static void main(String[] args) {\n\t\tEDelegator delegator = new EDelegator();\n\t\tELawyer lawyer = new ELawyer(delegator);\n\t\tlawyer.wirteLawsuit();\n\t\tlawyer.sue();\n\t\t\n\t\tSystem.out.println(\"====================\");\n\t\t\n\t\tILawsuit lawsuitProxy = (ILawsuit)Proxy.newProxyInstance(\n\t\t\t\tILawsuit.class.getClassLoader(), \n\t\t\t\tnew Class[] {ILawsuit.class}, \n\t\t\t\tnew DynamicProxyHandler(delegator));\n\t\t\n\t\tlawsuitProxy.wirteLawsuit();\n\t\tlawsuitProxy.sue();\n\t}",
"private CGraphInliner() {\n }",
"public Trening() {\n }",
"public AI(){\n super();\n }",
"private Analyzer getAnaLyzer() {\n\n\t\tif (this.analyzer.equals(\"KeywordAnalyzer\")) {\n\n\t\t\treturn new KeywordAnalyzer();\n\t\t}\n\n\t\telse if (this.analyzer.equals(\"SimpleAnalyzer\")) {\n\n\t\t\treturn new SimpleAnalyzer();\n\t\t}\n\n\t\telse if (this.analyzer.equals(\"StopAnalyzer\")) {\n\n\t\t\treturn new StopAnalyzer();\n\t\t}\n\n\t\telse\n\t\t\treturn new StandardAnalyzer();\n\n\t}",
"public SELF the_analyzer_is_instantiated() {\n analyzer = builder.build();\n return self();\n }",
"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 Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }",
"public static void main(String[] args) {\n LexicographicAnalizer test = new LexicographicAnalizer();\n System.out.println(test.analizer());\n }",
"Drone createDrone();",
"public static void main(String[] args) \n\t{\n\t\t// Konfiguration\n\t\tTraining training = new Training();\n\t\tint numberOfAttributes = 18;\n\t\tStatisticOutput statisticWriter = new StatisticOutput(\"data/statistics.txt\");\n\t\t\n\t\ttraining.printMessage(\"*** TCR-Predictor: Training ***\");\n\t\t\n\t\ttraining.printMessage(\"Datenbank von Aminosäure-Codierungen wird eingelesen\");\n\t\t// Lies die EncodingDB ein\n\t\tAAEncodingFileReader aa = new AAEncodingFileReader();\n\t\tAAEncodingDatabase db = aa.readAAEncodings(\"data/AAEncodings.txt\");\n\t\ttraining.printMessage(\"Es wurden \" + db.getEncodingDatabase().size() + \" Codierungen einglesen\");\n\t\t\n\t\ttraining.printMessage(\"Trainingsdatensatz wird eingelesen und prozessiert\");\n\t\t// Lies zunächst die gesamten Trainingsdaten ein\n\t\tExampleReader exampleReader = new ExampleReader();\n\t\t\n\t\t// Spalte das Datenset\n\t\tDataSplit dataSplit_positives = new DataSplit(exampleReader.getSequnces(\"data/positive.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_positiv = dataSplit_positives.getDataSet();\n\t\t\n\t\tDataSplit dataSplit_negatives = new DataSplit(exampleReader.getSequnces(\"data/negative.txt\"), 5);\n\t\tArrayList<ArrayList<String>> complete_list_negativ = dataSplit_negatives.getDataSet();\n\t\t\n\t\t// Lege Listen für die besten Klassifizierer und deren Evaluation an\n\t\tModelCollection modelCollection = new ModelCollection();\n\t\t\n\t\t/*\n\t\t * \n\t\t * Beginne Feature Selection\n\t\t * \n\t\t */\n\t\tArrayList<String> positivesForFeatureSelection = training.concatenateLists(complete_list_positiv);\n\t\tArrayList<String> negativesForFeatureSelection = training.concatenateLists(complete_list_negativ);\n\t\t\n\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t// Convertiere Daten in Wekas File Format\n\t\tARFFFileGenerator arff = new ARFFFileGenerator();\n\t\tInstances dataSet = arff.createARFFFile(positivesForFeatureSelection, negativesForFeatureSelection, db.getEncodingDatabase());\n\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\n\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) aus\");\n\t\t// Beginne Feature Selection\n\t\tFeatureFilter featureFilter = new FeatureFilter();\n\t\tfeatureFilter.rankFeatures(dataSet, numberOfAttributes);\t\t\t\t\t// Wähle die x wichtigsten Features aus\n\t\tdataSet = featureFilter.getProcessedInstances();\n\t\ttraining.printMessage(\"Ausgewählte Features: \" + featureFilter.getTopResults());\n\n\t\t/*\n\t\t * Führe die äußere Evaluierung fünfmal durch und wähle das beste Modell\n\t\t */\n\t\tfor (int outer_run = 0; outer_run < 5; outer_run++)\n\t\t{\n\t\t\tstatisticWriter.writeString(\"===== Äußere Evaluation \" + (outer_run + 1) + \"/5 =====\\n\\n\");\n\t\t\t\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_positives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_positives.addAll(complete_list_positiv);\n\t\t\t\n\t\t\tArrayList<ArrayList<String>> list_negatives = new ArrayList<ArrayList<String>>();\n\t\t\tlist_negatives.addAll(complete_list_negativ);\n\t\t\t\n\t\t\t// Lege das erste Fragment beider Listen für nasted-Crossvalidation beiseite\n\t\t\tArrayList<String> outer_List_pos = new ArrayList<String>();\n\t\t\touter_List_pos.addAll(list_positives.get(outer_run));\n\t\t\tlist_positives.remove(outer_run);\n\t\t\t\n\t\t\tArrayList<String> outer_List_neg = new ArrayList<String>();\n\t\t\touter_List_neg.addAll(list_negatives.get(outer_run));\n\t\t\tlist_negatives.remove(outer_run);\n\t\t\t\n\t\t\t// Füge die verbleibende Liste zu einer Zusammen\n\t\t\tArrayList<String> inner_List_pos = training.concatenateLists(list_positives);\n\t\t\tArrayList<String> inner_List_neg = training.concatenateLists(list_negatives);\n\t\t\t\t\n\n\t\t\t/*\n\t\t\t * \n\t\t\t * Ab hier nur noch Arbeiten mit innerer Liste, die Daten zum Evaluieren bekommt Weka vorerst \n\t\t\t * nicht zu sehen!\n\t\t\t * \n\t\t\t */\n\t\t\ttraining.printMessage(\"Convertiere Daten ins Weka ARFF Format\");\t\t\n\t\t\t// Convertiere Daten in Wekas File Format\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(inner_List_pos, inner_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes); // Filtere das innere Datenset nach Vorgabe\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\ttraining.printMessage(\"Beginne Gridsearch\");\n\t\t\t// Gridsearch starten\n\t\n\t\t\t\n\t\t\t\n\t\t\tParameterOptimization optimizer = new ParameterOptimization();\n\t\t\tString logFileName = outer_run + \"_\" + numberOfAttributes;\n\t\t\tGridSearch gridSearch = optimizer.performGridSearch(dataSet, logFileName);\n\t\t\ttraining.printMessage(\"Gefundene Parameter [C, gamma]: \" + gridSearch.getValues()); // liefert unter diesen Settings 1.0 und 0.0\n\n\t\t\tSMO sMO = (SMO)gridSearch.getBestClassifier();\n\t\t\t\t\t\t\t\n\t\t\t/*\n\t\t\t * \n\t\t\t * Evaluationsbeginn \n\t\t\t *\n\t\t\t */\n\t\t\ttraining.printMessage(\"Evaluiere die Performance gegen das äußere Datenset\");\n\t\t\ttraining.printMessage(\"Transcodierung des Evaluationsdatensatzes\");\n\t\t\tarff = new ARFFFileGenerator();\n\t\t\tdataSet = arff.createARFFFile(outer_List_pos, outer_List_neg, db.getEncodingDatabase());\n\t\t\tdataSet.setClass(dataSet.attribute(\"activator\"));\t\t\t// Lege das nominale Attribut fest, wonach klassifiziert wird\n\t\t\tdataSet.deleteStringAttributes(); \t\t\t\t\t\t\t// Entferne String-Attribute\n\t\t\t\n\t\t\t// Führe Feature-Filtering mit den Einstellungen der GridSearch aus\n\t\t\ttraining.printMessage(\"Führe Feature Selection (Filtering) auf GridSearch-Basis aus\");\n\t\t\t// Beginne Feature Selection\n\t\t\tfeatureFilter.processInstances(featureFilter.getRanking(), dataSet, numberOfAttributes);\t // Wähle die x wichtigsten Features aus\n\t\t\tdataSet = featureFilter.getProcessedInstances();\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttraining.printMessage(\"Ermittle Performance\");\n\t\t\tEvaluator eval = new Evaluator();\n\t\t\teval.classifyDataSet(sMO, dataSet);\n\t\t\ttraining.printMessage(eval.printRawData());\n\t\t\t\n\t\t\t/*\n\t\t\t * Füge das Modell und die externe Evaulation zur Sammlung hinzu\n\t\t\t */\t\t\t\n\t\t\tmodelCollection.bestClassifiers.add(sMO);\n\t\t\tmodelCollection.evalsOfBestClassifiers.add(eval);\n\t\t\tmodelCollection.listOfNumberOfAttributes.add(numberOfAttributes);\n\t\t\tmodelCollection.listOfFeatureFilters.add(featureFilter);\n\t\t\t\n\t\t\tstatisticWriter.writeString(\"Verwendete Attribute: \" + featureFilter.getTopResults());\n\t\t\tstatisticWriter.writeString(eval.printRawData());\n\t\t\t\n\t\t}\n\t\tstatisticWriter.close();\n\t\t\n\t\t// Wähle das beste aller Modelle aus\n\t\ttraining.printMessage(\"Ermittle die allgemein besten Einstellungen\");\n\t\tModelSelection modelSelection = new ModelSelection();\n\t\tmodelSelection.calculateBestModel(modelCollection);\n\t\t\n\t\ttraining.printMessage(\"Das beste Model: \");\n\t\ttraining.printMessage(modelSelection.getBestEvaluator().printRawData());\n\t\tSystem.out.println(\"------ SMO ------\");\n\t\tfor (int i = 0; i < modelSelection.getBestClassifier().getOptions().length; i++)\n\t\t{\n\t\t\tSystem.out.print(modelSelection.getBestClassifier().getOptions()[i] + \" \");\n\t\t}\n\t\tSystem.out.println(\"\\n--- Features ---\");\n\t\tSystem.out.println(modelSelection.getBestListOfFeatures().getTopResults());\n\t\t\n\t\t// Schreibe das Modell in eine Datei\n\t\ttraining.printMessage(\"Das beste Modell wird auf Festplatte geschrieben\");\n\t\ttry\n\t\t{\n\t\t\tSerializationHelper.write(\"data/bestPredictor.model\", modelSelection.getBestClassifier());\n\t\t\tSerializationHelper.write(\"data/ranking.filter\", modelSelection.getBestListOfFeatures().getRanking());\n\t\t\tSerializationHelper.write(\"data/components.i\", (modelSelection.getBestListOfFeatures().getProcessedInstances().numAttributes()-1));\n\t\t}\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tSystem.err.println(\"Fehler beim Schreiben des Modells auf Festplatte: \" + ex);\n\t\t}\n\t}",
"public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}",
"public WordGenerator()\n {\n adjective1a = new ArrayList<String>();\n adjective1b = new ArrayList<String>();\n adjective1c = new ArrayList<String>();\n adjective2a = new ArrayList<String>();\n adjective2b = new ArrayList<String>();\n adjective2c = new ArrayList<String>();\n fillAdjectives();\n noun = \"\";\n adj1 = \"\";\n adj2 = \"\";\n }",
"public MeterLnTrafficController() {\n super();\n Meter = this;\n MyGovernor = new Governor();\n Governor.OutputThread = new Thread(MyGovernor);\n Governor.OutputThread.setName(\"LnMeter\");\n Governor.OutputThread.start();\n Governor.OutputThread.setPriority(Thread.MAX_PRIORITY);\n if (FlowRate == null) {\n FlowRate = CounterFactory.CountKeeper.findSequence(\n CounterFactory.LNTAG);\n CounterFactory.CountKeeper.exposeSequence(CounterFactory.LNTAG);\n FlowRate.registerAdjustmentListener(this);\n DecoratedController = findLNController();\n }\n }",
"protected DDLambda(Context cxt, String xrayTraceInfo) {\n this();\n this.tracing = new Tracing(xrayTraceInfo);\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n addTraceContextToMDC();\n startSpan(new HashMap<>(), cxt);\n }",
"public SnakesAndLadders()\n {\n this(2);\n }",
"@Override\n\tpublic void ConstructNetwork() {\n\t\t\n\t\tAddUnit add_r_t=new AddUnit();\n\t\tUnitIterator ui=new UnitIterator();\n\t\tui.unit=add_r_t;\n\n\t\tnetwork=new UnitList();\n\t\tnetwork.unitList.add(ui);\n\t\tnetwork.unitList.add(new AddUnit());\n\t\t\t\n\t}",
"public Argonian()\n\t{\n\t\tthis.race = \"Argonian\";\n\t}",
"public interface NewLine extends ClouBausteinElement {\n\n static NewLine create(CodePosition codePosition){\n return new NewLineImpl(codePosition);\n }\n\n}",
"TrainingTest createTrainingTest();",
"public LEParser(LEParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 5; i++) jj_la1[i] = -1;\n }",
"private static AgentInfo newAgent(StringTokenizer in) {\n AgentInfo agent = new AgentInfo();\n agent.setGroupId(Factory.getRandomGroup());\n agent.setName(Factory.getRandomAgentName());\n String agentId = in.nextToken();\n String ip = in.nextToken();\n int port = Integer.parseInt(in.nextToken());\n int agentPort = Integer.parseInt(in.nextToken());\n agent.setAgentId(agentId);\n agent.setCurLocation(new HostInfo(ip, port));\n agent.setPort(agentPort);\n AgentInfoList.add(agent);\n\n /*\n * adds to the tally of how many agents are using the host.\n */\n List<HostInfo> hosts = HostInfoList.getList();\n\n for (HostInfo h : hosts) {\n if (h.equals(agent.getCurLocation())) {\n h.incNumAgents();\n }\n }\n\n return agent;\n\n\n }",
"public LinkBuilder() {\n }",
"public NAFReader() {\n super(\"Hamamatsu Aquacosmos\", \"naf\");\n domains = new String[] {FormatTools.LM_DOMAIN};\n }",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"public AirLineListener() {\r\n\r\n }",
"public TemSourceAccountingLine createNewAdvanceAccountingLine() {\n try {\n TemSourceAccountingLine accountingLine = getAdvanceAccountingLineClass().newInstance();\n accountingLine.setFinancialDocumentLineTypeCode(TemConstants.TRAVEL_ADVANCE_ACCOUNTING_LINE_TYPE_CODE);\n accountingLine.setCardType(TemConstants.ADVANCE); // really, card type is ignored but it is validated so we have to set something\n accountingLine.setFinancialObjectCode(this.getParameterService().getParameterValueAsString(TravelAuthorizationDocument.class, TemConstants.TravelAuthorizationParameters.TRAVEL_ADVANCE_OBJECT_CODE, KFSConstants.EMPTY_STRING));\n return accountingLine;\n }\n catch (IllegalAccessException iae) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", iae);\n }\n catch (InstantiationException ie) {\n throw new RuntimeException(\"unable to create a new source accounting line for advances\", ie);\n }\n }",
"public void addTrainerInCourse(Course course, Trainer trainer){\n \n String statement = ADD_TRAINER_IN_COURSE;\n data.makeUpdateStatement(statement,new Object[]{(Object)course.getId(),(Object)trainer.getId()});\n data.closeConnections(data.ps, data.conn);\n }",
"public Transporter(Model owner, String name, int capac, boolean showInTrace) {\n\t\t// construct a Transporter with a minimum load of one\n\t\tthis(owner, name, 1, capac, showInTrace);\n\t}",
"public BindingLexer() {;}",
"protected AddTranscriptNodeModel() {\r\n this(1,2);\r\n }",
"public RtfOptimizer()\n {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tnew Niveau1();\n\t\t\t}",
"public Feeder(String label)\r\n\t{\r\n\t\tthis.label = label;\r\n\t}",
"public Train(Location village1, Location village2) {\n this.start = village1;\n this.destination = village2;\n // when train is created, it is at the start location\n this.current = start;\n this.occupied = false;\n }",
"public Assignement1aMain() {\n\t\t\n\t\t// create components\n\t\tComponent time = create(JavaTimer.class);\n\t\tComponent network = create(MinaNetwork.class);\n\t\tComponent con = create(JavaConsole.class);\n\t\tComponent pp2p = create(DelayLink.class);\n\t\tComponent pfd = create(PFD.class);\n\t\tComponent app = create(Application1a.class);\n\n\t\t// handle possible faults in the components\n\t\tsubscribe(handleFault, time.control());\n\t\tsubscribe(handleFault, network.control());\n\t\tsubscribe(handleFault, con.control());\n\t\tsubscribe(handleFault, pp2p.control());\n\t\tsubscribe(handleFault, pfd.control());\n\t\tsubscribe(handleFault, app.control());\n\n\t\t// initialize the components\n\t\tlong gama=1000;\n\t\tlong delta=4000;\n\t\t\n\t\tAddress self = topology.getSelfAddress();\n\t\tSet<Address> neighborSet = topology.getNeighbors(self);\n\n\t\ttrigger(new MinaNetworkInit(self, 5), network.control());\n\t\ttrigger(new DelayLinkInit(topology), pp2p.control());\n\t\ttrigger(new Application1aInit(commandScript, neighborSet, self, gama, delta), app.control());\n\t\ttrigger(new PfdInit(topology, gama, delta), pfd.control());\n\n\t\t// connect the components\n\t\tconnect(app.required(Console.class),\n\t\t\t\tcon.provided(Console.class));\n\t\tconnect(app.required(PerfectFailureDetector.class),\n\t\t\t\tpfd.provided(PerfectFailureDetector.class));\n\t\tconnect(pfd.required(PerfectPointToPointLink.class),\n\t\t\t\tpp2p.provided(PerfectPointToPointLink.class));\n\t\tconnect(app.required(Timer.class), time.provided(Timer.class));\n\t\t\n\t\tconnect(pfd.required(Timer.class), time.provided(Timer.class));\n\t\tconnect(pp2p.required(Timer.class), time.provided(Timer.class));\n\t\tconnect(pp2p.required(Network.class), network.provided(Network.class));\n\t}",
"public Athlete()\r\n{\r\n this.def = \"An athlete is said to be running when he/she is accelerating in a certain direction during which his legs and the rest of his body are moving\";\r\n}",
"public SingleRuleBuilder newRule() {\n return new SingleRuleBuilder();\n }",
"public Train(String name, Integer number) {\n\t\tsuper();\n\t\tthis.name = name;\n\t\tthis.number = number;\n\t}",
"private void createPassenger() {\n account = new Account(\"driver\", \"password\", \"[email protected]\",\n \"Dan\", \"20 Howard Street\", 1234567, 64278182123L);\n }",
"public AIPlayer() {\n super(\"AIPlayer\");\n start();\n }"
] | [
"0.642651",
"0.6113403",
"0.60752416",
"0.5872316",
"0.54701144",
"0.5464807",
"0.52823627",
"0.5246994",
"0.5202787",
"0.5200689",
"0.518075",
"0.516533",
"0.5144581",
"0.51194483",
"0.5118706",
"0.5099095",
"0.509141",
"0.50582397",
"0.500032",
"0.49642915",
"0.49576092",
"0.49442884",
"0.49317357",
"0.49161324",
"0.49062285",
"0.48984802",
"0.48573235",
"0.4853262",
"0.48501974",
"0.48474026",
"0.48365194",
"0.48332843",
"0.4830995",
"0.4823935",
"0.48113403",
"0.48100597",
"0.47959682",
"0.4792602",
"0.47848976",
"0.4768719",
"0.47662708",
"0.47632423",
"0.47504774",
"0.47477865",
"0.47466785",
"0.47459903",
"0.47426608",
"0.472361",
"0.47179925",
"0.47176254",
"0.4704624",
"0.46873942",
"0.46868852",
"0.466848",
"0.46655586",
"0.46644637",
"0.46598625",
"0.4656415",
"0.4644088",
"0.46438614",
"0.46409076",
"0.463301",
"0.46327046",
"0.46314412",
"0.46302938",
"0.46275038",
"0.4627476",
"0.46166676",
"0.4597457",
"0.4596513",
"0.45949543",
"0.45893854",
"0.45891076",
"0.4576869",
"0.4575708",
"0.45715395",
"0.45639747",
"0.45626533",
"0.45609412",
"0.45606777",
"0.45549774",
"0.45515653",
"0.45509955",
"0.4549228",
"0.45457765",
"0.45398417",
"0.4537803",
"0.45353755",
"0.45277885",
"0.45266607",
"0.45256057",
"0.45246062",
"0.45224229",
"0.45209384",
"0.45206225",
"0.4516578",
"0.451257",
"0.45089063",
"0.45088917",
"0.4508201"
] | 0.5304621 | 6 |
Perform a training iteration. | public void iteration() {
final ErrorCalculation errorCalculation = new ErrorCalculation();
final Layer inputLayer = this.network.getLayer(BasicNetwork.TAG_INPUT);
final Layer outputLayer = this.network
.getLayer(BasicNetwork.TAG_OUTPUT);
for (final NeuralDataPair pair : this.training) {
// calculate the error
final NeuralData output = this.network.compute(pair.getInput());
for (int currentAdaline = 0; currentAdaline < output.size();
currentAdaline++) {
final double diff = pair.getIdeal().getData(currentAdaline)
- output.getData(currentAdaline);
// weights
for (int i = 0; i < inputLayer.getNeuronCount(); i++) {
final double input = pair.getInput().getData(i);
this.synapse.getMatrix().add(i, currentAdaline,
this.learningRate * diff * input);
}
// threshold (bias)
double t = outputLayer.getThreshold(currentAdaline);
t += this.learningRate * diff;
outputLayer.setThreshold(currentAdaline, t);
}
errorCalculation.updateError(output, pair.getIdeal());
}
// set the global error
setError(errorCalculation.calculateRMS());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void train() {\n\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t// for each training record\n\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t// calculate inputs and outputs\n\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t// compute errors, update weights and thetas\n\t\t\t\tbackwardCalculation(records.get(j).output);\n\t\t\t}\n//\t\t\tpostprocessOutputs();\n\t\t}\n\t}",
"public void train()\n\t{\n\t\tdbiterator = DBInstanceIterator.getInstance();\n System.out.println(\"Start Training ..\");\n\n\t\ttry {\n\t\t\tSystem.out.println(\"Training Text %..\");\n\t\t\ttrainText();\n\n\t\t\tSystem.out.println(\"Training Complex %..\");\n\t\t\ttrainCombined();\n\n\t\t\tSystem.out.println(\"Training Feature %..\");\n\t\t\ttrainFeatures();\n\n\t\t\tSystem.out.println(\"Training Lexicon %..\");\n\t\t\t//trainLexicon();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void trainNetwork(long iterations) {\n\t\ttrainer.startTraining(network, iterations);\r\n\r\n\t}",
"public void train(SieveDocuments trainingInfo) {\r\n\t\t// no training\r\n\t}",
"public void train() throws Exception;",
"@Override\n\tpublic void trainLocal() throws Exception {\n\t\tdouble [][] input = parameters.getInput();\n\t\tdouble [][] result = ann.getResults(parameters);\n\t\tif (state == preTraining) {//in this case, it is running in the pre-training mode.\n\t\t\tinput = newInput;\n\t\t\tresult = newInput;\n\t\t}\n\t\terr = 0; \n\t\tfor (int i = 0; i < mb; i++) {\t\n\t\t\tif (pos > input.length - 1) {\n\t\t\t\tpos = 0;\n\t\t\t}\n\t\t\terr = err + ann.runEpoch(input[pos], pos, result[pos], parameters);\n\t\t\tpos++;\n\t\t}\n\t}",
"public void train(){\n recoApp.training(idsToTest);\n }",
"private void train() throws IOException {\r\n\r\n // Set Listeners, to see results of evaluation during training process and testing\r\n vgg16Transfer.setListeners(new ScoreIterationListener(100));\r\n trainWriter.write(\"\\n Train model....\");\r\n System.out.println(\"\\n Train model....\");\r\n int iterationsCounter = 0;\r\n // Go through all data \"epochs\" - number of times\r\n for(int n = 0; n < epochs; n++) {\r\n System.out.println(String.format(\"Epoch %d started training\", n + 1));\r\n trainWriter.write(String.format(\"Epoch %d started training\", n + 1));\r\n\r\n //Reset training iterator to the new epoch\r\n trainIterator.reset();\r\n // Go through all data once, till it's end\r\n while (trainIterator.hasNext()) {\r\n iterationsCounter++;\r\n trainingData = trainIterator.next();\r\n normalizer.fit(trainingData);\r\n vgg16Transfer.fit(trainingData);\r\n System.out.println(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n\r\n }\r\n System.out.println(String.format(\"Epoch %d finished training\", n + 1));\r\n trainWriter.write(\"*** Completed iteration number # \" + iterationsCounter + \" ***\");\r\n // Get results and check them\r\n Evaluation eval = new Evaluation(numLabels);\r\n testIterator.reset();\r\n while(testIterator.hasNext()) {\r\n testData = testIterator.next();\r\n normalizer.fit(testData);\r\n INDArray features = testData.getFeatures();\r\n INDArray labels = testData.getLabels();\r\n INDArray predicted = vgg16Transfer.outputSingle(features);\r\n eval.eval(labels, predicted);\r\n }\r\n System.out.println(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n System.out.println(eval.stats());\r\n System.out.println(eval.confusionToString());\r\n trainWriter.write(String.format(\"Evaluation on test data - [Epoch %d] [Accuracy: %.3f, P: %.3f, R: %.3f, F1: %.3f] \",\r\n n + 1, eval.accuracy(), eval.precision(), eval.recall(), eval.f1()));\r\n trainWriter.write(eval.stats());\r\n trainWriter.write(eval.confusionToString());\r\n }\r\n System.out.println(\"\\n *** Training finished! *** \");\r\n trainWriter.write(\"\\n *** Training finished! *** \");\r\n }",
"public void train(int iterations) {\n\t\tNeuron n = new NeuronSigmoid();\n\t\t\n\t\tfor (int i = 0; i < iterations; i++) {\n\t\t\tSystem.out.print(\"Epoch: \" +(i+1));\n\t\t\tdouble[][] localOutput = n.think(this.input,this.weights);\n\n\t\t\tdouble[][] error = Matrix2d.subtract(output, localOutput);\n\t\t\tSystem.out.print(\" Error: \"+calcOverallError(error));\n\t\t\tdouble[][] sigDeriv = Matrix2d.sigmoidDerivative(localOutput);\n\t\t\tdouble[][] prod = Matrix2d.multiply(error, sigDeriv);\n\t\t\tdouble[][] transInput = Matrix2d.transposeMatrix(input);\n\t\t\tdouble[][] adjustment = Matrix2d.dot(transInput, prod);\n\n\t\t\tweights = Matrix2d.add(adjustment, weights);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public void train(){\r\n\t\tdouble output = 0.0;\r\n\t\tList<Integer> teacher = null;\r\n\t\tdouble adjustedWeight = 0.0;\r\n\t\tdouble error = 0.0;\r\n\t\tdouble deltaK = 0.0;\r\n\r\n\t\tfor(int counter = 0; counter < maxEpoch; counter++){\r\n\t\t\tfor(Instance inst : trainingSet){\r\n\t\t\t\tcalculateOutputForInstance(inst);\r\n\t\t\t\tteacher = inst.classValues;\r\n\t\t\t\t//jk weight\r\n\t\t\t\tfor(int i = 0; i < outputNodes.size(); i++){\r\n\t\t\t\t\tNode kNode = outputNodes.get(i);\r\n\t\t\t\t\toutput = kNode.getOutput();\r\n\t\t\t\t\terror = teacher.get(i) - output;\r\n\t\t\t\t\tdeltaK = error*getReLU(kNode.getSum());\r\n\t\t\t\t\tfor(int j = 0; j < kNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair jkWeight = kNode.parents.get(j);\r\n\t\t\t\t\t\tNode jNode = jkWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getJK(jNode, deltaK);\r\n\t\t\t\t\t\tjkWeight.weight += adjustedWeight;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//ij weight\r\n\t\t\t\tfor(int i = 0; i < hiddenNodes.size(); i++){\r\n\t\t\t\t\tNode jNode = hiddenNodes.get(i);\r\n\t\t\t\t\tif(jNode.parents == null) continue;\r\n\t\t\t\t\tfor(int j = 0; j < jNode.parents.size(); j++){\r\n\t\t\t\t\t\tNodeWeightPair ijWeight = jNode.parents.get(j);\r\n\t\t\t\t\t\tNode iNode = ijWeight.node;\r\n\t\t\t\t\t\tadjustedWeight = getIJ(iNode, jNode, teacher, i);\r\n\t\t\t\t\t\tijWeight.weight += adjustedWeight;\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}",
"public void train() {\n\n int w;\n double sum = 0, avg;\n double forecast;\n double[][] trainMatrix = new double[trainPoints][2];\n double[][] valMatrix = new double[validationPoints][2];\n actual = observations.toArray();\n\n for (int i = 0; i < step * slices; i++)\n sum += actual[i];\n\n avg = sum / slices;\n\n for (int pos = 0; pos < trainPoints; pos++) {\n sum = 0;\n w = 0;\n\n if (pos >= step * slices) {\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n } else forecast = avg;\n\n trainMatrix[pos][0] = actual[pos];\n trainMatrix[pos][1] = forecast;\n }\n\n for (int pos = actual.length - validationPoints, j = 0; pos < actual.length; pos++) {\n sum = 0;\n w = 0;\n for (int k = pos - step * slices; k < pos; k += step)\n sum += actual[k] * weights[w++];\n forecast = sum / slices;\n valMatrix[j][0] = actual[pos];\n valMatrix[j][1] = forecast;\n j++;\n }\n double biasness = BiasnessHandler.handleOffset(valMatrix);\n accuracyIndicators.setBias(biasness);\n ModelUtil.computeAccuracyIndicators(accuracyIndicators, trainMatrix, valMatrix, dof);\n errorBound = ErrorBoundsHandler.computeErrorBoundInterval(trainMatrix);\n }",
"public void train()\r\n\t{\r\n\t\tfor(int i=0; i < this.maxEpoch; i++)\r\n\t\t{\r\n\t\t\tfor(Instance temp_example: this.trainingSet)\r\n\t\t\t{\r\n\t\t\t\tdouble O = calculateOutputForInstance(temp_example);\r\n\t\t\t\tdouble T = temp_example.output;\r\n\t\t\t\tdouble err = T - O;\r\n\r\n\t\t\t\t//w_jk (hidden to output)\r\n\t\t\t\tdouble g_p_out = (outputNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(this.learningRate*\r\n\t\t\t\t\t\t\thiddenNode.node.getOutput()*err*g_p_out);\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//w_ij (input to hidden)\r\n\t\t\t\tint hid_count =0;\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tdouble g_p_hid = (hiddenNode.getSum() <= 0) ? 0 : 1;\r\n\t\t\t\t\tif(hiddenNode.getType()==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tdouble a_i = inputNode.node.getOutput();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq\r\n\t\t\t\t\t\t\t(\r\n\t\t\t\t\t\t\t\t\tthis.learningRate*\r\n\t\t\t\t\t\t\t\t\ta_i*g_p_hid*(err*\r\n\t\t\t\t\t\t\t\t\toutputNode.parents.get(hid_count).weight*\r\n\t\t\t\t\t\t\t\t\tg_p_out)\r\n\t\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\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\thid_count++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// for all w_pq, update weights\r\n\t\t\t\tfor(Node hiddenNode: hiddenNodes){\r\n\t\t\t\t\tif(hiddenNode.getType()==2){\r\n\t\t\t\t\t\tfor(NodeWeightPair inputNode: hiddenNode.parents){\r\n\t\t\t\t\t\t\tinputNode.weight += inputNode.get_deltaw_pq();\r\n\t\t\t\t\t\t\tinputNode.set_deltaw_pq(new Double (0.00));\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\tfor(NodeWeightPair hiddenNode: outputNode.parents)\r\n\t\t\t\t{\r\n\t\t\t\t\thiddenNode.weight += hiddenNode.get_deltaw_pq();\r\n\t\t\t\t\thiddenNode.set_deltaw_pq(new Double (0.00));\r\n\t\t\t\t}\r\n\r\n\t\t\t} // end of an instance \r\n\t\t} // end of an epoch\r\n\t}",
"public void train ()\t{\t}",
"public void startTrainingMode() {\n\t\t\r\n\t}",
"public void train() {\r\n // For each epoch, call setInputValue on input nodes\r\n for (int i = 0; i < maxEpoch; i++) {\r\n Collections.shuffle(trainingSet, random);\r\n\r\n // get each training instance\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n\r\n Instance instance = trainingSet.get(k);\r\n\r\n // set the input value in the input nodes from the training instance\r\n for (int j = 0; j < instance.attributes.size(); j++) {\r\n inputNodes.get(j).setInput(instance.attributes.get(j));\r\n }\r\n\r\n //set the target value in output nodes\r\n for (int j = 0; j < instance.classValues.size(); j++) {\r\n outputNodes.get(j).setTargetValue((double) instance.classValues.get(j));\r\n }\r\n\r\n // calculate values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n // for each hidden node\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateOutput();\r\n }\r\n\r\n //calculate values for output nodes\r\n double sumOfExponents = 0.0;\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n // for each output node\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateOutput();\r\n sumOfExponents += outputNode.getOutput();\r\n }\r\n\r\n //update output values of output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateOutputValue(sumOfExponents);\r\n }\r\n\r\n // calculate delta values for output nodes\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.calculateDelta();\r\n }\r\n\r\n // calculate delta values for hidden nodes\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.calculateDelta();\r\n hiddenNode.resetSumOfPartialDelta();\r\n }\r\n\r\n // update weights going from input layer to hidden layer\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n hiddenNode.updateWeight(learningRate);\r\n }\r\n\r\n // update weights going from hidden layer to output layer\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n outputNode.updateWeight(learningRate);\r\n }\r\n\r\n /*if (k == 0 && i==0) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n\r\n if (k == 0 && i == 0) {\r\n for (int j = 0; j < hiddenNodes.size(); j++) {\r\n Node hiddenNode = hiddenNodes.get(j);\r\n if (hiddenNode.parents != null) {\r\n for (NodeWeightPair pair : hiddenNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }\r\n }*/\r\n }\r\n\r\n /* if (i==29) {\r\n for (int j = 0; j < outputNodes.size(); j++) {\r\n Node outputNode = outputNodes.get(j);\r\n for (NodeWeightPair pair : outputNode.parents) {\r\n System.out.println(pair.weight);\r\n }\r\n }\r\n }*/\r\n\r\n double totalLoss = 0.0;\r\n // Calculate loss and sum for each training instance, and then take average\r\n for (int k = 0; k < trainingSet.size(); k++) {\r\n Instance instance = trainingSet.get(k);\r\n totalLoss += loss(instance);\r\n }\r\n totalLoss /= trainingSet.size();\r\n System.out.println(\"Epoch: \" + i + \", \" + \"Loss: \" + String.format(\"%.3e\", totalLoss));\r\n }\r\n }",
"public void trainData() throws IOException {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttestingFold = i;\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Training Tree-Augmented Naive Bayes for writing Fold\");\n\t\t\t}\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Calculating Class Priors across Data set.\\n\");\n\t\t\t}\n\t\t\tbuildPriors();\n\n\t\t\tif (testingFold == writingFold) {\n\t\t\t\tlogger.append(\"Priors built.\\n Discretizing data into Naive Bin Estimator...\\n\" +\n\t\t\t\t\t\t\"Generating Completed Graph...\\nWeighting Edges...\\n\");\n\t\t\t}\n\t\t\tdiscretizeData();\n\t\t\ttest();\n\t\t}\n\n\t}",
"private void train(NeuralDataSet input) {\n\n\tfinal NeuralDataSet theInput = input;\n\tfinal VirtualLibraryButler that = this;\n\n\ttraining = new Thread() {\n\t public void run() {\n\n\t\torg.encog.util.logging.Logging.setConsoleLevel(Level.OFF);\n\n\t\tfinal Train train = new CompetitiveTraining(brain, 0.7,\n\t\t\ttheInput, new NeighborhoodGaussian(\n\t\t\t\tnew GaussianFunction(0.0, 5.0, 1.5)));\n\t\tStrategy smartLearn = new SmartLearningRate();\n\n\t\tsmartLearn.init(train);\n\t\ttrain.addStrategy(smartLearn);\n\n\t\tint epoch = 0;\n\t\tint errorSize = 250;\n\n\t\tdouble[] lastErrors = new double[errorSize];\n\n\t\t// training loop\n\t\tdo {\n\t\t train.iteration();\n\t\t // System.out.println(\"Epoch #\" + epoch + \" Error:\" +\n\t\t // train.getError()); // + \" MovingAvg:\" + movingAvg);\n\t\t lastErrors[epoch % errorSize] = train.getError();\n\n\t\t double avg = 0;\n\t\t for (int i = 0; (i < epoch) && (i < errorSize); ++i)\n\t\t\tavg = (avg * i + lastErrors[i]) / (i + 1);\n\n\t\t if (Math.abs(avg - train.getError()) < 0.01)\n\t\t\ttrain.setError(0.001);\n\n\t\t epoch++;\n\t\t} while (train.getError() > 0.01);\n\n\t\t// System.out.println(\"training complete.\");\n\n\t\tthat.initialized = true;\n\t }\n\t};\n\n\ttraining.start();\n }",
"void pretrain(DataSetIterator iterator);",
"@Override\n public void train() {\n actual = observations.toArray();\n min_val_error = Double.MAX_VALUE;\n if (findDecayConstant)\n for (float alpha = 0f; alpha <= 1f; alpha += 0.01f)\n initializeAndTrainModel(alpha);\n else\n initializeAndTrainModel(optAlpha);\n }",
"public void trainTest() throws Exception\n\t{\n\t\tSystem.out.println(\"Preprocessing Testset ..\");\n\t\t//String[] dir = new String[]{ Test+\"negative\" , Test+\"positive\"};\n\t\t//FileIterator iterator = new FileIterator(dir,FileIterator.LAST_DIRECTORY);\n\t\tInstanceList instances = new InstanceList(getTextPipe());\n\t\t//instances.addThruPipe(iterator);\n\n\t\tCSVParser parser = new CSVParser(new FileReader(\n\t\t\t\t\"resources/datasets/sentimentanalysis/mallet_test/Sentiment140/sentiment140.csv\"),\n\t\t\t\tCSVFormat.EXCEL.withFirstRecordAsHeader());\n\n\t\tTextPreprocessor preprocessor = new TextPreprocessor(\"resources/datasets/sentimentanalysis/\");\n\t\tint count = 0;\n\t\tfor (CSVRecord record: parser.getRecords())\n\t\t{\n\t\t\tString target;\n\t\t\tif (record.get(\"target\").equals(\"0\"))\n\t\t\t\ttarget = \"negative\";\n\t\t\telse\n\t\t\t\ttarget = \"positive\";\n\t\t\tinstances.addThruPipe(new Instance(preprocessor.getProcessed(record.get(\"tweet\")),target,\n\t\t\t\t\t\"Instance\"+count++,null));\n\n\t\t\tSystem.out.println(count);\n\t\t}\n\n\t\tSystem.out.println(instances.targetLabelDistribution());\n\t\tSystem.out.println(\"Start Training Testset ..\");\n\t\tClassifier nb = new NaiveBayesTrainer().train(instances);\n\t\tSystem.out.println(\"Saving Test Model ..\");\n\t\tsaveModel(nb,Test+\"Model.bin\");\n\t\tsaveinstances(instances,Test+\"Model-Instances.bin\");\n\t\tinstances.getDataAlphabet().dump(new PrintWriter(new File(Test+\"Model-alphabet.dat\")));\n\t}",
"public void runExperiment() {\n\t\tevaluator = new Evaluator(trainingSet);\n\t\tevaluator.evaluateClassifiers(classifiers);\n\t}",
"public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}",
"private void trainFeatures() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.FEATURE);\n\t\tSystem.out.println(\"Starting reading Feature Trainingset ..\");\n\t\tPipe serialpipe = getFeaturePipe();\n\t\tInstanceList feature_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Feature Trainingset ..\");\n\t\tfeature_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Feature Training set : \" + feature_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(feature_instances, Train + \"F.bin\");\n\t\tSystem.out.println(\"Saving Features data ..\");\n\t\tfeature_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"feature.dat\")));\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Feature training set ..\");\n\t\tClassifier classifier = trainer.train(feature_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Feature_Train);\n\t\tSystem.out.println(\"Feature classifier saved to : \" + Feature_Train);\n\t}",
"void trainingBatch(GenerateRandom rnd);",
"public void run() {\n\n // Initialize control center.\n\n control = new Dispatch(parameters);\n control.run();\n linked = control.gettasks();\n\n // Initialize trains.\n\n trains = new TrainSim[parameters.numTrains];\n\n for (int i = 0; i < parameters.numTrains; i++) {\n\n trains[i] = new TrainSim(parameters, i);\n trains[i].genbasis();\n\n }\n\n // Add linked tasks to trains.\n\n for (Task each : linked) {\n\n int trainid = each.getTrain();\n each = new Task(each.getType(), each.getBeginTime(), parameters, false);\n each.setID(trainid);\n if (each.getArrTime() < parameters.numHours*60) {\n trains[trainid].linktask(each);\n }\n }\n\n // Run each train\n\n for (TrainSim each : trains) {\n\n each.run();\n\n }\n\n }",
"public void performTraining() {\n\tint counter = 0;\n\tint success = 0;\n\n\tdo {\n\t success = 0;\n\n\t for (int ii = 0; ii < pl.size(); ii++) {\n\t\tPattern pn = pl.get(ii);\n\t\tbp.runNetwork(pn);\n\t\tbp.trainNetwork(pn);\n\n\t\tdouble truth[] = pn.getOutput();\t\t\n\t\tdouble results[] = bp.getOutputPattern();\n\n\t\tboolean failed = false;\n\n// \t\tSystem.out.print(\"patt \" + ii + \" \");\n// \t\tdouble[] input = pn.getInput();\n// for (int jj = 0; jj < input.length; jj++) {\n// \t\t System.out.print(round2(input[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.print(\"// \");\n// for (int jj = 0; jj < truth.length; jj++) {\n// \t\t System.out.print(round2(truth[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.println();\n\n// for (int jj = 0; jj < results.length; jj++) {\n// \t\t System.out.print(results[jj] + \" \");\n// \t\t // System.out.print(round2(results[jj]) + \" \");\n// \t\t}\n// \t\tSystem.out.println();\n\t\t\n\t\tfor (int jj = 0; jj < results.length; jj++) {\n if (round1(results[jj]) != round2(truth[jj])) {\n failed = true;\n }\n\t\t}\n \n if (!failed) {\n ++success;\n } \n }\n\n\t if ((++counter % 100) == 0) {\n System.out.println(counter + \" success:\" + success + \" needed:\" + pl.size());\n }\n } while (success < pl.size());\n\t\n\tSystem.out.println(\"Training complete in \" + counter + \" cycles\");\n }",
"public void nextBatch(boolean training) {\n if (training) {\n trainSet = train.next();\n } else {\n testSet = test.next();\n }\n }",
"public void trainFromExamples(int noOfIteration, double eenta) throws FileNotFoundException {\n //Use the wordcount to calcualte the weight verctor repetetively\n for (int count = 0; count < noOfIteration; count++) \n {\n for (List<Integer> wordCount : wordCountSpamList) \n {\n //Compute the new weight vector\n calculateNewWeightVector(eenta, true, wordCount);\n \n }\n for (List<Integer> wordCount : wordCountHamList) \n {\n //Compute the new weight vector\n calculateNewWeightVector(eenta, false, wordCount);\n \n }\n }\n \n }",
"public void train() {\n while (!environment.inTerminalState()) {\n\n Action action = policy.chooseAction(environment);\n List<Double> stateAction = environment.getStateAction(action);\n\n double knownReward = environment.immediateReward(action);\n double totalReward = environment.performAction(action);\n double unknownReward = totalReward - knownReward;\n\n // Next state of environment is implicitly passed.\n backup(stateAction, unknownReward);\n }\n }",
"private void train(float[] inputs, int desired) {\r\n int guess = feedforward(inputs);\r\n float error = desired - guess;\r\n for (int i = 0; i < weights.length; i++) {\r\n weights[i] += c * error * inputs[i];\r\n }\r\n }",
"@Override\n protected void runOneIteration() throws Exception {\n }",
"public void train (String trainingCollection) throws IOException {\n\t\tDocumentCollection trainCol = new DocumentCollection(trainingCollection);\n\t\ttrainCol.open();\n\t\tfor (int i=0; i<trainCol.size(); i++) {\n\t\t\tExternalDocument doc = trainCol.get(i);\n\t\t\ttrain (doc);\n\t\t}\n\t}",
"public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }",
"public void runOneIteration() {\n\t\t// Update user latent vectors\n\t\tfor (int u = 0; u < userCount; u++) {\n\t\t\tupdate_user(u);\n\t\t}\n\n\t\t// Update item latent vectors\n\t\tfor (int i = 0; i < itemCount; i++) {\n\t\t\tupdate_item(i);\n\t\t}\n\t}",
"@Override\n public void run() {\n if (experiment.randomSeed != -1) {\n ThreadLocalRandom.current().setSeed(experiment.randomSeed);\n }\n\n // Initialise the environment and agents\n environment.initialise();\n for (Agent agent : agents) {\n agent.initialise();\n }\n\n // Add the agents to the environment\n for (Agent agent : agents) {\n environment.add(agent);\n }\n\n // Run the experiment\n for (int update = 1, episode = 1; update <= experiment.totalUpdates; episode++) {\n // Restart the environment at the beginning of an episode\n environment.restart();\n\n // Play out an episode\n for (int turn = 1; !environment.isTerminal() && (environment.maxTurns() == 0 || turn <= environment.maxTurns()) && update <= experiment.totalUpdates; turn++, update++) {\n // Perform the next turn\n environment.performTurn();\n\n // Increment the task\n task.increment();\n\n // If evaluation point\n if (update % experiment.observationFrequency == 0) {\n evaluate(run, update, episode);\n }\n }\n }\n }",
"public void driveTrainLoop() {\n if (Config.getInstance().getBoolean(Key.ROBOT__HAS_DRIVETRAIN)) {\n // Check User Inputs\n double driveThrottle = mOperatorInterface.getDriveThrottle();\n double driveTurn = mOperatorInterface.getDriveTurn();\n\n boolean WantsAutoAim = mOperatorInterface.getFeederSteer();\n\n // Continue Driving\n if (WantsAutoAim == true) {\n // Harvest Mode - AutoSteer Functionality\n // Used for tracking a ball\n // we may want to limit the speed?\n // RobotTracker.RobotTrackerResult DriveResult =\n // mRobotTracker.GetFeederStationError(Timer.getFPGATimestamp());\n mDriveState = DriveState.AUTO_DRIVE;\n\n VisionPacket vp = mRobotTracker.GetTurretVisionPacket(Timer.getFPGATimestamp());\n // mDrive.autoSteerFeederStation(driveThrottle, vp.Error_Angle);\n } else {\n // Standard Manual Drive\n mDrive.setDrive(driveThrottle, driveTurn, false);\n\n // if we were previously in auto drive.. turn it off\n if (mDriveState == DriveState.AUTO_DRIVE) {\n mDriveState = DriveState.MANUAL;\n }\n }\n }\n }",
"public IObserver train(IContext context) throws ThinklabException;",
"private void trainPerceptron() {\n\t\t// Creates a log of that contains the percentage each epoch got correct\n\t\tint numWrong = images.size();\n\t\tint numReps = 0;\n\n\t\t// Repeat the training process TIMES_TO_REPEAT number of times or until\n\t\t// there are none wrong\n\t\tfor (int repetition = 0; repetition < TIMES_TO_REPEAT && numWrong != 0; repetition++) {\n\t\t\tint numCorrect = 0;\n\n\t\t\t// Iterate through each image in the set of image\n\t\t\tfor (PerceptronImage image : images) {\n\t\t\t\tdouble netInput = 0;\n\n\t\t\t\t// Work out the net input by evaluating each feature on the\n\t\t\t\t// image\n\t\t\t\tfor (Feature feature : features) {\n\t\t\t\t\tnetInput += feature.evaluate(image) * feature.getWeight();\n\t\t\t\t}\n\n\t\t\t\t// If the image is evaluated to be an X\n\t\t\t\tif (netInput <= 0) {\n\t\t\t\t\t// If it actually is an X then record it\n\t\t\t\t\tif (image.isX()) {\n\t\t\t\t\t\tnumCorrect++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If it is not then re-weight features\n\t\t\t\t\t\tfor (Feature feature : features) {\n\t\t\t\t\t\t\tdouble newWeight = feature.getWeight()\n\t\t\t\t\t\t\t\t\t+ feature.evaluate(image) * learningRate;\n\t\t\t\t\t\t\tfeature.setWeight(newWeight);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// If the image is evaluated to be not an X\n\t\t\t\t\t// If it actually not an X then record it\n\t\t\t\t\tif (!image.isX()) {\n\t\t\t\t\t\tnumCorrect++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// If it is not then re-weight features\n\t\t\t\t\t\tfor (Feature feature : features) {\n\t\t\t\t\t\t\tdouble newWeight = feature.getWeight()\n\t\t\t\t\t\t\t\t\t- feature.evaluate(image) * learningRate;\n\t\t\t\t\t\t\tfeature.setWeight(newWeight);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Update the number of images wrong for this epoch\n\t\t\tnumWrong = images.size() - numCorrect;\n\n\t\t\t// Modify the learning rate\n\t\t\tif (learningRate > LEARNING_RATE_MINIMUM) {\n\t\t\t\tlearningRate *= LEARNING_RATE_MODIFIER;\n\t\t\t}\n\n\t\t\tnumReps++;\n\t\t}\n\n\t\ttry {\n\t\t\tPrintWriter writer = new PrintWriter(\"output.txt\");\n\t\t\t\n\t\t\t// Print out the number of repetitions if the perceptron converged,\n\t\t\t// otherwise print out the number of images that are still classified\n\t\t\t// incorrectly\n\t\t\tif (numWrong == 0) {\n\t\t\t\twriter.println(\"Perceptron converged\");\n\t\t\t\twriter.println(\"Number of repetitions: \" + numReps);\n\t\t\t\tSystem.out.println(\"Perceptron converged\");\n\t\t\t\tSystem.out.println(\"Number of repetitions: \" + numReps);\n\t\t\t} else {\n\t\t\t\twriter.println(\"Perceptron did not converge\");\n\t\t\t\twriter.println(\"Number of images still incorrect: \" + numWrong);\n\t\t\t\tSystem.out.println(\"Perceptron did not converge\");\n\t\t\t\tSystem.out.println(\"Number of images still incorrect: \" + numWrong);\n\t\t\t}\n\n\t\t\twriter.println(\"\\nEnding learning Rate: \" + learningRate + \"\\n\");\n\t\t\tSystem.out.println(\"\\nEnding learning Rate: \" + learningRate + \"\\n\");\n\t\t\t\n\t\t\tfor (Feature feature : features){\n\t\t\t\tSystem.out.println(feature.toString());\n\t\t\t\twriter.println(feature.toString());\n\t\t\t}\n\t\t\twriter.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void run() {\n\t\tthis.setRunning(true);\n\t\tint iterationNumber = 0;\n\t\tstreamManager.setCounter(0);\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"************* ITERATION NUMBER: \" + iterationNumber + \" TRIPLES: \" + iterationNumber*number + \"*******************\");\n\t\t\t\n\t\t\t//Query to load all the information\n\t\t\tString query = \"SELECT DISTINCT*\"\n\t\t\t\t\t+ \"{ ?s ?p ?o }\"\n\t\t\t\t\t//+ \" ORDER BY ?s\" //If this order is made, then the SPARQL endpoint take to much time to respond.\n\t\t\t\t\t+ \" LIMIT \"+ number \n\t\t\t\t\t+ \" OFFSET \"+ number*iterationNumber;\n\t\t\titerationNumber++;\n\t\t\tQueryExecution qe = QueryExecutionFactory.sparqlService(this.serviceUrl,query);\n\t\t\ttry {\n\t\t\t\tResultSet rs = qe.execSelect();\n\t\t\t\n\t\t\t\tif(rs != null && rs.hasNext()){\n\t\t\t\t\tstreamManager.put(rs);\t//Put all the batch of answer into the streaming manager\n\t\t\t\t\tstreamManager.setCounter(streamManager.getCounter()+1); // Announced that the producer publish a result set\n\t\t\t\t\tSystem.out.println(\"Process the triples: \" + this.number);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t} catch (QueryExceptionHTTP e) {\n\t\t\t\tSystem.out.println(this.serviceUrl + \" is Not working or is DOWN\");\n\t\t\t\tbreak; //Close the cicle\n\t\t\t} \t\t\n\t\t}\n\t\tthis.setRunning(false);\n\t}",
"private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}",
"private void nextTraining() {\n\t\tif(!training_queue.isEmpty()) {\n\t\t\tPair<Soldier, Integer> tmp = training_queue.remove();\n\t\t\tif(tmp!=null) {\n\t\t\t\tcurrent = tmp.getKey();\n\t\t\t\tnb_to_train = tmp.getValue();\t\t\n\t\t\t\tnb_rounds = current.getTime_prod();\n\t\t\t}else {\n\t\t\t\tcurrent = null;\n\t\t\t\tnb_to_train = 1;\n\t\t\t\tnb_rounds = 100+50*(owner_castle.getLevel()+1);\n\t\t\t\tupgrade = true;\n\t\t\t}\n\t\t}else\n\t\t\tcurrent = null;\n\t}",
"public void infer() {\n runTime.setStartTime(System.currentTimeMillis());\n runTime.setIter(newModel.test_iters);\n System.out.println(\"Sampling \" + newModel.test_iters + \" testing iterations!\");\n\n for (int currentIter = 1; currentIter <= newModel.test_iters; currentIter++) {\n System.out.println(\"Iteration \" + currentIter + \"...\");\n\n for (int d = 0; d < newModel.D; d++) {\n\n for (int n = 0; n < newModel.corpus.docs[d].length; n++){\n HiddenVariable hv = infSZSampling(d, n);\n newModel.sAssign[d][n] = hv.sentiment;\n newModel.zAssign[d][n] = hv.topic;\n }\n } // end for each document\n } // end iterations\n runTime.setEndTime(System.currentTimeMillis());\n System.out.println(\"Gibbs sampling for inference completed!\");\n System.out.println(\"Saving the inference outputs!\");\n\n computeNewPi();\n computeNewTheta();\n computeNewPhi();\n newModel.computePerplexity();\n newModel.evaluateSentiment();\n newModel.saveModel(oldModel.modelName + \"-inference\", runTime);\n newModel.corpus.localDict.writeWordMap(option.model_dir + File.separator + oldModel.modelName + \"-inference\" + Model.wordMapSuffix);\n\n }",
"public void train() throws RankingException {\n\t\tif (this.listener != null) this.classifier.setLearningListener(this);\n\t\t\n\t\ttry {\n\t\t\tthis.classifier.train(set);\n\t\t\tthis.accuracy = this.classifier.accuracy(set);\n\t\t}\n\t\tcatch (ClassifierException e) {\n\t\t\tthrow new RankingException(\"Error training using Boosting algorithm: \"+e.getMessage(), e);\n\t\t}\n\t}",
"public int trainIteration(int initialState) {\n\t\t\n\t\tif(initialState == -1) {\n\t\t\tinitialState = (int)(Math.random() * this.rows);\n\t\t}\n\t\t\n\t\t\n\t\tboolean actionChosen = false;\n\t\tint action = -1;\n\t\t\n\t\tdouble check = Math.random();\n\t\t\n\t\tif(check > explorationRate) {\n\t\t\taction = getOptimalAction(initialState);\n\t\t}else {\n\t\t\twhile(!actionChosen) {\n\t\t\t\taction = (int)(Math.random() * this.columns);\n\t\t\t\tif(!isActionLegal(initialState, action)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}else {\n\t\t\t\t\tactionChosen = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check if action legal\n\t\t\n\n\t\t\n\t\tSystem.out.println(\"Training iteration! Chosen initialState: \" + initialState + \" and action: \" + action);\n\t\t\n\t\t// Obtain next state\n\t\t\n\t\tint newLocation = getStateActionMap(initialState, action);\n\t\t\n\t\tSystem.out.println(\"New location is: \" + newLocation);\n\t\t\n\t//\tint nCol = newLocation % (int)Math.sqrt(this.rows);\n\t//\tint nRow = (newLocation - nCol)/(int)Math.sqrt(this.rows);\n\t\t\n\t\t// Obtain immediate reward\n\t\t\n\t\tint immediateReward = getReward(initialState, action);\n\t\t\n\t\tSystem.out.println(\"De immediate reward is: \" + immediateReward);\n\t\t\n\t\t// Update Q-table\n\t\t\n\t\tint totalReward = (int)(immediateReward + this.gamma * recurseReward(newLocation));\n\t\tthis.qGrid[initialState][action] = totalReward;\n\t\t\n\t\treturn action;\n\t}",
"private void trainOnSamples() {\n for (Sample sample : samples) {\n double sum = 0;\n \n for (int i = 0; i < weights.length; i++) { //calculating w1.x1 + w2.x2 + ... \n sum += weights[i] * sample.getP()[i];\n }\n sum += bias; //adding bias to the sum\n\n if (!compareOutput(sum, sample)) { //compare network & target output\n //updating the weights\n for (int i = 0; i < weights.length; i++) {\n weights[i] += sample.getTarget() * sample.getP()[i];\n }\n //updating the bias\n bias += sample.getTarget();\n sample.setValidation(false);\n } else {\n sample.setValidation(true);\n }\n }\n }",
"@Override\n public void doEvaluation(Individual sample, boolean isTrain) {\n mainEvaluator.doEvaluation(sample, isTrain);\n }",
"public void trainBernoulli() {\t\t\n\t\tMap<String, Cluster> trainingDataSet = readFile(trainLabelPath, trainDataPath, \"training\");\n\t\tMap<String, Cluster> testingDataSet = readFile(testLabelPath, testDataPath, \"testing\");\n\n\t\t// do testing, if the predicted class and the gold class is not equal, increment one\n\t\tdouble error = 0;\n\n\t\tdouble documentSize = 0;\n\n\t\tSystem.out.println(\"evaluate the performance\");\n\t\tfor (int testKey = 1; testKey <= 20; testKey++) {\n\t\t\tCluster testingCluster = testingDataSet.get(Integer.toString(testKey));\n\t\t\tSystem.out.println(\"Cluster: \"+testingCluster.toString());\n\n\t\t\tfor (Document document : testingCluster.getDocuments()) {\n\t\t\t\tdocumentSize += 1; \n\t\t\t\tList<Double> classprobability = new ArrayList<Double>();\n\t\t\t\tMap<String, Integer> testDocumentWordCounts = document.getWordCount();\n\n\t\t\t\tfor (int classindex = 1; classindex <= 20; classindex++) {\n\t\t\t\t\t// used for calculating the probability\n\t\t\t\t\tCluster trainCluster = trainingDataSet.get(Integer.toString(classindex));\n\t\t\t\t\t// System.out.println(classindex + \" \" + trainCluster.mClassId);\n\t\t\t\t\tMap<String, Double> bernoulliProbability = trainCluster.bernoulliProbabilities;\n\t\t\t\t\tdouble probability = Math.log(trainCluster.getDocumentSize()/trainDocSize);\n\t\t\t\t\tfor(int index = 1; index <= voc.size(); index++ ){\n\n\t\t\t\t\t\t// judge whether this word is stop word \n\t\t\t\t\t\tboolean isStopwords = englishStopPosition.contains(index);\n\t\t\t\t\t\tif (isStopwords) continue;\n\n\t\t\t\t\t\tboolean contain = testDocumentWordCounts.containsKey(Integer.toString(index));\t\t\t\t\t\t\n\t\t\t\t\t\tif (contain) {\n\t\t\t\t\t\t\tprobability += Math.log(bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tprobability += Math.log(1 - bernoulliProbability.get(Integer.toString(index)));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// put the probability into the map for the specific class\n\t\t\t\t\tclassprobability.add(probability);\n\t\t\t\t}\n\t\t\t\tObject obj = Collections.max(classprobability);\n\t\t\t\t// System.out.println(classprobability);\n\t\t\t\tString predicte_class1 = obj.toString();\n\t\t\t\t// System.out.println(predicte_class1);\n\t\t\t\t// System.out.println(Double.parseDouble(predicte_class1));\n\t\t\t\tint index = classprobability.indexOf(Double.parseDouble(predicte_class1));\n\t\t\t\t// System.out.println(index);\n\t\t\t\tString predicte_class = Integer.toString(index + 1);\n\n\n\t\t\t\tconfusion_matrix[testKey - 1][index] += 1;\n\n\t\t\t\t// System.out.println(document.docId + \": G, \" + testKey + \"; P: \" + predicte_class);\n\t\t\t\tif (!predicte_class.equals(Integer.toString(testKey))) {\n\t\t\t\t\terror += 1;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize);\n\t\t}\n\n\t\tSystem.out.println(\"the error is \" + error + \"; the document size : \" + documentSize + \" precision rate : \" + (1 - error/documentSize));\n\n\t\t// print confusion matrix\n\t\tprintConfusionMatrix(confusion_matrix);\n\t}",
"protected void runBeforeIterations() {}",
"public void run() {\n System.out.println(name + \" , go!!!\" );\n\n //start running\n while (getCheckpoint() != 20){\n //delay running\n int randNumber = (int) Math.round(LetsGO.getRandomNumber()*weight);\n try {\n Thread.sleep(randNumber);\n }\n catch (InterruptedException e){\n System.out.println(name+\"interrupted.\");\n }\n System.out.println(name + \" has passed checkpoint\" + checkpoint);\n checkpoint++;\n }\n //finished running\n System.out.println(name + \"has finished!\");\n }",
"private ArrayList<Record> test() {\n\t\t\t\tfor (int i = 0; i < numberOfIterations; i++) {\n\t\t\t\t\t// for each training record\n\t\t\t\t\tfor (int j = 0; j < numberOfRecords; j++) {\n\t\t\t\t\t\t// calculate inputs and outputs\n\t\t\t\t\t\tforwardCalculation(records.get(j).input);\n\t\t\t\t\t}\n\t\t\t\t}\n//\t\t\t\tpostprocessOutputs();\n\t\t// forward pass\n\t\t// back pass\n\t\treturn records;\n\t}",
"public void train() {\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tif (ins.scorePmi_E1E2 > largestPMI)\n\t\t\t\tlargestPMI = ins.scorePmi_E1E2;\n\t\t}\n\t\tSystem.out.println(\"Largest PMI: \" + largestPMI);\n\n\t\tfor (Instance ins : arrTrainInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tfor (Instance ins : arrTestInstances) {\n\t\t\tins.scorePmi_E1E2 = ins.scorePmi_E1E2 / largestPMI;\n\t\t}\n\n\t\tint sizeD0 = arrD0.size();\n\t\tint sizeD1 = arrD1.size();\n\t\tint sizeD2 = arrD2.size();\n\t\tint sizeD3 = arrD3.size();\n\n\t\tint sizeMin = Math.min(sizeD0, Math.min(sizeD1, Math\n\t\t\t\t.min(sizeD2, sizeD3)));\n\t\tSystem.out.println(\"sizeMin=\" + sizeMin);\n\n\t\tint n = instanceNums.length;\n\n\t\tboolean flag = false;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < n; i++) {\n\n\t\t\tint k = instanceNums[i];\n\n\t\t\tif (k > sizeMin) {\n\t\t\t\tk = sizeMin;\n\t\t\t\tinstanceNums[i] = k;\n\t\t\t\tflag = true;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\\nk=\" + k);\n\n\t\t\tArrayList<Instance> arrSub0 = getInstances(arrD0, k);\n\t\t\tArrayList<Instance> arrSub1 = getInstances(arrD1, k);\n\t\t\tArrayList<Instance> arrSub2 = getInstances(arrD2, k);\n\t\t\tArrayList<Instance> arrSub3 = getInstances(arrD3, k);\n\n\t\t\tArrayList<Instance> arrTrains = new ArrayList<Instance>();\n\t\t\tarrTrains.addAll(arrSub0);\n\t\t\tarrTrains.addAll(arrSub1);\n\t\t\tarrTrains.addAll(arrSub2);\n\t\t\tarrTrains.addAll(arrSub3);\n\t\t\tCollections.shuffle(arrTrains);\n\n\t\t\tSystem.out.println(\"Training size: \" + arrTrains.size());\n\n\t\t\ttrain(arrTrains);\n\n\t\t\tdouble acc = test();\n\t\t\tacc = test();\n\n\t\t\taccuracies[i] = acc;\n\n\t\t\tcount++;\n\n\t\t\tif (flag == true)\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tSystem.out.print(\" | \" + \"K=\" + instanceNums[i]);\n\t\t}\n\t\tSystem.out.println();\n\n\t\tfor (int i = 0; i < count; i++) {\n\n\t\t\tDecimalFormat df = new DecimalFormat(\"#.####\");\n\t\t\tString res = df.format(accuracies[i]);\n\t\t\tSystem.out.print(\" | \" + res);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void run() throws FileNotFoundException, UnsupportedEncodingException {\n double averageError=1;\n int index=0;\n while(averageError> errorTreshold ||index<7) {\n trainPerceptrons();\n\n averageError= classifyPerformanceImages(asciiReader\n .getPerformanceImages());\n\n asciiReader.shuffleImages();\n index++;\n }\n \n System.out.println(\"# Average Error: \"+averageError);\n System.out.println(\"# Number of calibration rounds: \"+index);\n\n classifyTestImages();\n }",
"private void trainPerceptrons(){\n double activationValues[] = new double[4];\n for(Image image:asciiReader.getTrainingImages()){\n for (int j = 0 ; j < activationValues.length; j++){\n activationValues[j] = activationFunction\n .apply(sumWeights(j,image));\n }\n adjustWeights(activationValues,image);\n }\n }",
"public void buildModel() {\n double loss_pre = Double.MAX_VALUE;\n for (int iter = 0; iter < maxIter; iter ++) {\n Long start = System.currentTimeMillis();\n if (showProgress)\n System.out.println(\"Iteration \"+(iter+1)+\" started\");\n // Update user latent vectors\n IntStream.range(0,userCount).parallel().peek(i->update_user(i)).forEach(j->{});\n /*\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n */\n if (showProgress) {\n System.out.println(\"Users updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n IntStream.range(0,itemCount).parallel().peek(i->update_item(i)).forEach(j->{});\n // Update item latent vectors\n /*\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n */\n if (showProgress) {\n System.out.println(\"Items updated for \" + (System.currentTimeMillis() - start) + \"millis\");\n start = System.currentTimeMillis();\n }\n\n // Show loss\n if (showLoss)\n loss_pre = showLoss(iter, start, loss_pre);\n\n\n } // end for iter\n\n }",
"@Test\n public void testTrain() {\n System.out.println(\"train\");\n TokenizedLine tokenizedLine = null;\n ArrayList<Words> expResult = null;\n ArrayList<Words> result = Training.train(tokenizedLine);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n \n }",
"public void evaluate(String trainFile, double percentTrain, String testFile, String featureDefFile) {\n/* 799 */ List<RankList> train = new ArrayList<>();\n/* 800 */ List<RankList> validation = new ArrayList<>();\n/* 801 */ int[] features = prepareSplit(trainFile, featureDefFile, percentTrain, normalize, train, validation);\n/* 802 */ List<RankList> test = null;\n/* */ \n/* */ \n/* 805 */ if (!testFile.isEmpty()) {\n/* */ \n/* 807 */ test = readInput(testFile);\n/* 808 */ if (normalize) {\n/* 809 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 812 */ RankerTrainer trainer = new RankerTrainer();\n/* 813 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 815 */ if (test != null) {\n/* */ \n/* 817 */ double rankScore = evaluate(ranker, test);\n/* 818 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 820 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 822 */ System.out.println(\"\");\n/* 823 */ ranker.save(modelFile);\n/* 824 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tThread.sleep(750);\n\t\t} catch (InterruptedException ex) {\n\t\t\treturn;\n\t\t}\n\t\tinitializeLabels();\n\t\tint iteration = 0;\n\t\twhile (iteration++ < maxIterations && !Thread.interrupted()) {\n\t\t\tappData.showCurrentIteration(iteration);\n\t\t\tassignLabels();\n\t\t\tif(iteration % updateInterval == 0){\n\t\t\t\tappData.updateChart(iteration);\n\t\t\t\tif (!isContinuous) {\n\t\t\t\t\tappData.enableRun();\n\t\t\t\t\ttocontinue.set(false);\n\t\t\t\t\twhile (!tocontinue()) { //wait until play is clicked\n\t\t\t\t\t\tif (Thread.interrupted()) {\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tappData.disableRun();\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tThread.sleep(750);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\tif(iteration-1 == maxIterations){\n\t\t\tappData.completeAlgorithm(); //algorithm exhausted all iterations\n\t\t\tappData.updateChart(maxIterations);\n\t\t}else{\n\t\t\tappData.autocompleteAlgorithm(); //algorithm terminated by itself\n\t\t\tappData.updateChart(iteration);\n\t\t}\n\t}",
"public void train() {\n\n\t\tint D = Os.length;\n\t\tint T_n = 0;\n\t\tdouble log_likelihood = 0;\n\t\tdouble log_likelihood_new = 0;\n\t\tdouble epsilon = this.epsilon;\n\t\tint maxIter = this.maxIter;\n\n\t\t// Initialization\n\n\t\tclearVector(pi);\n\t\tclearMatrix(A);\n\t\tclearMatrix(B);\n\n\t\tdouble[] a = allocateVector(N);\n\t\tdouble[] b = allocateVector(N);\n\n\t\tint[] Q_n = null;\n\t\tint[] O_n = null;\n\t\t\n\t\tif (Qs == null) {\n\t\t\t\n\t\t\tpi = initializePi();\n\t\t\tA = initializeA();\n\t\t\tB = initializeB();\n\t\t\t\n\t\t} else {\n\t\t\t\n\t\t\tfor (int n = 0; n < D; n++) {\n\t\t\t\tQ_n = Qs[n];\n\t\t\t\tO_n = Os[n];\n\t\t\t\tT_n = Os[n].length;\n\t\t\t\tfor (int t = 0; t < T_n; t++) {\n\t\t\t\t\tif (t < T_n - 1) {\n\t\t\t\t\t\tA[Q_n[t]][Q_n[t + 1]] += 1;\n\t\t\t\t\t\ta[Q_n[t]] += 1;\n\t\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\t\tpi[Q_n[0]] += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tB[Q_n[t]][O_n[t]] += 1;\n\t\t\t\t\tb[Q_n[t]] += 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tdivideAssign(pi, D);\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdivideAssign(A[i], a[i]);\n\t\t\t\tdivideAssign(B[i], b[i]);\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t\tint s = 0;\n\t\tdouble[] pi_new = allocateVector(N);\n\t\tdouble[][] A_new = allocateMatrix(N, N);\n\t\tdouble[][] B_new = allocateMatrix(N, M);\n\t\tdouble[] temp_pi = null;\n\t\tdouble[][] temp_A = null;\n\t\tdouble[][] temp_B = null;\n\t\tdouble[][] alpha_hat = null;\n\t\tdouble[][] beta_hat = null;\n\t\tdouble[] c_n = null;\n\t\tdouble[][] xi = allocateMatrix(N, N);\n\t\tdouble[] gamma = allocateVector(N);\n\t\tdo {\n\n\t\t\t// Clearance\n\t\t\tclearVector(pi_new);\n\t\t\tclearMatrix(A_new);\n\t\t\tclearMatrix(B_new);\n\t\t\tclearVector(a);\n\t\t\tclearVector(b);\n\t\t\t/*clearMatrix(xi);\n\t\t\tclearVector(gamma);*/\n\t\t\tlog_likelihood_new = 0;\n\n\t\t\tfor (int n = 0; n < D; n++) {\n\n\t\t\t\t// Q_n = Qs[n];\n\t\t\t\tO_n = Os[n];\n\t\t\t\tT_n = Os[n].length;\n\t\t\t\tc_n = allocateVector(T_n);\n\t\t\t\talpha_hat = allocateMatrix(T_n, N);\n\t\t\t\tbeta_hat = allocateMatrix(T_n, N);\n\n\t\t\t\t// Forward Recursion with Scaling\t\t\t\n\n\t\t\t\tfor (int t = 0; t <= T_n - 1; t++) {\n\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\talpha_hat[0][i] = pi[i] * B[i][O_n[0]];\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\t\talpha_hat[t][j] += alpha_hat[t - 1][i] * A[i][j] * B[j][O_n[t]];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tc_n[t] = 1.0 / sum(alpha_hat[t]);\n\t\t\t\t\ttimesAssign(alpha_hat[t], c_n[t]);\n\t\t\t\t}\n\n\t\t\t\t// Backward Recursion with Scaling\n\n\t\t\t\tfor (int t = T_n + 1; t >= 2; t--) {\n\t\t\t\t\tif (t == T_n + 1) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tbeta_hat[t - 2][i] = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif (t <= T_n) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\t\tbeta_hat[t - 2][i] += A[i][j] * B[j][O_n[t - 1]] * beta_hat[t - 1][j];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ttimesAssign(beta_hat[t - 2], c_n[t - 2]);\n\t\t\t\t}\n\n\t\t\t\t// Expectation Variables and Updating Model Parameters\n\n\t\t\t\tfor (int t = 0; t <= T_n - 1; t++) {\n\t\t\t\t\tif (t < T_n - 1) {\n\t\t\t\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\t\t\txi[i][j] = alpha_hat[t][i] * A[i][j] * B[j][O_n[t + 1]] * beta_hat[t + 1][j];\n\t\t\t\t\t\t\t\t// A_new[i][j] += xi[i][j];\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tplusAssign(A_new[i], xi[i]);\n\t\t\t\t\t\t\tgamma[i] = sum(xi[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (t == 0) {\n\t\t\t\t\t\t\tplusAssign(pi_new, gamma);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tplusAssign(a, gamma);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassignVector(gamma, alpha_hat[t]);\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\t\t\tB_new[j][O_n[t]] += gamma[j];\n\t\t\t\t\t}\n\t\t\t\t\tplusAssign(b, gamma);\n\t\t\t\t\tlog_likelihood_new += -Math.log(c_n[t]);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\t// Normalization (Sum to One)\n\n\t\t\tsum2one(pi_new);\n\n\t\t\tfor (int i = 0; i < N; i++) {\n\t\t\t\tdivideAssign(A_new[i], a[i]);\n\t\t\t}\n\n\t\t\tfor (int j = 0; j < N; j++) {\n\t\t\t\tdivideAssign(B_new[j], b[j]);\n\t\t\t}\n\n\t\t\ttemp_pi = pi;\n\t\t\tpi = pi_new;\n\t\t\tpi_new = temp_pi;\n\n\t\t\ttemp_A = A;\n\t\t\tA = A_new;\n\t\t\tA_new = temp_A;\n\n\t\t\ttemp_B = B;\n\t\t\tB = B_new;\n\t\t\tB_new = temp_B;\n\t\t\t// display(B);\n\n\t\t\ts = s + 1;\n\n\t\t\tif (s > 1) {\n\t\t\t\tif (Math.abs((log_likelihood_new - log_likelihood) / log_likelihood) < epsilon) {\n\t\t\t\t\tfprintf(\"log[P(O|Theta)] does not increase.\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tlog_likelihood = log_likelihood_new;\n\t\t\tfprintf(\"Iter: %d, log[P(O|Theta)]: %f\\n\", s, log_likelihood);\n\n\t\t} while (s < maxIter);\n\n\t}",
"private String train(float[][][] features, float[] label, int epochs){\n org.tensorflow.Tensor x_train = Tensor.create(features);\n Tensor y_train = Tensor.create(label);\n int ctr = 0;\n while (ctr < epochs) {\n sess.runner().feed(\"input\", x_train).feed(\"target\", y_train).addTarget(\"train_op\").run();\n ctr++;\n }\n return \"Model Trained\";\n }",
"private void trainCombined() throws Exception\n\t{\n\t\tdbiterator.setDataSource(DBInstanceIterator.DBSource.COMPLEX);\n\t\tSystem.out.println(\"Starting reading Complex Trainingset ..\");\n\t\tPipe serialpipe = getComplexPipe(); //as reference unigram best than unigram in POS\n\t\tInstanceList complex_instances = new InstanceList(serialpipe);\n\t\tSystem.out.println(\"Preprocessing on Complex Trainingset ..\");\n\t\tcomplex_instances.addThruPipe(dbiterator);\n\t\tSystem.out.println(\"Complex Training set : \" + complex_instances.size());\n\t\tSystem.out.println(\"Saving preprocessed data ..\");\n\t\tsaveinstances(complex_instances, Train + \"C.bin\");\n\t\tSystem.out.println(\"Saving Complex data ..\");\n\t\tcomplex_instances.getDataAlphabet().dump(new PrintWriter(new File(Attributes + \"complex.dat\")));\n\n\t\tClassifierTrainer trainer = new NaiveBayesTrainer();\n\t\tSystem.out.println(\"NaiveBayes Starts Training on Complex training set ..\");\n\t\tClassifier classifier = trainer.train(complex_instances);\n\t\tSystem.out.println(\"Targets labels : \\t\"+classifier.getLabelAlphabet());\n\t\tSystem.out.println(\"Saving Naive Bayes Classifier ..\");\n\t\tsaveModel(classifier, Complex_Train);\n\t\tSystem.out.println(\"Complex classifier saved to : \" + Complex_Train);\n\t}",
"@Override\n public Iterator<Instance> call(Iterator<FoldMaker> foldMakerIterator)\n throws DistributedWekaException {\n\n if (foldMakerIterator.hasNext()) {\n int count = 0;\n while (foldMakerIterator.hasNext()) {\n if (count > 1) {\n throw new DistributedWekaException(\n \"We seem to have more than one \"\n + \"FoldMaker in this partition!\");\n }\n FoldMaker current = foldMakerIterator.next();\n Instances training = current.getTrainingFold(foldNumber);\n m_trainingInstancesForFold = new ArrayList<>(training.size());\n for (int i = 0; i < training.numInstances(); i++) {\n m_trainingInstancesForFold.add(training.get(i));\n }\n\n count++;\n }\n }\n\n return m_trainingInstancesForFold.iterator();\n }",
"public void epoch(double learningRate, int times, int testSize){\r\n int count = 1;\r\n System.out.println(\"The untrained whole set accuracy is \" + testWholeSetAccuracy());\r\n while(count <= times){\r\n double loss = 0;\r\n scramble();\r\n for (int i = 0; i < data.length - testSize; i++ ){\r\n calculateOutput(i);\r\n calculateGradients(i, learningRate);\r\n loss += calculateLoss(i);\r\n }\r\n System.out.println(\"This is the \" + count + \" epoch. The loss is \" + loss / (data.length - testSize));\r\n System.out.println(\"The test set accuracy is \" + testAccuracy(testSize));\r\n System.out.println(\"The whole set accuracy is \" + testWholeSetAccuracy());\r\n count++;\r\n }\r\n }",
"public void run() throws Exception {\r\n long start_time;\r\n // Make sure everything is ready\r\n checkIfReady();\r\n\r\n while (CurrentIteration < MaxIteration) {\r\n System.out.println(\"\\tWorking on iteration \" + (CurrentIteration + 1)\r\n + \" out of \" + MaxIteration);\r\n\r\n // Check to see whether we need to add more candidates\r\n if (Candidates.size() <= CurrentIteration) {\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nGenerating list of new candidates...\");\r\n }\r\n // If needed, train the optimization algorithm\r\n if (ObjectiveFunction instanceof MultiObjectiveEntryRanker) {\r\n MultiObjectiveEntryRanker Ptr = (MultiObjectiveEntryRanker) ObjectiveFunction;\r\n Ptr.train((MultiPropertyDataset) getFullDataset(CurrentIteration));\r\n }\r\n \r\n Dataset new_entries = getNewCandidates();\r\n if (Candidates.size() != currentIteration()) {\r\n throw new Exception(\"Candidates array incorrect size. Ensure getNewCandidates did not edit it.\");\r\n }\r\n Candidates.add(new_entries);\r\n Oracle.importDataset(new_entries);\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n }\r\n\r\n // Evaluate all the new candidates using the oracle\r\n start_time = System.currentTimeMillis();\r\n if (PrintStatus) {\r\n System.out.print(\"\\nEvaluating new candidates...\");\r\n }\r\n Oracle.evaluateEntries();\r\n if (PrintStatus) {\r\n System.out.println(\"Done.\");\r\n UtilityOperations.printRunTime(start_time);\r\n }\r\n\r\n // If all entries have been calculated, add them to Candidates and continue\r\n if (Oracle.isComplete()) {\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle has finished calculating.\");\r\n }\r\n Dataset new_entries = Oracle.extractDataset();\r\n Candidates.set(CurrentIteration, new_entries);\r\n CurrentIteration++;\r\n } else {\r\n // If not, return\r\n if (PrintStatus) {\r\n System.out.println(\"Oracle did not finish calculating. Check back later.\");\r\n }\r\n return;\r\n }\r\n }\r\n }",
"public static void runTrainControllers() {\n Map<String, TrainController> trains = getTrainControllers();\n for (String s : trains.keySet()) {\n TrainController tc = trains.get(s);\n if (tc.isRunning()) {\n PowerCalculator.run(tc);\n }\n }\n }",
"protected void runTest() {\n\t\trunTest(getIterations());\n\t}",
"protected void runTest(int iterations) {\n\t\tsteps = 0;\n\t\trunBeforeIterations();\n\t\tfor (iteration = 0; iteration < iterations; iteration++) {\n\t\t\trunBeforeIteration();\n\t\t\tstep = 0;\n\t\t\twhile (hasNextStep()) {\n\t\t\t\trunBeforeStep();\n\t\t\t\tresult = runStep();\n\t\t\t\trunAfterStep();\n\t\t\t\tstep++;\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t\trunAfterIteration();\n\t\t}\n\t\trunAfterIterations();\n\t}",
"public abstract void Train() throws Exception;",
"public void evaluate(String sampleFile, String featureDefFile, int nFold, float tvs, String modelDir, String modelFile) {\n/* 854 */ List<List<RankList>> trainingData = new ArrayList<>();\n/* 855 */ List<List<RankList>> validationData = new ArrayList<>();\n/* 856 */ List<List<RankList>> testData = new ArrayList<>();\n/* */ \n/* */ \n/* */ \n/* 860 */ List<RankList> samples = readInput(sampleFile);\n/* */ \n/* */ \n/* 863 */ int[] features = readFeature(featureDefFile);\n/* 864 */ if (features == null) {\n/* 865 */ features = FeatureManager.getFeatureFromSampleVector(samples);\n/* */ }\n/* 867 */ FeatureManager.prepareCV(samples, nFold, tvs, trainingData, validationData, testData);\n/* */ \n/* */ \n/* 870 */ if (normalize)\n/* */ {\n/* 872 */ for (int j = 0; j < nFold; j++) {\n/* */ \n/* 874 */ normalizeAll(trainingData, features);\n/* 875 */ normalizeAll(validationData, features);\n/* 876 */ normalizeAll(testData, features);\n/* */ } \n/* */ }\n/* */ \n/* 880 */ Ranker ranker = null;\n/* 881 */ double scoreOnTrain = 0.0D;\n/* 882 */ double scoreOnTest = 0.0D;\n/* 883 */ double totalScoreOnTest = 0.0D;\n/* 884 */ int totalTestSampleSize = 0;\n/* */ \n/* 886 */ double[][] scores = new double[nFold][]; int i;\n/* 887 */ for (i = 0; i < nFold; i++) {\n/* 888 */ (new double[2])[0] = 0.0D; (new double[2])[1] = 0.0D; scores[i] = new double[2];\n/* 889 */ } for (i = 0; i < nFold; i++) {\n/* */ \n/* 891 */ List<RankList> train = trainingData.get(i);\n/* 892 */ List<RankList> vali = null;\n/* 893 */ if (tvs > 0.0F)\n/* 894 */ vali = validationData.get(i); \n/* 895 */ List<RankList> test = testData.get(i);\n/* */ \n/* 897 */ RankerTrainer trainer = new RankerTrainer();\n/* 898 */ ranker = trainer.train(this.type, train, vali, features, this.trainScorer);\n/* */ \n/* 900 */ double s2 = evaluate(ranker, test);\n/* 901 */ scoreOnTrain += ranker.getScoreOnTrainingData();\n/* 902 */ scoreOnTest += s2;\n/* 903 */ totalScoreOnTest += s2 * test.size();\n/* 904 */ totalTestSampleSize += test.size();\n/* */ \n/* */ \n/* 907 */ scores[i][0] = ranker.getScoreOnTrainingData();\n/* 908 */ scores[i][1] = s2;\n/* */ \n/* */ \n/* 911 */ if (!modelDir.isEmpty()) {\n/* */ \n/* 913 */ ranker.save(FileUtils.makePathStandard(modelDir) + \"f\" + (i + 1) + \".\" + modelFile);\n/* 914 */ System.out.println(\"Fold-\" + (i + 1) + \" model saved to: \" + modelFile);\n/* */ } \n/* */ } \n/* 917 */ System.out.println(\"Summary:\");\n/* 918 */ System.out.println(this.testScorer.name() + \"\\t| Train\\t| Test\");\n/* 919 */ System.out.println(\"----------------------------------\");\n/* 920 */ for (i = 0; i < nFold; i++)\n/* 921 */ System.out.println(\"Fold \" + (i + 1) + \"\\t| \" + SimpleMath.round(scores[i][0], 4) + \"\\t| \" + SimpleMath.round(scores[i][1], 4) + \"\\t\"); \n/* 922 */ System.out.println(\"----------------------------------\");\n/* 923 */ System.out.println(\"Avg.\\t| \" + SimpleMath.round(scoreOnTrain / nFold, 4) + \"\\t| \" + SimpleMath.round(scoreOnTest / nFold, 4) + \"\\t\");\n/* 924 */ System.out.println(\"----------------------------------\");\n/* 925 */ System.out.println(\"Total\\t| \\t\\t| \" + SimpleMath.round(totalScoreOnTest / totalTestSampleSize, 4) + \"\\t\");\n/* */ }",
"public void iterate(double zk) {\n\t\t\tprediction();\n\t\t\tcorrection(zk);\n\t}",
"public abstract void fit(BinaryData trainingData);",
"public boolean iterate() {\n\t\tupdated = false;\n//\t\tSystem.out.println(\"QN iterations \"+iterations);\n\t\tif( mode == 0 ) {\n\t\t\treturn computeSearchDirection();\n\t\t} else {\n\t\t\treturn performLineSearch();\n\t\t}\n\t}",
"public void runOneIteration() {\n // Update user latent vectors\n\n //IntStream.range(0,userCount).peek(i->update_user(i)).forEach(j->{});\n\n for (int u = 0; u < userCount; u ++) {\n update_user(u);\n }\n\n // Update item latent vectors\n for (int i = 0; i < itemCount; i ++) {\n update_item(i);\n }\n }",
"void applyForTraining(int studentId, int trainingId) throws ServiceException;",
"private void learn() {\n\t\tupdateValues();\n\t\tif(CFG.isUpdatedPerformanceHistory()){\n\t\t\tupdateHistory();\n\t\t}\n\t\tif(CFG.isEvaluated()) evaluate();\n\t}",
"public static void train(MultiLayerPerceptron mlp, int epochs){\n for(int i = 0; i < epochs; i++){\n /**\n * Randomize the order of the samples.\n */\n trainingSet.shuffle();\n for(int j = 0; j < trainingSet.getTests().size(); j++){\n ArrayList<Float> actualOutput = mlp.calculateOutput(trainingSet.getInput(j));\n ArrayList<Float> expectedOutput = trainingSet.getOutput(j);\n\n mlp.modifyWeights(actualOutput,expectedOutput);\n }\n }\n }",
"public void evaluate(String trainFile, String validationFile, String testFile, String featureDefFile) {\n/* 710 */ List<RankList> train = readInput(trainFile);\n/* */ \n/* 712 */ List<RankList> validation = null;\n/* */ \n/* 714 */ if (!validationFile.isEmpty()) {\n/* 715 */ validation = readInput(validationFile);\n/* */ }\n/* 717 */ List<RankList> test = null;\n/* */ \n/* 719 */ if (!testFile.isEmpty()) {\n/* 720 */ test = readInput(testFile);\n/* */ }\n/* 722 */ int[] features = readFeature(featureDefFile);\n/* 723 */ if (features == null) {\n/* 724 */ features = FeatureManager.getFeatureFromSampleVector(train);\n/* */ }\n/* 726 */ if (normalize) {\n/* */ \n/* 728 */ normalize(train, features);\n/* 729 */ if (validation != null)\n/* 730 */ normalize(validation, features); \n/* 731 */ if (test != null) {\n/* 732 */ normalize(test, features);\n/* */ }\n/* */ } \n/* 735 */ RankerTrainer trainer = new RankerTrainer();\n/* 736 */ Ranker ranker = trainer.train(this.type, train, validation, features, this.trainScorer);\n/* */ \n/* 738 */ if (test != null) {\n/* */ \n/* 740 */ double rankScore = evaluate(ranker, test);\n/* 741 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* */ } \n/* 743 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 745 */ System.out.println(\"\");\n/* 746 */ ranker.save(modelFile);\n/* 747 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }",
"@Override\n\tpublic void train(Instance[] trainingData, int v) {\n\n\t\t// For all the words in the documents, count the number of occurrences. Save in\n\t\t// HashMap\n\t\t// e.g.\n\t\t// m_map[0].get(\"catch\") should return the number of \"catch\" es, in the\n\t\t// documents labeled sports\n\t\t// Hint: m_map[0].get(\"asdasd\") would return null, when the word has not\n\t\t// appeared before.\n\t\t// Use m_map[0].put(word,1) to put the first count in.\n\t\t// Use m_map[0].replace(word, count+1) to update the value\n\t\tm_trainingData = trainingData;\n\t\tm_v = v;\n\t\tm_map[0] = new HashMap<>();\n\t\tm_map[1] = new HashMap<>();\n\n\t\t// iterate the instances (i.e., articles) in the training data\n\t\tfor (int i = 0; i < m_trainingData.length; i++) {\n\t\t\tInstance article = m_trainingData[i];\n\t\t\t// if this article belongs to sports\n\t\t\tif (article.label.equals(Label.SPORTS)) {\n\t\t\t\t// iterate each word in this article\n\t\t\t\tfor (int j = 0; j < article.words.length; j++) {\n\t\t\t\t\tString word = article.words[j];\n\t\t\t\t\t// if this word exists in the sports hashmap\n\t\t\t\t\tif (m_map[0].containsKey(word)) {\n\t\t\t\t\t\tm_map[0].replace(word, m_map[0].get(word).intValue() + 1);\n\t\t\t\t\t}\n\t\t\t\t\t// if this word is a new word in the sports hashmap\n\t\t\t\t\telse {\n\t\t\t\t\t\tm_map[0].put(word, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// if this article belongs to business (i.e., non-sports)\n\t\t\telse {\n\t\t\t\t// iterate each word in this article\n\t\t\t\tfor (int j = 0; j < article.words.length; j++) {\n\t\t\t\t\tString word = article.words[j];\n\t\t\t\t\t// if this word exists in the business hashmap\n\t\t\t\t\tif (m_map[1].containsKey(word)) {\n\t\t\t\t\t\tm_map[1].replace(word, m_map[1].get(word).intValue() + 1);\n\t\t\t\t\t}\n\t\t\t\t\t// if this word is a new word in the sports hashmap\n\t\t\t\t\telse {\n\t\t\t\t\t\tm_map[1].put(word, 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// |V| is the size of the total vocabulary we assume we will encounter (i.e.,\n\t\t// the dictionary size) from training data and test data\n\t\t// The value |V| will be passed to the train method of your classifier as the\n\t\t// argument int v.\n\n\t\t// To obtain the number of word type\n\t\tSet<String> all = new HashSet<String>();\n\t\tfor (int j = 0; j < m_trainingData.length; j++) {\n\t\t\tfor (int k = 0; k < m_trainingData[j].words.length; k++) {\n\t\t\t\tall.add(m_trainingData[j].words[k]);\n\t\t\t}\n\t\t}\n\n\t\t// To obtain the total number of words for each class(label)\n\t\tsumV[0] = 0.0;\n\t\tsumV[1] = 0.0;\n\t\tfor (String w : all) {\n\t\t\tif (m_map[0].get(w) != null) {\n\t\t\t\tsumV[0] += m_map[0].get(w);\n\t\t\t}\n\t\t\tif (m_map[1].get(w) != null) {\n\t\t\t\tsumV[1] += m_map[1].get(w);\n\t\t\t}\n\t\t}\n\t}",
"public void evaluate(String sampleFile, String validationFile, String featureDefFile, double percentTrain) {\n/* 761 */ List<RankList> trainingData = new ArrayList<>();\n/* 762 */ List<RankList> testData = new ArrayList<>();\n/* 763 */ int[] features = prepareSplit(sampleFile, featureDefFile, percentTrain, normalize, trainingData, testData);\n/* 764 */ List<RankList> validation = null;\n/* */ \n/* */ \n/* 767 */ if (!validationFile.isEmpty()) {\n/* */ \n/* 769 */ validation = readInput(validationFile);\n/* 770 */ if (normalize) {\n/* 771 */ normalize(validation, features);\n/* */ }\n/* */ } \n/* 774 */ RankerTrainer trainer = new RankerTrainer();\n/* 775 */ Ranker ranker = trainer.train(this.type, trainingData, validation, features, this.trainScorer);\n/* */ \n/* 777 */ double rankScore = evaluate(ranker, testData);\n/* */ \n/* 779 */ System.out.println(this.testScorer.name() + \" on test data: \" + SimpleMath.round(rankScore, 4));\n/* 780 */ if (modelFile.compareTo(\"\") != 0) {\n/* */ \n/* 782 */ System.out.println(\"\");\n/* 783 */ ranker.save(modelFile);\n/* 784 */ System.out.println(\"Model saved to: \" + modelFile);\n/* */ } \n/* */ }",
"protected void runBeforeIteration() {}",
"private void train(int[] trainingData, int[] trainingLabel) {\n\t\t// forward Propagation\n\t\tdouble[] activationsOfHiddenLayer = new double[SIZE_HIDDEN_LAYER];\n\t\tdouble[] outputActivations = new double[SIZE_OUTPUT_LAYER];\n\t\tforwardPropagation(trainingData, activationsOfHiddenLayer, outputActivations);\n\t\t// backward Propagation\n\t\tbackwardPropagation(trainingData, trainingLabel, outputActivations, activationsOfHiddenLayer);\n\t}",
"public void wekaCalculate()\n\t{\n\t\tfor (int categoryStep = 0; categoryStep < 6; categoryStep++)\n\t\t{\n\t\t\tString trainString = \"Train\";\n\t\t\tString testString = \"Test\";\n\t\t\tString categoryString;\n\t\t\tString resultString = \"Results\";\n\t\t\tString textString;\n\t\t\tString eventString;\n\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: categoryString = \"Cont.arff\"; break;\n\t\t\tcase 1: categoryString = \"Dona.arff\"; break;\n\t\t\tcase 2: categoryString = \"Offi.arff\"; break;\n\t\t\tcase 3: categoryString = \"Advi.arff\"; break;\n\t\t\tcase 4: categoryString = \"Mult.arff\"; break;\n\t\t\tdefault: categoryString = \"Good.arff\";\n\t\t\t}\n\t\t\t\n\t\t\tswitch (categoryStep)\n\t\t\t{\n\t\t\tcase 0: textString = \"Cont.txt\"; break;\n\t\t\tcase 1: textString = \"Dona.txt\"; break;\n\t\t\tcase 2: textString = \"Offi.txt\"; break;\n\t\t\tcase 3: textString = \"Advi.txt\"; break;\n\t\t\tcase 4: textString = \"Mult.txt\"; break;\n\t\t\tdefault: textString = \"Good.txt\";\n\t\t\t}\n\t\t\t\n\t\t\tfor (int eventStep = 0; eventStep < 15; eventStep++)\n\t\t\t{\n\t\t\t\tString trainingData;\n\t\t\t\tString testData;\n\t\t\t\tString resultText;\n\n\t\t\t\tswitch (eventStep)\n\t\t\t\t{\n\t\t\t\tcase 0: eventString = \"2011Joplin\"; break;\n\t\t\t\tcase 1: eventString = \"2012Guatemala\"; break; \n\t\t\t\tcase 2: eventString = \"2012Italy\"; break;\n\t\t\t\tcase 3: eventString = \"2012Philipinne\"; break;\n\t\t\t\tcase 4: eventString = \"2013Alberta\";\tbreak;\n\t\t\t\tcase 5: eventString = \"2013Australia\"; break;\n\t\t\t\tcase 6: eventString = \"2013Boston\"; break;\t\t\t\t\n\t\t\t\tcase 7: eventString = \"2013Manila\"; break;\n\t\t\t\tcase 8: eventString = \"2013Queens\"; break;\n\t\t\t\tcase 9: eventString = \"2013Yolanda\"; break;\n\t\t\t\tcase 10: eventString = \"2014Chile\"; break;\n\t\t\t\tcase 11: eventString = \"2014Hagupit\"; break;\n\t\t\t\tcase 12: eventString = \"2015Nepal\"; break;\n\t\t\t\tcase 13: eventString = \"2015Paris\"; break;\n\t\t\t\tdefault: eventString = \"2018Florida\"; \t\t\t\t\n\t\t\t\t}\n\n\t\t\t\ttrainingData = eventString;\n\t\t\t\ttrainingData += trainString;\n\t\t\t\ttrainingData += categoryString;\n\n\t\t\t\ttestData = eventString;\n\t\t\t\ttestData += testString;\n\t\t\t\ttestData += categoryString;\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tresultText = eventString;\n\t\t\t\tresultText += resultString;\n\t\t\t\tresultText += textString;\n\t\t\t\t\n\n\t\t\t\ttry {\n\t\t\t\t\tConverterUtils.DataSource loader1 = new ConverterUtils.DataSource(trainingData);\n\t\t\t\t\tConverterUtils.DataSource loader2 = new ConverterUtils.DataSource(testData);\n\n\n\t\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(resultText));\n\t\t\t\t\tInstances trainData = loader1.getDataSet();\n\t\t\t\t\ttrainData.setClassIndex(trainData.numAttributes() - 1);\n\n\t\t\t\t\tInstances testingData = loader2.getDataSet();\n\t\t\t\t\ttestingData.setClassIndex(testingData.numAttributes() - 1);\n\n\t\t\t\t\tClassifier cls1 = new NaiveBayes();\t\t\t\t\t\n\t\t\t\t\tcls1.buildClassifier(trainData);\t\t\t\n\t\t\t\t\tEvaluation eval1 = new Evaluation(trainData);\n\t\t\t\t\teval1.evaluateModel(cls1, testingData);\t\n\t\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\t\t\t\t\tbw.write(eval1.toSummaryString());\n\t\t\t\t\tbw.write(eval1.toClassDetailsString());\n\t\t\t\t\tbw.write(eval1.toMatrixString());\n\t\t\t\t\tbw.write(\"\\n\");\n\n\t\t\t\t\tthis.evalNaiveBayesList.add(eval1);\n\n\t\t\t\t\tClassifier cls2 = new SMO();\n\t\t\t\t\tcls2.buildClassifier(trainData);\n\t\t\t\t\tEvaluation eval2 = new Evaluation(trainData);\n\t\t\t\t\teval2.evaluateModel(cls2, testingData);\n\t\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\t\t\t\t\tbw.write(eval2.toSummaryString());\n\t\t\t\t\tbw.write(eval2.toClassDetailsString());\n\t\t\t\t\tbw.write(eval2.toMatrixString());\n\n\t\t\t\t\tthis.evalSMOList.add(eval2);\n\n\t\t\t\t\tbw.close();\n\t\t\t\t} catch (Exception e) {\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void train(DoubleDataTable trainTable, Progress prog) throws InterruptedException\n\t{\n \tif (m_ClassifierTypes.size()==0)\n \t{\n \t\tprog.set(\"Training classifiers\", 1);\n \t\tprog.step();\n \t\treturn;\n \t}\n \tint[] progressVolumes = new int[m_ClassifierTypes.size()];\n \tprogressVolumes[0] = 100/progressVolumes.length;\n \tfor (int i = 1; i < progressVolumes.length; i++)\n \t\tprogressVolumes[i] = 100*(i+1)/progressVolumes.length-progressVolumes[i-1];\n \tprog = new MultiProgress(\"Training classifiers\", prog, progressVolumes);\n\t\tfor (Map.Entry<String,Class> cl : m_ClassifierTypes.entrySet())\n\t\t{\n\t\t\tm_Classifiers.remove(cl.getKey());\n\t\t\ttry\n\t\t\t{\n\t\t\t\tClass classifierClass = cl.getValue();\n\t\t\t\tProperties prop = m_ClassifierProperties.get(cl.getKey());\n\t\t\t\tClassifier classifier = ClassifierFactory.createClassifier(classifierClass, prop, trainTable, prog);\n\t\t\t\tm_Classifiers.put(cl.getKey(), classifier);\n\t\t\t}\n\t\t\tcatch (InvocationTargetException e)\n\t\t\t{\n\t\t\t\tif (e.getTargetException() instanceof BadHeaderException)\n\t\t\t\t\tReport.displaynl(cl.getKey()+\" not trained: \"+e.getTargetException().getMessage());\n\t\t\t\telse Report.exception((Exception)e.getTargetException());\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tReport.exception(e);\n\t\t\t}\n\t\t}\n\t}",
"abstract void train(Matrix features, Matrix labels);",
"public void start(int batchSize);",
"public void checkTraining() {\r\n loadGenome();\r\n MLDataSet trainingSet;\r\n float sum = 0;\r\n try (Stream<Path> walk = Files.walk(Paths.get(\"check_train_data\"))) {\r\n\r\n List<String> result = walk.filter(Files::isRegularFile)\r\n .map(x -> x.toString()).collect(Collectors.toList());\r\n\r\n for (int i = 0; i < result.size(); i++) {\r\n trainingSet = new CSVNeuralDataSet(result.get(i), input, output, true);\r\n sum += network.calculateError(trainingSet);\r\n }\r\n System.out.println(\"Validation, Average error: \" + sum / result.size());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n }",
"@Test\n\tpublic void irisTest() throws Exception {\n\t\tint numIters = 10;\n\t\tInstances data = loadIris();\n\t\tDl4jMlpClassifier cls = getMlp();\n\t\tcls.setTrainBatchSize(50);\n\t\tcls.setNumIterations(numIters);\n\t\tString tmpFile = System.getProperty(\"java.io.tmpdir\") + File.separator + \"irisTest.txt\";\n\t\tSystem.err.println(\"irisTest() tmp file: \" + tmpFile);\n\t\tcls.setDebugFile(tmpFile);\n\t\tcls.buildClassifier(data);\n\t\tcls.distributionsForInstances(data);\n\t\tList<String> lines = Files.readAllLines(new File(tmpFile).toPath());\n\t\tassertEquals(lines.size(), numIters+1);\n\t}",
"public void fit(ArrayList trainData) {\n this.trainingData = trainData;\n }",
"private void learnStep(){\n Connection[][][] temp = this.connections;\r\n for(int trialIndex = 0; trialIndex< inputList.length; trialIndex++) {\r\n for (int layerIndex = 0; layerIndex < connections.length; layerIndex++) {\r\n for (int startIndex = 0; startIndex < connections[layerIndex].length; startIndex++) {\r\n for (int endIndex = 0; endIndex < connections[layerIndex][startIndex].length; endIndex++) {\r\n double weightDerivative = 0.0;\r\n double biasDerivative = 0.0;\r\n weightDerivative += learningRate* derivativeWeight(layerIndex, startIndex, endIndex, trialIndex);\r\n biasDerivative += learningRate * derivativeBias(layerIndex, startIndex, endIndex, trialIndex);\r\n double currentWeight = temp[layerIndex][startIndex][endIndex].getWeight();\r\n double currentBias = temp[layerIndex][startIndex][endIndex].getBias();\r\n temp[layerIndex][startIndex][endIndex] = new Connection(currentWeight - weightDerivative, currentBias - biasDerivative);\r\n\r\n }\r\n }\r\n }\r\n this.run();\r\n }\r\n this.connections = temp;\r\n }",
"TrainingTest createTrainingTest();",
"public void trainOnInstance(Instance inst) {\n\t\t\t\t\t\t\n\t\t\ttry{\t\t\t\t\n\t\t\t\tinstancesSeen++;\n\t\t\t\tupdateStats(inst);\n\t\t\t\t\n\t\t\t\tDoubleVector normaliezedExtendedInstance = PrepareExtendedFeatureVector(inst) ;\n\t\t\t\tdouble normaliezedTargetValue= NormalizeTarget(inst) ;\n\t\t\t\tResultSummary resultSummary = getMemberships (normaliezedExtendedInstance,normaliezedTargetValue) ;\n\t\t\t\t\n\t\t\t\tdouble error = resultSummary.getNormaliezedTargetValue() - resultSummary.getFinalPrediction() ;\n\t\t\t\tthis.CurModSSE += Math.pow(error, 2) ;\n\t\t\t\t\n\t\t\t\t// checking a possible drift\n//\t\t\t\tboolean drift =checkChangeDetection() ;\n//\t\t\t\tif (drift)\n//\t\t\t\t\tthis.countChangeDetected++ ;\n\t\t\t\tboolean drift = false ;\n\t\t\t\tif ((this.instancesSeen % graceperiod)==0){\n\t\t\t\t\tdrift =checkChangeDetection() ;\n\t\t\t\t\tif (drift){\n\t\t\t\t\t\tthis.countChangeDetected++ ;\n//\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\tSystem.out.println(\"########After a drift################\");\n\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n// \t\tVarianceRationREduction\n\t\t\t\tif (learningCriteriaOption.getChosenIndex()==1) {\n\t\t\t\t\t// checking a possible extension\n//\t\t\t\t\tif (this.instancesSeen > graceperiod && !drift ) {\n\t\t\t\t\tif (!drift ) {\n\t\t\t\t\t\tboolean systemChanged = false ;\n\t\t\t\t\t\tVector <RuleVR> removeRules= new Vector<RuleVR>() ;\n\t\t\t\t\t\tVector <RuleVR> newRules= new Vector<RuleVR>() ;\n\t\t\t\t\t\tfor (FuzzyRule rule : rs){\n\t\t\t\t\t\t\tVector <RuleVR> expansions = ((RuleVR)rule).tryToExpand(confidence, tau) ;\n\t\t\t\t\t\t\tif (expansions != null) {\n\t\t\t\t\t\t\t\tsystemChanged = true ;\n\t\t\t\t\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\t\t\t\t\tif (expansions.get(0).getInitialMerit() > expansions.get(1).getInitialMerit()) {\n\t\t\t\t\t\t\t\t\t\tnewRules.add(expansions.get(0)) ;\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tnewRules.add(expansions.get(1)) ;\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\tif (rule !=defaultRule)\n\t\t\t\t\t\t\t\t\t\tremoveRules.add((RuleVR)rule) ;\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tremoveRules.add((RuleVR)rule) ;\n\t\t\t\t\t\t\t\t\tnewRules.addAll(expansions) ;\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\tif (systemChanged) {\n\t\t\t\t\t\t\trs.removeAll(removeRules) ;\n\t\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\tSystem.out.println(\"########################\");\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//RMSEReduction\n\t\t\t\telse{\n\t\t\t\t\t// checking a possible extension\n\t\t\t\t\tif (this.instancesSeen > graceperiod && !drift ) {\n\t\t\t\t\t\tExtendedCandidateErrR bestExtension = this.checkValidExpansion();\n\t\t\t\t\t\tif ((bestExtension != null)) {\n\t\t\t\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\n\t\t\t\t\t\t\t\tVector<RuleErrR> newRules = bestExtension.CreateRuleFromExtension() ;\n\t\t\t\t\t\t\t\tif (bestExtension.getParentRule()!=defaultRule)\n\t\t\t\t\t\t\t\t\trs.remove(bestExtension.getParentRule()) ;\n\t\t\t\t\t\t\t\t\n\t\t//\t\t\t\t\t\tWe must choose the best candidate here!\n\t\t\t\t\t\t\t\tdouble [] SSESingleExtenstions = bestExtension.getMeanSSESingleExension() ;\n\t\t\t\t\t\t\t\tif (SSESingleExtenstions[0]<SSESingleExtenstions[1])\n\t\t\t\t\t\t\t\t\trs.add(newRules.get(0)) ;\n\t\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\t\trs.add(newRules.get(1)) ;\t\n\t\t\t\t\t\t\t\t\t\n\t\t//\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\t\tif (bestExtension.getParentRule()==defaultRule)\n\t\t\t\t\t\t\t\t\tdefaultRule.buildExtendedCandidates(bestExtension.getAttributeIndex());\n\t\t\n\t\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\t\t\t\t\t\t\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tExtendedCandidateErrR cbestExtension = this.checkValidExpansion();\n\n\t\t\t\t\t\t\t\tVector<RuleErrR> newRules = bestExtension.CreateRuleFromExtension() ;\n\t\t\t\t\t\t\t\trs.remove(bestExtension.getParentRule()) ;\n\t\t\t\t\t\t\t\trs.addAll(newRules) ;\n\t\t\t\t\t\t\t\tthis.clearAllStats();\n\t\t\t\t\t\t\t\tthis.currentValidCandidates.clear() ;\n\t\t\t\t\t\t\t\tthis.currentNonReadyCandidates.clear() ;\n\t\t\t\t\t\t\t\tcurrentSystemVersion++ ;\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\t\t\t\t\t\t\t\tSystem.out.println(this);\n\t\t\t\t\t\t\t\tSystem.out.println(\"########################\");\n\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}\n\t\t\t\t}\t\n\t\t\t\tif (chooseSingleRuleOption.isSet()) {\n\t\t\t\t\tdouble maxMembership = 0 ;\n\t\t\t\t\tfor (ResultSummary.ResultPair resultPair: resultSummary.getResultPairs()) {\n\t\t\t\t\t\tresultPair.getRule().trainOnInstance(resultSummary, resultPair);\n\t\t\t\t\t\tmaxMembership = Math.max(maxMembership, resultPair.getMembership()) ;\n\t\t\t\t\t}\n\t\t\t\t\tif (maxMembership < max_Membership_For_Choosing_Single_Rule)\n\t\t\t\t\t\tdefaultRule.trainOnInstance(resultSummary, resultSummary.getResultPairDefaultRule()) ;\n\t\t\t\t}else{\n\t\t\t\t\tfor (ResultSummary.ResultPair resultPair: resultSummary.getResultPairs()) {\n\t\t\t\t\t\tresultPair.getRule().trainOnInstance(resultSummary, resultPair);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}catch (Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\r\n\tpublic void train(Documents trainingDocs) {\r\n\t\t// Convert the training documents to data.\r\n\t\tdata = convertDocumentsToData(trainingDocs);\r\n\t\t// Also add the words from the source domains into the featureIndexer.\r\n\t\tfor (String featureStr : knowledge.wordCountInPerClass\r\n\t\t\t\t.keySet()) {\r\n\t\t\tfeatureIndexerAllDomains\r\n\t\t\t\t\t.addFeatureStrIfNotExistStartingFrom0(featureStr);\r\n\t\t}\r\n\r\n\t\t// Initialize array from data.\r\n\t\tclassInstanceCount = new double[2];\r\n\t\tclassInstanceCount[0] = trainingDocs.getNoOfPositiveLabels();\r\n\t\tclassInstanceCount[1] = trainingDocs.getNoOfNegativeLabels();\r\n\t\t// Initialize array from knowledge.\r\n\t\tV = featureIndexerAllDomains.size();\r\n\t\tx = new double[V][];\r\n\t\tfor (int v = 0; v < V; ++v) {\r\n\t\t\tString featureStr = featureIndexerAllDomains\r\n\t\t\t\t\t.getFeatureStrGivenFeatureId(v);\r\n\t\t\tif (knowledge.wordCountInPerClass\r\n\t\t\t\t\t.containsKey(featureStr)) {\r\n\t\t\t\tx[v] = knowledge.wordCountInPerClass\r\n\t\t\t\t\t\t.get(featureStr);\r\n\t\t\t} else {\r\n\t\t\t\t// The word only appears in the target domain.\r\n\t\t\t\tx[v] = new double[] { 0.0, 0.0 };\r\n\t\t\t}\r\n\t\t}\r\n\t\tsum_x = knowledge.countTotalWordsInPerClass;\r\n\r\n\t\tif (param.convergenceDifference != Double.MAX_VALUE) {\r\n\t\t\t// Stochastic gradient descent.\r\n\t\t\tSGDEntry();\r\n\t\t}\r\n\r\n\t\t// Check if any value in x is nan or infinity.\r\n\t\tfor (int i = 0; i < x.length; ++i) {\r\n\t\t\tExceptionUtility\r\n\t\t\t\t\t.assertAsException(!Double.isNaN(x[i][0]), \"Is Nan\");\r\n\t\t\tExceptionUtility\r\n\t\t\t\t\t.assertAsException(!Double.isNaN(x[i][1]), \"Is Nan\");\r\n\t\t\tExceptionUtility.assertAsException(!Double.isInfinite(x[i][0]),\r\n\t\t\t\t\t\"Is Infinite\");\r\n\t\t\tExceptionUtility.assertAsException(!Double.isInfinite(x[i][1]),\r\n\t\t\t\t\t\"Is Infinite\");\r\n\t\t}\r\n\r\n\t\t// Update classification knowledge.\r\n\t\tknowledge = new ClassificationKnowledge();\r\n\t\t// knowledge.countDocsInPerClass = mCaseCounts;\r\n\t\t// knowledge.wordCountInPerClass =\r\n\t\t// mFeatureStrToCountsMap;\r\n\t\t// knowledge.countTotalWordsInPerClass =\r\n\t\t// mTotalCountsPerCategory;\r\n\t}",
"public void setIterations(int iter) {\n\t\tnumIterations = iter;\n\t}",
"public void cycle() {\r\n processTask(); // tune relative frequency?\r\n processConcept(); // use this order to check the new result\r\n }",
"public void train(int n_epochs) {\n TrainModel train_model = null;\n\n int lenW = vocabulary.length;\n int W = 3 * lenW + 3;\n\n // randomly initialize U_Ot, values are randomly selected between -0.1 to 0.1;\n double[][] U_Ot = new double[D][W];\n\n // randomly initialize U_R, values are randomly selected between -0.1 and 0.1\n double[][] U_R = new double[D][W];\n\n double prev_err = 0D;\n for (int epoch = 0; epoch < n_epochs; epoch++) {\n double total_error = 0D;\n int n_wrong = 0;\n\n for (int i = 0; i < train_lines.size(); i++) {\n Instance line = train_lines.get(i);\n if (\"q\".equals(line.type)) { // indicates question\n List<Integer> refs = line.refs; // Indexing from 1\n List<Integer> f = refs.stream()\n .map(ref -> ref-1)\n .collect(Collectors.toList()); // Indexing from 0\n int id = line.ID - 1; // Indexing from 0\n\n // all indices from\n List<Integer> indices = range(i-id, i+1);\n List<double[]> memory_list = indices.stream()\n .map(idx -> L_train[idx])\n .collect(Collectors.toList());\n\n\n if (train_model == null) {\n train_model = new TrainModel(lenW, f.size());\n }\n\n List<Integer> m = f;\n // TODO\n List<Integer> mm = new ArrayList<>(); //TODO\n for (int j = 0; j < f.size(); j++) {\n mm.add(O_t(\n newM,\n memory_list\n ));\n }\n\n double err = train_model(H.get(\"answer\"),\n gamma, memory_list, V, id, ???)[0];\n total_error += err;\n System.out.println(\"epoch: \" + epoch + \"\\terr: \" + (total_error / train_lines.size()));\n }\n }\n }\n }",
"public void train(Collection<TrainingEntry<Login>> trainingDataSet) throws TrainingException {\n if (trainingDataSet.isEmpty()) return;\n try {\n final DataSet dataSet = toDataSet(trainingDataSet);\n normalizer = new NormalizerStandardize();\n normalizer.fit(dataSet);\n normalizer.transform(dataSet);\n final DataSetIterator dataSetIterator = new ExistingDataSetIterator(dataSet);\n final MultiLayerConfiguration configuration = new NeuralNetConfiguration.Builder()\n .seed(6)\n .iterations(1)\n .activation(\"tanh\")\n .weightInit(WeightInit.XAVIER)\n .learningRate(0.1)\n .regularization(true).l2(1e-4)\n .list()\n .layer(0, new DenseLayer.Builder()\n .nIn(getNumberOfInputFeatures(trainingDataSet))\n .nOut(9)\n .build())\n .layer(1, new DenseLayer.Builder()\n .nIn(9)\n .nOut(9)\n .build())\n .layer(2, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .activation(\"softmax\")\n .nIn(9)\n .nOut(NUM_CATEGORIES).build())\n .backprop(true).pretrain(false)\n .build();\n network = new MultiLayerNetwork(configuration);\n final EarlyStoppingConfiguration esConf = new EarlyStoppingConfiguration.Builder()\n .epochTerminationConditions(new MaxEpochsTerminationCondition(20))\n .iterationTerminationConditions(new MaxTimeIterationTerminationCondition(20, TimeUnit.MINUTES))\n .scoreCalculator(new DataSetLossCalculator(dataSetIterator, true))\n .evaluateEveryNEpochs(1)\n .modelSaver(new InMemoryModelSaver())\n .build();\n final EarlyStoppingTrainer trainer = new EarlyStoppingTrainer(esConf, network, dataSetIterator);\n final EarlyStoppingResult<MultiLayerNetwork> result = trainer.fit();\n network = result.getBestModel();\n } catch (final Exception e) {\n throw new TrainingException(e);\n }\n }",
"private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }",
"private static native boolean train_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj);",
"private static native boolean train_auto_0(long nativeObj, long trainData_nativeObj, long responses_nativeObj, long varIdx_nativeObj, long sampleIdx_nativeObj, long params_nativeObj, int k_fold, long Cgrid_nativeObj, long gammaGrid_nativeObj, long pGrid_nativeObj, long nuGrid_nativeObj, long coeffGrid_nativeObj, long degreeGrid_nativeObj, boolean balanced);",
"@Override\n public int[] run(double[][] examples)\n {\n //System.out.println(\"Starting backprop\");\n if(verbose)\n {\n System.out.println(\"---------------------Begin Competitive Learning---------------------\");\n }\n maxClusters = (int)Math.round(parameters[2]);\n FeedForwardNeuralNetwork net = new FeedForwardNeuralNetwork(0,\n new int[]{examples[0].length, maxClusters}, ActivationFunction.LINEAR,\n ActivationFunction.LINEAR);\n lastDeltas = new double[net.getWeights().length];\n learningRate = parameters[0];\n momentum = parameters[1];\n maxIterations = parameters[3];\n\n int[] sizes = net.getSizes();\n\n int[] last = calculateWinners(examples, net);\n\n if(verbose)\n {\n System.out.println(\"Initial weights\");\n double[] weights = net.getWeights();\n for(int k = 0; k < weights.length; k++)\n {\n System.out.print(weights[k] + \", \");\n }\n System.out.println(\"Initial labels\");\n for(int k = 0; k < maxClusters; k++)\n {\n System.out.print(\"Cluster \" + k + \": \");\n for(int a = 0; a < last.length; a++)\n {\n if(last[a] == k)\n {\n System.out.print(a + \", \");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n\n int index = 0;\n for(int i = 1; i < maxIterations; i++)\n {\n double[] input = new double[sizes[0]];\n\n //separate input and output\n for(int a = 0; a < input.length; a++)\n {\n input[a] = examples[index][a];\n }\n index = (index + 1) % examples.length;\n\n //run backprop on it\n if(i % 1000 == 0 && verbose)\n {\n System.out.println(\"Iteration: \" + i);\n }\n if(verbose)\n {\n backprop(input, net, i % 1000 == 0);\n }\n else\n {\n backprop(input, net, false);\n }\n\n if(i % 1000 == 0)\n {\n int[] temp = calculateWinners(examples, net);\n if(verbose)\n {\n //System.out.println(\"Iteration: \" + i);\n /*System.out.println(\"Current labels\");\n for(int k = 0; k < last.length; k++)\n {\n System.out.println(k + \": \" + temp[k]);\n }\n System.out.println();*/\n }\n boolean same = true;\n for(int j = 0; j < temp.length; j++)\n {\n if(last != temp)\n {\n same = false;\n break;\n }\n }\n\n if(same)\n {\n if(verbose)\n {\n System.out.println(\"Final weights\");\n double[] weights = net.getWeights();\n for(int k = 0; k < weights.length; k++)\n {\n System.out.print(weights[k] + \", \");\n }\n System.out.println(\"Final labels\");\n for(int k = 0; k < maxClusters; k++)\n {\n System.out.print(\"Cluster \" + k + \": \");\n for(int a = 0; a < last.length; a++)\n {\n if(last[a] == k)\n {\n System.out.print(a + \", \");\n }\n }\n System.out.println();\n }\n System.out.println();\n System.out.println(\"----------------------End Competitive Learning----------------------\");\n }\n return temp;\n }\n else\n {\n last = temp;\n }\n }\n }\n if(verbose)\n {\n System.out.println(\"Final weights\");\n double[] weights = net.getWeights();\n for(int k = 0; k < weights.length; k++)\n {\n System.out.print(weights[k] + \", \");\n }\n System.out.println(\"Final labels\");\n for(int k = 0; k < maxClusters; k++)\n {\n System.out.print(\"Cluster \" + k + \": \");\n for(int a = 0; a < last.length; a++)\n {\n if(last[a] == k)\n {\n System.out.print(a + \", \");\n }\n }\n System.out.println();\n }\n System.out.println();\n System.out.println(\"----------------------End Competitive Learning----------------------\");\n }\n\n return calculateWinners(examples, net);\n }",
"List<Training> obtainAllTrainings();"
] | [
"0.7975634",
"0.7526341",
"0.7351901",
"0.7165813",
"0.7047927",
"0.70441157",
"0.69781345",
"0.69617563",
"0.68328327",
"0.683082",
"0.6770373",
"0.67523044",
"0.6736362",
"0.66734225",
"0.6575634",
"0.65588886",
"0.6558739",
"0.6532402",
"0.6502738",
"0.64560586",
"0.64322746",
"0.64292175",
"0.6428455",
"0.63620687",
"0.6349488",
"0.6334761",
"0.6317885",
"0.6260283",
"0.6256721",
"0.6255503",
"0.621463",
"0.61985147",
"0.6192032",
"0.6178861",
"0.6160189",
"0.6153794",
"0.6136042",
"0.61185825",
"0.61085254",
"0.609413",
"0.60828143",
"0.60272187",
"0.5988192",
"0.59854347",
"0.59567994",
"0.5954345",
"0.5954296",
"0.59519094",
"0.5947391",
"0.5947225",
"0.5946498",
"0.5945994",
"0.5935869",
"0.59338045",
"0.5925116",
"0.5923108",
"0.59225553",
"0.59155756",
"0.5914506",
"0.59021163",
"0.58923316",
"0.58600163",
"0.5828302",
"0.58199686",
"0.5805724",
"0.57894516",
"0.57757795",
"0.5775773",
"0.5767913",
"0.57668644",
"0.57626826",
"0.57588613",
"0.5729079",
"0.5728448",
"0.571438",
"0.5713996",
"0.5711509",
"0.5705049",
"0.57025677",
"0.5701895",
"0.5697412",
"0.56970954",
"0.56957185",
"0.56950927",
"0.5693561",
"0.56807387",
"0.5678252",
"0.56502396",
"0.56476223",
"0.5638699",
"0.5614157",
"0.5612433",
"0.56085676",
"0.56085366",
"0.56082773",
"0.56049633",
"0.55958945",
"0.559317",
"0.5588736",
"0.5585692"
] | 0.6576403 | 14 |
Set the learning rate. | public void setLearningRate(final double rate) {
this.learningRate = rate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setLearningRate(double rate);",
"public void setLearningRate(double learningRate) {\n this.learningRate = Math.max(0.0, Math.min(1.0, learningRate));\n }",
"public void setLearningRate(double learningRate) {\r\n\t\tthis.learningRate = learningRate;\r\n\t}",
"public void SetLearnRate (double alpha) { this.alpha = alpha; }",
"@Override\n public Builder learningRate(double learningRate) {\n super.learningRate(learningRate);\n return this;\n }",
"public Builder<V, E> learningRate(double learningRate) {\n this.learningRate = learningRate;\n return this;\n }",
"public void setRate();",
"@Override\n public Builder minLearningRate(double minLearningRate) {\n super.minLearningRate(minLearningRate);\n return this;\n }",
"public double getLearningRate() {\r\n\t\treturn learningRate;\r\n\t}",
"public double getLearningRate() {\n return learningRate;\n }",
"public void setRate(int rate) { this.rate = rate; }",
"double getLearningRate();",
"public void setRate(double newRate) {\n this.rate = newRate;\n }",
"public abstract void setRate();",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"public void setRate(float rate) {\n\t\tthis.rate = rate;\n\t}",
"public void setRate(Integer rate) {\r\n this.rate = rate;\r\n }",
"public void setImprovementRelaxRate(double rate) {\n this.exec = this.exec.withProperty(\"sm.improve.relaxRate\", rate);\n }",
"public void setTurnRate (float rate)\n {\n if (rate > 0) {\n _turnRate = rate;\n } else {\n clearTurnRate();\n }\n }",
"public Builder setRate(int value) {\n \n rate_ = value;\n onChanged();\n return this;\n }",
"public void setSpeed(double multiplier);",
"public void writeLearningRatio() { \r\n \r\n for (int i=0; i < hiddenLayerContainer.getHiddenLayerContainer().size(); i++){\r\n hiddenLayerContainer.getHiddenLayerContainer().get(i).setLearningRatio(learningRatio);\r\n }\r\n \r\n outputLayer.setLearningRatio(learningRatio);\r\n }",
"public void setAAALethalityRate(int value) {\n this.aaaLethalityRate = value;\n }",
"public synchronized void setRampRate(Double rampRate)\n {\n this.rampRate = rampRate;\n }",
"NeuralNetwork mutate(float rate);",
"public void updateRate(double r){\r\n rate *= r;\r\n }",
"void setPWMRate(double rate);",
"public void setCaretBlinkRate(int rate) {\n if (rate >= 0) {\n getCaret().setBlinkRate(rate);\n }\n }",
"public void setFrameRate(Integer frameRate) {\n this.frameRate = frameRate;\n }",
"public void setSamplingRate(int value) {\n this.samplingRate = value;\n }",
"public void setSampleRate(float rate)\n {\n samplingDelay = (int)(ONE_SECOND/rate);\n }",
"public void setCurrentSpeed (double speed);",
"public Adamax(Graph graph, float learningRate) {\n this(graph, learningRate, BETA_ONE_DEFAULT, BETA_TWO_DEFAULT, EPSILON_DEFAULT);\n }",
"public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }",
"public void setInterest(double rate)\n {\n interestRate = rate;\n }",
"public void setSpeed(float val) {speed = val;}",
"public void setEngineeringRate(int value) {\n this.engineeringRate = value;\n }",
"@Override\n\tvoid bp_adam(double learning_rate, int epoch_num) {\n\t\t\n\t}",
"void setSpeed(RobotSpeedValue newSpeed);",
"private void changeSpeed() {\n\t\tint t = ((JSlider)components.get(\"speedSlider\")).getValue();\n\t\tsim.setRunSpeed(t);\n\t}",
"public void setSpeed(int newSpeed)\n {\n speed = newSpeed;\n }",
"public void setLossRateEnergy(int lossRateEnergy) {\n\t\tif (lossRateEnergy < 0) {\n\t\t\tSystem.out.println(\"lossRateEnergy should be positive! It is set to \" + LOSS_RATE_ENERGY + \".\");\n\t\t\tlossRateEnergy = LOSS_RATE_ENERGY;\n\t\t}\n\t\tthis.lossRateEnergy = lossRateEnergy;\n\t\tupdatePanel();\n\t}",
"public void setGrowthRate(int growthRate) {\n growthRate /= 100;\n this.growthRate = growthRate;\n }",
"public void setSpeed() {\r\n\t\tthis.currSpeed = this.maxSpeed * this.myStrategy.setEffort(this.distRun);\r\n\t}",
"@Override\n public void setBaudrate(int bitrate) throws SerialError{\n\n switch(bitrate)\n {\n case 300:\n baudrate=0x2710;\n break;\n case 600:\n baudrate=0x1388;\n break;\n case 1200:\n baudrate=0x09C4;\n break;\n case 2400:\n baudrate=0x0271;\n break;\n case 4800:\n baudrate=0x4138;\n break;\n case 9600:\n baudrate=0x4138;\n break;\n case 19200:\n baudrate=0x809C;\n break;\n case 38400:\n baudrate=0xC04E;\n break;\n case 57600:\n baudrate=0x0034;\n break;\n case 115200:\n baudrate=0x001A;\n break;\n case 460800:\n baudrate=0x4006;\n break;\n case 921600:\n baudrate=0x8003;\n break;\n default :\n throw new SerialError(\"The baudrate selected is out of scope \"+bitrate);\n }\n }",
"public void updateAdaGrad(double learningRate, int batchsize) {\n\t}",
"public void changeDiscountRate (double value) {\n this.discountRate = value;\n }",
"private void setWeight() {\n \tthis.trainWeight = (this.trainCars*TRAIN_WEIGHT) + (this.crew + this.numPassengers) * AVE_PASSENGER_WEIGHT;\n }",
"public void setBitRate(Integer bitRate) {\n this.bitRate = bitRate;\n }",
"public void setSpeed(int newSpeed){\n\t\tmyVaisseau=Isep.getListeVaisseau();\n\t\tspeed=newSpeed;\t\t\n\t}",
"protected void setMoveRate(long moveRate) {\r\n\t\tthis.moveRate = moveRate;\r\n\t}",
"private void setFrameRate(int newFPS){\n\t if(prevFrameRate != newFPS){\n\t\t prevFrameRate = newFPS;\n\t\t frameRate(newFPS);\n\t }\n }",
"public void setMotors(double rate) {\n\t\tclimberMotor1.set(rate);\n\t}",
"public void adjust(double learningRate, boolean layer){\r\n //Layer false == adjust hiddenLayer\r\n //Layer true == adjust outputLayer\r\n if (layer) {\r\n for (int i = 0; i < outputLayer.length; i++) {\r\n for (int j = 0; j < outputLayer[i].weights.length; j++) {\r\n outputLayer[i].weights[j] -= learningRate*outputLayer[i].dw[j];\r\n }\r\n outputLayer[i].bias -= learningRate*outputLayer[i].db;\r\n }\r\n } else {\r\n for (int i = 0; i < hiddenLayer.length; i++) {\r\n for (int j = 0; j < hiddenLayer[i].weights.length; j++) {\r\n hiddenLayer[i].weights[j] -= learningRate*hiddenLayer[i].dw[j];\r\n }\r\n hiddenLayer[i].bias -= learningRate*hiddenLayer[i].db;\r\n }\r\n }\r\n }",
"public void setSpeed(int value) {\n speed = value;\n if (speed < 40) {\n speedIter = speed == 0 ? 0 : speed / 4 + 1;\n speedWait = (44 - speed) * 3;\n fieldDispRate = 20;\n listDispRate = 20;\n } else if (speed < 100) {\n speedIter = speed * 2 - 70;\n fieldDispRate = (speed - 40) * speed / 50;\n speedWait = 1;\n listDispRate = 1000;\n } else {\n speedIter = 10000;\n fieldDispRate = 2000;\n speedWait = 1;\n listDispRate = 4000;\n }\n }",
"public RMSProp(Graph graph, float learningRate) {\n this(graph, learningRate, DECAY_DEFAULT, MOMENTUM_DEFAULT, EPSILON_DEFAULT, CENTERED_DEFAULT);\n }",
"public void setSpeed(int speed) {\n thread.setSpeed(speed);\n }",
"public void setDefaultStandardRate(Rate rate)\r\n {\r\n m_defaultStandardRate = rate;\r\n }",
"public FlightProfile setEnergyRate( float val ) {\n EnergyRate = val;\n return this;\n }",
"public Adamax(Graph graph, String name, float learningRate) {\n this(graph, name, learningRate, BETA_ONE_DEFAULT, BETA_TWO_DEFAULT, EPSILON_DEFAULT);\n }",
"public void setCoolingRate(final double coolingRate) {\r\n\t\tthis.coolingRate = coolingRate;\r\n\t}",
"public void setSampleRate(int value) {\n this.sampleRate = value;\n }",
"public void setLitWeightRatio(double ratio) { this.exec = this.exec.withProperty(\"sm.improve.lwr\", ratio); }",
"public abstract void setDiscountRate(double discountRate);",
"public void setDefaultOvertimeRate(Rate rate)\r\n {\r\n m_defaultOvertimeRate = rate;\r\n }",
"Neuron setAxon(double newValue);",
"public AnimationFX setSpeed(double value) {\n this.timeline.setRate(value);\n return this;\n }",
"public void setClockRate(double clockRate) {\r\n CompUtils.checkLessThanEqZero(clockRate);\r\n this.clockRate = clockRate;\r\n }",
"public void setSpeed() {\r\n\t\tint delay = 0;\r\n\t\tint value = h.getS(\"speed\").getValue();\r\n\t\t\r\n\t\tif(value == 0) {\r\n\t\t\ttimer.stop();\r\n\t\t} else if(value >= 1 && value < 50) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (1) == delay (5000). value (50) == delay (25)\r\n\t\t\tdelay = (int)(a1 * (Math.pow(25/5000.0000, value / 49.0000)));\r\n\t\t} else if(value >= 50 && value <= 100) {\r\n\t\t\tif(!timer.isRunning()) {\r\n\t\t\t\ttimer.start();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//exponential function. value (50) == delay(25). value (100) == delay (1)\r\n\t\t\tdelay = (int)(a2 * (Math.pow(1/25.0000, value/50.0000)));\r\n\t\t}\r\n\t\ttimer.setDelay(delay);\r\n\t}",
"public static void setInfectionRate(double newRate) {\n infectionRate = newRate;\n }",
"void changeSpeed(int speed) {\n\n this.speed = speed;\n }",
"public void changeTaxRate (double value) {\n this.taxRate = value;\n }",
"public abstract void setSpeed(int sp);",
"public <T extends Number> void setSpeedPerFrame(T speed){\r\n\t\tif(speed.doubleValue() <= 0){\r\n\t\t\tthis.speed = 1;\r\n\t\t\tSystem.err.println(\"Negative Speed, resulting to a speed of 1!\");\r\n\t\t}else{\r\n\t\t\tthis.speed = speed.doubleValue();\r\n\t\t}\r\n\t}",
"public int\n setBitRate(int bitRate);",
"public void setRate(double annualRate) {\nmonthlyInterestRate = annualRate / 100.0 / MONTHS;\n}",
"@Override\n public void setCurrentLoadWeight(double mlw) {\n currentLoadWeight = mlw;\n }",
"public void setSpeechRate(int speechRate) {\n mSelf.setSpeechRate(speechRate);\n }",
"private void setBallSpeed() {\n RandomGenerator rgen = RandomGenerator.getInstance();\n vx = rgen.nextDouble(1.0, 3.0);\n if (rgen.nextBoolean(0.5)) {\n vx = - vx;\n }\n vy = BALL_SPEED;\n }",
"public void setEntrenchmentRate(int value) {\n this.entrenchmentRate = value;\n }",
"public void setSpeed(int newSpeed)\n\t{\n\t\tspeed = newSpeed;\n\t}",
"public void setAddSpeed(float addSpeed)\n {\n this.addSpeed = addSpeed;\n setChanged();\n notifyObservers();\n }",
"public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}",
"public void setFrameRate(float aValue) { setInterval(Math.round(1000/aValue)); }",
"public void setMyIncomeMultiplier(float factor) throws CallbackAIException;",
"public RMSProp(Graph graph, String name, float learningRate) {\n this(\n graph,\n name,\n learningRate,\n DECAY_DEFAULT,\n MOMENTUM_DEFAULT,\n EPSILON_DEFAULT,\n CENTERED_DEFAULT);\n }",
"public void set(double speed) {\n climb_spark_max.set(speed);\n }",
"public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }",
"public void setSamplingRate( int samplingRate ) {\r\n this.samplingRate = samplingRate;\r\n }",
"public void setRateLimiter(RateLimiter rateLimiter) {\n this.rateLimiter = rateLimiter;\n }",
"public void setGradingWeight(double weight){\n \tgradingWeight = weight;\n }",
"public void setSpeed(double speed) {\n \tthis.speed = speed;\n }",
"public FXImageSink requestFrameRate(double rate) {\n requestRate = (int) Math.round(rate);\n sink.setCaps(Caps.fromString(buildCapsString()));\n return this;\n }",
"public final void setRotationRate(final int aRotationRate) {\r\n this.rotationRate = aRotationRate;\r\n }",
"public void setStarvationRate ( int ticks ) {\n\t\texecute ( handle -> handle.setStarvationRate ( ticks ) );\n\t}",
"public static void modifyInterestRate(double interestRate){\n annualInterestRate = interestRate;\n }",
"public void setSpeed(int newTicksMultiplier) {\r\n this.ticksMultiplier = newTicksMultiplier;\r\n }",
"public void setInterestRate(double newInterestRate)\n {\n if (!(newInterestRate >= 0.0))\n {\n System.err.println(\"Interest rate must be positive.\");\n }\n else\n {\n this.interestRate = newInterestRate;\n }\n }",
"public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }",
"public void setRate(String rate) {\r\n for (int index = 0; index < RATES.length; ++index){\r\n if (RATES[index].equals(rate)) {\r\n Rate = index;\r\n }\r\n }\r\n }"
] | [
"0.89419645",
"0.82831645",
"0.8269814",
"0.7443721",
"0.7273547",
"0.70766133",
"0.6678599",
"0.66767704",
"0.653277",
"0.65291053",
"0.6487356",
"0.6474985",
"0.64729977",
"0.64382714",
"0.6303698",
"0.6254541",
"0.62326276",
"0.6175994",
"0.61758894",
"0.6160891",
"0.6147641",
"0.6072433",
"0.6058387",
"0.6034287",
"0.5998101",
"0.59828246",
"0.5958667",
"0.5929524",
"0.59164375",
"0.584137",
"0.5834702",
"0.5827696",
"0.5825516",
"0.58189917",
"0.5799279",
"0.57975316",
"0.5797217",
"0.578122",
"0.57776934",
"0.57535744",
"0.5723322",
"0.5706089",
"0.5698805",
"0.56912106",
"0.5690779",
"0.5622604",
"0.5619417",
"0.56167936",
"0.5604442",
"0.5588372",
"0.5586938",
"0.55595624",
"0.5545302",
"0.5540347",
"0.55387187",
"0.5537002",
"0.5525301",
"0.55020636",
"0.54982454",
"0.5469472",
"0.5465109",
"0.54646075",
"0.5462928",
"0.5456814",
"0.54554456",
"0.54496366",
"0.5439251",
"0.5434752",
"0.54224193",
"0.5422269",
"0.5417235",
"0.5411389",
"0.540676",
"0.5402427",
"0.54002404",
"0.5391762",
"0.53844565",
"0.5369363",
"0.5364399",
"0.5350667",
"0.53468794",
"0.5333972",
"0.53247815",
"0.53219867",
"0.53178024",
"0.531591",
"0.53042984",
"0.53021723",
"0.5300979",
"0.52936435",
"0.52771074",
"0.5273039",
"0.5269575",
"0.52693886",
"0.5262138",
"0.52619517",
"0.5258252",
"0.525737",
"0.525418",
"0.5249121"
] | 0.8237422 | 3 |
TODO Autogenerated method stub | public static void main(String[] args) {
int n = 5;
int result = 1000000001;
System.out.println(result);
System.out.println(isPalindrome(result));
} | {
"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 |
/ for(int i= 0 ; i<db.getAllWorks().size();i++) db.deleteWork(db.getAllWorks().get(i).getId()); | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
//getSupportActionBar().setDisplayHomeAsUpEnabled(true);
hours = (EditText) findViewById(R.id.HoursET);
tipBonus = (EditText) findViewById(R.id.TipForsSalET);
travelers = (EditText) findViewById(R.id.HowManyTravelersET);
distance = (EditText) findViewById(R.id.DistanceET);
parking = (EditText) findViewById(R.id.ParkingET);
privateTip = (EditText) findViewById(R.id.PrivateTipET);
waitersTip = (EditText) findViewById(R.id.WaitersTipET);
locationET = (EditText) findViewById(R.id.locationET);
manualSalaryTV = (TextView) findViewById(R.id.ManuallySalC);
dateTV = (TextView) findViewById(R.id.DateTV);
timeStartTV = (TextView) findViewById(R.id.timeStartTV);
timeEndTV = (TextView) findViewById(R.id.timeEndTV);
sumTv = (TextView) findViewById(R.id.sumTV);
sumCashTV = (TextView) findViewById(R.id.sumCash);
drivesP = (TextView) findViewById(R.id.drivesTV);
tipP = (TextView) findViewById(R.id.TipTv);
manualSalaryET = (EditText) findViewById(R.id.ManualSalET);
idForRes=(TextView)findViewById(R.id.IdForRes);
commentsET = (EditText) findViewById(R.id.CommentsET);
drivesP.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!flagDrive) {
distance.setVisibility(View.VISIBLE);
parking.setVisibility(View.VISIBLE);
flagDrive = true;
} else {
distance.setVisibility(View.GONE);
parking.setVisibility(View.GONE);
flagDrive = false;
}
}
});
tipP.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (!flagTip) {
privateTip.setVisibility(View.VISIBLE);
waitersTip.setVisibility(View.VISIBLE);
tipBonus.setVisibility(View.VISIBLE);
flagTip = true;
} else {
privateTip.setVisibility(View.GONE);
waitersTip.setVisibility(View.GONE);
tipBonus.setVisibility(View.GONE);
flagTip = false;
}
}
});
final Intent intentA = new Intent(this, SetWorksActivity.class);
if (db.getAllWorks().size() == 0) {
startActivity(intentA);
}
else {
spinner = (Spinner) findViewById(R.id.spinnerTE);
ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, getWorksName());
// Specify the layout to use when the list of choices appears
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
// Apply the adapter to the spinner
spinner.setAdapter(adapter);
spinner.setOnItemSelectedListener(this);
if (db.getAllWorks().get(workIdPosition).getTypeOfDrive() < 2)
distance.setHint(R.string.MainDriveManually);
Intent intent = getIntent();
id = intent.getIntExtra("id", 9999);
if (id != 9999)
flagIsUpdate = true;
if(!flagIsUpdate) {
if (db.getAllWorks().get(workIdPosition).getTypeOfDrive() == 1)
distance.setText(String.valueOf(db.getAllWorks().get(workIdPosition).getPerKilometer()));
if(intent.getStringExtra("date")!=null) {
dateCalender = intent.getStringExtra("date");
dateTV.setText(dateCalender);
date=dateCalender;
}
}
if (flagIsUpdate)
updateShift();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void delete(int work_num) {\n\t\tworkMapper.delete(work_num);\n\t\t\n\t}",
"@Override\n\tpublic void delete(DatabaseHandler db) {\n\t\tdb.deleteWork(this);\n\t\t\n\t}",
"@Override\n\tpublic void deleteWorkout(int id) {\n\n\t}",
"@Override\n\tpublic void deleteWorkItemList(List<HongXunWorkItem> hongXunWorkItems) {\n\t\tgetHibernateTemplate().deleteAll(hongXunWorkItems);\n\t}",
"int deleteByExample(HomeWorkExample example);",
"public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}",
"public void deleteAll();",
"@Override\n\tpublic void deleteWorkout(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// delete object with primary key\n\t\tQuery theQuery = \n\t\t\t\tcurrentSession.createQuery(\"delete from Workout where id=:workoutId\");\n\t\ttheQuery.setParameter(\"workoutId\", theId);\n\t\t\n\t\ttheQuery.executeUpdate();\t\t\n\t}",
"boolean removeWorkByFolio(int folio);",
"public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }",
"void deleteAll();",
"void deleteAll();",
"void deleteAll();",
"int deleteAll();",
"private void deleteItem()\n {\n Category categoryToDelete = dataCategories.get(dataCategories.size()-1);\n AppDatabase db = Room.databaseBuilder(getApplicationContext(),\n AppDatabase.class, \"database-name\").allowMainThreadQueries().build();\n db.categoryDao().delete(categoryToDelete);\n testDatabase();\n }",
"public void deleteAllState() {\n\r\n SQLiteDatabase db2 = this.getWritableDatabase();\r\n db2.delete(TABLE_SOS2, null, null);\r\n /*\r\n Cursor cursor = db.rawQuery(selectQuery, null);\r\n\r\n // looping through all rows and adding to list\r\n if (cursor.moveToFirst()) {\r\n do {\r\n String id = cursor.getString(0);\r\n String name = cursor.getString(1);\r\n String phone = cursor.getString(2);\r\n //Log.e(\"DEBUG\", \"ID= \" + id+\" NAME= \"+name+\" PHONE= \"+phone);\r\n if (id == null || name == null || phone == null){\r\n return;\r\n }\r\n deleteData(Integer.parseInt(id));\r\n\r\n } while (cursor.moveToNext());\r\n }*/\r\n }",
"int deleteByPrimaryKey(String batchNo);",
"public void delFor(String idi) {\n\t\tourDatabase.delete(DATABASE_TABLE5, Sales_Id + \"=\" +idi, null);\n\t\t\n\t}",
"public void deleteAll() {\n new Thread(new DeleteAllRunnable(dao)).start();\n }",
"@Override\n\tpublic int deleteBatch(String[] idArr) {\n\t\treturn 0;\n\t}",
"public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }",
"public void deleteAll();",
"public void deleteAll();",
"public void deleteAll();",
"@Override\n public void onClick(View v) {\n\n CouSyncDb.getInstance(getApplicationContext()).deleteSync(bean1, new OnOperateFinish() {\n @Override\n public void onFinish(int operateType, Object result) {\n text.setText(\"delete row ID = \" + result.toString());\n }\n });\n }",
"@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }",
"public void deletedb()\n {\n this.appContext.deleteDatabase(DB_NAME);\n Log.d(\"testdeletedb\",\"done\");\n }",
"private void delete() {\n\n\t}",
"int deleteByExample(CliStaffProjectExample example);",
"int deleteByExample(SysTeamExample example);",
"public void doDelete ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tParameterParser params = data.getParameters ();\n\n\t\tList Items = (List) state.getAttribute(STATE_DELETE_ITEMS);\n\n\t\t// Vector deleteIds = (Vector) state.getAttribute (STATE_DELETE_IDS);\n\n\t\t// delete the lowest item in the hireachy first\n\t\tHashtable deleteItems = new Hashtable();\n\t\t// String collectionId = (String) state.getAttribute (STATE_COLLECTION_ID);\n\t\tint maxDepth = 0;\n\t\tint depth = 0;\n\n\t\tIterator it = Items.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tBrowseItem item = (BrowseItem) it.next();\n\t\t\tdepth = ContentHostingService.getDepth(item.getId(), item.getRoot());\n\t\t\tif (depth > maxDepth)\n\t\t\t{\n\t\t\t\tmaxDepth = depth;\n\t\t\t}\n\t\t\tList v = (List) deleteItems.get(new Integer(depth));\n\t\t\tif(v == null)\n\t\t\t{\n\t\t\t\tv = new Vector();\n\t\t\t}\n\t\t\tv.add(item);\n\t\t\tdeleteItems.put(new Integer(depth), v);\n\t\t}\n\n\t\tboolean isCollection = false;\n\t\tfor (int j=maxDepth; j>0; j--)\n\t\t{\n\t\t\tList v = (List) deleteItems.get(new Integer(j));\n\t\t\tif (v==null)\n\t\t\t{\n\t\t\t\tv = new Vector();\n\t\t\t}\n\t\t\tIterator itemIt = v.iterator();\n\t\t\twhile(itemIt.hasNext())\n\t\t\t{\n\t\t\t\tBrowseItem item = (BrowseItem) itemIt.next();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tif (item.isFolder())\n\t\t\t\t\t{\n\t\t\t\t\t\tContentHostingService.removeCollection(item.getId());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tContentHostingService.removeResource(item.getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis6\") + \" \" + item.getName() + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"deleteres\") + \" \" + item.getName() + \" \" + rb.getString(\"wrongtype\"));\n\t\t\t\t}\n\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t}\n\t\t\t\tcatch (InUseException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"deleteres\") + \" \" + item.getName() + \" \" + rb.getString(\"locked\"));\n\t\t\t\t}// try - catch\n\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\"ResourcesAction.doDelete ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t}\n\t\t\t}\t// for\n\n\t\t}\t// for\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// delete sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t\tif (((String) state.getAttribute (STATE_SELECT_ALL_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_SELECT_ALL_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t}\t// if-else\n\n\t}",
"public void deleteAll() {\n\t\t\n\t}",
"public void deleteAll() {\n\n\t}",
"void deleteAllChallenges();",
"@Override\r\n\tpublic void deleteAllInBatch() {\n\t\t\r\n\t}",
"public void eliminar(Long id) throws AppException;",
"public void deleteTableRecords()\n {\n coronaRepository.deleteAll();\n }",
"public void delete() {\r\n\t\tfor (int i = 0; i <= DatabaseUniverse.getDatabaseNumber(); i++) {\r\n\t\t\tif (this.equals(DatabaseUniverse.getDatabases(i))) {\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().set(i, null);\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().remove(i);\r\n\t\t\t\tDatabaseUniverse.setDatabaseNumber(-1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void deleteAll() throws Exception;",
"void deleteAll() throws Exception;",
"public void deleteAll()\n\t{\n\t}",
"public void deleteAll()\n\t{\n\t}",
"@Override\n\tpublic Integer delProjectBatch(List<ProjectInfo> projList) {\n\t\treturn sqlSession.update(\"cn.sep.samp2.project.delProjectBatch\", projList);\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 }",
"@Synchronized\r\n public void cleanTransferModelRecordsPeriodically() {\r\n try {\r\n ArrayList<Long> arrayList = getTransferModelsListIds();\r\n ArrayList<String> arrayListToDelete = new ArrayList<>();\r\n if (!arrayList.isEmpty() && arrayList.size() > 20) {\r\n for (int i = 19; i < arrayList.size(); i++) {\r\n arrayListToDelete.add(arrayList.get(i) + \"\");\r\n }\r\n String[] itemIds = arrayListToDelete.toArray(new String[arrayListToDelete.size()]);\r\n if (itemIds != null && itemIds.length > 0) {\r\n databaseHandler.getWritableDatabase();\r\n databaseHandler.deleteData(TableTransferModel.TABLE_NAME, TableTransferModel.id + \"=?\", itemIds);\r\n }\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n FirebaseCrashlytics.getInstance().recordException(e);\r\n }\r\n }",
"public static void deleteSubject(int i) {\n //delete lessons\n for(int x = 0; x < 5; x++) {\n for(int y = 0; y < 9; y++) {\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n if (schedule.getLesson(x, y).getSubjectIndex() >= i) {\n if (schedule.getLesson(x, y).getSubjectIndex() == i) {\n schedule.setLessonToNull(x, y);\n }\n else {\n schedule.getLesson(x, y).setSubjectIndex(schedule.getLesson(x, y).getSubjectIndex()-1);\n }\n }\n if(schedule.getLesson(x, y) != null) {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": \" + schedule.getLesson(x, y).getSubjectIndex());\n }\n else {\n Log.d(\"Storage\", \"Schedule: Lesson \" + x + y + \": null\");\n }\n }\n }\n }\n\n //delete grades\n for(int n = i; n < Storage.grades.size(); n++) {\n for(int g = 0; g < Storage.grades.get(n).size(); g++) {\n if(n == i) {\n FileSaver.deleteGrade(Storage.grades.get(n).get(g));\n }\n else {\n FileSaver.renameGradeFolder(Storage.grades.get(n).get(g), FileSaver.GRADE_MINUS_SUBJECT_INDEX);\n }\n }\n }\n grades.remove(i);\n\n //delete homework\n for(int n = i; n < Storage.homework.size(); n++) {\n for(int h = 0; h < Storage.homework.get(n).size(); h++) {\n if(n == i) {\n FileSaver.deleteHomework(Storage.homework.get(n).get(h));\n }\n else {\n FileSaver.renameHomeworkFolder(Storage.homework.get(n).get(h), FileSaver.HOMEWORK_MINUS_SUBJECT_INDEX);\n }\n }\n }\n homework.remove(i);\n\n //delete subject\n subjects.remove(i);\n for(int n = i; n < Storage.subjects.size(); n++) {\n Storage.subjects.get(n).decreaseIndex();\n }\n }",
"public void deleteAll(UUID accId) {\n txMgr.doInTransaction(() -> {\n Set<UUID> notebooksIds = datasourcesIdx.delete(accId);\n\n datasourceTbl.deleteAll(notebooksIds);\n });\n }",
"private static void deleteTest() throws SailException{\n\n\t\tString dir2 = \"repo-temp\";\n\t\tSail sail2 = new NativeStore(new File(dir2));\n\t\tsail2 = new IndexingSail(sail2, IndexManager.getInstance());\n\t\t\n//\t\tsail.initialize();\n\t\tsail2.initialize();\n\t\t\n//\t\tValueFactory factory = sail2.getValueFactory();\n//\t\tCloseableIteration<? extends Statement, SailException> statements = sail2\n//\t\t\t\t.getConnection().getStatements(null, null, null, false);\n\n\t\tSailConnection connection = sail2.getConnection();\n\n\t\tint cachesize = 1000;\n\t\tint cached = 0;\n\t\tlong count = 0;\n\t\tconnection.removeStatements(null, null, null, null);\n//\t\tconnection.commit();\n\t}",
"@Transactional\n public void delete(Iterable<Long> ids) {\n List<DevStudio> toDelete = getDevStudioRepository().findAll(ids);\n getDevStudioRepository().deleteInBatch(toDelete);\n }",
"@Override\n\tpublic void deleteAllInBatch() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAllInBatch() {\n\t\t\n\t}",
"public int deleteAllPreg(){\n \tint i=1;\n \tmDbHelper.close(); \n mDb.close(); \n if (mCtx.deleteDatabase(DATABASE_NAME)) { \n Log.d(TAG, \"deleteDatabase(): database deleted.\"); \n } else { \n Log.d(TAG, \"deleteDatabase(): database NOT deleted.\"); \n } \n \t\n \treturn i;\n }",
"@Query(\"DELETE FROM issue_table\")\n void deleteAll();",
"int deleteByPrimaryKey(Long researchid);",
"public static void main_delete(String args[]){\n\t//public static void main(String args[]){\n\t\tQueryResponse solr_response = null;\n\n\t\tSolrConnection tmp_conn = new SolrConnection();\n\t\ttmp_conn.setSolrURL(\"http://localhost:8983/solr/Test1\");\n\t\t\n\t\tHashMap<String,String> params = new HashMap<String,String>();\n\t\tparams.put(\"rows\", \"16\");\n\t\t//tmp_conn.resetQueryParams();\n\t\ttmp_conn.setQueryParams(params);\n\t\t//tmp_conn.setQueryParams(\"q\",\"id:\"+QueryParser.escape(\"com.xinhuanet.js.www:http/2013-10/14/c_117706867_16.htm\"));\n\t\t\n\t\ttry {\n\t\t\tsolr_response = tmp_conn.getContent();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\tfor (SolrDocument doc:solr_response.getResults()){\n\t\t\t//String id = doc.getFieldValue(\"id\").toString();\n\t\t\n\t\tList<String> ids = new ArrayList<String>();\n\t\t//ids.add(\"3\");\n\t\t//ids.add(\"8\");\n\t\t//ids.add(\"7\");\n\t\tids.add(doc.getFieldValue(\"id\").toString());\n\t\ttmp_conn.deleteContentById(ids);\n\t\t}\n\t}",
"int deleteByPrimaryKey(String thingid);",
"@Test\r\n\tpublic void testDeleteAll() throws Exception {\n\t\tArrayList<Calificacion> calificaciones = modelo.getAll();\r\n\t\tfor (Calificacion calificacion : calificaciones) {\r\n\t\t\tassertTrue(modelo.delete(calificacion.getId()));\r\n\t\t}\r\n\t\tassertNull(modelo.getAll());\r\n\t}",
"public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }",
"public abstract void deleteAll();",
"@Override\n\tpublic void delete(WorkSummary workSummary) {\n\n\t}",
"@Override\n public void delete(ArrayList<League> leagues) {\n\n }",
"public void deleteAllRealTestCode() {\n\n\t myDataBase.delete(\"tbl_TestCode\", \"TestCode\" + \" != ?\",\n\t new String[] { \"1\" });\n\t }",
"public String eliminarProgramaPeriodoDesarrollo_action()throws SQLException\n {\n mensaje=\"\";\n for(ProgramaProduccionPeriodo bean:programaProduccionPeriodoDesarrolloList)\n {\n if(bean.getChecked())\n {\n try\n {\n con = Util.openConnection(con);\n con.setAutoCommit(false);\n String consulta = \"select count(*) as contLotes\"+\n \" from PROGRAMA_PRODUCCION p where p.COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta verificar que el programa no tenga registrado lotes \"+consulta);\n Statement st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n ResultSet res=st.executeQuery(consulta);\n res.next();\n PreparedStatement pst=null;\n if(res.getInt(\"contLotes\")>0)\n {\n mensaje=\"No se puede eliminar el Programa de Produccion porque tiene registrado \"+res.getInt(\"contLotes\")+\" lotes\";\n }\n else\n {\n consulta=\"delete PROGRAMA_PRODUCCION_PERIODO where COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta delete programa produccion periodo \"+consulta);\n pst=con.prepareStatement(consulta);\n if(pst.executeUpdate()>0)LOGGER.info(\"se elimino el programa de produccion periodo\");\n mensaje=\"1\";\n }\n con.commit();\n\n if(pst!=null)pst.close();\n con.close();\n }\n catch (SQLException ex)\n {\n con.rollback();\n con.close();\n mensaje=\"Ocurrio un error al momento de eliminar el programa periodo, intente de nuevo\";\n LOGGER.warn(\"error\", ex);\n }\n }\n }\n if(mensaje.equals(\"1\"))\n {\n this.cargarProgramaProduccionPeriodoDesarrollo_action();\n }\n return null;\n }",
"int deleteByPrimaryKey(String maht);",
"public void eliminarNotas(int id ){\n String[] campos = {Integer.toString(id)};\n db.delete(\"nota\",\"_id=?\",campos);\n }",
"int deleteByExample(NjOrderWork2Example example);",
"@Override\n public void delete(Long i) {\n String sql = \"UPDATE users SET status=FALSE WHERE id=?\";\n jdbcTemplate.update(sql, i);\n\n\n }",
"private void removeLocalEntry(int dbId,\n ArrayList<ContentProviderOperation> batch,\n SyncResult syncResult) {\n\n Uri deleteUri = CONTENT_URI.buildUpon().appendPath(Integer.toString(dbId)).build();\n Log.i(TAG, \"Scheduling delete: \" + deleteUri);\n batch.add(ContentProviderOperation.newDelete(deleteUri).build());\n syncResult.stats.numDeletes++;\n }",
"private void deletes() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Delete delete: deletes) {\n \tdelete.init();\n }\n \n //DBPeer.updateTableIndexes(); //Set min max of indexes not implemented yet\n }",
"@Override\r\n\tpublic GlobalResult deleteEquipt(String machineno,String fstarttime) {\n\t\t\r\n\t\tint deleteByPrimaryKey = faultymachine.deleteByPrimaryKey(machineno,fstarttime);\r\n\t\tif(deleteByPrimaryKey==0) {\r\n\t\t\treturn new GlobalResult(200, \"删除失败\", null);\r\n\t\t}else {\r\n\t\t\treturn new GlobalResult(200, \"删除成功\", null);\r\n\t\t}\r\n\t}",
"private void deletejob() {\n\t\tjob.delete(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"删除成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void queryDataFromDatabase() {\n AppDatabase database = Room.databaseBuilder(this, AppDatabase.class, DB_NAME).allowMainThreadQueries().build();\n runningdao = database.getRunningdataDAO();\n List<Runningdata> runningdata_list = runningdao.getAllRuningdata();\n for (int i = 0; i < runningdata_list.size(); i++) {\n int oldId = runningdata_list.get(i).getId();\n String oldStarttime = runningdata_list.get(i).getStarttime();\n double oldDistance = runningdata_list.get(i).getDistance();\n double oldCalorie = runningdata_list.get(i).getCalorie();\n System.out.println(\"Database shows here: \"+\"i:\"+i+\"oldId:\"+oldId +\"oldStarttime\"+oldStarttime+\"oldDistance\"+oldDistance+\"oldCalorie\"+oldCalorie);\n }\n // delete data from database by ID\n //runningdao.deleteById(10);\n }",
"int logicalDeleteByPrimaryKey(Integer id);",
"int logicalDeleteByPrimaryKey(Integer id);",
"int logicalDeleteByPrimaryKey(Integer id);",
"int logicalDeleteByPrimaryKey(Integer id);",
"int logicalDeleteByPrimaryKey(Integer id);",
"int logicalDeleteByPrimaryKey(Integer id);",
"int logicalDeleteByPrimaryKey(Integer id);",
"public void deleteWerker(Worker w)\n {\n if(aantalWerkers > 0)\n {\n for(int i=0; i<5;i++)\n {\n if(workers[i] == w)\n {\n workers[i] = null;\n }\n }\n w.setInStructure(false);\n aantalWerkers--;\n }\n }",
"int delWaybillByIdStore(Long id_store);",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"public void deleteById(int theId);",
"public void deleteAll() {\n repository.deleteAll();\n }",
"public int batchDelete(String[] list) {\n\treturn projectmapper.batchDelete(list);\n}",
"@Query(\"DELETE FROM train_stations\")\n\tvoid deleteAll();",
"int deleteByPrimaryKey(String taskid);",
"int deleteByPrimaryKey(Integer taskid);",
"@Override\n\tpublic boolean delHMR(Integer hwId) throws WEBException {\n\t\ttry {\n\t\t\thmrDao = (HwMindRelationDao) DaoFactory.instance(null).getDao(Constants.DAO_HW_MIND_RELATION_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\ttran = sess.beginTransaction();\n\t\t\tList<HwMindRelationInfo> hmrList = hmrDao.findInfoByOpt(sess, hwId, 0);\n\t\t\tif(hmrList.size() > 0){\n\t\t\t\tfor(Integer i = 0 ; i < hmrList.size() ; i++){\n\t\t\t\t\thmrDao.delete(sess, hmrList.get(i));\n\t\t\t\t\tif(i % 10 == 0){//批插入的对象立即写入数据库并释放内存\n\t\t\t\t\t\tsess.flush();\n\t\t\t\t\t\tsess.clear();\n\t\t\t\t\t\ttran.commit();\n\t\t\t\t\t\ttran = sess.beginTransaction();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttran.commit();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"根据家庭作业编号批量删除系统家庭作业思维类型关联信息记录时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}",
"int deleteByExample(AoD5e466WorkingDayExample example);",
"@Test\n public void removeAll_with_workflow_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addWfToDb(0);\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n response = callAPI(VERB.GET, \"/wf/\", null);\n status = response.getStatus();\n assertEquals(200, status);\n\n List<Workflow> readWorkflowList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(1, readWorkflowList.size());\n }",
"public void delete(int id) \n{ \n\ttvShowRepo.deleteById(id); \n}",
"@Override\r\n\tpublic void batchDelete(String[] ids) {\n\t\tfor(int i=0;i<ids.length;i++)\r\n\t\t\tdelete(ids[i]);\t\r\n\t}",
"@Override\n\tpublic void deletRow(HongXunWorkItem hongXunWorkItem) {\n\t\tgetHibernateTemplate().delete(hongXunWorkItem);\n\t}",
"int deleteByPrimaryKey(Integer teamId);",
"@Override\n\tpublic int batchDeleteAsksByIds(Integer[] idIntegerArr) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\r\n\t}",
"@Override\n\tpublic void deletRow(HongXunWorkNum hongXunWorkNum) {\n\t\tgetHibernateTemplate().delete(hongXunWorkNum);\n\t}",
"@Override\n\tpublic String deleteBatch() throws Exception {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}"
] | [
"0.70420617",
"0.6800411",
"0.67022973",
"0.661235",
"0.65371436",
"0.64530903",
"0.6423829",
"0.64021814",
"0.6348063",
"0.63422745",
"0.632973",
"0.632973",
"0.632973",
"0.6287853",
"0.6261338",
"0.62514913",
"0.62450945",
"0.6216968",
"0.6210553",
"0.6201741",
"0.6198803",
"0.6193997",
"0.6193997",
"0.6193997",
"0.61851764",
"0.61747926",
"0.6148036",
"0.6128498",
"0.61225307",
"0.6119556",
"0.6118871",
"0.61130553",
"0.61124605",
"0.6107081",
"0.6105071",
"0.6101995",
"0.6101258",
"0.6100876",
"0.6093098",
"0.6093098",
"0.60858166",
"0.60858166",
"0.60839206",
"0.60742295",
"0.6071876",
"0.60700583",
"0.60654444",
"0.6057657",
"0.6049286",
"0.6042655",
"0.6042655",
"0.6037484",
"0.60304743",
"0.6030057",
"0.601269",
"0.59966564",
"0.59926575",
"0.5990103",
"0.59773636",
"0.5976684",
"0.5959664",
"0.5959023",
"0.59525025",
"0.5948259",
"0.5943553",
"0.5943333",
"0.59423685",
"0.5936763",
"0.5935902",
"0.5927807",
"0.5921491",
"0.5920613",
"0.59151053",
"0.59151053",
"0.59151053",
"0.59151053",
"0.59151053",
"0.59151053",
"0.59151053",
"0.5914859",
"0.59139043",
"0.5911698",
"0.5910697",
"0.59074134",
"0.5904406",
"0.5903771",
"0.59035367",
"0.59021693",
"0.5900885",
"0.5897136",
"0.5892148",
"0.5891534",
"0.5887585",
"0.58867896",
"0.5882776",
"0.5880181",
"0.5878586",
"0.5876152",
"0.5871164",
"0.5871047",
"0.5871047"
] | 0.0 | -1 |
function: Adjust the DatePickerDialog | public void showDatePickerDialog(View v) {
DialogFragment newFragment = new DatePickerFragment() {
@Override
public void onDateSet(DatePicker view, int year, int month, int day) {
dayOfWeek=0;
Calendar d = new GregorianCalendar(year,month,day);
dayOfWeek = d.get(Calendar.DAY_OF_WEEK);
Log.d("day",String.valueOf(dayOfWeek));
dateTV = (TextView)findViewById(R.id.DateTV);
date=day+"/"+(month+1)+"/"+year+"";
dateTV.setText(date);
}
};
newFragment.show(getSupportFragmentManager(), "datePicker");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }",
"@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }",
"private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n DatePickerDialog pickerDialog=null;\n if (id == 999)\n pickerDialog = new DatePickerDialog(this,myDateListener, year, month, day);\n else\n if(id==888)\n pickerDialog = new DatePickerDialog(this,myDateListener1, year, month, day);\n\n Calendar c1 = Calendar.getInstance();\n\n c1.set(year,month,day,c1.get(Calendar.HOUR_OF_DAY)-1,c1.get(Calendar.MINUTE)-1,c1.get(Calendar.SECOND)-30);\n //c1.add(Calendar.DAY_OF_MONTH,-1);\n long minDate = c1.getTime().getTime();\n pickerDialog.getDatePicker().setMinDate(minDate);\n\n Date today = new Date();\n Calendar c = Calendar.getInstance();\n c.setTime(today);\n\n c.add(Calendar.MONTH, 18 ); // Subtract 6 months\n long maxDate = c.getTime().getTime(); // Twice!\n pickerDialog.getDatePicker().setMaxDate(maxDate);\n\n\n return pickerDialog;\n\n\n }",
"public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }",
"private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n //final Calendar d = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\n c.add(Calendar.DATE, 60);\n datePickerDialog.getDatePicker().setMaxDate(c.getTimeInMillis());\n return datePickerDialog;\n }",
"@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n autoD8.setText(dayOfMonth + \" \" + monthString(monthOfYear + 1) + \" \" + year);\n\n dialogueCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n dialogueCal.set(Calendar.YEAR, year);\n dialogueCal.set(Calendar.MONTH, monthOfYear);\n timeAndDate = dialogueCal.getTimeInMillis();\n\n }",
"@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n if(day<10&&month+1<10){\n dateToStr=\"0\"+String.valueOf(day)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n // currentDate=String.valueOf(year)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+\"0\"+String.valueOf(day);\n }else if(day<10&&month+1>10){\n dateToStr=\"0\"+String.valueOf(day)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n // currentDate=String.valueOf(year)+\"-\"+String.valueOf(month+1)+\"-\"+\"0\"+String.valueOf(day);\n }else if(day>10&&month+1<10){\n dateToStr=String.valueOf(day)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n //currentDate=String.valueOf(year)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+String.valueOf(day);\n }else {\n //currentDate=String.valueOf(year)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(day);\n dateToStr=String.valueOf(day)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n }\n\n // dateToStr=String.valueOf(day)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n\n et_date1.setText(dateToStr);\n\n\n }",
"public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }",
"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 }",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }",
"@OnClick(R.id.fragApod_btnSelectDate)\n public void onClickBtnSelectDate(){\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n android.R.style.Theme_DeviceDefault_Light_Panel,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n //Le damos el formato requerido a la fecha seleccionada\n date = new StringBuilder();\n date.append(year).append(\"-\");\n if((monthOfYear+1) < 10) date.append(\"0\");\n date.append(monthOfYear+1).append(\"-\");\n if(dayOfMonth < 10) date.append(\"0\");\n date.append(dayOfMonth);\n\n //LLamamos al método que establece su callback\n apodServiceEnqueue(apodService);\n }\n }, iYear, iMonth, iDay);\n datePickerDialog.show();\n //datePickerDialog.setTitle(getString(R.string.fragApod_msgSelectDate));\n //Sólo puede seleccionar hasta la fecha actual\n datePickerDialog.getDatePicker().setMaxDate(calendar.getTimeInMillis());\n\n //Le restamos 16 años a la fecha actual para ponerla como fecha mínima de selección\n Calendar calendarTemp = Calendar.getInstance();\n calendarTemp.add(calendar.YEAR,-16);\n datePickerDialog.getDatePicker().setMinDate(calendarTemp.getTimeInMillis());\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 }",
"private void showDateDialog(){\n\t\tDatePickerDialog dpd = new DatePickerDialog(this, new OnDateSetListener(){\r\n\t\t\tpublic void onDateSet(DatePicker view , int year, int month, int day){\r\n\t\t\t\tgiorno.set(year,month,day);\r\n\t\t\t\tEditText et_giorno = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_giorno);\r\n\t\t\t\tformatter.applyPattern(\"dd MMMMM yyyy\");\r\n\t\t\t\tet_giorno.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.YEAR), giorno.get(Calendar.MONTH), giorno.get(Calendar.DAY_OF_MONTH));\r\n\t\tdpd.show();\r\n\t}",
"private void tanggalAkhirPembalikanDatepicker(){\n tanggalAkhirPembalikanEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int day = c.get(Calendar.DAY_OF_MONTH);\n int month = c.get(Calendar.MONTH);\n int year = c.get(Calendar.YEAR);\n\n dpd = new DatePickerDialog(IncubationForm.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n int m =month+1;\n tanggalAkhirPembalikanEditText.setText(dayOfMonth + \"/\"+m+\"/\"+year);\n tanggalPembalikan[1][0]= dayOfMonth;\n tanggalPembalikan[1][1]= month+1;\n tanggalPembalikan[1][2]= year;\n }\n }, year, month, day);\n dpd.show();\n }\n });\n }",
"private void tanggalAwalPembalikanDatepicker(){\n tanggalAwalPembalikanEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int day = c.get(Calendar.DAY_OF_MONTH);\n int month = c.get(Calendar.MONTH);\n int year = c.get(Calendar.YEAR);\n\n dpd = new DatePickerDialog(IncubationForm.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n int m =month+1;\n tanggalAwalPembalikanEditText.setText(dayOfMonth + \"/\"+m+\"/\"+year);\n tanggalPembalikan[0][0]= dayOfMonth;\n tanggalPembalikan[0][1]= month+1;\n tanggalPembalikan[0][2]= year;\n }\n }, year, month, day);\n dpd.show();\n }\n });\n }",
"@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, month, day);\n fromDateEtxt.setText(dateFormatter.format(newDate.getTime()));\n }",
"@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n myDateListener, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis());\n return datePickerDialog;\n }\n return null;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n /*\n Get Android DatePickerDialog without day\n - This code does not work\n THEME_DEVICE_DEFAULT_DARK\n THEME_DEVICE_DEFAULT_LIGHT\n - This code work fine\n THEME_HOLO_DARK\n THEME_HOLO_LIGHT\n THEME_TRADITIONAL\n */\n\n //DatePickerDialog dpd = new DatePickerDialog(getActivity(),AlertDialog.THEME_HOLO_DARK,this,year, month, day){\n //DatePickerDialog dpd = new DatePickerDialog(getActivity(),AlertDialog.THEME_HOLO_LIGHT,this,year, month, day){\n DatePickerDialog dpd = new DatePickerDialog(getActivity(),AlertDialog.THEME_TRADITIONAL,this,year, month, day){\n @Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n int day = getContext().getResources().getIdentifier(\"android:id/day\", null, null);\n if(day != 0){\n View dayPicker = findViewById(day);\n if(dayPicker != null){\n //Set Day view visibility Off/Gone\n dayPicker.setVisibility(View.GONE);\n }\n }\n }\n };\n return dpd;\n }",
"private void setEntryDateField2() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog2 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket2().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, 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 }\n\t\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}",
"@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\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Calendar cal = Calendar.getInstance();\r\n int year = cal.get(Calendar.YEAR);\r\n int month = cal.get(Calendar.MONTH);\r\n int day = cal.get(Calendar.DAY_OF_MONTH);\r\n Log.i(TAG,\"onCreate Date: \" + year + \"-\" + month + \"-\" + day);\r\n // Create a new instance of TimePickerDialog and return it\r\n DatePickerDialog dpd = new DatePickerDialog(getActivity(),this, year, month, day);\r\n dpd.getDatePicker().setMaxDate(System.currentTimeMillis() + 1000);\r\n return dpd;\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), android.R.style.Theme_Holo_Dialog, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int y, int m, int d) {\n String dayString = String.valueOf(d);\n if (dayString.length() == 1)\n dayString = \"0\" + dayString;\n\n int month = m + 1;\n String monthString = String.valueOf(month);\n if (monthString.length() == 1)\n monthString = \"0\" + monthString;\n\n mListener.onDateSetListener(Integer.toString(y), monthString, dayString);\n }\n }, year, month, day);\n datePickerDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n return datePickerDialog;\n }",
"private void ShowDatePickerDialog() {\n\r\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tint mYear = c.get(Calendar.YEAR);\r\n\t\tint mMonth = c.get(Calendar.MONTH);\r\n\t\tint mDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tDatePickerDialog datepicker = new DatePickerDialog(getActivity(),\r\n\t\t\t\tdatePickerListener, mYear, mMonth, mDay);\r\n\t\tdatepicker.getDatePicker()\r\n\t\t\t\t.setMinDate(System.currentTimeMillis() - 1000);\r\n\t\tdatepicker.show();\r\n\r\n\t}",
"@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 }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final 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 // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMinDate(calendar.getTimeInMillis());\n return datePickerDialog;\n }",
"@Override\n public void onDateSet(DatePickerDialog view, int year, int month, int date)\n {\n String dateSet = \"\" + year + \"-\" + (++month) + \"-\" + date;\n selectDateTextView.setText(dateSet);\n\n\n\n\n// _device_id = \"2345\";\n// _expiry_date = T.parseDate(dateSet);\n// _document_type = \"Driving Licence\";\n//\n// uploadDocumentImage();\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 }",
"private void setEntryDateField1() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"@Override\n public void onClick(final View v) {\n\n final Calendar now = Calendar.getInstance();\n final DatePickerDialog dpd = DatePickerDialog.newInstance(\n new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePickerDialog datePickerDialog, int i, int i1, int i2) {\n now.set(i, i1, i2);\n TextView tv = (TextView) view.findViewById(R.id.product_bookingdate_tv);\n if(SimpleDateFormat.getDateInstance().format(now.getTime()).equals(SimpleDateFormat.getDateInstance().format(Calendar.getInstance().getTime()))) {\n MsgUtils.showToast(getActivity(), MsgUtils.TOAST_TYPE_NO_CURRENT_BOOKING_DATE, null, MsgUtils.ToastLength.LONG);\n return;\n }\n else\n tv.setText(SimpleDateFormat.getDateInstance().format(now.getTime()));\n }\n },\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.setThemeDark(true);\n dpd.vibrate(true);\n dpd.dismissOnPause(true);\n //dpd.setAccentColor(Color.parseColor(\"#9C27B0\"));\n dpd.setTitle(\"Booking Date\");\n\n //***********************\n //Limit Dates\n //***********************\n\n dpd.setMinDate(now);\n\n /*ArrayList<Calendar> lDates = new ArrayList();\n for (int i = 0; i <= 2; i++) {\n Calendar date = Calendar.getInstance();\n date.add(Calendar.MONTH, i);\n lDates.add(date);\n }\n\n Calendar[] lCalendarArray = lDates.toArray(new Calendar[lDates.size()]);\n dpd.setSelectableDays(lCalendarArray);*/\n\n //***********************\n //Disable Advanced Booking Dates\n //***********************\n\n int advancedBookingDays = 0;\n\n for(ProductAttributeGroups pag : selectedProduct.getAttributeGroups()) {\n for(ProductAttributes pa : pag.getProductAttributes()) {\n if (pa.getName().toLowerCase().equals(CONST.OPTION_ATTRIBUTE_BOOKING)) {\n if (pa.getText() != null || pa.getText() != \"\")\n advancedBookingDays = Integer.valueOf(pa.getText());\n else\n advancedBookingDays = 1;\n }\n }\n }\n\n ArrayList<Calendar> bDates = new ArrayList();\n for (int i = 0; i < advancedBookingDays; i++) {\n Calendar date = Calendar.getInstance();\n date.add(Calendar.DAY_OF_MONTH, i+1);\n bDates.add(date);\n }\n\n /*Calendar currentDate = Calendar.getInstance();\n currentDate.add(Calendar.DAY_OF_MONTH, 0);\n bDates.add(0, currentDate);*/\n\n Calendar[] calendarArray = bDates.toArray(new Calendar[bDates.size()]);\n dpd.setDisabledDays(calendarArray);\n\n dpd.show(getActivity().getFragmentManager(), \"Date Picker\");\n\n if(bookingDateTv.getText() != null || bookingDateTv.getText() != \"\")\n upateTimeSpinner(selectedProduct);\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 }",
"@SuppressLint(\"SimpleDateFormat\")\n\tprivate void getCalenderView() {\n\n\t\ttry {\n\n\t\t\tDatePickerDialog dpd = new DatePickerDialog(this,\n\t\t\t\t\tnew DatePickerDialog.OnDateSetListener() {\n\n\t\t\t\t\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\t\t\t\t\t\t\t// TODO Auto-generated method stub\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}\n\t\t\t\t\t}, year, month, day);\n\t\t\tdpd.getDatePicker().setMinDate(c.getTimeInMillis());\n\n\t\t\tc.add(Calendar.MONTH, 1);\n\n\t\t\tdpd.getDatePicker().setMaxDate(c.getTimeInMillis());\n\n\t\t\tc.add(Calendar.MONTH, -1);\n\n\t\t\tSystem.out.println(\"!!!!!pankaj\" + c.getTimeInMillis());\n\t\t\t// dpd.getDatePicker().setMaxDate(c.);\n\t\t\tdpd.show();\n\t\t\tdpd.setCancelable(false);\n\t\t\tdpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void DateSelection(final TextView tv_inv_date) {\n try {\r\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(myContext);\r\n final DatePicker dateReportDate = new DatePicker(myContext);\r\n String date_str = tvDate.getText().toString();\r\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\r\n DateTime objDate = new DateTime(dd);\r\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\r\n String strMessage = \"\";\r\n\r\n\r\n\r\n dlgReportDate\r\n .setIcon(R.drawable.ic_launcher)\r\n .setTitle(\"Date Selection\")\r\n .setMessage(strMessage)\r\n .setView(dateReportDate)\r\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n String strDd = \"\";\r\n public void onClick(DialogInterface dialog, int which) {\r\n if (dateReportDate.getDayOfMonth() < 10) {\r\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n } else {\r\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\r\n }\r\n if (dateReportDate.getMonth() < 9) {\r\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n } else {\r\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\r\n }\r\n\r\n strDd += String.valueOf(dateReportDate.getYear());\r\n tv_inv_date.setText(strDd);\r\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\r\n }\r\n })\r\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n\r\n public void onClick(DialogInterface dialog, int which) {\r\n // TODO Auto-generated method stub\r\n\r\n }\r\n })\r\n .show();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t DatePickerDialog mDatePicker=new DatePickerDialog(contextyeild, new OnDateSetListener() { \n\t\t\t\t\t public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t // TODO Auto-generated method stub \n\t\t\t\t\t /* Your code to get date and time */\n\t\t\t\t\t \t//final Calendar c = Calendar.getInstance();\n\t\t\t\t\t \t\t//\tc.set(selectedyear, selectedmonth, 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 }\n\t\t\t\t\t },start_year, start_month, start_day);\n\t\t\t\t\t mDatePicker.setTitle(\"Select date\"); \n\t\t\t\t\t mDatePicker.show(); \n\t\t\t\t\t\t\t}",
"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 onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDateField.setText(year + \"/\" + (month + 1) + \"/\" + day);\n }",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n }",
"public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\n try{\n Date date = new Date(selectedyear-1900, selectedmonth,selectedday);\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n cDate = formatter.format(date);\n// DateFormat aoriginalFormat = new SimpleDateFormat(\"dd MMM yyyy\", Locale.getDefault());\n DateFormat atargetFormat = new SimpleDateFormat(\"dd MMM,yyyy\");\n Date date2 = formatter.parse(cDate);\n formattedDate = atargetFormat.format(date2);\n }catch (ParseException e1){\n e1.printStackTrace(); }\n catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n\n e1.setText(formattedDate);\n// if(String.valueOf(selectedday).length()== 1 )\n// {\n//\n// if(String.valueOf(selectedmonth).length()== 1)\n// {\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + selectedmonth + \"-\" + selectedyear);\n//\n// }\n//\n// else{\n// e1.setText(selectedday + \"-\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n\n }",
"private void DateSelection(final TextView tv_inv_date ) {\n try {\n AlertDialog.Builder dlgReportDate = new AlertDialog.Builder(this);\n final DatePicker dateReportDate = new DatePicker(this);\n String date_str = tvDate.getText().toString();\n String dd = date_str.substring(6,10)+\"-\"+date_str.substring(3,5)+\"-\"+date_str.substring(0,2);\n DateTime objDate = new DateTime(dd);\n dateReportDate.updateDate(objDate.getYear(), objDate.getMonth(), objDate.getDay());\n String strMessage = \"\";\n\n\n dlgReportDate\n .setIcon(R.drawable.ic_launcher)\n .setTitle(\"Date Selection\")\n .setMessage(strMessage)\n .setView(dateReportDate)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n String strDd = \"\";\n public void onClick(DialogInterface dialog, int which) {\n if (dateReportDate.getDayOfMonth() < 10) {\n strDd = \"0\" + String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n } else {\n strDd = String.valueOf(dateReportDate.getDayOfMonth())+\"-\";\n }\n if (dateReportDate.getMonth() < 9) {\n strDd += \"0\" + String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n } else {\n strDd += String.valueOf(dateReportDate.getMonth() + 1) + \"-\";\n }\n\n strDd += String.valueOf(dateReportDate.getYear());\n tv_inv_date.setText(strDd);\n Log.d(\"ReprintDate\", \"Selected Date:\" + strDd);\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n }\n })\n .show();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void setSaleDateField1() {\n // Create a DatePickerDialog and manage it\n mSaleDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateSale1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n ETdateFrom.setText(new StringBuilder().append(arg3).append(\"-\")\n .append(arg2+1).append(\"-\").append(arg1));\n }",
"private void initDatePicker() {\n DatePickerDialog.OnDateSetListener dateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n String date = makeDateString(day, month, year);\n btnDiaCitaver.setText(date);\n }\n };\n// Calendar cal = Calendar.getInstance();\n// int year = cal.get(Calendar.YEAR);\n// int month = cal.get(Calendar.MONTH);\n// int day = cal.get(Calendar.DAY_OF_MONTH);\n // Traer la fecha de la cita por partes\n String[] vec_fecha = infoCita.getString(1).split(\" \");\n String[] vec_fecha_dia = vec_fecha[0].split(\"-\");\n int year = Integer.parseInt(vec_fecha_dia[0]);\n int month = Integer.parseInt(vec_fecha_dia[1]) - 1;\n int day = Integer.parseInt(vec_fecha_dia[2]);\n\n int style = AlertDialog.THEME_DEVICE_DEFAULT_DARK;\n datePickerDialogFecha = new DatePickerDialog(this, style, dateSetListener, year, month, day);\n// datePickerDialogFechaNacimiento.getDatePicker().setMaxDate(cal.getTimeInMillis());\n\n }",
"@Override\n\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\tint dayOfMonth) {\n\t\tgetday = dayOfMonth;\n\t\tgetmonth = monthOfYear;\n\t\tgetyear = year;\n\t\tCalendar datecheck = Calendar.getInstance();\n\n\t\tdatecheck.set(getyear, getmonth, getday);\n\n\t\tLong timeinms = datecheck.getTimeInMillis(); \n/*\nswitch(view.getTag().toString())\n{\ncase \"startdialog\":\n\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\n\n\t\nbreak;\n\n\n} */\n\t\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\nToast checktag = Toast.makeText(getActivity(), view.getId(), Toast.LENGTH_LONG)\t;\t\nchecktag.show();\n\t\t\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 }",
"private void datePickerChange(DatePicker datePicker, int year, int month, int dayOfMonth) {\n if(month/10<1){\n if (dayOfMonth/10<1){\n edtDate.setText(year +\"-0\" + (month+1) + \"-0\" + dayOfMonth);\n }else{\n edtDate.setText(year +\"-0\" + (month+1) + \"-\" + dayOfMonth);\n }\n }else{\n if (dayOfMonth/10<1){\n edtDate.setText(year +\"-\" + (month+1) + \"-0\" + dayOfMonth);\n }else{\n edtDate.setText(year +\"-\" + (month+1) + \"-\" + dayOfMonth);\n }\n }\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(Edit_Profile.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 monthOfYear, int dayOfMonth) {\n if(year<calendar.get(Calendar.YEAR)){\n\n showMessage(\"Invalid Start Date\");\n Log.i(\"Calendar\",year+\" \"+calendar.get(Calendar.YEAR));\n return;\n }\n int monthofYear=monthOfYear+1;\n startDateStrg = year + \"-\" + monthofYear + \"-\" + dayOfMonth;\n mStartDateA2.setText(startDateStrg);\n datePickerDialog1.dismiss();\n }",
"@Override\n public void onClick(View v) {\n Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker;\n mDatePicker = new DatePickerDialog(SingleEventActivity.this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n // TODO Auto-generated method stub\n /* Your code to get date and time */\n// selectedmonth = selectedmonth + 1;\n\n try{\n Date date = new Date(selectedyear-1900, selectedmonth,selectedday);\n SimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n cDate = formatter.format(date);\n// DateFormat aoriginalFormat = new SimpleDateFormat(\"dd MMM yyyy\", Locale.getDefault());\n DateFormat atargetFormat = new SimpleDateFormat(\"dd MMM,yyyy\");\n Date date2 = formatter.parse(cDate);\n formattedDate = atargetFormat.format(date2);\n }catch (ParseException e1){\n e1.printStackTrace(); }\n catch (java.text.ParseException e) {\n e.printStackTrace();\n }\n\n e1.setText(formattedDate);\n// if(String.valueOf(selectedday).length()== 1 )\n// {\n//\n// if(String.valueOf(selectedmonth).length()== 1)\n// {\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + selectedmonth + \"-\" + selectedyear);\n//\n// }\n//\n// else{\n// e1.setText(selectedday + \"-\" + selectedmonth + \"-\" + selectedyear);\n// }\n//\n// e1.setText(\"0\"+selectedday + \"-0\" + selectedmonth + \"-\" + selectedyear);\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select Date\");\n mDatePicker.show();\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), enddatepicker, trigger.getEndtime().get(Calendar.YEAR), trigger.getEndtime().get(Calendar.MONTH), trigger.getEndtime().get(Calendar.DAY_OF_MONTH)).show();\n }",
"private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }",
"@Override\r\n public void onDateChanged(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n if ((mSelectDatePicker.getMonth() + 1) < 10 && mSelectDatePicker.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-0\" + (mSelectDatePicker.getMonth() + 1) + \"-0\" + mSelectDatePicker.getDayOfMonth());\r\n } else if ((mSelectDatePicker.getMonth() + 1) >= 10 && mSelectDatePicker.getDayOfMonth() < 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-\" + (mSelectDatePicker.getMonth() + 1) + \"-0\" + mSelectDatePicker.getDayOfMonth());\r\n } else if ((mSelectDatePicker.getMonth() + 1) < 10 && mSelectDatePicker.getDayOfMonth() >= 10) {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-0\" + (mSelectDatePicker.getMonth() + 1) + \"-\" + mSelectDatePicker.getDayOfMonth());\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + mSelectDatePicker.getYear() + \"-\" + (mSelectDatePicker.getMonth() + 1) + \"-\" + mSelectDatePicker.getDayOfMonth());\r\n }\r\n\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n c.set(year, month, day);\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);\r\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\r\n datePickerDialog.updateDate(year, month, day);\r\n // Create a new instance of DatePickerDialog and return it\r\n return datePickerDialog;\r\n }",
"@SuppressLint(\"StaticFieldLeak\")\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n myear = c.get(Calendar.YEAR);\n mmonth= c.get(Calendar.MONTH);\n mday= c.get(Calendar.DAY_OF_MONTH);\n return new DatePickerDialog(getActivity(), this, myear, mmonth, mday);\n }",
"@Override\n public void onDateSet(android.widget.DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n //melakukan set calendar untuk menampung tanggal yang dipilih\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n //textview berubah menyesuaikan ketika sudah memilih tanggal\n txtview_date_result.setText(\"Date : \"+date_format.format(newDate.getTime()));\n }",
"@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}",
"private void displayDatePickerAndUpdateUi(View view) {\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(mActivity, (datePicker, year1, month1, day1) -> {\n int id = view.getId();\n if (id == R.id.fragment_search_for_sale_txt) {\n mBinding.fragmentSearchForSaleTxt.setText(getString(R.string.hour_format, day1, month1 + 1, year1));\n } else if (id == R.id.fragment_search_sold_txt) {\n mBinding.fragmentSearchSoldTxt.setText(getString(R.string.hour_format, day1, month1 + 1, year1));\n }\n }, year, month, day);\n datePickerDialog.setButton(DialogInterface.BUTTON_NEUTRAL, \"Delete Date\", (dialogInterface, i) -> {\n int id = view.getId();\n if (id == R.id.fragment_search_for_sale_txt) {\n mBinding.fragmentSearchForSaleTxt.setText(null);\n } else if (id == R.id.fragment_search_sold_txt) {\n mBinding.fragmentSearchSoldTxt.setText(null);\n }\n });\n datePickerDialog.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 }",
"@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 }",
"private void show_Date_Picker() {\n final Calendar c = Calendar.getInstance();\r\n mYear = c.get(Calendar.YEAR);\r\n mMonth = c.get(Calendar.MONTH);\r\n mDay = c.get(Calendar.DAY_OF_MONTH);\r\n android.app.DatePickerDialog datePickerDialog = new android.app.DatePickerDialog(this,\r\n new android.app.DatePickerDialog.OnDateSetListener() {\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth)\r\n {\r\n\r\n txt_mfgdate_text.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);\r\n\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.show();\r\n\r\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(AddVehicleActivity.this, date2, 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(context, 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(Edit_Profile.this, dateannier, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(LocationActivity.this, this, startYear, startMonth, startDay);\n return dialog;\n\n }",
"@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n try{\n int month = monthOfYear + 1;\n String formattedMonth = \"\" + month;\n String formattedDayOfMonth = \"\" + dayOfMonth;\n\n if(month < 10){\n\n formattedMonth = \"0\" + month;\n }\n if(dayOfMonth < 10){\n\n formattedDayOfMonth = \"0\" + dayOfMonth;\n }\n stnkDate.setText(year + \"-\" + formattedMonth + \"-\" + formattedDayOfMonth);\n }catch (ParseException e1){\n e1.printStackTrace();\n }\n\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 }",
"private void DateDialogPicker(DatePickerDialog.OnDateSetListener listener) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n listener, year, month, day);\n\n datePickerDialog.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}",
"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 }",
"@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }",
"@TargetApi(Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\n datePickerDialog.getDatePicker().setMaxDate(new Date().getTime());\n return datePickerDialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, mmd_year, mmd_month, mmd_day);\n return dialog;\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 }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n if (mYear == null || mMonthOfYear == null || mDayOfMonth == null) {\n final Calendar c = Calendar.getInstance();\n mYear = c.get(Calendar.YEAR);\n mMonthOfYear = c.get(Calendar.MONTH);\n mDayOfMonth = c.get(Calendar.DAY_OF_MONTH);\n }\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, mYear, mMonthOfYear, mDayOfMonth);\n datePickerDialog.getDatePicker().setMaxDate(DateTime.now().getMillis());\n return datePickerDialog;\n }",
"public static void restrictDatePickerToOlder(DatePicker datePicker) {\r\n // Sets up a restricton for choosable dates:\r\n Callback<DatePicker, DateCell> dayCellFactory = dp -> new DateCell()\r\n {\r\n @Override\r\n public void updateItem(LocalDate item, boolean empty)\r\n {\r\n super.updateItem(item, empty);\r\n // Only allow dates that are older than current dates:\r\n if(item.isAfter(LocalDate.now()))\r\n { // Sets the background color of the invalid dates to a pink/red color:\r\n setStyle(\"-fx-background-color: #ffc0cb;\");\r\n // Disables them, so they can not be picked:\r\n setDisable(true);\r\n }\r\n }\r\n };\r\n // Apply these restrictions to our DatePicker\r\n datePicker.setDayCellFactory(dayCellFactory);\r\n // Set prompt text:\r\n datePicker.setPromptText(\"dd/MM/yyyy\");\r\n }",
"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}",
"@Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR); // current year\n int mMonth = c.get(Calendar.MONTH); // current month\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\n // date picker dialog\n datePickerDialog = new DatePickerDialog(ChangeProfileActivity.this,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n // set day of month , month and year value in the edit text\n txtdate.setText(dayOfMonth + \"/\"\n + (monthOfYear + 1) + \"/\" + year);\n\n }\n }, mYear, mMonth, mDay);\n datePickerDialog.show();\n }",
"private void setSaleDateField2() {\n // Create a DatePickerDialog and manage it\n mSaleDatePickerDialog2 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateSale2().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, year, month, day);\n\n dialog.setButton(DialogInterface.BUTTON_NEGATIVE, \"Cancel\", new DialogInterface\n .OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n dialog.cancel();\n }\n }\n });\n\n return dialog;\n }",
"@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n }",
"@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 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 }",
"@Override\n public void onDateSet(DatePicker arg0, int year_n, int month_n, int day_n) {\n year = year_n;\n month = month_n;\n day = day_n;\n cal.set(year, month, day);\n week = getWeekDay(cal);\n date.setText(year+\"年\"+(month+1)+\"月\"+day+\"日\" +\" \"+week); //将选择的日期显示到TextView中,因为之前获取month直接使用,所以不需要+1,这个地方需要显示,所以+1\n }",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(Addnewuser.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n dob.setText(birthday);\n // Toast.makeText(Addnewuser.this, \"\"+birthday+\"\\n\" +\n // \"\"+date.toString(), Toast.LENGTH_SHORT).show();\n\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n }",
"@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 onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"public void showDatepicker(){\n Calendar cal = Calendar.getInstance();\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH)+1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n new DatePickerDialog(SearchFlightActivity.this, new DatePickerDialog.OnDateSetListener(){\n /**\n * @param datePicker\n * @param i year\n * @param i1 month of year\n * @param i2 day of month\n */\n @Override\n public void onDateSet(DatePicker datePicker, int i, int i1, int i2) {\n et_date.setText(i+\"-\"+i1+\"-\"+i2);\n }\n },year,month,day).show();\n }",
"@Override\r\n\tpublic void onClick(View v) {\n\t\tshowDialog(0);// ���ڵ����\r\n\t\tint SDKVersion = Android_DateActivity.this.getSDKVersionNumber();// ��ȡϵͳ�汾\r\n\t\tSystem.out.println(\"SDKVersion = \" + SDKVersion);\r\n\t\tDatePicker dp = findDatePicker((ViewGroup) mdialog.getWindow()\r\n\t\t\t\t.getDecorView());// ���õ���������\r\n\t\tif (dp != null) {\r\n\t\t\tif (SDKVersion < 11) {\r\n\t\t\t\t((ViewGroup) dp.getChildAt(0)).getChildAt(1).setVisibility(\r\n\t\t\t\t\t\tView.GONE);\r\n\t\t\t} else if (SDKVersion > 14) {\r\n\t\t\t\t((ViewGroup) ((ViewGroup) dp.getChildAt(0)).getChildAt(0))\r\n\t\t\t\t\t\t.getChildAt(1).setVisibility(View.GONE);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n ETdateTo.setText(new StringBuilder().append(arg3).append(\"-\")\n .append(arg2+1).append(\"-\").append(arg1));\n }",
"@Override\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tCalendar c = Calendar.getInstance();\n\n if((getArguments().getString(ARG_TXT_FECHA)!=null)&&(!getArguments().getString(ARG_TXT_FECHA).isEmpty())){\n String fecha = getArguments().getString(ARG_TXT_FECHA);\n c.setTime(Convertir_fechaStr_a_date_BDD(fecha));\n }\n int year = c.get(Calendar.YEAR);\n int month= c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n //obtener id label fecha\n\t\tthis.idLabelFecha = getArguments().getInt(ARG_ID_VIEW);\n\t\t\n\t\t// Create a new instance of DatePickerDialog and return it\n\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\n\t}",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, datea, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"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 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\r\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\t\tint year = c.get(Calendar.YEAR);\r\n\t\t\tint month = c.get(Calendar.MONTH);\r\n\t\t\tint day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\t\t// Create a new instance of DatePickerDialog and return it\r\n\t\t\treturn new DatePickerDialog(getActivity(), this, year, month, day);\r\n\t\t}",
"@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 }"
] | [
"0.75324357",
"0.72958857",
"0.7242857",
"0.7192402",
"0.7178478",
"0.7171247",
"0.7133075",
"0.7066478",
"0.7052679",
"0.7039851",
"0.7028102",
"0.700366",
"0.69927037",
"0.69924545",
"0.698663",
"0.69752604",
"0.6973629",
"0.6969244",
"0.6961597",
"0.6950386",
"0.6926365",
"0.69099295",
"0.6897542",
"0.6886795",
"0.68763953",
"0.6862245",
"0.6858356",
"0.68254095",
"0.6824611",
"0.68212974",
"0.68212247",
"0.68181247",
"0.68137866",
"0.681316",
"0.68098223",
"0.6791944",
"0.67864996",
"0.67815363",
"0.6776315",
"0.67744315",
"0.67668843",
"0.67665815",
"0.67516553",
"0.67498",
"0.6743853",
"0.6734974",
"0.67302674",
"0.6720485",
"0.6719237",
"0.67185163",
"0.671506",
"0.6711323",
"0.67052466",
"0.67048025",
"0.6702725",
"0.6700099",
"0.66960603",
"0.66880137",
"0.668344",
"0.66747653",
"0.66744626",
"0.6674209",
"0.6674209",
"0.66660136",
"0.66617835",
"0.6661681",
"0.66597944",
"0.665862",
"0.6651249",
"0.66417134",
"0.66375935",
"0.66199076",
"0.66194254",
"0.6617076",
"0.6617076",
"0.6613961",
"0.6613549",
"0.6613549",
"0.6607665",
"0.6607573",
"0.66060966",
"0.6603995",
"0.66034245",
"0.65903395",
"0.6588282",
"0.65868366",
"0.65829164",
"0.6582019",
"0.6580703",
"0.6577001",
"0.65757126",
"0.65746593",
"0.65699935",
"0.65699685",
"0.65574527",
"0.65474486",
"0.6545058",
"0.6537419",
"0.65363365",
"0.65338385",
"0.65330184"
] | 0.0 | -1 |
function: Adjust the TimeStartPickerDialog | public void showTimeStartPickerDialog(View v) {
DialogFragment newFragment = new TimePickerFragment() {
@Override
public void onTimeSet(TimePicker view, int hour, int minute) {
timeStartTV = (TextView)findViewById(R.id.timeStartTV);
hourStart=hour;
minuteStart=minute;
timeStartTV.setText(makeHourFine(hour,minute));
if(hourEnd!=99||minuteEnd!=99) {
if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {
hoursD = Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);
} else
hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);
hours = (EditText) findViewById(R.id.HoursET);
hours.setText(Double.toString(hoursD));
}
}
};
newFragment.show(getSupportFragmentManager(), "timeStartPicker");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showTimePicker(final EditText editText, final boolean isStartType) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(mActivity, R.style.DialogTheme, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n if (isStartType) {\n Calendar datetime = Calendar.getInstance();\n Calendar c = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n if (datetime.getTimeInMillis() > c.getTimeInMillis()) {\n// it's after current\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n } else {\n// it's before current'\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.start_time_cant_be_less));\n\n }\n } else {\n if (!checktimings(etBeginTime.getText().toString(), parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)))) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.end_time_cant_less));\n } else if (pickUpTime != null && !pickUpTime.equals(\"\") && !appUtils.matchSameTime(appUtils.parseDateToTime(pickUpTime), selectedHour + \":\" + selectedMinute)) {\n appUtils.showAlertDialog(mActivity, \"\", getString(R.string.same_pickup_time), getString(R.string.ok), \"\", null);\n } else {\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n }\n }\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"\");\n mTimePicker.show();\n }",
"private void customTime(boolean shouldStart) {\n\n if (customCalendar == null) {\n customCalendar = Calendar.getInstance();\n customYear = customCalendar.get(Calendar.YEAR);\n customMonth = customCalendar.get(Calendar.MONTH);\n customDay = customCalendar.get(Calendar.DAY_OF_MONTH);\n }\n\n timeDialog = new DatePickerDialog(this, this, customYear, customMonth, customDay);\n timeDialog.show();\n if (shouldStart) {\n Toasty.info(StatActivity.this, \"Selection start time\").show();\n } else {\n Toasty.info(StatActivity.this, \"Select end time\").show();\n }\n }",
"public void showTimeEndPickerDialog(View v) {\n DialogFragment newFragment = new TimePickerFragment() {\n @Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n timeEndTV = (TextView)findViewById(R.id.timeEndTV);\n timeEndTV.setText(makeHourFine(hour, minute));\n hourEnd=hour;\n minuteEnd=minute;\n if(hourStart!=99||minuteStart!=99) {\n if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {\n hoursD =Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);\n } else\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);\n\n hours = (EditText) findViewById(R.id.HoursET);\n hours.setText(Double.toString(hoursD));\n }\n\n\n }\n\n\n };\n newFragment.show(getSupportFragmentManager(), \"timeStartPicker\");\n }",
"public void initializeTime() {\n hour = cal.get(Calendar.HOUR);\n min = cal.get(Calendar.MINUTE);\n\n time = (EditText) findViewById(R.id.textSetTime);\n time.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n if(min < 10) {\n time.setText(hour + \":0\" + min);\n } else {\n time.setText(hour + \":\" + min);\n }\n\n time.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n picker = new TimePickerDialog(ControlCenterActivity.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int i, int i1) {\n if(i1 < 10) {\n time.setText(i + \":0\" + i1);\n } else {\n time.setText(i + \":\" + i1);\n }\n }\n }, hour, min, false);\n\n picker.show();\n }\n });\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), starttimepicker, trigger.getStarttime().get(Calendar.HOUR), trigger.getStarttime().get(Calendar.MINUTE), true).show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"public static String showTimePickerDialog(final Context appContext,\n final TextView eStartTime) {\n\n final Calendar c = Calendar.getInstance();\n currentHour = c.get(Calendar.HOUR_OF_DAY);\n currentMinute = c.get(Calendar.MINUTE);\n currentSeconds = c.get(Calendar.SECOND);\n TimePickerDialog tpd = new TimePickerDialog(appContext,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minutes) {\n int hour = hourOfDay;\n int minute = minutes;\n String time = \"\" + hourOfDay + \"\" + minutes + \"00\";\n DTU.time = time;\n int flg = 0;\n String strHour, strMinutes, strAMPM;\n\n if (hour > 12) {\n flg = 1;\n hour = hour - 12;\n strAMPM = \"PM\";\n } else {\n strAMPM = \"AM\";\n }\n if (hour < 10) {\n strHour = \"0\" + hour;\n } else {\n strHour = \"\" + hour;\n }\n if (minute < 10) {\n strMinutes = \"0\" + minute;\n } else {\n strMinutes = \"\" + minute;\n }\n eStartTime\n .setText(strHour + \":\" + strMinutes + strAMPM);\n\n }\n }, currentHour, currentMinute, false);\n tpd.show();\n\n return \"\";\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"@Override\n protected void onPrepareDialogBuilder(AlertDialog.Builder builder) {\n super.onPrepareDialogBuilder(builder);\n\n builder.setView(timePicker);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n editASLTStime.setText((((hourOfDay < 10) ? \"0\" + hourOfDay : hourOfDay) + \":\" + ((minute < 10) ? \"0\" + minute : minute) + \":00\"));\n }",
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaCamionTime;\n Date horaMuestreoTime;\n Date horaDescargaTime;\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaMuestreoTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n horaDescargaTime = parser.parse(time);\n if (horaMuestreoTime.before(horaDescargaTime)) {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser mayor a la hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n\n if (globals.getAntecedentesMuestreo().getTimeCamion() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaCamionTime = parser.parse(globals.getAntecedentesMuestreo().getTimeCamion());\n\n horaDescargaTime = parser.parse(time);\n if (horaDescargaTime.after(horaCamionTime)) {\n\n horaDescarga.setText(time);\n globals.getAntecedentesMuestreo().setHoraDescarga(time);\n } else {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser inferior a la hora de llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n }\n }\n }\n }\n } catch (ParseException e) {\n horaDescarga.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }"
] | [
"0.7469197",
"0.729034",
"0.69948256",
"0.69903696",
"0.69876385",
"0.6964398",
"0.69452983",
"0.69426054",
"0.6942528",
"0.6936957",
"0.6936717",
"0.6924378",
"0.69236",
"0.6917073",
"0.69153214",
"0.6915077",
"0.6909081",
"0.6906012",
"0.69030005",
"0.6902854",
"0.69027036",
"0.6897362",
"0.68966013",
"0.6896315",
"0.6893619",
"0.6889299",
"0.6889042",
"0.68879265",
"0.688232",
"0.6881814",
"0.68776107",
"0.68761456",
"0.687458",
"0.68744016",
"0.6872769",
"0.6872517",
"0.6872343",
"0.68721735",
"0.68641466",
"0.6863137",
"0.6862835",
"0.6860193",
"0.6858433",
"0.685456",
"0.684786",
"0.68456656",
"0.6841129",
"0.68403584",
"0.6838972",
"0.6838929",
"0.68384296",
"0.68375266",
"0.68337303",
"0.6825033",
"0.6823624",
"0.6809986",
"0.6802969",
"0.6798158",
"0.679606",
"0.67933893",
"0.67919946",
"0.67888284",
"0.6782839",
"0.6778398",
"0.67707205",
"0.67700356",
"0.67690355",
"0.6766799",
"0.67631537",
"0.6757724",
"0.67573434",
"0.67536694",
"0.674981",
"0.67497176",
"0.67443323",
"0.6741934",
"0.67389154",
"0.6738863",
"0.6735332",
"0.67336005",
"0.6732702",
"0.67317843",
"0.6730816",
"0.6729166",
"0.67265254",
"0.6725546",
"0.6723102",
"0.6721991",
"0.67217374",
"0.6719775",
"0.6719576",
"0.6717676",
"0.67127216",
"0.6710223",
"0.6709293",
"0.6705945",
"0.67041034",
"0.67014253",
"0.6699923",
"0.6699095"
] | 0.769388 | 0 |
function: Adjust the TimeEndPickerDialog | public void showTimeEndPickerDialog(View v) {
DialogFragment newFragment = new TimePickerFragment() {
@Override
public void onTimeSet(TimePicker view, int hour, int minute) {
timeEndTV = (TextView)findViewById(R.id.timeEndTV);
timeEndTV.setText(makeHourFine(hour, minute));
hourEnd=hour;
minuteEnd=minute;
if(hourStart!=99||minuteStart!=99) {
if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {
hoursD =Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);
} else
hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);
hours = (EditText) findViewById(R.id.HoursET);
hours.setText(Double.toString(hoursD));
}
}
};
newFragment.show(getSupportFragmentManager(), "timeStartPicker");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void editMeetEndTime() {\n String startTime = tvStartTime.getText().toString().trim();\n\n Date startDate;\n Calendar calStart = null;\n if (!TextUtils.isEmpty(startTime)) {\n //如果约会开始时间textView不为空,拿到约会开始时间的calender对象\n startDate = TimeUtil.getDateByFormat(startTime, TimeUtil.dateFormatYMD);\n// calStart = Calendar.getInstance();\n// calStart.clear();\n// calStart.setTime(startDate);\n calStart = getCalendar(startDate);\n// int start_year = calStart.get(Calendar.YEAR);\n }\n\n final DatePicker endPicker = new DatePicker(this);\n// LogUtils.loge(startPicker.hashCode()+\"\");\n endPicker.setCanceledOnTouchOutside(true);\n endPicker.setUseWeight(true);\n endPicker.setTopPadding(DisplayUtil.dip2px(20));\n\n int startYear=calStart.get(Calendar.YEAR);\n int startMonth=calStart.get(Calendar.MONTH)+1;\n int startDay=calStart.get(Calendar.DAY_OF_MONTH);\n\n\n// Calendar calEndYear = getCalendar(endYearTime);\n Calendar calEndYear=getEndYearCalendar(startYear);\n int endYear=calEndYear.get(Calendar.YEAR);\n int endMonth=calEndYear.get(Calendar.MONTH)+1;\n int endDay=calEndYear.get(Calendar.DAY_OF_MONTH);\n\n //范围最开始时间必须比约会开始时间晚\n endPicker.setRangeStart(startYear, startMonth, startDay);\n //明天那天的年底\n endPicker.setRangeEnd(endYear, endMonth, endDay);\n// endPicker.setSelectedItem(startYear, startMonth, startDay);\n endPicker.setSelectedItem(endPickYear==0?startYear:endPickYear, endPickMonth==0?startMonth:endPickMonth, endPickDay==0?startDay:endPickDay);\n\n endPicker.setOnDatePickListener(new DatePicker.OnYearMonthDayPickListener() {\n @Override\n public void onDatePicked(String year, String month, String day) {\n LogUtils.loge(year + \"-\" + month + \"-\" + day);\n\n String meetEndTime = String.format(getString(R.string.meeting_time), year, month, day);\n\n Date startDate = TimeUtil.getDateByFormat(tvStartTime.getText().toString().trim(), TimeUtil.dateFormatYMD);\n Date endDate = TimeUtil.getDateByFormat(meetEndTime, TimeUtil.dateFormatYMD);\n\n if(endDate.getTime()<startDate.getTime()){\n tvStartTime.setText(meetEndTime);\n }\n\n tvEndTime.setText(meetEndTime);\n\n endPickYear=Integer.parseInt(year);\n endPickMonth=Integer.parseInt(month);\n endPickDay=Integer.parseInt(day);\n\n }\n });\n endPicker.show();\n }",
"private void updateEndTime() {\n Date date = endTimeCalendar.getTime();\n String endTime = new SimpleDateFormat(\"HH:mm\").format(date);\n endHourText.setText(endTime);\n }",
"@Override\n public void onClick(View v) {\n new TimePickerDialog(getActivity(), endtimepicker, trigger.getEndtime().get(Calendar.HOUR), trigger.getEndtime().get(Calendar.MINUTE), true).show();\n }",
"default void onCustomEndTimeChanged(LocalTime endTime) {}",
"private void showTimePicker(final EditText editText, final boolean isStartType) {\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(mActivity, R.style.DialogTheme, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n if (isStartType) {\n Calendar datetime = Calendar.getInstance();\n Calendar c = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n if (datetime.getTimeInMillis() > c.getTimeInMillis()) {\n// it's after current\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n } else {\n// it's before current'\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.start_time_cant_be_less));\n\n }\n } else {\n if (!checktimings(etBeginTime.getText().toString(), parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)))) {\n appUtils.showSnackBar(mActivity.findViewById(android.R.id.content), getString(R.string.end_time_cant_less));\n } else if (pickUpTime != null && !pickUpTime.equals(\"\") && !appUtils.matchSameTime(appUtils.parseDateToTime(pickUpTime), selectedHour + \":\" + selectedMinute)) {\n appUtils.showAlertDialog(mActivity, \"\", getString(R.string.same_pickup_time), getString(R.string.ok), \"\", null);\n } else {\n editText.setText(parseTimeToTimeDate(String.format(Locale.getDefault(), \"%02d\", selectedHour) + \":\" +\n String.format(Locale.getDefault(), \"%02d\", selectedMinute)));\n }\n }\n }\n }, hour, minute, true);//Yes 24 hour time\n mTimePicker.setTitle(\"\");\n mTimePicker.show();\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n in_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (out_time.getText().toString().trim().equals(\"\")) {\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"public void showTimeStartPickerDialog(View v) {\n DialogFragment newFragment = new TimePickerFragment() {\n @Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n timeStartTV = (TextView)findViewById(R.id.timeStartTV);\n hourStart=hour;\n minuteStart=minute;\n timeStartTV.setText(makeHourFine(hour,minute));\n if(hourEnd!=99||minuteEnd!=99) {\n if ((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)) >= 0) {\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) - (hourStart + (minuteStart / 60.0)), 2);\n } else\n hoursD = Round((hourEnd + (minuteEnd / 60.0)) + 24 - (hourStart + (minuteStart / 60.0)), 2);\n\n hours = (EditText) findViewById(R.id.HoursET);\n hours.setText(Double.toString(hoursD));\n }\n\n }\n\n };\n newFragment.show(getSupportFragmentManager(), \"timeStartPicker\");\n }",
"@Override\n public void onClick(View v) {\n\n Calendar mcurrentTime = Calendar.getInstance();\n int hour = mcurrentTime.get(Calendar.HOUR_OF_DAY);\n int minute = mcurrentTime.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(\n Attend_Regularization.this,\n new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker,\n int selectedHour, int selectedMinute) {\n\n String am_pm = \"\";\n\n Calendar datetime = Calendar.getInstance();\n datetime.set(Calendar.HOUR_OF_DAY, selectedHour);\n datetime.set(Calendar.MINUTE, selectedMinute);\n\n if (datetime.get(Calendar.AM_PM) == Calendar.AM)\n am_pm = \"AM\";\n else if (datetime.get(Calendar.AM_PM) == Calendar.PM)\n am_pm = \"PM\";\n\n String strHrsToShow = (datetime\n .get(Calendar.HOUR) == 0) ? \"12\"\n : datetime.get(Calendar.HOUR) + \"\";\n\n out_time.setText(strHrsToShow + \":\"\n + pad(datetime.get(Calendar.MINUTE))\n + \" \" + am_pm);\n\n /*if (in_time.getText().toString().trim().equals(\"\")) {\n *//*if(!validateintime())\n return;*//*\n\n } else {\n if (!in_date.getText().toString().trim().isEmpty() && !out_date.getText().toString().trim().isEmpty()) {\n if (in_date.getText().toString().trim().equals(out_date.getText().toString().trim())) {\n String resultcampare = CompareTime(in_time.getText().toString().trim(), out_time.getText().toString().trim());\n if (!resultcampare.equals(\"1\")) {\n\n EmpowerApplication.alertdialog(for_out_time, Attend_Regularization.this);\n\n }\n }\n } else {\n if (!validateindate())\n return;\n if (!validateoutdate())\n return;\n }\n }*/\n\n // edtxt_time.setTextColor(Color.parseColor(\"#000000\"));\n\n }\n }, hour, minute, false);// Yes 24 hour time\n mTimePicker.setTitle(\"Select Time\");\n mTimePicker.show();\n getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);\n\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaPlantaTime;\n Date horaMuestroTime;\n Date horaCamionTime;\n\n try {\n if (globals.getAntecedentesHormigonMuestreo().getPlantaOut() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaPlantaTime = parser.parse(globals.getAntecedentesHormigonMuestreo().getPlantaOut());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.after(horaPlantaTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser inferior a la hora de salida planta\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n } else {\n horaMuestroTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n\n horaCamionTime = parser.parse(time);\n if (horaCamionTime.before(horaMuestroTime)) {\n\n timeCamion.setText(time);\n globals.getAntecedentesMuestreo().setTimeCamion(time);\n } else {\n Toast.makeText(getContext(), \"Hora llegada camióm no puede ser mayor a la hora de toma muestra\", Toast.LENGTH_SHORT).show();\n timeCamion.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeCamion.setText(\"\");\n }\n\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n Date horaCamionTime;\n Date horaMuestreoTime;\n Date horaDescargaTime;\n try {\n if (globals.getAntecedentesMuestreo().getTimeMuestreo() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaMuestreoTime = parser.parse(globals.getAntecedentesMuestreo().getTimeMuestreo());\n horaDescargaTime = parser.parse(time);\n if (horaMuestreoTime.before(horaDescargaTime)) {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser mayor a la hora de muestreo\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n\n if (globals.getAntecedentesMuestreo().getTimeCamion() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n } else {\n horaCamionTime = parser.parse(globals.getAntecedentesMuestreo().getTimeCamion());\n\n horaDescargaTime = parser.parse(time);\n if (horaDescargaTime.after(horaCamionTime)) {\n\n horaDescarga.setText(time);\n globals.getAntecedentesMuestreo().setHoraDescarga(time);\n } else {\n Toast.makeText(getContext(), \"Hora de descarga no puede ser inferior a la hora de llegada camion\", Toast.LENGTH_SHORT).show();\n horaDescarga.setText(\"\");\n }\n }\n }\n }\n } catch (ParseException e) {\n horaDescarga.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"public void timePickerForSetAll() {\n\r\n i=0;\r\n TimePickerDialog dialog = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\r\n\r\n @Override\r\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\r\n\r\n String m , h ;\r\n\r\n if(minute < 10 )\r\n m = \"0\"+minute ;\r\n else\r\n m = minute+\"\" ;\r\n\r\n if(hourOfDay<10)\r\n h=\"0\"+hourOfDay ;\r\n else\r\n h=hourOfDay+\"\";\r\n\r\n tcSunEnd.setText(h + \":\" + m);\r\n tcMonEnd.setText(h + \":\" + m);\r\n tcTuEnd.setText (h + \":\" + m);\r\n tcWeEnd.setText (h + \":\" + m);\r\n tcThuEnd.setText(h + \":\" + m);\r\n tcFriEnd.setText(h + \":\" + m);\r\n tcSatEnd.setText(h + \":\" + m);\r\n\r\n save();\r\n\r\n }\r\n }, 0, 0, true);\r\n\r\n dialog.show();\r\n\r\n if (i==0){\r\n i++ ;\r\n TimePickerDialog dialogEnd = new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\r\n\r\n @Override\r\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\r\n\r\n String m , h ;\r\n\r\n if(minute < 10 )\r\n m = \"0\"+minute ;\r\n else\r\n m = minute+\"\" ;\r\n\r\n if(hourOfDay<10)\r\n h=\"0\"+hourOfDay ;\r\n else\r\n h=hourOfDay+\"\";\r\n\r\n tcSunStart.setText(h + \":\" + m);\r\n tcMonStart.setText(h + \":\" + m);\r\n tcTuStart.setText (h + \":\" + m);\r\n tcWeStart.setText (h + \":\" + m);\r\n tcThuStart.setText(h + \":\" + m);\r\n tcFriStart.setText(h + \":\" + m);\r\n tcSatStart.setText(h + \":\" + m);\r\n\r\n save();\r\n }\r\n }, 0, 0, true);\r\n\r\n dialogEnd.show();\r\n }//if\r\n\r\n LocalDateTime q = new LocalDateTime ();\r\n String s = q.toString(\"dd.MM.yy\");\r\n\r\n save();\r\n\r\n Toast.makeText(getActivity(), s , Toast.LENGTH_LONG).show();\r\n\r\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog6 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog6.updateTime(t6Hour6, t6Minute6);\n //show dialog\n timePickerDialog6.show();\n }",
"@Override\n protected void onDialogClosed(boolean positiveResult) {\n super.onDialogClosed(positiveResult);\n\n if (positiveResult){\n setTime(timePicker.getHour(), timePicker.getMinute());\n }\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog4 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog4.updateTime(t4Hour4, t4Minute4);\n //show dialog\n timePickerDialog4.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog2 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog2.updateTime(t2Hour2, t2Minute2);\n //show dialog\n timePickerDialog2.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog50 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog50.updateTime(t50Hour50, t50Minute50);\n //show dialog\n timePickerDialog50.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog7 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog7.updateTime(t7Hour7, t7Minute7);\n //show dialog\n timePickerDialog7.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog8 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog8.updateTime(t8Hour8, t8Minute8);\n //show dialog\n timePickerDialog8.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog30 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog30.updateTime(t30Hour30, t30Minute30);\n //show dialog\n timePickerDialog30.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog40 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog40.updateTime(t40Hour40, t40Minute40);\n //show dialog\n timePickerDialog40.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog25 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog25.updateTime(t25Hour25, t25Minute25);\n //show dialog\n timePickerDialog25.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog16 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog16.updateTime(t16Hour16, t16Minute16);\n //show dialog\n timePickerDialog16.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog5 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog5.updateTime(t5Hour5, t5Minute5);\n //show dialog\n timePickerDialog5.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog31 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog31.updateTime(t31Hour31, t31Minute31);\n //show dialog\n timePickerDialog31.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog12 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog12.updateTime(t12Hour12, t12Minute12);\n //show dialog\n timePickerDialog12.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog49 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog49.updateTime(t49Hour49, t49Minute49);\n //show dialog\n timePickerDialog49.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog32 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t32Hour32 = hourOfDay1;\n t32Minute32 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t32Hour32, t32Minute32);\n //set selected time on text view\n\n\n timeE16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime16.setText(timeE16);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog32.updateTime(t32Hour32, t32Minute32);\n //show dialog\n timePickerDialog32.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog46 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog46.updateTime(t46Hour46, t46Minute46);\n //show dialog\n timePickerDialog46.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog48 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog48.updateTime(t48Hour48, t48Minute48);\n //show dialog\n timePickerDialog48.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog43 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog43.updateTime(t43Hour43, t43Minute43);\n //show dialog\n timePickerDialog43.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog14 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog14.updateTime(t14Hour14, t14Minute14);\n //show dialog\n timePickerDialog14.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog10 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t10Hour10 = hourOfDay1;\n t10Minute10 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t10Hour10, t10Minute10);\n //set selected time on text view\n\n\n timeE5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime5.setText(timeE5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog10.updateTime(t10Hour10, t10Minute10);\n //show dialog\n timePickerDialog10.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog36 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog36.updateTime(t36Hour36, t36Minute36);\n //show dialog\n timePickerDialog36.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog44 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog44.updateTime(t44Hour44, t44Minute44);\n //show dialog\n timePickerDialog44.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog18 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog18.updateTime(t18Hour18, t18Minute18);\n //show dialog\n timePickerDialog18.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog29 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t29Hour29 = hourOfDay1;\n t29Minute29 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t29Hour29, t29Minute29);\n //set selected time on text view\n\n\n timeS15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime15.setText(timeS15);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog29.updateTime(t29Hour29, t29Minute29);\n //show dialog\n timePickerDialog29.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog13 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t13Hour13 = hourOfDay1;\n t13Minute13 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t13Hour13, t13Minute13);\n //set selected time on text view\n\n\n timeS7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime7.setText(timeS7);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog13.updateTime(t13Hour13, t13Minute13);\n //show dialog\n timePickerDialog13.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog20 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog20.updateTime(t20Hour20, t20Minute20);\n //show dialog\n timePickerDialog20.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog42 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog42.updateTime(t42Hour42, t42Minute42);\n //show dialog\n timePickerDialog42.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog22 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog22.updateTime(t22Hour22, t22Minute22);\n //show dialog\n timePickerDialog22.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog27 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t27Hour27 = hourOfDay1;\n t27Minute27 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t27Hour27, t27Minute27);\n //set selected time on text view\n\n\n timeS14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime14.setText(timeS14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog27.updateTime(t27Hour27, t27Minute27);\n //show dialog\n timePickerDialog27.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog34 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog34.updateTime(t34Hour34, t34Minute34);\n //show dialog\n timePickerDialog34.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog47 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog47.updateTime(t47Hour47, t47Minute47);\n //show dialog\n timePickerDialog47.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog26 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog26.updateTime(t26Hour26, t26Minute26);\n //show dialog\n timePickerDialog26.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog38 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog38.updateTime(t38Hour38, t38Minute38);\n //show dialog\n timePickerDialog38.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog9 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t9Hour9 = hourOfDay1;\n t9Minute9 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t9Hour9, t9Minute9);\n //set selected time on text view\n\n\n timeS5 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime5.setText(timeS5);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog9.updateTime(t9Hour9, t9Minute9);\n //show dialog\n timePickerDialog9.show();\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog28 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog28.updateTime(t28Hour28, t28Minute28);\n //show dialog\n timePickerDialog28.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog24 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog24.updateTime(t24Hour24, t24Minute24);\n //show dialog\n timePickerDialog24.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog33 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t33Hour33 = hourOfDay1;\n t33Minute33 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t33Hour33, t33Minute33);\n //set selected time on text view\n\n\n timeS17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime17.setText(timeS17);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog33.updateTime(t33Hour33, t33Minute33);\n //show dialog\n timePickerDialog33.show();\n }",
"@Override\n protected void onPrepareDialogBuilder(AlertDialog.Builder builder) {\n super.onPrepareDialogBuilder(builder);\n\n builder.setView(timePicker);\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog39 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t39Hour39 = hourOfDay1;\n t39Minute39 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t39Hour39, t39Minute39);\n //set selected time on text view\n\n\n timeS20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime20.setText(timeS20);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog39.updateTime(t39Hour39, t39Minute39);\n //show dialog\n timePickerDialog39.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog41 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t41Hour41 = hourOfDay1;\n t41Minute41 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t41Hour41, t41Minute41);\n //set selected time on text view\n\n\n timeS21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime21.setText(timeS21);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog41.updateTime(t41Hour41, t41Minute41);\n //show dialog\n timePickerDialog41.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog19 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t19Hour19 = hourOfDay1;\n t19Minute19 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t19Hour19, t19Minute19);\n //set selected time on text view\n\n\n timeS10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime10.setText(timeS10);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog19.updateTime(t19Hour19, t19Minute19);\n //show dialog\n timePickerDialog19.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog45 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t45Hour45 = hourOfDay1;\n t45Minute45 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t45Hour45, t45Minute45);\n //set selected time on text view\n\n\n timeS23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime23.setText(timeS23);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog45.updateTime(t45Hour45, t45Minute45);\n //show dialog\n timePickerDialog45.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog17 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog17.updateTime(t17Hour17, t17Minute17);\n //show dialog\n timePickerDialog17.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog3 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t3Hour3 = hourOfDay1;\n t3Minute3 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t3Hour3, t3Minute3);\n //set selected time on text view\n\n\n timeS2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime2.setText(timeS2);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog3.updateTime(t3Hour3, t3Minute3);\n //show dialog\n timePickerDialog3.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog1 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t1Hour1 = hourOfDay1;\n t1Minute1 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t1Hour1, t1Minute1);\n //set selected time on text view\n\n\n timeS1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime1.setText(timeS1);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog1.updateTime(t1Hour1, t1Minute1);\n //show dialog\n timePickerDialog1.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog23 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t23Hour23 = hourOfDay1;\n t23Minute23 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t23Hour23, t23Minute23);\n //set selected time on text view\n\n\n timeS12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime12.setText(timeS12);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog23.updateTime(t23Hour23, t23Minute23);\n //show dialog\n timePickerDialog23.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog37 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t37Hour37 = hourOfDay1;\n t37Minute37 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t37Hour37, t37Minute37);\n //set selected time on text view\n\n\n timeS19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime19.setText(timeS19);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog37.updateTime(t37Hour37, t37Minute37);\n //show dialog\n timePickerDialog37.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog11 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t11Hour11 = hourOfDay1;\n t11Minute11 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t11Hour11, t11Minute11);\n //set selected time on text view\n\n\n timeS6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime6.setText(timeS6);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog11.updateTime(t11Hour11, t11Minute11);\n //show dialog\n timePickerDialog11.show();\n }",
"@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getEndtime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getEndtime().set(Calendar.MINUTE, minute);\n updateEndTime();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog15 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t15Hour15 = hourOfDay1;\n t15Minute15 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t15Hour15, t15Minute15);\n //set selected time on text view\n\n\n timeS8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime8.setText(timeS8);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog15.updateTime(t15Hour15, t15Minute15);\n //show dialog\n timePickerDialog15.show();\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog35 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t35Hour35 = hourOfDay1;\n t35Minute35 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t35Hour35, t35Minute35);\n //set selected time on text view\n\n\n timeS18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime18.setText(timeS18);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog35.updateTime(t35Hour35, t35Minute35);\n //show dialog\n timePickerDialog35.show();\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) { todo:\n // let tmp = after set stop time\n // if tmp time < start time, do nothing.\n //\n Calendar tmp = Calendar.getInstance();\n tmp.set(EventListFragment.this.mStopSearchCalendar.get(Calendar.YEAR), EventListFragment.this.mStopSearchCalendar.get(Calendar\n .MONTH), EventListFragment.this.mStopSearchCalendar.get(Calendar.DAY_OF_MONTH), hourOfDay, minute, 0);\n\n if (tmp.after(EventListFragment.this.mStartSearchCalendar) || tmp.equals(EventListFragment.this.mStartSearchCalendar)) {\n\n EventListFragment.this.mStopSearchCalendar.set(EventListFragment.this.mStopSearchCalendar.get(Calendar.YEAR), EventListFragment\n .this.mStopSearchCalendar.get(Calendar.MONTH), EventListFragment.this.mStopSearchCalendar.get(Calendar.DAY_OF_MONTH),\n hourOfDay, minute);\n\n btnStopTime.setText(timeFormat.format(EventListFragment.this.mStopSearchCalendar.getTime()));\n }\n }",
"@Override\n public void onClick(View v) {\n\n TimePickerDialog timePickerDialog21 = new TimePickerDialog(add_sched.this, new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n //initialize hour and minute\n\n t21Hour21 = hourOfDay1;\n t21Minute21 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t21Hour21, t21Minute21);\n //set selected time on text view\n\n\n timeS11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime11.setText(timeS11);\n }\n }, 12, 0, false\n );\n // displayed previous selected time\n\n timePickerDialog21.updateTime(t21Hour21, t21Minute21);\n //show dialog\n timePickerDialog21.show();\n }",
"@Override\n public void onTimeSet(RadialPickerLayout view, int hourOfDay, int minute, int second) {\n String time = Integer.toString(hourOfDay) + \"-\" + Integer.toString(minute);\n txtTime.setText(time);\n\n //TODO why get wrong time?\n calendar.set(Calendar.HOUR, hourOfDay);\n calendar.set(Calendar.MINUTE, minute);\n\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(calendar.HOUR_OF_DAY);\n int minute = calendar.get(calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n\n Date horaInTime;\n Date horaMuestreoTime;\n try {\n if (globals.getMuestra().getHoraIn() == null) {\n Toast.makeText(getContext(), \"No se ha definido hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n } else {\n horaInTime = parser.parse(globals.getMuestra().getHoraIn());\n horaMuestreoTime = parser.parse(time);\n if (horaMuestreoTime.after(horaInTime)) {\n\n timeMuestreo.setText(time);\n globals.getAntecedentesMuestreo().setTimeMuestreo(time);\n } else {\n Toast.makeText(getContext(), \"Hora de Muestreo no puede ser inferior a la hora de llegada\", Toast.LENGTH_SHORT).show();\n timeMuestreo.setText(\"\");\n }\n }\n } catch (ParseException e) {\n timeMuestreo.setText(\"\");\n }\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {\n final Calendar calendar = Calendar.getInstance();\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n\n // recover from where we came\n Bundle bundle = this.getArguments();\n if(bundle != null)\n from = bundle.getString(\"from\", \"null\");\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);\n calendar.set(Calendar.MINUTE, minute);\n String am_pm = calendar.get(Calendar.AM_PM) == Calendar.AM ? \"am\" : \"pm\";\n\n if(hourOfDay > 12)\n hourOfDay -= 12;\n\n if(hourOfDay == 0 && am_pm.equals(\"am\"))\n hourOfDay = 0;\n\n if(hourOfDay == 0 && am_pm.equals(\"pm\"))\n hourOfDay = 12;\n\n if(!from.equals(\"null\")){\n TextView time;\n SharedPreferences sp = getActivity().getSharedPreferences(\"prefTime\", getActivity().MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n // update textview and shared preferences\n if(from.equals(\"fromTime\")) {\n time = (TextView)getActivity().findViewById(R.id.fromTime_ID);\n editor.putInt(\"fromHour\", hourOfDay);\n editor.putInt(\"fromMinute\", minute);\n editor.putString(\"am_pm_from\", am_pm);\n }\n else {\n time = (TextView)getActivity().findViewById(R.id.toTime_ID);\n editor.putInt(\"toHour\", hourOfDay);\n editor.putInt(\"toMinute\", minute);\n editor.putString(\"am_pm_to\", am_pm);\n }\n time.setText(String.format(\"%02d\", hourOfDay) + \":\" + String.format(\"%02d\", minute) + \" \" + am_pm);\n\n editor.commit();\n }\n }\n }, hour, minute, false);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }",
"public void setTimeEnd(int timeEnd) {\r\n this.timeEnd = timeEnd;\r\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n Toast.makeText(Settings.this, \"\"+hourOfDay + \":\" + minute, Toast.LENGTH_SHORT).show();\n hour = hourOfDay;\n minutes = minute;\n switch(v.getId()){\n case R.id.bMorning:\n ed.putInt(\"morningHour\",hour);\n ed.putInt(\"morningMinute\", minutes);\n ed.commit();\n morning.setText(hour + \":\" + minutes);\n break;\n case R.id.bAfternoon:\n ed.putInt(\"afternoonHour\",hour);\n ed.putInt(\"afternoonMinute\", minutes);\n ed.commit();\n afternoon.setText(hour + \":\" + minutes);\n break;\n case R.id.bNight:\n ed.putInt(\"nightHour\",hour);\n ed.putInt(\"nightMinute\", minutes);\n ed.commit();\n night.setText(hour + \":\" + minutes);\n break;\n }\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t7Hour7 = hourOfDay1;\n t7Minute7 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t7Hour7, t7Minute7);\n //set selected time on text view\n\n\n timeS4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime4.setText(timeS4);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t6Hour6 = hourOfDay1;\n t6Minute6 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t6Hour6, t6Minute6);\n //set selected time on text view\n\n\n timeE3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime3.setText(timeE3);\n }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }",
"@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }",
"public void timeCallback(View v){\n TimePickerDialog timePickerDialog = new TimePickerDialog(this,\n new TimePickerDialog.OnTimeSetListener() {\n\n @Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n mHour = hourOfDay;\n mMinute = minute;\n String hourStr = String.format(\"%2s\",mHour).replace(\" \", \"0\");\n String minuteStr = String.format(\"%2s\",mMinute).replace(\" \", \"0\");\n ((EditText)findViewById(R.id.entry_time)).setText(hourStr+\":\"+minuteStr);\n }\n }, mHour, mMinute, false);\n timePickerDialog.show();\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t4Hour4 = hourOfDay1;\n t4Minute4 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t4Hour4, t4Minute4);\n //set selected time on text view\n\n\n timeE2 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime2.setText(timeE2);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t30Hour30 = hourOfDay1;\n t30Minute30 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t30Hour30, t30Minute30);\n //set selected time on text view\n\n\n timeE15 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime15.setText(timeE15);\n }",
"public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }",
"@Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t8Hour8 = hourOfDay1;\n t8Minute8 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t8Hour8, t8Minute8);\n //set selected time on text view\n\n\n timeE4 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime4.setText(timeE4);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }",
"@Override\n public void onClick(View v) {\n int hour = calendar.get(Calendar.HOUR_OF_DAY);\n int minute = calendar.get(Calendar.MINUTE);\n TimePickerDialog mTimePicker;\n mTimePicker = new TimePickerDialog(getContext(), new TimePickerDialog.OnTimeSetListener() {\n @Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n String time = (selectedHour > 9 ? selectedHour : \"0\" + selectedHour)\n + \":\" +\n (selectedMinute > 9 ? selectedMinute : \"0\" + selectedMinute);\n //validar hora\n plantaOut.setText(time);\n globals.getAntecedentesHormigonMuestreo().setPlantaOut(time);\n }\n }, hour, minute, true);\n mTimePicker.setTitle(\"Seleccione Hora\");\n mTimePicker.show();\n\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t14Hour14 = hourOfDay1;\n t14Minute14 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t14Hour14, t14Minute14);\n //set selected time on text view\n\n\n timeE7 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime7.setText(timeE7);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t2Hour2 = hourOfDay1;\n t2Minute2 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t2Hour2, t2Minute2);\n //set selected time on text view\n\n\n timeE1 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime1.setText(timeE1);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }",
"private void chooseTimeDialog() {\n Calendar c = Calendar.getInstance();\n int hourOfDay = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n TimePickerDialog timePickerDialog =\n new TimePickerDialog(getContext(), this, hourOfDay, minute, false);\n timePickerDialog.show();\n }",
"private void customTime(boolean shouldStart) {\n\n if (customCalendar == null) {\n customCalendar = Calendar.getInstance();\n customYear = customCalendar.get(Calendar.YEAR);\n customMonth = customCalendar.get(Calendar.MONTH);\n customDay = customCalendar.get(Calendar.DAY_OF_MONTH);\n }\n\n timeDialog = new DatePickerDialog(this, this, customYear, customMonth, customDay);\n timeDialog.show();\n if (shouldStart) {\n Toasty.info(StatActivity.this, \"Selection start time\").show();\n } else {\n Toasty.info(StatActivity.this, \"Select end time\").show();\n }\n }",
"@Override\n protected void setTimePickerListener() {\n final TimePickerDialog tpd = (TimePickerDialog) getChildFragmentManager()\n .findFragmentByTag(AlarmUtils.FRAG_TAG_TIME_PICKER);\n if (tpd != null) {\n // The dialog is already open so we need to set the listener again.\n tpd.setOnTimeSetListener(this);\n }\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t5Hour5 = hourOfDay1;\n t5Minute5 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t5Hour5, t5Minute5);\n //set selected time on text view\n\n\n timeS3 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime3.setText(timeS3);\n }",
"@Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n mHour = selectedHour;\n mMinute = selectedMinute;\n if(selectedMinute<10){\n remTime.setText(selectedHour + \":0\" + selectedMinute);\n }\n else {\n remTime.setText(selectedHour + \":\" + selectedMinute);\n }\n }",
"private void getTimeView() {\n\n\t\ttry {\n\n\t\t\t// Launch Time Picker Dialog\n\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + hour);\n\t\t\tSystem.out.println(\"!!!!!in time picker\" + minutes);\n\n\t\t\tTimePickerDialog tpd = new TimePickerDialog(this,\n\t\t\t\t\tnew TimePickerDialog.OnTimeSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onTimeSet(TimePicker view, int hourOfDay,\n\t\t\t\t\t\t\t\tint minute) {\n\n\t\t\t\t\t\t\tif (rf_booking_date_box.getText().toString()\n\t\t\t\t\t\t\t\t\t.equalsIgnoreCase(currDate.toString())) {\n\t\t\t\t\t\t\t\tc = Calendar.getInstance();\n\t\t\t\t\t\t\t\tint curr_hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\t\t\t\t\tint curr_minutes = c.get(Calendar.MINUTE);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_hour);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!shikha\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ curr_minutes);\n\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!hourOfDay<curr_hour\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (hourOfDay < curr_hour));\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!minute<curr_minutes\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ (minute < curr_minutes));\n\n\t\t\t\t\t\t\t\tif (hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay < curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute <= curr_minutes\n\t\t\t\t\t\t\t\t\t\t|| hourOfDay == curr_hour\n\t\t\t\t\t\t\t\t\t\t&& minute < curr_minutes) {\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! in if\");\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_Please_choose_valid_time),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t\t.format(time);\n\n\t\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\n\t\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay\n\t\t\t\t\t\t\t\t\t\t// + \":\" +\n\t\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tminutes = minute;\n\t\t\t\t\t\t\t\thour = hourOfDay;\n\n\t\t\t\t\t\t\t\tString time1 = hour + \":\" + minutes;\n\n\t\t\t\t\t\t\t\tDate time;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\ttime = new SimpleDateFormat(\"HH:mm\")\n\t\t\t\t\t\t\t\t\t\t\t.parse(hour + \":\" + minutes);\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"HH:mm\");\n\t\t\t\t\t\t\t\t\tString final_time = outputFormatter\n\t\t\t\t\t\t\t\t\t\t\t.format(time);\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(\"!!!!!!!!!!!!!!!!!final_time...\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ final_time);\n\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\trf_booking_time_box.setText(final_time);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_time_header.setText(final_time);\n\t\t\t\t\t\t\t\t\t// Display Selected time in textbox\n\t\t\t\t\t\t\t\t\t// rf_booking_time_box.setText(hourOfDay +\n\t\t\t\t\t\t\t\t\t// \":\" +\n\t\t\t\t\t\t\t\t\t// minute);\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_From = final_time;\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Time_To = final_time;\n\n\t\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, hour, minutes, false);\n\t\t\ttpd.show();\n\t\t\ttpd.setCancelable(false);\n\t\t\ttpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }"
] | [
"0.74526393",
"0.71381605",
"0.702023",
"0.68798286",
"0.6816623",
"0.67648035",
"0.6754815",
"0.67518735",
"0.67349726",
"0.67338216",
"0.67236155",
"0.6723452",
"0.6703587",
"0.66949654",
"0.66874695",
"0.6681239",
"0.66800606",
"0.6675689",
"0.6673052",
"0.66546834",
"0.6640405",
"0.66381776",
"0.66293067",
"0.661997",
"0.661525",
"0.6597877",
"0.6593394",
"0.659189",
"0.65916145",
"0.6589448",
"0.6588125",
"0.65773344",
"0.65760666",
"0.6575532",
"0.6573699",
"0.65714836",
"0.6570063",
"0.65639603",
"0.65627176",
"0.6558167",
"0.6557079",
"0.6554897",
"0.65526766",
"0.65476936",
"0.6540622",
"0.6534911",
"0.65330184",
"0.653144",
"0.65241945",
"0.65236384",
"0.6519479",
"0.65142995",
"0.6514066",
"0.6508919",
"0.6499604",
"0.64941144",
"0.648817",
"0.6487027",
"0.6484456",
"0.6483014",
"0.6482218",
"0.64755005",
"0.6473713",
"0.6470169",
"0.6465842",
"0.6457543",
"0.6448774",
"0.6417761",
"0.6398682",
"0.6395853",
"0.63932544",
"0.63929844",
"0.63889855",
"0.6374746",
"0.6371895",
"0.6371895",
"0.6371895",
"0.6355153",
"0.63503057",
"0.63473785",
"0.6346733",
"0.6339696",
"0.63379055",
"0.6337526",
"0.6334902",
"0.63223076",
"0.6302907",
"0.6299671",
"0.6294663",
"0.62922484",
"0.6286413",
"0.6278895",
"0.6278651",
"0.62785655",
"0.627785",
"0.6277432",
"0.6272112",
"0.6267372",
"0.62590337",
"0.6255063"
] | 0.7851412 | 0 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings)
return true;
switch (id) {
case R.id.action_sendShift:
sendEvent();
return true;
case R.id.action_delete:
deleteOrShowMethod();
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.79046476",
"0.7805623",
"0.7766615",
"0.77274555",
"0.7632045",
"0.76220745",
"0.75848633",
"0.7531134",
"0.74884325",
"0.74575055",
"0.74575055",
"0.74388313",
"0.74218154",
"0.7403308",
"0.7391667",
"0.7386889",
"0.73792624",
"0.73705244",
"0.7362704",
"0.7355958",
"0.73457336",
"0.73412824",
"0.73301464",
"0.73288566",
"0.73257905",
"0.7318758",
"0.7316527",
"0.7313703",
"0.7304158",
"0.7304158",
"0.7302085",
"0.72983634",
"0.7293686",
"0.72866",
"0.7283303",
"0.728145",
"0.72787505",
"0.7260023",
"0.7260023",
"0.7260023",
"0.7259934",
"0.72594047",
"0.7249977",
"0.72246146",
"0.7219595",
"0.72166914",
"0.7204287",
"0.72013676",
"0.72004634",
"0.71934885",
"0.7185269",
"0.7177778",
"0.71687645",
"0.7167653",
"0.71539253",
"0.7153525",
"0.7136213",
"0.7134901",
"0.7134901",
"0.7129261",
"0.7129006",
"0.71241",
"0.712339",
"0.71232814",
"0.71220535",
"0.7117341",
"0.7117331",
"0.7117331",
"0.7117331",
"0.7117331",
"0.71168953",
"0.71166164",
"0.71150327",
"0.71121156",
"0.71098715",
"0.7108862",
"0.7105525",
"0.7099833",
"0.7098193",
"0.7095489",
"0.709369",
"0.709369",
"0.70865035",
"0.7083285",
"0.70810497",
"0.70802194",
"0.70737916",
"0.7068235",
"0.70619094",
"0.70604193",
"0.7060166",
"0.7051441",
"0.70377",
"0.70377",
"0.7035963",
"0.703536",
"0.703536",
"0.70326227",
"0.703064",
"0.70297664",
"0.7018773"
] | 0.0 | -1 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
Intent intent = getIntent();
id = intent.getIntExtra("id", 9999);
Log.d("ss", Locale.getDefault().getLanguage());
if( Locale.getDefault().getLanguage().equals("iw")||Locale.getDefault().getLanguage().equals("he")){
getMenuInflater().inflate(R.menu.menu_main_rtl, menu);}
else
getMenuInflater().inflate(R.menu.menu_main, menu);
if(id!=9999)
getMenuInflater().inflate(R.menu.menu_main_update, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7248419",
"0.7203426",
"0.71970934",
"0.7178769",
"0.71092147",
"0.7040898",
"0.7039756",
"0.70138675",
"0.70115006",
"0.6982194",
"0.694743",
"0.69407934",
"0.6935566",
"0.6919299",
"0.6919299",
"0.68929094",
"0.68849903",
"0.68766844",
"0.6876271",
"0.68636256",
"0.68636256",
"0.68636256",
"0.68636256",
"0.6854109",
"0.68480504",
"0.6820776",
"0.6818706",
"0.6814043",
"0.6813815",
"0.6813815",
"0.68068254",
"0.68020743",
"0.67990345",
"0.67923975",
"0.6791024",
"0.67896056",
"0.678515",
"0.6760927",
"0.675885",
"0.67495245",
"0.6745266",
"0.6745266",
"0.6742506",
"0.6741604",
"0.6727088",
"0.6725067",
"0.6723812",
"0.6723812",
"0.6722497",
"0.67132807",
"0.67085123",
"0.6705967",
"0.6700925",
"0.6700648",
"0.6697868",
"0.66955",
"0.6687731",
"0.668506",
"0.668506",
"0.66843635",
"0.6681463",
"0.6680261",
"0.66784567",
"0.6669599",
"0.66681015",
"0.6664503",
"0.66586685",
"0.66586685",
"0.66586685",
"0.66579777",
"0.6656066",
"0.6656066",
"0.6656066",
"0.66539526",
"0.66533065",
"0.66516966",
"0.66501826",
"0.66485864",
"0.6647828",
"0.6647722",
"0.66475946",
"0.6646866",
"0.66465396",
"0.6644725",
"0.6643858",
"0.66436946",
"0.66398877",
"0.66358364",
"0.6635283",
"0.6633633",
"0.6633633",
"0.6633633",
"0.6633544",
"0.6630286",
"0.66293216",
"0.6628571",
"0.662773",
"0.66257316",
"0.6621922",
"0.66203994",
"0.66203994"
] | 0.0 | -1 |
initialize and get the Configuration | public static AppConfig getAppConfig() {
//LOGGER.info("Configurator:getAppConfig(): Configuring the Application credentials .........................");
Properties props = new Properties();
AppConfig appConfig = new AppConfig();
try {
props.load(new FileInputStream("Resilient.properties"));
// SFDC
appConfig.setSfdcEndpoint(props.getProperty("sfdc.sfdcEndpoint"));
appConfig.setSfdcUsername(props.getProperty("sfdc.sfdcUsername"));
appConfig.setSfdcPassword(props.getProperty("sfdc.sfdcPassword"));
appConfig.setSfdcBillToItemQueryFields(props.getProperty("resilient.launchReport.sfdcBillToItemQueryFields"));
} catch (IOException e) {
LOGGER.error("Exception while configuring the Application credentials ..." + e);
}
return appConfig;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"public abstract Configuration configuration();",
"private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }",
"public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}",
"private Config() {\n }",
"private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }",
"protected Configuration getConfiguration(){\n return configuration;\n }",
"public static void initialize() {\n \tinitialize(new Configuration().configure());\n }",
"public Config() {\n this(System.getProperties());\n\n }",
"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 }",
"public static Config getConfig(){\n return _Config;\n }",
"public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }",
"protected Configuration() {\r\n }",
"protected Config getConfig () {\n return this.conf;\n }",
"private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }",
"public Config() {\n\t\t// TODO Auto-generated constructor stub\n\t\t\n\t}",
"private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"private ConfigurationModel() {\r\n\tloadConfiguration();\r\n }",
"public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}",
"public static ConfigManager getConfiguration() {\n return configuration;\n }",
"public Config getConfig();",
"protected Configuration(ServletContext ctx) {\r\n ctx.log(\"configuring cewolf app..\");\r\n ctx.setAttribute(KEY, this);\r\n\r\n //retrieve the init config params\r\n ServletConfig config = (ServletConfig) ctx.getAttribute(CewolfRenderer.INIT_CONFIG);\r\n if (config != null)\r\n {\r\n Enumeration initParams = config.getInitParameterNames();\r\n try {\r\n while (initParams.hasMoreElements()) {\r\n String param = (String) initParams.nextElement();\r\n String value = config.getInitParameter(param);\r\n if (\"debug\".equalsIgnoreCase(param)) {\r\n debugged = Boolean.valueOf(value).booleanValue();\r\n } else if (\"overliburl\".equalsIgnoreCase(param)) {\r\n overlibURL = value;\r\n } else if (\"storage\".equalsIgnoreCase(param)) {\r\n storageClassName = value;\r\n } else {\r\n ctx.log(param + \" parameter is ignored.\");\r\n }\r\n parameters.put(param,value);\r\n }\r\n } catch (Throwable t) {\r\n ctx.log(\"Error in Cewolf config.\", t);\r\n } \r\n }\r\n else {\r\n \tctx.log(\"Cewolf Misconfiguration. You should add a <load-on-startup> tag \"\r\n \t\t\t+ \"to your web.xml for the Cewolf rendering servlet.\\n\"\r\n\t\t\t\t\t+ \"A default Configuration will be used if not.\");\r\n }\r\n \r\n\t\ttry {\r\n\t\t\tinitStorage(ctx);\r\n\t\t} catch (CewolfException ex) {\r\n\t\t\tctx.log(\"exception during storage init from class \" + storageClassName);\r\n\t\t\tctx.log(\"using \" + DEFAULT_STORAGE);\r\n\t\t\tstorageClassName = DEFAULT_STORAGE;\r\n\t\t\ttry {\r\n\t\t\t\tinitStorage(ctx);\r\n\t\t\t} catch(CewolfException cwex){\r\n\t\t\t\tcwex.printStackTrace();\r\n\t\t\t\tthrow new RuntimeException(storageClassName + \".init() threw exception.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tctx.log(\"using storage class \" + storageClassName);\r\n\t\tctx.log(\"using overlibURL \" + overlibURL);\r\n\t\tctx.log(\"debugging is turned \" + (debugged ? \"on\" : \"off\"));\r\n\t\tctx.log(\"...done.\");\r\n\t}",
"public void initialConfig() {\n }",
"protected Configuration getConfiguration() {\n return configuration;\n }",
"public static Config config() {\n return LiveEventBusCore.get().config();\n }",
"public static Configuration getConfiguration() {\n synchronized (Configuration.class) {\n return configuration;\n }\n }",
"GeneralConfiguration getGeneralConfiguration();",
"public static synchronized Configuration getInstance() {\n\t\tif (configuration == null) configuration = new Configuration();\n\t\treturn configuration;\n\t}",
"private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}",
"public ConfigsUtils() {\r\n mConfig = new Properties();\r\n try {\r\n mConfig.load(new FileInputStream(CONFIG_FILE_PATH));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void loadConfig() {\n\t}",
"public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }",
"public Configuration() {\r\n\t\tthis.serverAddress = \"127.0.0.1\";\r\n\t\tthis.serverPort = \"2586\";\r\n\t}",
"@Override\n public void init()\n throws InitializationException\n {\n // Create a default configuration.\n String[] def = new String[]\n {\n DEFAULT_RUN_DATA,\n DEFAULT_PARAMETER_PARSER,\n DEFAULT_COOKIE_PARSER\n };\n configurations.put(DEFAULT_CONFIG, def.clone());\n\n // Check other configurations.\n Configuration conf = getConfiguration();\n if (conf != null)\n {\n String key,value;\n String[] config;\n String[] plist = new String[]\n {\n RUN_DATA_KEY,\n PARAMETER_PARSER_KEY,\n COOKIE_PARSER_KEY\n };\n for (Iterator<String> i = conf.getKeys(); i.hasNext();)\n {\n key = i.next();\n value = conf.getString(key);\n int j = 0;\n for (String plistKey : plist)\n {\n if (key.endsWith(plistKey) && key.length() > plistKey.length() + 1)\n {\n key = key.substring(0, key.length() - plistKey.length() - 1);\n config = (String[]) configurations.get(key);\n if (config == null)\n {\n config = def.clone();\n configurations.put(key, config);\n }\n config[j] = value;\n break;\n }\n j++;\n }\n }\n }\n\n\t\tpool = (PoolService)TurbineServices.getInstance().getService(PoolService.ROLE);\n\n if (pool == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Pool Service!\");\n }\n\n parserService = (ParserService)TurbineServices.getInstance().getService(ParserService.ROLE);\n\n if (parserService == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Parser Service!\");\n }\n\n setInit(true);\n }",
"public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}",
"public Object\tgetConfiguration();",
"private Configuration getConfiguration() {\n return getPackageData().getConfiguration();\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"private void configInit() {\r\n\t\tconfig = pluginInstance.getConfiguration();\r\n\t\tif (!new File(pluginInstance.getDataFolder().getPath() + File.separator + \"config.yml\")\r\n\t\t\t\t.exists()) {\r\n\t\t\tconfig.setProperty(\"reset-deathloc\", true);\r\n\t\t\tconfig.setProperty(\"use-iConomy\", true);\r\n\t\t\tconfig.setProperty(\"creation-price\", 10.0D);\r\n\t\t\tconfig.setProperty(\"deathtp-price\", 50.0D);\r\n\t\t\tconfig.setProperty(\"allow-tp\", true);\r\n\t\t\tconfig.setProperty(\"maxTombStone\", 0);\r\n\t\t\tconfig.setProperty(\"TombKeyword\", \"[Tomb]\");\r\n\t\t\tconfig.setProperty(\"use-tombAsSpawnPoint\", true);\r\n\t\t\tconfig.setProperty(\"cooldownTp\", 5.0D);\r\n\t\t\tconfig.setProperty(\"reset-respawn\", false);\r\n\t\t\tconfig.setProperty(\"maxDeaths\", 0);\r\n\t\t\tconfig.save();\r\n\t\t\tworkerLog.info(\"Config created\");\r\n\t\t}\r\n\t\tconfig.load();\r\n\t}",
"public SystemConfiguration() {\r\n\t\tlog = Logger.getLogger(SystemConfiguration.class);\r\n\t}",
"protected final Configuration getConfiguration()\n {\n return mConfiguration;\n }",
"@Override\n public void init() throws Exception {\n config = new Config();\n }",
"private void initConfiguration() {\n\t\tseedList = new ArrayList<String>();\n\t\t// TODO: add other initialization here...\n\t}",
"public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }",
"public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }",
"private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }",
"protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }",
"static Properties getConfig()\n {\n return(config);\n }",
"public Configuration c() {\n return configuration;\n }",
"public static Configuration getInstance() {\r\n if (INSTANCE == null)\r\n INSTANCE = new Configuration();\r\n else\r\n INSTANCE.loadConfigurationFromDisk();\r\n\r\n return INSTANCE;\r\n }",
"private static ConfigurationObject getConfig() throws Exception {\n\t\tXMLFilePersistence persistence = new XMLFilePersistence();\n\n\t\t// Get configuration\n\t\tConfigurationObject obj = persistence.loadFile(\n\t\t\t\t\"com.topcoder.management.reviewfeedback.stress\", new File(\n\t\t\t\t\t\t\"test_files/stress/config.xml\"));\n\n\t\treturn obj;\n\t}",
"private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}",
"private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"protected abstract void initializeImpl(Map<String,String> configuration);",
"public Configuration getConfiguration() {\n\t\treturn theConfiguration;\n\t}",
"void init(Config config);",
"private static void initConfig() {\n /*\n * Human IO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Joysticks\n */\n {\n addToConstants(\"joysticks.left\", 0);\n addToConstants(\"joysticks.right\", 1);\n addToConstants(\"joysticks.operator\", 2);\n }\n\n /*\n * Buttons and axis\n */\n {\n }\n }\n }\n\n /*\n * RobotIO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Kicker\n */\n addToConstantsA(\"kicker.encoder.distPerPulse\", 360.0 / 1024.0);\n }\n }\n\n /*\n * Chassis\n */\n {\n /*\n * Constants\n */\n {\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Kicker\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"kicker.kick.normal\", 1.75);\n addToConstants(\"kicker.kick.timeout\", 0.75);\n\n addToConstants(\"kicker.shaken.voltage\", -0.3316);\n addToConstants(\"kicker.shaken.tolerance\", 3.0);\n\n addToConstants(\"kicker.zero.voltage\", 0.8);\n addToConstants(\"kicker.zero.duration\", 0.75);\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Gripper\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"gripper.collection.voltage\", 0.82);\n addToConstants(\"gripper.ejection.voltage\", -0.45);\n }\n }\n }",
"RootConfig getConfig();",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }",
"public MecBasicsConfig()\n {\n\n }",
"private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public LocalConfiguration getConfiguration() {\n return configuration;\n }",
"public void init(Map<String, String> configuration);",
"public static Config getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tGson gson = new Gson();\r\n\t\t\ttry {\r\n\t\t\t\tinstance = gson.fromJson(FileUtil.getResourceContent(\"config.data\"), Config.class);\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tSystem.err.println(ex.getMessage());\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn instance;\r\n\t}",
"@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}",
"public Map getConfiguration() {\r\n\t\tMap config = (HashMap) getServlet().getServletContext().getAttribute(\r\n\t\t\t\tConstants.CONFIG);\r\n\t\t// so unit tests don't puke when nothing's been set\r\n\t\tif (config == null) {\r\n\t\t\treturn new HashMap();\r\n\t\t}\r\n\t\treturn config;\r\n\t}",
"private Configuration getAuth() {\r\n final ConfigurationBuilder cb = new ConfigurationBuilder();\r\n cb.setOAuthConsumerKey(\"n2g9XOjAr9p44yJwFjXUbeUa2\");\r\n cb.setOAuthConsumerSecret(\"57FHkBBptp17yBGl1v853lldZO9Kh4osJnDQqQEcXd4d9C3xFA\");\r\n cb.setOAuthAccessToken(\"113906448-2fx9njfJgzQrGdnRaGchI9GlZTzLMXrayEzFk2ju\");\r\n cb.setOAuthAccessTokenSecret(\"FJOqMt7dtBp1yuW2VnQDfzksa7IS5h3IxxsJ1ixBGI1ny\");\r\n \r\n return cb.build();\r\n }",
"C getConfiguration();",
"private void init() {\n String METHOD = Thread.currentThread().getStackTrace()[1].getMethodName();\n String msg = null;\n String type = ConstantsIF.RESOURCE;\n ConfigurationIF config = null;\n JSONObject json = null;\n Map<String, String> map = null;\n\n _logger.entering(CLASS, METHOD);\n\n /*\n * Get JSON data from the Config object via the Config Manager\n */\n config = _configMgr.getConfiguration(type);\n\n if (config != null) {\n json = config.getJSON();\n if (json == null) {\n msg = CLASS + \": \" + METHOD + \": JSON data for '\" + type + \"' is null\";\n this.setError(true);\n }\n } else {\n msg = CLASS + \": \" + METHOD + \": Configuration for '\" + type + \"' is null\";\n this.setError(true);\n }\n\n /*\n * setup the Mongo Data Access Object\n */\n if (_MongoDAO == null) {\n map = JSON.convertToParams(JSON.getObject(json, ConfigIF.RS_NOSQL));\n\n try {\n _MongoDAO = MongoFactory.getInstance(map);\n } catch (Exception ex) {\n msg = CLASS + \": \" + METHOD + \": Mongo DAO:\" + ex.getMessage();\n this.setError(true);\n }\n }\n\n if (!this.isError()) {\n this.setState(STATE.READY);\n } else {\n this.setState(STATE.ERROR);\n this.setStatus(msg);\n _logger.log(Level.SEVERE, msg);\n }\n\n _logger.exiting(CLASS, METHOD);\n\n return;\n }",
"private static Configuration getConfig() {\n Configuration vgConfig = new Configuration();\n vgConfig.addBrowser(1200, 800, BrowserType.CHROME);\n vgConfig.addBrowser(1200, 800, BrowserType.FIREFOX);\n vgConfig.addBrowser(1200, 800, BrowserType.EDGE);\n vgConfig.addBrowser(1200, 800, BrowserType.SAFARI);\n vgConfig.addDeviceEmulation(DeviceName.iPhone_X, ScreenOrientation.PORTRAIT);\n return vgConfig;\n }",
"protected Configuration createConfiguration()\r\n/* 76: */ {\r\n/* 77:119 */ this.configuration_d.setNumOfIterations(Integer.parseInt(this.jTextField1.getText()));\r\n/* 78:120 */ this.configuration_d.setPopulationSize(Integer.parseInt(this.popSize_d.getText()));\r\n/* 79:121 */ ((GAConfiguration)this.configuration_d).setCrossoverThreshold(Double.valueOf(this.jTextField2.getText()).doubleValue());\r\n/* 80:122 */ ((GAConfiguration)this.configuration_d).setMutationThreshold(Double.valueOf(this.jTextField3.getText()).doubleValue());\r\n/* 81:123 */ ((GAConfiguration)this.configuration_d).setMethod((String)this.methodList_d.getSelectedItem());\r\n/* 82:124 */ return this.configuration_d;\r\n/* 83: */ }",
"private void config() {\n\t}",
"public Object getConfig() {\n return config;\n }",
"public void initialize() {\n if (!BungeeBan.getInstance().getDataFolder().exists()) {\n BungeeBan.getInstance().getDataFolder().mkdirs();\n }\n File file = this.getConfigurationFile();\n if (!file.exists()) {\n try {\n file.createNewFile();\n if (this.defaultConfig != null) {\n try (InputStream is = BungeeBan.getInstance().getResourceAsStream(this.defaultConfig);\n OutputStream os = new FileOutputStream(file)) {\n ByteStreams.copy(is, os);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n this.reload();\n }",
"public interface IConfiguration extends ISessionAwareObject {\n\n\tString ENV_SOPECO_HOME = \"SOPECO_HOME\";\n\n\tString CONF_LOGGER_CONFIG_FILE_NAME = \"sopeco.config.loggerConfigFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION_FILE_NAME = \"sopeco.config.measurementSpecFileName\";\n\n\tString CONF_SCENARIO_DESCRIPTION = \"sopeco.config.measurementSpecification\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_URI = \"sopeco.config.measurementControllerURI\";\n\n\tString CONF_MEASUREMENT_CONTROLLER_CLASS_NAME = \"sopeco.config.measurementControllerClassName\";\n\n\tString CONF_APP_NAME = \"sopeco.config.applicationName\";\n\n\tString CONF_MAIN_CLASS = \"sopeco.config.mainClass\";\n\n\tString CONF_MEC_ACQUISITION_TIMEOUT = \"sopeco.config.MECAcquisitionTimeout\";\n\n\n\tString CONF_MEC_SOCKET_RECONNECT_DELAY = \"sopeco.config.mec.reconnectDelay\";\n\n\tString CONF_HTTP_PROXY_HOST = \"sopeco.config.httpProxyHost\";\n\t\n\tString CONF_HTTP_PROXY_PORT = \"sopeco.config.httpProxyPort\";\n\n\t\n\tString CONF_DEFINITION_CHANGE_HANDLING_MODE = \"sopeco.config.definitionChangeHandlingMode\";\n\tString DCHM_ARCHIVE = \"archive\";\n\tString DCHM_DISCARD = \"discard\";\n\n\tString CONF_SCENARIO_DEFINITION_PACKAGE = \"sopeco.config.xml.scenarioDefinitionPackage\";\n\t/** Holds the path to the root folder of SoPeCo. */\n\tString CONF_APP_ROOT_FOLDER = \"sopeco.config.rootFolder\";\n\tString CONF_EXPERIMENT_EXECUTION_SELECTION = \"sopeco.engine.experimentExecutionSelection\";\n\t/**\n\t * Holds the path to the plugins folder, relative to the root folder of\n\t * SoPeCo.\n\t */\n\tString CONF_PLUGINS_DIRECTORIES = \"sopeco.config.pluginsDirs\";\n\n\tString CLA_EXTENSION_ID = \"org.sopeco.config.commandlinearguments\";\n\n\t/** Folder for configuration files relative to the application root folder */\n\tString DEFAULT_CONFIG_FOLDER_NAME = \"config\";\n\n\tString DEFAULT_CONFIG_FILE_NAME = \"sopeco-defaults.conf\";\n\n\tString DIR_SEPARATOR = \":\";\n\t\n\tString EXPERIMENT_RUN_ABORT = \"org.sopeco.experiment.run.abort\";\n\n\t/**\n\t * Export the configuration as a key-value map. Both, the default ones and the ones in the\n\t * system environment are included.\n\t * \n\t * @return a key-value representation of the configuration\n\t * \n\t * @deprecated Use {@code exportConfiguration()} and {@code exportDefaultConfiguration}.\n\t */\n\t@Deprecated\n\tMap<String, Object> getProperties();\n\t\n\t/**\n\t * Exports the configuration as a key-value map. The default configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportConfiguration();\n\t\n\t/**\n\t * Exports the default configuration as a key-value map. The actual configuration and the ones\n\t * defined in the system environment are not included. \n\t * \n\t * @return a key-value representation of the configuration\n\t */\n\tMap<String, Object> exportDefaultConfiguration();\n\t\n\t/**\n\t * Imports the configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Imports the default configuration as a key-value map. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid importDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the configuration\n\t */\n\tvoid overwriteConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Overwrites the default configuration with the given configuration. \n\t * \n\t * @param config a key-value map representation of the default configuration\n\t */\n\tvoid overwriteDefaultConfiguration(Map<String, Object> config);\n\t\n\t/**\n\t * Returns the configured value of the given property in SoPeCo.\n\t * \n\t * It first looks up the current SoPeCo configuration, if there is no value\n\t * defined there, looks up the system properties, if no value is defined\n\t * there, then loads it from the default values; in case of no default\n\t * value, returns null.\n\t * \n\t * @param key\n\t * property key\n\t * @return Returns the configured value of the given property in SoPeCo.\n\t */\n\tObject getProperty(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a String.\n\t * \n\t * This method calls the {@link Object#toString()} of the property value and\n\t * is for convenience only. If the given property is not set, it returns\n\t * <code>null</code>.\n\t * \n\t * @param key\n\t * property key\n\t * \n\t * @see #getProperty(String)\n\t * @return Returns the configured value of the given property as a String.\n\t */\n\tString getPropertyAsStr(String key);\n\n\t/**\n\t * Returns the configured value of the given property as a Boolean value.\n\t * \n\t * This method uses the {@link #getPropertyAsStr(String)} and interprets\n\t * values 'yes' and 'true' (case insensitive) as a Boolean <code>true</code>\n\t * value and all other values as <code>false</code>. If the value of the\n\t * given property is <code>null</code> it returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a boolean\n\t * \n\t * @see #getProperty(String)\n\t */\n\tboolean getPropertyAsBoolean(String key, boolean defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Long value.\n\t * \n\t * This method uses the {@link Long.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a long\n\t * \n\t * @see #getProperty(String)\n\t */\n\tlong getPropertyAsLong(String key, long defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as a Double value.\n\t * \n\t * This method uses the {@link Double.#parseLong(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as a double\n\t * \n\t * @see #getProperty(String)\n\t */\n\tdouble getPropertyAsDouble(String key, double defaultValue);\n\n\t/**\n\t * Returns the configured value of the given property as an Integer value.\n\t * \n\t * This method uses the {@link Integer.#parseInt(String)} to interpret the\n\t * values. If the value of the given property is <code>null</code> it\n\t * returns the passed default value.\n\t * \n\t * @param key\n\t * property key\n\t * @param defaultValue\n\t * the default value returned in case of a null property value\n\t * \n\t * @return the value of the given property as an int\n\t * \n\t * @see #getProperty(String)\n\t */\n\tint getPropertyAsInteger(String key, int defaultValue);\n\n\t/**\n\t * Sets the value of a property for the current run.\n\t * \n\t * @param key\n\t * property key\n\t * @param value\n\t * property value\n\t */\n\tvoid setProperty(String key, Object value);\n\n\t/**\n\t * Clears the value of the given property in all layers of configuration,\n\t * including the system property environment.\n\t * \n\t * @param key the property\n\t */\n\tvoid clearProperty(String key);\n\n\t/**\n\t * Returns the default value (ignoring the current runtime configuration)\n\t * for a given property.\n\t * \n\t * @param key\n\t * porperty key\n\t * \n\t * @return Returns the default value for a given property.\n\t */\n\tObject getDefaultValue(String key);\n\n\t/**\n\t * Processes the given command line arguments, the effects of which will\n\t * reflect in the global property values.\n\t * \n\t * @param args\n\t * command line arguments\n\t * @throws ConfigurationException\n\t * if there is any problem with command line arguments\n\t */\n\tvoid processCommandLineArguments(String[] args) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadDefaultConfiguration(ClassLoader, String)} for loading\n\t * default configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * \n\t */\n\tvoid loadDefaultConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads default configurations from a file name. If the file name is not an\n\t * absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadDefaultConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finaly the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the system class loader. See\n\t * {@link #loadConfiguration(ClassLoader, String)} for loading default\n\t * configuration providing a class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(String fileName) throws ConfigurationException;\n\n\t/**\n\t * Loads user-level configurations from a file name. If the file name is not\n\t * an absolute path, the file is searched in the following places:\n\t * <ol>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory,</li>\n\t * <li>current folder,</li>\n\t * <li>the {@value #DEFAULT_CONFIG_FOLDER_NAME} directory in classpath,</li>\n\t * <li>and finally the classpath.</li>\n\t * </ol>\n\t * where classpath is determined by the given class loader.\n\t * \n\t * The configuration is loaded in an incremental fashion; i.e., the loaded\n\t * configuration will be added to (and overriding) the existing default\n\t * configuration.\n\t * <p>\n\t * See {@link #getAppRootDirectory()} and {@link #getDefaultValue(String)}.\n\t * \n\t * @param classLoader\n\t * an instance of a class loader\n\t * @param fileName\n\t * the name of a properties file\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t */\n\tvoid loadConfiguration(ClassLoader classLoader, String fileName) throws ConfigurationException;\n\n\t/**\n\t * Performs any post processing of configuration settings that may be\n\t * required.\n\t * \n\t * This method can be called after manually making changes to the\n\t * configuration values. It should be called automatically after a call to\n\t * {@link IConfiguration#loadConfiguration(String)}.\n\t */\n\tvoid applyConfiguration();\n\n\t/**\n\t * Sets the value of scenario description file name.\n\t * \n\t * @param fileName\n\t * file name\n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tvoid setScenarioDescriptionFileName(String fileName);\n\n\t/**\n\t * Sets the sceanrio description as the given object. This property in\n\t * effect overrides the value of scenario description file name (\n\t * {@link IConfiguration#CONF_SCENARIO_DESCRIPTION_FILE_NAME}).\n\t * \n\t * @param sceanrioDescription\n\t * an instance of a scenario description\n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tvoid setScenarioDescription(Object sceanrioDescription);\n\n\t/**\n\t * Sets the measurement controller URI.\n\t * \n\t * @param uriStr\n\t * a URI as an String\n\t * @throws ConfigurationException\n\t * if initializing the configuration fails\n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tvoid setMeasurementControllerURI(String uriStr) throws ConfigurationException;\n\n\t/**\n\t * Sets the measurement controller class name. This also sets the\n\t * measurement controller URI to be '<code>class://[CLASS_NAME]</code>'.\n\t * \n\t * @param className\n\t * the full name of the class\n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tvoid setMeasurementControllerClassName(String className);\n\n\t/**\n\t * Sets the application name for this executable instance.\n\t * \n\t * @param appName\n\t * an application name\n\t */\n\tvoid setApplicationName(String appName);\n\n\t/**\n\t * Sets the main class that runs this thread. This will also be used in\n\t * finding the root folder\n\t * \n\t * @param mainClass\n\t * class to be set as main class\n\t */\n\tvoid setMainClass(Class<?> mainClass);\n\n\t/**\n\t * Sets the logger configuration file name and triggers logger\n\t * configuration.\n\t * \n\t * @param fileName\n\t * a file name\n\t */\n\tvoid setLoggerConfigFileName(String fileName);\n\n\t/**\n\t * @return Returns the application root directory.\n\t */\n\tString getAppRootDirectory();\n\n\t/**\n\t * Sets the application root directory to the given folder.\n\t * \n\t * @param rootDir\n\t * path to a folder\n\t */\n\tvoid setAppRootDirectory(String rootDir);\n\n\t/**\n\t * @return Returns the application's configuration directory.\n\t */\n\tString getAppConfDirectory();\n\n\t/**\n\t * @return Returns the value of scenario description file name.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION_FILE_NAME\n\t */\n\tString getScenarioDescriptionFileName();\n\n\t/**\n\t * @return returns the sceanrio description as the given object.\n\t * \n\t * @see #CONF_SCENARIO_DESCRIPTION\n\t */\n\tObject getScenarioDescription();\n\n\t/**\n\t * @return Returns the measurement controller URI.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tURI getMeasurementControllerURI();\n\n\t/**\n\t * @return Returns the measurement controller URI as a String.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_URI\n\t */\n\tString getMeasurementControllerURIAsStr();\n\n\t/**\n\t * @return Returns the measurement controller class name.\n\t * \n\t * @see #CONF_MEASUREMENT_CONTROLLER_CLASS_NAME\n\t */\n\tString getMeasurementControllerClassName();\n\n\t/**\n\t * @return Returns the application name for this executable instance.\n\t */\n\tString getApplicationName();\n\n\t/**\n\t * @return Returns the main class that runs this thread. This value must\n\t * have been set by a call to\n\t * {@link IConfiguration#setMainClass(Class)}.\n\t */\n\tClass<?> getMainClass();\n\n\t/**\n\t * Writes the current configuration values into a file.\n\t * \n\t * @param fileName\n\t * the name of the file\n\t * @throws IOException\n\t * if exporting the configuration fails\n\t */\n\tvoid writeConfiguration(String fileName) throws IOException;\n\n\t/**\n\t * Overrides the values of this configuration with those of the given\n\t * configuration.\n\t * \n\t * @param configuration\n\t * with the new values\n\t */\n\t void overwrite(IConfiguration configuration);\n\n\t /**\n\t * Adds a new command-line extension to the configuration component. \n\t * \n\t * The same extension will not be added twice. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void addCommandLineExtension(ICommandLineArgumentsExtension extension);\n\t \n\t /**\n\t * Removes a new command-line extension from the configuration component. \n\t * \n\t * @param extension a command-line extension\n\t */\n\t void removeCommandLineExtension(ICommandLineArgumentsExtension extension);\n}",
"public Config getConfig() {\n return config;\n }",
"ConfigBlock getConfig();",
"public KernelConfig getConfig()\n {\n Kernel.checkAccess();\n return config;\n }",
"void init (Map<String, String> conf) throws ConfigException;",
"void setConfiguration();",
"public static JCloudScaleConfiguration getConfiguration()\n\t{\n\t\tJCloudScaleConfiguration cfg = JCloudScaleClient.getConfiguration();\n\t\tif(cfg == null)\n\t\t{\n\t\t\tcfg = loadConfiguration();\n\t\t\tJCloudScaleClient.setConfiguration(cfg);\n\t\t}\n\t\t\n\t\treturn cfg;\n\t}",
"private static void loadConfig() {\n\t\trxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Receiver.ID\", Integer.class,\n\t\t\t\tnew Integer(rxID));\n\t\ttxID = (Integer) ConfigStoreRedstoneWireless.getInstance(\n\t\t\t\t\"WirelessRedstone\").get(\"Transmitter.ID\", Integer.class,\n\t\t\t\tnew Integer(txID));\n\t}",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public abstract CONFIG build();",
"@Override\n public void setupConfiguration(Configuration config)\n {\n\n }",
"protected abstract void _init(DynMap config);",
"public ConfigCommon getConfig() {\n return config;\n }",
"public Configuration getCfg() {\n return cfg;\n }",
"public IheConfiguration() {\n }"
] | [
"0.7850166",
"0.76798874",
"0.76038414",
"0.76038414",
"0.76038414",
"0.76038414",
"0.7525568",
"0.74396753",
"0.7396572",
"0.7193542",
"0.71926194",
"0.71774125",
"0.7156669",
"0.71433127",
"0.71238583",
"0.7122116",
"0.7103563",
"0.7082719",
"0.70803285",
"0.70760226",
"0.7074672",
"0.7062744",
"0.70312214",
"0.70312214",
"0.7016156",
"0.69997156",
"0.6993672",
"0.699236",
"0.69732046",
"0.69674003",
"0.6945293",
"0.69234127",
"0.691684",
"0.68859684",
"0.68788487",
"0.6869268",
"0.68563986",
"0.6845315",
"0.6831964",
"0.68098307",
"0.68087786",
"0.6807914",
"0.68037915",
"0.6794765",
"0.6791635",
"0.6791635",
"0.6791635",
"0.6791635",
"0.6782149",
"0.6764608",
"0.6763111",
"0.6762045",
"0.6757831",
"0.6714445",
"0.6713896",
"0.6664253",
"0.66576743",
"0.6657241",
"0.6640602",
"0.6638251",
"0.66316295",
"0.66291004",
"0.66287786",
"0.6621294",
"0.6615239",
"0.6613548",
"0.66102695",
"0.6605292",
"0.66021705",
"0.6597835",
"0.6592224",
"0.65663207",
"0.6557624",
"0.6557208",
"0.65469605",
"0.65461326",
"0.65418774",
"0.6535554",
"0.65204835",
"0.6514878",
"0.6502082",
"0.6495236",
"0.64917654",
"0.6486519",
"0.648092",
"0.64746124",
"0.6463644",
"0.6462068",
"0.6458789",
"0.6449464",
"0.6448618",
"0.6441098",
"0.6440551",
"0.6424222",
"0.6419155",
"0.6418734",
"0.64174587",
"0.64143103",
"0.63963664",
"0.63922566",
"0.6390308"
] | 0.0 | -1 |
PhotoView photoView = (PhotoView) findViewById(R.id.photo_view); | public MyViewHolder(View view) {
super(view);
mb=(PhotoView) view.findViewById(R.id.imageView);
fullscreen=view.findViewById(R.id.full_screen);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.profile,\n container, false);\n\n profilePicture = rootView.findViewById(R.id.profileImage);\n\n\n\n\n return rootView;\n }",
"public void onClick(View v, Photo photo);",
"@Nullable\n\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.camera_preview_image, container, false);\n\n\n pic = view.findViewById(R.id.iv_Pic);\n button_capture = view.findViewById(R.id.button_capture);\n\n button_capture.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (Build.VERSION.SDK_INT >= 23) {\n askCameraPermission();\n } else {\n selectImage();\n }\n\n }\n\n\n });\n\n pic.setImageBitmap(bitmap);\n\n return view;\n\n }",
"void onPhotoTap(View view, float x, float y);",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_sign_up);\n b = (Button) findViewById(R.id.btnSelectPhoto);\n viewImage=(ImageView)findViewById(R.id.viewImage);\n b.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n selectImage();\n }\n });\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_photos, container, false);\r\n pm = (TextView) view.findViewById(R.id.photos_message);\r\n getPhotos(view);\r\n\r\n\r\n return view;\r\n }",
"@Override\n protected void initView(View view) {\n super.initView(view);\n picture1 = (ImageView) rootview.findViewById(R.id.picture1);\n picture2=(ImageView) rootview.findViewById(R.id.picture2);\n\n }",
"@Override\n public View getView() {\n photoLayout = new LinearLayout(context);\n addPhotoButton = new Button(context);\n addPhotoButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakePictureIntent();\n }\n });\n addPhotoButton.setText(\"Take a photo\");\n photoLayout.addView(addPhotoButton);\n// photoLayout.\n return photoLayout;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.view_photo, null);\n\t\tinitDate(view);\n\t\tinitView(view);\n\t\treturn view;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_photo, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_receta_detalle_imagen, container, false);\n\n try {\n PhotoView photoView = (PhotoView) view.findViewById(R.id.photo_view);\n url = getArguments().getString(\"url\");\n Glide.with(getActivity()).load(url).into(photoView);\n }catch (Exception e){\n }\n\n return view;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n ImageView view = (ImageView) findViewById(R.id.imageView);\n view.setOnTouchListener(this); \n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t\tsetContentView(R.layout.act_imageview_src);\r\n\t\t\r\n\t\tinitLayout();\r\n\t\tinitListener();\r\n\t}",
"void mo36482a(ImageView imageView, Uri uri);",
"private void setupView() {\n\t\timg=(ImageView) findViewById(R.id.imageView1);\n\t}",
"public interface PhotoGalleryActivityView extends BasicView {\n}",
"public void getViews() {\n cameraButton = (ImageButton) findViewById(R.id.cameraButton);\n galleryButton = (ImageButton)findViewById(R.id.galleryButton);\n tagText = (TextView) findViewById(R.id.tag_text);\n }",
"ImageView getView() {\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_bottom_sheet_layout, container, false);\n cameraLaunch = view.findViewById(R.id.cameraoption);\n galleryLaunch = view.findViewById(R.id.galleryoption);\n\n cameraLaunch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n dispatchTakePictureIntent();\n }\n });\n\n galleryLaunch.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n pickFromGallery();\n }\n });\n\n\n return view;\n }",
"public void uploadPhoto(View view) {\n Intent i = new Intent(\n Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n startActivityForResult(i, GET_FROM_GALLERY);\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n\n imgView = (ImageView)findViewById(R.id.ImageView01);\t\n imgView.setImageResource(Imgid[0]);\n \n gallery = (Gallery) findViewById(R.id.examplegallery);\n gallery.setAdapter(new AddImgAdp(this));\n\n gallery.setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView parent, View v, int position, long id) {\n imgView.setImageResource(Imgid[position]); \n }\n });\n\n }",
"public void changePhoto(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n ImageView imgView = new ImageView(getActivity());\n imgView.setImageResource(R.drawable.img1);\n return imgView;\n }",
"public void OnPhotos (View View)\n {\n \tIntent intent = new Intent(this, EditPhotos.class);\n \tintent.putExtra(EXTRA_URI, uri);\n \t\tstartActivity(intent);\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n ImageView image = (ImageView) findViewById(R.id.imageView1);\n \n image.setImageURI((Uri) getIntent().getExtras().get(Intent.EXTRA_STREAM)); \n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_map_photos, container, false);\n return view;\n }",
"@Override\n public void onClick(View v) {\n handlePhoto();\n }",
"void mo36483b(int i, ImageView imageView, Uri uri);",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_picture);\n\n locationEditText = (EditText) findViewById(R.id.locationEditText);\n pictureNameEditText = (EditText)findViewById(R.id.pictureNameET);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_image, container, false);\n imageView=view.findViewById(R.id.image);\n imageConf();\n setImage();\n return view;\n }",
"@Override\n public void onItemClicked(View itemView, Photo photo) {\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_dompet, container, false);\n\n editfoto = root.findViewById(R.id.profileButton);\n fotoprofile = root.findViewById(R.id.foto_profile);\n\n editfoto.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intentGallery = new Intent(Intent.ACTION_PICK,MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intentGallery, kodeGallery);\n }\n });\n\n return root;\n }",
"public ViewHolder(View view) {\r\n super(view);\r\n img = (ImageView) view.findViewById(R.id.recycleimg);\r\n// picture_text = (TextView) view.findViewById(R.id.picture_text);\r\n// picture_img = (TextView) view.findViewById(R.id.picture_img);\r\n// picture_heart = (TextView) view.findViewById(R.id.picture_heart);\r\n// picture_date = (TextView) view.findViewById(R.id.picture_date);\r\n// picture_num = (TextView) view.findViewById(R.id.picture_num);\r\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n// setContentView(R.layout.main);\n \n SingleFingerView testView = new SingleFingerView(this, BitmapFactory.decodeResource(getResources(), R.drawable.example));\n setContentView(testView);\n }",
"void mo36481a(int i, ImageView imageView, Uri uri);",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle\n savedInstanceState) {\n View view = inflater.inflate(R.layout.frament_photo_preview, container, false);\n unbinder = ButterKnife.bind(this, view);\n if (savedInstanceState != null) {\n ArrayList<String> name = savedInstanceState.getStringArrayList(\"name\");\n ArrayList<String> time = savedInstanceState.getStringArrayList(\"time\");\n ArrayList<Integer> size = savedInstanceState.getIntegerArrayList(\"size\");\n photoLists = new ArrayList<>();\n int length = name.size();\n for (int i = 0; i < length; i++) {\n Model temp = new Model(name.get(i), time.get(i), size.get(i));\n photoLists.add(temp);\n }\n currentItem = (savedInstanceState.getInt(\"position\"));\n customDialogOR = savedInstanceState.getBoolean(\"customDialogOR\");\n }\n if (photoLists.size() != 0) {\n initData();\n }\n reload = true;\n return view;\n }",
"@Override\n protected void findViewById() {\n ivGraffit = (ImageView) findView(R.id.ivGraffit);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.camera_page, container, false);\n\n if(null != savedInstanceState) {\n mSnapshot = savedInstanceState.getParcelable(CameraPage.ARG_IMAGE);\n }\n Button doCameraSnapshotBtn = (Button) mView.findViewById(R.id.get_camera_snapshot_btn);\n doCameraSnapshotBtn.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n MQTT_Client mqttClient = (MQTT_Client) MainActivity.Args.get(Arg.MQTT_CLIENT);\n mqttClient.askSnapshot(new MQTT_Client.OnResultListener() {\n @Override\n public void onSuccess(@Nullable Object result) {\n byte[] imageData = (byte[]) result;\n mSnapshot = BitmapFactory.decodeByteArray(imageData, 0, imageData.length);\n mUpdateGUICallback.onUpdate();\n }\n @Override\n public void onFailure(@Nullable Object result) {\n Toast message = Toast.makeText(getActivity(), (String) result, Toast.LENGTH_LONG);\n message.show();\n }\n });\n }\n });\n return mView;\n }",
"public void loadImagefromGallery(View view) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_dialouge, container, false);\n\n ImageView image = (ImageView) v.findViewById(R.id.imageView);\n DogList myActivity = (DogList) getActivity();\n\n int iconresID = getResources().getIdentifier(myActivity.getClickedImage().toLowerCase(),\"drawable\", myActivity.getPackageName());\n\n image.setImageResource(iconresID);\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_create_pics, container, false);\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_lihat_gambar);\n mURL = findViewById(R.id.linkImg);\n mImage = findViewById(R.id.imageResult);\n btnImage = findViewById(R.id.btnSearch);\n\n }",
"@Nullable\r\n @Override\r\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fullscreendialogfragment, container, false);\r\n img = view.findViewById(R.id.img);\r\n //set the imageview\r\n Picasso.get().load(getArguments().getString(\"url\")).into(img);\r\n return view;\r\n }",
"public void loadImagefromGallery(View view) {\n Intent galleryIntent = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n // Start the Intent\n startActivityForResult(galleryIntent, RESULT_LOAD_IMG);\n\n }",
"public void onImageClick(View view) {\n Intent photo_picker = new Intent(Intent.ACTION_PICK,\n android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n photo_picker.setType(\"image/jpeg\");\n startActivityForResult(photo_picker,PHOTO_PICK);\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.photo_question);\n\n\t\tdispatchTakePictureIntent(ACTION_TAKE_PHOTO_B);\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n Intent pictureChoosingIntent = new Intent(Intent.ACTION_GET_CONTENT)\n\t\t\t.addCategory(Intent.CATEGORY_OPENABLE)\n\t\t\t.setType(\"image/*\");\n \n pictureChooser = Intent.createChooser(pictureChoosingIntent,\n \t\tgetString(R.string.pick_image_action_title));\n \n chooseButtonClickListener = new OnClickListener() {\n \tpublic void onClick(View view) {\n \t\tLog.d(\"Prm\", \"Choosing photo\");\n \t\tstartActivityForResult(pictureChooser, PHOTO_CHOSEN_REQUEST);\n \t}\n };\n \n findViewById(R.id.pick_image_button)\n \t.setOnClickListener(chooseButtonClickListener);\n \n preview = (ImageView) findViewById(R.id.preview);\n \n projector = new Projector((Button) findViewById(R.id.start_button),\n \t\t(ImageView) findViewById(R.id.projection_view),\n \t\t(TextView) findViewById(R.id.projector_coordinates));\n \n Log.d(\"Prm\", \"All done\");\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.image_pinch);\r\n\r\n\t\tIntent intent = getIntent();\r\n\t\tString imageUrl = intent.getStringExtra(\"ImageUrl\");\r\n\r\n\t\tTouchImageView imageView = (TouchImageView) findViewById(R.id.imageView);\r\n\r\n\t\ttry {\r\n\t\t\tPicasso.with(this) //\r\n\t\t\t\t\t.load(imageUrl) //\r\n\t\t\t\t\t.placeholder(R.drawable.scan_chexs_logo) //\r\n\t\t\t\t\t.error(R.drawable.app_icon) //\r\n\t\t\t\t\t.into(imageView);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n Activity activity = getActivity();\r\n View view = inflater.inflate(R.layout.fragment_barcode_detect_from_photo, container, false);\r\n\r\n mDetectedIv = (ImageView) view.findViewById(R.id.ivDetectedImage);\r\n mDetectedInformationTv = (TextView) view.findViewById(R.id.tvFaceInformation);\r\n\r\n RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.rcPhotoList);\r\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(activity, LinearLayoutManager.HORIZONTAL, true);\r\n recyclerView.setLayoutManager(layoutManager);\r\n mItemAdapter = new ImageAdapter(activity);\r\n mItemAdapter.setOnItemClickListener(this);\r\n recyclerView.setAdapter(mItemAdapter);\r\n\r\n return view;\r\n }",
"public void activityCallback(int requestCode, int resultCode, Intent data) {\n\n Log.d(TAG,\"callback called. request code: \" + requestCode + \" result code: \" + resultCode);\n if (requestCode == REQUEST_TAKE_PHOTO && resultCode == Activity.RESULT_OK) {\n Bitmap imageBitmap = null;\n try {\n imageBitmap = MediaStore.Images.Media.getBitmap(context.getContentResolver(), Uri.fromFile(photoFile));\n } catch (IOException e) {\n e.printStackTrace();\n }\n ImageView mImageView = new ImageView(context);\n mImageView.setImageBitmap(imageBitmap);\n photoLayout.addView(mImageView);\n photoLayout.invalidate();\n photoLayout.refreshDrawableState();\n }\n\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n Bundle args = getArguments();\n int i = args.getInt(\"ARG_OBJECT\");\n\n View rootView = inflater.inflate(\n R.layout.fragment_collection_object, container, false);\n ImageView imageView = (ImageView) rootView.findViewById(R.id.item_gallery);\n\n if (imageArray.size() > 0) {\n Log.d(\"imageArray i:\", String.valueOf(i));\n imageView.setImageBitmap(imageArray.get(i));\n } else {\n // Insert image to indicate no images present\n Bitmap noImageBitmap = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.no_image_found);\n imageView.setImageBitmap(noImageBitmap);\n }\n\n return rootView;\n\n }",
"public void getImage(View view)\n {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE);\n\n }",
"public void getPhoto() {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\n //for startActivityForResult, the second parameter, requestCode is used to identify this particular intent\n startActivityForResult(intent, 1);\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.activity_main);\r\n\t\t\r\n\t\tgallery = (Button) findViewById(R.id.gallery_button);\r\n\t\tgallery.setOnClickListener(this);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_main);\n\t\timageview = (ImageView) findViewById(R.id.image);\n\t\tmContainer = (ViewGroup) findViewById(R.id.container);\n\t\t/**\n\t\t * 设置最新显示的图片 如果是数组,那么可以写成IMAGE[int]\n\t\t * \n\t\t */\n\t\timageview.setImageResource(IMAGE);\n\t\t/**\n\t\t * \n\t\t * 设置ImageView的OnClickListener\n\t\t * \n\t\t */\n\t\timageview.setClickable(true);\n\t\timageview.setFocusable(true);\n\t\timageview.setOnClickListener(this);\n\t}",
"public ImageView getImageView() {\n return (ImageView) getView().findViewById(imageViewId);\n }",
"private void findViews() {\r\n\t\t// Buttons first\r\n\t\tcloseBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"closeBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\tshareBtn = (ImageButton) findViewById( getApplication().getResources().getIdentifier(\"shareBtn\", \"id\", getApplication().getPackageName()) );\r\n\t\t// Photo Container\r\n\t\tphoto = (ImageView) findViewById( getApplication().getResources().getIdentifier(\"photoView\", \"id\", getApplication().getPackageName()) );\r\n\t\twarning = this.getResources().getIdentifier(\"warning\", \"drawable\", getApplication().getPackageName());\r\n\t\tplace = this.getResources().getIdentifier(\"no_media\", \"drawable\", getApplication().getPackageName());\r\n\t\tmAttacher = new PhotoViewAttacher(photo);\r\n\t\t// Title TextView\r\n\t\t//titleTxt = (TextView) findViewById( getApplication().getResources().getIdentifier(\"titleTxt\", \"id\", getApplication().getPackageName()) );\r\n\t\tprogress = (ProgressBar) findViewById( getApplication().getResources().getIdentifier(\"progressBar\", \"id\", getApplication().getPackageName()));\r\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n Log.d(TAG, \"onCreate\");\n \n mBtn1 = (Button) findViewById(R.id.button1);\n mBtn1.setOnClickListener(this);\n mBtn2 = (Button) findViewById(R.id.button2);\n mBtn2.setOnClickListener(this);\n mImg1 = (ImageView) findViewById(R.id.imageView1);\n }",
"@Override\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_event);\r\n\r\n database = DatabaseManager.getInstance().getDatabase();\r\n thumbnailSize = getResources().getInteger(R.integer.event_photo_thumbnail_size);\r\n }",
"@Override\n protected View onCreateView(ViewGroup parent) {\n View view = super.onCreateView(parent);\n\n image = (ImageView) view.findViewById(R.id.preference_cards_background_imageView);\n updateSummary();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n //These 6 lines deal with having a variable keep track of the layout objects so I can manipulate them\n //Layout is the overall layout, gridview is a gridded view that is placed inside the layout,\n //img is the image view, takePhoto and logout is self explanatory, user text is the email of the account\n //that is signed on.\n RelativeLayout layout = (RelativeLayout) inflater.inflate(R.layout.fragment_gallery, container, false);\n GridView gridview = (GridView) layout.findViewById(R.id.gridView);\n img = (ImageView) layout.findViewById(R.id.imageView);\n\n Button takePhoto = (Button) layout.findViewById(R.id.button);\n Button logout = (Button) layout.findViewById(R.id.button3);\n TextView userText = (TextView) layout.findViewById(R.id.textView);\n\n //Gets an SQLiteHandler object based off the current activity (has data that stores the user's email\n db = new SQLiteHandler(getActivity().getApplicationContext());\n //user accesses the user details\n HashMap<String, String> user = db.getUserDetails();\n //sets the email string based off the HashMap (a key-pair value)\n email = user.get(\"email\");\n //session manager object based off the current activity\n session = new SessionManager(getActivity().getApplicationContext());\n //new ReceiveAllImages().execute();\n //gridview.setAdapter(new GridViewAdapter(getActivity().getApplicationContext(), R.id.gridView, bitmaps));\n //img.setImageBitmap(bitmaps.get(0));\n //Sets the userText TextView object's text as the email string\n userText.setText(email);\n\n //Checks if the user is logged in, and if not, logs them out\n if (!session.isLoggedIn()) {\n logoutUser();\n }\n\n //An onClickListener is used to see if the button is clicked, and the takePhoto button's\n //onClickListener is set here to run the captureImage function\n takePhoto.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n captureImage();\n\n }\n });\n\n //Similarly done for the logout user button\n logout.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n logoutUser();\n }\n });\n return layout;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gallery, container, false);\n\n GridView gridView = (GridView) view.findViewById(R.id.gridview);\n gridView.setAdapter(new ImageAdapter(getContext(), IMAGES));\n gridView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getContext(), ImageViewSwipe.class);\n intent.putExtra(\"position\", position);\n Bundle b = new Bundle();\n b.putIntArray(\"images\", IMAGES);\n intent.putExtras(b);\n ActivityOptions options = ActivityOptions.makeScaleUpAnimation(view, 0,\n 0, view.getWidth(), view.getHeight());\n startActivity(intent, options.toBundle());\n }\n });\n\n return view;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = super.onCreateView(inflater, container, savedInstanceState);\r\n unbinder = ButterKnife.bind(this, rootView);\r\n img1.setOnLongClickListener(new View.OnLongClickListener() {\r\n @Override\r\n public boolean onLongClick(View v) {\r\n showDialog();\r\n return false;\r\n }\r\n });\r\n\r\n return rootView;\r\n\r\n\r\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, getString(R.string.photo_selector)), RESULT_PHOTO_OK);\n }",
"public interface PhotoGalleryView extends LoadingView {\n\n void showPhotos(ArrayList<PhotoGalleryItem> arPhotos);\n\n void openFullSizePhoto(int position, ArrayList<PhotoGalleryItem> ar);\n\n void setLoadedCount(int loadedCount, int size);\n\n void showToolbarLoading();\n\n void onAdd(ArrayList<PhotoGalleryItem> ar);\n\n void setPosition(int position);\n}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_proposition_message_board, container, false);\n image2=view.findViewById(R.id.search_profile_image2);\n Glide.with(view).load(R.drawable.serach_image_avatar).circleCrop().into(image2);\n return view;}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_share_picture_tab, container, false);\n\n imageView = v.findViewById(R.id.imageViewShare);\n editText = v.findViewById(R.id.editTextShare);\n button = v.findViewById(R.id.buttonShare);\n\n imageView.setOnClickListener(this);\n button.setOnClickListener(this);\n return v;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.activity_personal__info, container, false);\n\t\t\n\t\timgFor_profile = (ImageView) view.findViewById(R.id.imgFor_profile);\n\t\t\n\t\timgFor_profile.setOnClickListener(this);\n\t\t\n\t\treturn view;\n\t}",
"@Override\r\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\r\n\t\tsetContentView(R.layout.activity_photo_image_pager);\r\n\t\t\r\n\t\tgetIntentData();\r\n\t\tfindViewById();\r\n\t\tsetListener();\r\n\t\tinit();\r\n\t}",
"@Override\r\n public void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.custom_cameraactivity);\r\n mCamera = getCameraInstance();\r\n mCameraPreview = new CameraPreview(this, mCamera);\r\n FrameLayout preview = (FrameLayout) findViewById(R.id.camera_preview);\r\n preview.addView(mCameraPreview);\r\n\r\n Bundle extras = getIntent().getExtras();\r\n looc = extras.getString(\"coor\");\r\n\r\n Button captureButton = (Button) findViewById(R.id.button_capture);\r\n captureButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n mCamera.takePicture(null, null, mPicture);\r\n // havent try to use doinbackgroud test first\r\n\r\n }\r\n });\r\n }",
"public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\r\n {\r\n //We need to use the view before we return it\r\n View fragView = inflater.inflate(R.layout.fragment_main, container, false);\r\n lvPictures = (ListView) fragView.findViewById(R.id.lvPictures);\r\n\r\n //Method will get the arrayList in the database of DailyPicture objects\r\n db = new DailyPictureHelper(getActivity());\r\n\r\n db.open();\r\n\r\n pictures = new ArrayList<>();\r\n\r\n pictures = db.getAllDailyPictures();\r\n\r\n db.close();\r\n\r\n //Sets the adapter with the arrayList from the DB\r\n customAdapter = new PictureListAdapter(getActivity(), pictures);\r\n\r\n //connect the list to the adapter\r\n lvPictures.setAdapter(customAdapter);\r\n\r\n return fragView;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tab, container, false);\n\n Drawable myDrawable = getResources().getDrawable(R.drawable.youtube_boton);\n\n Imagen = (ImageView) view.findViewById(R.id.Imagen1);\n Imagen.setImageDrawable(myDrawable);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n myView = inflater.inflate(R.layout.fragment_main, container, false);\n initPhotoError();\n return myView;\n }",
"public void gallery(View view) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), REQUEST_IMAGE_GALLERY);\n\n\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\tBitmap bmp=BitmapFactory.decodeFile(Common.PATH);\n\t\tsetContentView(R.layout.pic_take_preview);\n\t\tiv=(ImageView)findViewById(R.id.preview_imageview);\n\t\tiv.setImageBitmap(bmp);\n\t\tmatrix=new Matrix();\n\t\tmatrix.set(iv.getImageMatrix());\n\t\tmatrix.setRotate(90);\t\n\t\tmid=new PointF();\n\t\tsetMid();\n\t\tDisplayMetrics dm=new DisplayMetrics();\n\t\tthis.getWindowManager().getDefaultDisplay().getMetrics(dm); \n\t\tint displayWidth=dm.heightPixels;\n\t\tmatrix.postTranslate(mid.x+displayWidth,mid.y);\n\t\tiv.setImageMatrix(matrix);\n\t\tiv.setOnTouchListener(new MulitPointTouchListener());\n\t\tiv.invalidate();\n\t\t\n\t\tcamera=new StartCamera(this);\n\t}",
"public void takePhoto(View view) {\n Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n if (takePictureIntent.resolveActivity(getPackageManager()) != null) {\n startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);\n } else {\n Toast.makeText(this, \"Uh oh something went wrong with taking a photo\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"private void setPhotoAttcher() {\n\n }",
"public void getImage(View view){\n if(Build.VERSION.SDK_INT > 19) {\n Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);\n intent.setType(\"image/*\");\n intent.setFlags(Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION);\n intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 100);\n } else {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 100);\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_model_images, container, false);\n }",
"@Override\r\n\tpublic int rootViewId() {\n\t\treturn R.layout.activity_clip_photo;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gallery, container, false);\n\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gallery, container, false);\n\n locationInfos.add(new LocationInfo(getString(R.string.arunachal), R.drawable.image_assam));\n locationInfos.add(new LocationInfo(getString(R.string.manipur), R.drawable.image_maghalaya));\n locationInfos.add(new LocationInfo(getString(R.string.nainital), R.drawable.image_nagaland));\n\n\n LocationInfoAdapter adapter = new LocationInfoAdapter(Objects.requireNonNull(getContext()),locationInfos);\n ListView listView = (ListView)view.findViewById(R.id.list);\n listView.setAdapter(adapter);\n\n\n\n return view;\n }",
"public Photo() {\n super();\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_add_photo_description);\n\t\tphoto = (PhotoBean) getIntent().getParcelableExtra(\"photo\");\n\t\tif(null == photo) {\n\t\t\tfinish();\n\t\t\treturn;\n\t\t}\n\n\t\tcanelTextView = (TextView) findViewById(R.id.cancel_tv);\n\t\tcanelTextView.setOnClickListener(this);\n\t\tokTextView = (TextView) findViewById(R.id.ok_tv);\n\t\tokTextView.setOnClickListener(this);\n\t\tsetResult(RESULT_CANCELED);\n\t\tphotoDescriptionEditText = (EditText) findViewById(R.id.photo_description_et);\n\t\tphotoDescriptionEditText.setText(photo.description);\n\t\tphotoImageView = (ImageView) findViewById(R.id.photo_iv);\n\t\tcom.nostra13.universalimageloader.core.ImageLoader.getInstance().displayImage(\"file://\"+photo.path,photoImageView, ImageLoaderOptionsSetting.getConstantImageLoaderDefaultOptions());\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view=inflater.inflate(R.layout.fragment03, container,false);\n\t\tlv = (ListView) view.findViewById(R.id.lv);\n\t\tSQLiteReadHelper03 helper=new SQLiteReadHelper03(getActivity(),\"picture\",R.raw.picture);\n\t\tpictureList=(ArrayList<Picture1>) helper.getDatabaseData();\n//\t\tLog.i(\"mytag\", pictureList.toString());\n\t\tlv.setAdapter(new MyAdapter(getActivity(), pictureList));\n\t\treturn view;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_image, container, false);\n }",
"@Override\n public void imageLoad(ImageView imageView, Bitmap bitmap) {\n imageView.setImageBitmap(bitmap);\n //item.picture = bitmap;\n }",
"private void initPhotos(View v) {\n Bite b = BiteLab.get(getActivity()).getBite(mBiteId);\n mFirstPhoto = new Image\n (this, v, R.id.first_image_button\n , BiteLab.get(getActivity()).getFirstImageFile(b));\n mSecondPhoto = new Image\n (this, v, R.id.second_image_button\n , BiteLab.get(getActivity()).getSecondImageFile(b));\n mThirdPhoto = new Image\n (this, v, R.id.third_image_button\n , BiteLab.get(getActivity()).getThirdImageFile(b));\n }",
"public void addImage(View view) {\n Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n startActivityForResult(intent, RESULT_LOAD_IMAGE);\n }",
"@OnClick(R.id.add_photo_layout)\n public void onClickAddPhoto() {\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, getString(R.string.choose_image_from)), 8);\n }",
"@Override\n public View initView() {\n\n View picture_menu_page = View.inflate(mActivity, R.layout.picture_menu_page, null);\n\n lv_pitruemenupage_content = (ListView) picture_menu_page.findViewById(R.id.lv_pitruemenupage_content);\n\n gv_pitruemenupage_content = (GridView) picture_menu_page.findViewById(R.id.gv_pitruemenupage_content);\n return picture_menu_page;\n\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_image_show);\n\t\tinitView();\n\t\tinitData();\n\t\tinitEvent();\n\t}",
"public View getView(int index, View view, ViewGroup viewGroup)\n {\n // TODO Auto-generated method stub\n ImageView i = new ImageView(mContext);\n\n// i.setImageResource(mImageIds.get(index));\n\n if(mImageIds.size() > 0 ){\n Picasso.with(mContext).load(mImageIds.get(index)).into(i);\n }\n\n\n i.setLayoutParams(new Gallery.LayoutParams(200, 200));\n\n i.setScaleType(ImageView.ScaleType.FIT_XY);\n\n\n return i;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view= inflater.inflate(R.layout.fragment_new_bphotos, container, false);\n\n /* next=(Button)findViewById(R.id.next);\n next.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startActivity(new Intent(NewBPhotosActivity.this,NewBLocActivity.class));\n }\n });*/\n\n\n featuredPhoto1 = (ImageView) view.findViewById(R.id.other_pic_1);\n featuredPhoto2 = (ImageView) view.findViewById(R.id.other_pic_2);\n featuredPhoto3 = (ImageView) view.findViewById(R.id.other_pic_3);\n featuredPhoto4 = (ImageView) view.findViewById(R.id.other_pic_4);\n featuredPhoto5 = (ImageView) view.findViewById(R.id.other_pic_5);\n\n featuredPhotoScheme1 = (LinearLayout) view.findViewById(R.id.other_pic_1_scheme);\n featuredPhotoScheme2 = (LinearLayout) view.findViewById(R.id.other_pic_2_scheme);\n featuredPhotoScheme3 = (LinearLayout) view.findViewById(R.id.other_pic_3_scheme);\n featuredPhotoScheme4 = (LinearLayout) view.findViewById(R.id.other_pic_4_scheme);\n featuredPhotoScheme5= (LinearLayout) view.findViewById(R.id.other_pic_5_scheme);\n\n\n addFeaturedPhoto1 = (ImageButton) view.findViewById(R.id.add_other_pic_1);\n addFeaturedPhoto1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE1_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto2 = (ImageButton) view.findViewById(R.id.add_other_pic_2);\n addFeaturedPhoto2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE2_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto3 = (ImageButton) view.findViewById(R.id.add_other_pic_3);\n addFeaturedPhoto3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE3_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto4 = (ImageButton) view.findViewById(R.id.add_other_pic_4);\n addFeaturedPhoto4.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE4_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n addFeaturedPhoto5 = (ImageButton) view.findViewById(R.id.add_other_pic_5);\n addFeaturedPhoto5.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE5_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n\n editFeaturedPhoto1 = (LinearLayout) view.findViewById(R.id.edit_pic1);\n editFeaturedPhoto1.setVisibility(View.INVISIBLE);\n editFeaturedPhoto1.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE1_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto2 = (LinearLayout) view.findViewById(R.id.edit_pic2);\n editFeaturedPhoto2.setVisibility(View.INVISIBLE);\n editFeaturedPhoto2.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE2_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto3 = (LinearLayout) view.findViewById(R.id.edit_pic3);\n editFeaturedPhoto3.setVisibility(View.INVISIBLE);\n editFeaturedPhoto3.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE3_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto4 = (LinearLayout) view.findViewById(R.id.edit_pic4);\n editFeaturedPhoto4.setVisibility(View.INVISIBLE);\n editFeaturedPhoto4.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE4_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n editFeaturedPhoto5 = (LinearLayout) view.findViewById(R.id.edit_pic5);\n editFeaturedPhoto5.setVisibility(View.INVISIBLE);\n editFeaturedPhoto5.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n BaseActivity.imageChooser(Constants.PICK_IMAGE5_REQUEST,PICK_FEATURED_PHOTO,getActivity());\n }\n });\n\n return view;\n }",
"@Override\r\n\tpublic void onBeforeCreate(Bundle savedInstanceState) {\n\t\tsuper.onBeforeCreate(savedInstanceState);\r\n\r\n\t\tmProfile = DetectorInspectorApplication.getInstance();\r\n\t\t// mProfile = UserProfile.getInstance();\r\n\t\tmPhoto = mProfile.getReportPhoto();\r\n\t\tsetContentView(R.layout.activity_photo_view);\r\n\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.searchfragment_pic, container, false);\n cameraView = (CameraView) v.findViewById(R.id.cameraView);\n textViewResult = (TextView) v.findViewById(R.id.textViewResult);\n textViewResult.setMovementMethod(new ScrollingMovementMethod());\n\n btnDetectObject = (Button) v.findViewById(R.id.btnDetectObject);\n btnSearchObject = (Button) v.findViewById(R.id.btnSearchObject);\n\n cameraView.setCameraListener(new CameraListener() {\n @Override\n public void onPictureTaken(byte[] picture) {\n super.onPictureTaken(picture);\n\n Bitmap bitmap = BitmapFactory.decodeByteArray(picture, 0, picture.length);\n\n bitmap = Bitmap.createScaledBitmap(bitmap, INPUT_SIZE, INPUT_SIZE, false);\n\n final List<Classifier.Recognition> results = classifier.recognizeImage(bitmap);\n\n textViewResult.setText(results.toString());\n best = results.get(0).getChineseTitle();\n }\n });\n\n btnSearchObject.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(getContext(), PicSearchResult.class);\n intent.putExtra(\"SEARCH_ITEMS\", best);\n getContext().startActivity(intent);\n }\n });\n\n btnDetectObject.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n cameraView.captureImage();\n }\n });\n\n initTensorFlowAndLoadModel();\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View v = inflater.inflate(R.layout.fragment_share_flickr, container, false);\n WebView myWebView = v.findViewById(R.id.flickrWebView);\n myWebView.setWebViewClient(new WebViewClient());\n myWebView.loadUrl(flickrUrl);\n return v;\n }",
"@Override\n public View onCreateView (LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState ){\n View rootView= inflater.inflate(R.layout.fragment_gallery_detail, container, false);\n\n mHeader = (NetworkImageView) rootView.findViewById(R.id.fragment_detail_header);\n// mAvatar = (NetworkImageView) rootView.findViewById(R.id.fragment_detail_ic_avatar);\n mAvatar = (CircularNetworkImageView) rootView.findViewById(R.id.fragment_detail_ic_avatar);\n\n // NetworkImageView\n mHeader.setImageUrl( mGalleryItem.getHeaderUrl(), mImageLoader);\n mAvatar.setImageUrl( mGalleryItem.getAvatarUrl() , mImageLoader );\n\n // TextView\n mUserName = (TextView) rootView.findViewById(R.id.fragment_detail_username);\n String userName= mGalleryItem.getFirstName()+\" \"+mGalleryItem.getLastName();\n mUserName.setText( userName );\n\n mAddress = (TextView) rootView.findViewById(R.id.fragment_detail_address);\n mAddress.setText( mGalleryItem.getAddress() );\n\n mTime = (TextView) rootView.findViewById(R.id.fragment_detail_time);\n mTime.setText( mGalleryItem.getTime() );\n\n mCaption = (TextView) rootView.findViewById(R.id.fragment_detail_caption);\n mCaption.setText( mGalleryItem.getCaption());\n\n\n mIconAddress = (ImageView) rootView.findViewById(R.id.fragment_detail_ic_address);\n mIconTime= (ImageView)rootView.findViewById(R.id.fragment_detail_ic_time);\n\n // ImageView\n //mIconAddress.setImageDrawable();\n //mIconTime.setImageDrawable();\n\n return rootView;\n }",
"@Override\n public Object instantiateItem(ViewGroup container, int position) {\n String url = \"http://\" + ServerConfig.VTDRIP + \"/SD0/PHOTO/\" + mPhotoLists.get\n (position).getName();\n PhotoView photoView = new PhotoView(activity);\n Glide.with(activity).load(url).into(photoView);\n container.addView(photoView);\n\n photoView.setOnPhotoTapListener(new PhotoViewAttacher.OnPhotoTapListener() {\n @Override\n public void onPhotoTap(View view, float v, float v1) {\n showTitleBar();\n }\n\n @Override\n public void onOutsidePhotoTap() {\n showTitleBar();\n }\n });\n return photoView;\n }"
] | [
"0.72283375",
"0.6873771",
"0.6818524",
"0.680933",
"0.67934185",
"0.6755693",
"0.67356676",
"0.6715862",
"0.6631475",
"0.66194063",
"0.65308994",
"0.65246373",
"0.6464601",
"0.6449518",
"0.6448566",
"0.6409919",
"0.6386439",
"0.63812363",
"0.6365174",
"0.6359632",
"0.63470685",
"0.63200927",
"0.62985307",
"0.62972015",
"0.62962735",
"0.62907124",
"0.62866575",
"0.6271713",
"0.6266306",
"0.6262262",
"0.6260701",
"0.6260146",
"0.625743",
"0.6247885",
"0.62330306",
"0.6230972",
"0.62307334",
"0.62302893",
"0.62148273",
"0.6214401",
"0.62074715",
"0.62029976",
"0.6192407",
"0.61861336",
"0.61751956",
"0.6151238",
"0.6133401",
"0.61316174",
"0.61235887",
"0.61049616",
"0.61014485",
"0.609096",
"0.6087336",
"0.60795254",
"0.6075033",
"0.6074936",
"0.60731506",
"0.6072668",
"0.6067063",
"0.6062965",
"0.60421115",
"0.6040953",
"0.6036063",
"0.60339266",
"0.60339266",
"0.6033463",
"0.6026832",
"0.6021814",
"0.6017262",
"0.601704",
"0.6016212",
"0.6013745",
"0.6012595",
"0.60099375",
"0.6007672",
"0.60014045",
"0.59973246",
"0.59888333",
"0.59831375",
"0.5982093",
"0.59730786",
"0.59681225",
"0.59489775",
"0.5945842",
"0.5944814",
"0.59386843",
"0.59328395",
"0.59325343",
"0.5931605",
"0.5930529",
"0.5929224",
"0.5924525",
"0.59170663",
"0.59169036",
"0.5909754",
"0.59084004",
"0.5908132",
"0.59004354",
"0.58895826",
"0.5881679"
] | 0.6458185 | 13 |
Return the path to an item relative to the root of this archetyped structure. | public String pathOfItem(Pathable item) {
return null; // todo: implement this method
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getRootItem();",
"public String getPath() {\n\t\treturn getString(\"path\");\n\t}",
"private String getPath(PSItemDefSummary itemDefSummary) throws PSExtensionProcessingException\n {\n Map<IPSGuid, String> itemPaths = new HashMap<>();\n String path = \"\";\n IPSGuid guid = null;\n try\n {\n\n guid = itemDefSummary.getGUID();\n IPSUiDesignWs ui = PSUiWsLocator.getUiDesignWebservice();\n path = ui.objectIdToPath(guid);\n // strip off content type name and prefix\n if (path != null && path.startsWith(CONTENTTYPES_PATH_PREFIX))\n {\n int nodeNamePosition = path.lastIndexOf(\"/\");\n path = path.substring(CONTENTTYPES_PATH_PREFIX.length(), nodeNamePosition);\n }\n else if (path == null || !path.equals(\"Navigation\"))\n {\n path = \"\";\n }\n\n return path;\n\n }\n catch (PSErrorsException e)\n {\n throw new PSExtensionProcessingException(\"Failed to obtain node path for content items \", e);\n }\n\n }",
"public String getFsItemPath() {\n return fsItemPath;\n }",
"public AppFile getParent(AppFile anItem) { return anItem.getParent(); }",
"public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }",
"public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}",
"public String getRootPath() {\n return root.getPath();\n }",
"IPath getPath();",
"public final String getPath() {\n\t\treturn this.path.toString();\n\t}",
"public String getRelativePath() {\n if (repository == null) {\n return name;\n } else {\n StringBuffer b = new StringBuffer();\n repository.getRelativePath(b);\n b.append(name);\n return b.toString();\n }\n }",
"public Path getPath();",
"public String getPath();",
"public String getPath();",
"public String getPath();",
"public String toLocalPath() {\n\n String parentPath = parent.toLocalPath();\n return StringUtils.isBlank(parentPath)\n ? element.getElement()\n : new StringBuilder()\n .append(parentPath)\n .append('.')\n .append(element.getElement())\n .toString();\n }",
"public final String getPath()\n {\n return path;\n }",
"public String nodePath() {\r\n String path;\r\n if (this.parent == null) {\r\n path = \"(\" + this.nodeType + \"|\" + this.dataType + \"|\" + this.data + \")\";\r\n } else {\r\n path = this.parent.nodePath() + \" (\" + this.nodeType + \"|\" + this.dataType + \"|\" + this.data + \")\";\r\n }\r\n return path;\r\n }",
"public String getPath() {\r\n return path;\r\n }",
"public String getPath() {\r\n return path;\r\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"public String getPath() {\n return path;\n }",
"Path getRootPath();",
"public final String getPath() {\n\t return m_path;\n\t}",
"public String getPath() {\n\t\treturn this.path;\n\t}",
"protected String path() {\n return path(getName());\n }",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath() {\r\n\t\treturn path;\r\n\t}",
"public String getPath()\n {\n return path;\n }",
"public String getPath()\n {\n return path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath()\n {\n\n return _path;\n }",
"public String getPath(){\r\n\t\treturn path;\r\n\t}",
"public abstract String getPath();",
"public abstract String getPath();",
"Path getPath();",
"public String getPath() {\n\t\treturn path;\n\t}",
"public String getPath(){\n\t\t\treturn this.path;\n\t\t}",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getPath() {\n return this.path;\n }",
"public String getRelativePath();",
"public String getPath() {\n\n\t\treturn this.path;\n\n\t}",
"public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}",
"public String getPath()\n {\n \tif (_nodeVRL==null)\n \t\treturn null;\n \t\n return _nodeVRL.getPath();\n }",
"public String path() {\n return filesystem().pathString(path);\n }",
"public String getParent(String anItem) { return null; }",
"public String getParent(String anItem) { return null; }",
"public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"String getPath();",
"public RelativePathExpr getRelativePath() {\r\n\t\treturn this.relativePathExpr;\r\n\t}",
"public String getSearchPath() {\n String path = null;\n if (parent != null) {\n path = parent.getSearchPath();\n path = String.format(\"%s/%s\", path, name);\n } else {\n path = String.format(\"%s\", name);\n }\n return path;\n }",
"public Object folderPath() {\n return this.innerTypeProperties() == null ? null : this.innerTypeProperties().folderPath();\n }",
"public String getPath() {\n String result = \"\";\n Directory curDir = this;\n // Keep looping while the current directories parent exists\n while (curDir.parent != null) {\n // Create the full path string based on the name\n result = curDir.getName() + \"/\" + result;\n curDir = (Directory) curDir.getParent();\n }\n // Return the full string\n result = \"/#/\" + result;\n return result;\n }",
"default PathItem getPathItem(String name) {\n Map<String, PathItem> map = getPathItems();\n if (map == null) {\n return null;\n }\n return map.get(name);\n }",
"String getPath() {\r\n\t\treturn path;\r\n\t}",
"public CustomPath getPath() {\n\t\treturn path;\n\t}",
"public String getPathName();",
"@DialogField(fieldLabel = \"Property Relative Path\",\n fieldDescription = \"Relative path from nodes being searched to the node where their tag property is stored. For example, if searching for dam:Assets, you would set this field to 'jcr:content/metadata'. Leave blank to search for tags on result nodes themselves.\")\n @TextField\n public Optional<String> getRelativePath() {\n return get(PARAM_RELATIVE_PATH, String.class);\n }",
"public String getBindingItemIdPath(){\n return pathBindingSetItemId;\n }",
"public String getPath() {\n\t\treturn file.getPath();\n\t}",
"public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }",
"@Nullable public String getPath() {\n return path;\n }",
"public String getPath() {\n\t\treturn pfDir.getPath();\n\t}",
"String getPath() {\n return path;\n }",
"public java.lang.String getPath() {\n\t\t return path;\n\t }",
"Map<String, PathItem> getPathItems();",
"public String getRoot();",
"public Path getPath(){\n return this.path;\n }",
"public String path() {\n return this.path;\n }",
"public String path() {\n return this.path;\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic Stack<MenuChoice> getPath() {\r\n\t\treturn ((Stack<MenuChoice>) path.clone());\r\n\t}"
] | [
"0.63066894",
"0.608951",
"0.60801536",
"0.6071211",
"0.60442364",
"0.6008947",
"0.59899956",
"0.5977475",
"0.5945392",
"0.59422356",
"0.5772574",
"0.5764752",
"0.5762674",
"0.5762674",
"0.5762674",
"0.57613856",
"0.5743758",
"0.5729244",
"0.572369",
"0.572369",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.5723326",
"0.572093",
"0.571747",
"0.5716289",
"0.5712097",
"0.57117516",
"0.57117516",
"0.57117516",
"0.57088214",
"0.57088214",
"0.5706706",
"0.57045275",
"0.5694455",
"0.5687962",
"0.5687962",
"0.56852776",
"0.568457",
"0.5681577",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658739",
"0.5658227",
"0.5655275",
"0.5652877",
"0.5639202",
"0.563443",
"0.56334573",
"0.56334573",
"0.56174743",
"0.561545",
"0.561545",
"0.561545",
"0.561545",
"0.561545",
"0.5613843",
"0.5612647",
"0.55937266",
"0.55932677",
"0.5590955",
"0.55892056",
"0.5589205",
"0.55680496",
"0.55575",
"0.55546665",
"0.55482936",
"0.55466497",
"0.553345",
"0.55309606",
"0.5516142",
"0.5513949",
"0.5512116",
"0.5501094",
"0.5500569",
"0.5494864",
"0.5494864",
"0.54911876"
] | 0.75782514 | 0 |
TODO Autogenerated method stub | @Override
public List<Object> itemsAtPath(String path) {
return null;
} | {
"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 boolean pathExists(String path) {
return 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 boolean pathUnique(String path) {
return 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 |
llama al DAO para actualizar un procedimiento | public void actualizar(Procedimiento procedimiento) {
IProcedimientoDao dao = new ProcedimientoDaoImpl();
dao.actualizarProcedimiento(procedimiento);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ParqueaderoEntidad actualizar(ParqueaderoEntidad parqueadero);",
"public void actualizar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //actualizar el Dia\n session.update(dia);\n \n tx.commit();\n }\n catch (Exception e) {\n //Se regresa a un estado consistente \n if (tx!=null){ \n tx.rollback();\n }\n e.printStackTrace(); \n }\n finally {\n //cerramos siempre la sesion\n session.close();\n }\n}",
"public interface PersistenceFinalTaskDao {\n\t\n\t/**\n\t * Persiste el total de operaciones en la tabla\n\t * de reporte final\n\t */\n\tpublic void persisteMontoOperaciones(BigDecimal montoTotal, String idProceso);\n\n\t/**\n\t * \n\t * obtiene la sumatoria de los montos de todas las\n\t * operaciones correspondienes a la carga de \n\t * un archivo de operaciones\n\t * \n\t */\n\tpublic BigDecimal conteoTotalDeOperaciones(String idProceso, String schema);\n\n\t/**\n\t * \n\t * Metodo para obtener el numero de errores\n\t * contenidos en un proceso @idProceso\n\t * \n\t * @param idProceso\n\t * @param schema\n\t * @return numero de errores correspontienes al proceso\n\t */\n\tpublic int numeroDeRegistrosCargadosConError(String idProceso, String schema);\n\n\t/**\n\t * Recibe sentencias sql para persistir,\n\t * el metodo itera la lista de sentencias\n\t * regresa el numero de registros insertados\n\t * el cual deberia ser igual al numero de sentencias recibidas\n\t * entro de la lista\n\t *\n\t * @param listQuriesToPersistence\n\t * @return\n\t */\n\tpublic int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);\n\t\n\t/**\n\t * Metodo que contiene el llamado a base de datos para hacer \n\t * el select inser de los registros que no fueron marcados\n\t * como update y tampoco fueron rechazados.\n\t * \n\t * @param queryInserSelect\n\t * @param idProceso\n\t * @return numero de registros afectados\n\t * @throws Exception \n\t */\n\tpublic int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;\n\t\n}",
"public interface ProcesoEDURegistroCalificacionEjecutivaDAO extends DAO {\n\n\n\t/** \n\t * Devuelve una lista de registros de cabeceras de cursos dictados\n\t * @param historicoCursoDictado\n\t * \t\t\tobjeto HistoricoCursoDictado poblado\n\t */\n\tpublic List getHistoricoCursoDictado(HistoricoCursoDictado historicoCursoDictado);\n\n\t/** \n\t * Devuelve una lista de registros de detalle de capacitadas\n\t * @param historicoCapacitadasDetalle\n\t * \t\t\tobjeto HistoricoCapacitadasDetalle poblado\n\t */\n\tpublic List getHistoricoCapacitadasDetalle(HistoricoCapacitadasDetalle historicoCapacitadasDetalle);\n\t\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora\n\t * @param historicoCapacitadasDetalle\n\t * \t\t\tobjeto HistoricoCapacitadasDetalle poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateEvaluacionInstructoraCapacitadas(HistoricoCapacitadasDetalle historicoCapacitadasDetalle, Usuario usuario);\n\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora\n\t * @param historicoCursoDictadoDetalle\n\t * \t\t\tobjeto HistoricoCursoDictadoDetalle poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateDetalleDictadoCalificacionEjecutiva(HistoricoCursoDictadoDetalle historicoCursoDictadoDetalle, Usuario usuario);\n\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora en el Resumen de Dictado\n\t * @param historicoCursoDictado\n\t * \t\t\tobjeto HistoricoCursoDictado poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateDictadoCalificacionEjecutiva(HistoricoCursoDictado historicoCursoDictado, Usuario usuario);\n\n}",
"@Override\r\npublic int update(Detalle_pedido d) {\n\treturn detalle_pedidoDao.update(d);\r\n}",
"public Producto actualizar(Producto producto) throws IWDaoException;",
"void iniciarOperacion() throws DAOException;",
"private static void LessonDAOUpdate() {\n PersonDAO personDAO = new PersonDAOImpl();\n\n Person person = personDAO.getPersonById(7);\n person.setFirstName(\"Teddy\");\n\n if(personDAO.updatePerson(person)) {\n System.out.println(\"Person Update Success!\");\n } else {\n System.out.println(\"Person Update Fail!\");\n }\n }",
"@Test\r\n public void testUpdate() throws Exception {\r\n System.out.println(\"update\");\r\n Bureau obj = new Bureau(0,\"Test\",\"000000000\",\"\");\r\n BureauDAO instance = new BureauDAO();\r\n instance.setConnection(dbConnect);\r\n obj = instance.create(obj);\r\n obj.setSigle(\"Test2\");\r\n //etc\r\n obj.setTel(\"000000001\");\r\n //etc\r\n Bureau expResult=obj;\r\n Bureau result = instance.update(obj);\r\n assertEquals(expResult.getSigle(), result.getSigle());\r\n //etc\r\n assertEquals(expResult.getTel(), result.getTel());\r\n //etc\r\n instance.delete(obj);\r\n //TODO verifier que si met à jour vers un doublé sigle-tel déjà existant, on a une exception\r\n }",
"public interface EscalaDAO {\r\n\r\n /**\r\n * Select numero manifiesto aeat.\r\n *\r\n * @param srvcId\r\n * the srvc id\r\n * @return the string\r\n */\r\n String selectNumeroManifiestoAeat(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del estado de una escala a partir del estado de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularEstado(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del codigo de exencion de una escala a partir del codigo de exencion de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateExencion(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de estancia de una escala a partir del tipo de estancia de sus atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateEstancia(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de entrada de una escala a partir del puerto anterior.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionEntrada(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de navegacion de salida de una escala a partir del puerto siguiente.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateNavegacionSalida(final Long srvcId);\r\n\r\n /**\r\n * Modificacion del tipo de IVA de una escala a partir de datos de la escala.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateTipoIva(final Long srvcId);\r\n\r\n /**\r\n * Modificacion de las fechas de inicio/fin de una escala a partir las fechas de inicio/fin de sus\r\n * atraques.\r\n *\r\n * @param srvcId\r\n * Identificador del servicio de escala.\r\n * @return Numero de filas modificadas.\r\n */\r\n int updateRecalcularFechas(final Long srvcId);\r\n}",
"public RespuestaBD modificarRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismomismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioModificacion) {\n/* 437 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 440 */ String s = \"update wkf_detalle set servicio_inicio=\" + servicioInicio + \",\" + \" accion=\" + accion + \",\" + \" codigo_estado=\" + codigoEstado + \",\" + \" servicio_destino=\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \" nombre_procedimiento='\" + nombreProcedimiento + \"',\" + \" correo_destino='\" + correoDestino + \"',\" + \" enviar_solicitud='\" + enviar + \"',\" + \" ind_mismo_proveedor='\" + mismoProveedor + \"',\" + \" ind_mismo_cliente='\" + mismomismoCliente + \"',\" + \" estado='\" + estado + \"',\" + \" caracteristica=\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + \" valor_caracteristica=\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + \" caracteristica_correo=\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + \" metodo_seleccion_proveedor=\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + \" ind_correo_clientes=\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + \" enviar_hermana=\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + \" enviar_si_hermana_cerrada=\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + \" ind_cliente_inicial=\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \"\" + \" where\" + \" codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 465 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 467 */ catch (Exception e) {\n/* 468 */ e.printStackTrace();\n/* 469 */ Utilidades.writeError(\"FlujoDetalleDAO:modificarRegistro \", e);\n/* 470 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 472 */ return rta;\n/* */ }",
"public void ModificarPrestamo(PrestamoFila pf) {\n this.conexion.ConectarBD();\n String consulta = \"update prestamos set IdSocio = ?, IdLibro = ?, FechaInicio = ?, FechaFin = ? where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del update\n this.pstm.setInt(1, pf.getIdSocio());\n this.pstm.setInt(2, pf.getIdLibro());\n this.pstm.setDate(3, new java.sql.Date(pf.getFechaInicio().getTime()));\n this.pstm.setDate(4, new java.sql.Date(pf.getFechaFin().getTime()));\n this.pstm.setInt(5, pf.getIdPrestamo());\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al modificar un Prestamo.\\n\"+e.toString());\n \n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n \n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD(); \n }",
"public void updateByEntity(Paciente paciente) {\n\t\n}",
"public void actualizar();",
"@Override\r\n\tpublic void atualizar(Tipo tipo) {\n String sql = \"update tipos_servicos set nome = ? \"\r\n + \"where id = ?\";\r\n try {\r\n stmt = conn.prepareStatement(sql);\r\n \r\n stmt.setString(1, tipo.getNome());\r\n \r\n \r\n stmt.setInt(3, tipo.getId());\r\n \r\n stmt.executeUpdate();\r\n \r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n }\r\n\t}",
"@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}",
"public void daoActualizar(Miembro m) throws SQLException {\r\n\t\tPreparedStatement ps= con.prepareCall(\"UPDATE miembros SET nombre=?, apellido1=?, apellido2=?, edad=?, cargo=? WHERE id=?\");\r\n\t\tps.setString(1,m.getNombre());\r\n\t\tps.setString(2,m.getApellido1());\r\n\t\tps.setString(3,m.getApellido2());\r\n\t\tps.setInt(4,m.getEdad());\r\n\t\tps.setInt(5,m.getCargo());\r\n\t\tps.setInt(6,m.getId());\t\r\n\t\tps.executeUpdate();\r\n\t\tps.close();\r\n\t}",
"private DAOOfferta() {\r\n\t\ttry {\r\n\t\t\tClass.forName(driverName);\r\n\r\n\t\t\tconn = getConnection(usr, pass);\r\n\r\n\t\t\tps = conn.prepareStatement(createQuery);\r\n\r\n\t\t\tps.executeUpdate();\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} catch (ConnectionException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\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} finally {\r\n\t\t\t/*closeResource()*/;\r\n\t\t}\r\n\t}",
"@Override\n public void actualizarPropiedad(Propiedad nuevaPropiedad) {\n int numFinca = nuevaPropiedad.getNumFinca();\n String modalidad = nuevaPropiedad.getModalidad();\n double area = nuevaPropiedad.getAreaTerreno();\n double metro = nuevaPropiedad.getValorMetroCuadrado();\n double fiscal = nuevaPropiedad.getValorFiscal();\n String provincia = nuevaPropiedad.getProvincia();\n String canton = nuevaPropiedad.getCanton();\n String distrito = nuevaPropiedad.getDistrito();\n String dirExacta = nuevaPropiedad.getDirExacta();\n String estado = nuevaPropiedad.getEstado();\n String tipo = nuevaPropiedad.getTipo();\n System.out.println(nuevaPropiedad.getFotografias().size());\n double precio = nuevaPropiedad.getPrecio();\n try {\n bdPropiedad.manipulationQuery(\"UPDATE PROPIEDAD SET MODALIDAD = '\" + modalidad + \"', AREA_TERRENO \"\n + \"= \" + area + \", VALOR_METRO = \" + metro + \", VALOR_FISCAL = \"+ fiscal + \", PROVINCIA = '\" \n + provincia + \"', CANTON = '\" + canton + \"' , DISTRITO = '\" + distrito + \"', DIREXACTA = '\" \n + dirExacta + \"', ESTADO = '\" + estado + \"', PRECIO = \" + precio + \" WHERE ID_PROPIEDAD = \" \n + numFinca);\n bdPropiedad.manipulationQuery(\"DELETE FROM FOTOGRAFIA_PROPIEDAD WHERE ID_PROPIEDAD = \" + numFinca);\n bdPropiedad.insertarFotografias(nuevaPropiedad);\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Verifica que no existeixi un tipus amb el mateix nom\n * @param tipoAct\n * @return int\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Inserta un tipus d'activitat en la base de dades\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa els tipus d'activitats que esten actius\n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa tots els tipus d'activitats \n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Seleccionar el tipo de actividad d'una actividad\n * @param activity\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;\n\n /**\n * Guarda la sessió del tipus d'activitat\n * @param tipoAct\n * @param pagina\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract void guardarSession(TipoActividad tipoAct, String pagina) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que engloba les funcións per editar un tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callEditar(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que permet editar el Tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String editarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n}",
"@Override\r\n /* OSINE791 - RSIS1 - Inicio */\r\n //public ExpedienteDTO asignarOrdenServicio(ExpedienteDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO) throws ExpedienteException{\r\n public ExpedienteGSMDTO asignarOrdenServicio(ExpedienteGSMDTO expedienteDTO,String codigoTipoSupervisor,UsuarioDTO usuarioDTO,String sigla) throws ExpedienteException{\r\n LOG.error(\"asignarOrdenServicio\");\r\n ExpedienteGSMDTO retorno=expedienteDTO;\r\n try{\r\n //cambiarEstado expediente \r\n \tExpedienteGSMDTO expedCambioEstado=cambiarEstadoProceso(expedienteDTO.getIdExpediente(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getPersonal().getIdPersonal(),expedienteDTO.getEstadoProceso().getIdEstadoProceso(),null,usuarioDTO);\r\n LOG.info(\"expedCambioEstado:\"+expedCambioEstado);\r\n //update expediente\r\n PghExpediente registroDAO = crud.find(expedienteDTO.getIdExpediente(), PghExpediente.class);\r\n registroDAO.setDatosAuditoria(usuarioDTO);\r\n if(expedienteDTO.getTramite()!=null){\r\n registroDAO.setIdTramite(new PghTramite(expedienteDTO.getTramite().getIdTramite()));\r\n }else if(expedienteDTO.getProceso()!=null){\r\n registroDAO.setIdProceso(new PghProceso(expedienteDTO.getProceso().getIdProceso()));\r\n }\r\n if(expedienteDTO.getObligacionTipo()!=null){\r\n registroDAO.setIdObligacionTipo(new PghObligacionTipo(expedienteDTO.getObligacionTipo().getIdObligacionTipo()));\r\n }\r\n if(expedienteDTO.getObligacionSubTipo()!=null && expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()!=null){\r\n registroDAO.setIdObligacionSubTipo(new PghObligacionSubTipo(expedienteDTO.getObligacionSubTipo().getIdObligacionSubTipo()));\r\n }\r\n registroDAO.setIdUnidadSupervisada(new MdiUnidadSupervisada(expedienteDTO.getUnidadSupervisada().getIdUnidadSupervisada()));\r\n crud.update(registroDAO);\r\n //inserta ordenServicio\r\n Long idLocador=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)?expedienteDTO.getOrdenServicio().getLocador().getIdLocador():null;\r\n Long idSupervisoraEmpresa=codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)?expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa():null;\r\n OrdenServicioDTO OrdenServicioDTO=ordenServicioDAO.registrar(expedienteDTO.getIdExpediente(), \r\n expedienteDTO.getOrdenServicio().getIdTipoAsignacion(), expedienteDTO.getOrdenServicio().getEstadoProceso().getIdEstadoProceso(), \r\n /* OSINE791 - RSIS1 - Inicio */\r\n //codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO);\r\n codigoTipoSupervisor, idLocador, idSupervisoraEmpresa, usuarioDTO,sigla);\r\n /* OSINE791 - RSIS1 - Fin */\r\n LOG.info(\"OrdenServicioDTO:\"+OrdenServicioDTO.getNumeroOrdenServicio());\r\n //busca idPersonalDest\r\n PersonalDTO personalDest=null;\r\n List<PersonalDTO> listPersonalDest=null;\r\n if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_NATURAL)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(expedienteDTO.getOrdenServicio().getLocador().getIdLocador(),null));\r\n }else if(codigoTipoSupervisor.equals(Constantes.CODIGO_TIPO_SUPERVISOR_PERSONA_JURIDICA)){\r\n listPersonalDest=personalDAO.find(new PersonalFilter(null,expedienteDTO.getOrdenServicio().getSupervisoraEmpresa().getIdSupervisoraEmpresa()));\r\n }\r\n if(listPersonalDest==null || listPersonalDest.isEmpty() || listPersonalDest.get(0).getIdPersonal()==null){\r\n throw new ExpedienteException(\"La Empresa Supervisora no tiene un Personal asignado\",null);\r\n }else{\r\n personalDest=listPersonalDest.get(0);\r\n }\r\n //inserta historico Orden Servicio\r\n EstadoProcesoDTO estadoProcesoDto=estadoProcesoDAO.find(new EstadoProcesoFilter(Constantes.IDENTIFICADOR_ESTADO_PROCESO_OS_REGISTRO)).get(0);\r\n MaestroColumnaDTO tipoHistorico=maestroColumnaDAO.findMaestroColumna(Constantes.DOMINIO_TIPO_COMPONENTE, Constantes.APLICACION_INPS, Constantes.CODIGO_TIPO_COMPONENTE_ORDEN_SERVICIO).get(0);\r\n /* OSINE_SFS-480 - RSIS 40 - Inicio */\r\n HistoricoEstadoDTO historicoEstado=historicoEstadoDAO.registrar(null, OrdenServicioDTO.getIdOrdenServicio(), estadoProcesoDto.getIdEstadoProceso(), expedienteDTO.getPersonal().getIdPersonal(), personalDest.getIdPersonal(), tipoHistorico.getIdMaestroColumna(),null,null, null, usuarioDTO); \r\n LOG.info(\"historicoEstado:\"+historicoEstado);\r\n /* OSINE_SFS-480 - RSIS 40 - Fin */\r\n retorno=ExpedienteGSMBuilder.toExpedienteDto(registroDAO);\r\n retorno.setOrdenServicio(new OrdenServicioDTO(OrdenServicioDTO.getIdOrdenServicio(),OrdenServicioDTO.getNumeroOrdenServicio()));\r\n }catch(Exception e){\r\n LOG.error(\"error en asignarOrdenServicio\",e);\r\n ExpedienteException ex = new ExpedienteException(e.getMessage(), e);\r\n throw ex;\r\n }\r\n return retorno;\r\n }",
"public void saveOrUpdatePosPay(PosPay posPay) throws DataAccessException;",
"public void guardar(Periodo periodo)\r\n/* 22: */ {\r\n/* 23: 42 */ this.periodoDao.guardar(periodo);\r\n/* 24: */ }",
"public void actualizarEmpleado(CLEmpleado cl) {\r\n String sql = \"{CALL sp_actualizarEmpleado(?,?,?,?,?,?,?,?,?)}\";\r\n try{\r\n ps = cn.prepareCall(sql); \r\n ps.setInt(1, cl.getIdEmpleado());\r\n ps.setString(2, cl.getPrimerNombre());\r\n ps.setString(3, cl.getSegundoNombre());\r\n ps.setString(4, cl.getPrimerApellido());\r\n ps.setString(5, cl.getSegundoApellido());\r\n ps.setString(6, cl.getDireccion());\r\n ps.setString(7, cl.getTelefonoCelular());\r\n ps.setInt(8, cl.getIdCargo());\r\n ps.setInt(9, cl.getIdEstado());\r\n ps.execute();\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n \r\n }",
"private void updateDB() {\n }",
"int update(Purchase purchase) throws SQLException, DAOException;",
"@Test\n public void updateTest8() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }",
"@Override\r\n\tpublic void update(Object obj) throws DAOException {\n\r\n\t}",
"@Test\n public void updateTest7() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCanoa(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCanoa() ,\"Should return true if update Servizio\");\n }",
"public void atualizar(RelatorioDAO obj) {\n\t\t\n\t}",
"@Override\n public void doUpdate(FasciaOrariaBean bean) throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"UPDATE fasciaoraria SET fascia=? WHERE id=?\";\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n statement.setString(1, bean.getFascia());\n statement.setInt(2, bean.getId());\n System.out.println(\"doUpdate=\" + statement);\n statement.executeUpdate();\n con.commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n }",
"@Test\n public void updateTest3() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setRistorante(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isRistorante() ,\"Should return true if update Servizio\");\n }",
"private void updateObject(Object object) {\n Connection connection = ConnectionPoll.getConnection();\n CRUDService crudService = new CRUDService(connection, object.getClass());\n\n try {\n crudService.update((SimpleORMInterface) object);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n ConnectionPoll.releaseConnection(connection);\n\n try {\n connection.close();\n } catch (SQLException throwables) {\n throwables.printStackTrace();\n }\n }",
"public void saveORUpdateObra(Obra obra) throws Exception;",
"public abstract void leerPersistencia();",
"int updateByPrimaryKey(ParUsuarios record);",
"public void saveProduit(Produit theProduit);",
"int updateByPrimaryKey(Tipologia record);",
"@Test\n public void updateTest14() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }",
"@Transactional\n\t@Override\n\tpublic Paradero update(Paradero t) throws Exception {\n\t\treturn paraderoRespository.save(t);\n\t}",
"@Override\n public void update(Promocion prm) {\n promocionRepository.update(prm);\n }",
"@Test\n public void updateTest10() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isBar() ,\"Should return true if update Servizio\");\n }",
"public void actualizarActividad (Actividad act) {\r\n String query = \"UPDATE actividad SET identificacion_navegate = \\\"\" + act.getIdentificacionNavegante() \r\n + \"\\\", numero_matricula = \\\"\" + act.getNumeroMatricula() \r\n + \"\\\", fecha = \\\"\" + act.getFecha() \r\n + \"\\\", hora = \\\"\" + act.getHora() \r\n + \"\\\", destino = \\\"\" + act.getDestino() \r\n + \"\\\" WHERE id_salida = \\\"\" + act.getIdentificacionSalida() + \"\\\"\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad actualizada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n } \r\n }",
"public void update(Triplet t) throws DAOException;",
"Lancamento persistir(Lancamento lancamento);",
"int updateByPrimaryKey(Prueba record);",
"@Test\n public void updateTest11() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setRistorante(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isRistorante() ,\"Should return true if update Servizio\");\n }",
"private void salvar() {\n setaCidadeBean();\n //Instanciamos o DAO\n CidadeDAO dao = new CidadeDAO();\n //verifica qual será a operação de peristência a ser realizada\n if (operacao == 1) {\n dao.inserir(cidadeBean);\n }\n if (operacao == 2) {\n dao.alterar(cidadeBean);\n }\n habilitaBotoesParaEdicao(false);\n reiniciaTela();\n }",
"public void afterUpdate(DevicelabtestBean pObject) throws SQLException;",
"@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 }",
"int updateByPrimaryKey(Movimiento record);",
"int updateByPrimaryKey(CTipoComprobante record) throws SQLException;",
"@Test\n public void updateTest12() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setAnimazione(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isAnimazione() ,\"Should return true if update Servizio\");\n }",
"@Test\n public void updateTest1() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isCabina() ,\"Should return true if update Servizio\");\n }",
"@Test\n public void updateTest2() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBar(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBar() ,\"Should return true if update Servizio\");\n }",
"@Test\n public void updateTest9() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setCabina(true);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(true, servizio.isCabina() ,\"Should return true if update Servizio\");\n }",
"public String actualizarPuntuacion(int idUsuario, int idLibro, double puntuacion) {\r\n Connection con = Conexion.getConnection();\r\n PreparedStatement ps1;\r\n PreparedStatement ps2;\r\n PreparedStatement ps3;\r\n PreparedStatement ps4;\r\n ResultSet rs1;\r\n ResultSet rs2;\r\n ResultSet rs3;\r\n ResultSet rs4;\r\n String rpta = \"\";\r\n String sql1 = \"select puntuacion from usuarioxlibro where idusuario =\" + idUsuario\r\n + \" and idlibro = \" + idLibro;\r\n String sql3 = \"update usuarioxlibro set puntuacion = ? where idusuario= \" + idUsuario\r\n + \" and idlibro = \" + idLibro;\r\n String sql2 = \"select vez from libro where idlibro =\" + idLibro;\r\n String sql4 = \"update libro set vez = ? where idlibro =\" + idLibro;\r\n double puntAnt = 0;\r\n int vez = 0;\r\n try {\r\n ps1 = con.prepareStatement(sql1);\r\n rs1 = ps1.executeQuery();\r\n while (rs1.next()) {\r\n puntAnt = rs1.getDouble(1);\r\n }\r\n\r\n ps2 = con.prepareStatement(sql2);\r\n rs2 = ps2.executeQuery();\r\n while (rs2.next()) {\r\n vez = rs2.getInt(1);\r\n }\r\n\r\n double nuevaPunt = puntuacionNueva(puntAnt, puntuacion, vez);\r\n ps3 = con.prepareStatement(sql3);\r\n ps3.setDouble(1, nuevaPunt);\r\n rpta = \"Puntuación registrada\";\r\n ps3.executeUpdate();\r\n\r\n ps4 = con.prepareStatement(sql4);\r\n ps4.setInt(1, vez + 1);\r\n ps4.executeUpdate();\r\n } catch (Exception e) {\r\n System.out.println(e);\r\n rpta = \"No se pudo registrar la puntuacion\";\r\n }\r\n return rpta;\r\n }",
"void actualizar(Prestamo prestamo);",
"@Test\n public void updateTest6() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setBeach_volley(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isBeach_volley() ,\"Should return true if update Servizio\");\n }",
"public void crudOperationStudent(){\n //Retrieve Student\n Student student=entityManager.find(Student.class,2L);\n // persistence Context have Student\n //Retrieve Passport\n Passport passport=student.getPassport();\n // persistence Context have Student,passport\n //Update passport number for student\n passport.setPassportNo(\"ZX132322\");\n // persistence Context have Student, updated-passport\n //update Student details\n student.setAge(25);\n // persistence Context have updated-Student, updated-passport\n entityManager.persist(student);\n\n }",
"@Test\n public void updateTest4() throws SQLException {\n manager = new TableServizioManager(mockDb);\n Servizio servizio = manager.retriveById(2);\n servizio.setAnimazione(false);\n manager.update(servizio);\n servizio = manager.retriveById(2);\n assertEquals(false, servizio.isAnimazione() ,\"Should return true if update Servizio\");\n }",
"@Override\n public void doSave(FasciaOrariaBean bean) throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"INSERT INTO fasciaoraria VALUES (?,?)\";\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n statement.setInt(1, bean.getId());\n statement.setString(2, bean.getFascia());\n System.out.println(\"doSave=\" + statement);\n statement.executeUpdate();\n con.commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n }",
"public boolean actualizar(){\n conexion=base.GetConnection();\n if(conexion!=null){\n try{\n String peticion= \"update usuarios set Cedula=? ,Nombres=? ,Sexo=? ,Edad=? ,Direccion=? ,Ciudad=? ,Contrasena=? ,Estrato=? ,Rol=? where Cedula='\";\n PreparedStatement actualizar= conexion.prepareStatement(peticion+this.Cedula+\"'\");\n actualizar.setString(1,this.Cedula);\n actualizar.setString(2,this.Nombres);\n actualizar.setString(3,this.Sexo);\n actualizar.setInt(4,this.Edad);\n actualizar.setString(5,this.Direccion);\n actualizar.setString(6,this.Ciudad);\n actualizar.setString(7,this.Contrasena);\n actualizar.setInt(8,this.Estrato);\n actualizar.setString(9,this.Rol);\n actualizar.executeUpdate();\n conexion.close();\n JOptionPane.showMessageDialog(null,\"Usuario Actualizado\",\"Éxito al actualizar\",1);\n return true;\n }\n catch(SQLException ex){\n JOptionPane.showMessageDialog(null,\"Error al actualizar: \"+ex.getMessage(),\"error\",1);\n return false;\n }}\n else{\n JOptionPane.showMessageDialog(null,\"error al conectar\",\"error\",1);\n return false;\n }\n}",
"public void actualizar() {\n\n\t}",
"public interface ProgramaTVDAO {\n\t/**\n\t * Crea una nueva monitorización\n\t * @param titulo Título del programa\n\t * @param episodeCode Código del Episodio (ej. T01E03)\n\t * @param fechaInicio Fecha y hora de Inicio\n\t * @param fechaFin Fecha y hora de Fin\n\t * @param hashtag Hashtag que se monitorizará\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV crearMonitorizacion(String titulo, String episodeCode, Date fechaInicio, Date fechaFin, String hashtag);\n\n\t/**\n\t * Monitorización por clave primaria\n\t * @param primaryKey Clave primaria\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV programaPorId(Long primaryKey);\n\t\n\t/**\n\t * Todas las monitorizaciones que llevan el mismo hashtag\n\t * @param hashtag Hashtag\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> ProgramasPorHashtag(String hashtag);\n\t\n\t/**\n\t * Lista de monitorizaciones del mismo programa\n\t * @param titulo Título del programa\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> programasPorTitulo(String titulo);\n\t\n\t /**\n\t * Todas las monitorizaciones\n\t * @return Lists de todos los objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> todosLosProgramas();\n\t\n\t/**\n\t * Top 5 programas más vistos\n\t * @return Array ordenado de los 5 programas más vistos\n\t */\n\tpublic ProgramaTV[] programasTop5();\n\n\t/**\n\t * Actualiza monitorizacion\n\t * @param prog Objeto ProgramaTV\n\t */\n\tpublic void updateProgramaTV(ProgramaTV prog);\n\n\n\t/**\n\t * Borra una monitorización\n\t * @param prog Clave primaria de la monitorización\n\t */\n\tpublic void deleteProgramaTV(Long prog);\n\t\n\t/**\n\t * Borra todos los programas\n\t */\n\tpublic void deleteAll();\n\t\n\n\t\n\n\t}",
"public boolean modificarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta, int codigoObjetivo, String descripcion, String justificacion, double valorMeta, double valorMinimo, double valorMaximo, String tipoMedicion, String estado, String fuenteDato, String aplicaEn, String unidadMedida, String tipoGrafica, String mes01, String mes02, String mes03, String mes04, String mes05, String mes06, String mes07, String mes08, String mes09, String mes10, String mes11, String mes12, Collection arrResponsables, Collection arrRecursos, String usuarioModificacion) {\n/* */ try {\n/* 810 */ String s = \"update cal_plan_metas set codigo_objetivo=\" + codigoObjetivo + \",\" + \" descripcion='\" + descripcion + \"',\" + \" justificacion='\" + justificacion + \"',\" + \" valor_meta=\" + valorMeta + \",\" + \" valor_minimo=\" + valorMinimo + \",\" + \" valor_maximo=\" + valorMaximo + \",\" + \" tipo_medicion='\" + tipoMedicion + \"',\" + \" estado='\" + estado + \"',\" + \" fuente_dato='\" + fuenteDato + \"',\" + \" aplica_en='\" + aplicaEn + \"',\" + \" unidad_medida='\" + unidadMedida + \"',\" + \" tipo_grafica='\" + tipoGrafica + \"',\" + \" mes01='\" + mes01 + \"',\" + \" mes02='\" + mes02 + \"',\" + \" mes03='\" + mes03 + \"',\" + \" mes04='\" + mes04 + \"',\" + \" mes05='\" + mes05 + \"',\" + \" mes06='\" + mes06 + \"',\" + \" mes07='\" + mes07 + \"',\" + \" mes08='\" + mes08 + \"',\" + \" mes09='\" + mes09 + \"',\" + \" mes10='\" + mes10 + \"',\" + \" mes11='\" + mes11 + \"',\" + \" mes12='\" + mes12 + \"',\" + \" fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"'\" + \" where\" + \" codigo_meta=\" + codigoMeta + \" and codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 842 */ boolean rta = this.dat.executeUpdate(s);\n/* */ \n/* */ \n/* */ \n/* 846 */ if (rta) {\n/* */ \n/* 848 */ s = \"update cal_plan_recursos_meta set estado='X', fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"'\" + \" where\" + \" codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 857 */ this.dat.executeUpdate(s);\n/* 858 */ Iterator iterator = arrRecursos.iterator();\n/* 859 */ while (iterator.hasNext()) {\n/* 860 */ Integer codigo = (Integer)iterator.next();\n/* 861 */ crearRecurso(codigoCiclo, codigoPlan, codigoMeta, codigo.intValue(), \"A\", usuarioModificacion);\n/* */ } \n/* */ \n/* 864 */ s = \"delete from cal_plan_recursos_meta where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and estado='X'\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 870 */ this.dat.executeUpdate(s);\n/* */ \n/* 872 */ s = \"update cal_plan_responsables_meta set estado='X', fecha_modificacion=\" + Utilidades.getFechaBD() + \",\" + \" usuario_modificacion='\" + usuarioModificacion + \"'\" + \" where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 880 */ this.dat.executeUpdate(s);\n/* */ \n/* 882 */ Iterator iterator2 = arrResponsables.iterator();\n/* 883 */ while (iterator2.hasNext()) {\n/* 884 */ Integer codigo = (Integer)iterator2.next();\n/* 885 */ crearResponsable(codigoCiclo, codigoPlan, codigoMeta, codigo.intValue(), \"A\", usuarioModificacion);\n/* */ } \n/* */ \n/* 888 */ s = \"delete from cal_plan_responsables_meta where codigo_ciclo=\" + codigoCiclo + \" and codigo_plan=\" + codigoPlan + \" and codigo_meta=\" + codigoMeta + \" and estado='X'\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 895 */ this.dat.executeUpdate(s);\n/* */ } \n/* */ \n/* */ \n/* 899 */ return rta;\n/* */ }\n/* 901 */ catch (Exception e) {\n/* 902 */ e.printStackTrace();\n/* 903 */ Utilidades.writeError(\"CalMetasDAO:modificarRegistro \", e);\n/* */ \n/* 905 */ return false;\n/* */ } \n/* */ }",
"@Test\r\n public void updateCarritoDeComprasTest() {\r\n System.out.println(\"up voy\"+data);\r\n CarritoDeComprasEntity entity = data.get(0);\r\n PodamFactory factory = new PodamFactoryImpl();\r\n CarritoDeComprasEntity newEntity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n\r\n newEntity.setId(entity.getId());\r\n\r\n carritoDeComprasPersistence.update(newEntity);\r\n\r\n CarritoDeComprasEntity resp = em.find(CarritoDeComprasEntity.class, entity.getId());\r\n\r\n Assert.assertEquals(newEntity.getTotalCostDeCarritoCompras(), resp.getTotalCostDeCarritoCompras());\r\n \r\n }",
"@Test\n public void test2Update() {\n \n System.out.println(\"Prueba deSpecialityDAO\");\n SpecialityFactory factory = new MysqlSpecialityDAOFactry();\n SpecialityDAO dao = factory.create();\n assertEquals(dao.update(spec2,\"teleinformatica\"),1); \n }",
"public boolean atualizarSocio(Socio socio) {\n System.out.println(\"altualizarSocio\");\n // inicia a conexao com o Banco de dados chamando\n // a classe Conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando para inserir\");\n Statement stmt = null;\n try {\n stmt = connection.createStatement();\n\n //Inserir dados na tabela SOCIO!\n String sql = \"UPDATE socio SET cpfSocio = '\" + socio.getCpf() +\"',rgSocio = '\" + socio.getRg()\n +\"',matSocio = '\" + socio.getMatricula() +\"',sexoSocio = '\" + socio.getSexo() +\"',diaNascSocio = '\" + socio.getDia()\n +\"',mesNascSocio = '\" + socio.getMes() +\"',anoNascSocio = '\" + socio.getAno() +\"',enderecoSocio = '\" + socio.getEndereco()\n +\"',numEndSocio = '\" + socio.getNumEndereco() +\"',bairroSocio = '\" + socio.getBairro() +\"',cidadeSocio = '\" + socio.getCidade()\n +\"',estadoSocio = '\" + socio.getEstado() +\"',foneSocio = '\" + socio.getFone() +\"',celSocio = '\" + socio.getCel() +\"',emailSocio = '\" + socio.getEmail()\n +\"',blocoSocio = '\" + socio.getBloco() +\"',funcaoSocio = '\" + socio.getFuncao() +\"' WHERE nomeSocio = '\" + socio.getNome() + \"'\";\n\n System.out.println(\"SQL: \" + sql);\n System.out.println(\"Dados do Socio alterados com sucesso\");\n stmt.executeUpdate(sql);\n\n String sql2 = \"UPDATE socio SET nomeSocio = '\" + socio.getNome() +\"' WHERE cpfSocio = '\" + socio.getCpf() + \"'\";\n System.out.println(\"SQL: \" + sql);\n System.out.println(\"Nome do socio alterado com sucesso\");\n stmt.executeUpdate(sql2);\n\n return true;\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n return false;\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n }",
"public void salvarProdutos(Produto produto){\n }",
"public static void updateActividadUsuario(Actividad a) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n int diaInicio, mesInicio, anoInicio, diaFin, mesFin, anoFin;\n //int[] fechaInicio = getFechaInt(a.getFechaInicio());\n diaInicio = Integer.valueOf(a.getFechaInicio().substring(8));\n mesInicio = Integer.valueOf(a.getFechaInicio().substring(5,7));\n anoInicio = Integer.valueOf(a.getFechaInicio().substring(0,4));\n // int[] fechaFin = getFechaInt(a.getFechaFin());\n diaFin = Integer.valueOf(a.getFechaFin().substring(8));\n mesFin = Integer.valueOf(a.getFechaFin().substring(5,7));\n anoFin = Integer.valueOf(a.getFechaFin().substring(0,4));\n String query = \"UPDATE Actividades SET login=?, descripcion=?, rol=?, duracionEstimada=?, diaInicio=?, mesInicio=?, anoInicio=?, diaFin=?, mesFin=?, anoFin=?, duracionReal=?, estado=?, idFase=? WHERE id=?\";\n try {\n ps = connection.prepareStatement(query);\n ps.setString(1, a.getLogin());\n ps.setString(2, a.getDescripcion());\n ps.setString(3, a.getRolNecesario());\n ps.setInt(4, a.getDuracionEstimada());\n ps.setInt(5, diaInicio);\n ps.setInt(6, mesInicio);\n ps.setInt(7, anoInicio);\n ps.setInt(8, diaFin);\n ps.setInt(9, mesFin);\n ps.setInt(10, anoFin);\n ps.setInt(11, a.getDuracionReal());\n ps.setString(12, String.valueOf(a.getEstado()));\n ps.setInt(13, a.getIdFase());\n ps.setInt(14, a.getIdentificador());\n ps.executeUpdate();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void actualizaAntNoPato(String id_antNP, String religion_antNP, String lugarNaci_antNP, String estaCivil_antNP, \n String escolaridad_antNP, String higiene_antNP, String actividadFisica_antNP, int frecuencia_antNP, \n String sexualidad_antNP, int numParejas_antNP, String sangre_antNP, String alimentacion_antNP, String id_paciente,\n boolean escoCompInco_antNP, String frecVeces_antNP, Connection conex){\n String sqlst = \" UPDATE `antnopato`\\n\" +\n \"SET\\n\" +\n \"`id_antNP` = ?,\\n\" +\n \"`religion_antNP` = ?,\\n\" +\n \"`lugarNaci_antNP` = ?,\\n\" +\n \"`estaCivil_antNP` = ?,\\n\" +\n \"`escolaridad_antNP` = ?,\\n\" +\n \"`higiene_antNP` = ?,\\n\" +\n \"`actividadFisica_antNP` = ?,\\n\" +\n \"`frecuencia_antNP` = ?,\\n\" +\n \"`sexualidad_antNP` = ?,\\n\" +\n \"`numParejas_antNP` = ?,\\n\" +\n \"`sangre_antNP` = ?,\\n\" +\n \"`alimentacion_antNP` = ?,\\n\" +\n \"`id_paciente` = ?,\\n\" +\n \"`escoCompInco_antNP` = ?,\\n\" +\n \"`frecVeces_antNP` = ?\\n\" +\n \"WHERE `id_antNP` = ?;\";\n try(PreparedStatement sttm = conex.prepareStatement(sqlst)) {\n conex.setAutoCommit(false);\n sttm.setString (1, id_antNP);\n sttm.setString (2, religion_antNP);\n sttm.setString (3, lugarNaci_antNP);\n sttm.setString (4, estaCivil_antNP);\n sttm.setString (5, escolaridad_antNP);\n sttm.setString (6, higiene_antNP);\n sttm.setString (7, actividadFisica_antNP);\n sttm.setInt (8, frecuencia_antNP);\n sttm.setString (9, sexualidad_antNP);\n sttm.setInt (10, numParejas_antNP);\n sttm.setString (11, sangre_antNP);\n sttm.setString (12, alimentacion_antNP);\n sttm.setString (13, id_paciente);\n sttm.setBoolean (14, escoCompInco_antNP);\n sttm.setString (15, frecVeces_antNP);\n sttm.setString (16, id_antNP);\n sttm.addBatch();\n sttm.executeBatch();\n conex.commit();\n aux.informacionUs(\"Antecedentes personales no patológicos modificados\", \n \"Antecedentes personales no patológicos modificados\", \n \"Antecedentes personales no patológicos han sido modificados exitosamente en la base de datos\");\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"@Test\r\n public void testUpdate() throws Exception {\r\n MonitoriaEntity entity = data.get(0);\r\n PodamFactory pf = new PodamFactoryImpl();\r\n MonitoriaEntity nuevaEntity = pf.manufacturePojo(MonitoriaEntity.class);\r\n nuevaEntity.setId(entity.getId());\r\n persistence.update(nuevaEntity);\r\n// Assert.assertEquals(nuevaEntity.getName(), resp.getName());\r\n }",
"public void executeUpdate();",
"public void savePosPay(PosPay posPay) throws DataAccessException;",
"public String save() {\r\n\t\ttry {\r\n\r\n\t\t\tif (obs != null && !obs.trim().isEmpty()) {\r\n\t\t\t\tconcurso.setObservacionReserva(obs);\r\n\t\t\t\tconcursoHome.setInstance(concurso);\r\n\t\t\t\tString res = concursoHome.update();\r\n\t\t\t}\r\n\r\n\t\t\tfor (PlantaCargoDetDTO dto : listaPlantaCargoDto) {\r\n\r\n\t\t\t\tif (dto.getReservar()) {\r\n\t\t\t\t\tEstadoDet est = buscarEstado(\"en reserva\");\r\n\t\t\t\t\tif (!existeEnDetalle(dto.getPlantaCargoDet(), est)) {\r\n\t\t\t\t\t\t// buscar\r\n\r\n\t\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\t\tp.setActivo(true);\r\n\t\t\t\t\t\tp.setFechaAlta(new Date());\r\n\t\t\t\t\t\tp.setUsuAlta(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\tp.setNroOrden(2);\r\n\t\t\t\t\t\tp.setPlantaCargoDet(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\t\tif (est != null)\r\n\t\t\t\t\t\t\tp.setEstadoDet(est);\r\n\t\t\t\t\t\tp.setConcurso(concursoHome.getInstance());\r\n\t\t\t\t\t\tem.persist(p);\r\n\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(est.getEstadoCab());\r\n\t\t\t\t\t\tplanta.setEstadoDet(est);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t/* Incidencia 1079 */\r\n\t\t\t\trefreshListaPuestoReservados();\r\n\t\t\t\t/**/\r\n\t\t\t\tEstadoCab estadoCab = obtenerEstadosCabecera(\"VACANTE\");\r\n\t\t\t\tif (esta(dto.getPlantaCargoDet())) {\r\n\t\t\t\t\tConcursoPuestoDet p = new ConcursoPuestoDet();\r\n\t\t\t\t\tp = recuperarConcurso(dto.getPlantaCargoDet());\r\n\r\n\t\t\t\t\tif (!dto.getReservar()) {\r\n\t\t\t\t\t\tif (p.getConcursoPuestoAgr() != null) {\r\n\t\t\t\t\t\t\tstatusMessages.clear();\r\n\t\t\t\t\t\t\tstatusMessages.add(Severity.ERROR,\r\n\t\t\t\t\t\t\t\t\t\"El puesto pertenece a un grupo\");\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * p.setActivo(true); p.setNroOrden(1);\r\n\t\t\t\t\t\t * p.setFechaMod(new Date());\r\n\t\t\t\t\t\t * p.setUsuMod(usuarioLogueado.getCodigoUsuario());\r\n\t\t\t\t\t\t * EstadoDet est = buscarEstado(\"libre\");\r\n\t\t\t\t\t\t * p.setEstadoDet(est); em.merge(p);\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tPlantaCargoDet planta = new PlantaCargoDet();\r\n\t\t\t\t\t\tplanta = dto.getPlantaCargoDet();\r\n\t\t\t\t\t\tplanta.setEstadoCab(estadoCab);\r\n\t\t\t\t\t\tplanta.setEstadoDet(null);\r\n\t\t\t\t\t\tem.merge(planta);\r\n\t\t\t\t\t\tif (!concurso\r\n\t\t\t\t\t\t\t\t.getDatosEspecificosTipoConc()\r\n\t\t\t\t\t\t\t\t.getDescripcion()\r\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(\r\n\t\t\t\t\t\t\t\t\t\tCONCURSO_INTERNO_INTERINSTITUCIONAL)\r\n\t\t\t\t\t\t\t\t&& planta.getPermanente())\r\n\t\t\t\t\t\t\treponerCategoriasController.reponerCategorias(p,\r\n\t\t\t\t\t\t\t\t\t\"PUESTO\", \"CONCURSO\");\r\n\t\t\t\t\t\tem.remove(p);\r\n\t\t\t\t\t\t// listaPlantaCargoDto.remove(dto);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t\tobs = null;\r\n\t\t\tem.flush();\r\n\t\t\tllenarListado1();\r\n\t\t\tstatusMessages.clear();\r\n\t\t\tstatusMessages.add(Severity.INFO, SeamResourceBundle.getBundle()\r\n\t\t\t\t\t.getString(\"GENERICO_MSG\"));\r\n\t\t\treturn \"persisted\";\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void actualizarLinComClienImp(LineaComercialClienteImportacionDTO linComCliImpDTO)throws SICException{\n\t\ttry {\n\t\t\tLogeable.LOG_SICV2.info(\"Metodo actualizarLinComClienImp \");\n\t\t\tLogeable.LOG_SICV2.info(\"Parametros : \");\n\t\t\tLogeable.LOG_SICV2.info(\"userId : \"+linComCliImpDTO.getUserId());\n\t\t\tLogeable.LOG_SICV2.info(\"estado : \"+linComCliImpDTO.getEstado());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoLineaComercial : \"+ linComCliImpDTO.getId().getCodigoLineaComercial());\n\t\t\tLogeable.LOG_SICV2.info(\"codigoClienteImportacion : \"+ linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\t\n\t\t\tStringBuilder query = new StringBuilder();\n\t\t\tQuery update;\n\t\t\t\t\n\t\t\thibernateH.getHibernateSession().clear();\n\t\t\t\t\n\t\t\tquery.append(\"update \").append(LineaComercialClienteImportacionDTO.class.getName()).append(\" d \")\n\t\t\t\t.append(\" set \")\n\t\t\t\t.append(\" d.fechaModificacion = CURRENT_TIMESTAMP, \")\n\t\t\t\t.append(\" d.estado = :pEstado, \")\n\t\t\t\t.append(\"d.idUsuarioModificacion = :pUsuarioModificacion \");\n\t\t\t\n\t\t\tquery.append(\" where \")\n\t\t\t\t.append(\" d.id.codigoLineaComercial = :pCodigoLineaComercial \");\n\t\t\t\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() != null){\n\t\t\t\tquery.append(\" and d.id.codigoClienteImportacion = :pCodigoClienteImportacion \");\n\t\t\t}else{\n\t\t\t\tquery.append(\" and d.estado = :pEstadoDiferente \");\n\t\t\t}\n\t\t\t\n\t\t\tupdate = hibernateH.getHibernateSession().createQuery(query.toString());\n\t\t\t\n\t\t\tupdate.setString(\"pUsuarioModificacion\", linComCliImpDTO.getUserId());\n\t\t\tupdate.setString(\"pEstado\",linComCliImpDTO.getEstado());\n\t\t\tupdate.setLong(\"pCodigoLineaComercial\", linComCliImpDTO.getId().getCodigoLineaComercial());\n\t\t\tif(linComCliImpDTO.getId().getCodigoClienteImportacion() != null){\n\t\t\t\tupdate.setLong(\"pCodigoClienteImportacion\",linComCliImpDTO.getId().getCodigoClienteImportacion());\n\t\t\t}else{\n\t\t\t\tupdate.setString(\"pEstadoDiferente\",(SICConstantes.ESTADO_ACTIVO_NUMERICO.equals(linComCliImpDTO.getEstado())?SICConstantes.ESTADO_INACTIVO_NUMERICO:SICConstantes.ESTADO_ACTIVO_NUMERICO));\n\t\t\t}\n\t\t\tupdate.executeUpdate();\t\n\t\t\t\n\t\t\t\n\t\t} catch (SICException e) {\n\t\t\tthrow new SICException(\"Error actualizarLinComClienImp: \",e);\n\t\t}\n\t}",
"public int modificarPresidente(int idpresi,int idcam,int idequipo, String nombre, String paterno,String materno,String dni,String fecNac,String fechaDirect,String telefono){\n sql=\"UPDATE presidente set idCampeonato='\"+idcam+\"', idEquipo='\"+idequipo+\"',Nombre_pres='\"+nombre+\"',Ap_presidente='\"+paterno+\"',Am_presidente='\"+materno+\"',Dni='\"+dni+\"',Fec_Nac='\"+fecNac+\"',Fecha_presidente='\"+fechaDirect+\"',Telefono='\"+telefono+\"' WHERE idPresidente='\"+idpresi+\"'\";\r\n \r\n try {\r\n cx = Conexion.coneccion();\r\n st = cx.createStatement();\r\n res = st.executeUpdate(sql);\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, \"Error: \"+e);\r\n }\r\n return res;\r\n }",
"public void update(ScahaDatabase _db) throws SQLException {\n\t\t// Lets update the person here.\r\n\t\t//\r\n\t\tsuper.update(_db);\r\n\t\t\r\n\t\t//\r\n\t\t// now.. we have to update the pertinat parts of the player table \r\n\t\t// to add the player extension data..\r\n\t\t\r\n\t\t// \r\n\t\t// is it an object that is not in the database yet..\r\n\t\t//\r\n\t\t//\r\n\t\tCallableStatement cs = _db.prepareCall(\"call scaha.updateManager(?,?,?,?)\");\r\n\t\t\r\n\t\t//LOGGER.info(\"HERE IS THE PERSON ID for manager:\" + super.ID);\r\n\t\t//LOGGER.info(\"HERE IS THE manager ID for manager:\" + this.ID);\r\n\t\t\r\n\t\tint i = 1;\r\n\t\tcs.registerOutParameter(1, java.sql.Types.INTEGER);\r\n\t\tcs.setInt(i++, this.ID);\r\n\t\tcs.setInt(i++, super.ID);\r\n\t\tcs.setInt(i++,1);\r\n\t\tcs.setString(i++,null);\r\n\t\tcs.execute();\r\n\t\t\t\t\r\n\t\t//\r\n\t\t// Update the new ID from the database...\r\n\t\t//\r\n\t\tthis.ID = cs.getInt(1);\r\n\t\tcs.close();\r\n\t\t//LOGGER.info(\"HERE IS THE New Manager ID:\" + this.ID);\r\n\t\t\r\n\t}",
"public void testUpdateProjeto() {\n Projeto p = ProjetoDAO.getProjetoByNome(\"proj4\");\n p.setDuracao(100);\n ProjetoDAO.updateProjeto(p);\n Projeto aux = ProjetoDAO.getProjetoByNome(\"proj4\");\n assertEquals(100, aux.getDuracao());\n }",
"void persiste(UsuarioDetalle usuarioDetalle);",
"public static String altaLogico(int id){\n String query=\"UPDATE empleado SET activo=1 WHERE idEmpleado=\"+id;\n return query;\n}",
"public interface PrestamoDAO {\n ArrayList<Prestamo> listarPrestamos(Prestamo prestamo) throws SQLException;\n int insertarPrestamo(Prestamo prestamo);\n}",
"public void update(Empresa p) throws ClassNotFoundException {\r\n java.sql.Connection con = ConnectionFactory.getConnection();\r\n PreparedStatement stmt = null;\r\n try {\r\n stmt = con.prepareStatement(\"UPDATE tbempresas SET nomeEmp = ? WHERE codEmp = ?\");\r\n\r\n stmt.setString(1, p.getNomeEmp());\r\n stmt.setInt(2, p.getCodEmp());\r\n stmt.executeUpdate();\r\n\r\n JOptionPane.showMessageDialog(null, \"Atualizado com sucesso!\");\r\n } catch (SQLException error) {\r\n System.out.print(\"Erro ao atualizar\" + error);\r\n } finally {\r\n ConnectionFactory.closeConnection(con, stmt);\r\n }\r\n }",
"@Test\n public void updateComentarioTest(){\n ComentarioEntity entity = data.get(0);\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity newEntity = factory.manufacturePojo(ComentarioEntity.class);\n newEntity.setId(entity.getId());\n comentarioPersistence.update(newEntity);\n \n ComentarioEntity respuesta = em.find(ComentarioEntity.class,entity.getId());\n \n Assert.assertEquals(respuesta.getNombreUsuario(), newEntity.getNombreUsuario());\n \n \n }",
"public void GuardarSerologia(RecepcionSero obj)throws Exception{\n Session session = sessionFactory.getCurrentSession();\n session.saveOrUpdate(obj);\n }",
"public interface IListasDAO {\n\n public void salvandoComplete();\n public void salvandoAssociar();\n}",
"@Override\r\n\tpublic void updateAd(EP par) {\n\t\tsession.update(par);//修改 \r\n\t\ttr.commit();//提交事务\r\n\t}",
"public interface ProfitprofitActionRuleDao extends EntityMybatisDao<ProfitprofitActionRule> {\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate);\n\n @Update(\"UPDATE profit_action_rule SET cal_rate=#{calRate},cal_type=#{calType} where section_id=#{sectionId}\")\n void updateProfitprofitActionRuleBySectionIdUpdateAalRateAndCalType(@Param(\"sectionId\") String sectionId,\n @Param(\"calRate\") String calRate, @Param(\"calType\") String calType);\n \n @Select(\"select * from profit_action_rule where section_id=#{sectionId}\")\n ProfitprofitActionRule selectProfitprofitActionRuleBySectionId(@Param(\"sectionId\") String\n sectionId);\n\n @Delete(\"delete from profit_action_rule where id =#{id}\")\n void deleteProfitActionRuleById(@Param(\"id\")Long id);\n\n @Delete(\"delete from profit_action_rule \")\n void deleteProfitActionRuleByAll();\n \n}",
"private void actualizarVentanaOperadores() throws SQLException {\n Sistema.getControladorVentanaOperadores().actualizarTablaOperadores(\"SELECT * FROM operador WHERE activo=TRUE ORDER BY id ASC;\");\n }",
"@Test\n public void updateTest() throws SQLException, IDAO.DALException {\n userDAO.create(user);\n user.setNavn(\"SørenBob\");\n user.setCpr(\"071199-4397\");\n user.setAktiv(false);\n user.setIni(\"SBO\");\n // Opdatere objektet i databasen, og sammenligner.\n userDAO.update(user);\n recivedUser = userDAO.get(-1);\n\n assertEquals(recivedUser.getId(), user.getId());\n assertEquals(recivedUser.getNavn(), user.getNavn());\n assertEquals(recivedUser.getIni(), user.getIni());\n assertEquals(recivedUser.getCpr(), user.getCpr());\n assertEquals(recivedUser.isAktiv(),user.isAktiv());\n }",
"public interface ProcesoMAEClasificacionClientesDAO extends DAO {\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacion(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion LOVE de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacionLove(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de datos de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeActualizarDatosClientes(Map criteria);\n\n\t/**Proceso q se encarga de ejecutar las validaciones de MAE\n\t * @param criteria\n\t */\n\tpublic void executeValidacionClientes(Map criteria);\n\n\t/**\n\t * Proceso que realiza la Inactivación de conultoras registradas \n\t * despues de dos capañasde creadas en el maestro\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeInactivarConsultora2campanas(Map criteria);\n}",
"@NotNull\n public Order doSave(@NotNull Order o) {\n try {\n Connection cn = ConPool.getConnection();\n PreparedStatement st;\n if (o.getOperator() != null) {\n if (o.getId() < 1) {\n st = cn.prepareStatement(\n \"INSERT INTO `order` (user, totalPrice, \"\n + \"numberOfProduct, date, operator) values (?,?,?,?,?);\",\n Statement.RETURN_GENERATED_KEYS\n );\n st.setString(1, o.getUser().getUsername());\n st.setDouble(2, o.getTotPrice());\n st.setInt(3, o.getNumberOfItems());\n st.setString(4, o.getData());\n st.setString(5, o.getOperator().getUsername());\n } else {\n st = cn.prepareStatement(\"INSERT INTO `order`( user, id,\"\n + \" totalprice, numberOfProduct, date, operator)\"\n + \" values (?,?,?,?,?,?);\");\n st.setString(1, o.getUser().getUsername());\n st.setInt(2, o.getId());\n st.setDouble(3, o.getTotPrice());\n st.setInt(4, o.getNumberOfItems());\n st.setString(5, o.getData());\n st.setString(6, o.getOperator().getUsername());\n }\n } else {\n if (o.getId() < 1) {\n st = cn.prepareStatement(\n \"INSERT INTO `order` (user, totalPrice, \"\n + \"numberOfProduct, date) values (?,?,?,?);\",\n Statement.RETURN_GENERATED_KEYS\n );\n st.setString(1, o.getUser().getUsername());\n st.setDouble(2, o.getTotPrice());\n st.setInt(3, o.getNumberOfItems());\n st.setString(4, o.getData());\n } else {\n st = cn.prepareStatement(\"INSERT INTO `order`( user, id,\"\n + \" totalprice, numberOfProduct, date)\"\n + \" values (?,?,?,?,?);\");\n st.setString(1, o.getUser().getUsername());\n st.setInt(2, o.getId());\n st.setDouble(3, o.getTotPrice());\n st.setInt(4, o.getNumberOfItems());\n st.setString(5, o.getData());\n }\n }\n\n st.executeUpdate();\n if (o.getId() < 1) {\n ResultSet rs = st.getGeneratedKeys();\n rs.next();\n o.setId(rs.getInt(1));\n }\n for (Product p : o.getAllProducts()) {\n if (p instanceof DigitalProduct) {\n st = cn.prepareStatement(\n \"INSERT INTO digitalpurchasing (digitalProduct, `order`, quantity) \"\n + \"VALUES (?,?, ?);\");\n st.setInt(1, p.getId());\n st.setInt(2, o.getId());\n st.setInt(3, o.getQuantitySingleProduct(p.getId(), p.getClass()));\n\n if (st.executeUpdate() != 1) {\n throw new RuntimeException(\"INSERT error.\");\n }\n } else if (p instanceof PhysicalProduct) {\n st = cn.prepareStatement(\n \"INSERT INTO physicalpurchasing (physicalProduct, `order`, quantity) \"\n + \"VALUES (?,?, ?);\");\n st.setInt(1, p.getId());\n st.setInt(2, o.getId());\n st.setInt(3, o.getQuantitySingleProduct(p.getId(), p.getClass()));\n if (st.executeUpdate() != 1) {\n throw new RuntimeException(\"INSERT error.\");\n }\n }\n }\n st.close();\n cn.close();\n return o;\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }",
"public void salida(String k_idparqueadero) throws CaException {\n try {\n String strSQL = \"UPDATE servicio SET f_fycsalida=?, q_valorapagar=? WHERE k_idservicio =?\";\n Connection conexion = ServiceLocator.getInstance().tomarConexion();\n PreparedStatement prepStmt = conexion.prepareStatement(strSQL);\n prepStmt.setDate(1, Date.valueOf(servicio.getF_fycsalida()));\n prepStmt.setInt(2, servicio.getQ_valorapagar());\n prepStmt.setInt(3, servicio.getK_idservicio());\n prepStmt.executeUpdate();\n prepStmt.close();\n ServiceLocator.getInstance().commit();\n } catch (SQLException e) {\n throw new CaException(\"ServicioDAO\", \"No pudo actualizar el servicio\" + e.getMessage());\n } finally {\n ServiceLocator.getInstance().liberarConexion();\n }\n this.actualizarDatosSalida(String.valueOf(servicio.getK_idservicio()), k_idparqueadero);\n }",
"public void salvarProfessor(){\n \n this.professor.setName(nome);\n this.professor.setEmail(email);\n this.professor.setSenha(senha);\n\n try {\n \n this.professorServico.persistence(this.professor);\n \n } catch (CadastroUsuarioException ex) {\n \n //Precisa tratar aqui!\n }\n \n setNome(null);\n setEmail(null);\n setSenha(null);\n }",
"public void salvar() {\n\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Salvar(cliente);\n\n cliente = new Cliente();\n//mesagem para saber se foi salvo com sucesso\n JSFUtil.AdicionarMensagemSucesso(\"Clente salvo com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n }",
"@Override\n\t\tprotected void postUpdate(EspStatusDTO t) throws SQLException {\n\t\t\t\n\t\t}",
"public void save() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.save(this);\r\n\t}",
"public abstract void actualizarSubproducto(EntityManager sesion, Subproducto subproducto);",
"public int ModificarAnuncioTematico(AnuncioDTO anuncioDTO){\n int status=0;\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"modificar.AnuncioTematico\"));\n ps.setString(1, anuncioDTO.getTitulo());\n ps.setString(2, anuncioDTO.getCuerpo());\n ps.setString(3, anuncioDTO.getEstadoAnuncio().toString()); \n String intereses=\"\"; \n \n for(String interes : anuncioDTO.getTemas()){\n intereses+=interes.toLowerCase()+\",\";\n }\n \n if(intereses.length()>0){\n \n intereses=intereses.substring(0,intereses.length()-1);\n }\n \n ps.setString(4, intereses);\n\n ps.setInt(5, anuncioDTO.getId());\n\n status=ps.executeUpdate();\n\n BorrarAnuncioDestinatarios(anuncioDTO.getId());\n\n PreparedStatement psAddDestinatario = conect.prepareStatement(sqlProp.getProperty(\"insertar.Destinatario\"));\n psAddDestinatario.setInt(1, anuncioDTO.getId());\n for(String destinatario : anuncioDTO.getDestinatarios()){\n psAddDestinatario.setString(2, destinatario);\n ps.executeUpdate();\n } \n\n }catch(Exception e){\n e.printStackTrace();\n }\n\n return status;\n }"
] | [
"0.72311306",
"0.71023977",
"0.69868183",
"0.68827474",
"0.67558783",
"0.6734889",
"0.66527027",
"0.6581862",
"0.6574699",
"0.6564275",
"0.65516204",
"0.65480524",
"0.65008897",
"0.6492828",
"0.6473512",
"0.64615244",
"0.64449453",
"0.642957",
"0.64281696",
"0.63876396",
"0.6367897",
"0.63625723",
"0.63582766",
"0.63414276",
"0.6339804",
"0.6339494",
"0.6328856",
"0.63244176",
"0.6298703",
"0.6298401",
"0.6291882",
"0.6286467",
"0.62685597",
"0.6253172",
"0.6252663",
"0.62502223",
"0.62479866",
"0.6244057",
"0.62326336",
"0.62223375",
"0.62191063",
"0.621814",
"0.621621",
"0.6214311",
"0.6214101",
"0.6211387",
"0.6210314",
"0.6210089",
"0.62099266",
"0.62000674",
"0.6199303",
"0.6187912",
"0.6183309",
"0.61824507",
"0.6181527",
"0.61798275",
"0.6170488",
"0.61651945",
"0.61637974",
"0.6162284",
"0.61616397",
"0.6129846",
"0.61267537",
"0.61245686",
"0.6124469",
"0.6123117",
"0.6122469",
"0.61217797",
"0.6121205",
"0.6121156",
"0.6114206",
"0.6108188",
"0.6101306",
"0.6098546",
"0.6084908",
"0.60818976",
"0.60782367",
"0.6077081",
"0.6064901",
"0.6062898",
"0.60563093",
"0.6046652",
"0.60438377",
"0.6037538",
"0.6034452",
"0.60341144",
"0.6014246",
"0.60118026",
"0.60112554",
"0.6010453",
"0.6008452",
"0.6007865",
"0.6004313",
"0.6000383",
"0.59998626",
"0.5996481",
"0.5992969",
"0.5992424",
"0.5990028",
"0.59884816"
] | 0.6903216 | 3 |
llama al DAO para eliminar un procedimiento | public void eliminar(Procedimiento procedimiento) {
IProcedimientoDao dao = new ProcedimientoDaoImpl();
dao.eliminarProcedimiento(procedimiento);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public void eliminar(final Empleat entitat) throws UtilitatPersistenciaException {\r\n JdbcPreparedDao jdbcDao = new JdbcPreparedDao() {\r\n\r\n @Override\r\n public void setParameter(PreparedStatement pstm) throws SQLException {\r\n int field=0;\r\n pstm.setInt(++field, entitat.getCodi());\r\n }\r\n\r\n @Override\r\n public String getStatement() {\r\n return \"delete from Empleat where codi = ?\";\r\n }\r\n };\r\n UtilitatJdbcPlus.executar(con, jdbcDao);\r\n }",
"void eliminar(PK id);",
"public void eliminar(Periodo periodo)\r\n/* 27: */ {\r\n/* 28: 53 */ this.periodoDao.eliminar(periodo);\r\n/* 29: */ }",
"public void eliminar() {\n try {\n Dr_siseg_usuarioBean usuario = new Dr_siseg_usuarioBean();\n FacesContext facesContext = FacesContext.getCurrentInstance();\n usuario = (Dr_siseg_usuarioBean) facesContext.getExternalContext().getSessionMap().get(\"usuario\");\n\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n apelacionesDao.IME_APELACIONES(3, this.Selected);\n\n BitacoraSolicitudDao bitacoraSolicitudDao = new BitacoraSolicitudDao();//INSERTA EL MOVIMIENTO EN LA BITACORA\n BitacoraSolicitudBean bitacoraSolicitudBean = new BitacoraSolicitudBean();\n bitacoraSolicitudBean.setBit_sol_id(this.Selected.getApel_sol_numero());\n bitacoraSolicitudBean.setUsuarioBean(usuario);\n bitacoraSolicitudBean.setBit_tipo_movimiento(\"2\");\n bitacoraSolicitudBean.setBit_detalle(\"Fue eliminada la apelacion\");\n bitacoraSolicitudDao.dmlDr_regt_bitacora_solicitud(bitacoraSolicitudBean);\n\n this.Listar();\n addMessage(\"Eliminado Exitosamente\", 1);\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n addMessage(\"Se produjo un error al eliminar el registro, contacte al administrador del sistema\", 2);\n }\n }",
"@Override\n public void eliminarPropiedad(String pIdPropiedad) {\n try {\n bdPropiedad.manipulationQuery(\"DELETE FROM PROPIEDAD WHERE ID_PROPIEDAD = '\" + pIdPropiedad + \"'\");\n } catch (SQLException ex) {\n Logger.getLogger(Propiedad.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public void eliminar(Producto producto) throws IWDaoException;",
"public void eliminar(Provincia provincia) throws BusinessErrorHelper;",
"@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}",
"public void eliminarIntemediaPersonaMovilidad(Movilidad mov){\n try{\n String query = \"DELETE FROM PERSONA_MOVILIDAD WHERE ID_MOVILIDAD = \"+ mov.getIdMovilidad();\n Query q = getSessionFactory().getCurrentSession().createSQLQuery(query);\n q.executeUpdate();\n }catch(Exception e){\n e.printStackTrace();\n }\n \n }",
"public void eliminar(){\n conexion = base.GetConnection();\n try{\n PreparedStatement borrar = conexion.prepareStatement(\"DELETE from usuarios where Cedula='\"+this.Cedula+\"'\" );\n \n borrar.executeUpdate();\n // JOptionPane.showMessageDialog(null,\"borrado\");\n }catch(SQLException ex){\n System.err.println(\"Ocurrió un error al borrar: \"+ex.getMessage());\n \n }\n }",
"int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;",
"public void eliminarPaciente(String codigo)\n {\n try\n {\n int rows_update=0;\n PreparedStatement pstm=con.conexion.prepareStatement(\"DELETE paciente.* FROM paciente WHERE IdPaciente='\"+codigo+\"'\");\n rows_update=pstm.executeUpdate();\n \n if (rows_update==1)\n {\n JOptionPane.showMessageDialog(null,\"Registro eliminado exitosamente\");\n }\n else\n {\n JOptionPane.showMessageDialog(null,\"No se pudo eliminar el registro, verifique datos\");\n con.desconectar();\n }\n }\n catch (SQLException e)\n {\n JOptionPane.showMessageDialog(null,\"Error \"+e.getMessage()); \n }\n }",
"@Override\n public void excluir(Pessoa pessoa) {\n String sql = \"DELETE FROM pessoa WHERE uuid=?\";\n try {\n this.conexao = Conexao.abrirConexao();\n PreparedStatement statement = conexao.prepareStatement(sql);\n statement.setLong(1, pessoa.getId());\n statement.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(PessoasJDBC.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n Conexao.fecharConexao(conexao);\n }\n\n }",
"public void EliminarPrestamo(Integer idPrestamo) {\n this.conexion.ConectarBD();\n String consulta = \"delete from prestamos where IdPrestamo = ?\";\n try {\n this.pstm = this.conexion.getConexion().prepareStatement(consulta);\n //Indicamos los parametros del delete\n this.pstm.setInt(1, idPrestamo);\n //Ejecutamos la consulta\n int res = pstm.executeUpdate();\n } catch (SQLException e) { \n throw new MisException(\"Error al eliminar un Prestamo.\\n\"+e.toString());\n //System.out.println(\"Error al eliminar un Libro.\");\n } catch (Exception e) {\n throw new MisException(\"Error.\\n\"+e.toString());\n //e.printStackTrace();\n }\n \n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n }",
"public static int delete(Periode p){ \n int status=0; \n try{ \n //membuka koneksi\n Connection con=Koneksi.openConnection(); \n //melakukan query database untuk menghapus data berdasarkan id atau primary key\n PreparedStatement ps=con.prepareStatement(\"delete from periode where id=?\"); \n ps.setInt(1,p.getId()); \n status=ps.executeUpdate(); \n }catch(Exception e){System.out.println(e);} \n\n return status; \n }",
"private void excluir(String text) { \n try{\n //Variaveis de sessao\n Session s = HibernateUtil.getSessionFactory().openSession();\n s.beginTransaction();\n //sql \n Query q = s.createSQLQuery(\"delete from estacionamento where placa = \"+text);\n //execulta e grava\n q.executeUpdate();\n s.getTransaction().commit();\n \n //exeção //nao conectou // erro\n }catch(HibernateException e){\n JOptionPane.showConfirmDialog(null, \"erro :\"+e );\n }\n \n \n \n \n }",
"@Override\n\tpublic boolean eliminar(Connection connection, Object DetalleSolicitud) {\n\t\tString query = \"DELETE FROM detallesolicitudes WHERE sysPK = ?\";\n\t\ttry {\t\n\t\t\tDetalleSolicitud detalleSolicitud = (DetalleSolicitud)DetalleSolicitud;\n\t\t\tPreparedStatement preparedStatement = (PreparedStatement) connection.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, detalleSolicitud.getSysPk());\n\t\t\tpreparedStatement.execute();\n\t\t\treturn true;\n\t\t} catch (SQLException e) {\n\t\t\tNotificacion.dialogoException(e);\n\t\t\treturn false;\n\t\t}//FIN TRY/CATCH\t\n\t}",
"@Query(\"delete from Asignatura \")\n void borrarAsignaturas();",
"public void eliminar(String sentencia){\n try {\n Statement stmt = Conexion.getInstancia().createStatement();\n stmt.executeUpdate(sentencia);\n }\n catch (Exception ex){\n ex.printStackTrace();\n }\n }",
"@Override\n public void delete(Promocion prm) {\n promocionRepository.delete(prm);\n }",
"int deleteByExample(CTipoComprobanteExample example) throws SQLException;",
"public void eliminar(Dia dia) {\n Session session = sessionFactory.openSession();\n //la transaccion a relizar\n Transaction tx = null;\n try {\n tx = session.beginTransaction();\n //eliminamos el Dia\n session.delete(dia);\n \n tx.commit();\n }\n catch (Exception e) {\n //Se regresa a un estado consistente \n if (tx!=null){ \n tx.rollback();\n }\n e.printStackTrace(); \n }\n finally {\n //cerramos siempre la sesion\n session.close();\n }\n }",
"public void elimina(DTOAcreditacionGafetes acreGafete) throws Exception;",
"int deleteByPrimaryKey(String idTipoPersona) throws SQLException;",
"public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}",
"public RespuestaBD eliminarRegistro(int codigoFlujo, int secuencia) {\n/* 296 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* */ try {\n/* 299 */ String s = \"delete from wkf_detalle where codigo_flujo=\" + codigoFlujo + \" and secuencia=\" + secuencia + \"\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* 304 */ rta = this.dat.executeUpdate2(s);\n/* */ }\n/* 306 */ catch (Exception e) {\n/* 307 */ e.printStackTrace();\n/* 308 */ Utilidades.writeError(\"FlujoDetalleDAO:eliminarRegistro \", e);\n/* 309 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 311 */ return rta;\n/* */ }",
"@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}",
"public boolean eliminarRegistro(int codigoCiclo, int codigoPlan, int codigoMeta) {\n/* */ try {\n/* 484 */ String s = \"delete from cal_plan_metas\";\n/* 485 */ s = s + \" where codigo_ciclo=\" + codigoCiclo;\n/* 486 */ s = s + \" and codigo_plan=\" + codigoPlan;\n/* 487 */ s = s + \" codigo_meta=\" + codigoMeta;\n/* 488 */ return this.dat.executeUpdate(s);\n/* */ \n/* */ }\n/* 491 */ catch (Exception e) {\n/* 492 */ e.printStackTrace();\n/* 493 */ Utilidades.writeError(\"CalPlanMetasFactory:eliminarRegistro\", e);\n/* */ \n/* 495 */ return false;\n/* */ } \n/* */ }",
"public void eliminar(Producto producto) throws BusinessErrorHelper;",
"@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 static void removeOnePayment(Payment pagamento) throws ClassNotFoundException{\r\n\t\t\r\n\t\t//Deletion occurs in table \"metododipagamento\"\r\n \t//username:= postgres\r\n \t//password:= effe\r\n \t//Database name:=strumenti_database\r\n \t\r\n \tClass.forName(\"org.postgresql.Driver\");\r\n \t\r\n \ttry (Connection con = DriverManager.getConnection(JDBC_URL, JDBC_USERNAME, JDBC_PASSWORD)){\r\n \t\t\r\n \t\ttry (PreparedStatement pst = con.prepareStatement(\r\n \t\t\t\t\"DELETE FROM \" + NOME_TABELLA + \" \"\r\n \t\t\t\t+ \"WHERE cliente = ? AND \"\r\n \t\t\t\t+ \"nomemetodo = ? AND \"\r\n \t\t\t\t+ \"credenziali = ?\")) {\r\n \t\t\t\r\n \t\t\tpst.setString(1, pagamento.getUserMailFromPayment());\r\n \t\t\tpst.setString(2, pagamento.getNomeMetodo());\r\n \t\t\tpst.setString(3, pagamento.getCredenziali());\r\n \t\t\t\r\n \t\t\tint n = pst.executeUpdate();\r\n \t\t\tSystem.out.println(\"Rimosse \" + n + \" righe da tabella \" + NOME_TABELLA + \": \" + pagamento.getUserMailFromPayment());\r\n \t\t\t\r\n \t\t} catch (SQLException e) {\r\n \t\t\tSystem.out.println(\"Errore durante cancellazione dati: \" + e.getMessage());\r\n \t\t}\r\n \t\t\r\n \t} catch (SQLException e){\r\n \t\tSystem.out.println(\"Problema durante la connessione iniziale alla base di dati: \" + e.getMessage());\r\n \t}\r\n\t\t\r\n\t}",
"public String eliminarProgramaPeriodoDesarrollo_action()throws SQLException\n {\n mensaje=\"\";\n for(ProgramaProduccionPeriodo bean:programaProduccionPeriodoDesarrolloList)\n {\n if(bean.getChecked())\n {\n try\n {\n con = Util.openConnection(con);\n con.setAutoCommit(false);\n String consulta = \"select count(*) as contLotes\"+\n \" from PROGRAMA_PRODUCCION p where p.COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta verificar que el programa no tenga registrado lotes \"+consulta);\n Statement st=con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);\n ResultSet res=st.executeQuery(consulta);\n res.next();\n PreparedStatement pst=null;\n if(res.getInt(\"contLotes\")>0)\n {\n mensaje=\"No se puede eliminar el Programa de Produccion porque tiene registrado \"+res.getInt(\"contLotes\")+\" lotes\";\n }\n else\n {\n consulta=\"delete PROGRAMA_PRODUCCION_PERIODO where COD_PROGRAMA_PROD='\"+bean.getCodProgramaProduccion()+\"'\";\n LOGGER.debug(\"consulta delete programa produccion periodo \"+consulta);\n pst=con.prepareStatement(consulta);\n if(pst.executeUpdate()>0)LOGGER.info(\"se elimino el programa de produccion periodo\");\n mensaje=\"1\";\n }\n con.commit();\n\n if(pst!=null)pst.close();\n con.close();\n }\n catch (SQLException ex)\n {\n con.rollback();\n con.close();\n mensaje=\"Ocurrio un error al momento de eliminar el programa periodo, intente de nuevo\";\n LOGGER.warn(\"error\", ex);\n }\n }\n }\n if(mensaje.equals(\"1\"))\n {\n this.cargarProgramaProduccionPeriodoDesarrollo_action();\n }\n return null;\n }",
"public boolean eliminarLoteria(int codigo) {\n\n String instruccion = \"delete from loteria where codigo =\" + codigo;\n boolean val = false;\n PreparedStatement pre;\n Connection con = null;\n try {\n con = Recurso.Conexion.getPool().getDataSource().getConnection();\n pre = con.prepareStatement(instruccion);\n pre.execute();\n val = true;\n } catch (SQLException ex) {\n ex.printStackTrace();\n\n } finally {\n if (con != null) {\n try {\n con.close();\n } catch (SQLException ex) {\n Logger.getLogger(GestorLoteria.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n return val;\n }\n\n }",
"public void delete(TipologiaStrutturaPk pk) throws TipologiaStrutturaDaoException;",
"public void eliminar(Maquina maquina)\r\n/* 24: */ {\r\n/* 25: 52 */ this.maquinaDao.eliminar(maquina);\r\n/* 26: */ }",
"public void vaciarCarrito() {\r\n String sentSQL = \"DELETE from carrito\";\r\n try {\r\n Statement st = conexion.createStatement();\r\n st.executeUpdate(sentSQL);\r\n st.close();\r\n LOG.log(Level.INFO,\"Carrito vaciado\");\r\n } catch (SQLException e) {\r\n // TODO Auto-generated catch block\r\n \tLOG.log(Level.WARNING,e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\ttab_cuenta.eliminar();\r\n\t}",
"public void eliminar(){\n SQLiteDatabase db = conn.getWritableDatabase();\n String[] parametros = {cajaId.getText().toString()};\n db.delete(\"personal\", \"id = ?\", parametros);\n Toast.makeText(getApplicationContext(), \"Se eliminó el personal\", Toast.LENGTH_SHORT).show();\n db.close();\n }",
"public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);",
"@Override\n\tpublic MensajeBean elimina(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.elimina(nuevo);\n\t}",
"public void eliminar(CategoriaArticuloServicio categoriaArticuloServicio)\r\n/* 24: */ {\r\n/* 25:53 */ this.categoriaArticuloServicioDao.eliminar(categoriaArticuloServicio);\r\n/* 26: */ }",
"@Override\n public void removeFromDb() {\n }",
"public void elimina(Long id) {\n\n final EntityManager em = getEntityManager();\n\n try {\n\n final EntityTransaction tx = em.getTransaction();\n\n tx.begin();\n\n // Busca un conocido usando su llave primaria.\n\n final Conocido modelo = em.find(Conocido.class, id);\n\n if (modelo != null) {\n\n /* Si la referencia no es nula, significa que el modelo se encontró la\n\n * referencia no es nula y se elimina. */\n\n em.remove(modelo);\n\n }\n\n tx.commit();\n\n } finally {\n\n em.close();\n\n }\n\n }",
"public void deleteIscrizione() throws SQLException {\r\n\r\n\t\tPreparedStatement pstmt = null;\r\n\r\n\t\ttry {\r\n\t\t\tpstmt = con.prepareStatement(STATEMENTDEL);\r\n\t\t\t\r\n\t\t\tpstmt.setString(1, i.getGiocatore());\r\n\t\t\tpstmt.setInt(2, i.getTorneo());\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tpstmt.execute();\r\n\r\n\t\t} finally {\r\n\t\t\tif (pstmt != null) {\r\n\t\t\t\tpstmt.close();\r\n\t\t\t}\r\n\r\n\t\t\tcon.close();\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\tpublic boolean delete(Pilote obj) {\r\n\t\tboolean succes=true;\r\n\t\tString req = \"delete from \" + TABLE + \" where numPil= ?\" + \";\";\r\n\t\tPreparedStatement pst;\r\n\t\ttry {\r\n\t\t\tpst = Connexion.getInstance().prepareStatement(req);\r\n\t\t\tpst.setInt(1, obj.getNumPil());\r\n\t\t\tpst.executeUpdate();\r\n\r\n\r\n\t\t} catch (SQLException e) {\r\n\t\t\tsucces=false;\r\n\t\t\tSystem.out.println(\"Echec de la tentative delete pilote : \" + e.getMessage()) ;\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\treturn succes;\r\n\t}",
"@Override\n\tpublic void eliminar(Object T) {\n\t\tSeccion seccionE= (Seccion)T;\n\t\tif(seccionE!=null){\n\t\t\ttry{\n\t\t\tString insertTableSQL = \"update seccion set estatus=?\" +\"where codigo=? and estatus='A'\";\n\t\t\tPreparedStatement preparedStatement = conexion.prepareStatement(insertTableSQL);\n\t\t\tpreparedStatement.setString(1, \"I\");\n\t\t\tpreparedStatement.setString(2, seccionE.getCodigo());\n\t\t\tpreparedStatement.executeUpdate();\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(\"No se elimino el registro\");\n\t\t}\n\t\tSystem.out.println(\"Eliminacion exitosa\");\n\t}\n\n\t}",
"@Transactional\n void remove(DataRistorante risto);",
"public void eliminarEmpleado(CLEmpleado cl) throws SQLException{\r\n String sql = \"{CALL sp_eliminarEmpleado(?)}\";\r\n \r\n try{\r\n ps = cn.prepareCall(sql);\r\n ps.setInt(1, cl.getIdEmpleado());\r\n ps.execute();\r\n \r\n }catch(SQLException e){\r\n JOptionPane.showMessageDialog(null, \"error: \"+ e.getMessage());\r\n \r\n }\r\n \r\n }",
"public void delete(Premie premie){\n premieRepository.delete(premie);\n }",
"@Override\r\n public void elminarVehiculo(String placa) {\n Connection conn = null;\r\n try{\r\n conn = Conexion.getConnection();\r\n String sql = \"delete from vehiculo where veh_placa=?\";\r\n PreparedStatement statement = conn.prepareStatement(sql);\r\n statement.setString(1, placa);\r\n int rowsDelete = statement.executeUpdate();\r\n if(rowsDelete > 0){\r\n JOptionPane.showMessageDialog(null, \"Registro eliminado de manera correcta\");\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(VehiculoDAOJDBCImpl.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public void eliminarTripulante(Long id);",
"public void executeProcesarEliminarBuzonMensaje(Map criteria);",
"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 deleteEliminarGestionStock(Map criteria);",
"public String vistaEliminar(String codaloja, String codactiv) {Alojamiento alojbusc = alojamientoService.find(codaloja);\n// Actividad actbusc = actividadService.find(codactiv);\n// Alojamiento_actividad aloact = new Alojamiento_actividad();\n// Alojamiento_actividad_PK aloact_pk = new Alojamiento_actividad_PK();\n// aloact_pk.setActividad(actbusc);\n// aloact_pk.setAlojamiento(alojbusc);\n// aloact.setId(aloact_pk);\n// \n// actividadAlojamientoService.remove(aloact);\n// \n// \n// \n return \"eliminarAsignacion\";\n }",
"public void eliminar(Long id) throws AppException;",
"public void deleteBeneficioDeuda(Map parametros);",
"public boolean eliminarproducto(ProductoDTO c) {\r\n \r\n try {\r\n PreparedStatement ps;\r\n ps = conn.getConn().prepareStatement(SQL_DELETE);\r\n ps.setInt(1, c.getId());\r\n\r\n if (ps.executeUpdate() > 0) {\r\n\r\n JOptionPane.showMessageDialog(null, \"Prudcto eliminado exitosamente\");\r\n return true;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProductoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n conn.cerrarconexion();\r\n }\r\n JOptionPane.showMessageDialog(null, \"No se ha podido registrar\");\r\n return false;\r\n\r\n }",
"public void deleteFromPoseOrder() { \n \ttry {\n\t\t\tthis.openDataBase();\n\t\t\tmyDataBase.execSQL(DeletePoses);\n\t\t\tthis.close();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.d(\"SQL Exception\", e.toString());\n\t\t}\n \t\n }",
"@Override\n\tpublic void eliminar(Seccion seccion) {\n\t\tentity.getTransaction().begin();\n\t\tentity.remove(seccion);\n\t\tentity.getTransaction().commit();\n\t}",
"public abstract void eliminarSubproducto(EntityManager sesion, Subproducto subproducto);",
"public void deletar(int codigo) throws SQLException{\r\n conecta = FabricaConexao.conexaoBanco();\r\n sql = \"delete from conserto where concodigo =? \";\r\n pstm = conecta.prepareStatement(sql);\r\n pstm.setInt(1, codigo);\r\n pstm.execute();\r\n FabricaConexao.fecharConexao();\r\n \r\n }",
"public void eliminarUsuario(Long idUsuario);",
"public static void eliminarEstudiante(String Nro_de_ID) {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.print(\"Conexion Establecida\");\r\n Statement sentencia = conexion.createStatement();\r\n int insert = sentencia.executeUpdate(\"delete from estudiante where Nro_de_ID = '\" + Nro_de_ID + \"'\");\r\n\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.print(\"Error en la conexion\" + ex);\r\n }\r\n }",
"@Override\n\tpublic void delete(Iscrizioni o)\n\t\t\tthrows ClassNotFoundException, SQLException, NotHandledTypeException, NamingException, ParseException {\n\t\tIscrizioni i = em.find(Iscrizioni.class, o.getIdIscrizione());\n\t\tem.remove(i);\n//\t\tObject[] campi = { o.getIdIscrizione() };\n//\t\tString sql = \"DELETE FROM `iscrizioni` WHERE `idIscrizione` = ? \";\n//\t\tDBHandler dbHandler = new DBHandler();\n//\t\tdbHandler.sql(sql, campi);\n\t}",
"public void delete(TipoPk pk) throws TipoDaoException;",
"public void delete(DatiBancariPk pk) throws DatiBancariDaoException;",
"@Override\n public void doDelete(FasciaOrariaBean bean) throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"DELETE FROM fasciaoraria WHERE id=?\";\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n statement.setInt(1, bean.getId());\n System.out.println(\"doUpdate=\" + statement);\n statement.executeUpdate();\n con.commit();\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n }",
"int deleteByExample(CTipoPersonaExample example) throws SQLException;",
"public void deleteCita(int id){\n try {\n PreparedStatement preparedStatement = con.prepareStatement(\"DELETE FROM paciente WHERE id_paciente=?;\");\n preparedStatement.setInt(1,id);\n preparedStatement.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void eliminarMateria() {\n ejbFacade.remove(materia);\n items = ejbFacade.findAll();\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.update(\"MateriaListForm:datalist\");\n requestContext.execute(\"PF('Confirmacion').hide()\");\n departamento = new Departamento();\n materia = new Materia();\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se eliminó con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n requestContext.update(\"MateriaListForm\");\n }",
"private void eliminar(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n Connection con = null;//Objeto para la conexion\r\n Statement sentencia = null;//Objeto para definir y ejecutar las consultas sql\r\n int resultado = 0;//resultado de las filas borradas sql\r\n String sql = \"\";\r\n try {\r\n\r\n //ESTABLECER CONEXION\r\n con = conBD.getCConexion();\r\n System.out.println(\"Conectado a BD...\");\r\n\r\n //OBTENER EL DATO A ELIMINAR\r\n String emailUsuario = request.getParameter(\"ID\");\r\n\r\n //Definición de Sentencia SQL\r\n sql = \"DELETE FROM USUARIOS WHERE semail='\" + emailUsuario + \"'\";\r\n\r\n //Ejecutar sentencia\r\n sentencia = con.createStatement();\r\n resultado = sentencia.executeUpdate(sql);\r\n System.out.println(\"Borrado exitoso !\");\r\n request.setAttribute(\"mensaje\", \"Registro borrado exitosamente !\");\r\n //cerrar la conexion\r\n //con.close();\r\n\r\n //listar de nuevo los datos\r\n todos(request, response);\r\n\r\n } catch (SQLException ex) {\r\n System.out.println(\"No se ha podido establecer la conexión, o el SQL esta mal formado \" + sql);\r\n request.getRequestDispatcher(\"/Error.jsp\").forward(request, response);\r\n }\r\n }",
"void eliminarPedidosUsuario(String idUsuario);",
"public void delete(NominaPuestoPk pk) throws NominaPuestoDaoException;",
"@Override\n public boolean eliminar(ModelCliente cliente) {\n strSql = \"DELETE CLIENTE WHERE ID_CLIENTE = \" + cliente.getIdCliente();\n \n \n try {\n //se abre una conexión hacia la BD\n conexion.open();\n //Se ejecuta la instrucción y retorna si la ejecución fue satisfactoria\n respuesta = conexion.executeSql(strSql);\n //Se cierra la conexión hacia la BD\n conexion.close();\n \n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n return false;\n } catch(Exception ex){\n Logger.getLogger(DaoCliente.class.getName()).log(Level.SEVERE, null, ex); \n }\n return respuesta;\n }",
"@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }",
"@Override\n\tpublic void remover(int idServico) throws SQLException {\n\t\t\n\t}",
"public void removePatientFromDB(Patient P1)\r\n {\r\n \t String sql1 = \"DELETE from PATIENTDATA where firstname='\"+P1.firstName+\"' AND lastname='\"+P1.lastName+\"';\";\r\n try {\r\n\t\tstmt.executeUpdate(sql1);\r\n\t} catch (SQLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n }",
"@Override\r\n\tpublic void delete(Activitat activitat) {\r\n\t\t/*queryString = \"DELETE FROM activitats WHERE ID_ACTIVITAT = ?\";\r\n\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\ts.setInt(1, activitat.geti);\r\n\r\n\t\t\ts.execute();\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*/\r\n\t\t\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 }",
"public void eliminar() throws RollbackException, SystemException, HeuristicRollbackException, HeuristicMixedException {\n Session session = HibernateUtil.getSessionFactory().openSession();\n Transaction tx = null;\n String id = FacesUtil.getRequestParameter(\"idObj\");\n Tblobjeto o = (Tblobjeto) session.load(Tblobjeto.class, Short.parseShort(id));\n try {\n tx = (Transaction) session.beginTransaction();\n session.delete(o);\n tx.commit();\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Informacion:\", \"Registro eliminado satisfactoriamente\"));\n } catch (HibernateException e) {\n tx.rollback();\n\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, \"Un error ha ocurrido:\", e.getCause().getMessage()));\n } finally {\n session.close();\n populateTreeTable();\n UsuarioBean u = (UsuarioBean) FacesUtil.getBean(\"usuarioBean\");\n u.populateSubMenu();\n }\n }",
"@Override\n\tpublic int delete(PrestationCDI obj) throws DAOException {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}",
"public void eliminarPrograma() {\r\n // Abro y obtengo la conexion\r\n this.conection.abrirConexion();\r\n Connection con = this.conection.getConexion();\r\n\r\n // Preparo la consulta\r\n String sql = \"UPDATE programa SET \\n\"\r\n + \"estado = '0'\\n\"\r\n + \"WHERE programa.codigo = ?\";\r\n System.out.println(sql);\r\n\r\n try {\r\n // La ejecuto\r\n PreparedStatement ps = con.prepareStatement(sql);\r\n ps.setInt(1, this.codigo);\r\n int rows = ps.executeUpdate();\r\n System.out.println(rows);\r\n // Cierro la conexion\r\n this.conection.cerrarConexion();\r\n } catch (SQLException ex) {\r\n System.out.println(ex.getMessage());\r\n }\r\n }",
"@Override\r\npublic int delete(int id) {\n\treturn detalle_pedidoDao.delete(id);\r\n}",
"@Override\r\n\tpublic MensajeBean elimina(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.elimina(nuevo);\r\n\t}",
"public String eliminarEstudiante(HttpServletRequest request,String codEstudiante){\n String salida=\"\";\n if(request==null){\n return \"\";\n }\n if(connection!=null && codEstudiante!=null && codEstudiante.length()>0){\n try {\n StringBuilder query=new StringBuilder();\n query.append(\"delete from estudiante \");\n query.append(\" where idestudiante=? \");\n deleteEstudiante=connection.prepareStatement(query.toString());\n //pasando el parametro\n deleteEstudiante.setInt(1, Integer.parseInt(codEstudiante));\n //ejecutando la consulta\n int nroRegistros=deleteEstudiante.executeUpdate();\n if(nroRegistros==1){\n salida=\"Registro Eliminado de forma correcta\";\n }\n else{\n salida=\"Existo un error al tratar de eliminar el registro\";\n }\n } catch (SQLException e) {\n salida=\"Existo un error SQL\";\n System.out.println(\"Error en el proceso \");\n e.printStackTrace();\n }\n }\n return salida;\n }",
"public void deletePrisoners(String pisid){\r\n String q=\"DELETE FROM prisoners WHERE Prisonerid=?\";\r\n try\r\n {\r\n int k=0;\r\n PreparedStatement st=getConnection().prepareStatement(q);\r\n st.setString(1, pisid);\r\n if(st.executeUpdate()>k){\r\n JOptionPane.showMessageDialog(null,pisid+\"deleted successively\");\r\n \r\n }\r\n }\r\n catch(SQLException x){\r\n JOptionPane.showMessageDialog(null, x.getMessage());\r\n }\r\n \r\n //defines how update can be done\r\n }",
"@Override //删除id\n\tpublic void deletePoInfoById(String poinid) throws Exception {\n\t\tdao.delete(\"PoInfoMapper.deletePoInfoById\", poinid);\n\t}",
"@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}",
"public void excluirPorChavePrimaria(@SuppressWarnings(\"rawtypes\") Class pClasse, Object pPrimaryKey);",
"int deleteByExample(MovimientoExample example);",
"public void eliminarDatos(EstructuraContratosDatDTO estructuraNominaSelect) {\n\t\t\n\t}",
"public void deleteProveedor (Long id_proveedor){\n proveedorPersistence.delete(id_proveedor);\n }",
"int deleteByExample(PruebaExample example);",
"int deleteByExample(TipologiaExample example);",
"@Override\n\tpublic MahasiswaModel delete(String nik) throws SQLException {\n\t\tdeleteStatement.setString(1, nik);\n\t\tdeleteStatement.executeUpdate();\n\t\treturn null;\n\t}",
"public void desister(int p_id,int g_id) throws RemoteException{\r\n\t\t\t\r\n\t\t\tString requete = \"DELETE FROM association Where a_idprojet = \" + p_id +\r\n\t\t\t\t\t\t\t \" AND a_idgroupe = \" + g_id;\r\n\t\t\tSystem.out.println(\"\\nrequete desister : \" + requete);\r\n\t\t\tdatabase.executeUpdate(requete);\r\n\t\t\t\r\n\t\t}",
"@Transactional\n\t@Override\n\tpublic void delete(Prenotazione prenotazione) {\n\t\tthis.prenotazioneRepository.delete(prenotazione);\n\t\t\n\t}",
"@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}"
] | [
"0.74532384",
"0.7380384",
"0.7367443",
"0.7342224",
"0.73414147",
"0.7304475",
"0.7284997",
"0.7274049",
"0.72618693",
"0.72498405",
"0.7129883",
"0.7128965",
"0.70307446",
"0.7021315",
"0.7018644",
"0.7015425",
"0.6993231",
"0.6986185",
"0.6981006",
"0.6970517",
"0.6947241",
"0.6942376",
"0.6938096",
"0.693744",
"0.68704605",
"0.6867814",
"0.6863934",
"0.68513536",
"0.68496925",
"0.684743",
"0.6846626",
"0.68458974",
"0.6842702",
"0.68263054",
"0.682311",
"0.6822089",
"0.68202406",
"0.6811093",
"0.6805594",
"0.6791898",
"0.67898816",
"0.6786056",
"0.6780253",
"0.6776749",
"0.6774429",
"0.6771851",
"0.6770954",
"0.676737",
"0.67609906",
"0.67419255",
"0.67406094",
"0.6736944",
"0.67271465",
"0.6702541",
"0.669846",
"0.66974086",
"0.66955507",
"0.6683765",
"0.6675745",
"0.6675174",
"0.66658854",
"0.6661346",
"0.66567105",
"0.6645025",
"0.6644252",
"0.6635103",
"0.6616841",
"0.66029215",
"0.6591882",
"0.6582954",
"0.6570849",
"0.65696216",
"0.6565424",
"0.65640265",
"0.65546095",
"0.654503",
"0.654326",
"0.6538774",
"0.65326136",
"0.6532025",
"0.65289795",
"0.6528248",
"0.6523945",
"0.6520859",
"0.6519061",
"0.65172994",
"0.65134776",
"0.6507534",
"0.65049535",
"0.6504402",
"0.64958745",
"0.6494405",
"0.64940435",
"0.6484012",
"0.64827865",
"0.64821684",
"0.64796346",
"0.64706326",
"0.6468684",
"0.6468576"
] | 0.7242598 | 10 |
llama al DAO para obtener todos los procedimientos y luego los muestra en la vista | public void verProcedimientos(JTable tabla) {
System.out.println("controladores.ProcedimientoController.verProcedimientos()");
ResultSet procedimientos = null;
IProcedimientoDao dao = new ProcedimientoDaoImpl();
procedimientos = dao.obtenerProcedimientos();
vista.verProcedimientos(procedimientos, tabla);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void pruebas() {\n\t\tResultadosDaoImpl resultadosDao = new ResultadosDaoImpl();\r\n\t\tPartidosDaoImpl partidosDao = new PartidosDaoImpl();\r\n\t\tEquiposDaoImpl equiposDao = new EquiposDaoImpl();\r\n\t\tJornadasDaoImpl jornadasDao = new JornadasDaoImpl();\r\n\t\tEstadisticasDaoImpl estadisticasDao = new EstadisticasDaoImpl();\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesTotalesCasa();\r\n\t\t\r\n\t\tEquipos equipoC = equiposDao.getEquipoById(7);\r\n\t\tEquipos equipoF = equiposDao.getEquipoById(6);\r\n\t\tJornadas jornada = jornadasDao.nextJornada();\r\n//\t\t\r\n//\t\tpartidosDao.getPartidosCasa(equipo,jornada);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesFavorCasa(equipo);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesContraFuera(equipo);\r\n//\t\tdouble phiVM = staticsC.getValorMercado() / (estadisticasDao.getValorMercadoMedio());\r\n\t\t\r\n\t\tEstadisticas staticsC = estadisticasDao.getStatics(equipoC);\r\n\t\tEstadisticas staticsF = estadisticasDao.getStatics(equipoF);\r\n\t\t\r\n\t\tDouble phiF = PlayMethods.analizeStaticsFuera(staticsF,staticsC,jornada);\r\n\t\tDouble phiC = PlayMethods.analizeStaticsCasa(staticsC,staticsF,jornada);\r\n\t\t\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}",
"@Override\r\n public List<Prova> consultarTodosProva() throws Exception {\n return rnProva.consultarTodos();\r\n }",
"public void listarProvincia() {\n provincias = JPAFactoryDAO.getFactory().getProvinciaDAO().find();\n// for(int i=0;i<provincias.size();i++ ){\n// System.out.println(\"lista:\"+provincias.get(i).getNombreprovincia());\n// }\n }",
"public interface ProcesoMAEClasificacionClientesDAO extends DAO {\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacion(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de clasificacion LOVE de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarClasificacionLove(Map criteria);\n\n\t/**\n\t * Proceso que realiza la actualizacin de datos de Clientes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeActualizarDatosClientes(Map criteria);\n\n\t/**Proceso q se encarga de ejecutar las validaciones de MAE\n\t * @param criteria\n\t */\n\tpublic void executeValidacionClientes(Map criteria);\n\n\t/**\n\t * Proceso que realiza la Inactivación de conultoras registradas \n\t * despues de dos capañasde creadas en el maestro\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeInactivarConsultora2campanas(Map criteria);\n}",
"public ArrayList<Proposta> buscarPropostasSemFiltro() {\n\n ArrayList<Proposta> listaDePropostas = new ArrayList<>();\n\n conectarnoBanco();\n\n String sql = \"SELECT * FROM proposta\";\n\n try {\n\n st = con.createStatement();\n\n rs = st.executeQuery(sql);\n\n System.out.println(\"Lista de propostas: \");\n\n while (rs.next()) {\n\n Proposta propostaTemp = new Proposta(rs.getString(\"propostaRealizada\"), rs.getFloat(\"valorProposta\"), rs.getInt(\"id_usuario\"), rs.getInt(\"id_projeto\"),rs.getInt(\"id_client\"));\n\n System.out.println(\"Proposta = \" + propostaTemp.getPropostaRealizada());\n System.out.println(\"Valor da Proposta = \" + propostaTemp.getValorProposta());\n\n System.out.println(\"---------------------------------\");\n\n listaDePropostas.add(propostaTemp);\n\n sucesso = true;\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao buscar propostas = \" + ex.getMessage());\n sucesso = false;\n } finally {\n try {\n\n if (con != null && pst != null) {\n con.close();\n pst.close();\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao fechar o bd = \" + ex.getMessage());\n }\n\n }\n\n return listaDePropostas;\n }",
"public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }",
"@Override\n public List<Paciente> listar(){\n EntityManagerFactory factory = Persistence.createEntityManagerFactory(\"vesaliusPU\"); \n EntityManager em = factory.createEntityManager();\n List<Paciente> listaPaciente = em.createQuery(\"SELECT pac FROM Paciente pac\").getResultList(); \n em.close();\n factory.close();\n return (listaPaciente);\n }",
"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 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 }",
"@Override\n public List<Caja> buscarMovimientos(){\n List<Caja> listaCaja= cajaRepository.findAll();\n\n return listaCaja;\n\n }",
"@Override\n\tpublic List<Proyecto> listarProyectos() {\n\t\treturn proyectoRepo.findAll();\n\t}",
"public interface TProvinciasDAO {\n\t\n\tpublic ArrayList<TProvinciasBean> obtenerProvincias(String codigoDepartamento) throws DataAccessException;\n\t\n}",
"public interface TipoActividadDAO {\n \n /**\n * Funció que engloba les funcións que s'utilitzen per crear tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callCrear(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Verifica que no existeixi un tipus amb el mateix nom\n * @param tipoAct\n * @return int\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract int getTipoByName(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Inserta un tipus d'activitat en la base de dades\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String insertarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa els tipus d'activitats que esten actius\n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividad() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Agafa tots els tipus d'activitats \n * @return List de TipoActividad\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract List<TipoActividad> getTiposActividadAdm() throws PersistenceException, ClassNotFoundException;\n \n /**\n * Seleccionar el tipo de actividad d'una actividad\n * @param activity\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String getTipoByAct(Actividad activity) throws PersistenceException, ClassNotFoundException;\n\n /**\n * Guarda la sessió del tipus d'activitat\n * @param tipoAct\n * @param pagina\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract void guardarSession(TipoActividad tipoAct, String pagina) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que engloba les funcións per editar un tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String callEditar(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n \n /**\n * Funció que permet editar el Tipus d'activitat\n * @param tipoAct\n * @return String\n * @throws PersistenceException\n * @throws ClassNotFoundException \n */\n public abstract String editarTipoActividad(TipoActividad tipoAct) throws PersistenceException, ClassNotFoundException;\n}",
"private void getinterrogantes(){\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n String jpql = \"SELECT i FROM Interrogante i \"\n + \"WHERE i.estado='a' \";\n\n Query query = em.createQuery(jpql);\n List<Interrogante> listInterrogantes = query.getResultList();\n\n ArrayList<ListQuestion> arrayListQuestions = new ArrayList<>();\n for (Interrogante i : listInterrogantes){\n ListQuestion lq = new ListQuestion();\n lq.setIdinterrogante(i.getIdinterrogante());\n lq.setQuestion(i.getDescripcion());\n lq.setListParametros(getParametros(i.getIdinterrogante()));\n arrayListQuestions.add(lq);\n }\n\n this.ListQuestions = arrayListQuestions;\n em.close();\n emf.close();\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n } \n \n }",
"public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }",
"public static void pesquisarTest() {\n\t\t\n\t\tlistaProfissional = profissionalDAO.lista();\n\n\t\t//user.setReceitas(new ArrayList<Receita>());\n\t\t\n\t\t\n\t\tSystem.out.println(\"Entrou PEsquisar ====\");\n\t\tSystem.out.println(listaProfissional);\n\n\t}",
"public interface ServicoDao extends EntidadeDao<Servico> {\n Long contarTotalServicos();\n Long contarServicosStatus(StatusServico statusServico);\n @Override\n List<Servico> listar();\n\n List<Servico> listarServicos();\n public List<Servico> listarMeusServicos(Long id);\n public List<Servico> listarServicosEmAberto();\n Long servicoPorSetor(Long id);\n Servico BuscarPorId(Long id);\n void salvarLogServico(LogServico logServico);\n\n public void verificarConlusaoEAtualizar(Long id);\n\n Long meusServicos();\n Long contarPorSetor(Long id);\n List<Object[]> contarDeAteDataPorSetorDESC(LocalDate dtDe, LocalDate dtAte);\n List<Object[]> contarAPartirDePorSetorDESC(LocalDate dtDe);\n List<Object[]> contarAteDataPorSetorDESC(LocalDate dtAte);\n List<Object[]> contarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarDeAteDataPorSetorDESC(Long id, LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarAPartirDePorSetorDESC(Long id, LocalDate dtDe);\n List<Servico> filtrarAteDataPorSetorDESC(Long id, LocalDate dtAte);\n List<Servico> filtrarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n\n List<Servico> filtrarMaisRecentesPorSetor(Long id);\n}",
"public List<Tb_Prod_Painel_PromoBeans> getProdPainel(Integer terminal, Integer painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel=? order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal);\r\n pstm.setInt(2, painel);\r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>();\r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }",
"public interface PreguntaDao {\n\n\t/** Devuelve las preguntas mas recientes, ordenadas desde la mas reciente hacia la mas antigua.\n\t * @param page La pagina de preguntas (comienza de la 1)\n\t * @param pageSize El numero de resultados a devolver por pagina. */\n\tpublic List<Pregunta> getPreguntasRecientes(int page, int pageSize);\n\n\t/** Devuelve las preguntas hechas por el usuario indicado. */\n\tpublic List<Pregunta> getPreguntasUsuario(Usuario user);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(TagPregunta tag);\n\n\t/** Devuelve todas las preguntas que tengan al menos uno de los tags especificados. */\n\tpublic List<Pregunta> getPreguntasConTags(Set<TagPregunta> tags);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(String tag);\n\n\t/** Devuelve los tags mas utilizados en preguntas.\n\t * @param limit El numero maximo de tags a devolver. */\n\tpublic List<TagPregunta> getTagsPopulares(int limit);\n\n\t/** Devuelve la pregunta con el id especificado. */\n\tpublic Pregunta getPregunta(int id);\n\n\t/** Devuelve las respuestas a la pregunta especificada.\n\t * @param pageSize El numero maximo de preguntas a devolver.\n\t * @param page El numero de pagina a devolver (la primera pagina es 1)\n\t * @param crono Indica si se deben ordenar las respuestas en orden cronologico, en vez de por votos\n\t * (default es por votos). */\n\tpublic List<Respuesta> getRespuestas(Pregunta q, int pageSize, int page, boolean crono);\n\n\t/** Devuelve la lista de preguntas con mas votos positivos.\n\t * @param limit El numero maximo de preguntas a devolver. */\n\tpublic List<Pregunta> getPreguntasMasVotadas(int limit);\n\n\t/** Devuelve la lista de preguntas que no tienen ni una sola respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResponder(int limit);\n\n\t/** Devuelve la lista de preguntas cuyo autor no ha elegido una respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResolver(int limit);\n\n\t/** Registra un voto que un usuario hace a una pregunta.\n\t * @param user El usuario que hace el voto\n\t * @param pregunta La pregunta a la cual se aplica el voto\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Registra un voto que un usuario hace a una respuesta que se hizo a una pregunta.\n\t * @param user El usuario que hace el voto.\n\t * @param resp La respuesta a la cual se aplica el voto.\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Busca y devuelve el voto realizado por el usuario indicado a la pregunta especificada, si es que existe. */\n\tpublic VotoPregunta findVoto(Usuario user, Pregunta pregunta);\n\n\t/** Busca y devuelve el voto hecho por el usuario indicado a la respuesta especificada, si es que existe. */\n\tpublic VotoRespuesta findVoto(Usuario user, Respuesta respuesta);\n\n\tpublic void insert(Pregunta p);\n\n\tpublic void update(Pregunta p);\n\n\tpublic void delete(Pregunta p);\n\n\t/** Crea una respuesta con el texto especificado, para la pregunta especificada, por el autor especificado.\n\t * @return La respuesta recien creada. */\n\tpublic Respuesta addRespuesta(String resp, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la pregunta especificada, a nombre del usuario especificado. */\n\tpublic ComentPregunta addComentario(String c, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la respuesta especificada, a nombre del usuario especificado. */\n\tpublic ComentRespuesta addComentario(String c, Respuesta r, Usuario autor);\n\n\t/** Agrega el tag especificado a la pregunta. Primero se busca el tag existente para relacionarlo con la\n\t * pregunta, pero si no existe, se crea uno nuevo. */\n\tpublic void addTag(String tag, Pregunta p);\n\n\t/** Devuelve una lista con tags que contengan el texto parcial especificado. */\n\tpublic List<TagPregunta> findMatchingTags(String parcial);\n\n}",
"private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"@Override\n public Collection<Curso> getAll() {\n Collection<Curso> retValue = new ArrayList();\n\n Connection c = null;\n PreparedStatement pstmt = null;\n ResultSet rs = null;\n\n try {\n c = DBUtils.getConnection();\n pstmt = c.prepareStatement(\"SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\\n\" +\n\" c.clavealumno from curso c, persona p\\n\" +\n\"where c.idprofesor = p.id\");\n \n\n rs = pstmt.executeQuery();\n\n while (rs.next()) {\n String nombre=\"\\\"\"+rs.getString(\"nombreprofesor\")+\" \"+rs.getString(\"apellido\")+\"\\\"\";\n retValue.add(new Curso(rs.getInt(\"idcurso\"), rs.getString(\"nombrecurso\"), rs.getInt(\"idprofesor\"), nombre,rs.getString(\"claveprofesor\"), rs.getString(\"clavealumno\")));\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\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 return retValue;\n }",
"private ArrayList<Parametro> getParametros(int pregunta){\n ArrayList<Parametro> arrayListParametros = new ArrayList<>();\n try{\n EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"ServiceQualificationPU\");\n EntityManager em = emf.createEntityManager();\n\n String jpql =\"SELECT p FROM ParametroInterrogante pi \"\n + \"JOIN pi.interrogante i \"\n + \"JOIN pi.parametro p \"\n + \"WHERE p.estado='a' AND i.estado='a' \"\n + \"AND i.idinterrogante = :pregunta\";\n\n Query query = em.createQuery(jpql);\n query.setParameter(\"pregunta\", pregunta);\n List<Parametro> list = query.getResultList();\n for(Parametro p : list){\n arrayListParametros.add(p);\n }\n\n em.close();\n emf.close();\n }catch(Exception e){\n System.out.println(\"ERROR: \"+e);\n this.Error = \"ERROR: \"+e;\n }\n return arrayListParametros;\n }",
"private void grabarProyectoCarrerasOferta() {\r\n try {\r\n if (!sessionProyecto.getEstadoActual().getCodigo().equalsIgnoreCase(EstadoProyectoEnum.INICIO.getTipo())) {\r\n return;\r\n }\r\n for (ProyectoCarreraOferta proyectoCarreraOferta : sessionProyecto.getCarrerasSeleccionadasTransfer()) {\r\n Carrera c = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n List<ProyectoCarreraOferta> proyectoCarreraOfertas = proyectoCarreraOfertaService.buscar(\r\n new ProyectoCarreraOferta(sessionProyecto.getProyectoSeleccionado(), null, null, Boolean.TRUE));\r\n \r\n Long pcoId = devuelveProyectoCarreraId(proyectoCarreraOfertas, proyectoCarreraOferta);\r\n proyectoCarreraOferta = proyectoCarreraOfertaService.buscarPorId(new ProyectoCarreraOferta(pcoId));\r\n if (proyectoCarreraOferta == null) {\r\n proyectoCarreraOferta = new ProyectoCarreraOferta(sessionProyecto.getProyectoSeleccionado(), c.getId(), sessionProyecto.getOfertaAcademicaSeleccionada().getId(),\r\n Boolean.TRUE);\r\n if (contieneCarrera(proyectoCarreraOfertas, proyectoCarreraOferta) == false) {\r\n proyectoCarreraOfertaService.guardar(proyectoCarreraOferta);\r\n this.grabarIndividuoPCO(proyectoCarreraOferta);\r\n logDao.create(logDao.crearLog(\"ProyectoCarreraOferta\", proyectoCarreraOferta.getId() + \"\", \"CREAR\", \"Carrera=\"\r\n + proyectoCarreraOferta.getCarreraId() + \"|Oferta=\" + proyectoCarreraOferta.getOfertaAcademicaId() + \"|Proyecto= \"\r\n + proyectoCarreraOferta.getProyectoId().getId(), sessionUsuario.getUsuario()));\r\n }\r\n }\r\n proyectoCarreraOferta.setEsActivo(true);\r\n proyectoCarreraOfertaService.actualizar(proyectoCarreraOferta);\r\n logDao.create(logDao.crearLog(\"ProyectoCarreraOferta\", proyectoCarreraOferta.getId() + \"\", \"EDITAR\", \"Carrera=\"\r\n + proyectoCarreraOferta.getCarreraId() + \"|Oferta=\" + proyectoCarreraOferta.getOfertaAcademicaId()\r\n + \"|Proyecto= \" + proyectoCarreraOferta.getProyectoId().getId(), sessionUsuario.getUsuario()));\r\n }\r\n } catch (Exception e) {\r\n LOG.info(e.getMessage());\r\n }\r\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 }",
"public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\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\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}",
"@Override\n public RspPermiso listPermiso() {\n ConectorBDMySQL conectorBD = new ConectorBDMySQL();\n RspPermiso rspPermiso = new RspPermiso();\n List<Permiso> todosLosPermisos = new ArrayList<Permiso>();\n //INICIALIZAR VARIABLES\n rspPermiso.setEsConexionAbiertaExitosamente(false);\n rspPermiso.setEsConexionCerradaExitosamente(false);\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(false);\n //INTENTA ESTABLECER LA CONEXIÓN CON LA BASE DE DATOS\n if (conectorBD.iniciarConexion()) {\n rspPermiso.setEsConexionAbiertaExitosamente(true);\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n String consultaSQL = \"SELECT * FROM permiso WHERE estado = 1\";\n try {\n Statement sentencia = conectorBD.getConnection().createStatement();\n boolean bandera = sentencia.execute(consultaSQL);\n if (bandera) {\n ResultSet rs = sentencia.getResultSet();\n rspPermiso.setEsSentenciaSqlEjecutadaExitosamente(true);\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirConsulta(sentencia.toString(), \"listPermiso()\", this.getClass().toString()));\n while (rs.next()) {\n Permiso permiso = new Permiso();\n permiso = rsPermiso(rs, permiso);\n todosLosPermisos.add(permiso);\n }\n }\n } catch (SQLException e) {\n rspPermiso.setRespuestaServicio(utilidadSistema.imprimirExcepcion(e, \"listPermiso()\", this.getClass().toString()));\n } finally {\n if (conectorBD.cerrarConexion()) {\n rspPermiso.setEsConexionCerradaExitosamente(true);\n }\n rspPermiso.setRespuestaCierreDeConexion(conectorBD.getAtributosConector().getRespuestaCierreDeConexion());\n rspPermiso.setAllPermisos(todosLosPermisos);\n return rspPermiso;\n }\n } else {\n rspPermiso.setRespuestaInicioDeConexion(conectorBD.getAtributosConector().getRespuestaInicioConexion());\n return rspPermiso;\n }\n }",
"public List<Profesor> consultarTodos() {\n\t\treturn daoProfesor.consultarTodos();\n\t}",
"public static ArrayList<Actividad> selectActividadesProyecto(int idProyecto) {\n ConnectionPool pool = ConnectionPool.getInstance();\n Connection connection = pool.getConnection();\n PreparedStatement ps = null;\n ResultSet rs = null;\n String query = \"SELECT * FROM Actividades a, Fases f, Proyectos p WHERE a.idFase=f.id AND f.idProyecto=p.id AND f.id=? ORDER BY a.anoInicio, a.mesInicio, a.diaInicio ASC\";\n ArrayList<Actividad> actividades = new ArrayList<Actividad>();\n try {\n ps = connection.prepareStatement(query);\n ps.setInt(1, idProyecto);\n rs = ps.executeQuery();\n while (rs.next()) {\n String fechaInicio = String.format(\"%02d/%02d/%04d\", rs.getInt(6), rs.getInt(7), rs.getInt(8));\n String fechaFin = String.format(\"%02d/%02d/%04d\", rs.getInt(9), rs.getInt(10), rs.getInt(11));\n Actividad a = new Actividad(rs.getInt(1), rs.getString(2), rs.getString(3), rs.getString(4), rs.getInt(5), fechaInicio, fechaFin, rs.getInt(12), rs.getString(13).charAt(0), rs.getInt(14));\n actividades.add(a);\n }\n rs.close();\n ps.close();\n pool.freeConnection(connection);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return actividades;\n }",
"public List<EstructuraContratosDatDTO> obtenerConsultaProsperaLista() {\n\t\tList<EstructuraContratosDatDTO> consultaNominaLista = consultaProsperaService.listaEstructuraProspera();\n\t\treturn consultaNominaLista;\n\t}",
"private void llenarListadoPromocionSalarial() {\n\t\tString sql1 = \"select det.* from seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab cab on cab.id_estado_cab = det.id_estado_cab \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab\"\r\n\t\t\t\t+ \" left join seleccion.promocion_concurso_agr agr \"\r\n\t\t\t\t+ \"on agr.id_promocion_salarial = det.id_promocion_salarial\"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(cab.descripcion) = 'concurso' \" + \"and (\"\r\n\t\t\t\t+ \"\t\tagr.id_estado_det = (\" + \"\t\t\t\tselect est.id_estado_det \"\r\n\t\t\t\t+ \"\t\t\t\tfrom planificacion.estado_det est \"\r\n\t\t\t\t+ \"\t\t\t\twhere lower(est.descripcion)='libre'\" + \"\t\t) \"\r\n\t\t\t\t+ \"\t\tor agr.id_estado_det is null\" + \"\t) \"\r\n\t\t\t\t+ \" and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t\t+ \" AND det.activo=true\";\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO SIMPLIFICADO Se despliegan los puestos\r\n\t\t * PERMANENTES o CONTRATADOS, con estado = LIBRE o NULO Los puestos\r\n\t\t * deben ser de nivel 1\r\n\t\t */\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_SIMPLIFICADO)) {\r\n//\t\t\tsql1 += \" and cpt.nivel=1 and cpt.activo=true and (det.permanente is true or det.contratado is true) \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INSTITUCIONAL Se\r\n\t\t * despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_OPOSICION)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\r\n\t\t/*\r\n\t\t * Tipo de concurso = CONCURSO INTERNO DE OPOSICION INTER INSTITUCIONAL\r\n\t\t * Se despliegan los puestos PERMANENTE, con estado = LIBRE o NULO\r\n\t\t */\r\n\r\n//\t\tif (concurso.getDatosEspecificosTipoConc().getDescripcion()\r\n//\t\t\t\t.equalsIgnoreCase(CONCURSO_INTERNO_INTERINSTITUCIONAL)) {\r\n//\t\t\tsql1 += \" and det.permanente is true \";\r\n//\t\t}\r\n\t\t\r\n\t\tString sql2 = \"select puesto_det.* \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial det \"\r\n\t\t\t\t+ \"on det.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \"join planificacion.configuracion_uo_cab uo_cab \"\r\n\t\t\t\t+ \"on uo_cab.id_configuracion_uo = det.id_configuracion_uo_cab \"\r\n\t\t\t//\t+ \"join seleccion.concurso concurso \"\r\n\t\t\t//\t+ \"on concurso.id_concurso = puesto_det.id_concurso \"\r\n\t\t\t\t\r\n\t\t\t\t+ \" where lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and uo_cab.id_configuracion_uo = \"\r\n\t\t\t\t+ configuracionUoCab.getIdConfiguracionUo()\r\n\t\t\t//\t+ \" and concurso.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t+ \" and puesto_det.activo=true\";\r\n\r\n\t\tcargarListaPromocionSalarial(sql1, sql2);\r\n\t}",
"public ArrayList<PedidoProduto> selecionarPorId(String Id) {\n String sql = \"SELECT * FROM pedidos \"\n + \"LEFT JOIN pedidosprodutos ON pedidosprodutos.PedidoId = pedidos.Id \"\n + \"LEFT JOIN produtos ON pedidosprodutos.ProdutoId = produtos.Id \"\n + \"LEFT JOIN estoque ON estoque.ProdutoId = produtos.Id \"\n + \"LEFT JOIN usuarios ON pedidos.UsuarioId = usuarios.Id \"\n + \"WHERE pedidos.Id = ?\";\n int queryId = Integer.parseInt(Id);\n try {\n conn = connFac.getConexao();\n stmt = conn.prepareStatement(sql);\n stmt.setInt(1, queryId);\n rs = stmt.executeQuery();\n while(rs.next()) {\n Pedido pedido = new Pedido();\n this.helper.fillPedido(pedido, rs);\n \n Usuario usuario = new Usuario();\n this.helper.fillUsuario(usuario, rs);\n pedido.setSolicitante(usuario);\n \n Produto produto = new Produto();\n this.helper.fillProduto(produto, rs);\n \n PedidoProduto pedidoProduto = new PedidoProduto();\n this.helper.fillPedidoProduto(pedidoProduto, pedido, produto, rs);\n \n pedidosProdutos.add(pedidoProduto);\n }\n connFac.closeAll(rs, stmt, st, conn);\n return pedidosProdutos;\n } catch (SQLException error) {\n Methods.getLogger().error(\"PedidoDAO.selecionarPorId: \" + error);\n throw new RuntimeException(\"PedidoDAO.selecionarPorId: \" + error);\n }\n }",
"public List<Tb_Prod_Painel_PromoBeans> getProdPainelTabelas(Integer terminal, String painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel in(\" + painel + \") order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal); \r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>(); \r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }",
"public List<InsumoPedidoProveedorDAO> listarInsumosPedidos(){\n ArrayList<InsumoPedidoProveedorDAO> insumos_pedidos_proveedor = new ArrayList<InsumoPedidoProveedorDAO>();\n List<InsumoPedido> insumos_pedidos = this.procedureQueryPedido.listarInsumosPedidos();\n \n for (int i = 0; i< insumos_pedidos.size();i++){\n InsumoPedidoProveedorDAO ins = new InsumoPedidoProveedorDAO();\n ins.setInsumoPedido(insumos_pedidos.get(i));\n Insumo insumo = new Insumo();\n insumo = insumoService.retornarInsumoById(insumos_pedidos.get(i).getIdInsumo().getIdInsumo());\n ins.setInsumo(insumo);\n ins.setProveedores(this.procedureQueryPedido.listarProveedoresConInsumoPedido(BigInteger.valueOf(insumo.getIdInsumo())));\n insumos_pedidos_proveedor.add(ins);\n }\n return insumos_pedidos_proveedor;\n //return this.insumoPedidoDao.findAll();\n }",
"public interface ProgramaTVDAO {\n\t/**\n\t * Crea una nueva monitorización\n\t * @param titulo Título del programa\n\t * @param episodeCode Código del Episodio (ej. T01E03)\n\t * @param fechaInicio Fecha y hora de Inicio\n\t * @param fechaFin Fecha y hora de Fin\n\t * @param hashtag Hashtag que se monitorizará\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV crearMonitorizacion(String titulo, String episodeCode, Date fechaInicio, Date fechaFin, String hashtag);\n\n\t/**\n\t * Monitorización por clave primaria\n\t * @param primaryKey Clave primaria\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV programaPorId(Long primaryKey);\n\t\n\t/**\n\t * Todas las monitorizaciones que llevan el mismo hashtag\n\t * @param hashtag Hashtag\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> ProgramasPorHashtag(String hashtag);\n\t\n\t/**\n\t * Lista de monitorizaciones del mismo programa\n\t * @param titulo Título del programa\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> programasPorTitulo(String titulo);\n\t\n\t /**\n\t * Todas las monitorizaciones\n\t * @return Lists de todos los objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> todosLosProgramas();\n\t\n\t/**\n\t * Top 5 programas más vistos\n\t * @return Array ordenado de los 5 programas más vistos\n\t */\n\tpublic ProgramaTV[] programasTop5();\n\n\t/**\n\t * Actualiza monitorizacion\n\t * @param prog Objeto ProgramaTV\n\t */\n\tpublic void updateProgramaTV(ProgramaTV prog);\n\n\n\t/**\n\t * Borra una monitorización\n\t * @param prog Clave primaria de la monitorización\n\t */\n\tpublic void deleteProgramaTV(Long prog);\n\t\n\t/**\n\t * Borra todos los programas\n\t */\n\tpublic void deleteAll();\n\t\n\n\t\n\n\t}",
"public <T> List<T> obtem(BaseJDBC baseJDBC, Class<T> classe, Object condicao, int profundidade, Class<?>[] classes, int classesVerifica, List<OMObtido> jaObtidos) throws Exception\r\n\t{\r\n\t\tObject objeto;\r\n\t\tAnnotation[] annotations;\r\n\t\tAnnotation annotation;\r\n\t\tField[] fields;\r\n\t\tField field;\r\n\t\tObject id;\r\n\t\tboolean consideraIgnora = classesVerifica==CONSIDERAR_CLASSES;\r\n\t\t\r\n\t\tResultSQL resultSQL=null;\r\n\t\tif(condicao instanceof String)\r\n\t\t{ \r\n\t\t\tresultSQL = baseJDBC.executaSelect((String)condicao, false);\r\n\t\t}\r\n\t\telse if(condicao instanceof QuerySQL)\r\n\t\t{\r\n\t\t\tresultSQL = baseJDBC.executaSelect(((QuerySQL)condicao).toString(baseJDBC), false); \r\n\t\t}\r\n\t\telse if(condicao instanceof Long)\r\n\t\t{\r\n\t\t\tQuerySQL querySQL = BaseDAOSQL.classeToSelectRegistroSQL(classe, (Long)condicao, baseJDBC);\r\n\t\t\tresultSQL = baseJDBC.executaSelect(querySQL.toString(baseJDBC), false);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthrow new Exception(\"Parametro desconhecido: 'condicao' em obtem, BaseDAO: \" + condicao);\r\n\t\t}\r\n\t\t\r\n\t\tList<T> lista = BaseDAOSQL.resultSQLToList(classe, resultSQL);\r\n\t\t//jaObtidos.addAll(lista);\r\n\t\tif(profundidade>-1)\r\n\t\t{\r\n\t\t\tfor(int i=0; i<lista.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tobjeto = lista.get(i);\r\n\t\t\t\tfields = getFields(objeto.getClass());\r\n\t\t\t\tfor(int j=0; j<fields.length; j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tfield = fields[j];\r\n\t\t\t\t\tannotations = getAnnotations(field);\r\n\t\t\t\t\tfor(int k=0; k<annotations.length; k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tannotation = annotations[k];\r\n\t\t\t\t\t\tif(annotation instanceof JoinColumn)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tid = resultSQL.get(i, ((JoinColumn)annotation).name());\r\n\t\t\t\t\t\t\tif(id!=null)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\r\n\t\t\t\t\t\t\t\tif((classes==null && classesVerifica==CONSIDERAR_CLASSES) || (classes!=null && contem(field.getType(), classes)==consideraIgnora))\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tfield.set(objeto, buscaRegistro(baseJDBC, field.getType(), id, profundidade-1, classes, classesVerifica, jaObtidos));\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\treturn lista;\r\n\t}",
"@Override\n public ArrayList<Propiedad> getPropiedadesCliente() throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO \"\n + \"= 'Activo'\");\n return resultado;\n }",
"public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }",
"public void populateListaObjetos() {\n listaObjetos.clear();\n Session session = HibernateUtil.getSessionFactory().openSession();\n try {\n String tipo = null;\n if (selectedTipo.equals(\"submenu\")) {\n tipo = \"menu\";\n } else if (selectedTipo.equals(\"accion\")) {\n tipo = \"submenu\";\n }\n\n Criteria cObjetos = session.createCriteria(Tblobjeto.class);\n cObjetos.add(Restrictions.eq(\"tipoObjeto\", tipo));\n Iterator iteObjetos = cObjetos.list().iterator();\n while (iteObjetos.hasNext()) {\n Tblobjeto o = (Tblobjeto) iteObjetos.next();\n listaObjetos.add(new SelectItem(new Short(o.getIdObjeto()).toString(), o.getNombreObjeto(), \"\"));\n }\n } catch (HibernateException e) {\n //logger.throwing(getClass().getName(), \"populateListaObjetos\", e);\n } finally {\n session.close();\n }\n }",
"public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public ListaPartidas recuperarPartidas() throws SQLException {\n ListaPartidas listaPartidas = null;\n try {\n getConexion();\n String consulta = \"SELECT MANOS.id_mano, CARTAS.valor, CARTAS.palo, JUGADORES.nombre, PARTIDAS.id_partida \" +\n \"FROM MANOS \" +\n \"LEFT JOIN PARTIDAS ON PARTIDAS.id_mano = MANOS.id_mano \" +\n \"LEFT JOIN CARTAS ON CARTAS.id_carta = MANOS.id_carta \" +\n \"LEFT JOIN JUGADORES ON JUGADORES.id_jug = PARTIDAS.id_jug \" +\n \"ORDER BY PARTIDAS.id_mano\";\n Statement statement = conexion.createStatement();\n ResultSet registros = statement.executeQuery(consulta);\n // Compruebo que se han devuelto datos\n if (registros.next()) {\n // Inicializo el contenedor que se devolverá\n listaPartidas = new ListaPartidas();\n // Declaro e inicializo los objetos que servirán de buffer para añadir datos a cada partida\n LinkedList<Jugador> listaJugadores = new LinkedList<Jugador>();\n LinkedList<Mano> resultado = new LinkedList<Mano>();\n Mano mano = new Mano();\n // Variable que sirve para controlar cuando hay una nueva partida\n int numPartida = registros.getInt(\"PARTIDAS.id_partida\");\n // Variable que sirve para controlar cuando hay una nueva mano\n int numMano = registros.getInt(\"MANOS.id_mano\");\n // Devuelvo el cursor del ResultSet a su posición inicial\n registros.beforeFirst();\n // Bucle encargado de añadir datos a los contenedores\n while (registros.next()) {\n // Declaración de variables\n String palo = registros.getString(\"CARTAS.palo\");\n String valor = registros.getString(\"CARTAS.valor\");\n String nombre = registros.getString(\"JUGADORES.nombre\");\n // Se crea una carta con el palo y el valor devuelto por la consulta SQL\n Carta carta = new Carta(palo, valor);\n // Agrego la carta a la mano\n mano.agregarCarta(carta);\n // Agrego jugadores al contenedor de jugadores controlando si hay duplicados\n if (!listaJugadores.contains(nombre) || listaJugadores.isEmpty()) {\n Jugador jugador = new Jugador(nombre);\n listaJugadores.add(jugador);\n }\n // Cuando hay una nueva mano, la añado al contenedor resultados y creo una nueva Mano\n if (numMano != registros.getInt(\"MANOS.id_mano\") || registros.isLast()) {\n numMano = registros.getInt(\"MANOS.id_mano\");\n mano.setPropietario(nombre);\n resultado.add(mano);\n mano = new Mano();\n }\n // Cuando hay una nueva partida, guardo un objeto Partida en el contenedor de partidas\n if (numPartida != registros.getInt(\"PARTIDAS.id_partida\") || registros.isLast()) {\n numPartida = registros.getInt(\"PARTIDAS.id_partida\");\n Partida partida = new Partida(numPartida, listaJugadores, resultado);\n listaPartidas.agregarPartida(partida);\n // Reinicio los buffers de datos\n listaJugadores = new LinkedList<Jugador>();\n resultado = new LinkedList<Mano>();\n }\n }\n }\n } finally {\n closeConexion();\n }\n return listaPartidas;\n }",
"List<ParqueaderoEntidad> listar();",
"public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }",
"@Override\r\n public List<QuestaoDiscursiva> consultarTodosQuestaoDiscursiva()\r\n throws Exception {\n return rnQuestaoDiscursiva.consultarTodos();\r\n }",
"private List<Produto> todosProdutos() {\n\t\treturn produtoService.todosProdutos();\n\t}",
"@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }",
"private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }",
"public static void llenarListaProcesados() {\n List<String> lista = Datos.getInstance().getDocumentos();\n if (lista == null) {\n return;\n }\n modelProcesados.clear();\n for (String s : lista) {\n modelProcesados.addElement(s);\n }\n\n }",
"@Override\n public List recuperarTodosLosElementos(Class clase) {\n Query query = database.query();\n query.constrain(clase);\n ObjectSet result = query.execute();\n return result;\n }",
"@Override\n public Collection<FasciaOrariaBean> doRetrieveAll() throws SQLException {\n Connection con = null;\n PreparedStatement statement = null;\n String sql = \"SELECT * FROM fasciaoraria\";\n ArrayList<FasciaOrariaBean> collection = new ArrayList<>();\n try {\n con = DriverManagerConnectionPool.getConnection();\n statement = con.prepareStatement(sql);\n System.out.println(\"DoRetriveAll\" + statement);\n ResultSet rs = statement.executeQuery();\n while (rs.next()) {\n FasciaOrariaBean bean = new FasciaOrariaBean();\n bean.setId(rs.getInt(\"id\"));\n bean.setFascia(rs.getString(\"fascia\"));\n collection.add(bean);\n }\n return collection;\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n\n try {\n\n statement.close();\n DriverManagerConnectionPool.releaseConnection(con);\n\n } catch (SQLException e) {\n\n e.printStackTrace();\n }\n }\n return collection;\n }",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"@Override\n public ArrayList<Comentario> getComentarios(String pId) throws SQLException {\n ArrayList<Comentario> comentarios = new ArrayList<Comentario>();\n comentarios = (ArrayList<Comentario>) bdComentario.selectQuery(\"SELECT * FROM COMENTARIO WHERE \"\n + \"ID_PROPIEDAD = \" + pId);\n return comentarios;\n }",
"public interface PersistenceFinalTaskDao {\n\t\n\t/**\n\t * Persiste el total de operaciones en la tabla\n\t * de reporte final\n\t */\n\tpublic void persisteMontoOperaciones(BigDecimal montoTotal, String idProceso);\n\n\t/**\n\t * \n\t * obtiene la sumatoria de los montos de todas las\n\t * operaciones correspondienes a la carga de \n\t * un archivo de operaciones\n\t * \n\t */\n\tpublic BigDecimal conteoTotalDeOperaciones(String idProceso, String schema);\n\n\t/**\n\t * \n\t * Metodo para obtener el numero de errores\n\t * contenidos en un proceso @idProceso\n\t * \n\t * @param idProceso\n\t * @param schema\n\t * @return numero de errores correspontienes al proceso\n\t */\n\tpublic int numeroDeRegistrosCargadosConError(String idProceso, String schema);\n\n\t/**\n\t * Recibe sentencias sql para persistir,\n\t * el metodo itera la lista de sentencias\n\t * regresa el numero de registros insertados\n\t * el cual deberia ser igual al numero de sentencias recibidas\n\t * entro de la lista\n\t *\n\t * @param listQuriesToPersistence\n\t * @return\n\t */\n\tpublic int persisteInformacionArrayQuries(List<String> listQuriesToPersistence, String idProceso);\n\t\n\t/**\n\t * Metodo que contiene el llamado a base de datos para hacer \n\t * el select inser de los registros que no fueron marcados\n\t * como update y tampoco fueron rechazados.\n\t * \n\t * @param queryInserSelect\n\t * @param idProceso\n\t * @return numero de registros afectados\n\t * @throws Exception \n\t */\n\tpublic int persisteInformacionInsertSelect(String queryInserSelect, String idProceso) throws Exception;\n\t\n}",
"public void executar() {\n\t\tSystem.out.println(dao.getListaPorNome(\"abacatão\"));\n\t}",
"@PostConstruct\r\n void init() {\n UsuarioDAO u = new UsuarioDAO();\r\n HttpSession session = SessionUtils.getSession();\r\n\r\n long id;\r\n int perfil;\r\n try {\r\n perfil = (int) session.getAttribute(\"perfil\");\r\n id = (long) session.getAttribute(\"id\");\r\n\r\n UsuarioDAO uDAO = new UsuarioDAO();\r\n usuario = uDAO.findUsuario(id);\r\n\r\n // COMPRUEBO SI EL ESTUDIANTE YA INGRESO DATOS DE SU PASANTIA PREVIAMENTE\r\n PasantiaDAO passDAO = new PasantiaDAO();\r\n existe = passDAO.existePasantia(id);\r\n\r\n if (existe) {\r\n p = passDAO.findPasantia(id);\r\n EncargadoDAO encarDAO = new EncargadoDAO();\r\n enc = encarDAO.findEncargado(p.getEncargado().getId_encargado());\r\n EmpresaDAO empreDAO = new EmpresaDAO();\r\n emp = empreDAO.findEmpresa(enc.getEmpresa().getId_empresa());\r\n //Encuentro la pasantia PERO QUE SEA DE IDPROCESO = 1 OSEA DATOSBASICOS\r\n DetallePasantiaDAO dpDAO = new DetallePasantiaDAO();\r\n dpp = dpDAO.findDetallePasantiaPorProceso(p.getTipo_ppp(), p.getCod_ppp(),1);\r\n \r\n //Obtengo la observacion hecha por el gestor\r\n texto_alerta = dpp.getObservacion();\r\n \r\n //Compruebo que no sea null\r\n if (texto_alerta != null && !texto_alerta.trim().equalsIgnoreCase(\"\")){\r\n existeTexto = true;\r\n }else{\r\n existeTexto = false;\r\n }\r\n \r\n //Traer el listado de los datos guardados\r\n DatosDAO dDbDAO = new DatosDAO();\r\n dDbObtenidos = dDbDAO.datosPorDetallePasantia(dpp.getIdDetallePasantia());\r\n llenarDatosAPintar(dDbObtenidos);\r\n System.out.println(\"\");\r\n //\r\n \r\n }else{\r\n Arrays.fill(datosAPintar, true);\r\n }\r\n \r\n \r\n } catch (Exception e) {\r\n //p = null;\r\n System.out.println(\"========== ERROR AL TRAER INFO DE USUARIO ==============0\");\r\n }\r\n\r\n }",
"@Override\n public List<Promocion> findAll() {\n return promocionRepository.findAll();\n }",
"public List selectAllFromProjeto() throws IOException {\n erro = false;\n List projetos = null;\n try{\n projetos = con.query(\"Select * from projeto\", new BeanPropertyRowMapper(Projeto.class));\n } catch (CannotGetJdbcConnectionException ex){\n logger.gravarDadosLog(\"ERRO\",\"SELECT\" , \"Não foi possivel realizar a consulta dos projetos cadastrados.\" + Arrays.toString(ex.getStackTrace()));\n erro = true;\n }\n if(!erro){\n logger.gravarDadosLog(\"INFO\", \"SELECT\" , \"A busca por projetos cadastrados foi realizada com sucesso.\");\n }\n erro = false;\n return projetos;\n }",
"public List<Departamento> obtenerInstancias() {\n List<Departamento> lstDepas = new ArrayList();\n if (conectado) {\n try {\n String Query = \"SELECT * FROM instancias ORDER BY nombre ASC\";\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n while (resultSet.next()) {\n Departamento depa = new Departamento();\n depa.setCodigo(resultSet.getString(\"codigo\"));\n depa.setNombre(resultSet.getString(\"nombre\"));\n depa.setJefe(resultSet.getString(\"jefe\"));\n lstDepas.add(depa);\n }\n Logy.m(\"Consulta de datos de las instancias: exitosa\");\n return lstDepas;\n\n } catch (SQLException ex) {\n Logy.me(\"Error!! en la consulta de datos en la tabla instancias\");\n return new ArrayList();\n }\n } else {\n Logy.me(\"Error!!! no se ha establecido previamente una conexion a la DB\");\n return lstDepas;\n }\n }",
"public interface ProcesoEDURegistroCalificacionEjecutivaDAO extends DAO {\n\n\n\t/** \n\t * Devuelve una lista de registros de cabeceras de cursos dictados\n\t * @param historicoCursoDictado\n\t * \t\t\tobjeto HistoricoCursoDictado poblado\n\t */\n\tpublic List getHistoricoCursoDictado(HistoricoCursoDictado historicoCursoDictado);\n\n\t/** \n\t * Devuelve una lista de registros de detalle de capacitadas\n\t * @param historicoCapacitadasDetalle\n\t * \t\t\tobjeto HistoricoCapacitadasDetalle poblado\n\t */\n\tpublic List getHistoricoCapacitadasDetalle(HistoricoCapacitadasDetalle historicoCapacitadasDetalle);\n\t\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora\n\t * @param historicoCapacitadasDetalle\n\t * \t\t\tobjeto HistoricoCapacitadasDetalle poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateEvaluacionInstructoraCapacitadas(HistoricoCapacitadasDetalle historicoCapacitadasDetalle, Usuario usuario);\n\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora\n\t * @param historicoCursoDictadoDetalle\n\t * \t\t\tobjeto HistoricoCursoDictadoDetalle poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateDetalleDictadoCalificacionEjecutiva(HistoricoCursoDictadoDetalle historicoCursoDictadoDetalle, Usuario usuario);\n\n\t/**\n\t * Actualiza la Evaluacin efectuada a la Instructora en el Resumen de Dictado\n\t * @param historicoCursoDictado\n\t * \t\t\tobjeto HistoricoCursoDictado poblado\n\t * @param usuario\n\t *\t\t\tobjeto Usuario para el registro de Auditora \n\t */\n\tpublic void updateDictadoCalificacionEjecutiva(HistoricoCursoDictado historicoCursoDictado, Usuario usuario);\n\n}",
"@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Inscripcion.findAll\", null);\n }",
"protected void exibirPacientes(){\n System.out.println(\"--- PACIENTES CADASTRADOS ----\");\r\n String comando = \"select * from paciente order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nomepaciente\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }",
"public interface ICampaniaDAO {\n\t/**\n\t * Crear la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid crearCampania(GestionPrecioDTO campania);\n\t\n\t\n\t/**\n\t * Actualizar la campania en el repositorio\n\t * @param campania\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, UserDto user);\n\t\n\t/** Metodo actualizarCampania, utilizado para actualizar una campania\n\t * @author srodriguez\n\t * 27/2/2015\n\t * @param campania\n\t * @param user\n\t * @return void\n\t */\n\tvoid actualizarCampania(GestionPrecioDTO campania, String user);\n\t\n\t/**\n\t * Buscar la campania por el código de referencia\n\t * de Loyalty\n\t * @param codigoCampaniaReferencia Código de Loyalty\n\t * @return\n\t */\n\tGestionPrecioDTO findCampania(String codigoCampaniaReferencia);\n /**\n * Verifica si una campania existe dado su clave primaria como\n * parámetro de búsqueda\n * @param id\n * @returnS\n */\n Boolean findExistsCampania(GestionPrecioID id) ;\n /**\n * Obtener todas las campanias existentes en el repositorio\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasPendientes() ;\n /**\n * Buscar un listado de campanias dado una plantilla de búsqueda y el\n * estado de cobro\n * @param gestionPrecio Plantilla de búsqueda\n * @param estadoCobro Estado de cobro. Ej: PENDIENTE, CONFIGURADA, COBRADA, EN CURSO, etc.\n * @return\n */\n Collection<GestionPrecioDTO> findCampaniasFiltros (GestionPrecioDTO gestionPrecio,String estadoCobro);\n \n /**\n * @author cbarahona\n * @param campania\n */\n void actualizarCampaniaLoyalty (GestionPrecioDTO campania);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasPendientesLazy (Integer firstResult, Integer pageSize, Boolean countAgain);\n \n SearchResultDTO<GestionPrecioDTO> findCampaniasFiltrosLazy (GestionPrecioDTO gestionPrecio, String estadoCobro,Integer firstResult, Integer pageSize, Boolean countAgain);\n \n GestionPrecioDTO findCampania(final String codigoReferencia, final Integer codigoCompania) throws SICException;\n \n void actualizarCampania(GestionPrecioDTO campania) throws SICException;\n \n /**\n * Metodo que valida si una campaña tiene participantes\n * @param codigoReferencia\n * @return\n * @throws SICException\n */\n Boolean tieneParticipantesCampania(String codigoReferencia) throws SICException;\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}",
"void initEsperaMaterialesOrdenDeCompra() {\n try {\n\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n if (request.getParameter(\"nroSolicitud\") != null) {\n codSolicitudMantenimiento = Integer.parseInt(request.getParameter(\"nroSolicitud\"));\n }\n con = (Util.openConnection(con));\n Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\n String consulta = \"\";\n //se lista los componentes a fabricar para programa_produccion\n\n consulta = \" SELECT SM.COD_SOLICITUD_MANTENIMIENTO, M.COD_MATERIAL,M.NOMBRE_MATERIAL, UM.COD_UNIDAD_MEDIDA, UM.NOMBRE_UNIDAD_MEDIDA,SCD.CANT_SOLICITADA FROM SOLICITUDES_MANTENIMIENTO SM \" +\n \" INNER JOIN SOLICITUDES_COMPRA SC ON SM.COD_SOLICITUD_COMPRA = SC.COD_SOLICITUD_COMPRA \" +\n \" INNER JOIN SOLICITUDES_COMPRA_DETALLE SCD ON SC.COD_SOLICITUD_COMPRA = SCD.COD_SOLICITUD_COMPRA \" +\n \" INNER JOIN MATERIALES M ON SCD.COD_MATERIAL=M.COD_MATERIAL \" +\n \" INNER JOIN UNIDADES_MEDIDA UM ON SCD.COD_UNIDAD_MEDIDA = UM.COD_UNIDAD_MEDIDA \" +\n \" WHERE SM.COD_SOLICITUD_MANTENIMIENTO = '\" + codSolicitudMantenimiento + \"'\";\n\n ResultSet rs = st.executeQuery(consulta);\n\n rs.last();\n int filas = rs.getRow();\n //programaProduccionList.clear();\n rs.first();\n materialesEnEsperaOrdenDeCompra.clear();\n for (int i = 0; i < filas; i++) {\n\n itemMateriales = new MaterialesSolicitudMantenimiento();\n itemMateriales.setCodSolicitudMantenimiento(rs.getString(\"COD_SOLICITUD_MANTENIMIENTO\"));\n itemMateriales.setCodMaterial(rs.getString(\"COD_MATERIAL\"));\n itemMateriales.setNombreMaterial(rs.getString(\"NOMBRE_MATERIAL\"));\n itemMateriales.setCodUnidadMedida(rs.getString(\"COD_UNIDAD_MEDIDA\"));\n itemMateriales.setNombreUnidadMedida(rs.getString(\"NOMBRE_UNIDAD_MEDIDA\"));\n itemMateriales.setCantidadSugerida(rs.getString(\"CANT_SOLICITADA\"));\n itemMateriales.setDisponible(this.getDisponible(rs.getString(\"COD_MATERIAL\")));\n\n materialesEnEsperaOrdenDeCompra.add(itemMateriales);\n rs.next();\n }\n if (rs != null) {\n rs.close();\n st.close();\n }\n this.getEstadoSolicitudCompraMateriales();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public Socio getSocioInfoAtualizar() {\n\n ArrayList<Socio> listaSocio = new ArrayList<Socio>();\n // iniciando a conexao\n connection = BancoDados.getInstance().getConnection();\n System.out.println(\"conectado e preparando listagem para pegar Socio\"); \n Statement stmt = null;\n\n\n try {\n stmt = connection.createStatement();\n ResultSet rs = stmt.executeQuery(\"SELECT * FROM alterados\");\n\n // Incluindo Socios na listaSocios que vai ser retornada\n while (rs.next()) {\n Socio socio = new Socio (rs.getString(\"nomeSocio\"),rs.getString(\"cpfSocio\"),rs.getString(\"rgSocio\"),\n rs.getString(\"matSocio\"),rs.getString(\"sexoSocio\"),rs.getString(\"diaNascSocio\"),\n rs.getString(\"mesNascSocio\"),rs.getString(\"anoNascSocio\"),rs.getString(\"enderecoSocio\"),\n rs.getString(\"numEndSocio\"),rs.getString(\"bairroSocio\"),rs.getString(\"cidadeSocio\"),\n rs.getString(\"estadoSocio\"),rs.getString(\"foneSocio\"),rs.getString(\"celSocio\"),\n rs.getString(\"emailSocio\"),rs.getString(\"blocoSocio\"), rs.getString(\"funcaoSocio\"),rs.getInt(\"idSocio\"), rs.getInt(\"idSocioPK\"));\n listaSocio.add(socio);\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n\n } finally {\n // este bloco finally sempre executa na instrução try para\n // fechar a conexão a cada conexão aberta\n try {\n stmt.close();\n connection.close();\n } catch (SQLException e) {\n System.out.println(\"Erro ao desconectar\" + e.getMessage());\n }\n }\n\n \n Socio socioMax = new Socio();\n\n socioMax = listaSocio.get(0);\n\n //Se houver mais de um socio na lista vai procurar o de maior ID\n if(listaSocio.size()-1 > 0){\n\n for(int i=0; i<= listaSocio.size()-1; i++){\n\n Socio socio = new Socio();\n socio = listaSocio.get(i);\n\n if(socio.getIdAlterado()>= socioMax.getIdAlterado() ){\n socioMax = socio;\n }\n\n }\n\n }\n //Se não pega o primeiro\n else {\n socioMax = listaSocio.get(0);\n \n }\n\n System.out.println(socioMax.getIdAlterado());\n\n //Retorna o socio de maior ID, logo o ultimo inserido.\n return socioMax;\n }",
"@Transactional(readOnly = true)\n public FilasPacientesDTO listar() {\n List<Color> lc = colorRepository.findAll();\n lc.forEach(color -> {\n List<Paciente> listaPorColor = pacienteRepository.findByColorIdOrderByDateAsc(color.getId());\n seleccionarFila(listaPorColor, color.getColor());\n });\n return filas;\n }",
"public List<Calificar> comentarios(){\n List<Calificar> comentarios = null;\n Session session = sessionFactory.openSession();\n Transaction tx = null;\n \n try{\n \n tx = session.beginTransaction();\n String hql = \"from Calificar\";\n Query query = session.createQuery(hql);\n comentarios = (List<Calificar>)query.list();\n tx.commit();\n \n } catch (Exception e) {\n if (tx != null) {\n tx.rollback();\n }\n e.printStackTrace();\n } finally {\n session.close();\n }\n \n return comentarios;\n }",
"public ArrayList<Proposta> retornaPropostasPeloIdCliente(int idCliente) {\n\n ArrayList<Proposta> listaDePropostas = new ArrayList<>();\n\n conectarnoBanco();\n\n String sql = \"SELECT * FROM proposta\";\n\n try {\n\n st = con.createStatement();\n\n rs = st.executeQuery(sql);\n\n while (rs.next()) {\n\n if(idCliente == rs.getInt(\"id_client\")){\n Proposta propostaTemp = new Proposta(rs.getString(\"propostaRealizada\"), rs.getFloat(\"valorProposta\"), rs.getInt(\"id_usuario\"), rs.getInt(\"id_projeto\"),rs.getInt(\"id_client\"));\n\n listaDePropostas.add(propostaTemp);\n }\n \n sucesso = true;\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao retornar propostas pelo id do cliente = \" + ex.getMessage());\n sucesso = false;\n } finally {\n try {\n\n if (con != null && pst != null) {\n con.close();\n pst.close();\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao fechar o bd = \" + ex.getMessage());\n }\n\n }\n\n return listaDePropostas;\n }",
"public List<Requisicion> getRequisicionesNoAutorizadas() throws Exception{\n \n List<Requisicion> requisicion = new ArrayList<>();\n \n Connection miConexion = null;\n Statement miStatement = null;\n ResultSet miResultset = null;\n \n //Establecer la conexion\n miConexion = origenDatos.getConexion();\n \n //Crear sentencia SQL y Statement\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 where r.AUTORIZADO = 1\";\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 Requisicion temporal = new Requisicion(numReq, fechaPedido, fechaEntrega, carnetEmpleado, nombreEmpleado, apellidoEmpleado, nombreDepartamento);\n requisicion.add(temporal);\n }\n \n return requisicion;\n \n }",
"public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }",
"public List<CXPFactura> buscarFacturasPendientes(){\r\n\t\treturn getFacturaDao().buscarFacturasPendientes();\r\n\t}",
"private void cargaPermisos() {\n habilitaCampos();\n \n //Abre la conexion\n Connection con = Star.conAbrBas(true, false);\n \n //Declara variables de la base de datos \n java.sql.Statement st;\n java.sql.ResultSet rs; \n String sQ;\n \n try {\n /*Obtiene todos los datos del usuario*/\n sQ = \"SELECT * FROM er_permisos WHERE FKIdUsuario = (SELECT id_id FROM estacs WHERE estac = '\"+jcmbUsuarios.getSelectedItem().toString()+\"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n if(rs.next())\n {\n /*Obtiene los datos y cargalos en sus campos*/\n llenaPermisos(rs,jcbConf,jcbConfCorreos,jcbConfDatos,jcbconfSeries,jcbConfImpresoras,jcbConfCambiarIcono,jcbConfConfiguraciones, jcbConfiguracionesPermiso,\n jcbUsuarios, jcbDefinirUsr, jcbUsrConectados, jcbPermisosUsr,jcbClaves, jcbReparar, jcbReparador, jcbRestaurar, jcbBaseDatos, jcbConexionesBD, jcbArchivoConf,jcbReportes, jcbRepUsuarios, jcbRepRespaldos, jcbRepLog, jcbRepEstadisticas, jcbRevocacion, jcbActivar,jcbSistemaPermiso,\n jcbContabilidad, jcbConceptos, jcbCatalogo, jcbZonas, jcbGiros, jcbMonedas, jcbImpuestos, jcbModulosPermiso,\n jcbCompras, jcbCancelarCompra, jcbDevolCompra, jcbParcialCompra, jcbNuevoCompra,jcbNotCompra, jcbVerCompra,jcbCargarArchivoCompra, jcbBorrarArchivoCompra, jcbRecibirCompra, jcbComprasPermiso,\n jcbProve, jcbProveNuevo, jcbProveModificar, jcbProveVer, jcbProveBorrar, jcbProveePermiso,\n jcbPrevioCompra, jcbNuevaPrevio, jcbAbrirPrevio, jcbVerPrevio, jcbCancelarPrevio, jcbSeriesPrevio,jcbCompraPrevio,jcbPrevioPermiso,\n jcbInventario, jcbProductos, jcbNuevoProd, jcbModificarProd, jcbBorrarProd, jcbInventarioPermiso,\n jcbClientes, jcbClieNuevo, jcbClieModificar, jcbClieVer, jcbClieBorrar, jcbClieEnviar, jcbClientesPermiso,\n jcbVentas, jcbCancelarVentas, jcbDevolVentas, jcbParcialVentas, jcbNuevaVentas, jcbNotVentas, jcbVerVentas, jcbEnviarVentas, jcbTimbrarVentas, jcbEntregarVentas, jcbComprobarVentas, jcbAcuseVentas, jcbObtenerXmlVentas, jcbFacturarVentas, jcbCargarArchivoVentas, jcbBorrarArchivoVentas, jcbVentasPermiso,\n jcbCotizaciones, jcbNuevaCotiza, jcbAbrirCotiza, jcbVerCotiza, jcbCancelarCotiza, jcbReenviarCotiza, jcbVentaCotiza, jcbCotizaPermiso);\n \n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n try {\n /*Obtiene todos los datos del usuario*/\n sQ = \"SELECT otorgaPermisosConfig, otorgaPermisosSistema, otorgaPermisosModulos, otorgaPermisosCompras, otorgaPermisosProvee, otorgaPermisosPrevio, otorgaPermisosInventario, otorgaPermisosClientes, otorgaPermisosVentas, otorgaPermisosCotiza FROM er_permisos WHERE FKIdUsuario = (SELECT id_id FROM estacs WHERE estac = '\"+Login.sUsrG+\"')\";\n st = con.createStatement();\n rs = st.executeQuery(sQ);\n /*Si hay datos*/\n if(rs.last())\n {\n //Desactiva los permisos a los cuales no tiene permiso el usuario actual\n revisaOtorgaPermisos(rs);\n \n }\n } catch (SQLException ex) {\n Logger.getLogger(PermsEstacs.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public List<ProveedorPromocionHotelEntity> getPromociones(){\n List<ProveedorPromocionHotelEntity>promociones = proveedorPromocionHotelPersistence.findAll();\n return promociones;\n }",
"public void iniciarProduccion(){\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(\"select nick from usuarios where nick in(select usuario from construcciones) or nick \"\n +\"in(select usuario from investigaciones) or nick in(select usuario from movimientos)\");\n\n while(rs.next()){\n produccion.add(new Construcciones(rs.getString(1)));\n System.out.println(rs.getString(1));\n }\n\n st.close();\n rs.close();\n conn.close();\n\n }catch(SQLException e){\n System.out.println(\"Fallo actualizacion de produccion.\");\n }\n}",
"public void buscarEstudiante(String codEstudiante){\n estudianteModificar=new Estudiante();\n estudianteGradoModificar=new EstudianteGrado();\n StringBuilder query=new StringBuilder();\n query.append(\"select e.idestudiante,e.nombre,e.apellido,e.ci,e.cod_est,e.idgrado,e.idcurso,g.grado,c.nombre_curso \" );\n query.append(\" from estudiante e \");\n query.append(\" inner join grado g on e.idgrado=g.idgrado \");\n query.append(\" inner join cursos c on e.idcurso=c.idcurso \");\n query.append(\" where idestudiante=? \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n pst.setInt(1, Integer.parseInt(codEstudiante));\n ResultSet resultado=pst.executeQuery();\n //utilizamos una condicion porque la busqueda nos devuelve 1 registro\n if(resultado.next()){\n //cargando la informacion a nuestro objeto categoriaModificarde tipo categoria\n estudianteModificar.setCodEstudiante(resultado.getInt(1));\n estudianteModificar.setNomEstudiante(resultado.getString(2));\n estudianteModificar.setApEstudiante(resultado.getString(3));\n estudianteModificar.setCiEstudiante(resultado.getInt(4));\n estudianteModificar.setCodigoEstudiante(resultado.getString(5));\n estudianteModificar.setIdgradoEstudiante(resultado.getInt(6));\n estudianteModificar.setIdCursoEstudiante(resultado.getInt(7));\n estudianteGradoModificar.setNomGrado(resultado.getString(8));\n estudianteGradoModificar.setNomCurso(resultado.getString(9));\n }\n } catch (SQLException e) {\n System.out.println(\"Error de conexion\");\n e.printStackTrace();\n }\n }",
"public void librosPorCategorian() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<LibroVO> resultado = new ArrayList();\n\t\t\tOwlDAO.actualizarCategorian(mysql);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}",
"@Override\n public Retorno_MsgObj obtenerLista() {\n PerManejador perManager = new PerManejador();\n\n return perManager.obtenerLista(\"Curso.findAll\", null);\n }",
"public List<Tb_Prod_Painel_PromoBeans> getProdPainelConfig(Integer terminal, Integer painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \"where terminal=? and painel=? order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal);\r\n pstm.setInt(2, painel);\r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>();\r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\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}",
"@GetMapping(\"/procesadors\")\n @Timed\n public List<Procesador> getAllProcesadors() {\n log.debug(\"REST request to get all Procesadors\");\n List<Procesador> procesadors = procesadorRepository.findAll();\n return procesadors;\n }",
"@Override\r\npublic List<Map<String, Object>> readAll() {\n\treturn detalle_pedidoDao.realAll();\r\n}",
"@Override\r\n\tpublic List<Turista> conMasPuntos() {\n\t\treturn (List<Turista>) turistaDAO.conMasPuntos();\r\n\t}",
"public ArrayList<ProductoDTO> mostrartodos() {\r\n\r\n\r\n PreparedStatement ps;\r\n ResultSet res;\r\n ArrayList<ProductoDTO> arr = new ArrayList();\r\n try {\r\n\r\n ps = conn.getConn().prepareStatement(SQL_READALL);\r\n res = ps.executeQuery();\r\n while (res.next()) {\r\n\r\n arr.add(new ProductoDTO(res.getInt(1), res.getString(2), res.getString(3), res.getInt(4), res.getInt(5), res.getString(6), res.getString(7), res.getString(8), res.getString(9)));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"error vuelva a intentar\");\r\n } finally {\r\n conn.cerrarconexion();\r\n\r\n }\r\n return arr;\r\n\r\n }",
"public List<Producto> listar() throws Exception {\n\t\ttry{\n\t\t\tthis.objCnx = new Conexion(\"MYSQL\");\n\t\t\tList<Producto> lista = new ArrayList<Producto>();\n\t\t\tthis.objCnx.conectarBD();\n\t\t\tString sql = \"SELECT t.idproducto, t.nombre_producto, t.imagen, t.idcategoria, t.idmarca, t.idmodelo, c.nombre as categoria, m.nombre as marca, d.nombre as modelo \"\n\t\t\t\t\t+ \" FROM conftbc_producto t INNER JOIN conftbc_categoria c on c.idcategoria = t.idcategoria\"\n\t\t\t\t\t+ \" INNER JOIN conftbc_marca m on m.idmarca = t.idmarca INNER JOIN conftbc_modelo d on d.idmodelo = t.idmodelo \";\n\t\t\tPreparedStatement ps = this.objCnx.cnx.prepareStatement(sql);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tProducto producto = new Producto();\n\t\t\t\tproducto.setIdproducto(rs.getInt(\"idproducto\"));\n\t\t\t\tproducto.setNombre(rs.getString(\"nombre_producto\"));\n\t\t\t\tproducto.setImagen(rs.getString(\"imagen\"));\n\t\t\t\tCategoria categoria = new Categoria();\n\t\t\t\tcategoria.setIdcategoria(rs.getInt(\"idcategoria\"));\n\t\t\t\tcategoria.setNombre(rs.getString(\"categoria\"));\n\t\t\t\tproducto.setCategoria(categoria);\n\t\t\t\tMarca marca = new Marca();\n\t\t\t\tmarca.setIdmarca(rs.getInt(\"idmarca\"));\n\t\t\t\tmarca.setNombre(rs.getString(\"marca\"));\n\t\t\t\tproducto.setMarca(marca);\n\t\t\t\tModelo modelo = new Modelo();\n\t\t\t\tmodelo.setIdmodelo(rs.getInt(\"idmodelo\"));\n\t\t\t\tmodelo.setNombre(rs.getString(\"modelo\"));\n\t\t\t\tproducto.setModelo(modelo);\n\t\t\t\tlista.add(producto);\n\t\t\t}\n\t\t\treturn lista;\n\t\t\t\n\t\t}catch(Exception ex){\n\t\t\tthis.objCnx.deshacerDB();\n\t\t\tthrow ex;\n\t\t}finally{\n\t\t\tthis.objCnx.closeDB();\n\t\t\tthis.objCnx = null;\n\t\t}\n\t}",
"public ArrayList<Proposta> retornaPropostasPeloIdFreela(int idUsuario) {\n\n ArrayList<Proposta> listaDePropostas = new ArrayList<>();\n\n conectarnoBanco();\n\n String sql = \"SELECT * FROM proposta\";\n\n try {\n\n st = con.createStatement();\n\n rs = st.executeQuery(sql);\n\n while (rs.next()) {\n\n if(idUsuario == rs.getInt(\"id_usuario\")){\n Proposta propostaTemp = new Proposta(rs.getString(\"propostaRealizada\"), rs.getFloat(\"valorProposta\"), rs.getInt(\"id_usuario\"), rs.getInt(\"id_projeto\"),rs.getInt(\"id_client\"));\n\n listaDePropostas.add(propostaTemp);\n }\n \n sucesso = true;\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao retornar propostas pelo id do Freelancer = \" + ex.getMessage());\n sucesso = false;\n } finally {\n try {\n\n if (con != null && pst != null) {\n con.close();\n pst.close();\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro ao fechar o bd = \" + ex.getMessage());\n }\n\n }\n\n return listaDePropostas;\n }",
"public Produto consultarProduto(Produto produto) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n PreparedStatement stmt = null;\r\n ResultSet rs = null;\r\n Produto cerveja = null;\r\n String sql = \"SELECT TBL_CERVEJARIA.ID_CERVEJARIA, TBL_CERVEJARIA.CERVEJARIA, TBL_CERVEJARIA.PAIS, \"\r\n + \"TBL_CERVEJA.ID_CERVEJA, TBL_CERVEJA.ID_CERVEJARIA AS \\\"FK_CERVEJARIA\\\", \"\r\n + \"TBL_CERVEJA.ROTULO, TBL_CERVEJA.PRECO, TBL_CERVEJA.VOLUME, TBL_CERVEJA.TEOR, TBL_CERVEJA.COR, TBL_CERVEJA.TEMPERATURA, \"\r\n + \"TBL_CERVEJA.FAMILIA_E_ESTILO, TBL_CERVEJA.DESCRICAO, TBL_CERVEJA.SABOR, TBL_CERVEJA.IMAGEM_1, TBL_CERVEJA.IMAGEM_2, TBL_CERVEJA.IMAGEM_3 \"\r\n + \"FROM TBL_CERVEJARIA \"\r\n + \"INNER JOIN TBL_CERVEJA \"\r\n + \"ON TBL_CERVEJARIA.ID_CERVEJARIA = TBL_CERVEJA.ID_CERVEJARIA \"\r\n + \"WHERE ID_CERVEJA = ?\";\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.prepareStatement(sql);\r\n stmt.setInt(1, produto.getIdCerveja());\r\n rs = stmt.executeQuery();\r\n if (rs.next()) {\r\n cerveja = new Produto();\r\n cerveja.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n cerveja.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n cerveja.setPais(rs.getString(\"PAIS\"));\r\n cerveja.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n cerveja.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n cerveja.setRotulo(rs.getString(\"ROTULO\"));\r\n cerveja.setPreco(rs.getString(\"PRECO\"));\r\n cerveja.setVolume(rs.getString(\"VOLUME\"));\r\n cerveja.setTeor(rs.getString(\"TEOR\"));\r\n cerveja.setCor(rs.getString(\"COR\"));\r\n cerveja.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n cerveja.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n cerveja.setDescricao(rs.getString(\"DESCRICAO\"));\r\n cerveja.setSabor(rs.getString(\"SABOR\"));\r\n cerveja.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n cerveja.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n cerveja.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n } else {\r\n return cerveja;\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return cerveja;\r\n }",
"public static ArrayList<Paciente> BuscarPacientesConConvenios(Empresa emp) {\n Session sesion;\n Transaction tr = null;\n ArrayList<Paciente> lis = null;\n String hql;\n try{ \n sesion = NewHibernateUtil.getSessionFactory().openSession();\n tr = sesion.beginTransaction();\n hql = \"SELECT DISTINCT c.paciente FROM Convenio c WHERE c.estado = 'Activo' AND c.empresa = \"+emp.getIdempresa();\n Query query = sesion.createQuery(hql); \n Iterator<Paciente> it = query.iterate();\n if(it.hasNext()){\n lis = new ArrayList();\n while(it.hasNext()){\n lis.add(it.next());\n }\n }\n }catch(HibernateException ex){\n JOptionPane.showMessageDialog(null, \"Error al conectarse con Base de Datos\", \"Convenio Controlador\", JOptionPane.INFORMATION_MESSAGE);\n }\n return lis;\n }",
"public interface MaestroPersonalDAO {\n\tpublic MaestroPersonalBean obtenerPersonaxUsuario(String cod_user)\n\tthrows DataAccessException;\n\t\n\tpublic MaestroPersonalBean obtenerPersonaxCodigo(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic MaestroPersonalBean obtenerPersonaxRegistro(String cod_reg)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerCorreoEmpleado(Map<String,Object> parm)\n\t\t\tthrows DataAccessException;\n\t\n\tpublic String obtenerRegistroPersonal(String cod_user)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerJefeInmediato(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerIntendente(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobador(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobadorAUC(String cod_auc)\n\tthrows DataAccessException;\n\t\n\tpublic String esIntendente(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String esAprobador(String cod_empl)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerSuperIntendente(String cod_empl)\n\tthrows DataAccessException;\n\t\n\t\n\tpublic String esJefeUBG(String cod_empl)\n\tthrows DataAccessException;\n\n\tpublic Collection<MaestroPersonalBean> listarMaestroPersonal(Map parm)\n\tthrows DataAccessException;\n\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonal(Map parm)\n\t\t\tthrows DataAccessException ;\n\t\n\t\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonalInactivo(Map parm)\n\t\t\tthrows DataAccessException ;\n\t\n\t\n\t\n\t\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonalMovilidad(Map parm)\n\t\t\tthrows DataAccessException ;\n\tpublic Collection<MaestroPersonalBean> buscarMaestroPersonalViaticos(Map parm)\n\t\t\tthrows DataAccessException ;\n\tpublic String obtenerJefeInmediatoEncargado(String cod_empl, String cod_encargado)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobadorEncargado(String cod_empl, String cod_encargado)\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerAprobadorEncargadoAUC(String cod_auc, String cod_encargado)\n\tthrows DataAccessException;\n\t\n\tpublic String esAprobadorEncargado(String cod_empl)\n\tthrows DataAccessException;\n\t\n////////////////////////////////////////////////////////////////////////\t\n\tpublic String esJefe(String cod_empl, String cod_dep )\n\tthrows DataAccessException;\n\t\n\tpublic String obtenerJefeAuc(String cod_dep)\n\tthrows DataAccessException;\n\t\n\tpublic String esJefeInmediatoEncargado(String cod_empl, String cod_enca)\n\tthrows DataAccessException;\n\t\n\tpublic String verificaEncargo(String cod_empl, String cod_enca)\n\tthrows DataAccessException;\n\t\n\tpublic MaestroPersonalBean obtenerCategoriaGasto(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic String determinaJefeInmediatoEncargadoMovilidad(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic String determinaAutorizadorGastoMovilidad(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic String determinaAutorizadorGastoViatico(String codigoEmpleado) throws DataAccessException;\n\t\n\tpublic List<MaestroPersonalBean> buscarMaestroPersonalComisionadoInactivo(Map<String, Object> parm) throws DataAccessException;\n\n\tpublic String buscarNombreAutorizador(String codigoEmpleado) throws Exception;\n\t\n\t//PAS201780000300007\n\tpublic boolean esPerfilColaboradorJefe(String codDependencia,String codEmpleado ) throws DataAccessException;\n\tpublic boolean esPerfilColaboradorEncargado(String codDependencia,String codEmpleado ) throws DataAccessException;\n\tpublic abstract boolean esEncargadoOtraUuoo(String codEmpleado) throws DataAccessException;\n\tpublic abstract boolean esEncargadoAuc(String codEmpleado) throws DataAccessException;\n\tpublic String obtenerCadenaUuoosQueEsJefe(String codEmpleadoJefe) throws DataAccessException;\n}",
"public List<Usuario> getAll(){\n String sql = \"SELECT * FROM usuarios \" +\n \" INNER JOIN ciudades ON ciudades.id = usuarios.id_ciudad\" +\n \" INNER JOIN provincias ON provincias.id = usuarios.id_provincia\" +\n \" INNER JOIN paises ON paises.id = usuarios.id_pais\";\n try {\n Statement st = conn.createStatement();\n ResultSet rs = st.executeQuery(sql);\n List<Usuario> usuarios = new ArrayList<Usuario>();\n while (rs.next()){\n Ciudad ciudad = new Ciudad(rs.getInt(\"ciudades.id\"),rs.getString(\"ciudades.nombre\"));\n\n Provincia provincia = new Provincia(rs.getInt(\"provincias.id\"),rs.getString(\"provincias.nombre\"));\n\n Pais pais = new Pais(rs.getInt(\"paises.id\"),rs.getString(\"paises.nombre\"));\n\n Usuario usuario = new Usuario(rs.getString(\"nombre\"),rs.getString(\"apellido\"),\n rs.getString(\"direccion\"), rs.getString(\"telefono\"),\n ciudad, provincia, pais, rs.getString(\"email\"),\n rs.getString(\"username\"), rs.getString(\"contrasena\"));\n usuario.setId(rs.getInt(\"usuarios.id\"));\n usuarios.add(usuario);\n }\n return usuarios;\n }catch (SQLException e){\n e.printStackTrace();\n }\n return null;\n }",
"public void buscaTodasOSs() {\n try {\n ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()\n ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável\n\n DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();\n // coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela\n\n for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {\n modeloTabela.removeRow(i);\n // loop que limpa a tabela antes de ser atualizada\n }\n\n for (int i = 0; i < cl.size(); i++) {\n // loop que pega os dados e insere na tabela\n Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo \n dados[0] = cl.get(i).getNumero_OS();\n dados[3] = cl.get(i).getStatus_OS();\n dados[4] = cl.get(i).getDefeito_OS();\n dados[5] = cl.get(i).getDataAbertura_OS();\n dados[6] = cl.get(i).getDataFechamento_OS();\n\n // pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos\n modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD\n }\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Falha na operação.\\nErro: \" + ex.getMessage());\n } catch (Exception ex) {\n Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private List<PromocionConcursoAgr> listaPromocionConcursoAgr() {\r\n\t\tString select = \" select distinct(puesto_det.*) \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab \"\r\n\t\t\t\t+ \"on estado_cab.id_estado_cab = estado_det.id_estado_cab \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial cargo \"\r\n\t\t\t\t+ \"on cargo.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \" where puesto_det.id_concurso_puesto_agr is null \"\r\n\t\t\t\t+ \"and lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and lower(estado_cab.descripcion) = 'concurso' \"\r\n\t\t\t\t//+ \"and puesto_det.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t//+ \" and cargo.permanente is true\"\r\n\t\t\t\t;\r\n\r\n\t\tList<PromocionConcursoAgr> lista = new ArrayList<PromocionConcursoAgr>();\r\n\t\tlista = em.createNativeQuery(select, PromocionConcursoAgr.class)\r\n\t\t\t\t.getResultList();\r\n\r\n\t\treturn lista;\r\n\t}",
"public List<Soldados> conectar(){\n EntityManagerFactory conexion = Persistence.createEntityManagerFactory(\"ABP_Servicio_MilitarPU\");\n //creamos una instancia de la clase controller\n SoldadosJpaController tablasoldado = new SoldadosJpaController(conexion);\n //creamos una lista de soldados\n List<Soldados> listasoldado = tablasoldado.findSoldadosEntities();\n \n return listasoldado;\n }",
"@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 }",
"private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.println(\"\\t** Lista dos produtos cadastrados **\\n\");\r\n }\r\n for (Produto p : lista) {\r\n if (p != null && p.getID() != -1) {\r\n nomeCategoria = getNomeCategoria(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (nomeCategoria != null) {\r\n System.out.println(\"Categoria: \" + nomeCategoria);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n System.out.println();\r\n Thread.sleep(500);\r\n }\r\n }\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ComPermiso> escuelas() {\n\t\t\r\n\t\treturn em.createQuery(\"select c.dependencia.id,c.dependencia.nombre from ComPermiso c \").getResultList();\r\n\t}",
"public void generarDocumentosCoactivosAnteriores() {\n\n try {\n\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"Set Language 'Español'\");\n\n Query update = em.createNativeQuery(sql.toString());\n update.executeUpdate();\n\n // Consulta de coactivos\n sql = new StringBuilder();\n sql.append(\n \"SELECT c.id_proceso, c.id_coactivo, p.fecha_inicio, c.valor_total_obligaciones, p.numero_proceso, tp.id_trazabilidad_proceso , tp2.id_trazabilidad_proceso as traza2 \");\n sql.append(\"FROM coactivo c \");\n sql.append(\"JOIN proceso p ON p.id_proceso = c.id_proceso \");\n sql.append(\"JOIN trazabilidad_proceso tp ON p.id_proceso = tp.id_proceso \");\n sql.append(\"AND tp.id_estado_proceso = 22 \");\n sql.append(\"JOIN trazabilidad_proceso tp2 ON p.id_proceso = tp2.id_proceso \");\n sql.append(\"AND tp2.id_estado_proceso = 24 \");\n sql.append(\"WHERE NOT EXISTS (SELECT 1 FROM trazabilidad_proceso tp \");\n sql.append(\n \"WHERE EXISTS (select 1 from documento_proceso dp where dp.id_trazabilidad_proceso = tp.id_trazabilidad_proceso) \");\n sql.append(\"AND tp.id_proceso = p.id_proceso) \");\n sql.append(\"AND CAST(p.numero_proceso AS bigint) <= 6179 \");\n sql.append(\"ORDER BY c.id_coactivo\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n @SuppressWarnings(\"unchecked\")\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n for (Object[] filaCoactivo : listaResultados) {\n iLCoactivo.generarDocumentosAnteriores(filaCoactivo);\n }\n } catch (Exception e) {\n logger.error(\"Error en generación de documento de apertura de coactivo\", e);\n\n }\n }",
"public List<Sic3docuprod> obtDetOperacionesXProductos(Sic3docuprod objDocuprod) throws Exception{\n \n List<Sic3docuprod> list = new ArrayList<>();\n\n StoredProcedure Sp = null;\n ResultSet rsConsulta = null;\n \n BigDecimal fecDesde = null;\n BigDecimal fecHasta = null;\n String strCodProd = null;\n\n try{\n \n session = HibernateUtil.getSessionFactory().openSession();\n \n log.debug(\"=============== obtDetOperacionesXProductos ==================\");\n \n if(objDocuprod.getSic1docu() != null && \n objDocuprod.getSic1docu().getFecDesde() != null){\n fecDesde = UtilClass.convertDateToNumber(objDocuprod.getSic1docu().getFecDesde());\n }\n \n if(objDocuprod.getSic1docu() != null && \n objDocuprod.getSic1docu().getFecHasta()!= null){\n fecDesde = UtilClass.convertDateToNumber(objDocuprod.getSic1docu().getFecHasta());\n }\n \n if(objDocuprod.getSic1prod() != null && objDocuprod.getSic1prod().getCodProd() !=null)\n strCodProd = objDocuprod.getSic1prod().getCodProd().trim();\n \n Sp = new StoredProcedure(\"PKG_SICCONSPROD.PRC_SICOBTDETPROD\");\n Sp.addParameter(new InParameter(\"X_ID_PROD\", Types.INTEGER, objDocuprod.getSic1prod().getIdProd()));\n Sp.addParameter(new InParameter(\"X_COD_PROD\", Types.VARCHAR, strCodProd));\n Sp.addParameter(new InParameter(\"X_ID_SCLASEEVEN\", Types.INTEGER, objDocuprod.getSic1docu().getIdSclaseeven()));\n Sp.addParameter(new InParameter(\"X_FEC_DESDE\", Types.NUMERIC, fecDesde));\n Sp.addParameter(new InParameter(\"X_FEC_HASTA\", Types.NUMERIC, fecHasta));\n Sp.addParameter(new InParameter(\"X_ID_DOCU\", Types.INTEGER, objDocuprod.getSic1docu().getIdDocu()));\n Sp.addParameter(new InParameter(\"X_COD_SERIE\", Types.VARCHAR, objDocuprod.getSic1docu().getCodSerie()));\n Sp.addParameter(new InParameter(\"X_NUM_DOCU\", Types.INTEGER, objDocuprod.getSic1docu().getNumDocu()));\n Sp.addParameter(new InParameter(\"X_ID_ESTADOCU\",Types.INTEGER, null));\n \n Sp.addParameter(new OutParameter(\"X_CURSOR\", OracleTypes.CURSOR)); \n Sp.addParameter(new OutParameter(\"X_ID_ERROR\", Types.INTEGER));\n Sp.addParameter(new OutParameter(\"X_DES_ERROR\", Types.VARCHAR));\n \n \n rsConsulta = Sp.ExecuteResultCursor(((SessionImpl)session).connection(),10); \n \n while(rsConsulta.next()){\n \n //Proveedor O Cliente\n Sic1pers objPers = new Sic1pers();\n objPers.setDesPers(rsConsulta.getString(\"DES_PERS\"));\n \n //TIPO DE OPERACION\n Sic1sclaseeven objSclaseeven = new Sic1sclaseeven();\n objSclaseeven.setIdClaseeven(rsConsulta.getBigDecimal(\"ID_SCLASEEVEN\"));\n objSclaseeven.setCodSclaseeven(rsConsulta.getString(\"COD_SCLASEEVEN\"));\n objSclaseeven.setDesSclaseeven(rsConsulta.getString(\"DES_SCLASEEVEN\"));\n\n /*ESTADO DE LA OPERACION*/\n Sic3docuesta objDocuesta = new Sic3docuesta();\n objDocuesta.setDesEsta(rsConsulta.getString(\"DES_ESTA\"));\n \n /*TIPO DE DOCUMENTO*/\n Sic1stipodocu sic1stipodocu = new Sic1stipodocu();\n sic1stipodocu.setDesStipodocu(rsConsulta.getString(\"DES_STIPODOCU\"));\n \n /*Documentos Relacionados*/\n Sic1docu objDocuRel = new Sic1docu();\n objDocuRel.setIdDocu(rsConsulta.getBigDecimal(\"ID_DOCUREL\"));\n objDocuRel.setNumDocuunido(rsConsulta.getString(\"NUM_DOCUUNIDO\"));\n \n Sic3docudocu objDocusRela = new Sic3docudocu();\n objDocusRela.setSic1docurel(objDocuRel);\n \n //Cabecera de la operacion(Compra o Venta)\n Sic1docu objDocu = new Sic1docu();\n objDocu.setIdDocu(rsConsulta.getBigDecimal(\"ID_DOCU\"));\n objDocu.setFecDesde(rsConsulta.getDate(\"FEC_OPERACION\"));\n objDocu.setSic1stipodocu(sic1stipodocu);\n objDocu.setCodSerie(rsConsulta.getString(\"COD_SERIE\"));\n objDocu.setNumDocu(rsConsulta.getBigDecimal(\"NUM_DOCU\"));\n objDocu.setSic1persexterno(objPers);\n objDocu.setSic1sclaseeven(objSclaseeven);\n objDocu.setSic3docuesta(objDocuesta);\n objDocu.setSic3docudocu(objDocusRela);\n \n /*DATOS DE PRODUCTO*/\n Sic1prod objProd = new Sic1prod();\n objProd.setIdProd(rsConsulta.getBigDecimal(\"ID_PROD\"));\n objProd.setCodProd(rsConsulta.getString(\"COD_PROD\"));\n objProd.setDesProd(rsConsulta.getString(\"DES_PROD\"));\n objProd.setNumCantstock(rsConsulta.getBigDecimal(\"NUM_CANTSTOCK\"));\n \n \n \n /**/\n Sic3docuprod detOperacion = new Sic3docuprod();\n detOperacion.setNumCantidad(rsConsulta.getBigDecimal(\"NUM_CANTIDAD\"));\n detOperacion.setNumValor(rsConsulta.getBigDecimal(\"NUM_VALOR\"));\n detOperacion.setSic1docu(objDocu);\n detOperacion.setSic1prod(objProd);\n \n list.add(detOperacion); \n }\n \n } catch (SQLException | HibernateException e){\n throw new Exception(e.getMessage()); \n }finally{\n \n if(rsConsulta != null)\n rsConsulta.close();\n \n if(session != null)\n session.close();\n \n }\n \n return list; \n }",
"void initEsperaMateriales() {\n try {\n\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n if (request.getParameter(\"nroSolicitud\") != null) {\n codSolicitudMantenimiento = Integer.parseInt(request.getParameter(\"nroSolicitud\"));\n }\n con = (Util.openConnection(con));\n Statement st = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\n String consulta = \"\";\n //se lista los componentes a fabricar para programa_produccion\n\n consulta = \" SELECT SMM.COD_SOLICITUD_MANTENIMIENTO,SMM.DESCRIPCION,M.COD_MATERIAL,M.NOMBRE_MATERIAL,UM.COD_UNIDAD_MEDIDA,UM.NOMBRE_UNIDAD_MEDIDA,SMM.CANTIDAD \" +\n \" FROM SOLICITUDES_MANTENIMIENTO_MATERIALES SMM \" +\n \" INNER JOIN MATERIALES M ON SMM.COD_MATERIAL=M.COD_MATERIAL \" +\n \" INNER JOIN UNIDADES_MEDIDA UM ON M.COD_UNIDAD_MEDIDA=UM.COD_UNIDAD_MEDIDA \" +\n \" WHERE SMM.COD_SOLICITUD_MANTENIMIENTO= \" + codSolicitudMantenimiento;\n System.out.println(\"consulta \"+consulta);\n ResultSet rs = st.executeQuery(consulta);\n\n rs.last();\n int filas = rs.getRow();\n //programaProduccionList.clear();\n rs.first();\n materialesEnEspera.clear();\n for (int i = 0; i < filas; i++) {\n itemMateriales = new MaterialesSolicitudMantenimiento();\n itemMateriales.setCodSolicitudMantenimiento(rs.getString(\"COD_SOLICITUD_MANTENIMIENTO\"));\n itemMateriales.setDescripcion(rs.getString(\"DESCRIPCION\"));\n itemMateriales.setCodMaterial(rs.getString(\"COD_MATERIAL\"));\n itemMateriales.setNombreMaterial(rs.getString(\"NOMBRE_MATERIAL\"));\n itemMateriales.setCodUnidadMedida(rs.getString(\"COD_UNIDAD_MEDIDA\"));\n itemMateriales.setNombreUnidadMedida(rs.getString(\"NOMBRE_UNIDAD_MEDIDA\"));\n itemMateriales.setCantidad(rs.getString(\"CANTIDAD\"));\n\n materialesEnEspera.add(itemMateriales);\n rs.next();\n }\n if (rs != null) {\n rs.close();\n st.close();\n }\n this.getEstadoSolicitudMaterialesAlmacen();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void ConsultaVehiculosSQlite() {\n preguntas = mydb.getCartList();\n for( int i = 0 ; i < preguntas.size() ; i++ ){\n //Toast.makeText(getApplicationContext(), preguntas.get( i ).getPregunta(), Toast.LENGTH_SHORT).show();\n persons.add(new Solicitud(\"Pregunta \" + String.valueOf(i+1) +\": \"+preguntas.get( i ).getPregunta(),\"Fecha: \"+ preguntas.get( i ).getFecha(), R.drawable.solicitudes,\"Motivo: \"+preguntas.get( i ).getMotivo(),\"Observacion: \"+preguntas.get( i ).getObservacion(),\"\"));\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public void consultarCoactivosXLS() throws CirculemosNegocioException {\n\n // consulta la tabla temporal de los 6000 coactivos\n StringBuilder sql = new StringBuilder();\n\n sql.append(\"select [TIPO DOC], [NUMERO DE IDENTIFICACIÓN], [valor multas], [titulo valor], proceso \");\n sql.append(\"from coactivos_xls \");\n sql.append(\"where id_tramite is null and numero_axis is null AND archivo is not null \");\n sql.append(\"AND [titulo valor] IN ('2186721','2187250','2187580','2186845')\");\n\n Query query = em.createNativeQuery(sql.toString());\n\n List<Object[]> listaResultados = Utilidades.safeList(query.getResultList());\n\n Date fechaCoactivo = UtilFecha.buildCalendar().getTime();\n CoactivoDTO coactivoDTOs;\n TipoIdentificacionPersonaDTO tipoIdentificacion;\n List<ObligacionCoactivoDTO> obligacionesCoactivoDTO;\n PersonaDTO personaDTO;\n ProcesoDTO proceso;\n // persiste los resultados en coactivoDTO\n for (Object[] coactivo : listaResultados) {\n coactivoDTOs = new CoactivoDTO();\n // persiste el tipo de indetificacion en TipoIdentificacionPersonaDTO\n personaDTO = new PersonaDTO();\n proceso = new ProcesoDTO();\n tipoIdentificacion = new TipoIdentificacionPersonaDTO();\n obligacionesCoactivoDTO = new ArrayList<>();\n\n tipoIdentificacion.setCodigo((String) coactivo[0]);\n personaDTO.setTipoIdentificacion(tipoIdentificacion);\n coactivoDTOs.setPersona(personaDTO);\n coactivoDTOs.getPersona().setNumeroIdentificacion((String) coactivo[1]);\n\n proceso.setFechaInicio(fechaCoactivo);\n coactivoDTOs.setProceso(proceso);\n coactivoDTOs.setValorTotalObligaciones(BigDecimal\n .valueOf(Double.valueOf(coactivo[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n coactivoDTOs.setValorTotalCostasProcesales(\n coactivoDTOs.getValorTotalObligaciones().multiply(BigDecimal.valueOf(0.05)));\n coactivoDTOs.getProceso().setObservacion(\"COACTIVO\");\n String[] numeroFactura = coactivo[3].toString().split(\",\");\n // separa los numeros de factura cuando viene mas de uno.\n for (String nFactura : numeroFactura) {\n // consulta por numero de factura el el saldo a capital por cada factura\n sql = new StringBuilder();\n sql.append(\"select nombre, saldo_capital, saldo_interes \");\n sql.append(\"from cartera_coactivos_xls \");\n sql.append(\"where nombre = :nFactura\");\n\n Query quer = em.createNativeQuery(sql.toString());\n\n quer.setParameter(\"nFactura\", nFactura);\n\n List<Object[]> result = Utilidades.safeList(quer.getResultList());\n // persiste las obligaciones consultadas y las inserta en ObligacionCoactivoDTO\n ObligacionCoactivoDTO obligaciones;\n for (Object[] obligacion : result) {\n obligaciones = new ObligacionCoactivoDTO();\n obligaciones.setNumeroObligacion((String) obligacion[0]);\n obligaciones.setValorObligacion(BigDecimal.valueOf(\n Double.valueOf(obligacion[1].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n obligaciones.setValorInteresMoratorios(BigDecimal.valueOf(\n Double.valueOf(obligacion[2].toString().replaceAll(\"\\\\.\", \"\").replaceAll(\",\", \".\"))));\n // Adiciona las obligaciones a una lista\n obligacionesCoactivoDTO.add(obligaciones);\n }\n\n }\n coactivoDTOs.setObligacionCoactivos(obligacionesCoactivoDTO);\n try {\n iLCoactivo.registrarCoactivoAxis(coactivoDTOs, coactivo[4].toString());\n } catch (Exception e) {\n logger.error(\"Error al registrar coactivo 6000 :\", e);\n }\n }\n }"
] | [
"0.7121951",
"0.68132323",
"0.67989886",
"0.6741683",
"0.6725322",
"0.6659811",
"0.6601655",
"0.65485764",
"0.65481687",
"0.65368307",
"0.65233755",
"0.6511842",
"0.65036875",
"0.6498691",
"0.6490854",
"0.6478254",
"0.6477065",
"0.64703196",
"0.6463053",
"0.6451622",
"0.6447453",
"0.6439328",
"0.6439258",
"0.6433483",
"0.64271116",
"0.6423376",
"0.6422373",
"0.6411157",
"0.64077884",
"0.6404754",
"0.6403952",
"0.63873804",
"0.637697",
"0.637476",
"0.63744223",
"0.63596594",
"0.6350599",
"0.63381714",
"0.63328224",
"0.6305928",
"0.630544",
"0.6302726",
"0.63009113",
"0.62864745",
"0.628316",
"0.6282676",
"0.62807226",
"0.6275555",
"0.6274825",
"0.6273944",
"0.6272893",
"0.6253342",
"0.624977",
"0.624838",
"0.62481076",
"0.6246784",
"0.6246365",
"0.6240003",
"0.623392",
"0.62272364",
"0.62215316",
"0.6220649",
"0.62201595",
"0.62179",
"0.6217894",
"0.6215045",
"0.6209183",
"0.6201744",
"0.6188521",
"0.6177056",
"0.6175733",
"0.61756855",
"0.61710936",
"0.61696523",
"0.6165795",
"0.61646193",
"0.61632633",
"0.6162334",
"0.6160679",
"0.6159318",
"0.6154276",
"0.61525744",
"0.6150688",
"0.6150118",
"0.61397344",
"0.6137028",
"0.6133931",
"0.6133399",
"0.6130659",
"0.6129691",
"0.61281675",
"0.6120669",
"0.61160284",
"0.6112326",
"0.6108639",
"0.610504",
"0.6102315",
"0.60894644",
"0.6087012",
"0.60865766",
"0.60862416"
] | 0.0 | -1 |
get the element in the position of i | int node_size()
{
Node temp =headnode;
int count=0;
while (temp.next!=null)
{
count++;
temp=temp.next;
}
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object get(int i) {\n return elementAt(i);\n }",
"public E get(int i) {\n\n\t if (i < 0 && i > num_elements)\n\t return null;\n\t \n\t return(elements[i]);\n\t }",
"public RTWElementRef getAsElement(int i);",
"public Integer at(int i){\n\t\tint cont = 0;\n\t\tNodo aux = first;\n\t\twhile(i<this.size()){\n\t\t\tif(cont == i){\n\t\t\t\treturn aux.getInfo();\n\t\t\t}else{\n\t\t\t\taux = aux.getNext();\n\t\t\t\tcont++;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int getElementAt(int i)\n\t{\n\t\tint elem = 0;\n\t\tint index = -1;\n\t\tSinglyLinkedListNode nextNode = head;\n\t\tSinglyLinkedListNode prevNode = null;\n\t\tif((i < 0 || i >= size()))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\twhile(true)\n\t\t{\n\t\t\tindex = index + 1;\n\t\t\tif(index == i)\n\t\t\t{\n\t\t\t\telem = nextNode.getData();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprevNode = nextNode;\n\t\t\t\tnextNode = prevNode.getNext();\n\t\t\t}\n\t\t}\t\t\n\t\treturn elem;\n\t}",
"Object getElementAt(int index);",
"E get(int i) throws IndexOutOfBoundsException;",
"private Element getElement(int index) {\n if (index < this._size / 2) {\n return this.getElementForwards(index);\n } else {\n return this.getElementBackwards(index);\n }\n }",
"public Item get(int i) {\n return items[i - 1];\n }",
"@Override\n\tpublic E get(int i) {\n\t\tif (i < 0 || i >= this.numberOfElements) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\telse {\n\t\t\treturn this.arrayList[i];\n\t\t}\n\t}",
"public int get(int i) {\n\t\tassert i < size();\n\t\treturn arr[i];\n\t}",
"@Override\n\tpublic E get(int i) throws IndexOutOfBoundsException {\n\t\treturn null;\n\t}",
"public Object get(int i)\n {\n if(_list!=null)\n return _list.get(i);\n return null;\n }",
"public int get(int i) {\n if (i==0) {\n return first;\n }\n return rest.get(i - 1);\n }",
"public Term get(int i) {\n\t\treturn this.elts[i];\n\t}",
"public E get(int i) {\n\t\tcheckIndex(i);\n\t\tListNode<E> current = hop(i);\n\t\treturn current.value;\n\t}",
"public E get(int i) {\n\t\tif (size == 0) {\n\t\t\tthrow new IllegalArgumentException(\"List is empty, cannot retrieve item.\");\n\t\t}\n\n\t\tif (i < 0 || i >= size) {\n\t\t\tthrow new IndexOutOfBoundsException(\"Requested index is out of bounds.\");\n\t\t}\n\n\t\treturn list[i];\n\n\t}",
"public Item get(int i) {\n return items[i];\n }",
"public T get(final int i){\n if(i >= pattern.size()){\n throw new IndexOutOfBoundsException(\"pattern has only \" + pattern.size() + \" elements\");\n }\n return pattern.get(i);\n }",
"public Object elementAt(int n) {\r\n\t\treturn elements.get(n);\r\n\t}",
"E get(int i) {\r\n @SuppressWarnings(\"unchecked\")\r\n final E e = (E)arr[i];\r\n return e;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public T get(int i) {\n if (i < 0 || i >= size) // if there is no index i in list\n throw new IndexOutOfBoundsException(\"Treated index: \" + i + \" | Size of the Dynamic Array \" + size()); // cause IndexOutOfBoundException\n return (T) elements[i]; // return element with index i\n }",
"public T returnItem(int i) {\n return a[i];\n }",
"Element getElement(Position pos);",
"public short elementIdAt(int i)\n\t{\n\t\treturn m_elems[i];\n\t}",
"public TypeHere get(int i) {\n return items[i];\n }",
"@Override\n public E get(int i) throws IndexOutOfBoundsException {\n validIndex(i);\n return data[i];\n }",
"public T get(int i) {\n if (i == 0) {\n return this.first;\n }\n else {\n return this.rest.get(i--);\n }\n }",
"public int get(int i) throws ArrayIndexOutOfBoundsException {\n if (i >= 0 && i < count) {\n return list[i];\n } else {\n throw new ArrayIndexOutOfBoundsException();\n }\n }",
"private E getElement(int index) {\n if (index >= contents.size()) {\n return null;\n } else {\n return contents.get(index);\n }\n }",
"public E get(int index) {\n return this.elements[index];\n }",
"public T get(int i) {\n // we add values.length to head-i to avoid negative indices\n return values[(head-i+values.length) % values.length];\n }",
"public final int getPos() { return i; }",
"@Override\r\n\t\t\tpublic Object getItem(int i) {\n\t\t\t\treturn i;\r\n\t\t\t}",
"public int index(int i) {\n\t\tif (i < 0 || i >= text.length) throw new IndexOutOfBoundsException();\n\t\treturn r2p[i];\n\t}",
"public Item get(int i);",
"default V item( int i ) { return getDataAt( indexOfIndex( i ) ); }",
"Object getArrayElement(int index);",
"Object getArrayElement(int index);",
"public T get(int i);",
"public Object elementAt(int index);",
"E get( int index );",
"@Override\n\tpublic E get(int idx) {\n\t\tE element = null;\n\t\tif (idx < 0 || idx >= size)\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\telement = list[idx];\n\t\treturn element;\n\t}",
"public DomainElement elementForIndex(int index);",
"public Pos getPosAt(final int i) {\n\t\treturn this.pos.get(i);\n\t}",
"public int get(int i)\n {\n if(integerList != null)\n return integerList[i];\n else\n return -1;\n }",
"Object get(int index);",
"Object get(int index);",
"public final i getItem(int i) {\n return (i) this.kLz.get(i);\n }",
"public Bacteria getAtIndex(int i) {\n\t\treturn this.inds.get(i);\n\t}",
"public long getElem(int index) {\r\n return a[index];\r\n }",
"public int get(int index);",
"public int index(int i) {\n if (i < 0 || i >= lng) {\n throw new IllegalArgumentException(\"index out of range.\");\n }\n\n return arr[i];\n }",
"public int getCoord(int i) {\r\n return coords[i-1];\r\n }",
"public Object getItem(int i)\n {\n return items.elementAt(i);\n }",
"@Override\n public Object getElement(int index){\n return gameCollection.elementAt(index);\n }",
"public Point getPoint(int i) {\r\n return line.get(i);\r\n }",
"public Integer get(int i){\n\t\treturn body[i];\n\t}",
"@Override\n public E peek(int i) {\n if(!hasWork()) {\n throw new NoSuchElementException();\n }\n if(i < 0 || i >= size()) {\n throw new IndexOutOfBoundsException();\n }\n return array[(front + i) % capacity()];\n }",
"public String getAsSlot(int i);",
"public int getElem(int n){\n return this._elems.get(n);\n }",
"public Object get(int index);",
"public Object get(int index);",
"public int getCoordinates(int i) {\n return this.coordinates[i];\n }",
"Object get(int i);",
"public int index(int i){\n \t\tif (i < 0 || i >= length()) throw new IllegalArgumentException();\n \t\treturn csa[i];\n \t}",
"public android.renderscript.Element getSubElement(int index) { throw new RuntimeException(\"Stub!\"); }",
"abstract int get(int index);",
"public KVPair get(int i) {\r\n\r\n if (i >= capacity())\r\n return null;\r\n\r\n return htable[i];\r\n }",
"public Object getObject(int pos) {\n return elements.get(pos);\n }",
"int getItem(int index);",
"public int getPosition(int index);",
"private int elementNC(int i) {\n return first + i * stride;\n }",
"T getElementFromIndex(int index) throws ListException;",
"@Override\n\tpublic T get(int indice) {\n\t\tif (indice >= 0 && indice < tamanho) {\n\t\t\treturn elementosDaLista[indice];\n\t\t}\n\t\treturn null;\n\t}",
"public int getElementAtIndex(int index){\r\n return mArray[index];\r\n }",
"public abstract E get(int index);",
"@Override\r\n\tpublic Score get(int i) throws IndexOutOfBoundsException {\r\n\t\t//when i is less than zero or greater than size()-1\r\n\t\tif (i < 0 || i > size() - 1)\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\treturn scoreList[i];\r\n\t}",
"public E get(int index);",
"public Object get(int index) {\r\n return entry(index).element;\r\n }",
"public String select(int i)\r\n\t {\t\t \r\n\t\t String[] arr = this.infoToArray();\r\n\t\t if(i > arr.length)\r\n\t\t {\r\n\t\t\t return \"-1\";\r\n\t\t }\r\n\t\t return arr[i-1];\r\n\t }",
"int getIndexOfElement(T value);",
"public Integer getItem(int i) {\n return this.f2227a.get(i);\n }",
"public PostingsEntry get( int i ) {\n\t return list.get(i);\n }",
"public HTMLComponent getChild(int i);",
"@Override\n public E get(int i) throws IndexOutOfBoundsException {\n checkRange(i);\n\n if (size == 1) {\n return (E) storage;\n } else if (size <= 5) {\n return ((E[]) storage)[i];\n } else {\n return ((ArrayList<E>) storage).get(i);\n }\n }",
"@Override\n public Card getCard(int i) {\n return this.cards.get(i);\n }",
"T get(int i);",
"public T get(int index);",
"public T get(int index);",
"public T get(int index);",
"@Override\n public Node<T> get(int i)\n {\n if(i == size - 1) return lastNode;\n else return super.get(i);\n }",
"private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}",
"public T get(int i) {\n return null;\n }",
"public static Object get(ArrayQueueADT arrayQueue, int i) {\n assert i >= 0;\n return arrayQueue.elements[(arrayQueue.head + i) % arrayQueue.elements.length];\n }",
"public int getElement(int i, int j){\n\t\treturn numbers[i][j];\n\t}",
"public abstract T get(int index);",
"public Position getPosition(int i) {\n\t\treturn vertices.get(i).getPosition();\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic P pointer(int i) {\n\t\treturn (P) pointers[i];\n\t}",
"@Override\n public Person lookup(final int i) {\n if(i >= size() || i < 0) throw new IndexOutOfBoundsException();\n return mData.get(i);\n }",
"public abstract Object get(int pos) throws IndexOutOfBoundsException;"
] | [
"0.77958214",
"0.7718155",
"0.763906",
"0.751747",
"0.735499",
"0.7304212",
"0.7286266",
"0.7132013",
"0.7127494",
"0.71236587",
"0.7115892",
"0.7052007",
"0.70390344",
"0.70289814",
"0.7005412",
"0.6993042",
"0.6973748",
"0.6962232",
"0.69571674",
"0.6953707",
"0.6948176",
"0.6911458",
"0.6907091",
"0.68931043",
"0.688818",
"0.68778336",
"0.6876818",
"0.68628174",
"0.6772887",
"0.6766617",
"0.67658204",
"0.67506534",
"0.67499447",
"0.6741099",
"0.6734822",
"0.67140377",
"0.67116666",
"0.6697267",
"0.6697267",
"0.66933405",
"0.66752446",
"0.66719866",
"0.6659299",
"0.66587204",
"0.66502285",
"0.6648449",
"0.664327",
"0.664327",
"0.66225576",
"0.66147727",
"0.6612158",
"0.66035616",
"0.66007924",
"0.6582824",
"0.6572682",
"0.6566538",
"0.6565269",
"0.65611964",
"0.6551459",
"0.65513664",
"0.653964",
"0.65346795",
"0.65346795",
"0.65173876",
"0.6514966",
"0.65056795",
"0.6474577",
"0.6446385",
"0.64453006",
"0.6438067",
"0.6433824",
"0.64304465",
"0.642605",
"0.6421935",
"0.6407583",
"0.6406706",
"0.6403611",
"0.6389494",
"0.6380398",
"0.63729143",
"0.63655835",
"0.6355976",
"0.63557965",
"0.63555944",
"0.6352903",
"0.6342198",
"0.63415456",
"0.6340442",
"0.63357997",
"0.63357997",
"0.63357997",
"0.63264865",
"0.63244885",
"0.6322449",
"0.6313475",
"0.6303614",
"0.6301075",
"0.6281374",
"0.62650335",
"0.62378436",
"0.62357557"
] | 0.0 | -1 |
Similar to DP but recursive | public int lastRemaining(int n) {
if(n==1){
return 1;
}
if(n%2==0){
return n-1-2*(lastRemaining(n/2)-1)+1;
} else{
return n-2-2*(lastRemaining(n/2)-1)+1;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int recursion(int steps, int arrLen, int index, int[][] dp) {\n\n if (steps == 0 && index == 0) {\n return 1;\n }\n\n // extra base condition is index> steps , because we cannot return from there at all.\n if (steps == 0 || index < 0 || index >= arrLen || index > steps) return 0;\n\n if (dp[steps][index] != -1) return dp[steps][index];\n\n int ans = 0;\n\n // we can go either left , right or stay there itself.\n ans = (ans + recursion(steps - 1, arrLen, index, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index + 1, dp)) % MOD;\n ans = (ans + recursion(steps - 1, arrLen, index - 1, dp)) % MOD;\n dp[steps][index] = ans % MOD;\n return dp[steps][index];\n }",
"int solve(int p, int current) {\n int id = getId(p, current);\n if (p >= 0 && memo.containsKey(id)) {\n return memo.get(id);\n }\n List<Integer> adjList = adj.get(current);\n int n = adjList.size();\n if (n == 0) {\n throw new RuntimeException();\n }\n if ((n == 2 && p >= 0) || (n == 1 && p < 0)) {\n // should cut the nodes under current\n int ans = getDepth(p, current) - 1;\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n memo.put(id, ans);\n return ans;\n }\n if (n == 1) {\n // System.out.println(\"ans(\" + p + \",\" + current + \")=nochild\");\n return 0;\n }\n int ans = Integer.MAX_VALUE;\n\n for (int i = 0; i < n; i++) {\n int a = adjList.get(i);\n if (a == p) {\n continue;\n }\n for (int j = i + 1; j < n; j++) {\n int b = adjList.get(j);\n if (b == p) {\n continue;\n }\n // try a & b combo\n int tmp = solve(current, a);\n tmp += solve(current, b);\n for (int k = 0; k < n; k++) {\n int c = adjList.get(k);\n if (c != a && c != b && c != p) {\n tmp += getDepth(current, c);\n }\n }\n ans = Math.min(ans, tmp);\n }\n }\n memo.put(id, ans);\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n return ans;\n }",
"private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint v = 1 + m[i - a];\n\t\t\t\tif (v < min) {\n\t\t\t\t\tmin = v;\n\t\t\t\t\tsel = a;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sel == -1)\n\t\t\t\tthrow new NullPointerException(\"sel != -1\");\n\t\t\tm[i] = min;\n\t\t\tk[i] = sel;\n\t\t}\n\t}",
"static long dp(int a, int b, int c, int d, int e, int k) {\n if(f[a][b][c][d][e] > 0) {\n return f[a][b][c][d][e];\n }\n if(!v[k]) {\n return dp(a, b, c, d, e, k + 1);\n }\n if(a < 5 && k > maxr[0] && k > maxc[a]) {\n f[a][b][c][d][e] += dp(a + 1, b, c, d, e, k + 1);\n }\n if(b < a && k > maxr[1] && k > maxc[b]) {\n f[a][b][c][d][e] += dp(a, b + 1, c, d, e, k + 1);\n }\n if(c < b && k > maxr[2] && k > maxc[c]) {\n f[a][b][c][d][e] += dp(a, b, c + 1, d, e, k + 1);\n }\n if(d < c && k > maxr[3] && k > maxc[d]) {\n f[a][b][c][d][e] += dp(a, b, c, d + 1, e, k + 1);\n }\n if(e < d && k > maxr[4] && k > maxc[e]) {\n f[a][b][c][d][e] += dp(a, b, c, d, e + 1, k + 1);\n }\n return f[a][b][c][d][e];\n }",
"int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }",
"private int DP(int dp)\n\t{\n\t\tint result = DP(DENSITY, dp);\n\t\treturn result;\n\t}",
"private static void recursiveFixedSumPairs(/* determine parameters here */){\r\n\t\t// complete this method\r\n\t\t\r\n\t}",
"static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}",
"static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}",
"private boolean dfs(int n, int[] P) { // 0 is empty, 1 is false, 2 is true\n if (P[n] != 0) {\n if (P[n] == 1) {\n return false;\n }\n else {\n return true;\n }\n }\n\n if (n == 1) {\n P[1] = 2;\n //return true;\n }\n else if (n == 2) {\n P[2] = 2;\n //return true;\n }\n else if (n == 3) {\n P[3] = 1;\n //return false;\n }\n else {\n boolean res = dfs(n-2, P) && dfs(n-3, P) || dfs(n-3, P) && dfs(n-4, P);\n P[n] = res ? 2 : 1;\n }\n\n return P[n] == 2;\n\n //P[n] = P[n-2] + P[n-3] == 4 || P[n-3] + P[n-4] == 4 ? 2 : 1;\n //boolean res = dfs(n-2, P) && dfs(n-3, P) || dfs(n-3, P) && dfs(n-4, P);\n //P[n] = res ? 2 : 1;\n //return res;\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint n = 6;\r\n\t\t\r\n\t\t// Using recursion(top-down DP) with TIme O(n) Space O(n)+StackSpace\r\n\t\t\r\n//\t\tint[] dp = new int[n+1];\r\n//\t\tint res = getNumberOfWays(n,dp);\r\n//\t\tSystem.out.println(res);\r\n\t\t\r\n\t\t\r\n\t\t// Using recursion(bottom-up DP) with TIme O(n) Space O(n)\r\n\t\t\r\n\t\tint[ ] dp = new int[n+1];\r\n\t\t\r\n\t\tdp[0] = 0;\r\n\t\tdp[1] = 1;\r\n\t\tdp[2] = 2;\r\n\t\t\r\n\t\tfor(int i =3;i<=n;i++) {\r\n\t\t\tdp[i] = dp[i-1]+dp[i-2];\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(dp[n]);\r\n\r\n\t}",
"private int dfs(int[][] matrix, int i, int j, int d) {\n if (i < 0 || j < 0 || i == matrix.length || j == matrix[0].length || matrix[i][j] != 0)\n return 0;\n if (dp[i][j][d] > 0) return dp[i][j][d];\n timeComplexityCount++;\n maxI = Math.max(maxI, i);\n int res;\n if (d == 1)\n res = Math.max(dfs(matrix, i, j + 1, 1), dfs(matrix, i, j + 1, 2));\n else if (d == 0)\n res = Math.max(dfs(matrix, i, j - 1, 0), dfs(matrix, i, j - 1, 2));\n else\n res = Math.max(dfs(matrix, i + 1, j, 0), Math.max(dfs(matrix, i + 1, j, 1), dfs(matrix, i + 1, j, 2)));\n dp[i][j][d] = res + 1;\n return res + 1;\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }",
"private static int recursion(int x) {\n\t\tif(x == 1) return 0;\n\n\t\tif(dp[x] != -1) return dp[x];\n\t\tint result = Integer.MAX_VALUE;\n\n\t\tif(x % 3 == 0) result = Math.min(recursion(x / 3), result);\n\t\tif(x % 2 == 0) result = Math.min(recursion(x >> 1), result);\n\t\tif(x >= 1) result = Math.min(recursion(x - 1), result);\n\n\t\treturn dp[x] = result + 1;\n\t}",
"private static int getNumberOfWays(int n, int[] dp) {\n\t\t\r\n\t\tif(n==0) {\r\n\t\t\tdp[n] = 0; \r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tif(n == 1) {\r\n\t\t\tdp[1] = 1;\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\t\r\n\t\tif(n == 2) {\r\n\t\t\tdp[2] = 2;\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\t\r\n\t\tif(dp[n] == 0){\r\n\t\t\tdp[n] = getNumberOfWays(n-1, dp) + getNumberOfWays(n-2, dp);\r\n\t\t}\r\n\t\treturn dp[n];\r\n\t}",
"private static int helper(TreeNode root, TreeNode p, TreeNode q, List<TreeNode> ans) {\n if (root == null)\n return 0;\n int sum = 0;\n if (root.val == p.val || root.val == q.val)\n ++sum;\n int leftSum = helper(root.left, p, q, ans);\n int rightSum = helper(root.right, p, q, ans);\n sum += leftSum + rightSum;\n if (sum == 2 && leftSum < 2 && rightSum < 2)\n ans.add(root);\n return sum;\n }",
"private static Integer packDPRec(Integer capacity, List<Integer> weights, List<ItemDTO> items, Integer n, Integer[][] mem, List<Integer> optimalChoice) {\n // Base condition\n if (n == 0 || capacity <= 0)\n return 0;\n\n if (mem[n][capacity] != -1) {\n return mem[n][capacity];\n }\n\n if (weights.get(n - 1) > capacity) {\n // Store the value of function call\n // stack in table before return\n List<Integer> subOptimalChoice = new ArrayList<>();\n mem[n][capacity] = packDPRec(capacity, weights, items, n - 1, mem, subOptimalChoice);\n optimalChoice.addAll(subOptimalChoice);\n return mem[n][capacity];\n } else {\n // Return value of table after storing\n List<Integer> optimalChoiceIncluded = new ArrayList<>();\n List<Integer> optimalChoiceExcluded = new ArrayList<>();\n Integer valueIncluded = items.get(n - 1).getValue() + packDPRec(capacity - weights.get(n - 1), weights, items, n - 1, mem, optimalChoiceIncluded);\n Integer valueExcluded = packDPRec(capacity, weights, items, n - 1, mem, optimalChoiceExcluded);\n if (valueIncluded > valueExcluded) {\n optimalChoice.addAll(optimalChoiceIncluded);\n optimalChoice.add(items.get(n - 1).getId());\n mem[n][capacity] = valueIncluded;\n }else{\n optimalChoice.addAll(optimalChoiceExcluded);\n mem[n][capacity] = valueExcluded;\n }\n return mem[n][capacity];\n }\n }",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint t = s.nextInt();\n\t\twhile(t-->0)\n\t\t{\n\t\t\tint n = s.nextInt();\n\t\t\tint k = s.nextInt();\n\t\t\tint[] arr = new int[n];\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\tarr[i] = s.nextInt();\n\t\t\tArrays.sort(arr);\n\t\t\tint[][] dp = new int[k+1][n+1];\n\t\t\tfor(int i=0;i<=k;i++)\n\t\t\t\tfor(int j=0;j<=n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0)\n\t\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\telse if(j==0)\n\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\telse if(i-arr[j-1]>=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint val1 = dp[i-arr[j-1]][j-1];\n\t\t\t\t\t\tint val2 = dp[i][j-1];\n\t\t\t\t\t\tif(val1!=-1 && val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = Math.min(1+val1,val2);\n\t\t\t\t\t\telse if(val1!=-1)\n\t\t\t\t\t\t\tdp[i][j] = 1+val1;\n\t\t\t\t\t\telse if(val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = val2;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dp[i][j-1]==-1)\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(dp[k][n]!=-1)\n\t\t\t\tSystem.out.println(dp[k][n]);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"impossible\");\n\t\t}\n\t}",
"int DFS(int i, int j) {\n if (dp[i][j] != 0)\n return dp[i][j];\n\n int steps = 0;\n int trial = 0;\n if (i < dp.length - 1 && matrix[i][j] < matrix[i+1][j]) {\n trial = DFS(i + 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (i > 0 && matrix[i][j] < matrix[i-1][j]) {\n trial = DFS(i - 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (j < dp[0].length - 1 && matrix[i][j] < matrix[i][j+1]) {\n trial = DFS(i, j + 1);\n if (trial > steps)\n steps = trial;\n }\n if (j > 0 && matrix[i][j] < matrix[i][j-1]) {\n trial = DFS(i, j - 1);\n if (trial > steps)\n steps = trial;\n }\n\n dp[i][j] = steps + 1;\n return dp[i][j];\n }",
"static int recursiva2(int n)\n\t\t{\n\t\t\tif (n==0)\n\t\t\treturn 10; \n\t\t\tif (n==1)\n\t\t\treturn 20;\n\t\t\tif (n==2)\n\t\t\treturn 30;\n\t\t\t\n\t\t\treturn recursiva2(n-1) + recursiva2 (n-2) * recursiva2 (n-3); \n\t\t}",
"static int solveMemo(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t // checking if already calculated \n\t if (dp[n]!=-1) \n\t return dp[n]; \n\t \n\t // storing the result and returning \n\t return dp[n] = solveMemo(n-1) + solveMemo(n-3) + solveMemo(n-5); \n\t}",
"private int dfsInOrderIterativeSol(TreeNode root, int k) {\n // Corner Case\n if (root == null) {\n return 0;\n }\n\n Stack<TreeNode> stack = new Stack<>();\n TreeNode node = root;\n int countNum = 0;\n\n while (!stack.isEmpty() || node != null) {\n if (node != null) {\n stack.push(node); // just like the recursion\n node = node.left;\n } else {\n TreeNode curNode = stack.pop();\n countNum++;\n if (countNum == k) {\n return curNode.val;\n }\n node = curNode.right;\n }\n }\n return 0;\n\n // // push nodes till the left end\n // while (root != null) {\n // stack.push(root);\n // root = root.left;\n // }\n\n // while (k != 0) {\n // TreeNode curNode = stack.pop();\n // k -= 1;\n // if (k == 0) {\n // return curNode.val;\n // }\n\n // TreeNode rightNode = curNode.right;\n // // push the right node till the left end still!!!\n // while(rightNode != null) {\n // stack.push(rightNode);\n // rightNode = rightNode.left;\n // }\n // }\n\n // return 0; // never hit if k is valid and root is not null\n }",
"static int recurseMaxStolenValue(int[] values,int i){\r\n\t if(i >= values.length) return 0;\r\n\t if(i == values.length -1) return values[values.length-1];\r\n\t \r\n\t return Math.max( values[i] + recurseMaxStolenValue(values,i+2)\r\n\t ,values[i+1] + recurseMaxStolenValue(values,i+3)\r\n\t );\r\n\t /*\r\n\t *Approach #2 for Recursion --> This approach won't work to convert to DP,but recursion yields right result\r\n\t */\r\n\t \r\n\t /*\r\n\t if(i >= values.length) return 0; \r\n\t int result1 = values[i]+recurseMaxStolenValue(values,i+2);\r\n\t int result2 = recurseMaxStolenValue(values,i+1);\r\n\t return (Math.max(result1,result2));\r\n\t */\r\n\t \r\n\t }",
"private static int recursiveFibDP(int n) {\n\n Integer[] table = new Integer[n + 1];\n if(table[n]==null){\n if (n <= 1) {\n table[n] = n;\n }\n else {\n table[n] =recursiveFibDP(n-1)+recursiveFibDP(n-2);\n }\n }\n return table[n];\n }",
"static long dp(int posicion, int letra, boolean cambio)\n\t{\n\t\tif(dp[posicion][letra][cambio ? 1 : 0] != -1) return dp[posicion][letra][cambio ? 1 : 0];\n\t\tif(posicion == dp.length - 1) return dp[posicion][letra][cambio ? 1 : 0] = cambio ? 1 : 0;\n\t\tif(posicion == 6) \n\t\t{\n\t\t\tSystem.out.println();\n\t\t}\n\t\tint letraS = palabra[posicion + 1];\n\t\tint adelanteReal = letra < 25 - letraS ? letra : 25 - letraS;\n\t\tint atrasReal = 25 - letra < letraS ? 25 - letra : letraS;\n\t\tint atrasTest = testAtras(letra, letraS);\n\t\tif(atrasReal != atrasTest)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tatrasReal = atrasTest;\n\t\t}\n\t\tint adelanteTest = testAdelante(letra, letraS);\n\t\tif(adelanteReal != adelanteTest)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tadelanteReal = adelanteTest;\n\t\t\t testAdelante(letra, letraS);\n\t\t}\n\t\tlong respuesta = 0;\n\t\trespuesta += dp(posicion + 1, letraS, cambio);\n\t\tlong[] siguiente = dp2(posicion);\n\t\tif(letraS - 1 >= 0 && atrasReal != 0)\n\t\t{\n\t\t\trespuesta += siguiente[letraS - 1];\n//\t\t\tif(respuesta >= mod) respuesta -= mod;\n\t\t\tif(letraS - 1 - atrasReal >= 0)\n\t\t\t{\n\t\t\t\trespuesta -= siguiente[letraS - 1 - atrasReal];\n//\t\t\t\tif(respuesta < 0) respuesta += mod;\n\t\t\t}\n\t\t}\n\t\tif(letraS + adelanteReal <= 25 && adelanteReal != 0)\n\t\t{\n\t\t\trespuesta += siguiente[letraS + adelanteReal];\n//\t\t\tif(respuesta >= mod) respuesta -= mod;\n\t\t\trespuesta -= siguiente[letraS];\n//\t\t\tif(respuesta < 0) respuesta += mod;\n\t\t}\n\t\treturn dp[posicion][letra][cambio ? 1 : 0] = respuesta;\n\t}",
"public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }",
"int fact(int n) {\n if (n <= 1)\n return 1;\n else\n return n * fact(n-1);\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}",
"void calculating(int depth);",
"private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }",
"int catalanDP(int n) {\n int[] catalan = new int[n+1]; \n \n // Initialize first two values in table \n catalan[0] = catalan[1] = 1; \n\n // Fill entries in catalan[] using recursive formula \n for (int i=2; i<=n; i++) { \n catalan[i] = 0; \n for (int j=0; j<i; j++) \n catalan[i] += catalan[j] * catalan[i-j-1]; \n } \n \n // Return last entry \n return catalan[n]; \n }",
"private static int combinationRecursive(int n, int k) {\n\t\tif (k == 0 || n == k) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn (int)(n/(double)k) * combinationRecursive(n-1, k-1);\n\t\t}\n\t}",
"private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }",
"int backTrack(int[] nums, int targetSum, int startIndex, int computedSum, int[][] dp) {\n if (startIndex == nums.length) {\n if (targetSum == computedSum) {\n return 1;\n\n }\n return 0;\n } else {\n\n int add = backTrack(nums, targetSum, startIndex + 1, computedSum + nums[startIndex], dp);\n\n int subtract = backTrack(nums, targetSum, startIndex + 1, computedSum - nums[startIndex], dp);\n dp[startIndex][computedSum] = add + subtract;\n return dp[startIndex][computedSum];\n }\n\n }",
"private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}",
"static int paths_dp(int[][] matrix) {\n\t\tint n = matrix.length;\n\t\tint m = matrix[0].length;\n\t\t\n\t\tint[][] dp = new int[n][m];\n\t\tdp[0][0] = matrix[0][0] == 1? 0 : 1;\n\t\t\n\t\tfor(int i = 1; i < m; i++) {\n\t\t\tif(matrix[0][i] == 1) {\n\t\t\t\tdp[0][i] = 0;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdp[0][i] = dp[0][i-1];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tif(matrix[i][0] == 1) {\n\t\t\t\tdp[i][0] = 0;\n\t\t\t} else {\n\t\t\t\tdp[i][0] = dp[i-1][0];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i = 1; i < n; i++) {\n\t\t\tfor(int j = 1; j < m; j++) {\n\t\t\t\tif(matrix[i][j] == 1 ) {\n\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t} else {\n\t\t\t\t\tdp[i][j] = dp[i-1][j] + dp[i][j+1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dp[n-1][m-1];\n\t}",
"static int solve(int r, int c) {\n\t\tif (c == m)\n\t\t\treturn 0;\n\t\tif (dp[r][c] != Integer.MAX_VALUE)\n\t\t\treturn dp[r][c];\n\t\tint res = Integer.MAX_VALUE;\n\t\t// mid\n\t\tres = Math.min(res, solve(r, c + 1));\n\t\t// up\n\t\tif (r == 0)\n\t\t\tres = Math.min(res, solve(n - 1, c + 1));\n\t\telse\n\t\t\tres = Math.min(res, solve(r - 1, c + 1));\n\t\t// down\n\t\tif (r == n - 1)\n\t\t\tres = Math.min(res, solve(0, c + 1));\n\t\telse\n\t\t\tres = Math.min(res, solve(r + 1, c + 1));\n\n\t\treturn dp[r][c] = res + a[r][c];\n\t}",
"private static int dfs( int n, int level, int min ) {\n\n if (n == 0 || level >= min) return level; //returns only number of perfect squares\n\n for (int i = (int) Math.sqrt(n); i > 0; i--) { //Math.sqrt = same as prime-sieve of prime numbers\n\n min = dfs(n - ((int) Math.pow(i, 2)), level + 1, min);\n\n }\n return min;\n }",
"public static int dfs(TreeNode root, int sum){\n\t\tif(root.left == null && root.right == null){\r\n\t\t\treturn 10*sum + root.val;\r\n\t\t\t//result.add(sum);\r\n\t\t}\r\n\t\tif(root.left != null && root.right == null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val);\r\n\t\t}\r\n\t\tif(root.right != null && root.left == null){\r\n\t\t\treturn dfs(root.right, 10*sum+root.val);\r\n\t\t}\r\n\t\t//if(root.left != null && root.right != null){\r\n\t\t\treturn dfs(root.left, 10*sum+root.val)+dfs(root.right, 10*sum+root.val);\r\n\t\t//}\r\n\t\t//for(int i = 0; i < result.size(); i++){\r\n\t\t\t//System.out.print( result.get(i) + \"->\");\r\n\t\t//}\r\n\t}",
"private int dfs(TreeNode root, int sum) {\n if (root == null) return sum;\n int rsum = dfs(root.right, sum);\n root.val += rsum;\n return dfs(root.left, root.val);\n }",
"private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }",
"public static void main(String[] args) {\n\t\tInteger[] arr = new Integer[]{1,5,10,25};\r\n\t\tInteger N = 100;\r\n\t\t\r\n\t\tInteger[] dp = new Integer[N+1];\r\n\t\tCoinChange obj = new CoinChange();\r\n\t\t\r\n\t\tSystem.out.println(obj.recurse(arr,dp,100));\r\n\t}",
"static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}",
"public static void main(String[] args) {\n\t\tint width=35;\n\t\tint length=31;\n\t\tlong[][] dp = new long[width+1][length+1];\n\t\tdp[0][0]=0;\n\t\tfor(int i=1;i<length+1;i++){\n\t\t\tif(badCheck(0,i,0,i-1)){\n\t\t\t\tdp[0][i]=0;\n\t\t\t\tfor(int k=i+1;k<length+1;k++){\n\t\t\t\t\tdp[0][k]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[0][i]=1;\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<width+1;i++){\n\t\t\tif(badCheck(i,0,i-1,0)){\n\t\t\t\tdp[i][0]=0;\n\t\t\t\tfor(int k=i+1;k<width+1;k++){\n\t\t\t\t\tdp[k][0]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[i][0]=1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=1;i<=width;i++){\n\t\t\tfor(int j=1;j<=length;j++){\n\t\t\t\tif(!badCheck(i-1,j,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i-1][j];\n\t\t\t\t}\n\t\t\t\tif(!badCheck(i,j-1,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i][j-1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(dp[6][6]);\n\t\t//System.out.println(dp[2][2]);\n\t\t//System.out.println(dp[1][1]);\n\t\tSystem.out.println(dp[35][31]);\n\t}",
"static int circularWalk(int n, int s, int t, int r_0, int g, int seed, int p){\n\t\tPoint[] points=new Point[n];\n\t\tfor (int i = 0; i < points.length; i++) {\n\t\t\tPoint point=new Point(r_0, false, false);\n\t\t\tif(i!=0)\n\t\t\t{\n\t\t\t\tpoint.rValue=((long)(points[i-1].rValue*g+seed))%p;\n\t\t\t}\n\t\t\tif(i==s){\n\t\t\t\tpoint.isSource=true;\n\t\t\t}\n\t\t\tif(i==t)\n\t\t\t\tpoint.isTarget=true;\n\t\t\tpoints[i]=point;\n\t\t}\n\t\tif(s==t)\n\t\t\treturn 0;\n\t\t//maintain visited and calculate if we can reach t from s,if we can't reach from a certain point,return Max\n\t\t//find the min of all the dfs possibilities\n\t\tHashSet<Integer> set=new HashSet<>();\n\t\treturn dfs(points,s,t,0,set);\n\t}",
"private int dfs_my(TreeNode root, int sum) {\n if (root == null) return 0;\n int rsum = dfs(root.right, sum);\n int oval = root.val;\n root.val += sum + rsum;\n int lsum = dfs(root.left, root.val);\n return oval + lsum + rsum;\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n+1];\n\t\tint[] dp = new int[n+1];\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tdp[i] = Math.max(dp[i], dp[i-j] + arr[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[arr.length-1]);\n\t}",
"private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }",
"static long factorialRecurse(int n) {\r\n if (n == 0 || n == 1) {\r\n return 1;\r\n }\r\n return factorialRecurse(n - 1) * n;\r\n }",
"public static int iterativeFactDP(int n){\n int[] table = new int[n+1];\n table[0] = 0;\n table[1] = 1;\n for (int i = 2; i <=n ; i++) {\n table[i] = table[i-2]+table[i-1];\n }\n return table[n];\n }",
"@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n a = iia(n);\n int from[] = new int[n - 1];\n int to[] = new int[n - 1];\n for (int i = 0; i < n - 1; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, n - 1);\n int[][] pars = parents3(g, 0);\n par = pars[0];\n int[] ord = pars[1];\n dep = pars[2];\n spar = logstepParents(par);\n subTree = new int[n];\n dfs(0, -1);\n pointer = 1;\n baseArray = new int[n + 1];\n chainNo = 0;\n chainInHead = new int[n];\n Arrays.fill(chainInHead, -1);\n posInBase = new int[n];\n chainInInd = new int[n];\n HLD(0, -1);\n makeTree();\n out.println(Arrays.toString(baseArray));\n out.println(Arrays.toString(a));\n for (int q = 0; q < m; q++) {\n int type = ii();\n if (type == 1) {\n int u = ii() - 1, v = ii() - 1;\n query(u, v);\n out.println(\"DONE\");\n } else {\n int u = ii(), v = ii();\n // update\n }\n }\n }",
"static long numWays(int index, int m, int n, int[] arr) {\n long count = 0;\n\n\n if (n == 0 || index == (m - 1)) {\n if (index == (m - 1)) {\n arr[index] = n;\n }\n// for (int x : arr) {\n// System.out.print(x + \",\");\n// }\n// System.out.println();\n return 1;\n }\n\n if (n < 0 || index >= m) {\n return 0;\n }\n\n\n String key = index(arr, index, m, n);\n if (dp.containsKey(key)) {\n return dp.get(key);\n }\n\n\n for (int i = 0; i <= n; i++) {\n arr[index] = i;\n count += numWays(index + 1, m, n - i, arr);\n// for (int j = index + 1; j < arr.length; j++) {\n// arr[j] = 0;\n// }\n }\n\n dp.put(key, count % prime);\n return count % prime;\n }",
"public static int frog(int n, int [] h){\n\n int dp[] = new int [n];\n\n dp[0] = 0;\n dp[1] = Math.abs(h[1] - h[0]);\n\n for(int i = 2; i < n ; i ++){\n\n dp[i] = Math.min(dp [i - 2] + Math.abs(h[i] - h[i - 2]), dp[i - 1] + Math.abs(h[i] - h[i - 1]));\n\n\n\n }\n //print(dp);\n return dp[n - 1];\n }",
"static String recurse(int j,int p,int s,int steps)\r\n\t{\n\t\tif (steps==0)\r\n\t\t\treturn \"\";\r\n\t\tif (j==J)\r\n\t\t\treturn null;\r\n\t\tif ((J-j-1)*P*S+(P-p-1)*S+S-s<steps)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tint sn=s+1;\r\n\t\tint pn=p+(sn/S);\r\n\t\tint jn=j+(pn/P);\r\n\t\tpn%=P;\r\n\t\tsn%=S;\r\n\t\t\r\n\t\tString sol=recurse(jn,pn,sn,steps);\r\n\t\tif (sol!=null)\r\n\t\t\treturn sol;\r\n\t\t\r\n\t\tif (jp[j][p]<K && js[j][s]<K && ps[p][s]<K)\r\n\t\t{\r\n\t\t\tjp[j][p]++;\r\n\t\t\tjs[j][s]++;\r\n\t\t\tps[p][s]++;\r\n\t\t\tsol=recurse(jn,pn,sn,steps-1);\r\n\t\t\tif (sol!=null)\r\n\t\t\t\treturn \"\"+(j+1)+\" \"+(p+1)+\" \"+(s+1)+\"\\n\"+sol;\r\n\t\t\tjp[j][p]--;\r\n\t\t\tjs[j][s]--;\r\n\t\t\tps[p][s]--;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}",
"int help(int n, int k, int[][] map) {\n if (n <= 0 || k < 0) return 0;\n if (0 == k) return 1;\n if (1 == k) return n - 1;\n if (map[n][k] > 0) return map[n][k];\n long sum = 0;\n for (int i = 1; i <= k; i ++) {\n for (int j = 0; j < n; j ++) {\n// System.out.println(\"i = \" + i + \", j = \" + j + \", j - i = \" + (j - i) + \", j + i = \" + (j + i) + \", f0 = \" + (n - j + i - 1) + \", f1 = \" + (n - j - i - 1) + \", k - i = \" + (k - i));\n int g = 0, g0 = 0, g1 = 0;\n if (j - i >= 0) {\n g += help(n - j + i - 1, k - i, map);\n sum += g;\n// System.out.println(\"g0 = \" + g0 + \", g1 = \" + g1 + \", g = \" + g + \", sum = \" + sum);\n// System.out.println(\"-\");\n }\n }\n\n }\n// System.out.println(\"sum = \" + sum + \" ----\");\n map[n][k] = (int)sum;\n return (int)sum;\n }",
"static int APUtil(ArrayList<Arista>[] adj, int u, boolean visited[], int disc[], int low[], int parent[], int ap[]){\n\n // Count of children in DFS Tree\n int children = 0;\n\n // Mark the current node as visited\n visited[u] = true;\n\n // Initialize discovery time and low value\n disc[u] = low[u] = ++time;\n\n // Go through all vertices aadjacent to this\n for (Arista arista : adj[u]) {\n int v = arista.to; // v is current adjacent of u\n\n // If v is not visited yet, then make it a child of u\n // in DFS tree and recur for it\n if (!visited[v]) {\n children++;\n parent[v] = u;\n sol = APUtil(adj, v, visited, disc, low, parent, ap);\n\n // Check if the subtree rooted with v has a connection to\n // one of the ancestors of u\n low[u] = Math.min(low[u], low[v]);\n\n // u is an articulation point in following cases\n\n // (1) u is root of DFS tree and has two or more chilren.\n if (parent[u] == -1 && children > 1){\n ap[u]++;\n if((ap[u] > ap[sol]) || (ap[u] == ap[sol] && u < sol))\n sol = u;\n }\n\n\n // (2) If u is not root and low value of one of its child\n // is more than discovery value of u.\n if (parent[u] != -1 && low[v] >= disc[u]){\n ap[u]++;\n if((ap[u] > ap[sol]) || (ap[u] == ap[sol] && u < sol))\n sol = u;\n }\n\n }\n\n // Update low value of u for parent function calls.\n else if (v != parent[u])\n low[u] = Math.min(low[u], disc[v]);\n }\n\n return sol;\n }",
"private int dfs(int[][] matrix, int i, int j, int last, int[][] memo) {\n if (i < 0 || i >= matrix.length || j < 0 || j >= matrix[0].length || matrix[i][j] <= last) {\n return 0;\n }\n if (memo[i][j] != 0) {\n return memo[i][j];\n }\n int maxLength = 0;\n maxLength = Math.max(maxLength, dfs(matrix, i - 1, j, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i + 1, j, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i, j - 1, matrix[i][j], memo));\n maxLength = Math.max(maxLength, dfs(matrix, i, j + 1, matrix[i][j], memo));\n memo[i][j] = maxLength + 1;\n return memo[i][j];\n }",
"public double helper(int N, int K, int r, int c, double[][][] memo) {\n double prob = 0.0;\n if (K == 0) return 1.0;\n if (memo[r][c][K - 1] != -1.0) return memo[r][c][K - 1];\n int[][] directions = new int[][]{{-2, -1}, {-1, -2}, {-2, 1}, {-1, 2}, {2, 1}, {1, 2}, {2, -1}, {1, -2}};\n for (int i = 0; i < directions.length; i++) {\n int x = r + directions[i][0];\n int y = c + directions[i][1];\n if (x >= 0 && x <= N - 1 && y >= 0 && y <= N - 1) {\n double tempProb = helper(N, K - 1, x, y, memo);\n prob += 1.0/8.0*tempProb;\n }\n }\n memo[r][c][K - 1] = prob;\n return prob;\n }",
"private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int sum = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n int [][] arr = new int[N][2];\n for(int i = 0;i<N;i++)\n {\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n sc.nextLine();\n }\n //Arrays.sort(arr, new Comparator<int[]>() {\n // @Override\n // public int compare(int[] o1, int[] o2) {\n // return o1[1]-o2[1]; //按第二列价值排个序。\n // }\n //});\n int [][] dp = new int[N+1][sum+1];\n int [][] path = new int[N+1][sum+1];\n for(int i = 1;i<=N;i++)\n {\n for(int j = 1;j<=sum;j++)\n {\n if(j<arr[i-1][0])\n dp[i][j] = dp[i-1][j];\n else\n {\n if(dp[i-1][j]<dp[i-1][j-arr[i-1][0]]+arr[i-1][1])\n path[i][j] = 1;\n dp[i][j] = Math.max(dp[i-1][j],dp[i-1][j-arr[i-1][0]]+arr[i-1][1]);\n }\n }\n }\n System.out.println(dp[N][sum]);\n\n int i = N;\n int j = sum;\n while (i>0&&j>0)\n {\n if(path[i][j]==1)\n {\n System.out.print(1+\" \");\n j -=arr[i-1][0];\n }\n else\n {\n i--;\n System.out.print(0+\" \");\n }\n }\n\n\n // 改进版。只使用一维数组。\n // int [] f = new int[sum+1];\n // for(int i = 0;i<N;i++)\n // {\n // for (int j = sum;j>=0;j--)\n // {\n // if(j>=arr[i][0])\n // f[j] = Math.max(f[j], f[j-arr[i][0]]+arr[i][1]);\n // }\n // }\n // System.out.println(f[sum]);\n\n }",
"public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"dp:\");\n\t\tDP dp=new DP();\n\t\tint[] nums={4,2,5,6,2,1,1};\n\t\tSystem.out.println(\"rob:\"+dp.rob(nums));\n\t\tSystem.out.println(\"maxSubArray:\"+dp.maxSubArray(nums));\n\t\tint[] nums1={7,1,5,3,6,4};\n\t\tint[] nums2={7,6,4,3,1};\n\t\tSystem.out.println(\"maxProfit:\"+dp.maxProfit(nums1));\n\t\tSystem.out.println(\"maxProfit:\"+dp.maxProfit(nums2));\n\t\tSystem.out.println(\"maxProfit_2:\"+dp.maxProfit_2(nums1));\n\t\tSystem.out.println(\"maxProfit_2:\"+dp.maxProfit_2(nums2));\n\t\tSystem.out.println(\"climbStairs:\"+dp.climbStairs(4));\n\t\tDP obj=new DP(nums2);\n\t\tSystem.out.println(\"sumRange:\"+dp.sumRange(0,2));\n\t\tint[] nums3={1,2,3};\n\t\tSystem.out.println(\"combinationSum4:\"+dp.combinationSum4(nums3,4));\n\t\tint[] nums4={1,2,3,0,2,8};\n\t\t\n\t\tSystem.out.println(\"maxProfit1:\"+dp.maxProfit1(nums4));\n\t\tSystem.out.println(\"maxProfit2:\"+dp.maxProfit2(nums4));\n\t\tint[] nums5={23, 2, 6, 4, 7};\n\t\tSystem.out.println(\"checkSubarraySum:\"+dp.checkSubarraySum(nums5,6));\n\t\tSystem.out.println(\"checkSubarraySum_2:\"+dp.checkSubarraySum_2(nums5,6));\n\t\tSystem.out.println(\"numDecodings:\"+dp.numDecodings(\"10\"));\n\t}",
"private static int longestBalanced(char[] chars, int start, int delta, int[][] memo) {\n// System.out.println(\"first = \" + first + \"\\tdelta = \" + delta + \" last \" + (first + delta));\n if (memo[start][delta] >= 0) { // subproblem already seen & solved\n return memo[start][delta];\n } else {\n int result;\n if (delta == 1) { // two chars\n result = isBalancing(chars[start], chars[start + 1]) ? 2 : 0;\n } else {\n\n if (isBalancing(chars[start], chars[start + delta])) { // contribution\n final int sub = longestBalanced(chars, start + 1, delta - 2, memo);\n result = sub != 0 ? sub + 2 : 0;\n } else { // not balanced ends\n int smaller = longestBalanced(chars, start + 1, delta - 2, memo);\n if (smaller > 0) {\n result = smaller;\n } else {\n result = 0;\n for (int k = 1; k < delta; k += 2) {\n// System.out.println(\"dividing k = \" + k);\n if (longestBalanced(chars, start, k, memo) > 0 && longestBalanced(chars, start + k + 1, delta - k - 1, memo) > 0) {\n result = delta + 1; // i.e. length\n }\n }\n }\n }\n }\n// System.out.println(\"result = \" + result);\n return memo[start][delta] = result; // store and return\n }\n }",
"public static int calculate()\n {\n final List<Integer> oneToNine = IntStream.iterate(1, n -> n + 1)\n .limit(9)\n .boxed()\n .collect(toList());\n final List<List<Integer>> permutations = HeapPermutations.of(oneToNine);\n\n // System.out.println(permutations.size());\n //2- for each permutation\n // a. find all breaking 2 points to break\n // b. check first two sections' third is equal to the last section\n // c. if yes, add combintion to result, otherwise skip\n\n return permutations.stream()\n .flatMap(toTriples()) //find all combinations xx X yy = zz\n .filter(isPandigital()) // allow pandigital tripes through\n .map(Triple::getThird) // get the product\n .distinct() // get distinct products only given the problem statement does not allow repetition (see hint)\n .mapToInt(i -> i) // convert to primitive\n .sum(); // and finally get the sum\n }",
"public int jump(int[] nums) {\n int[] dp = new int[nums.length];\n for(int i=1;i<nums.length;i++) {\n dp[i] = Integer.MAX_VALUE;\n }\n for(int start =0 ; start < nums.length-1 ;start++){\n for(int end=start+1; end<=start+nums[start] && end<nums.length; end++){\n dp[end] = Math.min(dp[end], dp[start]+1);\n }\n }\n return dp[nums.length-1];\n }",
"private static int fab_recursive_2(int kth) {\n\n\t\tif (kth == 0) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (kth == 1) {\n\t\t\treturn fab_recursive_2(kth - 1) + 1;\n\t\t}\n\t\treturn fab_recursive_2(kth-1) + fab_recursive_2(kth-2);\n\t}",
"public long fibonacci_with_dp(int n){\n global_dp_count++;\n if(lookup[n] ==0) {\n if (n <= 1) {\n lookup[n] = n;\n } else {\n lookup[n] = fibonacci_with_dp(n - 1) + fibonacci_with_dp(n - 2);\n }\n }\n return lookup[n];\n }",
"public static void dynamicProgramming2(int[][] myArray){ \t\r\n\t\tint countNode = myArray.length;\r\n\t\tint rows = myArray[0].length;\r\n\t\tif(rows != countNode) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t\r\n \tint[] cost = new int[countNode];\r\n \tint[] prev = new int[countNode];\r\n \tboolean[] visited = new boolean[countNode];\r\n \t\r\n \tfor(int i = 0; i < countNode; i++) {\r\n \t\tcost[i] = myArray[0][i];\r\n \t\tprev[i] = 0;\r\n \t\tvisited[i] = false;\r\n \t}\r\n \t\r\n \tint cur = 0; \t\r\n \twhile(true)\r\n \t{\r\n \t\tfor(int i = cur; i < countNode; i++)\r\n \t\t{\r\n \t\t\tif(myArray[cur][i] + cost[cur] < cost[i])\r\n \t\t\t{\r\n \t\t\t\tcost[i] = myArray[cur][i] + cost[cur];\r\n \t\t\t\tprev[i] = cur;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tvisited[cur] = true;\r\n \t\tif(AllVisited(visited)) break;\r\n \t\t\r\n \t\t// Choose the node which is not visited yet\r\n \t\t// and has the minimum cost so far.\r\n \t\tint min = Integer.MAX_VALUE;\r\n \t\tfor(int i = 0; i < countNode; i++){\r\n \t\t\tif(!visited[i] && cost[i] < min) {\r\n \t\t\t\tcur = i;\r\n \t\t\t\tmin = cost[i];\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tSystem.out.println(\"Dynamic Programming2:\");\r\n \tSystem.out.println(\"Minimum Cost to go from 1 to \" + countNode + \" is \" + cost[countNode - 1]);\r\n \tStack<Integer> s = new Stack<Integer>();\r\n \tint traveller = countNode - 1;\r\n \ts.push(countNode);\r\n \twhile(traveller != 0)\r\n \t{\r\n \t\ts.push(prev[traveller] + 1);\r\n \t\ttraveller = prev[traveller];\r\n \t}\r\n \t\r\n \tStringBuilder sb = new StringBuilder();\r\n \twhile(!s.empty())\r\n \t{\r\n \t\tsb.append(s.pop());\r\n \t\tif (!s.empty()) {\r\n \t\tsb.append(\" -> \");\r\n \t\t}\r\n \t}\r\n \t\r\n \tSystem.out.println(\"Path from 1 to end is \" + sb.toString()); \r\n \tSystem.out.println();\r\n }",
"private static int numberOfWaysRecursive(int n) {\n\t\tif(n<0)\n\t\t\treturn 0;\n\t\tif(n==0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn numberOfWaysRecursive(n-1) + numberOfWaysRecursive(n-2) + numberOfWaysRecursive(n-3);\n\t}",
"static double solve(int pts, int dice) {\n\t\tif(pts >= 10000)\n\t\t\treturn pts;\n\t\telse if(cache[pts/50][dice-1] != 0)\n\t\t\treturn cache[pts/50][dice-1];\n\t\tdouble ans, result;\n\t\tswitch(dice) {\n\t\tcase 1:\n\t\t\tans = solve(pts+50,6) + solve(pts+100,6);\n\t\t\tresult = Math.max(pts, ans / 6.0);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tans = \n\t\t\tsolve(pts+200,6) + 2 * solve(pts+150,6) +\n\t\t\tsolve(pts+100,6) + 8 * solve(pts+100,1) +\n\t\t\t8 * solve(pts+50,1);\n\t\t\tresult = Math.max(ans / 36.0, pts);\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tans = \n\t\t\tsolve(pts+1000,6) + solve(pts+200,6) +\n\t\t\tsolve(pts+300,6) + solve(pts+400,6) +\n\t\t\tsolve(pts+500,6) + solve(pts+600,6) +\n\t\t\t3 * solve(pts+250,6) + 3 * solve(pts+200,6) + \n\t\t\t12 * Math.max(solve(pts+100,2),solve(pts+200,1)) + \n\t\t\t24 * Math.max(solve(pts+100,2),solve(pts+150,1)) +\n\t\t\t12 * Math.max(solve(pts+50,2),solve(pts+100,1)) + \n\t\t\t48 * solve(pts+100,2) + \n\t\t\t48 * solve(pts+50,2);\n\t\t\tresult = Math.max(ans / 216.0, pts);\n\t\t\tbreak; \n\t\tcase 4:\n\t\t\tans =\n\t\t\t//4 of a kind\n\t\t\tsolve(pts+2000,6) + solve(pts+400,6) + \n\t\t\tsolve(pts+600,6) + solve(pts+800,6) + \n\t\t\tsolve(pts+1000,6) + solve(pts+1200,6) + \n\t\t\t//3 of a kind\n\t\t\t4 * solve(pts+1050,6) + 16 * solve(pts+1000,1) +\n\t\t\t4 * solve(pts+300,6) + 4 * solve(pts+250,6) +\n\t\t\t12 * solve(pts+200,1) + 4 * solve(pts+400,6) + \n\t\t\t4 * solve(pts+350,6) + 12 * solve(pts+300,1) + \n\t\t\t4 * solve(pts+500,6) + 4 * solve(pts+450,6) + \n\t\t\t12 * solve(pts+400,1) + 4 * solve(pts+600,6) + \n\t\t\t16 * solve(pts+500,1) + 4 * solve(pts+700,6) + \n\t\t\t4 * solve(pts+650,6) + 12 * solve(pts+600,1) +\n\t\t\t//misc\n\t\t\t6 * solve(pts+300,6) + \n\t\t\t48 * Math.max(solve(pts+100,3),Math.max(solve(pts+200,2),solve(pts+250,1))) + \n\t\t\t48 * Math.max(solve(pts+100,3),Math.max(solve(pts+150,2),solve(pts+200,1))) + \n\t\t\t96 * Math.max(solve(pts+100,3),solve(pts+200,2)) + \n\t\t\t192 * Math.max(solve(pts+100,3),solve(pts+150,2)) + \n\t\t\t96 * Math.max(solve(pts+50,3),solve(pts+100,2)) + \n\t\t\t240 * solve(pts+100,3) + 240 * solve(pts+50,3);\n\t\t\tresult = Math.max(ans / 1296.0, pts);\n\t\t\tbreak; \n\t\tcase 5:\n\t\t\tans = \n\t\t\t//5 of a kind\n\t\t\tsolve(pts+3000,6) + solve(pts+600,6) + \n\t\t\tsolve(pts+900,6) + solve(pts+1200,6) + \n\t\t\tsolve(pts+1500,6) + solve(pts+1800,6) +\n\t\t\t//4 of a kind\n\t\t\t5 * solve(pts+2050,6) + 20 * solve(pts+2000,1) + \n\t\t\t5 * solve(pts+500,6) + 5 * solve(pts+450,6) +\n\t\t\t15 * solve(pts+400,1) + \n\t\t\t5 * solve(pts+700,6) + 5 * solve(pts+650,6) +\n\t\t\t15 * solve(pts+600,1) + \n\t\t\t5 * solve(pts+900,6) + 5 * solve(pts+850,6) +\n\t\t\t15 * solve(pts+800,1) + \n\t\t\t5 * solve(pts+1100,6) + 20 * solve(pts+1000,1) +\n\t\t\t5 * solve(pts+1300,6) + 5 * solve(pts+1250,6) +\n\t\t\t15 * solve(pts+1200,1) + \n\t\t\t//3 of a kind\n\t\t\t10 * solve(pts+1100,6) + \n\t\t\t80 * Math.max(solve(pts+1000,2),solve(pts+1050,1)) +\n\t\t\t160 * solve(pts+1000,2) +\n\t\t\t\n\t\t\t10 * solve(pts+400,6) + \n\t\t\t20 * solve(pts+350,6) + \n\t\t\t10 * solve(pts+300,6) +\n\t\t\t60 * Math.max(solve(pts+100,4),Math.max(solve(pts+200,2),solve(pts+300,1))) + \n\t\t\t60 * Math.max(solve(pts+50,4),Math.max(solve(pts+200,2),solve(pts+250,1))) + \n\t\t\t90 * solve(pts+200,2) +\n\t\t\t\n\t\t\t10 * solve(pts+500,6) + \n\t\t\t20 * solve(pts+450,6) + \n\t\t\t10 * solve(pts+400,6) +\n\t\t\t60 * Math.max(solve(pts+100,4),Math.max(solve(pts+300,2),solve(pts+400,1))) + \n\t\t\t60 * Math.max(solve(pts+50,4),Math.max(solve(pts+300,2),solve(pts+350,1))) + \n\t\t\t90 * solve(pts+300,2) +\n\t\t\t\n\t\t\t10 * solve(pts+600,6) + \n\t\t\t20 * solve(pts+550,6) + \n\t\t\t10 * solve(pts+500,6) +\n\t\t\t60 * Math.max(solve(pts+100,4),Math.max(solve(pts+400,2),solve(pts+500,1))) + \n\t\t\t60 * Math.max(solve(pts+50,4),Math.max(solve(pts+400,2),solve(pts+450,1))) + \n\t\t\t90 * solve(pts+400,2) +\n\t\t\t\n\t\t\t10 * solve(pts+700,6) + \n\t\t\t80 * Math.max(solve(pts+100,4),Math.max(solve(pts+500,2),solve(pts+600,1))) +\n\t\t\t160 * solve(pts+500,2) +\n\t\t\t\n\t\t\t10 * solve(pts+800,6) + \n\t\t\t20 * solve(pts+750,6) + \n\t\t\t10 * solve(pts+700,6) +\n\t\t\t60 * Math.max(solve(pts+100,4),Math.max(solve(pts+600,2),solve(pts+700,1))) + \n\t\t\t60 * Math.max(solve(pts+50,4),Math.max(solve(pts+600,2),solve(pts+650,1))) + \n\t\t\t90 * solve(pts+600,2) +\n\t\t\t//misc\n\t\t\t120 * Math.max(Math.max(solve(pts+100,4),solve(pts+200,3)),\n\t\t\t\t\tMath.max(solve(pts+250,2),solve(pts+300,1))) +\n\t\t\t480 * Math.max(solve(pts+100,4),Math.max(solve(pts+200,3),solve(pts+250,2))) + \n\t\t\t480 * Math.max(solve(pts+100,4),Math.max(solve(pts+150,3),solve(pts+200,2))) + \n\t\t\t600 * Math.max(solve(pts+100,4),solve(pts+200,3)) + \n\t\t\t1200 * Math.max(solve(pts+100,4),solve(pts+150,3)) + \n\t\t\t600 * Math.max(solve(pts+50,4),solve(pts+100,3)) + \n\t\t\t1020 * solve(pts+100,4) +\n\t\t\t1020 * solve(pts+50,4);\n\t\t\tresult = Math.max(pts, ans / 7776.0);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tans = \n\t\t\t//6 of a kind\n\t\t\tsolve(pts+4000,6) + solve(pts+800,6) +\n\t\t\tsolve(pts+1200,6) + solve(pts+1600,6) +\n\t\t\tsolve(pts+2000,6) + solve(pts+2400,6) +\n\t\t\t//5 of a kind\n\t\t\t6 * solve(pts+3050,6) + 24 * solve(pts+3000,1) +\n\t\t\t6 * solve(pts+700,6) + 6 * solve(pts+650,6) + 18 * solve(pts+600,1) +\n\t\t\t6 * solve(pts+1000,6) + 6 * solve(pts+950,6) + 18 * solve(pts+900,1) +\n\t\t\t6 * solve(pts+1300,6) + 6 * solve(pts+1250,6) + 18 * solve(pts+1200,1) +\n\t\t\t6 * solve(pts+1600,6) + 24 * solve(pts+1500,1) +\n\t\t\t6 * solve(pts+1900,6) + 6 * solve(pts+1850,6) + 18 * solve(pts+1800,1) +\n\t\t\t//4 of a kind\n\t\t\t15 * solve(pts+2100,6) + 120 * solve(pts+2050,1) + 240 * solve(pts+2000,2) +\n\t\t\t\n\t\t\t15 * solve(pts+600,6) + 30 * solve(pts+550,6) + \n\t\t\t15 * solve(pts+500,6) + 90 * solve(pts+500,1) +\n\t\t\t90 * solve(pts+450,1) + 135 * solve(pts+400,2) +\n\t\t\t\n\t\t\t15 * solve(pts+800,6) + 30 * solve(pts+750,6) + \n\t\t\t15 * solve(pts+700,6) + 90 * solve(pts+700,1) +\n\t\t\t90 * solve(pts+650,1) + 135 * solve(pts+600,2) +\n\t\t\t\n\t\t\t15 * solve(pts+1000,6) + 30 * solve(pts+950,6) + \n\t\t\t15 * solve(pts+900,6) + 90 * solve(pts+900,1) +\n\t\t\t90 * solve(pts+850,1) + 135 * solve(pts+800,2) +\n\t\t\t\n\t\t\t15 * solve(pts+1200,6) + 120 * solve(pts+1100,1) + 240 * solve(pts+1000,2) +\n\t\t\t\n\t\t\t15 * solve(pts+1400,6) + 30 * solve(pts+1350,6) + \n\t\t\t15 * solve(pts+1300,6) + 90 * solve(pts+1300,1) +\n\t\t\t90 * solve(pts+1250,1) + 135 * solve(pts+1200,2) +\n\t\t\t//3 of a kind x 2\n\t\t\t20 * \n\t\t\t(solve(pts+1200,6) + solve(pts+1300,6) + solve(pts+1400,6) +\n\t\t\t\t\tsolve(pts+1500,6) + solve(pts+1600,6) +\n\t\t\t\t\tsolve(pts+500,6) + solve(pts+600,6) +\n\t\t\t\t\tsolve(pts+700,6) + solve(pts+800,6) +\n\t\t\t\t\tsolve(pts+700,6) + solve(pts+800,6) +\n\t\t\t\t\tsolve(pts+900,6) + solve(pts+900,6) + \n\t\t\t\t\tsolve(pts+1000,6) + solve(pts+1100,6)) +\n\t\t\t//3 of a kind\n\t\t\t240 * Math.max(solve(pts+1000,3),Math.max(solve(pts+1050,2),solve(pts+1100,1))) + \n\t\t\t960 * Math.max(solve(pts+1000,3),solve(pts+1050,2)) + \n\t\t\t1200 * solve(pts+1000,3) +\n\t\t\t\n\t\t\t60 * solve(pts+450,6) + 60 * solve(pts+400,6) +\n\t\t\t180 * Math.max(solve(pts+100,5),Math.max(solve(pts+200,4),solve(pts+400,1))) + \n\t\t\t360 * Math.max(solve(pts+100,5), Math.max(solve(pts+150,4),Math.max(solve(pts+200,3),Math.max(solve(pts+300,2),solve(pts+350,1))))) +\n\t\t\t180 * Math.max(solve(pts+50,5),Math.max(solve(pts+100,4),Math.max(solve(pts+200,3), Math.max(solve(pts+250,2),solve(pts+300,1))))) + \n\t\t\t540 * Math.max(solve(pts+100,5),Math.max(solve(pts+200,3),solve(pts+300,2))) + \n\t\t\t540 * Math.max(solve(pts+50,5),Math.max(solve(pts+200,3),solve(pts+250,2))) + \n\t\t\t480 * solve(pts+200,3) +\n\t\t\t\n\t\t\t60 * solve(pts+550,6) + 60 * solve(pts+500,6) +\n\t\t\t180 * Math.max(solve(pts+100,5),Math.max(solve(pts+200,4),Math.max(solve(pts+300,3), Math.max(solve(pts+400,2),solve(pts+500,1))))) + \n\t\t\t360 * Math.max(solve(pts+100,5), Math.max(solve(pts+150,4),Math.max(solve(pts+300,3),Math.max(solve(pts+400,2),solve(pts+450,1))))) +\n\t\t\t180 * Math.max(solve(pts+50,5),Math.max(solve(pts+100,4),Math.max(solve(pts+300,3), Math.max(solve(pts+350,2),solve(pts+400,1))))) + \n\t\t\t540 * Math.max(solve(pts+100,5),Math.max(solve(pts+300,3),solve(pts+400,2))) + \n\t\t\t540 * Math.max(solve(pts+50,5),Math.max(solve(pts+300,3),solve(pts+350,2))) + \n\t\t\t480 * solve(pts+300,3) +\n\t\t\t\n\t\t\t60 * solve(pts+650,6) + 60 * solve(pts+600,6) +\n\t\t\t180 * Math.max(solve(pts+100,5),Math.max(solve(pts+200,4),Math.max(solve(pts+400,3), Math.max(solve(pts+500,2),solve(pts+600,1))))) + \n\t\t\t360 * Math.max(solve(pts+100,5), Math.max(solve(pts+150,4),Math.max(solve(pts+400,3),Math.max(solve(pts+500,2),solve(pts+550,1))))) +\n\t\t\t180 * Math.max(solve(pts+50,5),Math.max(solve(pts+100,4),Math.max(solve(pts+400,3), Math.max(solve(pts+450,2),solve(pts+500,1))))) + \n\t\t\t540 * Math.max(solve(pts+100,5),Math.max(solve(pts+400,3),solve(pts+500,2))) + \n\t\t\t540 * Math.max(solve(pts+50,5),Math.max(solve(pts+400,3),solve(pts+450,2))) + \n\t\t\t480 * solve(pts+400,3) +\n\t\t\t\n\t\t\t240 * Math.max(solve(pts+500,3),Math.max(solve(pts+600,2),solve(pts+700,1))) + \n\t\t\t960 * Math.max(solve(pts+500,3),solve(pts+600,2)) + \n\t\t\t1200 * solve(pts+500,3) +\n\t\t\t\n\t\t\t60 * solve(pts+850,6) + 60 * solve(pts+800,6) +\n\t\t\t180 * Math.max(solve(pts+100,5),Math.max(solve(pts+200,4),Math.max(solve(pts+600,3), Math.max(solve(pts+700,2),solve(pts+800,1))))) + \n\t\t\t360 * Math.max(solve(pts+100,5), Math.max(solve(pts+150,4),Math.max(solve(pts+600,3),Math.max(solve(pts+700,2),solve(pts+750,1))))) +\n\t\t\t180 * Math.max(solve(pts+50,5),Math.max(solve(pts+100,4),Math.max(solve(pts+600,3), Math.max(solve(pts+650,2),solve(pts+700,1))))) + \n\t\t\t540 * Math.max(solve(pts+100,5),Math.max(solve(pts+600,3),solve(pts+700,2))) + \n\t\t\t540 * Math.max(solve(pts+50,5),Math.max(solve(pts+600,3),solve(pts+650,2))) + \n\t\t\t480 * solve(pts+600,3) +\n\t\t\t//misc\n\t\t\t1800 * solve(pts+750,6) + 720 * solve(pts+1500,6) +\n\t\t\t1080 * Math.max(solve(pts+100,5),Math.max(solve(pts+200,4),Math.max(solve(pts+250,3),solve(pts+300,2)))) + \n\t\t\t3600 * Math.max(solve(pts+100,5),Math.max(solve(pts+200,4),solve(pts+250,3))) +\n\t\t\t3600 * Math.max(solve(pts+100,5),Math.max(solve(pts+150,4),solve(pts+200,3))) + \n\t\t\t2520 * Math.max(solve(pts+100,5),solve(pts+200,4)) +\n\t\t\t5400 * Math.max(solve(pts+100,5),solve(pts+150,4)) + \n\t\t\t2520 * Math.max(solve(pts+50,5),solve(pts+100,4)) +\n\t\t\t3600 * solve(pts+100,5) + 3600 * solve(pts+50,5);\n\t\t\tresult = Math.max(pts, ans / 46656.0);\n\t\t}\n\t\tcache[pts/50][dice-1] = result;\n\t\treturn result;\n\t}",
"private long solveHelper(BitSet S){\n if(dp.containsKey(S))\n return dp.get(S);\n\n boolean allset = true;\n for(int i=0; i<SLen; ++i)\n allset = allset && S.get(i);\n\n if(allset)\n return 0;\n\n long minflip = INF;\n\n int idx = 0;\n for(; idx<=SLen-K; ++idx)\n if(!S.get(idx))\n break;\n\n if(idx <= SLen-K){\n track.add(S);\n S.flip(idx, idx+K);\n minflip = Math.min(minflip, solveHelper(S) + 1);\n }\n\n /*for(; idx<=SLen-K; ++idx){\n S.flip(idx, idx+K);\n if(!track.contains(S)) {\n\n track.remove(S);\n }\n S.flip(idx, idx+K);\n }*/\n\n dp.put(S, minflip);\n return minflip;\n }",
"public int recursive(int n) {\r\n //base case: return n if <= 1\r\n if (n <= 1) {\r\n return n;\r\n }\r\n //else return result of of two previous #s being added to each other\r\n return recursive(n - 1) + recursive(n - 2);\r\n }",
"private double dfs(String start, String end, HashMap<String, ArrayList<String>> pairs, HashMap<String, ArrayList<Double>> values, HashSet<String> set, double value)\n {\n if (set.contains(start)) \n return 0.0;\n \n // If start is not there, return 0\n if (!pairs.containsKey(start)) \n return 0.0;\n \n // Completed the query so return the result\n if (start.equals(end)) \n return value;\n \n set.add(start);\n \n ArrayList<String> strList = pairs.get(start);\n ArrayList<Double> valueList = values.get(start);\n double tmp = 0.0;\n \n for (int i = 0; i < strList.size(); i++) \n {\n tmp = dfs(strList.get(i), end, pairs, values, set, value*valueList.get(i));\n if (tmp != 0.0) \n break;\n }\n \n // Suppose we have a path a->b->c, and we have another path a->b->d. If c and d is completely the same, when we found the path a->b->c, \n // we need to undo the visited node so that we can find the other path a->b->d. Usually in DFS we only visited a node once but here we need to revisit a node in different paths.\n set.remove(start);\n return tmp;\n }",
"private void DFS(int[] array, int level, List<Integer> list) {\n\t\tif (level == array.length) {\n\t\t\tif (Math.abs(sum - 2 * cur) < min) {\n\t\t\t\tmin = Math.abs(sum - 2 * cur);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tcur += array[level];\n\t\tlist.add(array[level]);\n\t\tDFS(array, level + 1, list);\n\t\tcur -= array[level];\n\t\tlist.remove(list.size() - 1);\n\t\tDFS(array, level + 1, list);\n\t}",
"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 }",
"private static int findMax(int[] A, int len, int[] dp) {\r\n\t\t\r\n\t\tif(len < 0)\r\n\t\t\treturn 0;\r\n\t\t\t\r\n\t\tif(len == 0)\r\n\t\t\treturn A[0];\r\n\t\t\r\n\t\tif(len == 1)\r\n\t\t\treturn Math.max(A[0], A[1]);\r\n\t\t\r\n\t\tif(dp[len] != 0)\r\n\t\t\treturn dp[len];\r\n\t\t\r\n\t\tdp[len] = Math.max((A[len] + findMax(A, len-2, dp)), findMax(A, len-1, dp));\r\n\t\treturn dp[len];\r\n\t\t\r\n\t}",
"public int minDis(String s1, String s2, int n, int m, int[][]dp){\n \n if(n == 0) \n return m; \n if(m == 0) \n return n;\n \n // To check if given n & m has already been executed\n if(dp[n][m] != -1) \n return dp[n][m];\n \n // If characters are equal, execute recursive function for n-1, m-1\n if(s1.charAt(n-1) == s2.charAt(m-1))\n { \n if(dp[n-1][m-1] == -1)\n { \n return dp[n][m] = minDis(s1, s2, n-1, m-1, dp); \n } \n else\n return dp[n][m] = dp[n-1][m-1]; \n }\n \n //If characters are not equal, we need to\n //Find the minimum cost out of all 3 operations. \n else\n { \n int m1, m2, m3; // temp variables \n if(dp[n-1][m] != -1)\n { \n m1 = dp[n - 1][m]; \n } \n else\n { \n m1 = minDis(s1, s2, n - 1, m, dp); \n } \n \n if(dp[n][m - 1] != -1)\n { \n m2 = dp[n][m - 1]; \n } \n else\n { \n m2 = minDis(s1, s2, n, m - 1, dp); \n } \n \n if(dp[n - 1][m - 1] != -1)\n { \n m3 = dp[n - 1][m - 1]; \n } \n else\n { \n m3 = minDis(s1, s2, n - 1, m - 1, dp); \n } \n return dp[n][m] = 1 + Math.min(m1, Math.min(m2, m3)); \n } \n }",
"static int padovan(int n){\n if(n>=0 && n<=2)\n return 1;\n return padovan(n-2) + padovan(n-3);\n }",
"public static int rob(int[] nums) {\n /*int n=nums.length;\n int[] dp = new int[n];\n if(nums.length==1)\n return nums[0];\n dp[0]=nums[0];\n dp[1]=Math.max(nums[0],nums[1]);\n for(int i=2;i<n;i++)\n dp[i]=Math.max(dp[i-1],dp[i-2]+nums[i]);\n System.out.println(Arrays.toString(dp));\n return dp[n-1];*/\n int n= nums.length;\n int[] dp = new int[n+1];\n dp[0]=0;\n dp[1]=nums[0];\n for(int i=2;i<=n;i++){\n dp[i]=Math.max(dp[i-2]+nums[i-1],dp[i-1]);\n }\n\n return dp[n];\n }",
"private Signal buildBDD(ArrayList<Literal> ps, int r, int size, int sum, int materialLeft,\n HashMap</* Pair */Integer, Signal> memo) {\n if (sum >= r) {\n Constant constant = new Constant(false);\n return constant;\n } else if (sum + materialLeft < r) {\n Constant constant = new Constant(true);\n return constant;\n }\n /* Pair */Integer key = pack(size, sum);// new PairInteger(size, sum);\n if (memo.get(key) == null) {\n size--;\n materialLeft -= 1;// cs[size];\n int hiSum;\n if (ps.get(size).isPositive()) {\n hiSum = sum;\n } else {\n hiSum = sum + 1; // cs[size];\n }\n int loSum;\n if (ps.get(size).isPositive()) {\n loSum = sum + 1; // cs[size];\n } else {\n loSum = sum;\n }\n Signal hiResult = buildBDD(ps, r, size, hiSum, materialLeft, memo);\n Signal loResult = buildBDD(ps, r, size, loSum, materialLeft, memo);\n Literal lit = ps.get(size);\n if (!lit.isPositive()) {\n lit = new Literal(lit.getIndex(), true);\n }\n ITEGate ite = new ITEGate(lit, loResult, hiResult);\n memo.put(key, ite);\n }\n return memo.get(key);\n }",
"private static long redelpol(int n, int k, int[][] untried, int startIndex, int endIndex, boolean[][] field)\n {\n if(k == n)\n return 1;\n\n else\n {\n long l = 0;\n\n for(int i = startIndex; i <= endIndex; ++i)\n {\n int x = untried[i][0], y = untried[i][1];\n\n field[x+n-1][y+1] = false;\n\n int cursor = 0;\n boolean a = false, b = false, c = false, d = false;\n\n if(x+1 < n && (field[x+1+n-1][y+1]))\n {\n field[x+1+n-1][y+1] = false;\n cursor++;\n untried[cursor+endIndex][0] = x+1;\n untried[cursor+endIndex][1] = y;\n a = true;\n }\n\n if(y + 1 < n && (field[x+n-1][y+1+1]))\n {\n field[x+n-1][y+1+1] = false;\n cursor++;\n untried[cursor+endIndex][0] = x;\n untried[cursor+endIndex][1] = y+1;\n b = true;\n }\n\n if(x-1 > -n && (field[x-1+n-1][y+1]))\n {\n field[x-1+n-1][y+1] = false;\n cursor++;\n untried[cursor+endIndex][0] = x-1;\n untried[cursor+endIndex][1] = y;\n c = true;\n }\n\n if(y-1 >= -1 && (field[x+n-1][y-1+1]))\n {\n field[x+n-1][y-1+1] = false;\n cursor++;\n untried[cursor+endIndex][0] = x;\n untried[cursor+endIndex][1] = y-1;\n d = true;\n }\n\n l += redelpol(n, k+1, untried, i+1, endIndex+cursor, field);\n\n if(a)\n field[x+1+n-1][y+1] = true;\n if(b)\n field[x+n-1][y+1+1] = true;\n if(c)\n field[x-1+n-1][y+1] = true;\n if(d)\n field[x+n-1][y-1+1] = true;\n }\n\n return l;\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 }",
"private int helperM(int[] a, int s, int e, Integer[][] memo) {\n if (s == e) return a[s];\n if (memo[s][e] != null) return memo[s][e];\n int c1 = a[s] - helperM(a, s + 1, e, memo);\n int c2 = a[e] - helperM(a, s, e - 1, memo);\n memo[s][e] = Math.max(c1, c2);\n return memo[s][e];\n }",
"private int dfs(TreeNode node, TreeNode target, int K, List<Integer> res) {\r\n if (node == null) return -1;\r\n\r\n if (node.val == target.val) {\r\n // add nodes from current subtree\r\n addNodes(node, K, res);\r\n return 0;\r\n }\r\n\r\n int left = dfs(node.left, target, K, res);\r\n int right = dfs(node.right, target, K, res);\r\n \r\n // at most one of left and right could be not -1\r\n if (right != -1) {\r\n // current node is k far from target\r\n if (K == right + 1) res.add(node.val);\r\n // target is in the right subtree, add nodes in left subtree\r\n else addNodes(node.left, K - right - 2, res);\r\n return right + 1;\r\n }\r\n\r\n if (left != -1) {\r\n // current node is k far from target\r\n if (K == left + 1) res.add(node.val);\r\n // target is in the left subtree, add nodes in right subtree\r\n else addNodes(node.right, K - left - 2, res);\r\n return left + 1;\r\n }\r\n\r\n // both left and right are - 1\r\n return -1;\r\n }",
"void bellford(ArrayList<Integer> nlist){\n\n int stval = nlist.get(0);\n dlist.get(stval).setval(stval);\n dlist.get(stval).setDist(0);\n\n for(int i = 0; i < nlist.size()-1; i++){\n for(int key: nlist){\n LinkedList<Node> alist = grp.getOrDefault(key, null);\n if(alist != null){\n for(Node node: alist){\n int val = node.getval();\n int we = node.getDist();\n int ddist = dlist.get(val).getDist();\n int odist = dlist.get(key).getDist();\n if(odist != Integer.MAX_VALUE && ddist > odist+we){\n dlist.get(val).setval(key);\n dlist.get(val).setDist(odist+we);\n }\n }\n }\n }\n }\n for(int key: dlist.keySet()){\n System.out.println(key+\" dist:\"+dlist.get(key).getDist()+\" prev:\"+dlist.get(key).getval());\n }\n System.out.println(\"Negative cycles at:\");\n //iisue should run n-1 times:\n for(int key: nlist){\n LinkedList<Node> alist = grp.getOrDefault(key, null);\n if(alist != null){\n for(Node node: alist){\n int val = node.getval();\n int we = node.getDist();\n int ddist = dlist.get(val).getDist();\n int odist = dlist.get(key).getDist();\n if(odist != Integer.MAX_VALUE && ddist > odist+we){\n dlist.get(val).setval(-999);\n dlist.get(val).setDist(odist+we);\n System.out.println(val);\n }\n }\n }\n }\n }",
"protected abstract int solve(List<Integer> myList);",
"private List<Integer> dfsRecursive(LinkedList<Integer> list, \r\n String seq, int length, int point, int requiredSize) {\r\n \r\n List<Integer> neighbors = generateAdjacentCells(point, seq);\r\n if (length == requiredSize) {\r\n return list;\r\n }\r\n if (neighbors.size() == 0) {\r\n return new LinkedList<Integer>();\r\n }\r\n for (int n: neighbors) {\r\n this.togglePosMark(n);\r\n length += elementAtPos(n).length();\r\n list.addLast(n);\r\n \r\n List<Integer> result = dfsRecursive(list, seq.substring(\r\n elementAtPos(n).length(), seq.length()), length, n, requiredSize);\r\n \r\n if (result.size() == 0) {\r\n length -= elementAtPos(n).length();\r\n this.togglePosMark(list.removeLast());\r\n }\r\n else {\r\n return result;\r\n }\r\n }\r\n return new LinkedList<Integer>();\r\n }",
"public static int fibboDP(int n){\n int[] mem = new int[n+1];\n if(n==0 || n==1){\n return mem[n]=n;\n }\n if(mem[n]!=0){\n return mem[n];\n }\n int fib1 = fibboDP(n-1);\n int fib2 = fibboDP(n-2);\n return mem[n] = fib1+fib2;\n }",
"private void pruneRecur(BinaryNode node, Integer sum, Integer k) {\n\n if (node == null) return;\n else {\n sum += (Integer)node.element;\n if (largestPath(node.left, sum) >= k) {\n pruneRecur(node.left, sum, k);\n } else {\n node.left = null;\n }\n if (largestPath(node.right, sum) >= k) {\n pruneRecur(node.right, sum, k);\n } else {\n node.right = null;\n }\n }\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint [][][] dp = new int[n+1][m+1][m+1];\n\t\tint [][] arr = new int[n+1][m+1];\n\t\tint max = 1;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (arr[i][j] == 1) {\n\t\t\t\t\tfor (int z = j; z <= m && arr[i][z] == 1; z++) {\n\t\t\t\t\t\tdp[i][j][z] = dp[i-1][j][z] + 1;\n\t\t\t\t\t\tmax = Math.max(max, Math.min(dp[i][j][z], z-j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}",
"private static int DP(String[] arr, int[] len, int i) {\n int min = Integer.MAX_VALUE;\n int minPointer = Integer.MAX_VALUE;\n for (int k = i + 1; k < arr.length; k++) {\n int badness = badness(len, i, k, PAGE_WIDTH);\n if (badness == Integer.MAX_VALUE) {\n break;\n } else if (badness < min) {\n min = badness;\n minPointer = k;\n } // TODO: if badness max value then k is already +1\n }\n\n if (minPointer == arr.length - 1) {\n minPointer = arr.length;\n }\n return minPointer;\n }",
"private static int betterSolution(int n) {\n return n*n*n;\n }",
"public String canWalkExactly(int N, int[] from, int[] to) {\n isVisited = new boolean[N];\n steps = new int[N];\n minSteps = new int[N];\n path = new Stack<>();\n adj = new ArrayList<>(N);\n allSCC = new ArrayList<>();\n for (int i = 0; i < N; i++)\n adj.add(new ArrayList<>());\n\n // populate adj based on from, to\n for (int i = 0; i < from.length; i++) {\n adj.get(from[i]).add(to[i]);\n }\n\n totalSteps = 0;\n Arrays.fill(isVisited, false);\n Arrays.fill(steps, UNVISITED);\n Arrays.fill(minSteps, UNVISITED);\n tarjanSCC(0);\n\n // check if 0 and 1 are in the same scc\n System.out.println(\"CHECKING\");\n boolean found = false;\n for (List<Integer> scc : allSCC) {\n if (scc.contains(0) && scc.contains(1)) {\n found = true;\n break;\n }\n }\n if (!found) return NO;\n// if(minSteps[0] != minSteps[1]) return NO;\n System.out.println(\"0 and 1 in the same scc\");\n /*\n Check if gcd of the length of all simple cycles is 1\n by checking if it is an aperiodic graph\n https://en.wikipedia.org/wiki/Aperiodic_graph\n */\n depths = new int[N];\n Arrays.fill(depths, UNVISITED);\n depths[0] = 0;\n findDepths(0);\n\n int res = -1;\n for (int i = 0; i < from.length; i++) {\n int s = from[i];\n int t = to[i];\n if (depths[s] == UNVISITED || depths[t] == UNVISITED) continue;\n int len = depths[t] - depths[s] - 1;\n if (len == 0) continue;\n if (len < 0) len *= -1;\n if (res == -1) res = len;\n else res = gcd(res, len);\n }\n\n return res == 1 ? YES : NO;\n }",
"private Rational computeDirectly() {\n BigInteger _26390k = _26390.multiply(BigInteger.valueOf(start));\n BigInteger _24591257856pk = _24591257856.pow(start);\n\n Rational sum = Rational.ZERO;\n\n for (int k = start; k < end; k++) {\n BigInteger num = Factorial.verified(BigInteger.valueOf(k << 2));\n num = num.multiply(_1103.add(_26390k));\n\n BigInteger den = Factorial.verified(BigInteger.valueOf(k)).pow(4);\n den = den.multiply(_24591257856pk);\n\n _26390k = _26390k.add(_26390);\n _24591257856pk = _24591257856pk.multiply(_24591257856);\n\n sum = sum.add(Rational.valueOf(num, den).dropTo(context));\n sum = sum.dropTo(context);\n }\n return sum;\n }",
"public void DFS(List<List<Integer>> result, List<Integer> temp, int n, int start){\n for(int i = start; i * i <= n; i++){\n //we skip undividable factor\n if(n%i != 0) continue;\n \n //found a pair of factor, we can add them to temp list to build a valid factor combination\n List<Integer> copy = new ArrayList<Integer>(temp);\n //since i <= n/i, we will add i first, then n/i\n copy.add(i);\n copy.add(n/i);\n result.add(copy);\n \n //then we try to decompose larger n/i factor, and our later factors shall not be > i, since i has been inserted into list \n temp.add(i);\n DFS(result, temp, n/i, i);\n temp.remove(temp.size() - 1);\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tint n = 10;\n\t\tint[] lookUp = new int[n+1];\n\t\tArrays.fill(lookUp, 0);\n\t\tSystem.out.println(numberOfWaysRecursive(n));\n\t\tSystem.out.println(numberOfWaysDynamic(n,lookUp));\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] dp = new int [n+1];\n \n dp[0] = 0;\n dp[1] = 0;\n \n for(int i=2; i<=n; i++) {\n dp[i] = dp[i-1]+1; //n이 나누어떨어지는 것과 관계없는 n-1을 일단 dp[i]에 넣어둔다.\n if(i%2 == 0) dp[i] = Math.min(dp[i/2]+1, dp[i]); \n if(i%3 == 0) dp[i] = Math.min(dp[i/3]+1, dp[i]);\n }\n System.out.println(dp[n]);\n\n\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint arr[] = new int[n+1];\n\t\t\n\t\tint dp[] =new int[n+1];\n\t\t\n\t\t\n\t\tfor(int i =1; i<=n; i++){\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\t\n\t\tdp[1]=arr[1];\n\t\t\n\t\tif(n>=2) {\n\t\tdp[2]=dp[1]+arr[2];\n\t\t}\n\t\t\n\t\tfor(int i=3; i<=n; i++){\n\t\t\t\n\t\t\tdp[i] = Math.max(dp[i-2]+arr[i], dp[i-3]+arr[i-1]+arr[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[n]);\n\t\t\n\t}",
"protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }",
"@Override\n public Solution solve(ISearchable domain) {\n if(domain==null)\n return null;\n Solution s2=domain.checkIfIsSmall();\n if(s2!=null){\n domain.isClear();\n return s2;\n }\n Solution sol = new Solution();\n temp.add(domain.getStartState());\n numOfNude++;\n domain.isVisit(domain.getStartState());\n ArrayList<AState> neighbors=new ArrayList<AState>();\n while(!temp.isEmpty()){\n AState curr=temp.poll();\n if(domain.isEqual(domain.getGoalState(),curr)){\n numOfNude++;\n sol =solutionPath(curr,sol);\n\n break;\n }\n neighbors=domain.getAllPossibleState(curr);\n for(int i=0;i<neighbors.size();i++){\n if(domain.isEqual(domain.getGoalState(),neighbors.get(i))){\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n numOfNude++;\n sol =solutionPath(neighbors.get(i),sol);\n break;\n }\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n temp.add(neighbors.get(i));\n numOfNude++;\n }\n }\n\n domain.isClear();\n return sol;\n }",
"public static int fibonacciDP(int n,int[] array){\n if (array[n] == -1 ){\n int res = 0;\n if (n==0 || n == 1)\n res = n;\n else\n res = fibonacciDP(n - 1, array) + fibonacciDP(n - 2, array);\n\n array[n] = res;\n }\n return array[n];\n }"
] | [
"0.67684764",
"0.66539025",
"0.65219766",
"0.6483358",
"0.6462934",
"0.6400321",
"0.6380918",
"0.6375925",
"0.6350945",
"0.62298846",
"0.62007",
"0.6178424",
"0.61667097",
"0.6156123",
"0.61481327",
"0.6114105",
"0.6106906",
"0.609622",
"0.60613155",
"0.60263646",
"0.59823465",
"0.5980628",
"0.59365225",
"0.59269273",
"0.59240043",
"0.5908191",
"0.5901019",
"0.5893276",
"0.589014",
"0.58888686",
"0.5844559",
"0.5810715",
"0.5809762",
"0.5804453",
"0.5802249",
"0.57979447",
"0.57695293",
"0.57657933",
"0.57455266",
"0.57169336",
"0.5703224",
"0.5699636",
"0.5690968",
"0.5676934",
"0.56738806",
"0.56731963",
"0.5669544",
"0.56644315",
"0.563994",
"0.5635559",
"0.563523",
"0.5628598",
"0.5619239",
"0.5619123",
"0.56100255",
"0.5597383",
"0.55949026",
"0.55875546",
"0.55795515",
"0.55781215",
"0.5576529",
"0.5569001",
"0.55641156",
"0.5561129",
"0.55579776",
"0.5557002",
"0.55263186",
"0.5523006",
"0.5516792",
"0.5514301",
"0.55117095",
"0.5507352",
"0.5505922",
"0.5497435",
"0.5476757",
"0.5465641",
"0.5449166",
"0.5449103",
"0.54428685",
"0.5442494",
"0.54398453",
"0.5433905",
"0.5421482",
"0.5418878",
"0.5414901",
"0.5414456",
"0.5411878",
"0.54075754",
"0.54041314",
"0.53988105",
"0.5398233",
"0.53950244",
"0.53888375",
"0.53886133",
"0.538361",
"0.5380614",
"0.5379718",
"0.5378315",
"0.5376642",
"0.53763884",
"0.53721374"
] | 0.0 | -1 |
Fonction permettant de concatener tout les tableaux de ROW en un seul | public ArrayList<MensurationRow> toRow() {
ArrayList<MensurationRow> arr = new ArrayList<MensurationRow>();
arr.addAll(getGenerale().toRow());
arr.addAll(getHaut().toRow());
arr.addAll(getBas().toRow());
arr.addAll(getMain().toRow());
return arr;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String printRow(Result res){\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n String row = \"\";\n while(iter.hasNext()){\n Pair<String ,byte[]> col = iter.next();\n String val = appendFromCol(col.getFirst(), res);\n row += val + delim;\n }\n // strip out last delim\n return row.substring(0, row.length()-1);\n }",
"private StringBuilder generateRowStringValue(PuzzlePiece col1, PuzzlePiece col2, PuzzlePiece col3, PuzzlePiece col4) {\n StringBuilder builder = new StringBuilder();\n int[][] arrayPuzzle1 = col1 != null ? col1.getArrayPuzzle() : null;\n int[][] arrayPuzzle2 = col2 != null ? col2.getArrayPuzzle() : null;\n int[][] arrayPuzzle3 = col3 != null ? col3.getArrayPuzzle() : null;\n int[][] arrayPuzzle4 = col4 != null ? col4.getArrayPuzzle() : null;\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 20; j++) {\n if (j < 5) {\n if (col1 != null) {\n builder.append(arrayPuzzle1[i][j] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n } else if (j < 10) {\n int jj = j - 5;\n if (col2 != null) {\n builder.append(arrayPuzzle2[i][jj] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n } else if (j < 15) {\n int jj = j - 10;\n if (col3 != null) {\n builder.append(arrayPuzzle3[i][jj] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n } else {\n int jj = j - 15;\n if (col4 != null) {\n builder.append(arrayPuzzle4[i][jj] == 1 ? \"o\" : \" \");\n } else {\n builder.append(\" \");\n }\n }\n }\n builder.append(\"\\n\");\n }\n return builder;\n }",
"public static <T> String concatMatrix(String glueLines, String glueColumns, int[][] array) {\n\t\tif (array.length==0) return \"\";\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor (int i=0; i<array.length; i++) {\n\t\t\tif (i>0)sb.append(glueLines);\n\t\t\tfor (int j=0; j<array[i].length; j++) {\n\t\t\t\tif (j>0) sb.append(glueColumns);\n\t\t\t\tsb.append(array[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"private ArrayList<String> concatColumns(ArrayList<String>... columns) {\n if (columns.length < 1) {\n return null;\n } else if (columns.length < 2) {\n return columns[0];\n } else {\n ArrayList<String> concatenated = new ArrayList<String>();\n for (ArrayList<String> column : columns) {\n for (String col : column) {\n concatenated.add(col);\n }\n }\n return concatenated;\n\n }\n }",
"private static String processOneRow(int[] rowSize, String[] values){\n\t\tStringBuilder result = new StringBuilder();\t\t\n\t\tprocessOneRow(rowSize, values, result, false); \n\t\treturn result.toString(); \t\n\n\t}",
"public static <T> String concatMatrix(String glueLines, String glueColumns, double[][] array) {\n\t\tif (array.length==0) return \"\";\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor (int i=0; i<array.length; i++) {\n\t\t\tif (i>0)sb.append(glueLines);\n\t\t\tfor (int j=0; j<array[i].length; j++) {\n\t\t\t\tif (j>0) sb.append(glueColumns);\n\t\t\t\tsb.append(array[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"private String rowOfEntriesToString(TableEntry<K, V> element) {\r\n\t\tString s = \"\";\r\n\r\n\t\twhile (element != null) {\r\n\t\t\ts += \", \" + element.toString();\r\n\t\t\telement = element.next;\r\n\t\t}\r\n\r\n\t\treturn s;\r\n\t}",
"public static <T> String concatMatrix(String glueLines, String glueColumns, T[][] array, Function<T,String> transformer) {\n\t\tif (array.length==0) return \"\";\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor (int i=0; i<array.length; i++) {\n\t\t\tif (i>0)sb.append(glueLines);\n\t\t\tfor (int j=0; j<array[i].length; j++) {\n\t\t\t\tif (j>0) sb.append(glueColumns);\n\t\t\t\tsb.append(transformer.apply(array[i][j]));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static <T> String concatMatrix(String glueLines, String glueColumns, float[][] array) {\n\t\tif (array.length==0) return \"\";\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor (int i=0; i<array.length; i++) {\n\t\t\tif (i>0)sb.append(glueLines);\n\t\t\tfor (int j=0; j<array[i].length; j++) {\n\t\t\t\tif (j>0) sb.append(glueColumns);\n\t\t\t\tsb.append(array[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"private String produceSQL(String[] cols) {\n StringBuffer buffer = new StringBuffer();\n buffer.append('(');\n buffer.append(cols[0]);\n\n for (int i = 1; i < cols.length; i++){\n buffer.append(',');\n buffer.append(cols[i]);\n }\n buffer.append(')');\n return buffer.toString();\n }",
"@Override\n public String toString(){\n\n ArrayList<String> headers = new ArrayList<>();\n ArrayList<String[]> records = new ArrayList<>();\n\n for(Col col : columns){\n headers.add(col.getName());\n }\n\n if(getRecordSize() < 1){\n return headers.toString();\n }\n\n for(int i = 0; i < getRecordSize(); i++){\n\n ArrayList<Rec> recs = getRecordsByRowIndex(i);\n String[] r = new String[recs.size()];\n\n for(int j = 0; j < recs.size(); j++){\n r[j] = recs.get(j).getLastEntry().getData();\n }\n\n records.add(r);\n\n }\n\n return displayTable(headers, records);\n\n }",
"public String toString()\n {\n return row0 + \"\\n\" + row1 + \"\\n\" + row2 + \"\\n\" + row3;\n }",
"public String devolver_campos_concatenados(){\n String dato_concatenado=\"\";\n campos_concaenados=\" \";\n for (int j=0;j<numero_campos;j++){\n if(j==numero_campos-1){\n dato_concatenado=campos[j];\n }else{\n dato_concatenado=campos[j]+\", \";\n }\n campos_concaenados=campos_concaenados+dato_concatenado;\n }\n \n return campos_concaenados;\n }",
"public void makeSql() {\n\t\tfor(int i=0; i<arr_sql.length; i++) {\n\t\t\tarr_sql[i] = new StringBuffer();\n\t\t}\n\t\t\n\t\t/*\n\t\t * 공통코드 쿼리\n\t\t * 대리점구분 : CU006\n\t\t * 직판구분 : CU012\n\t\t * 지역 : SY006\n\t\t * 계약상태 : CU013\n\t\t * 사용유무 : SY011\n\t\t * 보증보험회사 : CU010\n\t\t * 하위대리점여부 : CU011\n\t\t */\n\t\tarr_sql[0].append (\"SELECT\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append (\"\t' ' head, ' ' detail, '전체' detail_nm \\n\")\n\t\t\t\t .append (\"FROM DUAL \\n\")\n\t\t\t\t .append (\"UNION ALL \\n\")\n\t\t\t\t .append (\"SELECT \\n\")\n\t\t\t\t .append (\"\tB.head, B.detail, B.detail_nm \\n\")\n\t\t\t\t .append (\"FROM \\n\")\n\t\t\t\t .append (\"\tSALES.TSY011 A, \\n\")\n\t\t\t\t .append (\"\tSALES.TSY010 B \\n\")\n\t\t\t\t .append (\"WHERE 1=1 \\n\")\n\t\t\t\t .append (\" AND A.head = B.head \\n\")\n\t\t\t\t .append (\" AND B.head = ? \\n\")\n\t\t\t\t .append (\" AND LENGTH (rtrim(B.detail)) > 0 \\n\");\n\t\t\n\t\t/*\n\t\t * 대리점 조회\n\t\t */\n\t\tarr_sql[1].append(\"SELECT T1.client_sid\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t \t\t .append(\"\t\t ,T1.vend_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_cd \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 코드 \t*/\n\t \t\t .append(\"\t\t ,T1.client_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t \t\t .append(\"\t\t ,T1.client_gu \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 매출처구분 :CU005 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.agen_gu \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t \t\t .append(\"\t\t ,T1.dir_yn \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t \t\t .append(\"\t\t ,T1.area_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\t \t\t .append(\"\t\t ,T1.sal_dam_sid \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t \t\t .append(\"\t\t ,T1.client_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t \t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대전화 \t*/\n\t \t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\t \t\t .append(\"\t\t ,T1.e_mail \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t \t\t .append(\"\t\t ,T1.zip_cd \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 우편번호[TSY110] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.address1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소1 \t*/\n\t \t\t .append(\"\t\t ,T1.address2 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 주소2 \t*/\n\t \t\t .append(\"\t\t ,T1.commi_rate \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t \t\t .append(\"\t\t ,T1.cunt_status \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t \t\t .append(\"\t\t ,T1.bancod \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행코드 [BANKCODE] */\n\t \t\t \n\t \t\t .append(\"\t\t ,T1.bank_acc_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행계좌번호 \t*/\n\t \t\t .append(\"\t\t ,T1.bank_acct_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 예금주 \t*/\n\t \t\t .append(\"\t\t ,T1.use_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 사용여부 :SY011 \t*/ \n\t \t\t .append(\"\t\t ,T1.client_url\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 홈페이지 URL\t\t\t\t*/\n\t \t\t .append(\"\t\t ,T2.sal_dam_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 영업담당자명 \t*/\n\t \t\t .append(\"\t\t ,T3.vend_nm \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\\n\")\t/* 거래처명 \t*/\n\t \t\t \n\t \t\t .append(\"\t\t ,T4.bannam \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 은행명 \t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU006',T1.agen_gu) AS agen_gu_name \t\t\t\t\t\\n\")\t/* 대리점구분명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU012',T1.dir_yn) AS dir_yn_name \t\t\t\t\t\\n\")\t/* 직판여부명 \t\t\t\t*/ \n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006',T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\")\t/* 지역명 \t\t\t\t*/\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU013',T1.cunt_status) AS cunt_status_name \t\t\t\\n\")\t/* 계약상태명 \t\t\t\t*/\n\n\t \t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY011',T1.use_yn) AS use_yn_name \t\t\t\\n\")\t/* 사용여부명 \t\t\t \t*/\n\n\t \t\t .append(\"FROM SALES.TCU030 T1 LEFT OUTER JOIN SALES.TSY410 T2 ON T1.SAL_DAM_SID = T2.SAL_DAM_SID \\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.GCZM_VENDER T3 ON T1.VEND_CD = T3.VEND_CD \t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t LEFT OUTER JOIN ACCOUNT.BANKCODE T4 ON T1.BANCOD = T4.BANCOD \t\t\t\t\t\\n\")\n\t \t\t .append(\"WHERE 1 = 1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t \t\t .append(\"\t\t AND T1.client_GU = '1' \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t/*\n\t\t * 계약정보 조회\n\t\t */\n\t\tarr_sql[2].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,T1.cont_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,T1.expire_date\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,TO_NUMBER(T1.insur_amt) AS insur_amt\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,T1.insur_comp_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ('CU010',T1.insur_comp_cd) AS insur_comp_cd_name\t\t\\n\") \t/* 보증보험회사명 \t\t*/ \n\t\t\t\t .append(\"FROM SALES.TCU031 T1 \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"WHERE 1=1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t \n\t\n\t\t/*\n\t\t * 지점정보 조회\n\t\t */\n\t\tarr_sql[3].append(\"SELECT T1.client_sid\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_nm \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.area_cd\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,T1.client_down_yn \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t .append(\"\t\t ,T1.empno \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.tel_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.mobile_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.fax_no \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,T1.branch_url \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'SY006', T1.area_cd) AS area_nm\t\t\t\t\t\t\t\\n\") \t/* 지역명:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,SALES.FN_DETAIL_NM ( 'CU011',T1.client_down_yn) AS client_down_yn_name \t\\n\")\t/* 하위대리점여부명 \t\t*/\n\t\t\t\t .append(\"FROM SALES.TCU032 T1\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\\n\");\n\t\t\n\t\t\n\t\t/*\n\t\t * 대리점 등록\n\t\t */\n\n\t\tarr_sql[4].append(\"INSERT INTO SALES.TCU030 (\")\n\t\t\t\t .append(\"\t\t\t\t client_sid \\n\")\t\n\t\t\t\t .append(\"\t\t\t\t,vend_cd \\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_cd \\n\")\t/* 매출처 코드 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_nm \\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_gu \\n\")\t/* 매출처구분 :CU005 \t*/\n\t\t\t\t .append(\"\t\t\t\t,agen_gu \\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,dir_yn \\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t\t\t,area_cd \\n\")\t/* 지역코드 :SY006 \t*/\n\t\t\t\t .append(\"\t\t\t\t,sal_dam_sid \\n\")\t/* 영업담당자코드[TSY410] \t*/\n\t\t\t\t .append(\"\t\t\t\t,client_dam_nm \\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t\t\t,tel_no \\n\")\t/* 전화번호 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,mobile_no \\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t\t\t,fax_no \\n\")\t/* FAX번호 \t*/\n\t\t\t\t .append(\"\t\t\t\t,e_mail \\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t\t\t,zip_cd \\n\")\t/* 소재지우편번호[TSY110] */\n\t\t\t\t .append(\"\t\t\t\t,address1 \\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,address2 \\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t\t\t,commi_rate \t\\n\") \t/* 수수료율 \t*/\n\t\t\t\t .append(\"\t\t\t\t,cunt_status \\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t\t\t,bancod\t\t\t\\n\") \t/* 은행코드 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,bank_acc_no \\n\")\t/* 은행계좌번호[BANKCODE] \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t\t\t,bank_acct_nm\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t\t\t,use_yn\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\t\t\t\t\n\t\t\t\t .append(\"\t\t \t\t,u_date \t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t \t\t,u_empno \t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t \t\t,u_ip \\n\")\t/* 최종수정IP */\t\t\t\n\t \t\t .append(\"\t\t\t\t,client_url\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append(\"\t\t\t)\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSALES.SWS_TCU030_ID.NEXTVAL,?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,SYSTIMESTAMP,?,?,?\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\n\t\t\n\t\t/*\n\t\t * 계약정보 등록\n\t\t */\n\t\tarr_sql[5].append(\"INSERT INTO SALES.TCU031 ( \t\\n\")\n\t\t\t\t .append(\" \t client_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t .append(\"\t\t ,cont_date\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t \n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 등록\n\t\t */\n\t\t\n\t\tarr_sql[6].append(\"INSERT INTO SALES.TCU032 ( \t\\n\")\n\t\t\t\t .append(\"\t\t client_SID\t\t\t\\n\") \t/* 매출처SID \t\t*/\n\t\t\t\t .append(\"\t\t ,branch_cd\t\t\t\t\\n\")\t/* 지점코드 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_nm \t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append(\"\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\t\n\t\t\t\t .append(\"\t\t\t\t?,?,?,?,?,\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t\t)\");\n\t\t\n\t\t/*\n\t\t * 대리점 수정\n\t\t */\n\n\t\tarr_sql[7].append(\"UPDATE SALES.TCU030 SET \t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t vend_cd\t\t= ? \t\t\t\t\\n\")\t/* [회계]거래처 코드 \t*/\n\t\t\t\t .append(\"\t\t,client_nm\t\t= ? \t\t\t\t\\n\")\t/* 매출처 명 \t*/\n\t\t\t\t .append(\"\t\t,agen_gu\t\t= ? \t\t\t\t \t\\n\")\t/* 대리점구분 :CU006 \t*/\n\t\t\t\t .append(\"\t\t,dir_yn\t\t\t= ? \t\t\t\t\\n\")\t/* 직판여부 :CU012 \t*/\n\t\t\t\t .append(\"\t\t,area_cd \t= ? \t\t\t\t\t\\n\")\t/* 지역코드 :SY006 \t*/\n\n\t\t\t\t .append(\"\t\t,sal_dam_sid\t= ? \t\t\t\t\t\\n\")\t/* 영업담당자코드[TSY410] */\n\t\t\t\t .append(\"\t\t,client_dam_nm\t= ? \t\t\t\t\t\\n\")\t/* 매출처담당자 \t*/\n\t\t\t\t .append(\"\t\t,tel_no = ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t*/\n\t\t\t\t .append(\"\t\t,mobile_no = ?\t\t\t\t\t\t\\n\")\t/* 핸드폰 \t*/\n\t\t\t\t .append(\"\t\t,fax_no = ?\t\t\t\t\t\t\\n\")\t/* FAX번호 \t*/\n\n\t\t\t\t .append(\"\t\t,e_mail = ?\t\t\t\t\t\t\\n\")\t/* 이메일 \t*/\n\t\t\t\t .append(\"\t\t,zip_cd = ?\t\t\t\t\t\t\\n\")\t/* 소재지우편번호[TSY110] \t*/\n\t\t\t\t .append(\"\t\t,address1 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소1 \t*/\n\t\t\t\t .append(\"\t\t,address2 = ?\t\t\t\t\t\t\\n\")\t/* 소재지주소2 \t*/\n\t\t\t\t .append(\"\t\t,commi_rate \t= ?\t\t\t\t\t\t\\n\") \t/* 수수료율 \t*/\n\n\t\t\t\t .append(\"\t\t,cunt_status = ?\t\t\t\t\t\t\\n\")\t/* 계약상태 :CU013 \t*/\n\t\t\t\t .append(\"\t\t,bancod\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 은행코드\t \t\t\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acc_no = ?\t\t\t\t\t\t\\n\")\t/* 은행계좌번호[BANKCODE]\t\t*/\n\t\t\t\t .append(\"\t\t,bank_acct_nm\t= ?\t\t\t\t\t\t\\n\")\t/* 예금주 \t\t\t\t\t*/\n\t\t\t\t .append(\"\t\t,use_yn\t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 사용여부 \t\t\t\t\t*/\n\n\t\t\t\t .append(\"\t\t,u_date \t= SYSTIMESTAMP\t\t\\n\") \t/* 최종수정일자 \t*/\n\t \t\t .append(\"\t\t,u_empno \t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정자사번 \t*/\n\t \t\t .append(\"\t\t,u_ip = ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP */\n\t \t\t .append(\"\t,client_url = ?\t\t\t\t\t\t\\n\")\t/* 홈페이지 */\n\t\t\t\t .append (\"WHERE client_sid \t= ? \t\t\t\t\\n\");\n\t\t\t\t \n\t\t/*\n\t\t * 계약정보 수정\n\t\t */\n\t\tarr_sql[8].append(\"UPDATE SALES.TCU031 SET\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t cont_date\t\t\t= ?\t\t\t\t\t\\n\") \t/* 계약일자 \t*/\n\t\t\t\t .append(\"\t\t ,expire_date\t\t= ?\t\t\t\t\t\\n\")\t/* 만기일자 \t*/\n\t\t\t\t .append(\"\t\t ,insur_amt\t\t\t= ?\t\t\t\t\t\\n\")\t/* 보험료 \t*/\n\t\t\t\t .append(\"\t\t ,insur_comp_cd\t\t= ?\t\t\t\t\t\\n\")\t/* 보증보험회사:CU010 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t .append (\"WHERE client_sid \t\t= ? AND cont_date = ? \\n\");\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\t\n\t\t/*\n\t\t * 지점정보 수정\n\t\t */\n\t\t\n\t\tarr_sql[9].append(\"UPDATE SALES.TCU032 SET \t\t\t\t\t\t\t\\n\")\n\t\t\t\t .append(\"\t\t branch_nm \t\t= ?\t\t\t\t\t\t\\n\") \t/* 지점명 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,area_cd\t\t\t= ?\t\t\t\t\t\t\\n\") \t/* 지역코드:SY006 \t\t*/\n\t\t\t\t .append(\"\t\t ,client_down_yn \t= ?\t\t\t\t\t\t\\n\")\t/* 하위대리점여부:CU011 \t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,empno \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 담당자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,tel_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 전화번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,mobile_no \t\t= ?\t\t\t\t\t\t\\n\")\t/* 휴대폰 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,fax_no \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 팩스번호 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,branch_url \t\t= ?\t\t\t\t\t\t\\n\")\t/* 지점홈페이지 \t\t\t*/\n\t\t\t\t \n\t\t\t\t .append(\"\t\t ,u_date \t\t\t= SYSTIMESTAMP\t\t\t\t\t\t\\n\")\t/* 최종수정일자 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_empno \t\t\t= ?\t\t\\n\")\t/* 최종수정자사번 \t\t\t*/\n\t\t\t\t .append(\"\t\t ,u_ip \t\t\t= ?\t\t\t\t\t\t\\n\")\t/* 최종수정IP \t\t*/\n\t\t\t\t .append (\"WHERE client_sid = ? AND branch_cd \t= ?\t\t\\n\");\n\t\t\n\t\t arr_sql[10].append(\"DELETE FROM SALES.TCU030 WHERE client_sid = ?\");\t\n\t\t arr_sql[11].append(\"DELETE FROM SALES.TCU031 WHERE client_sid = ? AND cont_date = ?\");\n\t\t arr_sql[12].append(\"DELETE FROM SALES.TCU032 WHERE client_sid = ? AND branch_cd = ?\");\n\t\t \n\t\t \n\t\t /*\n\t\t * Client SID 얻어오기\n\t\t */\n\t\t\t\n\t\t\tarr_sql[13].append(\"SELECT client_sid FROM SALES.TCU030 WHERE client_cd = ?\\n\");\n\t\t\t\n\t\t/*\n\t\t * 수수료율 조회\n\t\t */\n\t\t\tarr_sql[14].append(\"SELECT\t\t\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t.append(\" T1.CLIENT_SID AS CLIENT_SID\t\\n\") /* 매출처SID */\n\t\t\t\t\t\t.append(\" ,T1.FR_DATE AS FR_DATE \t\\n\") /* 시작일자 */\n\t\t\t\t\t\t.append(\" ,T1.TO_DATE AS TO_DATE \t\\n\") /* 종료일자 */\n\t\t\t\t\t\t.append(\" ,T1.WEEKEND_YN AS WEEKEND_YN \t\\n\") /* 주말여부 */\n\t\t\t\t\t\t.append(\" ,T1.COMMI_RATE AS COMMI_RATE\t\\n\") /* 수수료율 */\n\t\t\t\t\t\t.append(\"FROM SALES.TCU033 T1 \t\\n\")\n\t\t\t\t\t\t.append(\"WHERE 1=1 \t\t\t\t\t\t\t\\n\");\n\t\t\t\t\t\t\n\t\t/*\n\t\t * 수수료율 등록\n\t\t */\n\t\t\t\n\t\t\tarr_sql[15].append(\"INSERT INTO SALES.TCU033 ( \t\\n\")\n\t\t\t\t\t\t .append(\" \t CLIENT_SID\t\t\t\\n\")\t/* 매출처SID \t*/\n\t\t\t\t\t\t .append(\"\t\t ,FR_DATE\t\t\t\t\\n\") \t/* 시작일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,TO_DATE\t\t\t\\n\")\t/* 종료일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,COMMI_RATE\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_DATE\t\t\t\t\\n\")\t/* 최종입력일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_EMPNO \t\t\t\t\\n\") \t/* 최종입력자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,I_IP\t\t\t\t\t\\n\")\t/* 최종입력IP \t*/\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"\t\t ,u_date\t\t\t\t\\n\")\t/* 최종수정일자 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_empno \t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\n\t\t\t\t\t\t .append(\"\t\t ,u_ip\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\n\t\t\t\t\t\t .append(\"\t\t)\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t \n\t\t\t\t\t\t .append(\"VALUES\t\t\t\t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t(\t \t\t\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t\t?,?,?,?, ?,\t\t\\n\")\t\n\t\t\t\t\t\t .append(\"\t\t\t\tSYSTIMESTAMP,?,?, SYSTIMESTAMP,?,?\t\\n\")\n\t\t\t\t\t\t .append(\"\t\t\t)\");\n\t\t/*\n\t\t * 수수료율 수정\n\t\t */\n\t\t\tarr_sql[16].append(\"UPDATE SALES.TCU033 SET\t\t\t\t\t\t\\n\") \n\t\t\t\t\t .append(\"\t\t TO_DATE\t\t\t= ?\t\t\t\t\t\\n\")\t/* 종료일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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 .append(\"\t\t ,COMMI_RATE\t\t= ?\t\t\t\t\t\\n\")\t/* 수수료율 \t*/\n\t\t\t\t\t .append(\"\t\t ,WEEKEND_YN\t\t= ?\t\t\t\t\t\\n\")\t/* 주말여부 \t*/\n\t\t\t\t\t \n\t\t\t\t\t \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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 .append(\"\t\t ,u_date\t\t\t= SYSTIMESTAMP\t\\n\")\t/* 최종수정일자 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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 .append(\"\t\t ,u_empno \t\t\t= ?\t\t\t\t\t\\n\") \t/* 최종수정자사번 \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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 .append(\"\t\t ,u_ip\t\t\t\t= ?\t\t\t\t\t\\n\")\t/* 최종수정IP \t*/\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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 .append (\"WHERE client_sid \t\t= ? AND FR_DATE = ? AND WEEKEND_YN=? \\n\"); \n\t\t/*\n\t\t * 수수료율 삭제\n\t\t */\n\t\tarr_sql[17].append(\"DELETE FROM SALES.TCU033 WHERE client_sid = ? AND fr_date = ? AND WEEKEND_YN=? \");\t \n\t\t\t \n\n\t}",
"public static <T> String concatMatrix(String glueLines, String glueColumns, T[][] array) {\n\t\treturn concatMatrix(glueLines,glueColumns,array,o->o.toString());\n\t}",
"public static String generateRow(String row){\n\t\tString rowForSQL = \"\";\n\t\tString[] cols = row.split(\";\");\n\t\tfor(int i = 0; i < cols.length; i++){\n\t\t\trowForSQL += \"'\"+cols[i]+\"'\" + ( i != (cols.length-1) ? \",\" : \"\");\t\n\t\t}\t\t\n\t\treturn rowForSQL;\n\t}",
"@Override\n\tpublic void visit(MySQLGroupConcat arg0) {\n\t\t\n\t}",
"@Override\n public String toString(){\n String juego = \"\";\n for (int[] tablero1 : tablero) {\n for (int casilla : tablero1) {\n juego += String.format(\"%2d \", casilla);\n }\n juego += String.format(\"%n\");\n }\n return juego;\n }",
"private String addFieldValuesToRow(String row, MapWritable mapw, String columnName) {\n Object valueObj = (Object) mapw.get(new Text(columnName));\n row += valueObj.toString() + \"|\";\n return row;\n }",
"private String rowString(int onLights, int lightsInRow, String lampType) {\n\n\t\tint offLights = lightsInRow - onLights;\n\t\tString on = String.join(\"\", Collections.nCopies(onLights, lampType));\n\t\tString off = String.join(\"\", Collections.nCopies(offLights, \"0\"));\n\n\t\treturn on + off;\n\t}",
"private String getValuesToInsert(int row) {\n List<String> orderedFields = new ArrayList<>(mapFieldsTypes.keySet()); // get ordered list of fields\n StringBuffer insertRowStringBuffer = new StringBuffer();\n insertRowStringBuffer // add first part of query insert string\n .append(SQLFormater.INSERT_INTO)\n .append(\" \")\n .append(tableName)\n .append(\" \")\n .append(\"(\")\n .append(idFieldName) // first inserted field is always row ID\n .append(\",\");\n orderedFields.forEach(field -> insertRowStringBuffer // add names of fields in order they will be inserted\n .append(field)\n .append(\", \")\n );\n insertRowStringBuffer // add another part of string before values\n .append(\")\")\n .append(\" \")\n .append(SQLFormater.VALUES)\n .append(\"(\")\n .append(row); // first field is always row ID\n if (!mapFieldsStrings.isEmpty() || !mapFieldsIntegers.isEmpty()) {\n orderedFields.forEach(field -> { // inserting field values in controlled order\n insertRowStringBuffer.append(\", \");\n if (mapFieldsStrings.containsKey(field)) {\n insertRowStringBuffer\n .append(\"'\")\n .append(mapFieldsStrings.get(field))\n .append(\"'\");\n } else if (mapFieldsIntegers.containsKey(field)) {\n insertRowStringBuffer.append(mapFieldsIntegers.get(field));\n }\n });\n }\n insertRowStringBuffer.append(\")\");\n clearInsertingValues(); // clear fields to insert another row\n return insertRowStringBuffer.toString();\n }",
"String printTableToString(Table inputTable) {\n String horDiv = generateHorizontalDivider(inputTable);\n StringBuilder tableStringBuilder = new StringBuilder();\n tableStringBuilder.append(horDiv);\n // i = -1 for column headers; i = 0..recsz for records\n for (int i = -1; i < inputTable.getRecordSize(); i++) {\n tableStringBuilder.append(generateDataString(inputTable, i));\n if (i == -1) {\n tableStringBuilder.append(horDiv);\n }\n }\n tableStringBuilder.append(horDiv);\n return tableStringBuilder.toString();\n }",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"public void printJoinResult(String firstTable , Vector<Integer> list1, String secondTable , Vector<Integer> list2) {\n\t\t\n\t\t\n\t\tint firstSize = list1.size();\n\t\tint secondSize = list2.size();\n\t\t\n\t\tVector<String> firstTableRows = null ;\n\t\tVector<String> secondTableRows = null;\n\t\t\n\t\tfor(int i = 0; i < firstSize ; i++) {\n\t\t\tfirstTableRows.add(db.getRecord(firstTable, list1.get(i)));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < secondSize ; i++) {\n\t\t\tsecondTableRows.add(db.getRecord(secondTable, list2.get(i)));\n\t\t}\n\t\t\n\t\t/**\n\t\t * Let k be count of select columns of firstTable and List of select column index is there.\n\t\t * \n\t\t * Same is there for secondTable\n\t\t * \n\t\t */\n\t\t\n\t\t\n\t\t// TODO set k1 k2\n\t\tint k;\n\t\tint selectSize=0;\n\t\t//int k2=0;\n\t\t\n\t\t\n\t\tString []firstSplit;\n\t\tString []secondSplit;\n\t\t\n\t\tString output = \"\";\n\t\t\n\t\t\n\t\tfor(int i=0; i< firstSize; i++) {\n\t\t\t\n\t\t\tfirstSplit = firstTableRows.get(i).split(\",\");\n\t\t\t\t\t\n\t\t\tfor(int j=0 ; j< secondSize ; j++) {\n\t\t\t\t\n\t\t\t\tsecondSplit = secondTableRows.get(j).split(\",\");\n\t\t\t\toutput = \"\";\n\t\t\t\t\n\t\t\t\tfor(k=0; k< selectSize ;k++) {\n\t\t\t\t\t\n\t\t\t\t\tString table = joinSelectColumn.get(i).substring(0,joinSelectColumn.get(i).indexOf('.')); \n\t\t\t\t\tString index = joinSelectColumn.get(i).substring(joinSelectColumn.get(i).indexOf('.')+1);\n\t\t\t\t\t\n\t\t\t\t\tif(\ttable.equalsIgnoreCase(firstTable)) {\n\t\t\t\t\t\toutput += firstSplit[Integer.parseInt(index)];\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\telse {\n\t\t\t\t\t\toutput += secondSplit[Integer.parseInt(index)];\n\t\t\t\t\t}\n\t\t\t\t\tif(k+1 < selectSize)\n\t\t\t\t\t\toutput += \",\";\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(output);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(tableName).append(System.lineSeparator());\n\n if (columnsDefinedOrder.size() <= 0) {\n columnsDefinedOrder = rows.stream()\n .findFirst()\n .map(x -> new ArrayList<>(x.keySet()))\n .orElse(columnsDefinedOrder);\n }\n\n Map<String, Integer> widthEachColumn = new HashMap<>();\n for (String columnName : columnsDefinedOrder) {\n widthEachColumn.put(columnName, 0);\n }\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n int length = row.get(columnName).length();\n if (length > widthEachColumn.get(columnName)) {\n widthEachColumn.put(columnName, length);\n }\n }\n }\n\n int tableWidth = 0;\n for (String columnName : columnsDefinedOrder) {\n int width = widthEachColumn.get(columnName) + 5;\n widthEachColumn.put(columnName, width);\n tableWidth += width;\n }\n\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", columnName));\n }\n sb.append(System.lineSeparator());\n\n for (int i = 0; i < tableWidth; i++) {\n sb.append(\"-\");\n }\n sb.append(System.lineSeparator());\n\n for (Map<String, String> row : rows) {\n for (String columnName : columnsDefinedOrder) {\n sb.append(String.format(\"%-\" + widthEachColumn.get(columnName) + \"s\", row.get(columnName)));\n }\n sb.append(System.lineSeparator());\n }\n\n return sb.toString();\n }",
"private static Dataset<Row> concatIds(SparkSession spark, Dataset<Row> dataset, String[] columnNames) {\n\t\tif (Arrays.asList(dataset.columns()).contains(\"chainId\")) {\n\t\t\tdataset.createOrReplaceTempView(\"table\");\n\n\t\t\tString sql = \"SELECT CONCAT(structureId,'.',chainId) as structureChainId,\" + \"structureId,chainId,\"\n\t\t\t\t\t+ columNamesString(columnNames) + \" from table\";\n\t\t\tdataset = spark.sql(sql);\n\t\t}\n\t\treturn dataset;\n\t}",
"public static String makeTable(int[] rowSize, String[][] values){\n\t\tStringBuilder result = new StringBuilder(); \n\t\tfor(int i=0; i<values.length;i++){\n\t\t\tresult.append(processOneRow(rowSize, values[i])); \n\t\t}\n\t\treturn result.toString();\n\t}",
"private String makeOneStringList(){\n String result = \"\";\n\n for(int i = 0 ; i < actualSensorDatas.size() ; i++ ){\n if(actualSensorDatas.get(i).getProduct().getValueOfProduct() == 0){\n result = result + \"<tr><td><h3 style='color:red' > \" + actualSensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:red'> \" + actualSensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td><td><h3><a href=\\\"/buyFor:\"+i+\"\\\">Order</a></h3></td></tr>\";\n }else{\n result = result + \"<tr><td><h3 style='color:blue' > \" + actualSensorDatas.get(i).getProduct().getNameOfProduct() + \" </h3></td><td><h3 style='color:blue' > \" + actualSensorDatas.get(i).getProduct().getValueOfProduct() + \" ;</h3></td><td><h3><a href=\\\"/buyFor:\"+i+\"\\\">Order</a></h3></td></tr>\";\n }\n }\n return result;\n }",
"public String toString()\n {\n final String NEWLINE = System.getProperty(\"line.separator\");\n StringBuffer result = new StringBuffer(table).append(NEWLINE);\n for (Iterator iterator = data.keySet().iterator();\n iterator.hasNext(); )\n {\n String column = (String) iterator.next();\n result\n .append(\"\\t\")\n .append(column)\n .append(\" = \")\n .append(isColumnNull(column) ? \"NULL\" : data.get(column))\n .append(NEWLINE)\n ;\n }\n \n return result.toString();\n }",
"private static String buildStringFromCursor(Cursor dbCursor)\n {\n String writeString = \"\";\n int columnCount = dbCursor.getColumnCount();\n\n for(int count = 0; count < columnCount; count++)\n {\n writeString += dbCursor.getString(count);\n if(count < columnCount - 1)\n {\n writeString += \"\\t\";\n }\n else\n {\n writeString += \"\\n\";\n }\n }\n return writeString;\n }",
"protected String exportString(JComponent c) {\r\n\t\t JTable table = (JTable) c;\r\n\t\t rows = table.getSelectedRows();\r\n\t\t int colCount = table.getColumnCount();\r\n\r\n\t\t StringBuffer buff = new StringBuffer();\r\n\r\n\t\t for (int i = 0; i < rows.length; i++) \r\n\t\t {\r\n\t\t for (int j = 0; j < colCount; j++) \r\n\t\t {\r\n\t\t Object val = table.getValueAt(rows[i], j);\r\n\t\t buff.append(val == null ? \"\" : val.toString());\r\n\t\t if (j != colCount - 1) {\r\n\t\t buff.append(\",\");\r\n\t\t }\r\n\t\t }\r\n\t\t if (i != rows.length - 1) {\r\n\t\t buff.append(\"\\n\");\r\n\t\t }\r\n\t\t }\r\n\r\n\t\t return buff.toString();\r\n\t\t }",
"public static String getTableDataInCSVFormat(final TableModel inputTableModel) {\r\n\t\t\r\n\t\tfinal StringBuffer output = new StringBuffer();\r\n\t\tfinal int totalRows = inputTableModel.getRowCount();\r\n\t\tfinal int totalColumns = inputTableModel.getColumnCount();\r\n\t\t\r\n\t\tif (totalRows < 1) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tfor (int currentRow = 0; currentRow < totalRows; currentRow++) {\r\n\r\n\t\t\tfor (int currentColumn = 0; currentColumn < totalColumns; currentColumn++) {\r\n\t\t\t\toutput.append(inputTableModel.getValueAt(currentRow, currentColumn));\r\n\t\t\t\t// Append a ',' but not for the last value\r\n\t\t\t\tif (currentColumn != totalColumns - 1) {\r\n\t\t\t\t\toutput.append(',');\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Append a new line, but not for the last line\r\n\t\t\tif (currentRow != totalRows - 1) {\r\n\t\t\t\toutput.append('\\n');\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn output.toString();\r\n\r\n\t}",
"public String toString(){\n\t\tString output = \"\";\n\t\tfor (int i = 0; i < this.contains; i++){\n\t\t\tif (this.table[i] != null){\n\t\t\t\toutput = output + this.table[i].getKey() + \" \" + this.table[i].getValue() + \"\\n\";\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}",
"public String toString(){\n\t\tString maChaineRetour=\"\";\n\t\t\n\t\tfor(Cristal[] ligne: tabCristaux){\n\t\t\tfor(Cristal colonne: ligne){\n\t\t\t\tif(colonne == null)\n\t\t\t\t\tmaChaineRetour = maChaineRetour + \"0\" ;\n\t\t\t\telse\n\t\t\t\t\tmaChaineRetour = maChaineRetour + colonne.toString();\n\t\t\t}\n\t\t\tmaChaineRetour = maChaineRetour + \"\\n\";\n\t\t}\n\t\treturn maChaineRetour;\n\t}",
"public static String join( Object[] col, String sep ) {\n StringBuffer sb = new StringBuffer();\n if ( col.length >= 1 ) {\n sb.append( getString_(col[0]) );\n }\n for ( int i = 1; i < col.length; i++ ) {\n sb.append( sep );\n sb.append( getString_(col[i]) );\n }\n return sb.toString();\n }",
"@Override\n public String toString() {\n if (this.tuples == null || this.tuples.isEmpty()) return \"i\"; \n String retStr = new String(); \n\n // Initialize number of attributes.\n int attributesNumber = attributes.size();\n\n // An array storing the max length of Strings per column.\n // The Strings per column are tuple Values and attributes.\n int[] maxColumnLengthOfStrings = new int[attributesNumber];\n\n // Loop all the attributes and fill the max length array\n for (int index = 0; index < attributesNumber; index++) {\n\n // Initialize the array with the attributes name length.\n maxColumnLengthOfStrings[index] = attributes.get(index).getName().length();\n\n // Loop the values and find the longest value toString().\n for (int rowIndex = 0; rowIndex < this.tuples.size(); rowIndex++) { // Loop the rows\n String value = this.tuples.get(rowIndex).getValues().get(index).toString();\n if (value.length() > maxColumnLengthOfStrings[index]){\n maxColumnLengthOfStrings[index] = value.length();\n }\n }\n }\n\n // A set of tables whose columns are in the attributes list.\n Set<SQLTable> tablesSet = new HashSet<>();\n // The list of attributes to String format.\n String attributesList = new String();\n // A line used to separate the attributes from the data.\n String separationLine = new String();\n // Create the separation line and the attributes line.\n for (int index = 0; index < attributesNumber; index++) {\n\n // The score column has a null table. Dont search it.\n if (!this.attributes.get(index).getName().equals(\"score\"))\n tablesSet.add((this.attributes.get(index).getTable()) );\n\n\n attributesList += \"|\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index],\n this.attributes.get(index).getName(), \" \");\n separationLine += \"+\" + PrintingUtils.addStringWithLeadingChars(maxColumnLengthOfStrings[index], \"\", \"-\");\n }\n attributesList += \"|\"; // Add the last \"|\".\n separationLine += \"+\"; // Add the last \"+\".\n\n // Print the tables which contain this tuples (HACK WAY). \n // String tablesInString = new String (\"Tables joined : \");\n // for (SQLTable table: tablesSet) {\n // tablesInString += table.toAbbreviation() + \" |><| \";\n // }\n // System.out.println(tablesInString.substring(0, tablesInString.length()-5));\n\n // Print the attributes between separation lines.\n retStr += this.network + \"\\n\";\n retStr += separationLine + \"\\n\";\n retStr += attributesList + \"\\n\";\n retStr += separationLine + \"\\n\";\n\n // Print all the rows of Tuple Values.\n for (OverloadedTuple tuple: this.tuples) {\n String rowOfValues = new String();\n for (int index = 0; index < attributesNumber; index++) {\n rowOfValues += \"|\" + PrintingUtils.addStringWithLeadingChars( maxColumnLengthOfStrings[index],\n tuple.getValues().get(index).toString(), \" \");\n }\n rowOfValues += \"|\";\n\n // Replace any \\n with a space\n retStr += rowOfValues.replace('\\n', ' ') + \"\\n\";\n }\n\n // Print a separation line.\n retStr += separationLine + \"\\n\";\n\n return retStr;\n }",
"private void addRows() {\n this.SaleList.forEach(Factura -> {\n this.modelo.addRow(new Object[]{\n Factura.getId_Factura(),\n Factura.getPersona().getNombre(),\n Factura.getFecha().getTimestamp(),\n Factura.getCorreo(),\n Factura.getGran_Total()});\n });\n }",
"public abstract String getHeaderRow();",
"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}",
"private String concatFields()\n {\n String concatedFields = \"\";\n Integer intChecker;\n String strChecker;\n Double doubleChecker;\n \n concatedFields += ( (intChecker = getCodigo()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getNome()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getSigla()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getCodigoMantenedora()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getMantenedora()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getCategoria()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getOrganizacao()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getCodigoMunicipio()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getMunicipio()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getUf()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getRegiao()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getTecnico()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getPeriodico()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getLivro()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (doubleChecker = getReceita()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getTransferencia()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getOutraReceita()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaDocente()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaTecnico()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaEncargo()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaCusteio()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaInvestimento()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaPesquisa()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaOutras()) == null ? \"\" : doubleChecker ) + \" \";\n \n return new MyString(concatedFields).removeLastChar().toString();\n }",
"@RequiresIdFrom(type = Governor.class)\n\t@Override\n\tpublic String dataRow()\n\t{\n\t\treturn String.format(\"%d,%s\", first, second.getSqlId());\n\t}",
"private String queryAllFrom(String tableName) {\n return EXTRA_ALL_FROM + tableName + EXTRA_SEMI_COLON;\n }",
"@Override\n\tpublic String concatnames() {\n\t\tString name1=stu.stream().map(emp->emp.getStuName()).collect(Collectors.joining(\"\"));\n\t\treturn name1;\n\t}",
"public String stringSelectCamposComFiltro(ArrayList<String> camposDaTabela,\n String retornoStringSelectTabelaComFiltro) {\n\n String comandoSelect = \"\";\n comandoSelect = retornoStringSelectTabelaComFiltro;\n String campos = \"\";\n\n for (int n = 0; n < camposDaTabela.size(); n++) {\n if (n != camposDaTabela.size() - 1) {\n campos += camposDaTabela.get(n) + \", \";\n\n } else {\n campos += camposDaTabela.get(n);\n }\n }\n\n String replaceCampos = comandoSelect.replace(\"*\", campos);\n\n return replaceCampos;\n }",
"private ArrayList<ArrayList<Object>> getJoinedIntermediate(List<Table> tables) {\n\t\tArrayList<ArrayList<Object>> rtn = new ArrayList<ArrayList<Object>>(); \n\n\t\ttry {\n\t\t\tfor(int iterator = 0; iterator < tables.size(); iterator++) {\n\t\t\t\tTable table = tables.get(iterator);\n\t\t\t\tif(rtn.isEmpty()) {\t\t\t\t\t\n\t\t\t\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) table.getTuples();\n\t\t\t\t\tfor(Tuple tuple : tuples) {\n\t\t\t\t\t\tArrayList<Object> objectTuple = new ArrayList<Object>();\n\t\t\t\t\t\t\n\t\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\tobjectTuple.add(field.get(tuple));\n\t\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\trtn.add(objectTuple);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint originalTableSize = rtn.size();\n\t\t\t\t\tArrayList<Tuple> tuples = (ArrayList<Tuple>) table.getTuples();\n\t\t\t\t\t\n\t\t\t\t\t// Copy existing tuples for join\n\t\t\t\t\tfor(int j = 0; j < tuples.size() - 1; j++)\n\t\t\t\t\t\tfor(int i = 0; i < originalTableSize; i++)\n\t\t\t\t\t\t\trtn.add(new ArrayList<Object>(rtn.get(i)));\n\t\t\t\t\t\n\t\t\t\t\t// Join\n\t\t\t\t\tfor(int j = 0; j < tuples.size(); j++) {\n\t\t\t\t\t\tTuple tuple = tuples.get(j);\n\t\t\t\t\t\tField fields[] = tuple.getClass().getDeclaredFields();\n\t\t\t\t\t\tfor(int i = 0; i < fields.length; i++) {\n\t\t\t\t\t\t\tField field = fields[i];\n\t\t\t\t\t\t\tfor(int iter = 0; iter < originalTableSize; iter++) {\n\t\t\t\t\t\t\t\tfield.setAccessible(true);\n\t\t\t\t\t\t\t\trtn.get(j * originalTableSize + iter).add(field.get(tuple));\n\t\t\t\t\t\t\t\tfield.setAccessible(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (MalformedURLException e)\t{\n\t\t\te.printStackTrace();\n\t\t}*/\n\t\t\n\t\treturn rtn;\n\t}",
"public static String rowToString(String prefix, RowView rowView) {\r\n\t\tif(rowView == null) return \"\";\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(prefix);\r\n\t\tsb.append(\"(\\n\");\r\n\t\ttry {\r\n\t\t\tfor(int i = 0; i < rowView.getColumnCount(); i++) {\r\n\t\t\t\tsb.append('\\t');\r\n\t\r\n\t\t\t\t\tValueHolder valueHolder = new ValueHolder(rowView.getColumnTypes().get(i));\r\n\t\t\t\t\trowView.getValueAt(i, valueHolder);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(valueHolder.isNull())\r\n\t\t\t\t\t\tsb.append(\"(null)\");\r\n\t\t\t\t\telse if(valueHolder.getValueType() == SqlType.getType(\"bytea\"))\r\n\t\t\t\t\t\tsb.append(\"(bytea)\");\r\n\t\t\t\t\telse if(valueHolder.getValueType() == SqlType.getType(\"character varying\")) {\r\n\t\t\t\t\t\tString value = valueHolder.toString();\r\n\t\t\t\t\t\tif(value.length() > 70) value = value.substring(0, 67) + \"...\";\r\n\t\t\t\t\t\tsb.append(value);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tvalueHolder.toString(sb);\r\n\t\t\t\tsb.append('\\n');\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(RuntimeException e) {\r\n\t\t\tsb.append('\\t');\r\n\t\t\tsb.append(e.getMessage());\r\n\t\t\tsb.append('\\n');\r\n\t\t}\r\n\t\tsb.append(')');\r\n\t\treturn sb.toString();\r\n\t}",
"public void concat(Matrix matrix) {\n\t\t\n\t}",
"public String tabla(ConexionBaseDatos con, HashMap vars, HttpServletRequest request, int LIMITE_COLUMNAS) {\n String tabla = vars.get(\"tabla\").toString();\n // Resultados por pagina\n int TAMANIO = 30;\n int LIMITE_TABLA = LIMITE_COLUMNAS;\n\n\n // Parametros que manda el flexigrid\n int pagina = Integer.parseInt(request.getParameter(\"page\"));\n String ordenarPor = request.getParameter(\"sortname\");\n String tipoOrden = request.getParameter(\"sortorder\");\n String columnaBusqueda = request.getParameter(\"qtype\");\n String textoBuscado = request.getParameter(\"query\");\n int iniciales = Integer.parseInt(request.getParameter(\"rp\"));\n\n \n String seleccion = (vars.containsKey(\"seleccion\") ? vars.get(\"seleccion\").toString() : \"descripcion\");\n String principal = (vars.containsKey(\"principal\") ? vars.get(\"principal\").toString() : \"\");\n String relacion = (vars.containsKey(\"relacion\") ? vars.get(\"relacion\").toString() : \"\").replace(\"|\", \" = \");\n\n\n System.out.println(\"RELACION : \" + relacion);\n\n String xml = \"\";\n try {\n ResultSet rs = null;\n PreparedStatement stmt = null;\n String sql = \"SELECT \" + camposTabla(con, tabla, LIMITE_TABLA, \"\") + \" FROM \" + tabla +\" \" + ( relacion.equals(\"\") ? \"\" : \" WHERE \"\n + relacion ) + \" \" + (textoBuscado.equals(\"\") ? \"\"\n : \"WHERE \" + \"lower(cast(\" + (columnaBusqueda) + \" as TEXT)) LIKE lower('\" + textoBuscado + \"') \" +( relacion.equals(\"\") ? \"\" : \" \" + relacion ) ) \n \n + \" order by \" + ordenarPor + \" \" + tipoOrden + \" LIMIT \" + (TAMANIO != iniciales ? iniciales : TAMANIO) + \" OFFSET \" + ((pagina - 1) * TAMANIO);\n \n \n request.getSession().setAttribute(usuarioAutenticado(request) + \"_reporte\", sql);\n\n System.out.println(sql);\n\n stmt = con.con.prepareStatement(sql);\n\n\n\n rs = stmt.executeQuery();\n\n String[] principalCorte = principal.split(\",\");\n\n while (rs.next()) {\n String[] campos = camposTabla(con, tabla, LIMITE_TABLA, \"\").split(\",\");\n String cell = \"\";\n String camposValor = \"\";\n for (int n = 0; n < campos.length; n++) {\n\n String dato = dkda.convertirACarEspecial(rs.getString(campos[ n]));\n cell += \"<cell><![CDATA[<span title=\\\"\" + dato.replace(\"\\\"\", \" \") + \"\\\">\" + dato.replace(\"\\\"\", \" \") + \"</span>]]></cell>\";\n\n if (principal.indexOf(\",\") > -1) {\n if (buscarEnArreglo(principalCorte, campos[ n])) {\n camposValor += campos[ n] + \" \" + rs.getString(campos[ n]) + \" \";\n }\n }\n }\n xml += \"<row id=\\\"codigo_\" + (principal.indexOf(\",\") > -1 ? tabla + \" \" + camposValor : rs.getString(principal)) + \"--\" + seleccion + \"\\\">\" + cell + \"</row>\";\n\n }\n xml = \"<rows><page>\" + pagina + \"</page><total>\" + cantidadDatosTabla(con, \"SELECT COUNT(*) AS cantidad FROM \" + tabla) + \"</total> \" + xml + \"</rows>\";\n\n } catch (SQLException e) {\n System.out.println(\"Error en clase funciones: \" + e.getMessage());\n }\n\n return xml;\n }",
"@Override\r\n public String toString() {\r\n StringBuilder cad = new StringBuilder(\"\");\r\n cad.append(\"\\nTabla: {\\n\");\r\n for (int i = 0; i < this.table.length; i++) {\r\n if(this.table[i] == null){\r\n cad.append(\"\\t()\\n\");\r\n }else{\r\n cad.append(\"\\t\").append(this.table[i].toString()).append(\"\\n\");\r\n }\r\n }\r\n cad.append(\"}\");\r\n return cad.toString();\r\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}",
"public String build() {\n Assert.notNull(headers, \"The table header can not be null.\");\n Assert.notNull(content, \"The table content can not be null.\");\n\n StringBuilder stringBuilder = new StringBuilder();\n\n int rowHeight = rowPadding > 0 ? rowPadding : 1;\n Map<Integer, Integer> columnMaxWidthMapping = getMaximumWidthOfTable(headers, content);\n\n stringBuilder.append(newLineCharacter);\n stringBuilder.append(newLineCharacter);\n createRowLine(stringBuilder, headers.size(), columnMaxWidthMapping);\n stringBuilder.append(newLineCharacter);\n\n for (int headerIndex = 0; headerIndex < headers.size(); headerIndex++) {\n fillCell(stringBuilder, headers.get(headerIndex), headerIndex, columnMaxWidthMapping);\n }\n\n stringBuilder.append(newLineCharacter);\n createRowLine(stringBuilder, headers.size(), columnMaxWidthMapping);\n\n for (List<String> row : content) {\n for (int i = 0; i < rowHeight; i++) {\n stringBuilder.append(newLineCharacter);\n }\n\n for (int cellIndex = 0; cellIndex < row.size(); cellIndex++) {\n fillCell(stringBuilder, row.get(cellIndex), cellIndex, columnMaxWidthMapping);\n }\n\n }\n\n stringBuilder.append(newLineCharacter);\n createRowLine(stringBuilder, headers.size(), columnMaxWidthMapping);\n stringBuilder.append(newLineCharacter);\n stringBuilder.append(newLineCharacter);\n\n return stringBuilder.toString();\n }",
"private String[][] getTableData (JTable table,int[] dim) {\n\t DefaultTableModel model = (DefaultTableModel) table.getModel();\n\t int rowNo = model.getRowCount(), colNo = model.getColumnCount();\n\t dim[0] = rowNo;\n\t dim[1] = colNo;\n\t logInfo(\"rowNo:\"+rowNo+\" colNo:\"+colNo);\n\t String[][] tableData = new String[rowNo][colNo];\n\t for (int i = 0 ; i < rowNo ; i++) {\n\t for (int j = 0 ; j < colNo ; j++) {\n\t tableData[i][j] = model.getValueAt(i, j) != null ? model.getValueAt(i,j).toString() : \"\\\"\\\"\";\n\t logInfo(\"i:\"+i+\" j:\" + j + \" \" + tableData[i][j]);\n\t }\n\t }\n\t return tableData;\n\t}",
"Concat createConcat();",
"public String makeValue(ResultRow row) {\n\t\tStringBuffer result = new StringBuffer(this.id);\n\t\tfor (ColumnName column: columns) {\n\t\t\tString value = row.get(column);\n\t\t\tif (value == null) {\n\t\t\t\treturn null;\n\t\t }\n\t\t\tresult.append(DELIMITER);\n\t\t\tresult.append(value);\n\t\t}\n return result.toString();\n\t}",
"public static String getTableOfTransformsInCSVFormat(final JBroFuzzWindow mWindow) {\r\n\t\t\r\n\t\tFuzzersTableModel inputTableModel = mWindow.getPanelFuzzing().getFuzzersPanel().getFuzzersTableModel();\r\n\t\t\r\n\t\tfinal StringBuffer output = new StringBuffer();\r\n\t\tfinal int totalFuzzerRows = inputTableModel.getRowCount();\r\n\t\t\r\n\t\tif (totalFuzzerRows < 1) {\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tfor (int fuzzerRow = 0; fuzzerRow < totalFuzzerRows; fuzzerRow++) {\r\n\t\t\t\r\n\t\t\tTransformsTableModel encoderRows = mWindow.getPanelFuzzing().getTransformsPanel().getTransforms(fuzzerRow);\r\n\t\t\t\r\n\t\t\tfinal int totalEncoderRows = encoderRows.getRowCount();\r\n\t\t\t\r\n\t\t\tfor (int transformRow = 0; transformRow <totalEncoderRows; transformRow++) {\r\n\t\t\t\t\r\n\t\t\t\toutput.append( (fuzzerRow + 1) );\r\n\t\t\t\toutput.append(',');\r\n\t\t\t\toutput.append( encoderRows.getRow(transformRow).getEncoder() );\r\n\t\t\t\toutput.append(',');\r\n\t\t\t\t\r\n\t\t\t\tString prefix;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tprefix = Base64.encodeBase64String( encoderRows.getRow(transformRow).getPrefixOrMatch().getBytes(\"UTF-8\") );\r\n\t\t\t\t\tprefix = StringUtils.chomp(prefix);\r\n\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\tprefix = \"\";\r\n\t\t\t\t}\r\n\t\t\t\toutput.append(prefix);\r\n\t\t\t\toutput.append(',');\r\n\t\t\t\t\r\n\t\t\t\tString suffix;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tsuffix = Base64.encodeBase64String( encoderRows.getRow(transformRow).getSuffixOrReplace().getBytes(\"UTF-8\") );\r\n\t\t\t\t\tsuffix = StringUtils.chomp(suffix);\r\n\t\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\t\tsuffix = \"\";\r\n\t\t\t\t}\r\n\t\t\t\toutput.append(suffix);\r\n\t\t\t\t\r\n\t\t\t\t// Append a new line, but not for the last line of the last transform\r\n\t\t\t\tif ( (fuzzerRow != totalFuzzerRows - 1) || (transformRow != totalEncoderRows - 1) ) {\r\n\t\t\t\t\toutput.append('\\n');\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\r\n\t\treturn output.toString();\r\n\r\n\t}",
"@Override\r\n public void valueChanged(final ListSelectionEvent theEvent) {\n final StringBuilder string = new StringBuilder();\r\n for (int i = 0; i < table.getColumnCount(); i++) {\r\n string.append(table.getValueAt(table.getSelectedRow(), i).\r\n toString().\r\n replaceAll(\"\\\\s+\", \"\"));\r\n }\r\n System.out.println(string.toString());\r\n }",
"@Override\r\n\tpublic String getDisplayString(String[] children) {\n\t\treturn \"concatenation \" + children;\r\n\t}",
"public void join( AbstractEscherHolderRecord record )\n {\n rawDataContainer.concatenate(record.getRawData());\n }",
"public String toCsvRow() {\r\n\t return Stream.of(String.valueOf(TxnsRefNo),Description)\r\n\t .map(value -> value.replaceAll(\"\\\"\", \"\\\"\\\"\"))\r\n\t .map(value -> Stream.of(\"\\\"\", \",\").anyMatch(value::contains) ? \"\\\"\" + value + \"\\\"\" : value)\r\n\t .collect(Collectors.joining(\",\"));\r\n\t}",
"private static void buildRows(List<String> rowNames, ArrayList<ArrayList<PACell>> table) {\n for (var c : rowNames) {\n var row = new ArrayList<PACell>();\n row.add(0, new PACell(TableCellType.ROW_HEADER, c));\n table.add(row);\n }\n }",
"@Override\n public String toString() {\n int numeritosY = 0;\n int numeritosX = 0;\n StringBuilder datos = new StringBuilder(\" \");\n\n //Imprime los numeros de arriba\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\" \").append(numeritosX);\n numeritosX++;\n }\n datos.append(\"\\n \");\n //Imprime la primera linea que corresponde con la parte superior del tablero.\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n //Imprime el resto del tablero.\n for (int y = 0; y < casillas.length; y++) {\n datos.append(numeritosY).append(\"\\033[33m\"+\" | \"+\"\\033[0m\");\n for (int x = 0; x < casillas[y].length; x++) {\n datos.append(casillas[y][x].toString());\n }\n datos.append(\"\\n\");\n datos.append(\" \");\n for (int i = 0; i < casillas[y].length; i++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n numeritosY++;\n }\n return datos.toString();\n }",
"public static void tablaPuntos(Mano[] jug){\n StringBuilder toret= new StringBuilder();\n for (int i = 0; i < jug.length; i++) {\n toret.append(jug[i].getNombre());\n toret.append(\": \\n\");\n toret.append(jug[i]);\n toret.append(\"\\nPuntos: \");\n toret.append(jug[i].getPuntuacion());\n toret.append(\"\\n\");\n }\n System.out.println(toret.toString());\n }",
"private void fillTable(){\n tblModel.setRowCount(0);// xoa cac hang trong bang\n \n for(Student st: list){\n tblModel.addRow(new String[]{st.getStudentId(), st.getName(), st.getMajor(),\"\"\n + st.getMark(), st.getCapacity(), \"\" + st.isBonnus()});\n // them (\"\" + )de chuyen doi kieu float va boolean sang string\n \n }\n tblModel.fireTableDataChanged();\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic String toString()\r\n\t{\r\n\t\tString result =\"Table:\\n\";\r\n\t\tfor (int i =0; i< this.tableSize; i++)\r\n\t\t{ \r\n\t\t\tLinkedArrays<T> L = (LinkedArrays<T>) table[i]; \r\n\t\t\tresult+= i+\": \";\r\n\t\t\tresult+= L.toString() ;\r\n\t\t\tif(i<this.tableSize-1)\r\n\t\t\t{ result +=\"\\n\"; }\r\n\t\t\t\r\n\t\t}\r\n\t\r\n\t\treturn result;\r\n\t}",
"private static void appendColumns(StringBuilder s, String[] columns) {\n int n = columns.length;\n\n for (int i = 0; i < n; i++) {\n String column = columns[i];\n\n if (column != null) {\n if (i > 0) {\n s.append(\", \");\n }\n s.append(column);\n }\n }\n s.append(' ');\n }",
"public String SerializeColToString(ArrayList<String> list){ \n if(!list.isEmpty()){\n return String.join(\", \", list); \n }\n return null; \n }",
"public String toString() {\n\t\treturn \"(\" + obtenerFila() + \"/\" + obtenerColumna() + \")\";\n\t}",
"private void psLineEndWithSeparator(int[] mapcols, int columnCount, String[] row) throws SQLException {\n //handling the last column if the value is null in anaplan\n if (jdbcConfig.getJdbcParams() != null && jdbcConfig.getJdbcParams().length > 0\n && !jdbcConfig.getJdbcParams()[0].equals(\"\") && mapcols.length != 0) {\n for (int i = 0; i < mapcols.length; i++) {\n if (i == mapcols.length - 1 && row.length < mapcols.length) {\n preparedStatement.setString(i + 1, \"\");\n } else {\n preparedStatement.setString(i + 1, String.valueOf(row[mapcols[i]]) != \"\" ? String.valueOf(row[mapcols[i]]) : \"\");\n }\n }\n } else {\n for (int i = 0; i < columnCount; i++) {\n if (i == columnCount - 1 && row.length < columnCount) {\n preparedStatement.setString(i + 1, \"\");\n } else {\n preparedStatement.setString(i + 1, String.valueOf(row[i]) != \"\" ? String.valueOf(row[i]) : \"\");\n }\n }\n }\n }",
"private final void prepareOrginalValiesTable() {\n\t\torig_values_list = new ArrayList<ArrayList<String>>();\n\t\tfor (int col = 0; col < previewTable.getColumnCount(); ++col) {\n\t\t\tfinal ArrayList<String> n = new ArrayList<String>();\n\t\t orig_values_list.add( n);\n\t\t for (int row = 0; row < previewTable.getRowCount(); ++row) {\n\t\t \t//TODO what about list values?\n\t\t\t\tString v = (String) previewTable.getValueAt(row, col);\n\t\t\t\tn.add(v);\n\t\t\t}\n\t\t}\n\t}",
"public static String concatenar(Object[] lista){\n String cadena = \"\";\n for(Object item: lista){\n cadena += item.toString();\n }\n return cadena;\n }",
"private static String commonSelectFields() {\n return Arrays.stream(TaskQueryColumnName.values())\n .map(TaskQueryColumnName::toString)\n .filter(column -> column.startsWith(\"t\"))\n .collect(Collectors.joining(\", \"));\n }",
"public static void printTable(StringBuffer out, String[] header,\n\t\t\tList<?> rows, String left, String sep) {\n\t\tint[] colWidths = colWidths(header, rows);\n\n\t\tprintLine(out, colWidths, left, sep);\n\t\tprintHeader(out, header, colWidths, left, sep);\n\t\tprintLine(out, colWidths, left, sep);\n\n\t\tfor (Iterator<?> iter = rows.iterator(); iter.hasNext();) {\n\t\t\tList<?> row = (List<?>) iter.next();\n\t\t\tStringBuffer bf = new StringBuffer(120);\n\n\t\t\tbf.append(left);\n\n\t\t\tfor (int i = 0; i < row.size(); i++) {\n\t\t\t\tString s = (String) row.get(i);\n\n\t\t\t\tbf.append(s);\n\n\t\t\t\tfor (int j = 0; j < colWidths[i] - s.length(); j++)\n\t\t\t\t\tbf.append(' ');\n\n\t\t\t\tbf.append(sep);\n\t\t\t}\n\n\t\t\tout.append(bf + \"\\n\");\n\t\t}\n\n\t\tprintLine(out, colWidths, left, sep);\n\t}",
"String concat_ws(String delimiter, String... text);",
"public void llenar2(ArrayList<String> values1,ArrayList<String[]> values,String txt){\n this.txt.setText(txt);\n DefaultTableModel t=new DefaultTableModel();\n for (int i = 0; i < values1.size(); i++) {\n t.addColumn(values1.get(i));\n }\n this.tv.setModel(t);\n for (int i = 0; i < values.size(); i++) {\n String array[]=values.get(i);\n t.addRow(array);\n \n }\n this.tv.setModel(t);\n \n \n \n }",
"private String getMatrixString(int[][] input)\n {\n // Building strings with the StringBuilder is much more efficient\n // then concatenating strings! \n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < input.length; i++)\n {\n for (int j = 0; j < input[i].length; j++)\n {\n sb.append(Integer.toString(input[i][j]) + \"\\t\");\n }\n sb.append(\"\\n\"); // append the linebreaker\n }\n\n // Finally, return the StringBuilder as a string\n return sb.toString();\n }",
"public void ProductsContent(DefaultTableModel tableModel, int parameter){\n connect();\n ResultSet result = null;\n tableModel.setRowCount(0);\n tableModel.setColumnCount(0);\n String sql =\"SELECT productos.descripcion, productos.presentacion, productos.precio, contenido.cantidad, \"\n + \"contenido.importe FROM productos JOIN contenido JOIN requisiciones ON productos.id_producto = \"\n + \"contenido.producto AND contenido.requisicion = requisiciones.id_requisicion \"\n + \"WHERE requisiciones.id_requisicion = ? ORDER BY descripcion\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setInt(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 String toString() {\r\n\t\tString resultado = \"\";\r\n\t\t\r\n\t\tfor(int i = 0; i < filas; i++) {\r\n\t\t\tfor(int j = 0; j < columnas; j++) {\r\n\t\t\t\tif(superficie[i][j] == null)\r\n\t\t\t\t{\r\n\t\t\t\t\tresultado += \" - \" + \" \";\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tresultado += superficie[i][j] + \" \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tresultado += \"\\n\";\r\n\t\t}\r\n\t\t\r\n\t\treturn resultado;\r\n\t}",
"public T concatRows( SimpleBase... matrices ) {\n convertType.specify0(this, matrices);\n T A = convertType.convert(this);\n\n int numCols = A.numCols();\n int numRows = A.numRows();\n for (int i = 0; i < matrices.length; i++) {\n numRows += matrices[i].numRows();\n numCols = Math.max(numCols, matrices[i].numCols());\n }\n\n SimpleMatrix combined = SimpleMatrix.wrap(convertType.commonType.create(numRows, numCols));\n\n A.ops.extract(A.mat, 0, A.numRows(), 0, A.numCols(), combined.mat, 0, 0);\n int row = A.numRows();\n for (int i = 0; i < matrices.length; i++) {\n Matrix m = convertType.convert(matrices[i]).mat;\n int cols = m.getNumCols();\n int rows = m.getNumRows();\n A.ops.extract(m, 0, rows, 0, cols, combined.mat, row, 0);\n row += rows;\n }\n\n return (T)combined;\n }",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"public void refresh() {\n String sql = \"\";\n sql += \"select m.id\"\n + \", m.data\"\n + \", CAST(CONCAT(dep.nome, ' [', dep.id, ']') AS CHAR(50)) as deposito\"\n + \", cau.descrizione as causale\"\n + \", m.articolo\"\n + \", if (cau.segno = -1 , -m.quantita, m.quantita) as quantita\"\n + \", m.note\"\n + \", cast(concat(IF(m.da_tipo_fattura = 7, 'Scontr.', \"\n + \" IF(m.da_tabella = 'test_fatt', 'Fatt. Vend.', \"\n + \" IF(m.da_tabella = 'test_ddt', 'DDT Vend.',\"\n + \" IF(m.da_tabella = 'test_fatt_acquisto', 'Fatt. Acq.',\"\n + \" IF(m.da_tabella = 'test_ddt_acquisto', 'DDT Acq.', m.da_tabella)))))\"\n + \" , da_serie, ' ', da_numero, '/', da_anno, ' - [ID ', da_id, ']') as CHAR)as origine\"\n // + \", m.da_tabella\"\n // + \", m.da_anno\"\n // + \", m.da_serie\"\n // + \", m.da_numero\"\n // + \", m.da_id\"\n + \", m.matricola\"\n + \", m.lotto\"\n + \", a.codice_fornitore, a.codice_a_barre from movimenti_magazzino m left join articoli a on m.articolo = a.codice\"\n + \" left join tipi_causali_magazzino cau on m.causale = cau.codice\"\n + \" left join depositi dep ON m.deposito = dep.id\";\n sql += \" where 1 = 1\";\n System.out.println(\"articolo_selezionato_filtro_ref = \" + articolo_selezionato_filtro_ref);\n System.out.println(\"articolo_selezionato_filtro_ref get = \" + articolo_selezionato_filtro_ref.get());\n if (articolo_selezionato_filtro_ref.get() != null && StringUtils.isNotBlank(articolo_selezionato_filtro_ref.get().codice)) {\n sql += \" and m.articolo like '\" + Db.aa(articolo_selezionato_filtro_ref.get().codice) + \"'\";\n }\n if (filtro_barre.getText().length() > 0) {\n sql += \" and a.codice_a_barre like '%\" + Db.aa(filtro_barre.getText()) + \"%'\";\n }\n if (filtro_lotto.getText().length() > 0) {\n sql += \" and m.lotto like '%\" + Db.aa(filtro_lotto.getText()) + \"%'\";\n }\n if (filtro_matricola.getText().length() > 0) {\n sql += \" and m.matricola like '%\" + Db.aa(filtro_matricola.getText()) + \"%'\";\n }\n if (filtro_fornitore.getText().length() > 0) {\n sql += \" and a.codice_fornitore like '%\" + Db.aa(filtro_fornitore.getText()) + \"%'\";\n }\n if (filtro_deposito.getSelectedIndex() >= 0) {\n sql += \" and m.deposito = \" + cu.s(filtro_deposito.getSelectedKey());\n }\n sql += \" order by m.data desc, id desc\";\n System.out.println(\"sql movimenti: \" + sql);\n griglia.dbOpen(Db.getConn(), sql, Db.INSTANCE, true);\n griglia.dbSelezionaRiga();\n }",
"protected abstract Object calcJoinRow();",
"public StringBuffer toStringBuffer()\r\n\t{\r\n\t\tStringBuffer stringSuperficie = new StringBuffer(\"\");\r\n\t\tfor(int i = 0; i < this.casillas.getFila(); i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < this.casillas.getCol(); j++)\r\n\t\t\t{\r\n\t\t\t\tif(this.queCelulaHay(new Casilla(i,j)) != ES_VACIA)\r\n\t\t\t\t\tstringSuperficie.append(\" \" + this.superficie[i][j].toStringBuffer() + \" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tstringSuperficie.append(\" - \");\r\n\t\t\t}\r\n\t\t\tstringSuperficie.append(\"\\n\");\r\n\t\t}\r\n\t\treturn stringSuperficie;\r\n\t}",
"void addToBatch(String rows) {\n // split multiple rows into row\n String[] rowArray = rows.split(\"\\n\");\n // for each row, insert row to batch\n for (String row : rowArray) {\n String[] values = row.trim().split(\"\\\\s+\");\n if (values.length != 16) {\n values = row.trim().split(\",\");\n }\n addToBatch(values);\n }\n }",
"private StringBuffer appendColumnString(StringBuffer newLine, int columnIndex, Object plaintext) {\n if (columnIndex != 0){\n newLine.append(\";\");\n }\n newLine.append(plaintext.toString());\n return newLine;\n }",
"public static String[][] leerPrestados() {\n int cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM prestado\");\n while (result.next()) {\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //matriz para guardar los registros\n String[][] reporte = new String[cont][11];\n cont = 0;\n try {\n Statement statement = connection.createStatement();\n ResultSet result = statement.executeQuery(\"SELECT * FROM prestado\");\n while (result.next()) {\n //leolos registros y los guardo cada uno en un renglon de la matriz\n System.out.println(\"ResultSet: \" + result.getString(1));\n \n reporte[cont][0] = result.getString(1);\n reporte[cont][1] = result.getString(2);\n reporte[cont][2] = result.getString(3);\n reporte[cont][3] = result.getString(4);\n reporte[cont][4] = result.getString(5);\n reporte[cont][5] = result.getString(6);\n reporte[cont][6] = result.getString(7);\n reporte[cont][7] = result.getString(8);\n reporte[cont][8] = result.getString(9);\n reporte[cont][9] = result.getString(10);\n reporte[cont][10] = result.getString(11);\n cont++;\n }\n \n } catch (SQLException ex) {\n Logger.getLogger(ManejoBasesDatos.class.getName()).log(Level.SEVERE, null, ex);\n }\n //regreso reporte completo\n return reporte;\n }",
"private String joinLines() {\n StringBuilder S = new StringBuilder();\n for (String L : testLines) {\n S.append(L);\n S.append(NL);\n }\n return S.toString();\n }",
"public String toString(){\r\n return \"{\"+ this.getRowIndex()+\",\"+ this.getColumnIndex()+\"}\";\r\n }",
"private void tampil() {\n int row=tabmode.getRowCount();\n for (int i=0;i<row;i++){\n tabmode.removeRow(0);\n }\n try {\n Connection koneksi=DriverManager.getConnection(\"jdbc:mysql://localhost:3306/medica\",\"root\",\"\");\n ResultSet rs=koneksi.createStatement().executeQuery(\"select rawat_inap_bayi.no, pasien_bayi.tgl_lahir, rawat_inap_bayi.tgl_masuk, rawat_inap_bayi.tgl_pulang, rawat_inap_bayi.lama, kamar.nm_kamar, penyakit.nama_penyakit, dokter.nm_dokter, tindakan.nama_tindakan, rawat_inap_bayi.suhu_tubuh, rawat_inap_bayi.resusitas, rawat_inap_bayi.hasil, rawat_inap_bayi.keterangan, rawat_inap_bayi.apgar \"+\n \" from rawat_inap_bayi inner join pasien_bayi on rawat_inap_bayi.no_rm_bayi=pasien_bayi.no_rm_bayi inner join kamar on rawat_inap_bayi.kd_kamar=kamar.kd_kamar inner join penyakit on rawat_inap_bayi.kd_icd = penyakit.kd_icd inner join dokter on rawat_inap_bayi.kd_dokter = dokter.kd_dokter inner join tindakan on rawat_inap_bayi.kode_tindakan = tindakan.kode_tindakan \");\n while(rs.next()){\n String[] data={rs.getString(1),rs.getString(2),rs.getString(3),rs.getString(4),rs.getString(5),rs.getString(6),rs.getString(7),rs.getString(8),rs.getString(9),rs.getString(10),rs.getString(11),rs.getString(12),rs.getString(13),rs.getString(14)};\n tabmode.addRow(data);\n }\n } catch (SQLException ex) {\n System.out.println(ex);\n }\n \n }",
"public void gettableconteudo(){\n \n int selecionada = jtablearquivos.getSelectedRow();\n if (selecionada == -1) {\n JOptionPane.showMessageDialog(null,\" Arquivo não selecionado corretamente !\");\n } \n String id = jtablearquivos.getValueAt(selecionada, 0).toString();\n id1 = id;\n String titulo = jtablearquivos.getValueAt(selecionada, 1).toString();\n titulo1 = titulo;\n \n \n \n }",
"private static void assembleRosterTable(){\n for (int i = 0; i < 10; i++) {\n rosterTable.insertRow(i);\n }\n }",
"private <T> String populateInClause(Collection<T> elements) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"(\");\n for (Iterator<T> it = elements.iterator(); it.hasNext();) {\n sb.append(it.next());\n if (it.hasNext()) { sb.append(\", \"); }\n }\n sb.append(\")\");\n return sb.toString();\n }",
"static <R,C> DataFrame<R,C> concatRows(Iterable<DataFrame<R,C>> frames) {\n return DataFrame.factory().concatRows(frames.iterator());\n }",
"String getMergeStatement(\r\n TypedKeyValue<List<String>, List<String>> fieldsAndValues,\r\n String tableName, String key);",
"public static String createRow(String[] row)\r\n\t{\r\n\t\tString rowHTML=\"<tr>\";\r\n\t\tfor (int i=0;i<row.length;i++)\r\n\t\t{\r\n\t\t\trowHTML+=\"<td>\"+row[i]+\"</td>\";\r\n\t\t}\r\n\t\trowHTML+=\"</tr>\";\r\n\t\treturn rowHTML;\r\n\t}",
"public void preenchercomlike(){\n \n \n javax.swing.table.DefaultTableModel dtm4 = (javax.swing.table.DefaultTableModel)jtablearquivos.getModel(); \n dtm4.setNumRows(0); \n \n int k=0;\n try{\n conexao.Conectar();\n conexao.sql = \"SELECT data,nomefile FROM arquivo WHERE nomefile LIKE ? \";\n conexao.ps = conexao.con.prepareStatement(conexao.sql); \n ps.setString(1,\"%\"+jTextField2.getText()+\"%\");\n conexao.rs = conexao.ps.executeQuery();\n \n \n \n while(conexao.rs.next())\n {\n \n dtm4.addRow(new Object[]{\" \",\" \",\" \"}); \n jtablearquivos.setValueAt(conexao.rs.getString(1),k,0); \n jtablearquivos.setValueAt(conexao.rs.getString(2),k,1); \n k++;\n }\n \n \n }catch(SQLException ex){\n JOptionPane.showMessageDialog(rootPane, ex.getMessage(), \"Erro ao popular tabelas!\", JOptionPane.ERROR_MESSAGE);\n }\n \n }",
"private static ArrayList<String> expandRows(int size,ArrayList<String> toExpand){\n\n\t\tArrayList<String> ret= transmit(toExpand);\n\t\tint columnas=toExpand.size()/5;\n\t\tint i=0;\n\t\tint tocopy=0;\n\n\t\tfor (int k = 0; k < size-1; k++) {\n\t\t\ti =toExpand.size()-1-columnas;\n\t\t\ttocopy=i-(columnas-1);\n\t\t\tfor (int j = 0; j < columnas; j++) {\n\t\t\t\tret.add(i+1, toExpand.get(tocopy));\n\t\t\t\ti=i+1; \n\t\t\t\ttocopy++;\n\t\t\t}\n\t\t}\n\n\t\tfor (int k = 0; k < size-1; k++) {\n\t\t\ti =(columnas-1)*2;\n\t\t\ttocopy=i-(columnas-2);\n\n\t\t\tfor (int j = 0; j < columnas; j++) {\n\t\t\t\tret.add(i+2, toExpand.get(tocopy));\n\t\t\t\ti=i+1; \n\t\t\t\ttocopy++;\n\t\t\t}\n\t\t}\n\t\treturn ret;\t\n\t}",
"public synchronized static String lista_Dr_regt_equiparaciones() {\n String sql = \"Select a.eqp_sol_numero,a.solte_id,B.solte_nombre,a.eqp_carrera_continuar_est,c.smrprle_program_desc,a.eqp_grado_continuar,a.eqp_fecha_atencion_usuario,a.eqp_fecha_area_rec,a.eqp_fecha_envio_unidad,a.eqp_fecha_recepcion_final,a.eqp_total_pagar,a.eqp_estado,a.eqp_numero_sesion,a.eqp_fecha_sesion,a.eqp_observaciones,a.eqp_periodo, EXTRACT(YEAR FROM TO_DATE (sysdate)) annoActual, a.eqp_fecha_recepcion_orer,b.solte_apellidos_solicitante, b.Solte_nombre_solicitante, b.solte_seg_nombre_solicitante from DR_REGT_EQUIPARACIONES a inner join DR_REGT_SOLICITANTE B ON A.solte_id = B.solte_id inner join SMRPRLE c on REPLACE(a.eqp_carrera_continuar_est,'Ñ','N') = REPLACE(c.smrprle_program,'Ñ','N') WHERE EQP_ESTADO != 3 order by a.EQP_FECHA_ATENCION_USUARIO desc\";\n return (sql);\n }",
"private void createStringConcat( AOpExpr node){\n\t\til.append(fi.createNew(\"java.lang.StringBuilder\"));\n \til.append(InstructionConstants.DUP);\n \tnode.getLeft().apply(this); //Load the left string.\n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"<init>\", org.apache.bcel.generic.Type.VOID, new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.STRING }, Constants.INVOKESPECIAL));\n \tnode.getRight().apply(this); \n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"append\", new org.apache.bcel.generic.ObjectType(\"java.lang.StringBuilder\"), new org.apache.bcel.generic.Type[] { org.apache.bcel.generic.Type.STRING }, Constants.INVOKEVIRTUAL));\n \til.append(fi.createInvoke(\"java.lang.StringBuilder\", \"toString\", org.apache.bcel.generic.Type.STRING, org.apache.bcel.generic.Type.NO_ARGS, Constants.INVOKEVIRTUAL));\n\t}",
"private static void processOneRow(int[] rowSize, String[] values, StringBuilder result, boolean finished){\n\t\t//stopping case \n\t\tif(finished){\n\t\t\treturn; \n\t\t}\n\t\tint done =0; \n\t\t//put everything that fits into result array\n\t\t//and keep track if finished \n\t\tfor(int i =0; i< values.length; i++){\n\t\t\t//if it fits \n\t\t\tif(values[i].length() <= rowSize[i]){\n\t\t\t\t//put padding and then put it result\n\t\t\t\tresult.append(makeCorrectSize(values[i], rowSize[i])); \n\t\t\t\tvalues[i] = \"\"; \t\n\t\t\t\tdone++; \n\t\t\t} else {\t\n\t\t\t\t//if it doesn't fit only put the part that fits and save the rest in array\n\t\t\t\tresult.append(makeCorrectSize(values[i].substring(0,rowSize[i]-2), rowSize[i] ));\n\t\t\t\tvalues[i] = values[i].substring(rowSize[i]-2);\t\n\t\t\t}\n\t\t}\n\t\tresult.append(\"\\n\"); \n\t\tif(done == values.length) finished = true; \t\n\t\t//recurse\n\t\tprocessOneRow(rowSize, values, result, finished); \n\t}",
"public String listarEstudiante(){\n StringBuilder salidaTabla=new StringBuilder();\n StringBuilder query=new StringBuilder();\n query.append(\" select e.idestudiante,e.cod_est,e.nombre,e.apellido,e.ci,c.nombre_curso,g.grado from cursos c \");\n query.append(\" INNER JOIN estudiante e ON c.idcurso=e.idcurso \");\n query.append(\" INNER JOIN grado g ON e.idgrado=g.idgrado \");\n try {\n PreparedStatement pst=connection.prepareStatement(query.toString());\n ResultSet resultado=pst.executeQuery();\n while(resultado.next()){\n salidaTabla.append(\"<tr>\");\n salidaTabla.append(\"<td>\");\n salidaTabla.append(resultado.getString(2));\n salidaTabla.append(\"</td>\");\n salidaTabla.append(\"<td>\");\n salidaTabla.append(resultado.getString(3));\n salidaTabla.append(\"</td>\");\n salidaTabla.append(\"<td>\");\n salidaTabla.append(resultado.getString(4));\n salidaTabla.append(\"</td>\");\n salidaTabla.append(\"<td>\");\n salidaTabla.append(resultado.getInt(5));\n salidaTabla.append(\"</td>\");\n salidaTabla.append(\"<td>\");\n salidaTabla.append(resultado.getString(6));\n salidaTabla.append(\"</td>\");\n salidaTabla.append(\"<td>\");\n salidaTabla.append(resultado.getString(7));\n salidaTabla.append(\"</td>\");\n //adicionando enlace para modificar ese registro\n salidaTabla.append(\"<td>\");\n salidaTabla.append(\"<a href=modificarEstudiante.jsp?cod=\")\n .append(resultado.getInt(1)).append(\">Modificar</a>\");\n salidaTabla.append(\"</td>\");\n salidaTabla.append(\"<td>\");\n salidaTabla.append(\"<a href='listaEstudiante.jsp?cod=\").append(resultado.getInt(1)).append(\"' onclick='return confirmarEliminacion();'>Eliminar</a>\");\n salidaTabla.append(\"</td>\");\n salidaTabla.append(\"</tr>\");\n }\n } catch (SQLException e) {\n e.printStackTrace();\n System.out.println(\"Error de conexion\");\n }\n return salidaTabla.toString();\n }",
"public String llenarBase(){\n String estadoBase=\"\";\n //Vectores para cada uno de los campos de cada tabla\n //vectores empleado\n final String[] nombreEmpleado = {\"Jorge Pérez\",\"Maritza Cañas\",\"Sebastian Funes\",\"Carlos Dominguez\"};\n final int [] duiEmpleado={050034561,060023567,030034561,0500325677};\n final String[] sexoEmpleado={\"M\",\"F\",\"M\",\"M\"};\n final int[] edadEmpleado={24,50,32,40};\n final String[] direccionEmpleado={\"25 Av.Norte #17H, San Salvador\",\"Res.Los Altos,#5,Mejicanos\",\"Calle Las Flores #5A,Cuscatlan\",\"49 Av. Norte, Res.Los Lirios #6B,San Salvador\"};\n final int[] telefonoEmpleado={22563456,22784567,75946754,23564788};\n final int[] cantApEmpleado={1,3,5,2};\n final int[] cantRefEmpleado={3,2,2,3};\n\n //vectores Experiencia Laboral\n final String[] idTodos={\"1\",\"2\",\"3\",\"4\"};\n final String[] duracionExpLab={\"6\",\"8\",\"12\",\"16\"};\n //vectorees Empresa\n final String[] nombreEmpresa={\"Pizza Hut\",\"Office Depot\",\"C.E San Antonio\",\"Telefonica\"};\n final String[] nitEmpresa={\"0614-220605-113-0\",\"0675-330734\",\"0423-220812\",\"0614-345632-551-0\"};\n final String[] dirEmpresa={\"Blv.Los Proceres, Local 5A,San Salvador\",\"49 Av. Norte,#45, San Salvador\",\"Barrio San Juan,Boque 1A,Sonsonate\",\"Centro Comercial Metrocentro, 2° Nivel,San Salvador\"};\n final String[] telEmpresa={\"2276-4533\",\"79567843\",\"2233-6755\",\"2256-8977\"};\n final int[] canOfertasEmpresa={6,4,1,5};\n //vectores detalleestudio\n final int[] idEmpleadoDE={1,2,3,4};\n final int[] idEspecializacionDE={1,2,3,4};\n final int[] idInstEstudioDE={1,2,3,4};\n final int[] anyoGraducionDE={2008,2014,2010,2012};\n //Vectores tabla Moni\n //para la tabla cargo\n final String[] nombreCargo={\"Gerente de Creditos\",\"Jefe de Planta\",\"Jefe de tecnología\",\"Jefe de Reacciones\"};\n final String[] descripcionCargo={\"gerente para la gestion de creditos\",\"Ingeniero industrial para control de planta\",\"Ingeniero de Sistemas para el area de TI\",\"Ingeniero Quimico encargado de planta de reactivos\"};\n // para la tabla aplicacion\n final int[] idsAplicacionTodos={1,2,3,4};\n final String[] fechaAplicacion={\"23/05/15\",\"13/05/15\",\"20/05/15\",\"24/05/15\"};\n final String[] estadoAplicacion={\"Aceptada\",\"Aceptada\",\"En Proceso\",\"En Proceso\"};\n //Vectoress tabla Edgardo\n\n //Vectores tabla Eduardo\n final int[] gradoEspeIdSpe={1,2,3,4};\n final String[] gradoEspeNombre={\"Java Junior\",\"Oracle 11g\",\"Tecnico De Sistemas\",\"Java Senior\"};\n final int[] gradoEspeDuration={2,1,3,4};\n final int[] gradoEspeIdInsti={1,2,3,4};\n\n final int[] referenceId={1,2,3,4};\n final String[] referenceName={\"Juan Perez\",\"Rafael Molina\",\"Pompilio Marcebundo\",\"José Menjivar\"};\n final String[] referencePhone={\"22002200\",\"77777777\",\"22222222\",\"225777777\"};\n final int[] referenceIdEmple={1,2,3,4};\n final int[] referenceIdBusiness={1,2,3,4};\n\n /*------EMPIEZA LA INSERCION ---*/\n for (int i = 0; i < 4; i++) {\n //tabla empresa\n ContentValues values = new ContentValues();\n values.put(\"NOMBRE_EMPRESA\", nombreEmpresa[i]);\n values.put(\"NIT_EMPRESA\",nitEmpresa[i]);\n values.put(\"DIR_EMPRESA\",dirEmpresa[i]);\n values.put(\"TEL_EMPRESA\", telEmpresa[i]);\n values.put(\"CANTOFERTAS_EMPRESA\",canOfertasEmpresa[i]);\n db.insert(\"EMPRESA\", null, values);\n\n //tabla Empleado, se reutilizara el metodo insertarEmpleado\n Empleado empleado = new Empleado();\n empleado.setNombre_empleado(nombreEmpleado[i]);\n empleado.setDui_empleado(duiEmpleado[i]);\n empleado.setSexo_empleado(sexoEmpleado[i]);\n empleado.setEdad_empleado(edadEmpleado[i]);\n empleado.setDireccion_empleado(direccionEmpleado[i]);\n empleado.setTelefono_empleado(telefonoEmpleado[i]);\n empleado.setCantAplicaciones_empleado(cantApEmpleado[i]);\n empleado.setCantReferencias_empleado(cantRefEmpleado[i]);\n insertarEmpleado(empleado);\n\n //tabla ExperienciaLaboral, se reutilizara el metodo insertarExpLab\n insertarExpLab(idTodos[i],idTodos[i],idTodos[i],duracionExpLab[i]);\n //tabla DetalleEstudio\n ContentValues values2 = new ContentValues();\n values2.put(\"ID_EMPLEADO\",idEmpleadoDE[i]);\n values2.put(\"ID_ESPECIALIZACION\",idEspecializacionDE[i]);\n values2.put(\"ID_INSTITUTOESTUDIO\",idInstEstudioDE[i]);\n values2.put(\"ANYOGRADUACION_DETALLEEST\",anyoGraducionDE[i]);\n db.insert(\"DETALLEESTUDIO\", null, values2);\n\n //Tabla Cargo, se reutiliza el metodo insertar(cargo\n Cargo cargo= new Cargo();\n cargo.setNombreCargo(nombreCargo[i]);\n cargo.setDescripcionCargo(descripcionCargo[i]);\n insertar(cargo);\n\n //tabla Aplicacion se reutiliza el metodo inserta(aplicacion)\n Aplicacion aplicacion= new Aplicacion();\n aplicacion.setIdEmpleado(idsAplicacionTodos[i]);\n aplicacion.setIdEmpresa(idsAplicacionTodos[i]);\n aplicacion.setIdOfertaLaboral(idsAplicacionTodos[i]);\n aplicacion.setFechaAplicacion(fechaAplicacion[i]);\n aplicacion.setEstadoAplicacion(estadoAplicacion[i]);\n insertar(aplicacion);\n\n //tabla Referencia\n Referencia refe=new Referencia();\n refe.setNombre_referencia(referenceName[i]);\n refe.setId_empleado(referenceIdEmple[i]);\n refe.setId_empresa(referenceIdBusiness[i]);\n refe.setTelefono_referencia(referencePhone[i]);\n refe.setId_referencia(referenceId[i]);\n insertar(refe);\n\n\n //tabla GradoEspecializacion\n\n GradoEspecializacion grade=new GradoEspecializacion();\n grade.setId_especializacion(gradoEspeIdSpe[i]);\n grade.setNombre_especializacion(gradoEspeNombre[i]);\n grade.setId_institutoEstudio(gradoEspeIdInsti[i]);\n grade.setDuracion_especializacion(gradoEspeDuration[i]);\n insertar(grade);\n\n\n }//fin for\n\n return estadoBase=\"El llenado de la Base de Datos se hizo Satisfactoriamente\";\n }"
] | [
"0.61774284",
"0.61362976",
"0.59659666",
"0.5934336",
"0.5924109",
"0.5902957",
"0.5855621",
"0.5824955",
"0.574063",
"0.57080144",
"0.5656329",
"0.5638617",
"0.5637436",
"0.56369895",
"0.5604908",
"0.56005174",
"0.5593577",
"0.55499583",
"0.5500826",
"0.5477441",
"0.5465943",
"0.54607415",
"0.5455494",
"0.54482055",
"0.5442494",
"0.54225487",
"0.5411455",
"0.54093826",
"0.5387489",
"0.53701234",
"0.5365826",
"0.53586006",
"0.53529817",
"0.5318486",
"0.5302761",
"0.5298577",
"0.5289629",
"0.52872086",
"0.5282985",
"0.5262653",
"0.5249696",
"0.5241909",
"0.5238698",
"0.52367777",
"0.52287555",
"0.5218695",
"0.5212373",
"0.52037764",
"0.5203554",
"0.5181926",
"0.5178353",
"0.51776236",
"0.51682705",
"0.51673955",
"0.5164972",
"0.5150425",
"0.5148033",
"0.5144173",
"0.5141002",
"0.5135258",
"0.5133951",
"0.5128449",
"0.51202345",
"0.51016134",
"0.5097367",
"0.50971115",
"0.5096723",
"0.5093662",
"0.5092586",
"0.5079123",
"0.50766087",
"0.5069396",
"0.50673103",
"0.50587946",
"0.50452083",
"0.5038588",
"0.5022933",
"0.5017253",
"0.50151956",
"0.50124454",
"0.5007392",
"0.5007164",
"0.5001433",
"0.49978873",
"0.49946713",
"0.4993293",
"0.49867162",
"0.49775517",
"0.4962733",
"0.49620533",
"0.49573502",
"0.49501023",
"0.49479342",
"0.49472216",
"0.49397334",
"0.49371403",
"0.49188036",
"0.4917688",
"0.4910938",
"0.49081814",
"0.49057764"
] | 0.0 | -1 |
Create a new downloader that uses the specified OkHttp instance. A response cache will not be automatically configured. | public OkHttpDownloader(OkHttpClient client) {
this.client = client;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OkHttpDownloader(Context context) {\n\n\t\t// Create cache directory\n\t\tmCacheDir = new File(context.getApplicationContext().getCacheDir(), \"picasso-cache\");\n\t\tif (!mCacheDir.exists()) {\n\t\t\tmCacheDir.mkdirs();\n\t\t}\n\n\t\tmUrlFactory = new OkUrlFactory(MizuuApplication.getOkHttpClient());\n\n\t\ttry {\n\t\t\tmUrlFactory.client().setCache(new Cache(mCacheDir, calculateDiskCacheSize(mCacheDir)));\n\t\t} catch (IOException e) {}\n\n\t\t// Set context\n\t\tmContext = context;\n\t}",
"public abstract Downloader createDownloader(DownloaderConstructorHelper downloaderConstructorHelper);",
"static Downloader m61430a(Context context) {\n try {\n Class.forName(\"com.squareup.okhttp.OkHttpClient\");\n return C18811c.m61450a(context);\n } catch (ClassNotFoundException unused) {\n return new C18803ab(context);\n }\n }",
"public static Downloader getInstance() {\n return new Downloader();\n }",
"@NonNull\n public static OkHttpClient provideOkHttpClient(Application app) {\n File cacheDir = new File(app.getCacheDir(), \"http\");\n Cache cache = new Cache(cacheDir, DISK_CACHE_SIZE);\n\n OkHttpClient.Builder okHttpClient = new OkHttpClient.Builder()\n .cache(cache);\n\n if (BuildConfig.DEBUG) {\n okHttpClient.addInterceptor(provideHttpLoggingInterceptor());\n }\n return okHttpClient.build();\n }",
"private static OkHttpClient createCachedClient(final Context context) {\n File httpCacheDirectory = new File(context.getCacheDir(), \"cache_file\");\n Cache cache = new Cache(httpCacheDirectory, 20 * 1024 * 1024);\n OkHttpClient okHttpClient = new OkHttpClient.Builder().addNetworkInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request originalRequest = chain.request();\n String cacheHeaderValue = isNetworkAvailable(context)\n ? \"public, max-age=2419200\"\n : \"public, only-if-cached, max-stale=2419200\";\n Request request = originalRequest.newBuilder().build();\n Response response = chain.proceed(request);\n return response.newBuilder()\n .removeHeader(\"Pragma\")\n .removeHeader(\"Cache-Control\")\n .header(\"Cache-Control\", cacheHeaderValue)\n .build();\n }\n }).cache(cache).build();\n return okHttpClient;\n }",
"private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }",
"public OkHttpClient okHttpClient ()\n {\n OkHttpClient okHttpClient = new OkHttpClient().newBuilder()\n .connectTimeout(60, TimeUnit.SECONDS)\n .readTimeout(60, TimeUnit.SECONDS)\n .writeTimeout(60, TimeUnit.SECONDS)\n .build();\n return okHttpClient;\n }",
"private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }",
"private OkHttpClient Create() {\n final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder()\n .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS)\n .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)\n .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS);\n\n // If there's no proxy just create a normal client\n if (appProps.getProxyHost().isEmpty()) {\n return baseClient.build();\n }\n\n final OkHttpClient.Builder proxyClient = baseClient\n .proxy(new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(appProps.getProxyHost(), Integer.parseInt(appProps.getProxyPort()))));\n\n if (!appProps.getProxyUsername().isEmpty() && !appProps.getProxyPassword().isEmpty()) {\n\n Authenticator proxyAuthenticator;\n String credentials;\n\n credentials = Credentials.basic(appProps.getProxyUsername(), appProps.getProxyPassword());\n\n // authenticate the proxy\n proxyAuthenticator = (route, response) -> response.request().newBuilder()\n .header(\"Proxy-Authorization\", credentials)\n .build();\n proxyClient.proxyAuthenticator(proxyAuthenticator);\n }\n return proxyClient.build();\n\n }",
"private static OkHttpClient m35241c() {\n return new OkHttpClient();\n }",
"public interface IKoalaDownloaderFactory {\n IKoalaDownloader create();\n}",
"public HttpUrlFetcher(Call.Factory factory) {\n super(factory);\n Intrinsics.checkParameterIsNotNull(factory, \"callFactory\");\n }",
"@Override\n public OkHttpClient customMake() {\n // just for OkHttpClient customize.\n final OkHttpClient.Builder builder = new OkHttpClient.Builder();\n // you can set the connection timeout.\n builder.connectTimeout(15_000, TimeUnit.MILLISECONDS);\n // you can set the HTTP proxy.\n builder.proxy(Proxy.NO_PROXY);\n // etc.\n return builder.build();\n }",
"public interface ZhiHuApi {\n\n /**\n * A factory of ZhiHuApi, you do not need to create it every time for network.\n */\n class Factory {\n\n private static final Retrofit.Builder builder;\n\n static {\n builder = new Retrofit.Builder()\n .baseUrl(Constants.BASE_HTTP_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJavaCallAdapterFactory.create());\n }\n\n public static <T extends ZhiHuApi> T create(Class<T> clazz) {\n return create(clazz, HostType.HTTP);\n }\n\n public static <T extends ZhiHuApi> T create(Class<T> clazz, HostType type) {\n return create(clazz, type, false);\n }\n\n public static <T extends ZhiHuApi> T create(Class<T> clazz, HostType type, boolean retryOnFailue) {\n Retrofit retrofit = builder\n .client(OkHttpClientHelper.getClient(type, retryOnFailue))\n .build();\n return retrofit.create(clazz);\n }\n\n\n }\n}",
"public static Downloader getDownloader(Download download){\n\t\tClass<?> clazz;\n\t\tDownloader downloader = null;\n\t\tString downloaderName = download.getDownloadClass();\n\t\t\n\t\ttry{\n\t\t\t//Get the Class object associated with the class with the given string name.\n\t\t\tclazz = Class.forName(download.getDownloadClass());\n\t\t\t//Instantiate the class\n\t\t\tdownloader = (Downloader) clazz.newInstance();\n\t\t\t//Set the download \n\t\t\tdownloader.setDownload(download);\n\t\t}catch(ClassNotFoundException e){\n\t\t\tlogger.error(\"Error trying to instantiate the following class \" +downloaderName, e);\n\t\t}catch(InstantiationException e){\n\t\t\tlogger.error(\"Error trying to instantiate the following class \" +downloaderName, e);\n\t\t}catch(IllegalAccessException e){\n\t\t\tlogger.error(\"Error trying to instantiate the following class \" +downloaderName, e);\n\t\t}\n\t\t\n\t\treturn downloader;\n\t}",
"private HttpDataSource.Factory buildHttpDataSourceFactory(DefaultBandwidthMeter bandwidthMeter) {\n return new DefaultHttpDataSourceFactory(userAgent, bandwidthMeter);\n }",
"public interface HttpClientFactory {\n CloseableHttpClient newHttpClient();\n}",
"private HttpCache(@NonNull Context context) {\n mCache = new Cache(new File(context.getExternalCacheDir(), CacheConfig.FILE_DIR),\n CacheConfig.FILE_SIZE);\n }",
"private ImageDownloader(){ \t\n \n }",
"private static HttpClient getNewHttpClient(){\n HttpParams params = new BasicHttpParams();\n return new DefaultHttpClient(params);\n }",
"@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n OkHttpClient client = new OkHttpClient();\n return client;\n }",
"public DownloadResponseInner() {\n }",
"public BitmapDownloaderTask(ImageView imageView) {\n\t\timageViewReference = new WeakReference<ImageView>(imageView);\n\n\t\t// create a new static cache if there is none\n\t\tif (cache == null) {\n\t\t\tcache = new HashMap<String, Bitmap>();\n\t\t}\n\t}",
"private static OkHttpClient getHttpClient(long timeout) {\n\n return new OkHttpClient\n .Builder()\n .connectTimeout(timeout, TimeUnit.SECONDS)\n .writeTimeout(10, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .build();\n }",
"private HttpClient() {\n\t}",
"public static Retrofit create(){\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n return retrofit;\n }",
"public TankOkHttpClient() {\n try {\n\n final TrustManager[] trustAllCerts = new TrustManager[] { new X509TrustManager() {\n\n @Override\n public X509Certificate[] getAcceptedIssuers() {\n return null;\n }\n\n @Override\n public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {}\n\n @Override\n public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {}\n } };\n\n // Setup SSL to accept all certs\n final SSLContext sslContext = SSLContext.getInstance(\"SSL\");\n sslContext.init(null, trustAllCerts, null);\n sslSocketFactory = sslContext.getSocketFactory();\n\n // Setup Cookie manager\n cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL);\n CookieHandler.setDefault(cookieManager);\n okHttpClient.setCookieHandler(cookieManager);\n\n okHttpClient.setConnectTimeout(30000, TimeUnit.MILLISECONDS);\n okHttpClient.setReadTimeout(30000, TimeUnit.MILLISECONDS); // Socket-timeout\n okHttpClient.setFollowRedirects(true);\n okHttpClient.setFollowSslRedirects(true);\n\n okHttpClient.setSslSocketFactory(sslSocketFactory);\n okHttpClient.setHostnameVerifier(new HostnameVerifier() {\n\n @Override\n public boolean verify(String hostname, SSLSession session) {\n return true;\n }\n });\n\n } catch (Exception e) {\n LOG.error(\"Error setting accept all: \" + e, e);\n }\n }",
"private ApiUrlCreator() {\n }",
"public static Retrofit getClient(final Context context) {\n //setup cache\n OkHttpClient okHttpClient = createCachedClient(context);\n retrofit = new Retrofit.Builder()\n .client(okHttpClient)\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n return retrofit;\n }",
"public VersionDownload() {\n }",
"public interface ApiInterface {\n String ENDPOINT = \"http://ibacor.com/api/\";\n String API_BMKG = \"bmkg?\";\n String GEMPA = \"view=gempa\";\n\n\n @GET(API_BMKG+GEMPA)\n Call<Data>\n getDataGempa();\n\n class Factory {\n\n public static ApiInterface create(Context context) {\n\n OkHttpClient.Builder builder = new OkHttpClient().newBuilder();\n builder.readTimeout(30, TimeUnit.SECONDS);\n builder.connectTimeout(20, TimeUnit.SECONDS);\n builder.writeTimeout(60, TimeUnit.SECONDS);\n\n if (BuildConfig.DEBUG) {\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BASIC);\n builder.addInterceptor(interceptor);\n }\n\n int cacheSize = 10 * 1024 * 1024; // 10 MiB\n Cache cache = new Cache(context.getCacheDir(), cacheSize);\n builder.cache(cache);\n\n OkHttpClient client = builder.build();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(ApiInterface.ENDPOINT)\n .client(client)\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJavaCallAdapterFactory.create())\n .build();\n\n return retrofit.create(ApiInterface.class);\n }\n }\n\n}",
"public static Retrofit create() {\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n return retrofit;\n\n }",
"private void setupHttpConnectionStuff() {\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.FROYO) {\n System.setProperty(\"http.keepAlive\", \"false\");\n }\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\n try {\n final File httpCacheDir = new File(getCacheDir(), \"http\");\n HttpResponseCache.install(httpCacheDir, TEN_MEGABYTES);\n } catch (IOException ioe) {\n Log.e(Constants.LOG_TAG, \"Could not install http cache on this device.\");\n }\n }\n }",
"public static APIRetrofit build() {\n final Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .build();\n TrafficStats.setThreadStatsTag(0x1000);\n return retrofit.create(APIRetrofit.class);\n }",
"public CachetClient(String url) {\n baseUrl = url;\n client = ClientBuilder.newClient();\n target = client.target(baseUrl);\n }",
"private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }",
"private void initialize(){\n if(uri != null)\n httpUriRequest = getHttpGet(uri);\n httpClient = HttpClients.createDefault();\n }",
"Builder(HaloNetworkApi api) {\n mRequestBuilder = HaloRequest.builder(api);\n mClient = api.client();\n }",
"public static Retrofit getInstance() {\n if (instance==null)\n instance = new Retrofit.Builder()\n //.baseUrl(\"http://10.0.2.2:3000\")\n .baseUrl(url)\n .addConverterFactory(ScalarsConverterFactory.create())\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .build();\n return instance;\n }",
"public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}",
"public CoreRestClientImpl(final File cacheDirectory) {\n CoreLog.d(\"Initialising the Rest Client\");\n\n final OkHttpClient client = new OkHttpClient();\n\n // initialise the cache directory if the parameter is not null\n if (cacheDirectory != null) {\n final Cache cache = new Cache(cacheDirectory, 10 * 1024 * 1024);\n client.setCache(cache);\n CoreLog.d(\"Client initialised with cache\");\n } else {\n CoreLog.d(\"Client initialised without cache\");\n }\n }",
"private void httpSetup() {\n OkHttpClient client = new OkHttpClient.Builder()\n .readTimeout(5, TimeUnit.SECONDS)\n .writeTimeout(5, TimeUnit.SECONDS)\n .build();\n\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .client(client)\n .build();\n\n service = retrofit.create(ValidatorAPI.class);\n }",
"private HttpClient prepareHttpClient() {\n\t\tHttpClientParams htcParams = new HttpClientParams();\n\t\tmHttpClient = new HttpClient();\n\t\thtcParams.setConnectionManagerTimeout(300000);\n\t\thtcParams.setSoTimeout(300000);\n\t\tmHttpClient.setParams(htcParams);\n\t\treturn mHttpClient;\n\t}",
"public AsyncImageLoader(Context context)\n {\n thread = new Thread(runner);\n cache = new ImageCache(context);\n }",
"static Http1Client create() {\n return create(Http1ClientConfig.create());\n }",
"private static void createInstance() {\n if (mApiInterface == null) {\n synchronized(APIClient.class) {\n if (mApiInterface == null) {\n mApiInterface = buildApiClient();\n }\n }\n }\n }",
"public ApiResponse() {\n }",
"public DefaultHttpRequest() {\n }",
"ApacheHttpClientBuilder getApacheHttpClientBuilder();",
"private DownloadResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private ImageDownloadManager() {\n\n /*\n * Creates a work queue for the pool of Thread objects used for downloading, using a linked\n * list queue that blocks when the queue is empty.\n */\n downloadWorkQueue = new LinkedBlockingQueue<Runnable>();\n\n /*\n * Creates a work queue for the set of of task objects that control downloading\n * using a linked list queue that blocks when the queue is empty.\n */\n imageDownloadTaskWorkQueue = new LinkedBlockingQueue<ImageDownloadTask>();\n\n /*\n * Creates a new pool of Thread objects for the download work queue\n */\n mDownloadThreadPool = new ThreadPoolExecutor(CORE_POOL_SIZE, MAXIMUM_POOL_SIZE,\n KEEP_ALIVE_TIME, KEEP_ALIVE_TIME_UNIT, downloadWorkQueue);\n\n\n // Anonymous object used to retrieve messags froma worker thread and pass\n // them to the UI thread\n mHandler = new Handler(Looper.getMainLooper()) {\n\n @Override\n public void handleMessage(Message inputMessage) {\n\n ImageDownloadTask imageDownloadTask = (ImageDownloadTask) inputMessage.obj;\n\n switch (inputMessage.what) {\n case DOWNLOAD_STARTED:\n break;\n\n case DOWNLOAD_COMPLETE:\n notifyListeners(imageDownloadTask);\n returnTaskToFreePool(imageDownloadTask);\n break;\n case DOWNLOAD_FAILED:\n returnTaskToFreePool(imageDownloadTask);\n break;\n default:\n super.handleMessage(inputMessage);\n }\n }\n };\n }",
"public ImageLoader getImageLoader() {\n return new ImageLoader(getRequestQueue(),\n new LruBitmapCache());\n }",
"public static Retrofit getRetrofitInstance(String BASE_URL, final String c_username, final String c_password) {\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n\n\n\n /*OkHttpClient okHttpClient = new OkHttpClient().newBuilder().addInterceptor(new Interceptor() {\n @Override\n public okhttp3.Response intercept(Interceptor.Chain chain) throws IOException {\n Request originalRequest = chain.request();\n\n Request.Builder builder = originalRequest.newBuilder().header(\"Authorization\",\n Credentials.basic(c_username, c_password));\n\n Request newRequest = builder.build();\n return chain.proceed(newRequest);\n }\n })\n .addInterceptor(logging)\n .build();*/\n OkHttpClient okHttpClient = getUnsafeOkHttpClient(BASE_URL, c_username, c_password, logging);\n /*OkHttpClient.Builder okHttpClient = new OkHttpClient.Builder();\n okHttpClient.addInterceptor(new Interceptor() {\n @Override\n public okhttp3.Response intercept(Interceptor.Chain chain) throws IOException {\n Request originalRequest = chain.request();\n\n Request.Builder builder = originalRequest.newBuilder().header(\"Authorization\",\n Credentials.basic(c_username, c_password));\n\n Request newRequest = builder.build();\n return chain.proceed(newRequest);\n }\n });\n\n okHttpClient.connectTimeout(1, TimeUnit.MINUTES)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(15, TimeUnit.SECONDS);\n\n if (BuildConfig.DEBUG) {//only LOG REST for DEBUG\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n logging.setLevel(HttpLoggingInterceptor.Level.HEADERS);\n okHttpClient.addInterceptor(logging);\n }\n*/\n\n if (retrofit == null) {\n retrofit = new retrofit2.Retrofit.Builder()\n .baseUrl(BASE_URL)\n\n //Add the converter//\n .addConverterFactory(GsonConverterFactory.create())\n .client(okHttpClient)\n //.client(okHttpClient.build())\n\n //Build the Retrofit instance//\n .build();\n }\n return retrofit;\n }",
"static Http2ClientBuilder builder() {\n return new Http2ClientBuilder();\n }",
"private static VbxService getApiInstance() {\n HttpLoggingInterceptor logger = new HttpLoggingInterceptor();\n logger.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n Interceptor setAcceptType = new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request request = chain.request();\n Request typedRequest = request\n .newBuilder()\n .header(\"Accept\", \"application/json\")\n .build();\n return chain.proceed(typedRequest);\n }\n };\n\n Interceptor setAuthorization = new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request request = chain.request();\n if(email != null && password != null) {\n String auth = Base64.encodeToString((email + \":\" + password).getBytes(), Base64.NO_WRAP);\n Request typedRequest = request\n .newBuilder()\n .header(\"Authorization\", String.format(\"Basic %s\", auth))\n .build();\n return chain.proceed(typedRequest);\n }\n return chain.proceed(request);\n }\n };\n\n OkHttpClient apiClient = new OkHttpClient.Builder()\n .addInterceptor(logger)\n .addInterceptor(setAcceptType)\n .addInterceptor(setAuthorization)\n .build();\n\n return new Retrofit.Builder()\n .baseUrl(endpoint)\n .client(apiClient)\n .addCallAdapterFactory(RxJavaCallAdapterFactory.create())\n .addConverterFactory(GsonConverterFactory.create())\n .build()\n .create(VbxService.class);\n }",
"public static Object httpClient() {\n return new Object();\n// return HttpClient.newBuilder()\n// .version(HttpClient.Version.HTTP_1_1)\n// .followRedirects(HttpClient.Redirect.NORMAL)\n// .connectTimeout(Duration.ofSeconds(300))\n// .build();\n }",
"public RequestBuilder() {\n this.https = false;\n }",
"@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n final HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder()\n .addInterceptor(loggingInterceptor);\n\n return clientBuilder.build();\n }",
"public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }",
"private Response() {}",
"private Response() {}",
"@PostConstruct\n private void init(){\n\n okHttpClient = new OkHttpClient();\n\n// loadEtoroInstruments();\n\n }",
"@Provides\n @Singleton\n public OkHttpClient providesOkHttpClient() {\n HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();\n interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder httpClient = new OkHttpClient.Builder();\n httpClient.addInterceptor(interceptor);\n\n return httpClient.build();\n\n }",
"public okhttp3.OkHttpClient getHttpClientInstance() {\r\n return configuration.getHttpClientInstance();\r\n }",
"@Override\n\t\t\tprotected Drawable doInBackground(ImageView... params) {\n\t\t\t\timageview = params[0];\n\t\t\t\tDrawable drawable = null;\n\t\t\t\tFile downloadPath = createDownloadsPath(activity, url.split(\"/\"));\n\t\t\t\tdo {\n\t\t\t\t\tdrawable = Utils.LoadImageFromWebOperations(url,\n\t\t\t\t\t\t\tdownloadPath);\n\t\t\t\t\tattempts--;\n\t\t\t\t} while (attempts > 0 && drawable == null);\n\t\t\t\treturn drawable;\n\t\t\t}",
"public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}",
"public BitbucketServiceFactory() {\n this.httpClient = HttpClient::create;\n }",
"public AsyncHttpResponse(String url, HttpResponseHeaders headers, byte[] payload) {\n mUrl = url;\n mHeaders = headers;\n mPayload = payload;\n mException = null;\n }",
"MovilizerRequest prepareDownloadRequest(Long systemId, String password, Integer numResponses,\n MovilizerRequest request);",
"public ContentDownloadHelper(String url, Context c, Bitmap bmp, ImageLoaderListener listener) {\n this.mUrl = url;\n this.mContext = c;\n this.mBitmap = bmp;\n this.mListener = listener;\n }",
"private Bitmap downloadBitmap(String url) {\n \tFile bufferFolder = new File(MainActivity.image_cache_dir);\n\t\tif(!bufferFolder.exists()) bufferFolder.mkdirs();\n \t//If it is in the local file, get it from there.\n \tFile imageFile = new File(MainActivity.image_cache_dir + getFileName(url));\n\t\tif(imageFile.exists()) {\n\t\t\tSystem.out.println(\"get image from \" + imageFile.getAbsolutePath());\n\t\t\treturn BitmapFactory.decodeFile(imageFile.getAbsolutePath());\t\t\t\t\t\t\n\t\t}else{\n\t\t\tSystem.out.println(\"image \" + imageFile.getAbsolutePath() + \" doesn't exist!\");\n\t\t}\n \n \tfinal int IO_BUFFER_SIZE = 4 * 1024;\n\n // AndroidHttpClient is not allowed to be used from the main thread\n// final HttpClient client = (mode == Mode.NO_ASYNC_TASK) ? new DefaultHttpClient() :\n// AndroidHttpClient.newInstance(\"Android\");\n// final HttpGet getRequest = new HttpGet(url);\n HttpClient client = new DefaultHttpClient();\n HttpGet getRequest = new HttpGet(url);\n try {\n HttpResponse response = client.execute(getRequest);\n final int statusCode = response.getStatusLine().getStatusCode();\n if (statusCode != HttpStatus.SC_OK) {\n Log.w(\"ImageDownloader\", \"Error \" + statusCode +\n \" while retrieving bitmap from \" + url);\n return null;\n }else{\n \tLog.w(\"ImageDownloader\", \"HttpStatus.SC_OK \" + statusCode +\n \" while retrieving bitmap from \" + url);\n }\n\n final HttpEntity entity = response.getEntity();\n if (entity != null) {\n InputStream inputStream = null;\n try {\n inputStream = entity.getContent();\n // return BitmapFactory.decodeStream(inputStream);\n // Bug on slow connections, fixed in future release.\n \n FlushedInputStream flushedInputStream = new FlushedInputStream(inputStream);\n // Need to be fixed: Save the loaded picture directly and transfer into bitmap then.\n FileOutputStream fout = null;\n \t\ttry {\n \t\t\t\tfout = new FileOutputStream(imageFile);\t\t\t\t\n \t\t\t\t /*\n * Read bytes to the Buffer until there is nothing more to read(-1).\n */\n \t\t\t\tByteArrayBuffer baf = new ByteArrayBuffer(512);\n int current = 0;\n while ((current = flushedInputStream.read()) != -1) {\n baf.append((byte) current);\n }\n fout.write(baf.toByteArray()); \n \t\t\t\t//System.out.println(\"bitmap.compress \" + imageFile.getAbsolutePath());\n \t\t} catch (FileNotFoundException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}finally{\n \t\t\t\tif(fout != null){\n \t\t\t\t\ttry {\n \t\t\t\t\t\tfout.flush();\n \t\t\t\t\t\tfout.close();\n \t\t\t\t\t} catch (IOException e) {\t\t\t\t\t\t\n \t\t\t\t\t\te.printStackTrace();\n \t\t\t\t\t}\t\t\t\t\t\n \t\t\t\t}\t \n \t\t\t} \t\t \n //return BitmapFactory.decodeStream(flushedInputStream);\n \t\t\treturn BitmapFactory.decodeFile(imageFile.getAbsolutePath());\n } finally {\n if (inputStream != null) {\n inputStream.close();\n }\n entity.consumeContent();\n }\n }\n } catch (IOException e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"I/O error while retrieving bitmap from \" + url, e);\n } catch (IllegalStateException e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"Incorrect URL: \" + url);\n } catch (Exception e) {\n getRequest.abort();\n Log.w(LOG_TAG, \"Error while retrieving bitmap from \" + url, e);\n } finally {\n if ((client instanceof AndroidHttpClient)) {\n ((AndroidHttpClient) client).close();\n }\n }\n return null;\n }",
"public static IHttpSimpleFetcher getHttpFetcher()\r\n {\r\n if (_httpFetcher == null)\r\n {\r\n _httpFetcher = new SimpleHttpFetcher();\r\n }\r\n\r\n return _httpFetcher;\r\n }",
"private HttpClientInfra() {}",
"public interface ILoader {\n\n void init(Context context,int cacheSizeInM);\n\n void request(SingleConfig config);\n\n void pause();\n\n void resume();\n\n void clearDiskCache();\n\n void clearMomoryCache();\n\n long getCacheSize();\n\n void clearCacheByUrl(String url);\n\n void clearMomoryCache(View view);\n void clearMomoryCache(String url);\n\n File getFileFromDiskCache(String url);\n\n void getFileFromDiskCache(String url,FileGetter getter);\n\n\n\n\n\n boolean isCached(String url);\n\n void trimMemory(int level);\n\n void onLowMemory();\n\n\n /**\n * 如果有缓存,就直接从缓存里拿,如果没有,就从网上下载\n * 返回的file在图片框架的缓存中,非常规文件名,需要自己拷贝出来.\n * @param url\n * @param getter\n */\n void download(String url,FileGetter getter);\n\n}",
"private <T> Future<T> newFuture(final T response) {\n FutureTask<T> t = new FutureTask<T>(new Callable<T>() {\n @Override\n public T call() {\n return response;\n }\n });\n t.run();\n return t;\n }",
"private void buildRetrofit() {\n OkHttpClient client = new OkHttpClient.Builder()\n .addInterceptor(new ResponseInterceptor())\n .build();\n\n Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(baseURL)\n .addConverterFactory(GsonConverterFactory.create())\n .client(client)\n .build();\n\n apiInterface = retrofit.create(APIInterface.class);\n }",
"public void requestImage(final ImageRequest request) {\n\n // If the request has no URL, abandon it\n if(request.mUrl==null){\n return;\n }\n\n // Create the image download runnable\n final ImageDownloadThread imageDownloadThread = new ImageDownloadThread(){\n\n public void run() {\n\n // Sleep the request for the specified time\n if(request!=null && request.mLoadDelay>0){\n try {\n Thread.sleep(request.mLoadDelay);\n } catch (InterruptedException e){\n if(ImageManager.DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n File file = null;\n\n // If the URL is not a local reseource, grab the file\n if(!getUrl().startsWith(\"content://\")){\n\n // Grab a link to the file\n file = new File(getFullCacheFileName(mContext, getUrl()));\n\n // If the file doesn't exist, grab it from the network\n if (!file.exists()){\n cacheImage( file, request);\n } \n\n // Otherwise let the callback know the image is cached\n else if(request!=null){\n request.sendCachedCallback(getUrl(), true);\n }\n\n // Check if the file is a gif\n boolean isGif = isGif(getUrl());\n\n // If the file downloaded was a gif, tell all the callbacks\n if( isGif && request!=null ){\n request.sendGifCallback(getUrl());\n }\n }\n\n // Check if we should cache the image and the dimens\n boolean shouldCache = false;\n int maxWidth = MAX_WIDTH;\n int maxHeight = MAX_HEIGHT;\n if(request!=null){\n maxWidth = request.mMaxWidth;\n maxHeight = request.mMaxHeight;\n shouldCache = request.mCacheImage;\n }\n\n // If any of the callbacks request the image should be cached, cache it\n if(shouldCache && \n (request!=null&&request.mContext!=null)||request==null){\n\n // First check the image isn't actually in the cache\n Bitmap bitmap = get(getUrl());\n\n // If the bitmap isn't in the cache, try to grab it\n // Or the bitmap was in the cache, but is of no use\n if(bitmap == null){\n\n if(!getUrl().startsWith(\"content://\")){\n bitmap = decodeBitmap(file, maxWidth, maxHeight);\n }else{\n Uri uri = Uri.parse(getUrl());\n try{\n InputStream input = mContext.getContentResolver().openInputStream(uri);\n bitmap = BitmapFactory.decodeStream(input);\n input.close();\n }catch(FileNotFoundException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }catch(IOException e){\n if(DEBUG){\n e.printStackTrace();\n }\n }\n }\n\n // If we grabbed the image ok, add to the cache\n if(bitmap!=null){\n addEntry(getUrl(), bitmap);\n }\n }\n\n // Send the cached callback\n if(request!=null){\n request.sendCallback(getUrl(), bitmap);\n }\n }\n }\n };\n\n // Set the url of the request\n imageDownloadThread.setUrl(request.mUrl);\n\n // Set the creation time of the request\n imageDownloadThread.setCreated(request.mCreated);\n\n // Assign a priority to the request\n if(request.mImageListener==null){\n // If there is no image listener, assign it background priority\n imageDownloadThread.setPriority(BACKGROUND_PRIORITY);\n }else{\n // If there is an image listener, assign it UI priority\n imageDownloadThread.setPriority(UI_PRIORITY);\n }\n\n // If the new request is not a duplicate of an entry of the active and \n // task queues, add the request to the task queue\n if(!mTaskQueue.contains(imageDownloadThread) && \n !mActiveTasks.contains(imageDownloadThread)){\n mThreadPool.execute(imageDownloadThread);\n }\n\n // If the request is a duplicate, add it to the blocked tasks queue\n else{\n mBlockedTasks.add(imageDownloadThread);\n }\n }",
"<T extends DownloaderConfiguration> T as(Class<T> type);",
"public static void init() {\n client = new OkHttpClient();\n\n //Construct a HTTP builder\n retrofit = new Retrofit.Builder()\n .client(client)\n .baseUrl(apiAddress)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n //Form an API to receive a token\n kedronService = retrofit.create(IKedronService.class);\n }",
"private CloseableHttpAsyncClient createHttpClient() {\n RequestConfig.Builder requestConfigBuilder = RequestConfig.custom()\n .setConnectTimeout(Timeout.ofMilliseconds(DEFAULT_CONNECT_TIMEOUT_MILLIS))\n .setResponseTimeout(Timeout.ofMilliseconds(DEFAULT_RESPONSE_TIMEOUT_MILLIS));\n if (requestConfigCallback != null) {\n requestConfigBuilder = requestConfigCallback.customizeRequestConfig(requestConfigBuilder);\n }\n\n try {\n final TlsStrategy tlsStrategy = ClientTlsStrategyBuilder.create()\n .setSslContext(SSLContext.getDefault())\n // See https://issues.apache.org/jira/browse/HTTPCLIENT-2219\n .setTlsDetailsFactory(new Factory<SSLEngine, TlsDetails>() {\n @Override\n public TlsDetails create(final SSLEngine sslEngine) {\n return new TlsDetails(sslEngine.getSession(), sslEngine.getApplicationProtocol());\n }\n })\n .build();\n\n final PoolingAsyncClientConnectionManager connectionManager = PoolingAsyncClientConnectionManagerBuilder.create()\n .setMaxConnPerRoute(DEFAULT_MAX_CONN_PER_ROUTE)\n .setMaxConnTotal(DEFAULT_MAX_CONN_TOTAL)\n .setTlsStrategy(tlsStrategy)\n .build();\n\n HttpAsyncClientBuilder httpClientBuilder = HttpAsyncClientBuilder.create()\n .setDefaultRequestConfig(requestConfigBuilder.build())\n .setConnectionManager(connectionManager)\n .setTargetAuthenticationStrategy(DefaultAuthenticationStrategy.INSTANCE)\n .disableAutomaticRetries();\n if (httpClientConfigCallback != null) {\n httpClientBuilder = httpClientConfigCallback.customizeHttpClient(httpClientBuilder);\n }\n\n final HttpAsyncClientBuilder finalBuilder = httpClientBuilder;\n return AccessController.doPrivileged((PrivilegedAction<CloseableHttpAsyncClient>) finalBuilder::build);\n } catch (NoSuchAlgorithmException e) {\n throw new IllegalStateException(\"could not create the default ssl context\", e);\n }\n }",
"public static OkHttpClient getOkHttpClient() {\n return OK_HTTP_CLIENT;\n }",
"public HttpRequest(HttpRequestBuilder builder){\r\n mUrl = builder.Url;\r\n mMethodType = builder.MethodType;\r\n mCallback = builder.Callback;\r\n mJsonRequestParams = builder.JsonRequestParams;\r\n }",
"public HttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn new ApacheHttpClient(this.configuration, httpClient);\n\t}",
"@Provides\n OkHttpClient.Builder providesOkHttpClientBuilder(){\n return new OkHttpClient.Builder()\n .connectTimeout(10, TimeUnit.SECONDS)\n .writeTimeout(20,TimeUnit.SECONDS)\n .readTimeout(20,TimeUnit.SECONDS);\n //.addInterceptor(new MyInterceptor());\n }",
"public interface IImageLoaderClient {\n public void init(Context context);\n\n public void destroy(Context context);\n\n public File getCacheDir(Context context);\n\n public void clearMemoryCache(Context context);\n\n public void clearDiskCache(Context context);\n\n public Bitmap getBitmapFromCache(Context context, String url);\n\n public void getBitmapFromCache(Context context, String url, IGetBitmapListener listener);\n\n public void displayImage(Context context, int resId, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, boolean isCache);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, ImageSize size);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, boolean cacheInMemory);\n\n\n public void displayImage(Context context, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, IImageLoaderListener listener);\n\n public void displayImage(Context context, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n public void displayImage(Fragment fragment, String url, ImageView imageView, int defRes, IImageLoaderListener listener);\n\n\n public void displayCircleImage(Context context, String url, ImageView imageView, int defRes);\n\n public void displayCircleImage(Fragment fragment, String url, ImageView imageView, int defRes);\n @Deprecated\n public void displayRoundImage(Context context, String url, ImageView imageView, int defRes, int radius);\n\n public void displayRoundImage(Fragment fragment, String url, ImageView imageView, int defRes, int radius);\n\n public void displayBlurImage(Context context, String url, int blurRadius, IGetDrawableListener listener);\n\n public void displayBlurImage(Context context, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayBlurImage(Context context, int resId, ImageView imageView, int blurRadius);\n\n public void displayBlurImage(Fragment fragment, String url, ImageView imageView, int defRes, int blurRadius);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, BitmapTransformation transformations);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes);\n\n public void displayImageInResource(Context context, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n public void displayImageInResource(Fragment fragment, int resId, ImageView imageView, int defRes, BitmapTransformation transformations);\n\n\n //add shiming 2018.4.20 transformation 需要装换的那种图像的风格,错误图片,或者是,正在加载中的错误图\n public void displayImageInResourceTransform(Activity activity, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Context context, int resId, ImageView imageView, Transformation transformation, int errorResId);\n public void displayImageInResourceTransform(Fragment fragment, int resId, ImageView imageView, Transformation transformation, int errorResId);\n\n //这是对网络图片,进行的图片操作,使用的glide中的方法\n public void displayImageByNet(Context context, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Fragment fragment, String url, ImageView imageView, int defRes, Transformation transformation);\n public void displayImageByNet(Activity activity, String url, ImageView imageView, int defRes, Transformation transformation);\n\n\n /**\n * 停止图片的加载,对某一个的Activity\n * @hide\n */\n public void clear(Activity activity, ImageView imageView);\n /**\n * 停止图片的加载,context\n * {@hide}\n */\n public void clear(Context context, ImageView imageView);\n /**\n * 停止图片的加载,fragment\n * {@hide}\n */\n public void clear(Fragment fragment, ImageView imageView);\n\n\n //如果需要的话,需要指定加载中,或者是失败的图片\n public void displayImageByDiskCacheStrategy(Fragment fragment, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Activity activity, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n public void displayImageByDiskCacheStrategy(Context context, String url, DiskCacheStrategy diskCacheStrategy, ImageView imageView);\n //某些情形下,你可能希望只要图片不在缓存中则加载直接失败(比如省流量模式)\n public void disPlayImageOnlyRetrieveFromCache(Fragment fragment, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Activity activity, String url, ImageView imageView);\n public void disPlayImageOnlyRetrieveFromCache(Context context, String url, ImageView imageView);\n\n\n\n /**\n *如果你想确保一个特定的请求跳过磁盘和/或内存缓存(比如,图片验证码 –)\n * @param fragment\n * @param url\n * @param imageView\n * @param skipflag 是否跳过内存缓存\n * @param diskCacheStratey 是否跳过磁盘缓存\n */\n public void disPlayImageSkipMemoryCache(Fragment fragment, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Activity activity, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n public void disPlayImageSkipMemoryCache(Context context, String url, ImageView imageView, boolean skipflag, boolean diskCacheStratey);\n\n /**\n * 知道这个图片会加载失败,那么的话,我们可以重新加载\n * @param fragment\n * @param url\n * @param fallbackUrl\n * @param imageView\n */\n //从 Glide 4.3.0 开始,你可以很轻松地使用 .error() 方法。这个方法接受一个任意的 RequestBuilder,它会且只会在主请求失败时开始一个新的请求:\n public void disPlayImageErrorReload(Fragment fragment, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Activity activity, String url, String fallbackUrl, ImageView imageView);\n public void disPlayImageErrorReload(Context context, String url, String fallbackUrl, ImageView imageView);\n\n\n /**\n 未来 Glide 将默认加载硬件位图而不需要额外的启用配置,只保留禁用的选项 现在已经默认开启了这个配置,但是在有些情况下需要关闭\n 所以提供了以下的方法,禁用硬件位图 disallowHardwareConfig\n * @param fragment\n * @param url\n * @param imageView\n */\n// 哪些情况不能使用硬件位图?\n// 在显存中存储像素数据意味着这些数据不容易访问到,在某些情况下可能会发生异常。已知的情形列举如下:\n// 在 Java 中读写像素数据,包括:\n// Bitmap#getPixel\n// Bitmap#getPixels\n// Bitmap#copyPixelsToBuffer\n// Bitmap#copyPixelsFromBuffer\n// 在本地 (native) 代码中读写像素数据\n// 使用软件画布 (software Canvas) 渲染硬件位图:\n// Canvas canvas = new Canvas(normalBitmap)\n//canvas.drawBitmap(hardwareBitmap, 0, 0, new Paint());\n// 在绘制位图的 View 上使用软件层 (software layer type) (例如,绘制阴影)\n// ImageView imageView = …\n// imageView.setImageBitmap(hardwareBitmap);\n//imageView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);\n// 打开过多的文件描述符 . 每个硬件位图会消耗一个文件描述符。\n// 这里存在一个每个进程的文件描述符限制 ( Android O 及更早版本一般为 1024,在某些 O-MR1 和更高的构建上是 32K)。\n// Glide 将尝试限制分配的硬件位图以保持在这个限制以内,但如果你已经分配了大量的文件描述符,这可能是一个问题。\n// 需要ARGB_8888 Bitmaps 作为前置条件\n// 在代码中触发截屏操作,它会尝试使用 Canvas 来绘制视图层级。\n// 作为一个替代方案,在 Android O 以上版本你可以使用 PixelCopy.\n// 共享元素过渡 (shared element transition)(OMR1已修复)\n public void disPlayImagedisallowHardwareConfig(Fragment fragment, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Activity activity, String url, ImageView imageView);\n public void disPlayImagedisallowHardwareConfig(Context context, String url, ImageView imageView);\n\n //监听图片的下载进度,是否完成,百分比 也可以加载本地图片,扩张一下\n public void disPlayImageProgress(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n public void disPlayImageProgress(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnGlideImageViewListener listener);\n\n public void disPlayImageProgressByOnProgressListener(Context context, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Activity activity, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n public void disPlayImageProgressByOnProgressListener(Fragment fragment, String url, ImageView imageView, int placeholderResId, int errorResId, OnProgressListener onProgressListener);\n\n\n\n// TransitionOptions 用于给一个特定的请求指定过渡。\n// 每个请求可以使用 RequestBuilder 中的 transition()\n// 方法来设定 TransitionOptions 。还可以通过使用\n// BitmapTransitionOptions 或 DrawableTransitionOptions\n// 来指定类型特定的过渡动画。对于 Bitmap 和 Drawable\n// 之外的资源类型,可以使用 GenericTransitionOptions。 Glide v4 将不会默认应用交叉淡入或任何其他的过渡效果。每个请求必须手动应用过渡。\n public void displayImageByTransition(Context context, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Activity activity, String url, TransitionOptions transitionOptions, ImageView imageView);\n public void displayImageByTransition(Fragment fragment, String url, TransitionOptions transitionOptions, ImageView imageView);\n\n //失去焦点,建议实际的项目中少用,取消求情\n public void glidePauseRequests(Context context);\n public void glidePauseRequests(Activity activity);\n public void glidePauseRequests(Fragment fragment);\n\n //获取焦点,建议实际的项目中少用\n public void glideResumeRequests(Context context);\n public void glideResumeRequests(Activity activity);\n public void glideResumeRequests(Fragment fragment);\n //加载缩图图 int thumbnailSize = 10;//越小,图片越小,低网络的情况,图片越小\n //GlideApp.with(this).load(urlnoData).override(thumbnailSize))// API 来强制 Glide 在缩略图请求中加载一个低分辨率图像\n public void displayImageThumbnail(Context context, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, String backUrl, int thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Fragment fragment, String url, String backUrl, int thumbnailSize, ImageView imageView);\n //如果没有两个url的话,也想,记载一个缩略图\n public void displayImageThumbnail(Fragment fragment, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Activity activity, String url, float thumbnailSize, ImageView imageView);\n public void displayImageThumbnail(Context context, String url, float thumbnailSize, ImageView imageView);\n}",
"public APIClient() {\n Gson gson = new GsonBuilder()\n .setLenient()\n .create();\n\n // Build base url\n retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create(gson))\n .addCallAdapterFactory(RxJava3CallAdapterFactory.create())\n .build();\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\ttry {\n\t\t\tFile httpCacheDir = new File(getActivity().getCacheDir(), \"http\");\n\t\t\tlong httpCacheSize = 10 * 1024 * 1024;\n\t\t\tHttpResponseCache.install(httpCacheDir, httpCacheSize);\n\t\t} catch (IOException e) {\n\t\t\tLog.i(TAG, \"HTTP response cache installation failed:\" + e);\n\t\t}\n\t\tsuper.onCreate(savedInstanceState);\n\t}",
"protected RestClient()\n\t{\n\t\tclient = new HttpClient();\n\t\tclient.setIdleTimeout(3000000);\n\t\t// for possible future use:\n\t\t//exchange_get = new ContentExchange()\n\t\t{\n\t\t\t// define the callback method to process the response when you get it back\n\t\t\t// protected void onResponseComplete() throws IOException\n\t\t\t// {\n\t\t\t// super.onResponseComplete();\n\t\t\t// int responseStatus = this.getStatus();\n\n\t\t\t// do something with the response content\n\t\t\t//System.out.println(\"Response status: \" + responseStatus);\n\t\t\t//System.out.println(this.getResponseContent());\n\t\t\t//\t }\n\t\t};\n\t}",
"public <T> T create(String baseUrl, Class<T> clz) {\n String service_url = \"\";\n try {\n Field field1 = clz.getField(\"BASE_URL\");\n service_url = (String) field1.get(clz);\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.getMessage();\n e.printStackTrace();\n }\n return createApiClient(\n TextUtils.isEmpty(service_url) ? baseUrl : service_url).create(clz);\n }",
"public static Asset createAsset(URL url) throws IOException {\n \t\t// Create a temporary file from the downloaded URL\n \t\tFile newFile = File.createTempFile(\"remote\", null, null);\n \t\ttry {\n \t\t\tFileUtils.copyURLToFile(url, newFile);\n\t\t\tif (newFile.exists() && newFile.length() < 20)\n \t\t\t\treturn null;\n \t\t\tAsset temp = new Asset(FileUtil.getNameWithoutExtension(url), FileUtils.readFileToByteArray(newFile));\n \t\t\treturn temp;\n \t\t} finally {\n \t\t\tnewFile.delete();\n \t\t}\n \t}",
"public static Retrofit apiService(Context context) {\n httpClientBuilder = new OkHttpClient.Builder()\n .connectTimeout(1, TimeUnit.MINUTES)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(15, TimeUnit.SECONDS);\n\n if (retrofit == null) {\n retrofit = new Retrofit.Builder()\n .baseUrl(Constants.BASE_URL_API)\n .client(httpClientBuilder.build())\n .addConverterFactory(GsonConverterFactory.create(gson))\n .build();\n }\n return retrofit;\n }",
"@Override\n protected DownloadManager getDownloadManager() {\n databaseProvider = new ExoDatabaseProvider(this);\n\n // A download cache should not evict media, so should use a NoopCacheEvictor.\n checkFolder();\n downloadCache = new SimpleCache(\n mDir,\n new NoOpCacheEvictor(),\n databaseProvider);\n // Create a factory for reading the data from the network.\n dataSourceFactory = new DefaultHttpDataSourceFactory();\n\n // Choose an executor for downloading data. Using Runnable::run will cause each download task to\n // download data on its own thread. Passing an executor that uses multiple threads will speed up\n // download tasks that can be split into smaller parts for parallel execution. Applications that\n // already have an executor for background downloads may wish to reuse their existing executor.\n Executor downloadExecutor = Runnable::run;\n\n // Create the download manager.\n downloadManager = new DownloadManager(\n this,\n databaseProvider,\n downloadCache,\n dataSourceFactory,\n downloadExecutor);\n\n // Optionally, setters can be called to configure the download manager.\n// downloadManager.setRequirements(requirements);\n// downloadManager.setMaxParallelDownloads(3);\n return downloadManager;\n }",
"public Factory() {\n this(getInternalClient());\n }",
"private ImageLoader() {}",
"public static Retrofit create(String apiUrl) {\n\t\treturn new Retrofit.Builder().baseUrl(apiUrl).addConverterFactory(GsonConverterFactory.create())\n\t\t\t\t.addCallAdapterFactory(new CallAdapter.Factory() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic CallAdapter<?, ?> get(Type returnType, Annotation[] annotations, Retrofit retrofit) {\n\t\t\t\t\t\treturn new CallAdapter<Object, Object>() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic Type responseType() {\n\t\t\t\t\t\t\t\treturn returnType;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic Object adapt(Call<Object> call) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tResponse<Object> re = call.execute();\n\t\t\t\t\t\t\t\t\tif (!re.isSuccessful()) {\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\treturn new Gson().fromJson(re.errorBody().string(), returnType);\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\tthrow new RRuntimeException(re);\n\t\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\treturn re.body();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tthrow new RuntimeException(e);\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}\n\t\t\t\t})\n\t\t\t\t.client(new OkHttpClient.Builder().readTimeout(15, TimeUnit.SECONDS).writeTimeout(10, TimeUnit.SECONDS)\n\t\t\t\t\t\t.connectTimeout(10, TimeUnit.SECONDS).cookieJar(CookieJar.NO_COOKIES)\n\t\t\t\t\t\t.addInterceptor((Chain chain) -> {\n//\t\t\t\t\t\t\tif(appKey==null) {\n\t\t\t\t\t\t\treturn chain.proceed(chain.request());\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\treturn chain.proceed(sign(chain.request()));\n\t\t\t\t\t\t}).build())\n\t\t\t\t.build();\n\t}",
"public SftpDownloadTask() {\n\n\t}",
"public interface ImageDownloader {\n\n /**\n * Load the image from the URL into the image view resizing it if necessary.\n * @param imageURL Image URL.\n * @param imageView ImageView reference to load the image into.\n */\n void downloadImage(String imageURL, ImageView imageView);\n\n}",
"private APIClient() {\n }",
"public entities.Torrent.DownloadResponse.Builder getDownloadResponseBuilder() {\n\n onChanged();\n return getDownloadResponseFieldBuilder().getBuilder();\n }"
] | [
"0.67059904",
"0.65461344",
"0.61972487",
"0.5987058",
"0.5843741",
"0.58250666",
"0.5821659",
"0.57126206",
"0.56913126",
"0.56863815",
"0.5556045",
"0.55180097",
"0.54196167",
"0.5414977",
"0.5344403",
"0.5342555",
"0.5333842",
"0.5290404",
"0.5281729",
"0.5266415",
"0.5262803",
"0.5220718",
"0.5185496",
"0.5182315",
"0.5157474",
"0.515396",
"0.513115",
"0.5130361",
"0.5121226",
"0.51199204",
"0.5118309",
"0.5080476",
"0.50792176",
"0.5072243",
"0.50294375",
"0.50242484",
"0.50232154",
"0.5022492",
"0.5015298",
"0.50059336",
"0.5004062",
"0.5001324",
"0.4961606",
"0.49605256",
"0.49580914",
"0.4956658",
"0.49470773",
"0.49467307",
"0.4944306",
"0.49279413",
"0.49269336",
"0.49216303",
"0.4918918",
"0.49155545",
"0.49132127",
"0.4908424",
"0.49077752",
"0.49023965",
"0.4876153",
"0.48704228",
"0.48703086",
"0.48703086",
"0.48638868",
"0.485799",
"0.48457274",
"0.48415294",
"0.48376843",
"0.4832511",
"0.48256153",
"0.48189723",
"0.48128635",
"0.4812318",
"0.48123032",
"0.48015162",
"0.47973585",
"0.47668156",
"0.4762616",
"0.47269127",
"0.47258586",
"0.4723029",
"0.47154358",
"0.4715339",
"0.4703303",
"0.47016063",
"0.46962497",
"0.4694384",
"0.46927512",
"0.46907714",
"0.4690689",
"0.4689436",
"0.46858606",
"0.4680444",
"0.4673006",
"0.4666891",
"0.46639225",
"0.46635482",
"0.46622017",
"0.46599486",
"0.46570277",
"0.46547383"
] | 0.6054263 | 3 |
End of variables declaration//GENEND:variables | public javax.swing.JLabel getLbl00() {
return lbl00;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo21779D() {\n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21780E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m23075a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void func_70295_k_() {}",
"void mo57277b();",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void yy() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected void mo6255a() {\n }"
] | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.58814824",
"0.5854075",
"0.5851759",
"0.58514243",
"0.58418584",
"0.58395296",
"0.5835063",
"0.582234",
"0.58090156",
"0.5802706",
"0.5793836",
"0.57862717",
"0.5784062",
"0.5783567",
"0.5782131",
"0.57758564",
"0.5762871",
"0.5759349",
"0.5745087",
"0.57427835",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.57326084",
"0.57301426",
"0.57266665",
"0.57229686",
"0.57175463",
"0.5705802",
"0.5698347",
"0.5697827",
"0.569054",
"0.5689405",
"0.5686434",
"0.56738997",
"0.5662217",
"0.56531453",
"0.5645255",
"0.5644223",
"0.5642628",
"0.5642476",
"0.5640595",
"0.56317437",
"0.56294966",
"0.56289655",
"0.56220204",
"0.56180173",
"0.56134313",
"0.5611337",
"0.56112075",
"0.56058615",
"0.5604383",
"0.5602629",
"0.56002104",
"0.5591573",
"0.55856615",
"0.5576992",
"0.55707216",
"0.5569681",
"0.55570376",
"0.55531484",
"0.5551123",
"0.5550893",
"0.55482954",
"0.5547471",
"0.55469507",
"0.5545719",
"0.5543553",
"0.55424106",
"0.5542057",
"0.55410767",
"0.5537739",
"0.55269134",
"0.55236584",
"0.55170715",
"0.55035424",
"0.55020875"
] | 0.0 | -1 |
we can't get clipboard details especially content size, so we should avoid clipboard processing when it's possible; | @Override
public void applicationActivated(@NotNull IdeFrame ideFrame) {
if (!VcsApplicationSettings.getInstance().DETECT_PATCH_ON_THE_FLY) return;
super.applicationActivated(ideFrame);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Object getClipboardContents()\n\t{\n\t\tObject result = null;\n\t\tfinal Transferable contents = ClipboardHelper.clipboard.getContents(null);\n\t\tif (contents != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (contents.isDataFlavorSupported(DataFlavor.stringFlavor))\n\t\t\t\t{\n\t\t\t\t\tresult = contents.getTransferData(DataFlavor.stringFlavor);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tresult = contents.getTransferData(null);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (final Exception e)\n\t\t\t{\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t\t\n\t}",
"default String getClipboardText() {\n byte[] base64decodedBytes = Base64\n .getMimeDecoder()\n .decode(getClipboard(ClipboardContentType.PLAINTEXT));\n return new String(base64decodedBytes, StandardCharsets.UTF_8);\n }",
"public String getClipboardContents() {\n\t\tString result = \"\";\n\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t// odd: the Object param of getContents is not currently used\n\t\tTransferable contents = clipboard.getContents(null);\n\t\tboolean hasTransferableText = (contents != null) && contents.isDataFlavorSupported(DataFlavor.stringFlavor);\n\t\tif (hasTransferableText) {\n\t\t\ttry {\n\t\t\t\tresult = (String) contents.getTransferData(DataFlavor.stringFlavor);\n\t\t\t\ttfURL.setText(result);\n\t\t\t} catch (UnsupportedFlavorException | IOException ex) {\n\t\t\t\tSystem.out.println(ex);\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public static void copySel() {\r\n DataClipboard.clearContent();\r\n if (DataClipboard.getSelectionLineBegin() != -1) {\r\n DataClipboard.updateContentLineBegin(DataClipboard.getSelectionLineBegin());\r\n DataClipboard.updateContentLineEnd(DataClipboard.getSelectionLineEnd());\r\n for (MeasureLine ml : DataClipboard.getSelectionTrimmed()) {\r\n if (ml != null) {\r\n DataClipboard.getContent().set(ml.getLineNumber(), ml);\r\n }\r\n }\r\n }\r\n }",
"@Override\n\tpublic void editorCopy()\n\t{\n\t\tclipboard = stringBuffer.substring(selectionStart,selectionEnd);\n\n\t\tSystem.out.println(\"DEBUG: performing Copy\" + clipboard) ;\n\t}",
"@Override\n public boolean canPaste(Clipboard clipboard) {\n return false;\n }",
"private static Object getContents(final Clipboard clipboard, final Transfer transfer, Shell shell) {\n\t\tfinal Object[] result= new Object[1];\n\t\tshell.getDisplay().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tresult[0]= clipboard.getContents(transfer);\n\t\t\t}\n\t\t});\n\t\treturn result[0];\n\t}",
"private static Object getContents(final Clipboard clipboard, final Transfer transfer, Shell shell) {\n\t\tfinal Object[] result= new Object[1];\n\t\tshell.getDisplay().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tresult[0]= clipboard.getContents(transfer);\n\t\t\t}\n\t\t});\n\t\treturn result[0];\n\t}",
"public String getClipboardContents() {\n String result = \"\";\n Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n //odd: the Object parameter of getContents is not currently used\n Transferable contents = clipboard.getContents(null);\n boolean hasTransferableText =\n (contents != null) &&\n contents.isDataFlavorSupported(DataFlavor.stringFlavor)\n ;\n if ( hasTransferableText ) {\n try {\n result = (String)contents.getTransferData(DataFlavor.stringFlavor);\n }\n catch (UnsupportedFlavorException ex){\n //highly unlikely since we are using a standard DataFlavor\n //System.out.println(ex);\n ex.printStackTrace();\n }\n catch (IOException ex) {\n //System.out.println(ex);\n ex.printStackTrace();\n }\n }\n return result;\n }",
"private Shape getClipboard() { return clipboard; }",
"void performPaste(){\n\r\n List pasteList = (TShapeClipboard.fGlobalClipboard).getShapeList();\r\n\r\n\r\n\r\n\r\n if ( (TShapeClipboard.fGlobalClipboard).clipboardValidForPaste(fShapes)) {\r\n // we have to check this because the User can bypass the menu by using the keyboard\r\n\r\n TUndoablePaste newEdit = new TUndoablePaste();\r\n\r\n newEdit.stateChanged(new ChangeEvent(this));\r\n\r\n Point whereToPaste;\r\n Rectangle unionRect=unionOfSelectees();\r\n\r\n if (unionRect!=null)\r\n whereToPaste=unionRect.getLocation();\r\n else\r\n whereToPaste=fListener.fAnchorPt; //last click\r\n\r\n if (deleteSelectedShapes(fShapes))\r\n repaint(); // it's going to repaint anyway\r\n\r\n if (pasteList.size() > 0) {\r\n Iterator iter = pasteList.iterator();\r\n TShape newShape;\r\n\r\n (TShapeClipboard.fGlobalClipboard).prepareForPaste(); // sets the top left to 00\r\n\r\n while (iter.hasNext()){\r\n newShape= ((TShape) iter.next()).copy();\r\n\r\n Rectangle boundsRect=newShape.getBoundsRect();\r\n\r\n boundsRect.translate(whereToPaste.x,whereToPaste.y);\r\n\r\n newShape.setBoundsRect(boundsRect);\r\n\r\n addShape(newShape); //more to it THAN THIS eg resolve interpr board reference\r\n }\r\n }\r\n\r\n\r\n\r\n\r\n /* newEdit.doEdit(); */\r\n\r\n /* (TShapeClipboard.fGlobalClipboard).setShapeList(copySelectedShapes());\r\n if (deleteSelectedShapes(fShapes))\r\n repaint(); */\r\n }\r\n\r\n }",
"public Collection<Object> getClipboard()\n {\n return clipboard;\n }",
"public boolean isCopyEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn text.getSelectionCount() > 0;\n \t}",
"public final java.awt.datatransfer.Clipboard getClipboard()\r\n {\r\n return _theClipboard;\r\n }",
"public Buffer getClipboard() {\n return clipboard.getCopy();\n }",
"@Test\n\tpublic void testGetClipboard() {\n\t\tImagePlus.getClipboard();\n\t}",
"protected void genericClipboard(SetOp op) {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n Transferable trans = clipboard.getContents(this);\n if (trans != null && trans.isDataFlavorSupported(DataFlavor.stringFlavor)) {\n try {\n\t // Extract the entities\n String clip = (String) trans.getTransferData(DataFlavor.stringFlavor);\n List<SubText> al = EntityExtractor.list(clip);\n\n // Also, extract just the single lines\n\t if (strictMatches() == false) {\n StringTokenizer st = new StringTokenizer(clip, \"\\n\");\n\t while (st.hasMoreTokens()) {\n\t String str = st.nextToken();\n\t // Remove before and after whitespaces...\n\t while (str.length() > 0 && (str.charAt(0) == ' ' || str.charAt(0) == '\\t')) \n\t str = str.substring(1,str.length());\n\t while (str.length() > 0 && (str.charAt(str.length()-1) == ' ' || str.charAt(str.length()-1) == '\\t'))\n\t str = str.substring(0,str.length()-1);\n al.add(new Entity(str,str,null,0,0));\n\t }\n }\n\n\t // Get the new items\n\t Set<String> new_set = new HashSet<String>();\n for (int i=0;i<al.size();i++) { \n\t String clip_str = al.get(i).toString();\n Iterator<String> it = entity_to_wxy.keySet().iterator();\n while (it.hasNext()) {\n\t String entity = it.next();\n\t // Check for a concat\n\t if (entity.indexOf(BundlesDT.DELIM) >= 0) entity = entity.substring(entity.lastIndexOf(BundlesDT.DELIM)+1, entity.length());\n\t if (Utils.isIPv4CIDR(clip_str) && Utils.isIPv4(entity) && Utils.ipMatchesCIDR(entity, clip_str))\n\t new_set.add(entity);\n\t if (entity.indexOf(clip_str) >= 0) \n\t new_set.add(entity);\n }\n\t }\n\n\t // Get the old items\n\t Set<String> old_set = new HashSet<String>(myrc.filterEntities(getRTParent().getSelectedEntities()));\n\n\t // Do the set operation\n\t switch (op) {\n\t case SELECT: getRTParent().setSelectedEntities(new_set);\n\t break;\n\t case ADD: new_set.addAll(old_set);\n\t getRTParent().setSelectedEntities(new_set);\n\t\t\t break;\n\t case REMOVE: old_set.removeAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t case INTERSECT: old_set.retainAll(new_set);\n\t getRTParent().setSelectedEntities(old_set);\n\t\t\t break;\n\t }\n } catch (UnsupportedFlavorException ufe) {\n System.err.println(\"genericClipboard failed... unsupported data flavor : \" + ufe);\n ufe.printStackTrace(System.err);\n } catch (IOException ioe) {\n System.err.println(\"genericClipboard failed... io exception : \" + ioe);\n ioe.printStackTrace(System.err);\n }\n }\n }",
"public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\")==0) {\n StringBuilder sbf=new StringBuilder();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numcols=jTable1.getSelectedColumnCount();\n int numrows=jTable1.getSelectedRowCount();\n int[] rowsselected=jTable1.getSelectedRows();\n int[] colsselected=jTable1.getSelectedColumns();\n if (rowsselected.length==0 || colsselected.length==0) return;\n if (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n numrows==rowsselected.length) &&\n (numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n numcols==colsselected.length)))\n {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i=0;i<numrows;i++) {\n for (int j=0;j<numcols;j++) {\n sbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n if (j<numcols-1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n stsel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stsel,stsel);\n }\n if (e.getActionCommand().compareTo(\"Paste\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns();\n if (rows.length==0 || cols.length==0) return;\n int startRow=rows[0];\n int startCol=cols[0];\n try\n {\n String trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n //System.out.println(\"String is:\"+trstring);\n StringTokenizer st1=new StringTokenizer(trstring,\"\\n\");\n for(int i=0;st1.hasMoreTokens();i++)\n {\n rowstring=st1.nextToken();\n StringTokenizer st2=new StringTokenizer(rowstring,\"\\t\");\n for(int j=0;st2.hasMoreTokens();j++)\n {\n value=(String)st2.nextToken();\n if (startRow+i==jTable1.getRowCount() && expandable) { // add row if necessary\n TableModel model = jTable1.getModel();\n if (model instanceof DefaultTableModel) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=\"\";\n ((DefaultTableModel)model).addRow(newrow);\n }\n }\n if (startRow+i<jTable1.getRowCount()&& startCol+j<jTable1.getColumnCount()) {\n Object typeValue=value;\n if (value!=null && convertNumerical!=CONVERT_NONE) {\n try {\n Double doubleval=Double.parseDouble(value);\n if (convertNumerical==CONVERT_TO_INTEGER || (convertNumerical==CONVERT_TO_DOUBLE_OR_INTEGER && doubleval.intValue()==doubleval.doubleValue())) typeValue=new Integer(doubleval.intValue());\n else typeValue=doubleval;\n } catch (NumberFormatException ex) {}\n }\n if (jTable1.isCellEditable(startRow+i,startCol+j)) {\n jTable1.setValueAt(typeValue,startRow+i,startCol+j);\n //System.out.println(\"Convert[\"+typeValue.getClass().getSimpleName()+\"] \"+value+\"=>\"+typeValue+\" at row=\"+startRow+i+\" column=\"+startCol+j+\" convertNumerical=\"+convertNumerical);\n }\n }\n }\n }\n }\n catch(Exception ex){}\n } \n if (e.getActionCommand().compareTo(\"Delete\")==0) {\n int[] rows=jTable1.getSelectedRows();\n int[] cols=jTable1.getSelectedColumns(); \n if (cols.length==jTable1.getColumnCount() && (jTable1.getModel() instanceof DefaultTableModel) && expandable) { // delete complete rows\n DefaultTableModel model = (DefaultTableModel)jTable1.getModel();\n for (int i=0;i<rows.length;i++) {\n model.removeRow(rows[i]-i);\n } \n if (model.getRowCount()==0) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n model.addRow(newrow); \n }\n } else { // delete only cell content\n for (int i=0;i<rows.length;i++) {\n for (int j=0;j<cols.length;j++) {\n jTable1.setValueAt(null,rows[i],cols[j]);\n }\n }\n }\n }\n if (e.getActionCommand().compareTo(\"PressedTab\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n int currentColumn=jTable1.getSelectedColumn();\n if (currentRow+1==jTable1.getRowCount() && currentColumn+1==jTable1.getColumnCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldTabAction.actionPerformed(e);\n }\n if (e.getActionCommand().compareTo(\"PressedArrowdown\")==0) {\n if (jTable1.getModel() instanceof DefaultTableModel && expandable) {\n int currentRow=jTable1.getSelectedRow();\n if (currentRow+1==jTable1.getRowCount()) {\n Object[] newrow=new Object[jTable1.getColumnCount()];\n for (int k=0;k<newrow.length;k++) newrow[k]=null;\n ((DefaultTableModel)jTable1.getModel()).addRow(newrow);\n }\n }\n oldArrowdownAction.actionPerformed(e);\n } \n }",
"@Override\n public void copy() {\n clipboard.setContents(getSelectionAsList(false));\n }",
"private void setClipboard(Shape c) { clipboard = c; }",
"public void copyText(){\n try{\n if(mCursor.isSelected()){\n mClipboardManager.setTextToClipboard(getText().subContent(mCursor.getLeftLine(),\n mCursor.getLeftColumn(),\n mCursor.getRightLine(),\n mCursor.getRightColumn()).toString());\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }",
"private void calcContentSize() {\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tClipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\r\n\t\t\t\tString copyString = ta_content.getText().toString();\r\n\t\t\t\tif (copyString != null) {\r\n\t\t\t\t\tStringSelection contents = new StringSelection(copyString);\r\n\t\t\t\t\tclipboard.setContents(contents, null);\r\n\t\t\t\t}\r\n\t\t\t}",
"@FXML\n private void copySummary() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(SUMMARY_MESSAGE);\n clipboard.setContent(url);\n }",
"public void copySelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.copy();\r\n \t}",
"public void doCopy() {\n if (renderPieces.size() == 0) {\n System.out.println(\"Nothing is selected for copy operation.\");\n return;\n }\n StringBuffer sb = new StringBuffer();\n\n textBuffer.renderInit();\n Text text;\n if (!reversed) {\n while ((text = textBuffer.getTextToRender()) != null) {\n sb.append(text.getText());\n }\n } else {\n while ((text = textBuffer.getPreToRender()) != null) {\n sb.append(text);\n }\n String reversedText = sb.toString();\n sb = new StringBuffer();\n for (int i = reversedText.length()-1; i >= 0; i -= 1) {\n sb.append(reversedText.charAt(i));\n }\n }\n Clipboard clipboard = Clipboard.getSystemClipboard();\n ClipboardContent content = new ClipboardContent();\n content.putString(sb.toString());\n clipboard.setContent(content);\n System.out.println(\"Copy succeed.\");\n }",
"@Override\n\t\t\tpublic void onPrimaryClipChanged() {\n\t\t\t\tClipData data = mClipboard.getPrimaryClip();\n\t\t\t\tItem item = data.getItemAt(0);\n\t\t\t\tLog.e(ClientSocketThread.TAG, \"复制文字========:\"+item.getText());\t\n \t\t\t\tsendSocketDataTotalLen = item.getText().toString().getBytes().length+4;\n\t\t\t\tsendTotalLen = FileUtil.intToByte(sendSocketDataTotalLen);\n\t\t\t\tsendSocketDataCategories =7;\n\t\t\t\tsendCategories = FileUtil.intToByte(sendSocketDataCategories);\n\t\t\t\tbyte[] sendDataBuffer = new byte[sendSocketDataTotalLen+4];\n\t\t\t\tSystem.arraycopy(sendTotalLen, 0, sendDataBuffer, 0, 4);\n\t\t\t\tSystem.arraycopy(sendCategories, 0, sendDataBuffer, 4, 4);\n\t\t\t\tSystem.arraycopy(item.getText().toString().getBytes(), 0, sendDataBuffer, 8, item.getText().toString().getBytes().length);\n\t\t\t\tThreadReadWriterIOSocket.writeDataToSocket(sendDataBuffer);\n\t\t\t}",
"public void addFromClipboard() { genericClipboard(SetOp.ADD); }",
"public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand().compareTo(\"Copy\") == 0) {\n StringBuffer sbf = new StringBuffer();\n // Check to ensure we have selected only a contiguous block of\n // cells\n int numCols = jTable.getSelectedColumnCount();\n int numRows = jTable.getSelectedRowCount();\n int[] rowsSelected = jTable.getSelectedRows();\n int[] colsSelected = jTable.getSelectedColumns();\n if (!((numRows - 1 == rowsSelected[rowsSelected.length - 1] - rowsSelected[0] &&\n numRows == rowsSelected.length) &&\n (numCols - 1 == colsSelected[colsSelected.length - 1] - colsSelected[0] &&\n numCols == colsSelected.length))) {\n JOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n \"Invalid Copy Selection\",\n JOptionPane.ERROR_MESSAGE);\n return;\n }\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n sbf.append(jTable.getValueAt(rowsSelected[i], colsSelected[j]));\n if (j < numCols - 1) sbf.append(\"\\t\");\n }\n sbf.append(\"\\n\");\n }\n StringSelection stSel = new StringSelection(sbf.toString());\n system = Toolkit.getDefaultToolkit().getSystemClipboard();\n system.setContents(stSel, stSel);\n }\n if (e.getActionCommand().compareTo(\"Paste\") == 0) {\n int startRow = (jTable.getSelectedRows())[0];\n int startCol = (jTable.getSelectedColumns())[0];\n try {\n String trString = (String) (system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n StringTokenizer st1 = new StringTokenizer(trString, \"\\n\");\n for (int i = 0; st1.hasMoreTokens(); i++) {\n String rowString = st1.nextToken();\n StringTokenizer st2 = new StringTokenizer(rowString, \"\\t\");\n for (int j = 0; st2.hasMoreTokens(); j++) {\n String value = st2.nextToken();\n\n if (startRow + i < jTable.getRowCount() && startCol + j < jTable.getColumnCount()) {\n mapTable.getData()[startRow + i][startCol + j] = Double.valueOf(value);\n }\n }\n\n mapTable.setTableData(mapTable.getData());\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n }",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void lostOwnership(Clipboard clipboard, Transferable contents) {\n\t\t\t\t\t\t\t\t}",
"public void setClipboard(Collection<Object> clipboard)\n {\n this.clipboard = clipboard;\n }",
"public interface ClipboardListener {\n\t/**\n\t * If paste is enabled (some \"pastable\" content in the clipboard)\n\t * \n\t * @param enabled\n\t * true if enabled\n\t */\n\tpublic void pasteEnabled(boolean enabled);\n\n\t/**\n\t * If there is content to copy or cut selected\n\t * \n\t * @param enabled\n\t * true if enabled\n\t */\n\tpublic void cutCopyEnabled(boolean enabled);\n}",
"public void pasteText(){\n try{\n CharSequence text = mClipboardManager.getTextFromClipboard();\n if(text != null && mConnection != null){\n mConnection.commitText(text, 0);\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(getContext(),e.toString(),Toast.LENGTH_SHORT).show();\n }\n }",
"public void onTextCopy()\n\t{\n\t}",
"public void selectFromClipboard() { genericClipboard(SetOp.SELECT); }",
"@Override\n public void cut() {\n clipboard.setContents(getSelectionAsList(true));\n }",
"public void copyToClipboard(View view) {\n //Get the text from the text view\n TextView resultTextView = findViewById(R.id.result_text_view);\n String resultText = resultTextView.getText().toString();\n\n //Copy the Text to the clipboard\n ClipboardManager clipboardManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\n ClipData dataClip = ClipData.newPlainText(CLIP_TEXT_KEY, resultText);\n clipboardManager.setPrimaryClip(dataClip);\n\n //Tell the user that the text has been copied to the clipboard\n Toast.makeText(this, \"Copied to Clipboard\", Toast.LENGTH_SHORT).show();\n\n\n }",
"public void paste() {\n pasteClipboard(getToolkit().getSystemClipboard());\n }",
"@FXML\n private void copyEdit() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(EDIT_MESSAGE);\n clipboard.setContent(url);\n }",
"public String getClipboardText() throws Exception {\n\t\tClipboard c = GClipboard.getSystemClipboard();\n\t\tTransferable t = c.getContents(null);\n\n\t\ttry {\n\t\t\tString text = (String) t.getTransferData(DataFlavor.stringFlavor);\n\t\t\treturn text;\n\t\t}\n\t\tcatch (UnsupportedFlavorException e) {\n\t\t\tMsg.error(this, \"Unsupported data flavor - 'string'. Supported flavors: \");\n\t\t\tDataFlavor[] flavors = t.getTransferDataFlavors();\n\t\t\tfor (DataFlavor dataFlavor : flavors) {\n\t\t\t\tMsg.error(this, \"\\t\" + dataFlavor.getHumanPresentableName());\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}",
"protected OwClipboard getClipboard()\r\n {\r\n return ((OwMainAppContext) getContext()).getClipboard();\r\n }",
"public void performPaste() {\n \t\ttext.paste();\n \t\tcheckSelection();\n \t\tcheckDeleteable();\n \t\tcheckSelectable();\n \t}",
"@Test\n\tpublic void testPaste() {\n\t\tImagePlus.resetClipboard();\n\n\t\t// paste when nothing in clipboard\n\t\tImagePlus.resetClipboard();\n\t\tproc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);\n\t\tip = new ImagePlus(\"Paster\",proc);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertFalse(ip.changes);\n\t\tassertNull(ip.getRoi());\n\t\tip.paste();\n\t\tassertFalse(ip.changes);\n\t\tassertNull(ip.getRoi());\n\n\t\t// paste with valid data (part of image)\n\t\tImagePlus.resetClipboard();\n\t\tproc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);\n\t\tip = new ImagePlus(\"Paster\",proc);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertEquals(4,proc.get(1,1));\n\t\tip.setRoi(1,1,1,1);\n\t\tip.copy(true);\n\t\tassertNotNull(ImagePlus.getClipboard());\n\t\tassertFalse(ip.changes);\n\t\tassertEquals(0,proc.get(1,1));\n\t\tip.paste();\n\t\tassertTrue(ip.changes);\n\t\tassertNotNull(ip.getRoi());\n\t\t//ip.getRoi().drawPixels();\n\t\t//assertEquals(4,proc.get(1, 1));\n\n\t\t// paste with valid data (whole image)\n\t\tImagePlus.resetClipboard();\n\t\tproc = new ByteProcessor(2,3,new byte[] {1,2,3,4,5,6},null);\n\t\tip = new ImagePlus(\"Paster\",proc);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertNull(ip.getRoi());\n\t\tassertEquals(4,proc.get(1,1));\n\t\tip.copy(true);\n\t\tassertNull(ImagePlus.getClipboard());\n\t\tassertFalse(ip.changes);\n\t\tassertEquals(4,proc.get(1,1));\n\t\tip.paste();\n\t\tassertFalse(ip.changes);\n\t\tassertNull(ip.getRoi());\n\t\t//ip.getRoi().drawPixels();\n\t\t//assertEquals(4,proc.get(1, 1));\n\n\t\t// reset state to keep from messing up other tests\n\t\tImagePlus.resetClipboard();\n\t}",
"public void checkClipboardContents() {\n\t\tClipboard c = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\tString is_youtube_link_l = \"youtube.com\"; // youtube url long version\n\t\tString is_youtube_link_s = \"youtu.be\";\n\t\ttry {\n\t\t\tString paste = (String) c.getContents(null).getTransferData(DataFlavor.stringFlavor);\n\t\t\tif (this.isActive()) {\n\t\t\t\tif (paste.toLowerCase().contains(is_youtube_link_l.toLowerCase())\n\t\t\t\t\t\t|| paste.toLowerCase().contains(is_youtube_link_s.toLowerCase())) {\n\t\t\t\t\tSystem.out.println(\"Youtube url detected, placing it in the textbox\");\n\t\t\t\t\tlblStatus.setText(\"Youtube url detected, placing it in the textbox\");\n\t\t\t\t\ttfURL.setText(paste);\n\t\t\t\t} else {\n\t\t\t\t\tlblStatus.setText(\"NON Youtube text detected in the clipboard, ignoring it\");\n\t\t\t\t\tSystem.out.println(\"NON Youtube text detected in the clipboard, ignoring it\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (paste.toLowerCase().contains(is_youtube_link_l.toLowerCase())\n\t\t\t\t\t\t|| paste.toLowerCase().contains(is_youtube_link_s.toLowerCase()) && autoMode == false) {\n\t\t\t\t\tSystem.out.println(\"Youtube url detected, open the application window\");\n\t\t\t\t\ttrayIcon.displayMessage(\"Youtube\", \"Youtube link has been detected!\", TrayIcon.MessageType.INFO);\n\t\t\t\t} else if (paste.toLowerCase().contains(is_youtube_link_l.toLowerCase())\n\t\t\t\t\t\t|| paste.toLowerCase().contains(is_youtube_link_s.toLowerCase()) && autoMode == true) {\n\t\t\t\t\tsetClipboardContents(modifyURL(returnRegex(), convertString()));// add the converted url to the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// clipboard\n\t\t\t\t\tSystem.out.println(\"Youtube url detected, converted url placed in your clipboard\");\n\t\t\t\t\ttrayIcon.displayMessage(\"Youtube\", \"Youtube link detected! Converted link in your clipboard\",\n\t\t\t\t\t\t\tTrayIcon.MessageType.INFO);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NON Youtube text detected, ignoring it minimized\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException error) {\n\t\t\tSystem.out.println(\"Error\" + error.getMessage());\n\t\t} catch (UnsupportedFlavorException flavorexcept) {\n\t\t\tSystem.out.println(\"Error\" + flavorexcept.getMessage());\n\t\t}\n\t}",
"public void copySelection() {\n RTGraphComponent.RenderContext myrc = (RTGraphComponent.RenderContext) (getRTComponent().getRTRenderContext()); if (myrc == null) return;\n Clipboard clipboard = getToolkit().getSystemClipboard();\n StringBuffer sb = new StringBuffer();\n Iterator<String> it = (myrc.filterEntities(getRTParent().getSelectedEntities())).iterator();\n while (it.hasNext()) sb.append(it.next() + \"\\n\");\n StringSelection selection = new StringSelection(sb.toString());\n clipboard.setContents(selection, null);\n }",
"public void copyText() {\n ((ClipboardManager) getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(\"textFromCoolapk\", this.mBinding.text.getText()));\n Toast.show(getActivity(), \"结果已复制\");\n }",
"public interface IClipboard\n extends IInterface {\n public static abstract class Stub extends Binder\n implements IClipboard {\n private static class Proxy\n implements IClipboard {\n\n public void addPrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IBinder ibinder;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n if(ionprimaryclipchangedlistener == null)\n break MISSING_BLOCK_LABEL_59;\n ibinder = ionprimaryclipchangedlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(ibinder);\n mRemote.transact(5, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n ibinder = null;\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public IBinder asBinder() {\n return mRemote;\n }\n\n public String getInterfaceDescriptor() {\n return \"android.content.IClipboard\";\n }\n\n public ClipData getPrimaryClip(String s) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n parcel.writeString(s);\n mRemote.transact(2, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n ClipData clipdata = (ClipData)ClipData.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return clipdata;\n_L2:\n clipdata = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public ClipDescription getPrimaryClipDescription() throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n mRemote.transact(3, parcel, parcel1, 0);\n parcel1.readException();\n if(parcel1.readInt() == 0) goto _L2; else goto _L1\n_L1:\n ClipDescription clipdescription = (ClipDescription)ClipDescription.CREATOR.createFromParcel(parcel1);\n_L4:\n parcel1.recycle();\n parcel.recycle();\n return clipdescription;\n_L2:\n clipdescription = null;\n if(true) goto _L4; else goto _L3\n_L3:\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean hasClipboardText() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n mRemote.transact(7, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public boolean hasPrimaryClip() throws RemoteException {\n boolean flag;\n Parcel parcel;\n Parcel parcel1;\n flag = false;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n int i;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n mRemote.transact(4, parcel, parcel1, 0);\n parcel1.readException();\n i = parcel1.readInt();\n if(i != 0)\n flag = true;\n parcel1.recycle();\n parcel.recycle();\n return flag;\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void removePrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n IBinder ibinder;\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n if(ionprimaryclipchangedlistener == null)\n break MISSING_BLOCK_LABEL_60;\n ibinder = ionprimaryclipchangedlistener.asBinder();\n_L1:\n parcel.writeStrongBinder(ibinder);\n mRemote.transact(6, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n ibinder = null;\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n public void setPrimaryClip(ClipData clipdata) throws RemoteException {\n Parcel parcel;\n Parcel parcel1;\n parcel = Parcel.obtain();\n parcel1 = Parcel.obtain();\n parcel.writeInterfaceToken(\"android.content.IClipboard\");\n if(clipdata == null)\n break MISSING_BLOCK_LABEL_56;\n parcel.writeInt(1);\n clipdata.writeToParcel(parcel, 0);\n_L1:\n mRemote.transact(1, parcel, parcel1, 0);\n parcel1.readException();\n parcel1.recycle();\n parcel.recycle();\n return;\n parcel.writeInt(0);\n goto _L1\n Exception exception;\n exception;\n parcel1.recycle();\n parcel.recycle();\n throw exception;\n }\n\n private IBinder mRemote;\n\n Proxy(IBinder ibinder) {\n mRemote = ibinder;\n }\n }\n\n\n public static IClipboard asInterface(IBinder ibinder) {\n Object obj;\n if(ibinder == null) {\n obj = null;\n } else {\n IInterface iinterface = ibinder.queryLocalInterface(\"android.content.IClipboard\");\n if(iinterface != null && (iinterface instanceof IClipboard))\n obj = (IClipboard)iinterface;\n else\n obj = new Proxy(ibinder);\n }\n return ((IClipboard) (obj));\n }\n\n public IBinder asBinder() {\n return this;\n }\n\n public boolean onTransact(int i, Parcel parcel, Parcel parcel1, int j) throws RemoteException {\n int k;\n boolean flag;\n k = 0;\n flag = true;\n i;\n JVM INSTR lookupswitch 8: default 80\n // 1: 103\n // 2: 149\n // 3: 199\n // 4: 245\n // 5: 279\n // 6: 303\n // 7: 327\n // 1598968902: 94;\n goto _L1 _L2 _L3 _L4 _L5 _L6 _L7 _L8 _L9\n_L1:\n flag = super.onTransact(i, parcel, parcel1, j);\n_L11:\n return flag;\n_L9:\n parcel1.writeString(\"android.content.IClipboard\");\n continue; /* Loop/switch isn't completed */\n_L2:\n parcel.enforceInterface(\"android.content.IClipboard\");\n ClipData clipdata1;\n if(parcel.readInt() != 0)\n clipdata1 = (ClipData)ClipData.CREATOR.createFromParcel(parcel);\n else\n clipdata1 = null;\n setPrimaryClip(clipdata1);\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L3:\n parcel.enforceInterface(\"android.content.IClipboard\");\n ClipData clipdata = getPrimaryClip(parcel.readString());\n parcel1.writeNoException();\n if(clipdata != null) {\n parcel1.writeInt(flag);\n clipdata.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L4:\n parcel.enforceInterface(\"android.content.IClipboard\");\n ClipDescription clipdescription = getPrimaryClipDescription();\n parcel1.writeNoException();\n if(clipdescription != null) {\n parcel1.writeInt(flag);\n clipdescription.writeToParcel(parcel1, flag);\n } else {\n parcel1.writeInt(0);\n }\n continue; /* Loop/switch isn't completed */\n_L5:\n parcel.enforceInterface(\"android.content.IClipboard\");\n boolean flag2 = hasPrimaryClip();\n parcel1.writeNoException();\n if(flag2)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n continue; /* Loop/switch isn't completed */\n_L6:\n parcel.enforceInterface(\"android.content.IClipboard\");\n addPrimaryClipChangedListener(IOnPrimaryClipChangedListener.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L7:\n parcel.enforceInterface(\"android.content.IClipboard\");\n removePrimaryClipChangedListener(IOnPrimaryClipChangedListener.Stub.asInterface(parcel.readStrongBinder()));\n parcel1.writeNoException();\n continue; /* Loop/switch isn't completed */\n_L8:\n parcel.enforceInterface(\"android.content.IClipboard\");\n boolean flag1 = hasClipboardText();\n parcel1.writeNoException();\n if(flag1)\n k = ((flag) ? 1 : 0);\n parcel1.writeInt(k);\n if(true) goto _L11; else goto _L10\n_L10:\n }\n\n private static final String DESCRIPTOR = \"android.content.IClipboard\";\n static final int TRANSACTION_addPrimaryClipChangedListener = 5;\n static final int TRANSACTION_getPrimaryClip = 2;\n static final int TRANSACTION_getPrimaryClipDescription = 3;\n static final int TRANSACTION_hasClipboardText = 7;\n static final int TRANSACTION_hasPrimaryClip = 4;\n static final int TRANSACTION_removePrimaryClipChangedListener = 6;\n static final int TRANSACTION_setPrimaryClip = 1;\n\n public Stub() {\n attachInterface(this, \"android.content.IClipboard\");\n }\n }\n\n\n public abstract void addPrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException;\n\n public abstract ClipData getPrimaryClip(String s) throws RemoteException;\n\n public abstract ClipDescription getPrimaryClipDescription() throws RemoteException;\n\n public abstract boolean hasClipboardText() throws RemoteException;\n\n public abstract boolean hasPrimaryClip() throws RemoteException;\n\n public abstract void removePrimaryClipChangedListener(IOnPrimaryClipChangedListener ionprimaryclipchangedlistener) throws RemoteException;\n\n public abstract void setPrimaryClip(ClipData clipdata) throws RemoteException;\n}",
"public static String getClipboardDataAsString() {\n Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();\n Transferable clipData = clipboard.getContents(clipboard);\n if (clipData != null) {\n try {\n if (clipData.isDataFlavorSupported(DataFlavor.stringFlavor)) {\n return (String) (clipData.getTransferData(DataFlavor.stringFlavor));\n }\n } catch (UnsupportedFlavorException ufe) {\n //LOGGER.info(\"Flavor unsupported: \", ufe);\n } catch (IOException ioe) {\n //LOGGER.error(\"Data not available: \", ioe);\n }\n }\n return null;\n }",
"public void copy(ICopyContext context) {\n\tPictogramElement[] pes = context.getPictogramElements();\n\tObject[] bos = new Object[pes.length];\n\tfor (int i = 0; i < pes.length; i++) {\n\t PictogramElement pe = pes[i];\n\t bos[i] = getBusinessObjectForPictogramElement(pe);\n\t}\n\t// put all business objects to the clipboard\n\tputToClipboard(bos);\n }",
"private static void copyToClipBoard(){\n String password= passwordGenerator.generatePassword();\r\n\r\n /* For copying in windows\r\n * This will copy the password in clipboard in windows\r\n */\r\n//\t\tInitialising the toolkit and clipboard\r\n Toolkit toolkit = Toolkit.getDefaultToolkit();\r\n Clipboard clipboard = toolkit.getSystemClipboard();\r\n\r\n//\t\tclipboard.setContents takes to argument 1st is the string which has to store and 2nd is the name of clipboard owner\r\n StringSelection selection=new StringSelection(password);\r\n clipboard.setContents(selection,null);\r\n\r\n /* For copying in linux distribution\r\n * This will copy the password in xclip in linux\r\n */\r\n Runtime runtime=Runtime.getRuntime();\r\n Process p=null;\r\n try {\r\n p=runtime.exec(new String[]{\"sh\",\"-c\",\"echo\"+password+\" | xclip -selection clipboard\"});\r\n }\r\n catch (Exception e){\r\n System.out.println(e);\r\n }\r\n System.out.println(\"Password copied into clipboard\");\r\n }",
"public void removeFromClipboard() { genericClipboard(SetOp.REMOVE); }",
"public void performCopy() {\n \t\ttext.copy();\n \t}",
"public void onPressCopyDescription(View view) {\r\n TextView textView = findViewById(R.id.textDescription);\r\n String text = textView.getText().toString();\r\n\r\n if (text.equals(\"\"))\r\n return;\r\n\r\n ClipboardManager clipManager = (ClipboardManager) getSystemService(CLIPBOARD_SERVICE);\r\n ClipData data = ClipData.newPlainText(\"text\", text);\r\n clipManager.setPrimaryClip(data);\r\n }",
"@Override\r\n\tpublic void paste() {\n\t\t\r\n\t}",
"@FXML\n private void copyHelp() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(HELP);\n clipboard.setContent(url);\n }",
"void previewSized();",
"private void copyToClipboard(String text)\n {\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n cb.setContents(new StringSelection(text), null);\n }",
"public void screenshotToClipboard() {\n Image image = getScreenshot();\n Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent content = new ClipboardContent();\n content.putImage(image);\n clipboard.setContent(content);\n LOGGER.atInfo().log(\"Copied screenshot to clipboard\");\n }",
"@FXML\n private void copyUrl() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(HELP_URL);\n clipboard.setContent(url);\n }",
"public void pasteSystemSelection() {\n Clipboard systemSelection = getToolkit().getSystemSelection();\n if (systemSelection != null) {\n pasteClipboard(systemSelection);\n }\n }",
"@Override\n\tpublic void editorPaste()\n\t{\n editorInsert(clipboard);\n\t\tSystem.out.println(\"DEBUG: performing Paste\") ;\n\t}",
"@Override\n\t\t\tpublic boolean onLongClick(View v) {\n\t\t\t\tClipboardManager clipboard = (ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n\t\t\t\t\n\t\t\t\tpaste_clip_data = clipboard.getText().toString();\n\t\t\t\t\n\t\t\t\tif (!TextUtils.isEmpty(paste_clip_data) && paste_btn.getVisibility() == View.GONE){\n\t\t\t\t\t\n\t\t\t \t\n\t\t\t \tpaste_btn.setVisibility(View.VISIBLE);\n\t\t\t \t\n\t\t\t }\n\t\t\t\t\n\t\t\t\treturn true;\n\t\t\t}",
"public boolean isPasteEnabled() {\n \t\tif (text == null || text.isDisposed())\n \t\t\treturn false;\n \t\treturn true;\n \t}",
"protected void copyLinkToClipboard() {\r\n\t\tapp.copyTextToSystemClipboard(getURL());\r\n\t\tlink.selectAll();\r\n\t}",
"protected final char[] getCopyBuffer()\n {\n char[] buf = mCopyBuffer;\n if (buf == null) {\n mCopyBuffer = buf = mConfig.allocMediumCBuffer(DEFAULT_COPYBUFFER_LEN);\n }\n return buf;\n }",
"public void cutSelection() {\r\n \t\t// Bertoli Marco\r\n \t\tclipboard.cut();\r\n \t}",
"public void doHandlepasteshortcut ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// get the items to be pasted\n\t\tVector pasteItems = new Vector ();\n\n\t\tif (((String) state.getAttribute (STATE_COPY_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tpasteItems = (Vector) ( (Vector) state.getAttribute (STATE_COPIED_IDS)).clone ();\n\t\t}\n\t\tif (((String) state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\taddAlert(state, rb.getString(\"choosecp\"));\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tString collectionId = params.getString (\"collectionId\");\n\n\t\t\tString originalDisplayName = NULL_STRING;\n\n\t\t\tfor (int i = 0; i < pasteItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteItem = (String) pasteItems.get (i);\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteItem);\n\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the collection\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteItem);\n\t\t\t\t\t\tString displayName = SHORTCUT_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(displayName);\n\n\t\t\t\t\t\t//int countNumber = 2;\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif ((!properties.isLiveProperty (propertyName)) && (!propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// %%%%% should be _blank for items that can be displayed in browser, _self for others\n\t\t\t\t\t\t// resourceProperties.addProperty (ResourceProperties.PROP_OPEN_NEWWINDOW, \"_self\");\n\t\t\t\t\t\tresourceProperties.addProperty (ResourceProperties.PROP_DISPLAY_NAME, displayName);\n\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tContentResource referedResource= ContentHostingService.getResource (currentPasteItem);\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, ResourceProperties.TYPE_URL, referedResource.getUrl().getBytes (), resourceProperties, referedResource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t // pasted shortcut to the same folder as before; add countNumber to the id\n\t\t\t\t\t\t\tdisplayName = \"Shortcut (\" + countNumber + \") to \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\tcountNumber++;\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\t// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepasteshortcut ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis9\") + \" \" + currentPasteItem.substring (currentPasteItem.lastIndexOf (Entity.SEPARATOR)+1) + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + currentPasteItem.substring (currentPasteItem.lastIndexOf (Entity.SEPARATOR)+1) + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\n\t\t\t}\t// for\n\t\t}\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tif (((String) state.getAttribute (STATE_COPY_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\t// reset the copy flag\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// paste shortcut sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\t\t}\n\n\t}",
"public void lostOwnership(Clipboard clipboard, Transferable contents) {\n // Firefox doesn't clear its selection when someone else claims the\n // X11 selection and I imagine it could be quite annoying in Evergreen.\n // So deliberately do nothing.\n \n // If we already have the read lock and ask for the write lock in\n // setSelectionWithoutScrolling, that would cause deadlock if\n // another thread has the read lock and is waiting for this thread.\n }",
"default String getClipboard(ClipboardContentType contentType) {\n return CommandExecutionHelper.execute(this, new AbstractMap.SimpleEntry<>(GET_CLIPBOARD,\n prepareArguments(\"contentType\", contentType.name().toLowerCase())));\n }",
"public void refreshClipboard() {\n BufferedReader reader;\n ArrayList<String> paths = new ArrayList<>();\n try {\n reader = new BufferedReader(new FileReader(this.clipboardPath));\n String path = reader.readLine();\n while (path != null) {\n paths.add(path);\n path = reader.readLine();\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // Sorts the paths by length\n Collections.sort(paths, new Comparator<String>() {\n @Override\n public int compare(String o1, String o2) {\n return o1.length() - o2.length();\n }\n });\n\n paths = checkSubDir(paths);\n\n this.numberOfItems = paths.size();\n this.paths = paths;\n\n }",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tif (e.getActionCommand().compareTo(\"Copy\")==0)\n\t\t{\n\t\t\tStringBuffer sbf=new StringBuffer();\n\t\t\t// Check to ensure we have selected only a contiguous block of\n\t\t\t// cells\n\t\t\tint numcols=jTable1.getSelectedColumnCount();\n\t\t\tint numrows=jTable1.getSelectedRowCount();\n\t\t\tint[] rowsselected=jTable1.getSelectedRows();\n\t\t\tint[] colsselected=jTable1.getSelectedColumns();\n\t\t\tif (!((numrows-1==rowsselected[rowsselected.length-1]-rowsselected[0] &&\n\t\t\t\t\tnumrows==rowsselected.length) &&\n\t\t\t\t\t(numcols-1==colsselected[colsselected.length-1]-colsselected[0] &&\n\t\t\t\t\t\t\tnumcols==colsselected.length)))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid Copy Selection\",\n\t\t\t\t\t\t\"Invalid Copy Selection\",\n\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfor (int i=0;i<numrows;i++)\n\t\t\t{\n\t\t\t\tfor (int j=0;j<numcols;j++)\n\t\t\t\t{\n\t\t\t\t\tsbf.append(jTable1.getValueAt(rowsselected[i],colsselected[j]));\n\t\t\t\t\tif (j<numcols-1) sbf.append(\"\\t\");\n\t\t\t\t}\n\t\t\t\tsbf.append(\"\\n\");\n\t\t\t}\n\t\t\tstsel = new StringSelection(sbf.toString());\n\t\t\tsystem = Toolkit.getDefaultToolkit().getSystemClipboard();\n\t\t\tsystem.setContents(stsel,stsel);\n\t\t}\n\t\tif (e.getActionCommand().compareTo(\"Paste\")==0)\n\t\t{\n\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\tlogger.debug(\"Trying to Paste\");\n\t\t\t}\n\t\t\tint[] selectedRows = jTable1.getSelectedRows();\n\t\t\tint[] selectedColumns = jTable1.getSelectedColumns();\n\t\t\t\n\t\t\tint startRow = 0;\n\t\t\tint startCol = 0;\n\t\t\tif (selectedRows.length > 0) {\n\t\t\t\tstartRow=selectedRows[0];\n\t\t\t}\n\t\t\tif (selectedColumns.length > 0) {\n\t\t\t\tstartCol=selectedColumns[0];\n\t\t\t}\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString trstring= (String)(system.getContents(this).getTransferData(DataFlavor.stringFlavor));\n\t\t\t\tif (logger.isDebugEnabled()) {\n\t\t\t\t\tlogger.debug(\"String is:\"+trstring);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString[] s;\n\t\t\t\tString[] rows = trstring.split(\"\\n\", -1);\n\t\t\t\tPattern p = Pattern.compile(\"\\t\");\n\t\t\t\tfor (int i = 0; i < rows.length; i++) {\n\t\t\t\t\tif (rows[i].length() == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\ts = p.split(rows[i]);\n\t\t\t\t\tfor (int j = 0; j < s.length ; j++) {\n\t\t\t\t\t\tjTable1.setValueAt(s[j], startRow + i, startCol + j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch(Exception ex){\n\t\t\t\tlogger.error(\"Error pasting data\", ex);\n\t\t\t}\n\t\t}\n\t}",
"public void lostOwnership( Clipboard aClipboard, Transferable aContents) {\n //do nothing\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText4 = copyTxt4.getText().toString();\n if (CopyText4.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText4);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Text Kosong, Tidak ada apapun yang ter-Copy\", Toast.LENGTH_SHORT).show();\n }\n }",
"@FXML\n private void copyDelete() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(DELETE_MESSAGE);\n clipboard.setContent(url);\n }",
"public static String getClipboardString() {\n Transferable t = Toolkit.getDefaultToolkit().getSystemClipboard().\n getContents(null); \n try {\n if (t != null && t.isDataFlavorSupported(DataFlavor.stringFlavor)) {\n String text = (String)t.getTransferData(DataFlavor.stringFlavor);\n return text;\n }\n } catch (UnsupportedFlavorException e) {\n } catch (IOException e) {\n }\n return null;\n }",
"public void doHandlepaste ( RunData data)\n\t{\n\t\tParameterParser params = data.getParameters ();\n\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\t// get the cut items to be pasted\n\t\tVector pasteCutItems = (Vector) state.getAttribute (STATE_CUT_IDS);\n\n\t\t// get the copied items to be pasted\n\t\tVector pasteCopiedItems = (Vector) state.getAttribute (STATE_COPIED_IDS);\n\n\t\tString collectionId = params.getString (\"collectionId\");\n\t\tString originalDisplayName = NULL_STRING;\n\n\t\t// handle cut and paste\n\t\tif (((String) state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t{\n\t\t\tfor (int i = 0; i < pasteCutItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteCutItem = (String) pasteCutItems.get (i);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteCutItem);\n\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t/*\n\t\t\t\t\tif (Boolean.TRUE.toString().equals(properties.getProperty (ResourceProperties.PROP_IS_COLLECTION)))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t*/\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteCutItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteCutItem);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(p.getProperty(ResourceProperties.PROP_DISPLAY_NAME));\n\n\t\t\t\t\t\t// cut-paste to the same collection?\n\t\t\t\t\t\tboolean cutPasteSameCollection = false;\n\t\t\t\t\t\tString displayName = p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\n\t\t\t\t\t\t// till paste successfully or it fails\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif (!properties.isLiveProperty (propertyName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)&&(displayName.length ()>0))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, displayName);\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{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\n\t\t\t\t\t\t\t\t}\t// if-else\n\t\t\t\t\t\t\t}\t// if\n\t\t\t\t\t\t}\t// while\n\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// paste the cutted resource to the new collection - no notification\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, resource.getContentType (), resource.getContent (), resourceProperties, resource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t\tString uuid = ContentHostingService.getUuid(resource.getId());\n\t\t\t\t\t\t\tContentHostingService.setUuid(id, uuid);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// this represents temporary unavailability of server's filesystem\n\t\t\t\t\t\t\t// for server configured to save resource body in filesystem\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// cut and paste to the same collection; stop adding new resource\n\t\t\t\t\t\t\tif (id.equals(currentPasteCutItem))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcutPasteSameCollection = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t// pasted to the same folder as before; add \"Copy of \"/ \"copy (n) of\" to the id\n\t\t\t\t\t\t\t\tif (countNumber==1)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tdisplayName = DUPLICATE_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\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{\n\t\t\t\t\t\t\t\t\tdisplayName = \"Copy (\" + countNumber + \") of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tcountNumber++;\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// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (!cutPasteSameCollection)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// remove the cutted resource\n\t\t\t\t\t\t\tContentHostingService.removeResource (currentPasteCutItem);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t// }\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (InUseException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"someone\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis7\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t{\n\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t}\n\n\t\t\t}\t// for\n\t\t}\t// cut\n\n\t\t// handling copy and paste\n\t\tif (Boolean.toString(true).equalsIgnoreCase((String) state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tfor (int i = 0; i < pasteCopiedItems.size (); i++)\n\t\t\t{\n\t\t\t\tString currentPasteCopiedItem = (String) pasteCopiedItems.get (i);\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tResourceProperties properties = ContentHostingService.getProperties (currentPasteCopiedItem);\n\t\t\t\t\toriginalDisplayName = properties.getPropertyFormatted (ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t// copy, cut and paste not operated on collections\n\t\t\t\t\tif (properties.getProperty (ResourceProperties.PROP_IS_COLLECTION).equals (Boolean.TRUE.toString()))\n\t\t\t\t\t{\n\t\t\t\t\t\tString alert = (String) state.getAttribute(STATE_MESSAGE);\n\t\t\t\t\t\tif (alert == null || ((alert != null) && (alert.indexOf(RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING) == -1)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, RESOURCE_INVALID_OPERATION_ON_COLLECTION_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t// paste the resource\n\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource (currentPasteCopiedItem);\n\t\t\t\t\t\tResourceProperties p = ContentHostingService.getProperties(currentPasteCopiedItem);\n\t\t\t\t\t\tString displayName = DUPLICATE_STRING + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\tString id = collectionId + Validator.escapeResourceName(displayName);\n\n\t\t\t\t\t\tResourcePropertiesEdit resourceProperties = ContentHostingService.newResourceProperties ();\n\n\t\t\t\t\t\t// add the properties of the pasted item\n\t\t\t\t\t\tIterator propertyNames = properties.getPropertyNames ();\n\t\t\t\t\t\twhile ( propertyNames.hasNext ())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString propertyName = (String) propertyNames.next ();\n\t\t\t\t\t\t\tif (!properties.isLiveProperty (propertyName))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (propertyName.equals (ResourceProperties.PROP_DISPLAY_NAME)&&(displayName.length ()>0))\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, displayName);\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{\n\t\t\t\t\t\t\t\t\tresourceProperties.addProperty (propertyName, properties.getProperty (propertyName));\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\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// paste the copied resource to the new collection\n\t\t\t\t\t\t\tContentResource newResource = ContentHostingService.addResource (id, resource.getContentType (), resource.getContent (), resourceProperties, resource.getGroups(), NotificationService.NOTI_NONE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InconsistentException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,RESOURCE_INVALID_TITLE_STRING);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdInvalidException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state,rb.getString(\"title\") + \" \" + e.getMessage ());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (OverQuotaException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"overquota\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServerOverloadException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (IdUsedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"notaddreso\") + \" \" + id + rb.getString(\"used2\"));\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t// copying\n\t\t\t\t\t\t\t// pasted to the same folder as before; add \"Copy of \" to the id\n\t\t\t\t\t\t\tif (countNumber > 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName = \"Copy (\" + countNumber + \") of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (countNumber == 1)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdisplayName = \"Copy of \" + p.getProperty(ResourceProperties.PROP_DISPLAY_NAME);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tid = collectionId + Validator.escapeResourceName(displayName);\n\t\t\t\t\t\t\tcountNumber++;\n\t\t\t\t\t\t\t*/\n\t\t\t\t\t\t}\t// try-catch\n\t\t\t\t\t\tcatch(RuntimeException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlogger.debug(\"ResourcesAction.doHandlepaste ***** Unknown Exception ***** \" + e.getMessage());\n\t\t\t\t\t\t\taddAlert(state, rb.getString(\"failed\"));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\t// if-else\n\t\t\t\t}\n\t\t\t\tcatch (PermissionException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"notpermis8\") + \" \" + originalDisplayName + \". \");\n\t\t\t\t}\n\t\t\t\tcatch (IdUnusedException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state,RESOURCE_NOT_EXIST_STRING);\n\t\t\t\t}\n\t\t\t\tcatch (TypeException e)\n\t\t\t\t{\n\t\t\t\t\taddAlert(state, rb.getString(\"pasteitem\") + \" \" + originalDisplayName + \" \" + rb.getString(\"mismatch\"));\n\t\t\t\t}\t// try-catch\n\n\t\t\t}\t// for\n\t\t}\t// copy\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\t// delete sucessful\n\t\t\tstate.setAttribute (STATE_MODE, MODE_LIST);\n\n\t\t\t// reset the cut flag\n\t\t\tif (((String)state.getAttribute (STATE_CUT_FLAG)).equals (Boolean.TRUE.toString()))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_CUT_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// reset the copy flag\n\t\t\tif (Boolean.toString(true).equalsIgnoreCase((String)state.getAttribute (STATE_COPY_FLAG)))\n\t\t\t{\n\t\t\t\tstate.setAttribute (STATE_COPY_FLAG, Boolean.FALSE.toString());\n\t\t\t}\n\n\t\t\t// try to expand the collection\n\t\t\tSortedSet expandedCollections = (SortedSet) state.getAttribute(STATE_EXPANDED_COLLECTIONS);\n\t\t\tif(expandedCollections == null)\n\t\t\t{\n\t\t\t\texpandedCollections = new TreeSet();\n\t\t\t}\n\t\t\tif(! expandedCollections.contains(collectionId))\n\t\t\t{\n\t\t\t\texpandedCollections.add(collectionId);\n\t\t\t}\n\t\t\tstate.setAttribute(STATE_EXPANDED_COLLECTIONS, expandedCollections);\n\t\t}\n\n\t}",
"@SuppressLint({\"NewApi\"})\n private void copyHintToClipboard(String str, String str2) {\n if (Build.VERSION.SDK_INT >= 11) {\n ((ClipboardManager) this.cordova.getActivity().getSystemService(\"clipboard\")).setPrimaryClip(ClipData.newPlainText(str2, str));\n }\n }",
"protected boolean activatePasteMetadata()\r\n {\r\n if (!hasViewMask(VIEW_MASK_ENABLE_PASTE_METADATA))\r\n {\r\n return false;\r\n }\r\n\r\n OwClipboard clipboard = ((OwMainAppContext) getContext()).getClipboard();\r\n switch (clipboard.getContentType())\r\n {\r\n case OwClipboard.CONTENT_TYPE_OW_OBJECT:\r\n return clipboard.getContent().size() == 1;\r\n\r\n case OwClipboard.CONTENT_TYPE_OW_FIELD:\r\n return clipboard.getContent().size() > 0;\r\n\r\n default:\r\n return false;\r\n }\r\n\r\n }",
"public void lostOwnership (Clipboard clipboard, Transferable contents)\n {\n _paste.setEnabled(false);\n _clipclass = null;\n }",
"private void handleCopyingTextToClipboard(String text){\n Intent intent = new Intent(getContext(), ClipboardEventHandler.class);\n intent.putExtra(\"action\", \"switch\");\n intent.putExtra(\"content\", text);\n\n getContext().startService(intent);\n\n Snackbar.make(getView(), getString(R.string.COPIED_BEGINNIG) + \" \" +\"\\\"\"+ text +\"\\\"\" + \" \" + getString(R.string.COPIED_END), Snackbar.LENGTH_SHORT).show();\n }",
"public void showCopyMenu() {\n new AlertDialog.Builder(getContext()).setItems(\n R.array.copypaste_menu_items,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n String intentStr = null;\n switch (which) {\n case 0:\n ClipboardManager clip = (ClipboardManager) getContext()\n .getSystemService(\n Context.CLIPBOARD_SERVICE);\n if (clip != null) {\n clip.setText(mSelectedText);\n Toast.makeText(getContext(),\n R.string.text_copied,\n Toast.LENGTH_SHORT).show();\n }\n break;\n case 1:\n try {\n Uri uri = Uri.parse(\"sms:\");\n Intent intent = new Intent(\n Intent.ACTION_SENDTO, uri);\n intent.putExtra(\"sms_body\", mSelectedText);\n intent.putExtra(\"exit_on_send\", true);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 2:\n try {\n Intent intent = new Intent();\n intent.setAction(\"com.motorola.createnote\");\n intent.putExtra(\"CLIPBOARD\", mSelectedText);\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n case 3:\n try {\n String broadcastAddress = String.format(\n \"%s://%s/%s\", \"searchWord\",\n \"powerword\", mSelectedText);\n Intent intent = new Intent(\n Intent.ACTION_VIEW, Uri\n .parse(broadcastAddress));\n getContext().startActivity(intent);\n } catch (ActivityNotFoundException e) {\n e.printStackTrace();\n }\n break;\n default:\n break;\n }\n\n clearSelection(true);\n\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n public void onCancel(DialogInterface dialog) {\n clearSelection(true);\n }\n }).show();\n }",
"public void onPagesCropped() {\n/* 560 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ try {\n/* 565 */ JSONObject jsonObj = new JSONObject();\n/* 566 */ if (this.mContext != null) {\n/* 567 */ String strCropPages = this.mContext.getResources().getString(R.string.pref_viewmode_user_crop);\n/* 568 */ jsonObj.put(\"Action\", strCropPages);\n/* */ } \n/* 570 */ jsonObj.put(\"Action event\", \"crop_pages\");\n/* */ \n/* 572 */ if (Utils.isNullOrEmpty(jsonObj.toString())) {\n/* 573 */ AnalyticsHandlerAdapter.getInstance().sendException(new Exception(\"takeUndoSnapshot with an empty string\"));\n/* */ }\n/* */ \n/* 576 */ takeUndoSnapshot(jsonObj.toString());\n/* 577 */ if (sDebug)\n/* 578 */ Log.d(TAG, \"snapshot: \" + jsonObj.toString()); \n/* 579 */ } catch (Exception e) {\n/* 580 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }",
"private void directToClipboard(String text) {\n\t\tthis.systemClipboard.setContents(new StringSelection(text), null);\n\t}",
"@Override\r\npublic int getNumcopy() {\n\treturn super.getNumcopy();\r\n}",
"@Override\n public void actionPerformed(ActionEvent e) {\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n //cb.setContents(new CellTransferable(component.getValueAt(row, col)), null);\n //Transferable transferable = new StringSelection((String)table.getValueAt(row, col));\n //cb.setContents(transferable,null);\n \n \n int [] rows = table.getSelectedRows();\n int [] columns = table.getSelectedColumns();\n \n \n StringBuffer selection = new StringBuffer();\n for (int r: rows)\n {\n \tfor (int c: columns)\n \t{\n \t\t\tselection.append((String)table.getValueAt(r, c)); \n \t\t\tselection.append(\";\");\n \t}\n\t\t\tselection.append(\"\\n\");\n\n }\n Transferable transferable = new StringSelection(selection.toString());\n cb.setContents(transferable,null);\n \n }",
"String getPreviewSizePref();",
"int getCurrentSize();",
"@FXML\n private void copyAdd() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(ADD_MESSAGE);\n clipboard.setContent(url);\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n public void onClick(View arg0) {\n CopyText3 = copyTxt3.getText().toString();\n if (CopyText3.length() != 0) {\n if (sdk < android.os.Build.VERSION_CODES.HONEYCOMB) {\n android.text.ClipboardManager clipboard = (android.text.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n clipboard.setText(CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n } else {\n android.content.ClipboardManager clipboard = (android.content.ClipboardManager) getSystemService(Context.CLIPBOARD_SERVICE);\n android.content.ClipData clip = android.content.ClipData.newPlainText(\"Clip\", CopyText3);\n Toast.makeText(getApplicationContext(), \"Text Telah Ter-Copy ke Clipboard\", Toast.LENGTH_SHORT).show();\n clipboard.setPrimaryClip(clip);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Nothing to Copy\", Toast.LENGTH_SHORT).show();\n }\n }",
"private void pasteMetaDataFromClipboardObject(OwField prop_p) throws Exception\r\n {//TODO implement paste MetaData from Clipboard Field to field\r\n if (prop_p != null)\r\n {\r\n OwClipboard clipboard = getClipboard();\r\n OwObject clipboardObject = ((OwClipboardContentOwObject) clipboard.getContent().get(0)).getObject();\r\n try\r\n {\r\n OwField clipboardfield = clipboardObject.getProperty(prop_p.getFieldDefinition().getClassName());\r\n\r\n // filter only writable user fields\r\n if (isfieldPasteable(prop_p, clipboardObject))\r\n {\r\n prop_p.setValue(clipboardfield.getValue());\r\n }\r\n }\r\n catch (OwObjectNotFoundException e)\r\n {\r\n // ignore\r\n }\r\n }\r\n }",
"public void onPasteAllMetaData(HttpServletRequest request_p) throws Exception\r\n {\r\n OwClipboard clipboard = getClipboard();\r\n switch (clipboard.getContentType())\r\n {\r\n case OwClipboard.CONTENT_TYPE_OW_OBJECT:\r\n {// === paste the metadata from Clipboard Object\r\n Iterator it = m_fields.values().iterator();\r\n while (it.hasNext())\r\n {\r\n OwField prop = (OwField) it.next();\r\n pasteMetaDataFromClipboardObject(prop);\r\n }\r\n }\r\n break;\r\n case OwClipboard.CONTENT_TYPE_OW_FIELD:\r\n {// === paste the metadata from Clipboard Fields\r\n Iterator it = m_fields.values().iterator();\r\n while (it.hasNext())\r\n {\r\n OwField prop = (OwField) it.next();\r\n pasteMetaDataFromClipboardField(prop);\r\n }\r\n }\r\n break;\r\n default://do nothing\r\n }\r\n\r\n }",
"private void copyToClipboard(int contentType) {\n\n String clipboardText = null;\n ClipData clip;\n\n switch (contentType) {\n case COPY_STATION_ALL:\n // set clip text\n if (mThisStation.getMetadata() != null) {\n clipboardText = mThisStation.getStationName() + \" - \" + mThisStation.getMetadata() + \" (\" + mThisStation.getStreamUri().toString() + \")\";\n } else {\n clipboardText = mThisStation.getStationName() + \" (\" + mThisStation.getStreamUri().toString() + \")\";\n }\n // notify user\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_station_copied), Toast.LENGTH_SHORT).show();\n break;\n\n case COPY_STATION_METADATA:\n // set clip text and notify user\n if (mThisStation.getMetadata() != null) {\n clipboardText = mThisStation.getMetadata();\n }\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_copied_to_clipboard_metadata), Toast.LENGTH_SHORT).show();\n break;\n\n case COPY_STREAM_URL:\n // set clip text and notify user\n if (mThisStation.getStreamUri() != null) {\n clipboardText = mThisStation.getStreamUri().toString();\n }\n Toast.makeText(mActivity, mActivity.getString(R.string.toastmessage_copied_to_clipboard_url), Toast.LENGTH_SHORT).show();\n break;\n\n }\n\n // create clip and to clipboard\n if (clipboardText != null) {\n clip = ClipData.newPlainText(\"simple text\", clipboardText);\n ClipboardManager cm = (ClipboardManager) mActivity.getSystemService(Context.CLIPBOARD_SERVICE);\n cm.setPrimaryClip(clip);\n }\n\n }",
"@Override\n public void handle(DragEvent event) {\n Dragboard db = event.getDragboard();\n\n if (event.getGestureSource() != skin.getScrollPane() && db.hasString()) {\n event.acceptTransferModes(TransferMode.COPY);\n }\n event.consume();\n }",
"void onBottomQDMPasteClicked();",
"public int getSelectionSize();",
"public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }",
"void copyTextToTextBox(String text,boolean isMaxSet);",
"public static String getText() {\n Transferable data = Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);\n try {\n return (String)data.getTransferData(DataFlavor.stringFlavor);\n }\n catch (Exception ignore) {\n return null;\n }\n }",
"private void detectExcessSize() {\n final String overflow = getElement().getStyle().getProperty(\n \"overflow\");\n getElement().getStyle().setProperty(\"overflow\", \"hidden\");\n if (BrowserInfo.get().isIE()\n && getElement().getPropertyInt(\"clientWidth\") == 0) {\n // can't detect possibly themed border/padding width in some\n // situations (with some layout configurations), use empty div\n // to measure width properly\n DivElement div = Document.get().createDivElement();\n div.setInnerHTML(\" \");\n div.getStyle().setProperty(\"overflow\", \"hidden\");\n div.getStyle().setProperty(\"height\", \"1px\");\n getElement().appendChild(div);\n excessWidth = getElement().getOffsetWidth()\n - div.getOffsetWidth();\n getElement().removeChild(div);\n } else {\n excessWidth = getElement().getOffsetWidth()\n - getElement().getPropertyInt(\"clientWidth\");\n }\n excessHeight = getElement().getOffsetHeight()\n - getElement().getPropertyInt(\"clientHeight\");\n \n getElement().getStyle().setProperty(\"overflow\", overflow);\n }",
"private void handleDragDetectedEvent(Event event) {\n String id = DragAndDropDataManager.getInstance().putData(source.getTransferData());\n \n Dragboard db = source.getDragSource().startDragAndDrop(TransferMode.COPY); \n ClipboardContent content = new ClipboardContent();\n content.putString(id);\n db.setContent(content);\n \n source.handleDragDetectedEvent((MouseEvent) event);\n \n event.consume();\n }",
"public boolean hasClip() {\n return (mClipboardManager.getTextFromClipboard() != null);\n }"
] | [
"0.6595808",
"0.63067967",
"0.62678397",
"0.6187287",
"0.6152514",
"0.6107083",
"0.6106957",
"0.6106957",
"0.6082999",
"0.5987866",
"0.5903508",
"0.5863744",
"0.57915616",
"0.57882506",
"0.5768154",
"0.57557213",
"0.57321864",
"0.57240736",
"0.5710386",
"0.5693492",
"0.5691948",
"0.5690657",
"0.56819105",
"0.56674343",
"0.5663434",
"0.564647",
"0.5641593",
"0.5619793",
"0.5611505",
"0.5602837",
"0.5601998",
"0.55965066",
"0.55726224",
"0.5542499",
"0.5538957",
"0.5526849",
"0.5494572",
"0.5472279",
"0.5462692",
"0.5460256",
"0.5456724",
"0.5450924",
"0.54402804",
"0.5437582",
"0.54258084",
"0.54221684",
"0.5414554",
"0.5397509",
"0.53939563",
"0.5392972",
"0.538829",
"0.53855145",
"0.538417",
"0.5341857",
"0.5320572",
"0.5311285",
"0.53097135",
"0.5301148",
"0.52980214",
"0.5295",
"0.5291405",
"0.5253526",
"0.5252819",
"0.5242919",
"0.52373767",
"0.5227665",
"0.52243257",
"0.5219016",
"0.5209515",
"0.5203262",
"0.51966834",
"0.51909006",
"0.5187466",
"0.51772577",
"0.516369",
"0.5157453",
"0.5150623",
"0.51364464",
"0.5109526",
"0.5109421",
"0.51079845",
"0.5093455",
"0.50735086",
"0.50723433",
"0.50711465",
"0.50653523",
"0.50621444",
"0.5059229",
"0.5055127",
"0.5049665",
"0.5030062",
"0.5027245",
"0.502525",
"0.4989172",
"0.4977119",
"0.49512008",
"0.4950511",
"0.49260035",
"0.4914219",
"0.49047166",
"0.4892029"
] | 0.0 | -1 |
String formatted = groupName.toLowerCase().replace(" ", "_"); | private String formatGroupName (String groupName) {
return groupName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String formatSpaces(String s) {\n \tString temp = s;\n \tif(s.contains(\"underscores\")) temp = s.replace(\" \", \"_\");\n return temp;\n }",
"public String getGroupName(){\r\n return Validator.unescapeJava(this.groupName);\r\n }",
"public static String formatTitle(String title)\n {\n char[] temp = title.trim().toCharArray();\n int count = 0;\n for (char c : temp) {\n if (c == ' ') {\n temp[count] = '_';\n } else if (c == '_') {\n temp[count] = ' ';\n }\n count++;\n }\n \n return String.valueOf(temp);\n \n }",
"public static String underscoreName(String name) {\n\t\treturn name.substring(0, 1).toLowerCase() + name.substring(1).replaceAll(\"([A-Z])\", \"_$1\").toLowerCase();\n\t}",
"public static String formatSpaces(String s) {\n\t\tif(s.contains(\"underscores\"))\n\t\treturn s.replaceAll(\" \", \"_\");\n\t\t\n\t\treturn s;\n\t}",
"private String putUnderscore(String concept) {\n\t\tStringBuffer newConcept = new StringBuffer(\"\");\n\t\t// concept = concept.replace(\" \", \"_\");\n\t\tStringTokenizer token = new StringTokenizer(concept, \" \");\n\t\tboolean firstTest = true;\n\t\twhile (token.hasMoreTokens()) {\n\t\t\tif (!firstTest) {\n\t\t\t\tnewConcept.append(\"_\");\n\t\t\t}\n\t\t\tfirstTest = false;\n\t\t\tString str = (String) token.nextElement();\n\t\t\tnewConcept.append(str);\n\t\t}\n\n\t\tconcept = newConcept.toString();\n\n\t\treturn concept;\n\n\t}",
"String normalizeName(String tag) {\n\t\tStringBuffer buf = new StringBuffer();\n\t\t\n\t\tboolean newWord = true;\n\t\t// capitalize first letter of each word\n\t\t// remove -'s and _'s\n\t\tfor (int i = 0; i < tag.length(); i++) {\n\t\t\tchar c = tag.charAt(i);\n\t\t\tif (c == '-' || c == '_') {\n\t\t\t\tnewWord=true;\n\t\t\t} else if (newWord) {\n\t\t\t\tbuf.append(Character.toUpperCase(c));\n\t\t\t\tnewWord = false;\n\t\t\t} else {\n\t\t\t\tbuf.append(c);\n\t\t\t\tnewWord = false;\n\t\t\t}\n\t\t}\n\t\treturn buf.toString().trim();\n\t}",
"private String replaceSpaces(String value) {\r\n\t\treturn value.replace(\" \", \"_\");\r\n\t}",
"private String toCamelCaseUnderscore(String concept) {\n\t\tStringBuffer newConcept = new StringBuffer(\"\");\n\t\t// concept = concept.replace(\" \", \"_\");\n\t\tStringTokenizer token = new StringTokenizer(concept, \" \");\n\t\tboolean firstTest = true;\n\t\twhile (token.hasMoreTokens()) {\n\t\t\tif (!firstTest) {\n\t\t\t\tnewConcept.append(\"_\");\n\t\t\t}\n\t\t\tfirstTest = false;\n\t\t\tString str = (String) token.nextElement();\n\t\t\tstr = str.substring(0, 1).toUpperCase()\n\t\t\t\t\t+ str.substring(1).toLowerCase();\n\t\t\tnewConcept.append(str);\n\t\t}\n\n\t\tconcept = newConcept.toString();\n\n\t\treturn concept;\n\t}",
"static private String formats(String target)\n\t{\n\t\tString tmp = target.trim();\n\t\tif (tmp.length() < 1) return \"NaName\";\n\t\treturn (Character.toString(tmp.charAt(0)).toUpperCase()) + tmp.substring(1,tmp.length()).toLowerCase();\n\t}",
"public String getName(){\n \treturn this.name().replace(\"_\", \" \");\n }",
"public static String formatCategoryField(String category) {\n return category.toLowerCase().replaceAll(\" \", \"-\");\n }",
"@Override\n public String toString() {\n String name = this.name().substring(0,1);\n if (this.name().length() > 1) {\n for (int i = 1; i < this.name().length(); i++) {\n String charAt = this.name().substring(i, i + 1);\n if (charAt.equals(\"_\"))\n charAt = \" \";\n name += charAt.toLowerCase();\n }\n }\n return name;\n }",
"public static String formatSpaces(String s) {\n\t\t\n\t\tif(s.contains(\"underscores\")==true) {\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tif(s.charAt(i)==' ') {\n\t\t\t\t\tString t1=s.substring(0, i);\n\t\t\t\t\tString t2=s.substring(i+1, s.length());\n\t\t\ts=t1+\"_\"+t2;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\treturn s;\n\t}",
"private String getFormattedName(String bossName) {\r\n\t\tString[] startingLetters = { \"corporeal\", \"king black\", \"nomad\", \"tormented\", \"avatar\" };\r\n\t\tfor(int i = 0; i < startingLetters.length; i++)\r\n\t\t\tif(bossName.toLowerCase().contains(startingLetters[i].toLowerCase()))\r\n\t\t\t\treturn \"the \"+bossName;\r\n\t\treturn bossName;\r\n\t}",
"private static String extractGroupName(FloodyGroup floodyGroup) {\n return isBlank(floodyGroup.name())\n ? (\"FloodyGroup-\"\n +\n // append random long number to ensure unique group name\n new Random().nextLong())\n : floodyGroup.name();\n }",
"public static String formatEnumName(String name) {\n String[] words = name.replace('_', ' ').split(\"\\\\s\");\n StringBuilder formatted = new StringBuilder(name.length());\n for (String word : words) {\n formatted.append(word.substring(0, 1).toUpperCase());\n formatted.append(word.substring(1).toLowerCase());\n formatted.append(' ');\n }\n return formatted.toString().trim();\n }",
"private String formatName(String name) {\n Character firstCharacter = name.charAt(0);\n firstCharacter = Character.toUpperCase(firstCharacter);\n\n final String remainingCharacters = name.substring(1);\n\n return String.valueOf(firstCharacter) + remainingCharacters;\n }",
"public static String repairName(ITPerson person) {\n String[] toRepairName = person.getName().split(\"_\");\n String correctedName = toRepairName[0]+ \" \" + toRepairName[1];\n return correctedName;\n }",
"public static String formatText(String t) {\r\n if (t.length() > 0) {\r\n char chars[] = t.toCharArray();\r\n for (int index = 0; index < chars.length; index++)\r\n if (chars[index] == '_') {\r\n chars[index] = ' ';\r\n if (index + 1 < chars.length && chars[index + 1] >= 'a' && chars[index + 1] <= 'z')\r\n chars[index + 1] = (char) ((chars[index + 1] + 65) - 97);\r\n }\r\n\r\n if (chars[0] >= 'a' && chars[0] <= 'z')\r\n chars[0] = (char) ((chars[0] + 65) - 97);\r\n return new String(chars);\r\n } else {\r\n return t;\r\n }\r\n }",
"private String parseGroupNameD2K(String line) {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tString[] tokens = line.split(\"\\\\s+\");\n\t\tsb.append(tokens[0] + \".\");\n\t\tsb.append(tokens[1].replace(';', '_'));\n\t\ttry{\n\t\t\tsb.append(tokens[4].replace('#', '.'));\n\t\t} catch (ArrayIndexOutOfBoundsException e){\n\t\t\t// do nothing\n\t\t}\n\t\treturn sb.toString();\n\t}",
"private String upFirstLetter(){\n\t\tString firstLetter = nameField.substring(0,1);\n\t\tfirstLetter = firstLetter.toUpperCase();\n\t\treturn firstLetter + nameField.substring(1,nameField.length());\n\t}",
"private String shortPrefix(String name) {\r\n StringBuilder b = new StringBuilder();\r\n String[] splits = name.split(\"_\");\r\n for (int i = 0; i < splits.length; ++i) {\r\n if (splits[i].length() > 0) {\r\n b.append(splits[i].charAt(0));\r\n }\r\n }\r\n if (b.length() < 3) {\r\n b.append(Integer.toString(name.length() % 10));\r\n }\r\n return b.toString().toLowerCase();\r\n }",
"private static String buildName(String title)\n {\n // The name is based on the title, but with underscores\n String name = title.replace(' ', '_');\n name = name.replaceAll(\"\\\"\", \"%22\");\n name = name.replaceAll(\"[*]\", \"%2a\");\n name = name.replaceAll(\"<\", \"%3c\");\n name = name.replaceAll(\">\", \"%3e\");\n name = name.replaceAll(\":\", \"%3a\");\n name = name.replaceAll(\"([.]?[.]+$)\", \"%2e\");\n return name;\n }",
"public String addSpaces(String string) {\n string = string.replaceAll(\"_\", \" \");\n return string;\n }",
"private static String capName(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); }",
"public static String describe(String fieldName)\r\n {\r\n StringBuffer buf = new StringBuffer();\r\n boolean uppercase = false;\r\n for (int i = 0; i < fieldName.length(); i++)\r\n {\r\n char c = fieldName.charAt(i);\r\n if (Character.isUpperCase(c))\r\n {\r\n if (!uppercase)\r\n buf.append(' ');\r\n buf.append(Character.toLowerCase(c));\r\n uppercase = true;\r\n }\r\n else if (c == '_')\r\n {\r\n buf.append(' ');\r\n uppercase = false;\r\n }\r\n else\r\n {\r\n buf.append(c);\r\n uppercase = false;\r\n }\r\n }\r\n return buf.toString();\r\n }",
"static String normalizedNameOf(SdkField<?> field) {\n String name = field.memberName();\n return name.length() > 1 && Ascii.isLowerCase(name.charAt(1))\n ? Ascii.toLowerCase(name.charAt(0)) + name.substring(1)\n : name.toLowerCase(Locale.ROOT);\n }",
"public String formatName(String name) {\n return name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase();\n }",
"void setGroupName(String groupName) {\n this.groupName = new String(groupName);\n }",
"private static String sanitizePackageName(String group) {\n return group.replaceAll(\"-\", \"\");\n }",
"private String getAPNameString(List<AirplaneModel> association,\r\n\t\t\tViewAirplaneModel type, StringBuilder grp) {\r\n\t\tfor(AirplaneModel model:association){\r\n\t\t\tif(type.getAirplaneModelTypeID()==model.getAirplaneModelTypeID().getAirplaneModelTypeID().longValue()){\r\n\t\t\t\tgrp.append(model.getGroupID().getGroupOwner().trim()).append(NEWLINE);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString str=grp.toString();\r\n\t\tif(str.endsWith(NEWLINE)){\r\n\t\t\tstr=str.substring(0, str.length()-1);\r\n\t\t}\r\n\t\tString st[] = new String[WsrdConstants.HUNDRED];\r\n\t\tst= str.split(NEWLINE);\r\n\t\tArrays.sort(st);\r\n\t\r\n\t\tStringBuilder st1= new StringBuilder();\r\n\t\tfor(int j=0;j<=st.length-1;j++){\r\n\t\t\tst1.append(st[j]);\r\n\t\t\tst1.append(NEWLINE);\r\n\t\t}\r\n\t\treturn st1.toString();\r\n\t}",
"private static String removeCoherentUnderscores(final String testName) {\n final String validATXName = testName.replace(\"__\", \"_\");\n if (validATXName.equals(testName)) {\n return validATXName;\n } else {\n return removeCoherentUnderscores(validATXName);\n }\n }",
"private static String toPropertyName(String str) {\n return str.toLowerCase().trim().replaceAll(\" +\", \"_\");\n }",
"private String escape(String name) {\n return name.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n }",
"java.lang.String getGroup();",
"protected String getMetricName(MetricName metricName) {\n return format(\"%s.%s\", metricName.group(), metricName.name());\n }",
"public String toString() {return name().charAt(0) + name().substring(1).toLowerCase();}",
"public static String getValidName(String name) {\n return name.toLowerCase(Locale.getDefault()).replace(\"_\", \"-\").replace(\".\", \"-\");\n }",
"private String preprocessName(String original){\n\t\t// Remove non-alphabetical characters from the name\n\t\toriginal = original.replaceAll( \"[^A-Za-z]\", \"\" );\n\t\t\t\t\n\t\t// Convert to uppercase to help us ignore case-sensitivity\n\t\toriginal = original.toUpperCase();\n\t\t\n\t\t// Remove all occurences of the letters outlined in step 3\n\t\toriginal = original.substring(0,1) + original.substring(1).replaceAll(\"[AEIHOUWY]\",\"\");\n\t\t\n\t\t// Return the result\n\t\treturn original;\n\t}",
"private static String zzty(String string2) {\n StringBuffer stringBuffer = new StringBuffer();\n int n = 0;\n while (n < string2.length()) {\n char c = string2.charAt(n);\n if (n == 0) {\n stringBuffer.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n stringBuffer.append('_').append(Character.toLowerCase(c));\n } else {\n stringBuffer.append(c);\n }\n ++n;\n }\n return stringBuffer.toString();\n }",
"private String formatPropertyName(String property) {\r\n property = property.replace( '/', '.' );\r\n property = property.replace( '@', '.' );\r\n return StringExtend.validateString( property, \".\" );\r\n }",
"private String formatTitle(String source) {\r\n if (source.equalsIgnoreCase(\"Robles Ms Et Al. Plos Genet. (2014)\")) {\r\n return \"Robles MS et al. PloS Genet.(2014)\";\r\n }\r\n\r\n StringBuilder res = new StringBuilder();\r\n source = source.toLowerCase();\r\n String[] strArr = source.split(\" \");\r\n for (String str : strArr) {\r\n char[] stringArray = str.trim().toCharArray();\r\n stringArray[0] = Character.toUpperCase(stringArray[0]);\r\n str = new String(stringArray);\r\n res.append(str).append(\" \");\r\n }\r\n return res.toString().trim();\r\n }",
"protected static String sanitise(final String name) {\n // Replace illegal chars with\n return name.replaceAll(\"[^\\\\w\\\\.\\\\s\\\\-#&_]\", \"_\");\n }",
"@Override\n public String toString() {\n return super.toString().replaceAll(\"_\", \" \");\n }",
"@Override\n public String toString() {\n return super.toString().replaceAll(\"_\", \" \");\n }",
"public static String prettifyText(String ugly) {\n\t\tString[] nameParts = ugly.split(\"_\");\n\t\tif (nameParts.length==1) {\n\t\t\treturn firstUppercase(ugly);\n\t\t}\n\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor (String part : nameParts) {\n\t\t\tsb.append(firstUppercase(part)+\" \");\n\t\t}\n\n\t\treturn sb.toString();\n\t}",
"public String getGroupName() {\n return groupName;\n }",
"public static String toUnderscoreSeparated(final String javaName) {\n requireNonNull(javaName);\n final StringBuilder result = new StringBuilder();\n final String input = unQuote(javaName.trim());\n for (int i = 0; i < input.length(); i++) {\n final char c = input.charAt(i);\n if (result.length() == 0) {\n result.append(Character.toLowerCase(c));\n } else if (Character.isUpperCase(c)) {\n result.append(\"_\").append(Character.toLowerCase(c));\n } else {\n result.append(c);\n }\n }\n return result.toString();\n }",
"public String getGroupName()\n {\n return groupName;\n }",
"public static String replaceSpaceKey(String groupPattern, String spaceKey) {\n if ((groupPattern != null) && (groupPattern.indexOf(CustomPermissionConstants.SPACEKEY) != -1)) {\n //Replace String \"SPACEKEY\" with input Space Key.\n groupPattern = groupPattern.replaceFirst(CustomPermissionConstants.SPACEKEY, spaceKey);\n }\n\n return groupPattern;\n }",
"public String getGroupName() {\n return groupName;\n }",
"public static String makeSystemName(String displayName) {\n\t\treturn displayName.toLowerCase().replaceAll(\"\\\\s+\", \"\");\n\t}",
"@NotNull\n private static String normalize(@NotNull String displayName) {\n int angleIndex = displayName.indexOf('<');\n return angleIndex != -1 ? displayName.substring(0, angleIndex) : displayName;\n }",
"@Override\n public String tagKey(String key) {\n String conventionKey = NamingConvention.snakeCase.tagKey(key);\n\n String sanitized = tagKeyChars.matcher(conventionKey).replaceAll(SEPARATOR);\n if (!Character.isLetter(sanitized.charAt(0))) {\n sanitized = \"m_\" + sanitized;\n }\n return sanitized;\n }",
"private String formatLoggerName(LogRecord record)\n\t{\n\t\tString loggerName = record.getLoggerName();\n\t\tif(loggerName.startsWith(LOG_SOURCE_PREFIX))\n\t\t{\n\t\t\tloggerName = loggerName.substring(LOG_SOURCE_PREFIX.length());\n\t\t}\n\t\treturn loggerName;\n\t}",
"private String format(String text) {\n if(text != null && !text.isEmpty())\n return text.substring(0, 1).toUpperCase(Locale.ENGLISH) + text.substring(1);\n else\n return \"\";\n }",
"private String formatLatex(String text){\r\n\r\n String output=text.replaceAll(\"_\",\"-\");\r\n\r\n return output;\r\n }",
"public static String formatter(String s) {\n return s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n }",
"protected String createRequestGroupName(HttpServletRequest request) {\n String requestUri = createRequestUri(request);\n return requestUri\n .replaceFirst(\"\\\\?.*\", \"\") // Replace query parameters.\n .replaceFirst(\"^/\", \"\") // Replace the initial slash.\n .replaceAll(\"/\", \".\"); // Replace all slashes with dots.\n }",
"@Override\n public String generateLayoutName(String objectName){\n Scanner in = new Scanner(objectName);\n String out = \"\";\n String x = in.next();\n int z = x.length();\n for(int y = 0; y < z; y++){\n if(Character.isUpperCase(x.charAt(y))){\n out = out+\"_\"+(Character.toLowerCase(x.charAt(y)));\n\n }else{\n out = out+x.charAt(y);\n }\n }\n return \"activity\"+out;\n }",
"@DISPID(10)\r\n\t// = 0xa. The runtime will prefer the VTID if present\r\n\t@VTID(16)\r\n\tjava.lang.String groupName();",
"public String getGroupName();",
"public String getGroupName() {\r\n return groupName;\r\n }",
"@Override\n public String getGroupName(int group) {\n assert 0 <= group && group < groupNames.length;\n \n return groupNames[group];\n }",
"private String generateString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length\r\n\t\t\t\t&& (Character.isLetterOrDigit(expression[currentIndex]) || expression[currentIndex] == '_')) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString().toLowerCase();\r\n\t}",
"public static final String javaName(String s) {\n StringBuffer n = new StringBuffer(s);\n for (int i = 0; i < s.length(); ++i) {\n if (i == 0) n.setCharAt(i, Character.toUpperCase(n.charAt(i)));\n if (!Character.isLetterOrDigit(n.charAt(i))) \n\tn.setCharAt(i, '_');\n }\n return n.toString();\n }",
"public String getGroupNamesAsString() {\n return String.format(\"%s\", StringUtils.join(getGroupNames(), \", \"));\n }",
"public String getGroupName() {\n return groupName;\n }",
"public String getGroupName() {\n return groupName;\n }",
"public String propergram(String word){\n // word.toLowerCase();\n String[] tempstr =word.split(\"_\");\n String tempstr2;\n\n for(int i=0;i<tempstr.length;i++){\n if((tempstr[i].charAt(0))>='A'&&(tempstr[i].charAt(0))<='Z') {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0)));\n }\n else {\n tempstr2 = (String.valueOf(tempstr[i].charAt(0))).toUpperCase();\n }\n tempstr[i] = tempstr2.concat(tempstr[i].substring(1));\n if (i != 0) {\n word=word.concat(\" \").concat(tempstr[i]);\n } else {\n word = tempstr[i];\n }\n\n }\n return word;\n\n\n }",
"public static String specifyGroup() {\n return holder.format(\"specifyGroup\");\n }",
"private String centerName(int totalLength) {\n\t\tString name = getHotel().getName().toUpperCase();\n\t\tint spaces = totalLength - name.length();\n\t\tif (!(spaces % 2 == 1)) {\n\t\t\tspaces--;\n\t\t\tname += \" \";\n\t\t}\n\t\tfor (int i = 0; i < spaces / 2; i++) {\n\t\t\tname = \" \" + name + \" \";\n\t\t}\n\t\treturn \" \" + name;\n\t}",
"protected String getGroupNameLabel(){\n\t\treturn Messages.common_measure;\n\t}",
"static String m33125a(String name) {\n StringBuilder fieldNameBuilder = new StringBuilder();\n int index = 0;\n char firstCharacter = name.charAt(0);\n int length = name.length();\n while (index < length - 1 && !Character.isLetter(firstCharacter)) {\n fieldNameBuilder.append(firstCharacter);\n index++;\n firstCharacter = name.charAt(index);\n }\n if (Character.isUpperCase(firstCharacter)) {\n return name;\n }\n fieldNameBuilder.append(m33124a(Character.toUpperCase(firstCharacter), name, index + 1));\n return fieldNameBuilder.toString();\n }",
"static String m33126a(String name, String separator) {\n StringBuilder translation = new StringBuilder();\n int length = name.length();\n for (int i = 0; i < length; i++) {\n char character = name.charAt(i);\n if (Character.isUpperCase(character) && translation.length() != 0) {\n translation.append(separator);\n }\n translation.append(character);\n }\n return translation.toString();\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public static String constructSimpleDisplayName(String name) {\n String displayName = name.replaceAll(\"_\", \" \");\n if (displayName.startsWith(\" \")) {\n displayName = \"_\" + displayName;\n }\n if (displayName.endsWith(\" \")) {\n displayName += \"_\";\n }\n Map<String, Object> displayEntry = new HashMap<>();\n displayEntry.put(\"text\", displayName);\n try {\n return ODKFileUtils.mapper.writeValueAsString(displayEntry);\n } catch (JsonProcessingException e) {\n WebLogger.getContextLogger().printStackTrace(e);\n throw new IllegalStateException(\"constructSimpleDisplayName: \" + displayName);\n }\n }",
"public void setGroupName(String newGroupName)\n {\n this.groupName = newGroupName;\n }",
"private String normalizeSpace(final String arg) {\n return arg.replaceAll(Constants.SPACE_PATTERN, Constants.SPACE);\n }",
"private String convertVariable(final String variable) {\n\t\tchar ch;\n\t\tfinal StringBuilder buffer = new StringBuilder();\n\t\tfor (int i = 0, len = variable.length(); i < len; i++) {\n\t\t\tch = variable.charAt(i);\n\t\t\tif (Character.isUpperCase(ch)) {\n\t\t\t\tbuffer.append('_');\n\t\t\t\tbuffer.append(Character.toLowerCase(ch));\n\t\t\t} else {\n\t\t\t\tbuffer.append(ch);\n\t\t\t}\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"public String buildWord() {\n\t\tStringBuilder word = new StringBuilder();\n\t\t\n\t\tfor(int i = 0; i < letters.size(); i++) {\n\t\t\tLetter tempLetter = letters.get(i);\n\t\t\t\n\t\t\tif(!(letters.get(i).getLetter() >= 'A' && letters.get(i).getLetter() <= 'Z') || tempLetter.getStatus())\n\t\t\t\tif(letters.get(i).getLetter() != ' ')\n\t\t\t\t\tword.append(tempLetter.getLetter());\n\t\t\t\telse\n\t\t\t\t\tword.append(\" \");\n\t\t\telse\n\t\t\t\tif (i == letters.size()-1) word.append(\"_\");\n\t\t\t\telse word.append(\"_ \");\n\t\t}\n\t\treturn word.toString();\n\t}",
"public static final String lowercase(String s) {\n StringBuffer n = new StringBuffer(s);\n for (int i = 0; i < s.length(); ++i) {\n if (!Character.isLetterOrDigit(n.charAt(i))) \n\tn.setCharAt(i, '_');\n else\n\tn.setCharAt(i, Character.toLowerCase(n.charAt(i)));\n }\n return n.toString();\n }",
"static String cutName(String input) { return input.split(\" \")[0]; }",
"public static String getNameFormattedString(String string) {\n if (string != null && string.length() > 0) {\n StringBuilder formatted = new StringBuilder(string.toLowerCase());\n formatted.setCharAt(0, Character.toUpperCase(formatted.charAt(0)));\n return formatted.toString();\n }\n return \"\";\n }",
"public void setGroupname(java.lang.String newGroupname) {\n\tgroupname = newGroupname;\n}",
"public static String toCamelCase(String name)\r\n {\r\n StringBuffer buffer = new StringBuffer();\r\n String[] tokens = name.split(\"_\");\r\n if (tokens != null && tokens.length > 0)\r\n {\r\n for (int ctr = 0; ctr < tokens.length; ctr++)\r\n {\r\n buffer.append(StringUtils.capitalize(tokens[ctr].toLowerCase()));\r\n }\r\n }\r\n else\r\n {\r\n buffer.append(StringUtils.capitalize(name.toLowerCase()));\r\n }\r\n return buffer.toString();\r\n }",
"public String getGroupName() {\n return this.GroupName;\n }",
"public String makeCombinedName() {\n return sortDao.getBoats().stream()\n .map(Boat::toString)\n .sorted()\n .collect(Collectors.joining(\", \"));\n }",
"private String name() {\n\t\tif (currentIndex >= data.length\n\t\t\t\t|| !Character.isLetter(data[currentIndex])) {\n\t\t\tthrow new LexerException();\n\t\t}\n\n\t\tString value = String.valueOf(data[currentIndex++]);\n\t\twhile (currentIndex < data.length\n\t\t\t\t&& (Character.isLetter(data[currentIndex])\n\t\t\t\t\t\t|| data[currentIndex] == '_'\n\t\t\t\t\t\t|| Character.isDigit(data[currentIndex]))) {\n\t\t\tvalue += data[currentIndex++];\n\t\t}\n\n\t\treturn value;\n\t}",
"public static String textFormat(String s){\r\n s =s.toLowerCase();\r\n s = s.substring(0, 1).toUpperCase() + s.substring(1);\r\n return(s);\r\n }",
"public String format(String key) {\r\n return getString(key);\r\n }",
"private String transformName(String originName,String prefix,String separator){\n if(StringUtils.isNotBlank(originName)){\n originName = StringUtils.removeStart(originName,prefix);\n }\n if(StringUtils.isNotBlank(separator)){\n List<String> names = Splitter.on(separator).omitEmptyStrings().trimResults().splitToList(originName);\n List<String> javaStyleNames = Lists.transform(names, new Function<String, String>() {\n public String apply(String input) {\n return ContextUtil.onlyFirstLetterIsUp(input);\n }\n });\n originName = Joiner.on(\"\").join(javaStyleNames);\n }else {\n originName = ContextUtil.onlyFirstLetterIsUp(originName);\n }\n return ContextUtil.upperFirstLetter(originName);\n }",
"public static String replaceNonAlphanumeric(String str) {\n return replaceNonAlphanumeric(str, '_');\n }",
"public static String getDisplayName(String fieldName)\n\t{\n\t\tString displayName = null;\n\n\t\tif(StringUtil.isInvalidString(fieldName))\n\t\t{\n\t\t\treturn fieldName;\n\t\t}\n\n\t\tint indexOfSeparator = fieldName.indexOf(MODULE_FIELD_SEPARATOR);\n\n\t\tif(indexOfSeparator==-1)\n\t\t{\n\t\t\treturn fieldName;\n\t\t}\n\n\t\tdisplayName = fieldName.substring(indexOfSeparator+1);\n\n\t\treturn displayName;\n\t}",
"public static String normalizeString(String str) {\n\t\tlog.trace(\"Entering normalizeString: str='\" + str + \"'\");\n\t\treturn str.replace(':', '-').replace(' ', '_');\n\t}",
"public String getGroupName() {\n\t\treturn groupName;\n\t}",
"private static String formatGroup(GroupCard gc) {\n\t\tString res = \"\";\n\n\t\tGroupHeadGuest ghg = gc.getCapoGruppo();\n\t\tres += GroupHeadGuest.CODICE;\n\t\tres += DateUtils.format(gc.getDate());\n\t\tres += String.format(\"%02d\", gc.getPermanenza());\n\t\tres += padRight(ghg.getSurname().trim().toUpperCase(),50);\n\t\tres += padRight(ghg.getName().trim().toUpperCase(),30);\n\t\tres += ghg.getSex().equals(\"M\") ? 1 : 2;\n\t\tres += DateUtils.format(ghg.getBirthDate());\n\n\t\t//Setting luogo et other balles is a bit more 'na rottura\n\t\tres += formatPlaceOfBirth(ghg.getPlaceOfBirth());\n\n\t\tPlace cita = ghg.getCittadinanza(); //banana, box\n\t\tres += cita.getId();\n\n\t\tres += ghg.getDocumento().getDocType().getCode();\n\t\tres += padRight(ghg.getDocumento().getCodice(),20);\n\t\tres += ghg.getDocumento().getLuogoRilascio().getId();\n\t\t//Assert.assertEquals(168,res.length()); //if string lenght is 168 we are ok\n\t\tres += \"\\r\\n\";\n\n\t\tfor (GroupMemberGuest gmg : gc.getAltri()){\n\t\t\tres += formatGroupMember(gmg, gc.getDate(), gc.getPermanenza());\n\t\t\t//res += \"\\r\\n\";\n\t\t}\n\t\treturn res;\n\t}",
"private String GetNormalizedBlobName(String guid) {\n return guid.replace(\"\\\\+\", Delimiter);\n }",
"public static String groupify(String text, int groupSize) {\r\n String newText = \"\";\r\n int textLength = text.length();\r\n int amountXNeeded = groupSize - (textLength % groupSize);\r\n\r\n for (int i = 0; i < textLength; i += groupSize) {\r\n int range = groupSize + i;\r\n if (range > textLength) {\r\n range = textLength;\r\n }\r\n newText += text.substring(i, range);\r\n if (range != textLength) {\r\n newText += \" \";\r\n }\r\n }\r\n if( amountXNeeded != groupSize){\r\n for (int i = 0; i < amountXNeeded; i++) {\r\n newText += \"x\";\r\n }\r\n }\r\n\r\n return newText;\r\n }",
"public static String fmtSqlIdentifier(String toClean) {\n\t\tString regex = \"[^0-9a-zA-Z_]+\";\n\t\tString ret = toClean.replaceAll(regex, \"_\");\n\t\tif(ret.length() > 50)\n\t\t\tret = ret.substring(0, 50);\n\t\treturn ret;\n\t}"
] | [
"0.6651386",
"0.6644882",
"0.6585512",
"0.6568921",
"0.6541683",
"0.64409",
"0.6383755",
"0.6353505",
"0.635188",
"0.6336797",
"0.62874156",
"0.6275317",
"0.6251614",
"0.62485075",
"0.623045",
"0.62223977",
"0.6216382",
"0.61485153",
"0.6144321",
"0.6129832",
"0.6064802",
"0.60529417",
"0.6030082",
"0.5983424",
"0.5945004",
"0.5931501",
"0.59087324",
"0.5898377",
"0.5896179",
"0.5884693",
"0.5871977",
"0.5829859",
"0.57945967",
"0.5783576",
"0.5779542",
"0.577588",
"0.5753005",
"0.5723243",
"0.5721523",
"0.57136524",
"0.5706605",
"0.5686781",
"0.56832665",
"0.5681229",
"0.5662717",
"0.5662717",
"0.56171745",
"0.559036",
"0.5589841",
"0.5587289",
"0.55868965",
"0.55773085",
"0.5570032",
"0.5563739",
"0.55600315",
"0.5551278",
"0.5538361",
"0.55300194",
"0.5526659",
"0.5502859",
"0.5499517",
"0.5492854",
"0.5485614",
"0.54810476",
"0.54731846",
"0.5463676",
"0.5461261",
"0.5454137",
"0.5450877",
"0.5450877",
"0.54429716",
"0.542116",
"0.5420329",
"0.5420063",
"0.5412573",
"0.54099315",
"0.5409515",
"0.5401427",
"0.5400811",
"0.53789717",
"0.53785175",
"0.5375974",
"0.5374087",
"0.53574616",
"0.53566694",
"0.53466856",
"0.53452986",
"0.5345262",
"0.53365284",
"0.5332102",
"0.53242165",
"0.53242147",
"0.53240824",
"0.53118527",
"0.5306265",
"0.5303952",
"0.52819765",
"0.5278632",
"0.52776605",
"0.5276992"
] | 0.77274394 | 0 |
Created by S.Serkan Cay on 22.09.2019 | @PerActivity
public interface IOrdersPresenter<V extends OrdersView> {
void onLogoutButtonClick();
void doLogout();
void onMyOrdersButtonClick();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private stendhal() {\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}",
"public final void mo51373a() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"public void mo4359a() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void m50366E() {\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n public void init() {\n\n }",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"private void init() {\n\n\t}",
"private void strin() {\n\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"public void mo55254a() {\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"Petunia() {\r\n\t\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\r\n\tpublic void publierEnchere() {\n\t\t\r\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 int getSize() {\n return 1;\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"protected void mo6255a() {\n }",
"@Override\n public void init() {\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void mo12628c() {\n }",
"public void gored() {\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\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"private TMCourse() {\n\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"public void mo12930a() {\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\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n public int getOrder() {\n return 0;\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n public int getOrder() {\n return 4;\n }"
] | [
"0.5655422",
"0.54277337",
"0.5401485",
"0.53980327",
"0.5379976",
"0.5346403",
"0.53383726",
"0.53383726",
"0.53380287",
"0.53031665",
"0.5295749",
"0.5292043",
"0.526982",
"0.5207832",
"0.5177153",
"0.5162831",
"0.51578087",
"0.5148308",
"0.51153064",
"0.5113807",
"0.5100187",
"0.5099686",
"0.50963956",
"0.5081778",
"0.50763565",
"0.5071139",
"0.50664353",
"0.50664353",
"0.50664353",
"0.50664353",
"0.50664353",
"0.50664353",
"0.50664353",
"0.50565684",
"0.50542545",
"0.50364244",
"0.500346",
"0.4999177",
"0.49929592",
"0.49851382",
"0.49697924",
"0.496027",
"0.49600202",
"0.4947718",
"0.49462914",
"0.49326342",
"0.4926415",
"0.4922638",
"0.4916653",
"0.4916653",
"0.49160168",
"0.49139848",
"0.4912209",
"0.4909014",
"0.49051785",
"0.49046978",
"0.48890406",
"0.48887417",
"0.48885268",
"0.48885268",
"0.48885268",
"0.48885268",
"0.48885268",
"0.48885268",
"0.48823196",
"0.4881379",
"0.4881379",
"0.4881379",
"0.4881379",
"0.4881379",
"0.487817",
"0.4865635",
"0.48650905",
"0.48569542",
"0.48482653",
"0.48475963",
"0.4846155",
"0.48283264",
"0.48269874",
"0.48269874",
"0.48269874",
"0.48268846",
"0.4821596",
"0.4821596",
"0.4820786",
"0.48177922",
"0.4816671",
"0.48162746",
"0.48155463",
"0.4814268",
"0.4814268",
"0.4814268",
"0.4812482",
"0.48094523",
"0.4803155",
"0.4802269",
"0.48011795",
"0.48002928",
"0.47981435",
"0.47866637",
"0.47851402"
] | 0.0 | -1 |
Initializes asteroid objects in the gameWorld, and randoms their attributes to decide where they should be set. Direction is capped by 360, speed by 100, location by the size of the map (can still move out of bounds), color of the asteroid and the size of the asteroid. | public Asteroid()
{
super.setDirection(rn.nextInt(360));
super.setSpeed(rn.nextInt(100));
super.setLocalX(rn.nextFloat() * 1024);
super.setLocalY(rn.nextFloat() * 786);
super.setColor(250);
size = rn.nextInt(10);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Asteroid() {\n\t\t// create, seed random number\n\t\trandomNumber = new Random();\n\n\t\t// random location\n\t\tlocation = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * FIELD_SIZE);\n\n\t\t// random movement vector\n\t\tmovement = new Tuple(\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED,\n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED, \n\t\t\t\t(randomNumber.nextDouble() - 0.5) * MAX_SPEED);\n\t\t\n\t\t// random radius\n\t\tsize = randomNumber.nextInt() % 20 + 1;\n\t\t\n\t\t// create Sphere\n\t\tsphere = new Sphere(size, location);\n\n\t}",
"public void initAsteroids(){\n for (int i = 0; i<field.length; i++){\n //initiate the asteroid with random location\n //NOTE: will need some kind of checking in the future to ensure asteroids don't overlap)\n field[i] = new Asteroid(randFloat(),randFloat(),randFloat());\n }\n }",
"private void spawnRandomAsteroid() {\n\t\tRandom r = new Random();\n\n\t\t// The size of the asteroid is randomised.\n\t\tdouble size = r. nextDouble() * (AsteroidsAsteroid.maximumSize - AsteroidsAsteroid.minimumSize) + AsteroidsAsteroid.minimumSize;\n\n\t\t// The spawn distance is a fair distance away from the action.\n\t\tfinal double spawnDistance = cameraZoom * 2 + size;\n\n\t\t// Same with its velocity magnitude.\n\t\tdouble decidedVelocity = r.nextDouble() * (AsteroidsAsteroid.maximumVelocity - AsteroidsAsteroid.minimumVelocity) + AsteroidsAsteroid.minimumVelocity;\n\n\t\t// And the angle.\n\t\tdouble decidedAngle = r.nextDouble() * 360 - 180;\n\n\t\t// The velocity is then converted to a Vector3.\n\t\tVector3 velocity = new Vector3(decidedVelocity * -Math.sin(Math.toRadians(decidedAngle)), decidedVelocity * Math.cos(Math.toRadians(decidedAngle)));\n\n\t\t// Then we pick a random point on the screen.\n\t\tVector3 randomPoint = new Vector3(r.nextDouble() * 2 * cameraZoom - cameraZoom, r.nextDouble() * 2 * cameraZoom - cameraZoom);\n\n\t\t// We then set the asteroid's starting position as that spawn distance away from the point\n\t\t// in the reverse direction to its velocity.\n\t\tVector3 startingPosition = randomPoint.add(new Vector3(spawnDistance * Math.sin(Math.toDegrees(-decidedAngle)), spawnDistance * -Math.cos(Math.toDegrees(-decidedAngle))));\n\n\t\t// Then we just create the asteroid.\n\t\tAsteroidsAsteroid asteroid = new AsteroidsAsteroid(GameObject.ROOT, this, size, velocity);\n\t\tasteroid.translate(startingPosition);\n\t\tasteroids.add(asteroid);\n\n\t}",
"public Asteroid(Asteroids asteroids, int size, MutableDouble2D velocity, Double2D location)\n {\n this.size = size;\n this.velocity = velocity;\n stopper = asteroids.schedule.scheduleRepeating(this);\n shape = shapes[size][asteroids.random.nextInt(shapes[size].length)];\n rotationalVelocity = asteroids.random.nextDouble() * MAXIMUM_ROTATIONAL_VELOCITY *\n (asteroids.random.nextBoolean() ? 1.0 : -1.0);\n orientation = asteroids.random.nextDouble() * Math.PI * 2;\n asteroids.field.setObjectLocation(this, location);\n asteroids.asteroidCount++;\n }",
"@Override\n public void start(GameData gameData, World world) {\n asteroids = new ArrayList<>();\n for (int i = 0; i <= random.nextInt(MAX_NUM_ASTEROIDS); i++) {\n asteroid = createAsteroid(gameData);\n System.out.println(\"Build asteroid: \" + (i + 1) + asteroid.getID());\n asteroids.add(asteroid);\n world.addEntity(asteroid);\n }\n }",
"private void addRandomAsteroid() {\n ThreadLocalRandom rng = ThreadLocalRandom.current();\n Point.Double newAsteroidLocation;\n //TODO: dont spawn on top of players\n Point.Double shipLocation = new Point2D.Double(0,0);\n double distanceX, distanceY;\n do { // Iterate until a point is found that is far enough away from the player.\n newAsteroidLocation = new Point.Double(rng.nextDouble(0.0, 800.0), rng.nextDouble(0.0, 800.0));\n distanceX = newAsteroidLocation.x - shipLocation.x;\n distanceY = newAsteroidLocation.y - shipLocation.y;\n } while (distanceX * distanceX + distanceY * distanceY < 50 * 50); // Pythagorean theorem for distance between two points.\n\n double randomChance = rng.nextDouble();\n Point.Double randomVelocity = new Point.Double(rng.nextDouble() * 6 - 3, rng.nextDouble() * 6 - 3);\n AsteroidSize randomSize;\n if (randomChance < 0.333) { // 33% chance of spawning a large asteroid.\n randomSize = AsteroidSize.LARGE;\n } else if (randomChance < 0.666) { // 33% chance of spawning a medium asteroid.\n randomSize = AsteroidSize.MEDIUM;\n } else { // And finally a 33% chance of spawning a small asteroid.\n randomSize = AsteroidSize.SMALL;\n }\n this.game.getAsteroids().add(new Asteroid(newAsteroidLocation, randomVelocity, randomSize));\n }",
"private void initialize() {\n //Asteroid Shape (8 sided)\n polygon = new Vector2f[]{new Vector2f(400, -800), new Vector2f(-400, -800), new Vector2f(-800, -400),\n new Vector2f(-800, 400), new Vector2f(-400, 800), new Vector2f(400, 800), new Vector2f(800, 400), new Vector2f(800, -400)};\n //Translation variables\n this.tx = spawnX;\n this.ty = spawnY; //Start above screen to gain momentum\n this.velocity = new Vector2f();\n\n //World initialize\n this.world = new Matrix3x3f();\n\n }",
"public Asteroid makeAsteroid() {\r\n\t\tAsteroid asteroid = new AsteroidImpl(startBounds.x, random(startBounds.y,startBounds.height)\r\n\t\t\t\t\t\t\t\t\t\t\t, random(10,40), random(10,40)\r\n\t\t\t\t\t\t\t\t\t\t\t, random(1,4));\r\n\t\treturn asteroid;\r\n\t}",
"@Override\n protected void init() {\n lastHorizontalDirection = direction = Math.random() < 0.5 ? Direction.LEFT : Direction.RIGHT;\n lastVerticalDirection = Direction.UP;\n setBody(new PolygonShape(BODY_WIDTH2, BODY_HEIGHT2), Body.Mode.CHARACTER);\n body().restitution = 0.0;\n size().set(WIDTH, HEIGHT);\n\n this.addAnimation(\"walk\")\n .addFrames(\"smick\", 4, 5, 0, 2)\n .setSpeed(10)\n .loop(true);\n this.addAnimation(\"eatRadish\")\n .addFrames(\"smick\", 4, 5, 8, 9)\n .setSpeed(10)\n .loop(true);\n this.addAnimation(\"eatHector\")\n .addFrames(\"smick\", 4, 5, 10, 10)\n .setSpeed(10)\n .loop(true);\n this.addAnimation(\"jump\")\n .addFrames(\"smick\", 4, 5, 11, 11)\n .setSpeed(10)\n .loop(false);\n this.addAnimation(\"climb\")\n .addFrames(\"smick\", 4, 5, 12, 13)\n .setSpeed(10)\n .loop(false);\n this.addAnimation(\"eatHectorOnRope\")\n .addFrames(\"smick\", 4, 5, 14, 14)\n .setSpeed(10)\n .loop(false);\n this.addAnimation(\"crushing\")\n .addFrames(\"smick\", 4, 5, 16, 16)\n .setSpeed(10)\n .loop(false);\n }",
"public Asteroid(){\n\t\t\n\t\t//call Sprite constructor\n\t\tsuper();\n for(int i =0;i<arrowAmount;i++)\n {\n arrows.add(new Arrow(Game.R.nextInt(4),Game.R.nextBoolean()));\n }\n\t\tinitialize();\n\t\tint nDY = Game.R.nextInt(speedLevel);\n\t\tsetDeltaY((double)nDY*0.03*CommandCenter.getLevel()+1);\n\n\n\t\t\n\n\t}",
"@Override\n\n //-----------------\n\n public void init() {\n //test(); // <---------------- Uncomment to TEST!\n\n // %-distribution of RED, BLUE and NONE\n double[] dist = {0.49, 0.49, 0.02};\n\n // Number of locations (places) in world (square)\n int nLocations = 950;\n\n Actor[] distArray = distribution(nLocations, dist); //Generates array with correct distribution.\n distArray = shuffle(distArray); //Shuffles array\n world = toMatrix(distArray, nLocations, world); //Generates the start world.\n // Should be last\n fixScreenSize(nLocations);\n }",
"public Asteroid () {\n\t\tImage asteroid = new Image(getClass().getClassLoader().getResourceAsStream(\"asteroid.png\"));\n\t\timage = new ImageView(asteroid);\n\t\tsetX(Math.random() * (Main.SIZEX - this.getXSize()));\n\t\tsetY(0);\n\t\tvelocityY = -45;\n\t\tvelocityX = 0;\n\t}",
"private void placeAsteroids() {\r\n\t\taddParticipant(new Asteroid(0, 2, EDGE_OFFSET, EDGE_OFFSET, speed, this));\r\n\t\taddParticipant(new Asteroid(1, 2, SIZE - EDGE_OFFSET, EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(2, 2, EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(3, 2, SIZE - EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\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 Ant(){ // The position and direction of the ant is completely randomizated in it's creation\n this.position[0] = (int)Math.floor(Math.random() * 20); \n this.position[1] = (int)Math.floor(Math.random() * 20);\n this.image = (int)Math.floor(Math.random() * 4);\n }",
"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 }",
"private void initialParameters()\n\t{\n\t\tasteroidList = new ArrayList<Asteroid>();\n\t\tfor(int i = 0 ; i < INITIAL_ASTEROIDS ; i++)\n\t\t\tasteroidList.add(new Asteroid(getRandomLocationX(), getRandomLocationY(), SCREEN_WIDTH, SCREEN_HEIGHT));\n\t\t\n\t\t//========== Game Status ===========\n\t\trunning \t= true;\n\t\tisWin \t\t= false;\n\t\tisGameOver \t= false;\n\t\t\n\t\t//========== Game Craft ===========\t\t\n\t\tcraft = new Craft(SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH, SCREEN_HEIGHT);\n\t}",
"public Asteroid() {\n setShape(new Polygon(astx, asty, astx.length));\n setAlive(true);\n setColor(new Color(160, 82, 45));\n }",
"public void initAndSetWorld() {\n\t\tHashMap<String, Location> gameWorld = new HashMap<String, Location>();\r\n\t\tthis.world = gameWorld;\r\n\t\t\r\n\t\t// CREATING AND ADDING LOCATIONS, LOCATION AND ITEM HASHES ARE AUTOMATICALLY SET BY CALLING CONSTRUCTOR\r\n\t\tLocation valley = new Location(\"valley\", \"Evalon Valley. A green valley with fertile soil.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(valley);\r\n\t\tLocation plains = new Location(\"plains\", \"West Plains. A desolate plain.\",\r\n\t\t\t\t\"You cannot go in that direction. There is nothing but dust over there.\",true);\r\n\t\tthis.addLocation(plains);\r\n\t\tLocation mountain = new Location(\"mountain\", \"Northern Mountains. A labyrinth of razor sharp rocks.\",\r\n\t\t\t\t\"You cannot go in that direction. The Mountain is not so easily climbed.\",true);\r\n\t\tthis.addLocation(mountain);\r\n\t\tLocation shore = new Location(\"shore\", \"Western Shore. The water is calm.\",\r\n\t\t\t\t\"You cannot go in that direction. There might be dangerous beasts in the water.\",true);\r\n\t\tthis.addLocation(shore);\r\n\t\tLocation woods = new Location(\"woods\", \"King's Forest. A bright forest with high pines.\",\r\n\t\t\t\t\"You cannot go in that direction. Be careful not to get lost in the woods.\",true);\r\n\t\tthis.addLocation(woods);\r\n\t\tLocation hills = new Location(\"hills\", \"Evalon hills.\",\r\n\t\t\t\t\"You cannot go in that direction.\",true);\r\n\t\tthis.addLocation(hills);\r\n\t\tLocation cave = new Location(\"cave\", \"Blood Cave. Few of those who venture here ever return.\",\r\n\t\t\t\t\"The air smells foul over there, better not go in that direction.\",true);\r\n\t\tthis.addLocation(cave);\r\n\t\tLocation innercave = new Location(\"innercave\", \"Blood Cave. This path must lead somewhere.\",\r\n\t\t\t\t\"Better not go over there.\",true);\r\n\t\t\r\n\t\tLocation westhills = new Location(\"westhills\", \"Thornhills. A great many trees cover the steep hills.\",\r\n\t\t\t\t\"You cannot go in that direction. Watch out for the thorny bushes.\",true);\r\n\t\tthis.addLocation(westhills);\r\n\t\t\r\n\t\tLocation lake = new Location(\"lake\", \"Evalon Lake. A magnificent lake with a calm body of water.\",\r\n\t\t\t\t\"You cannot go in that direction, nothing but fish over there.\",true);\r\n\t\tthis.addLocation(lake);\r\n\t\t\r\n\t\tLocation laketown = new Location(\"laketown\", \"Messny village. A quiet village with wooden houses and a dirt road.\",\r\n\t\t\t\t\"You cannot go in that direction, probably nothing interesting over there.\",true);\r\n\t\t\r\n\t\tLocation inn = new Room(\"inn\", \"Messny Inn. A small but charming inn in the centre of the village.\",\r\n\t\t\t\t\"You cannot go in that direction.\",false);\r\n\t\t\r\n\t\t// CONNECTING LOCATIONS\r\n\t\t// IT DOES NOT MATTER ON WHICH LOCATION THE METHOD ADDPATHS IS CALLED\r\n\t\tvalley.addPaths(valley, \"east\", plains, \"west\");\r\n\t\tvalley.addPaths(valley, \"north\", mountain, \"south\");\r\n\t\tvalley.addPaths(valley, \"west\", shore, \"east\");\r\n\t\tvalley.addPaths(valley, \"south\", woods, \"north\");\r\n\t\twoods.addPaths(woods, \"east\", hills, \"west\");\r\n\t\thills.addPaths(hills, \"south\", westhills, \"north\");\r\n\t\twesthills.addPaths(westhills, \"west\", lake, \"east\");\r\n\t\tlake.addPaths(woods, \"south\", lake, \"north\");\r\n\t\tlake.addPaths(lake, \"west\", laketown, \"east\");\r\n\t\tmountain.addPaths(mountain, \"cave\", cave, \"exit\");\r\n\t\tlaketown.addPaths(laketown, \"inn\", inn, \"exit\");\r\n\t\t\r\n\r\n\t\t\r\n\t\t// CREATE EMPTY ARMOR SET FOR GAME START AND UNEQUIPS\r\n\t\tBodyArmor noBodyArmor = new BodyArmor(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBodyArmor(noBodyArmor);\r\n\t\tBoots noBoots = new Boots(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultBoots(noBoots);\r\n\t\tHeadgear noHeadgear = new Headgear(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultHeadgear(noHeadgear);\r\n\t\tGloves noGloves = new Gloves(\"unarmored\", 0, 0, true, 0);\r\n\t\tthis.setDefaultGloves(noGloves);\r\n\t\tWeapon noWeapon = new Weapon(\"unarmored\", 0, 0, true, 5, false);\r\n\t\tthis.setDefaultWeapon(noWeapon);\r\n\t\t\r\n\t\tthis.getPlayer().setBodyArmor(noBodyArmor);\r\n\t\tthis.getPlayer().setBoots(noBoots);\r\n\t\tthis.getPlayer().setGloves(noGloves);\r\n\t\tthis.getPlayer().setHeadgear(noHeadgear);\r\n\t\tthis.getPlayer().setWeapon(noWeapon);\r\n\t\t\r\n\t\t\r\n\t\t// CREATING AND ADDING ITEMS TO PLAYER INVENTORY \r\n\t\tItem potion = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tthis.getPlayer().addItem(potion);\r\n\t\tWeapon sword = new Weapon(\"sword\", 10, 200, true, 10, false);\r\n\t\tvalley.addItem(sword);\r\n\t\t\r\n\t\tWeapon swordEvalon = new Weapon(\"EvalonianSword\", 15, 400, true, 1, 15, false);\r\n\t\thills.addItem(swordEvalon);\r\n\t\t\r\n\t\tPotion potion2 = new Potion(\"largepotion\", 2, 200, true, 25);\r\n\t\tPotion potion3 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tPotion potion4 = new Potion(\"potion\", 2, 200, true, 25);\r\n\t\tlake.addItem(potion3);\r\n\t\tinn.addItem(potion4);\r\n\t\t\r\n\t\tItem potion5 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion6 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\twoods.addItem(potion6);\r\n\t\t\r\n\t\tPurse purse = new Purse(\"purse\",0,0,true,100);\r\n\t\tvalley.addItem(purse);\r\n\t\t\r\n\t\tChest chest = new Chest(\"chest\", 50, 100, false, 50);\r\n\t\tvalley.addItem(chest);\r\n\t\tchest.addItem(potion2);\r\n\t\t\r\n\t\tChest chest2 = new Chest(\"chest\", 10, 10, false, 20);\r\n\t\tinn.addItem(chest2);\r\n\t\t\r\n\t\t// ENEMY LOOT\r\n\t\tBodyArmor chestplate = new BodyArmor(\"chestplate\", 20, 200, true, 20);\r\n\t\t\r\n\t\t// ADDING NPC TO WORLD\r\n\t\tNpc innkeeper = new Npc(\"Innkeeper\", false, \"Hello, we have rooms available if you want to stay over night.\",true,1000);\r\n\t\tinn.addNpc(innkeeper);\r\n\t\t\r\n\t\tItem potion7 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tItem potion8 = new Potion(\"potion\", 1, 100, true, 10);\r\n\t\tinnkeeper.addItem(potion7);\r\n\t\tinnkeeper.addItem(potion8);\r\n\t\t\r\n\t\tNpc villager = new Npc(\"Lumberjack\", false, \"Gotta get those logs back to the mill soon, but first a few pints at the inn!\",false,0);\r\n\t\tlaketown.addNpc(villager);\r\n\t\t\r\n\t\tEnemy enemy1 = new Enemy(\"Enemy\", true, \"Come at me!\", 50, chestplate, 200, 10);\r\n\t\tmountain.addNpc(enemy1);\r\n\t\t\r\n\t\tEnemyGuardian guardian = new EnemyGuardian(\"Guardian\", true, \"I guard this cave.\", 100, potion5, 600, 15, innercave, \"An entrance reveals itself behind the fallen Guardian.\", \"inwards\", \"entrance\");\r\n\t\tcave.addNpc(guardian);\r\n\t\t\r\n\t\t// ADDING SPAWNER TO WORLD\r\n\t\tthis.setNpcSpawner(new BanditSpawner()); \r\n\t\t\r\n\t\t// ADDING PLAYER TO THE WORLD\r\n\t\tthis.getPlayer().setLocation(valley);\r\n\t\t\r\n\t\t// QUEST\r\n\t\tQuest noquest = new Quest(\"noquest\",\"nodesc\",\"nocomp\",false,true,1000,0,0,0);\r\n\t\tthis.setCurrentQuest(noquest);\r\n\t\t\r\n\t\t\r\n\t\tQuest firstquest = new Quest(\"A New Journey\",\"Find the lost sword of Evalon.\",\"You have found the lost sword of Evalon!\",false,false,1,400,0,1);\r\n\t\t\r\n\t\tScroll scroll = new Scroll(\"Questscroll\",1,1,true,firstquest);\r\n\t\tmountain.addItem(scroll);\r\n\t\t\r\n\t\tSystem.out.println(\"All set up.\");\r\n\t}",
"public void setCoords() \r\n {\r\n \tthis.coordX = rand.nextInt(10);\r\n \tthis.coordY = rand.nextInt(10);\r\n }",
"public void setupWorld()\r\n\t{\r\n\t\t//build walls\r\n\t\twall1.add(new PointD(-500, 500));\r\n\t\twall1.add(new PointD(-490, 500));\r\n\t\twall1.add(new PointD(-490, -500));\r\n\t\twall1.add(new PointD(-500, -500));\r\n\r\n\t\twall2.add(new PointD(-500, 500));\r\n\t\twall2.add(new PointD(2000, 500));\r\n\t\twall2.add(new PointD(2000, 490));\r\n\t\twall2.add(new PointD(-500, 490));\r\n\t\t\r\n\t\twall3.add(new PointD(2000, 500));\r\n\t\twall3.add(new PointD(1990, 500));\r\n\t\twall3.add(new PointD(1990, -500));\r\n\t\twall3.add(new PointD(2000, -500));\r\n\r\n\t\twall4.add(new PointD(-500, -500));\r\n\t\twall4.add(new PointD(2000, -500));\r\n\t\twall4.add(new PointD(2000, -490));\r\n\t\twall4.add(new PointD(-500, -490));\r\n\r\n\t\tobjects.add(wall1);\r\n\t\tobjects.add(wall2);\r\n\t\tobjects.add(wall3);\r\n\t\tobjects.add(wall4);\r\n\t\t\r\n\t\t\r\n\t\t//add people\r\n\t\tGameVars.people = people;\r\n\t\tGameVars.aSquare = aSquare;\r\n\t\t\r\n\t\tobjects.add(grandson.boundary);\r\n\t\tpeople.add(grandson);\r\n\t\t\r\n\t\tobjects.add(son.boundary);\r\n\t\tpeople.add(son);\r\n\t\t\r\n\t\tobjects.add(triangle.boundary);\r\n\t\tpeople.add(triangle);\r\n\r\n\t\tobjects.add(wife.boundary);\r\n\t\tpeople.add(wife);\r\n\r\n\t\tobjects.add(runaway.boundary);\r\n\t\tpeople.add(runaway);\r\n\t\t\r\n\t\t\r\n\t\t//set aSquare's position\r\n\t\taSquare.rotate(220);\r\n\t\t\r\n\t}",
"public void initWorld()\n\t{\n\t\tgrid = new Creature[numRows][numColumns];\n\t\t\n\t\t//place a Species1 object in the top half of the grid\n\t\tint topRowInit = (int)(Math.random()*(numRows/2));\n\t\tint topColInit = (int)(Math.random()*(numColumns));\n\t\tgrid[topRowInit][topColInit] = new Species1(this, topRowInit, topColInit);\n\t\tgrid[topRowInit][topColInit].live();\n\t\t\n\t\t//place a Species2 object in the bottom half of the grid\n\t\tint bottomRowInit = (int)(Math.random()*(numRows/2))+(numRows/2);\t\t\n\t\tint bottomColInit = (int)(Math.random()*(numColumns));\t\t\t\t\n\t\tgrid[bottomRowInit][bottomColInit] = new Species2(this, bottomRowInit, bottomColInit);\n\t\tgrid[bottomRowInit][bottomColInit].live();\n\t\t\n\t}",
"private void setDefaultMonsterCords()\n {\n this.xBeginMap=0;\n this.yBeginMap=0;\n this.xEndMap=16;\n this.yEndMap=16;\n\n this.xBeginSrc=0;\n this.yBeginSrc=0;\n this.xEndSrc=0;\n this.yEndSrc=0;\n\n }",
"public void randomizeDirection()\n\t{\n\t\txSpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t\tySpeed = (int) (Math.pow(-1, random.nextInt(2)) * speed);\n\t}",
"public MobSpawner(Vector2D position, Game game)\n {\n super(position, new Vector2D(0,0), RADIUS);\n ships = new ArrayList<>();\n double maximumAngle = Math.toRadians(360/ENEMIES_CAN_SPAWN);\n for (double i = 0; i < Math.toRadians(360); i+= maximumAngle)\n {\n double randomAngle = Math.random() * maximumAngle;\n Vector2D newPos = Vector2D.polar(i + randomAngle, SPAWN_RADIUS).add(position);\n ships.add(new EnemyShip(new HlAiController(game, this), newPos));\n }\n }",
"private void initStars()\r\n\t{\r\n\t\tRandom rng = new Random();\r\n\t\tfor (int i = 0; i < amountOfStars; i++)\r\n\t\t{\r\n\t\t\tint x = rng.nextInt(width);\r\n\t\t\tint y = rng.nextInt(height);\r\n\t\t\tstars.add(new Star(x, y));\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"public void randomizeLocations() {\n\t// Get a seeded pseudo random-number generator\n\tDate today = new Date();\n\tRandom random = new Random(today.getTime());\n\t// Reset our min and max values\n\tresetNodes();\n\n\tfor (LayoutNode node: nodeList) {\n\n\t if (!node.isLocked()) {\n\t\tdouble x = random.nextDouble() * width;\n\t\tdouble y = random.nextDouble() * height;\n\t\tnode.setLocation(x, y);\n\t\tupdateMinMax(x, y);\n\t } else {\n\t\tupdateMinMax(node.getX(), node.getY());\n\t }\n\t}\n }",
"private void addAsteroids(int count)\n {\n int x;\n int y;\n \n for(int i = 0; i < count; i++)\n {\n x = Greenfoot.getRandomNumber(getWidth()/2);\n y = Greenfoot.getRandomNumber(getHeight()/2);\n addObject(new Asteroid(), x, y);\n }\n }",
"public Critter(){\n\tthis.x_location = (int) (Math.random()*99);\n\tthis.y_location = (int) (Math.random()*99);\n\tthis.wrap();\n\t}",
"private void addMountains() {\n int randRow = 0;\n int randColumn = 0;\n int randValue = 0;\n do {\n randRow = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n randColumn = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n for (int i = (randRow - 2); i < (randRow + 2); i++) {\n for (int j = (randColumn - 2); j < (randColumn + 2); j++) {\n if ((tileMap[i][j].getTerrain() instanceof Grass) && (tileMap[i][j].isEmpty())) {\n randValue = (int)(Math.round(Math.random()));\n if (randValue == 0) {\n tileMap[i][j] = new Space(new Mountain(i, j)); //Create a mountain\n }\n }\n }\n }\n } while (!checkMountainCoverage());\n }",
"public Monster() {\n\t super();\n\t _hitPts = 150;\n\t _strength = 20 + (int)( Math.random() * 45 ); // [20,65)\n _defense = 40;\n\t _attack = .4;\n }",
"public Asteroid(double xLoc, double yLoc) {\n\t\tsuper(resource.Constants.SPR_ASTEROID);\n\t\tsetX(xLoc);\n\t\tsetY(yLoc);\n\t\tthis.xLoc = xLoc;\n\t\tthis.yLoc = yLoc;\n\t}",
"public GoLRandomInitializer() {\n Random randomLifeOrDeath = new Random();\n \n // Give life to random cells in the board\n for (int row = 0; row < this.NUM_ROWS; row++)\n for (int column = 0; column < this.NUM_COLUMNS; column++)\n this.gameBoard[row][column] = new \n GoLCell(randomLifeOrDeath.nextBoolean());\n }",
"protected void putMonsters() {\n\t\tRandom rand = new Random();\n\t\tfor (int monsterCount = 0; monsterCount < 4; monsterCount++){\n\t\t\tint x, y;\n\t\t\tdo {\n\t\t\t\tx = rand.nextInt(xSize);\n\t\t\t\ty = rand.nextInt(ySize);\n\t\t\t} while((levelSetup[x][y] instanceof SimpleRoom) && (x == 0 & y == 0) && !levelSetup[x][y].hasItem());\n\t\t\tlevelSetup[x][y].putMonster(new BasicMonster());\n\t\t}\n\t}",
"public Asteroid(int x, int y) {\r\n super(x, y);\r\n speed = 1;\r\n initialY = y;\r\n initAsteroid();\r\n }",
"private void generateWorld() {\n\t\t// Loop through all block locations where a block needs to be generated\n\t\tfor(int x=0; x<WORLD_SIZE; x++) {\n\t\t\tfor(int z=0; z<WORLD_SIZE; z++) {\n\t\t\t\tfor(int y=0; y<WORLD_HEIGHT/2; y++) {\n\t\t\t\t\tsetBlockAt(x, y, z, BlockType.STONE);\n\t\t\t\t\tif(y > (WORLD_HEIGHT/2) - 5)\n\t\t\t\t\t\tsetBlockAt(x, y, z, BlockType.DIRT);\n\t\t\t\t\tif(y == (WORLD_HEIGHT/2) -1)\n\t\t\t\t\t\tsetBlockAt(x, y, z, BlockType.GRASS);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\t// Generate NUM_DIAMONDS of diamonds in random locations\n\t\tfor(int i=0; i<NUM_DIAMONDS; i++)\n\t\t\tsetBlockAt(getRandomLocation(), BlockType.DIAMOND);\t\n\t}",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1000, 600, 1);\n planets();\n stars();\n }",
"public World(){\r\n locations = new Location[3][3];\r\n for(int r=0; r<3; r+=1){\r\n for(int c=0; c<3; c+=1){\r\n locations[r][c] = new EmptyLocation(new Position(r,c), \"Nothing here to see.\");\r\n }\r\n }\r\n home = locations[0][0];\r\n players = new ArrayList<Player>();\r\n }",
"void setPosition(){\n Random random =new Random();\n position = new Position(random.nextInt(maxrows),random.nextInt(maxcols));\n\n }",
"public void setDirection() {\n\t\tdouble randomDirection = randGen.nextDouble();\n\t\tif (randomDirection < .25) {\n\t\t\tthis.xDirection = 1;\n\t\t\tthis.yDirection = -1;\n\t\t} else if (randomDirection < .5) {\n\t\t\tthis.xDirection = -1;\n\t\t\tthis.yDirection = -1;\n\t\t} else if (randomDirection < .75) {\n\t\t\tthis.xDirection = -1;\n\t\t\tthis.yDirection = 1;\n\t\t} else {\n\t\t\tthis.xDirection = 1;\n\t\t\tthis.yDirection = 1;\n\t\t}\n\t}",
"public Monster()\n {\n this.name=\"Noname\";\n this.monsterType=0;\n this.health=0;\n this.maxHealth=0;\n this.monstersWalkDistanceX=0;\n this.monstersWalkDistanceY=0;\n this.resourceReward=0;\n this.monsterSize=0;\n this.whichSide=0;\n this.firstCross=0;\n this.secondCross=2;\n targetable=false;\n this.visible=false;\n\n setDefaultMonsterCords();\n }",
"public World (){\n\t\tpattern = new ShapePattern (PATTERN_SIZE);\n\t\tscroll = new ShapeScroll (SCROLL_SIZE);\n\t}",
"public AsteroidManager(int numInitialAsteroids, ImageLoader imageLoader, AsteroidRunPanel asteroidRunPanel)\n {\n //Create the array of asteroids\n asteroids = new Asteroid[MAX_ASTEROIDS];\n numAsteroids = numInitialAsteroids;\n\n //Create the random number generator and an array of asteroid image names\n rng = new Random();\n String[] imagesNames = {\"Asteroid\", \"Asteroid 2\", \"Asteroid 3\"};\n\n //Populate the asteroids array with new asteroids\n for (int i = 0; i < numAsteroids; i++)\n {\n //Generate a random number to determine the type of asteroid, then create the asteroid\n asteroids[i] = new Asteroid(imagesNames[rng.nextInt(3)], \"Explosion\", imageLoader, this);\n }\n\n //Store the reference to the asteroidRunPanel\n this.asteroidRunPanel = asteroidRunPanel;\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 void randomInit() {\n Plain plain = new Plain(width + 2);\n grid = new Living[width + 2][width + 2];\n for (int i = 1; i < grid.length - 1; i++) {\n for (int j = 1; j < grid[i].length - 1; j++) {\n int randomNum = (int) (Math.random() * 5);\n switch (randomNum) {\n case 0:\n grid[i][j] = new Badger(plain, i, j, 0);\n break;\n case 1:\n grid[i][j] = new Empty(plain, i, j);\n break;\n case 2:\n grid[i][j] = new Fox(plain, i, j, 0);\n break;\n case 3:\n grid[i][j] = new Grass(plain, i, j);\n break;\n case 4:\n grid[i][j] = new Rabbit(plain, i, j, 0);\n break;\n }\n }\n }\n }",
"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 Asteroid(String textureFileName, float x, float y, int sizeX, int sizeY){\r\n super(textureFileName, x, y, sizeX, sizeY);\r\n rotationNumber = randomRotation();\r\n setRotation(rotationNumber);\r\n getSprite().setOriginCenter();\r\n }",
"public void randomiseBotDirections() {\n\t\tfor (int i = 0; i < bots.size(); i++) {\n\t\t\tbots.get(i).setDirection(Math.random() * 360);\n\t\t}\n\t}",
"public Monster() {\n super(MONSTERS_LIST[(new Random()).nextInt(MONSTERS_LIST.length - 1)],\n new Random().nextFloat() * 5F,\n new Random().nextFloat() * 2F);\n }",
"public void randomWalk(){\r\n int newAngle = (int) ( (double) Math.random() * 360) ;\r\n\r\n super.xVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n super.yVelocity = (velocity * Math.cos(newAngle * Math.PI/180));\r\n }",
"@Override\r\n public void initCreature() \r\n {\n \t\r\n if ( worldObj.provider.dimensionId == 1 && worldObj.rand.nextInt( 5 ) == 0 )\r\n \t{\r\n \tsetCarried( Block.whiteStone.blockID );\r\n \tsetCarryingData( 0 );\r\n \t}\r\n }",
"private static void setupLocations() {\n\t\tcatanWorld = Bukkit.createWorld(new WorldCreator(\"catan\"));\n\t\tspawnWorld = Bukkit.createWorld(new WorldCreator(\"world\"));\n\t\tgameLobby = new Location(catanWorld, -84, 239, -647);\n\t\tgameSpawn = new Location(catanWorld, -83, 192, -643);\n\t\thubSpawn = new Location(spawnWorld, 8, 20, 8);\n\t\twaitingRoom = new Location(catanWorld, -159, 160, -344);\n\t}",
"public void setRandomSpawn(final Random random)\r\n {\r\n final List<Double> rows = new ArrayList<>();\r\n \r\n final double column;\r\n \r\n //get a random true/false result\r\n if (random.nextBoolean())\r\n {\r\n //here we will do west\r\n column = 0.5;\r\n }\r\n else\r\n {\r\n //here we will do east\r\n column = COLUMNS - 0.5;\r\n }\r\n \r\n for (double row=0; row < ROWS; row++)\r\n {\r\n //if platform exists add this as a possibility\r\n if (getObject(Type.Platform, (int)column, row) != null)\r\n rows.add(row);\r\n }\r\n \r\n super.setCol(column);\r\n \r\n final int index = random.nextInt(rows.size());\r\n super.setRow(rows.get(index) + 0.5);\r\n }",
"@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}",
"City(){\n x_coordinate = (int)(Math.random()*200);\n y_coordinate = (int)(Math.random()*200);\n }",
"void randomBlock() {\n\t\t// map generate (int map)\n\t\tfor (int i = 0; i < mapX; i += 2) {\n\t\t\tfor (int j = 0; j < mapY; j += 2) {\n\t\t\t\tint r = (int) Math.random() * 4;\n\t\t\t\tif (r == 0) {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 1);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 1);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 1);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 1);\n\n\t\t\t\t} else {\n\t\t\t\t\ttileMap[i][j] = new Tile(i, j, 0);\n\t\t\t\t\ttileMap[i + 1][j] = new Tile(i + 1, j, 0);\n\t\t\t\t\ttileMap[i][j + 1] = new Tile(i, j + 1, 0);\n\t\t\t\t\ttileMap[i + 1][j + 1] = new Tile(i + 1, j + 1, 0);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void init(){\n\t\n\t\t//background init\n\t\tthis.background = new Sprite(this.scene, \"space-backdrop.png\", 1280 * 5, 800 * 5);\n\t\tthis.background.setBoundAction(\"background\");\n\t\tthis.background.setSpeedScale(0.2);\n\t\tthis.background.setSpeed(0);\n\t\tthis.sprites.add(this.background);\n\t\t\n\t\t//compass init\n\t\tthis.compass = new Sprite(this.scene, \"compass.png\", 100, 100);\n\t\tthis.compass.setSpeed(0);\n\t\tthis.compass.setPosition(this.compass.getWidth() / 2, this.scene.getHeight() - this.compass.getHeight() / 2);\n\t\t\n\t\t//earth init\n\t\tthis.earth = new Planet(this.scene, \"earth.png\", 4800, 4800);\n\t\tthis.earth.setSpeed(0);\n\t\tthis.earth.setPosition(0, 7000);\n\t\tthis.earth.setBoundAction(\"continue\");\n\t\tthis.sprites.add(this.earth);\n\t\t\n\t\t//ship init\n\t\tthis.mainSprite = new Ship(this.scene, \"cannon.png\", 50, 50, this.k);\n\t\tthis.mainSprite.keyListen = true;\n\t\tthis.mainSprite.setSpeed(0);\n\t\tthis.mainSprite.setPosition(this.scene.getWidth() / 2, this.scene.getHeight() / 2);\n\t\t\n\t\t//asteroids init\n\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", 250, 250, this));\n\t\tthis.asteroids.get(0).setBoundAction(\"continue\");\n\t\tthis.asteroids.get(0).setSpeed(0);\n\t\tthis.asteroids.get(0).setPosition(0, 0);\n\t\tthis.sprites.add(this.asteroids.get(0));\n\t\t\n\t\tfor(int i = 1; i < 200; i++){\n\t\t\t\n\t\t\tint size = (int) Math.round(Math.random() * 400 + 50);\n\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\n\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t}\n\t\t\t\n\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t}\n\t\t\t\n\t\t\tthis.asteroids.add(new Body(this.scene, \"asteroid.png\", size, size, this));\n\t\t\tthis.asteroids.get(i).setBoundAction(\"continue\");\n\t\t\tthis.asteroids.get(i).setSpeed(0);\n\t\t\tthis.asteroids.get(i).setPosition(x, y);\n\t\t\t\n\t\t\tthis.sprites.add(this.asteroids.get(i));\n\t\t}\n\t\t\n\t\t\n\t\t//chest init\n\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\tthis.chests.get(0).setBoundAction(\"continue\");\n\t\tthis.chests.get(0).setSpeed(0);\n\t\tthis.chests.get(0).setPosition(500, 500);\n\t\tthis.sprites.add(this.chests.get(0));\n\t\t\n\t\tfor(int i = 1; i < this.numChests; i++){\n\t\t\t\n\t\t\tthis.chests.add(new Chest(this.scene, \"chest.png\", 100, 50));\n\t\t\tthis.chests.get(i).setBoundAction(\"continue\");\n\t\t\tthis.chests.get(i).setSpeed(0);\n\t\t\t\n\t\t\tboolean keepGoing = true;\n\t\t\tdo{\n\t\t\t\t\n\t\t\t\tlong x = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\tlong y = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t\n\t\t\t\twhile(x > 0 && x < this.scene.getWidth()){\n\t\t\t\t\tx = Math.round(Math.random() * this.background.getWidth() - (this.background.getWidth() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twhile(y > 0 && y < this.scene.getHeight()){\n\t\t\t\t\ty = Math.round(Math.random() * this.background.getHeight() - (this.background.getHeight() / 2));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tthis.chests.get(i).setPosition(x, y);\n\t\t\t\t\n\t\t\t\t//check for collisions with asteroids\n\t\t\t\tboolean colliding = false;\n\t\t\t\tfor(int j = 0; j < this.asteroids.size() && colliding == false; j++){\n\t\t\t\t\tif(this.asteroids.get(j).collidesWith(this.chests.get(i))){\n\t\t\t\t\t\tcolliding = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tkeepGoing = colliding;\n\t\t\t\t\n\t\t\t}while(keepGoing);\n\t\t\t\n\t\t\tthis.sprites.add(this.chests.get(i));\n\t\t\t\n\t\t}//end for\n\t\n\t\tthis.scene.start();\n\t\t\n\t\tSystem.out.println(\"==== Welcome to Space Smuggler! ====\");\n\t\tSystem.out.println(\"(WASD to move)\");\n\t\tSystem.out.println(\"Follow your compass in the bottom left corner to find treasure.\");\n\t\tSystem.out.println(\"Collect all of the treasure, then follow your compass to Earth!\");\n\t\tSystem.out.println(\"Watch out for the asteroids though, their gravitational pull is strong!\");\n\t\tSystem.out.println(\"Crashing into one will certainly kill you! D:\");\n\t\tSystem.out.println(\"Good Luck!\");\n\t\t\n\t}",
"public void tick()\n {\n //We have to respawn the circles if they reach the bottom of the screen\n if (hasPassed())\n {\n //Randomly reset the x coordinates.\n this.x = minRandom + new Random().nextFloat()*(maxRandom-minRandom);\n //Fixed Y spawn\n this.y = spawnY;\n //Randomly reset the width,height, and radius of the new asteroid\n int newHeight, newWidth;\n newHeight = 32 + (int) (new Random().nextFloat()*(64.0f-32.0f));\n newWidth = newHeight;\n setWidth(newWidth);\n setHeight(newHeight);\n this.radius = width*0.5f;\n //Create a new Random color\n Random gen = new Random();\n int red, green, blue = 50;\n do\n {\n red = 40 + (int) (gen.nextFloat()*(255.0f-40.0f));\n green = 40 + (int) (gen.nextFloat()*(255.0f-40.0f));\n blue = 40 + (int) (gen.nextFloat()*(255.0f-40.0f));\n } while (red != green && red != blue);\n \n this.color = new Color(red,green,blue);\n }\n else\n {\n fall();\n move();\n }\n }",
"public void randomTeleport() {\n Random random = new Random(seed);\n seed = random.nextInt(10000);\n int randomY = RandomUtils.uniform(random, 0, worldHeight);\n int randomX = RandomUtils.uniform(random, 0, worldWidth);\n int randomDirection = RandomUtils.uniform(random, 0, 4);\n move(randomX, randomY);\n turn(randomDirection);\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 Animal()\n {\n MOVE_RIGHT = 0;\n MOVE_LEFT = 0;\n MOVE_UP = 0;\n MOVE_DOWN = 0;\n }",
"public RobotWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n prepare();\n }",
"@Override\n public void initialize() {\n arm.setPosition(degrees);\n }",
"public void init()\r\n\t{\r\n\t\tm_behaviorName = \"Wander\";\r\n\t\t\r\n\t\t// Punkt auf dem Kreis festlegen\r\n\t\tRandom rand = new Random();\r\n\t\t\r\n\t\tVector2d vect = new Vector2d(rand.nextInt(),rand.nextInt());\r\n\t\t\r\n\t\t// evtl. negative Werte\r\n\t\t\r\n\t\tif (rand.nextInt() > 0.5) vect.setX(vect.getX() * (-1));\r\n\t\tif (rand.nextInt() > 0.5) vect.setY(vect.getY() * (-1));\r\n\t\t\r\n\t\t// Punkt auf dem Kreis festlegen durch Normalisierung u. Skalierung\r\n\t\tvect.normalize(); vect.scale(m_r);\r\n\t\tm_seekPoint = new Point2d(m_pos);\r\n\t\tm_seekPoint = m_seekPoint.add(vect); \r\n\t}",
"public void generateRandomPosition() {\n\t\tx.set((int)(Math.floor(Math.random()*23+1)));\n\t\ty.set((int)(Math.floor(Math.random()*23+1)));\n\n\t}",
"public void addAsteroid() \n\t{\n\t\tgameObj[0].add(new Asteroid());\n\t\tSystem.out.println(\"Asteroid added\");\n\t}",
"public void setLocation(Direction direction){\n switch (direction) {\n case NORTH:\n location.y = -offset;\n location.x = Constants.GAMEWIDTH / 2;\n break;\n case SOUTH:\n location.y = Constants.GAMEHEIGHT + offset;\n location.x = Constants.GAMEWIDTH / 2;\n break;\n case EAST:\n location.y = Constants.GAMEHEIGHT / 2;\n location.x = Constants.GAMEWIDTH + offset;\n break;\n case WEST:\n location.y = Constants.GAMEHEIGHT / 2;\n location.x = -offset;\n break;\n default:\n\n break;\n }\n }",
"public void MarioInit() {\n\t\tcurrentLevel = levelOne;\n\t\tMario = new Entity(100, 400, 27, 50, Id.player, playerGImage);\n\t\tPhysics = new PhysicsEngine (Mario);\n\t\tPhysics.windowWidth = WINDOW_WIDTH;\n\t\tPhysics.setWinningSpace(currentLevel.winningSpace);\n\t\tfor (Entity a: currentLevel.hitboxes) {\n\t\t\tPhysics.addImmovable(a);\n\t\t}\n\t\tMario.xVel = 0;\n\t\tMario.yVel = 0;\n\t\tMario.xVelMax = 6;\n\t\tMario.yVelMax = 10;\n\t\tMario.xDirection = Mario.yDirection = Mario.lastDirection = \"\";\n\t}",
"public void randomizeDirection() {\n\t\tRandom r = new Random();\n\t\tint randomDir = r.nextInt(8);\n\t\tdirection = Direction.values()[randomDir];\n\t}",
"private static void spawnAtRandomLocation(World world, GameObject gameObject) {\n spawnAtRandomLocation(world, gameObject, 0.5);\n }",
"private RandomLocationGen() {}",
"private void goRandomDirection() {\n\t\tdesiredDirection = Math.random() * 360.0;\n\t}",
"public void initialize() {\n\n\t\tif (sentryWeight <= 0)\n\t\t\tsentryWeight = 1.0;\n\t\tif (AttackRateSeconds > 30)\n\t\t\tAttackRateSeconds = 30.0;\n\n\t\tif (sentryHealth < 0)\n\t\t\tsentryHealth = 0;\n\n\t\tif (sentryRange < 1)\n\t\t\tsentryRange = 1;\n\t\tif (sentryRange > 100)\n\t\t\tsentryRange = 100;\n\n\t\tif (sentryWeight <= 0)\n\t\t\tsentryWeight = 1.0;\n\n\t\tif (RespawnDelaySeconds < -1)\n\t\t\tRespawnDelaySeconds = -1;\n\n\t\tif (Spawn == null)\n\t\t\tSpawn = myNPC.getBukkitEntity().getLocation();\n\n\n\t\t// defaultSpeed = myNPC.getNavigator().getSpeed();\n\n\t\t((CraftLivingEntity) myNPC.getBukkitEntity()).getHandle().setHealth(sentryHealth);\n\n\t\t_myDamamgers.clear();\n\n\t\tthis.sentryStatus = Status.isLOOKING;\n\t\tfaceForward();\n\n\t\tshootanim = new Packet18ArmAnimation( ((CraftEntity)myNPC.getBukkitEntity()).getHandle(),1);\n\t\thealanim = new Packet18ArmAnimation( ((CraftEntity)myNPC.getBukkitEntity()).getHandle(),6);\n\n\t\t//\tPacket derp = new net.minecraft.server.Packet15Place();\n\n\n\t\tmyNPC.getBukkitEntity().teleport(Spawn); //it should be there... but maybe not if the position was saved elsewhere.\n\n\t\t// plugin.getServer().broadcastMessage(\"NPC GUARDING!\");\n\n\t\tif (taskID == null) {\n\t\t\ttaskID = plugin.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new SentryLogicRunnable(), 40, _logicTick);\n\t\t}\n\n\n\t}",
"public void randomize() {\r\n\t\tRandom random = new Random();// random generator used to get random int\r\n\t\tint r;// will hold the random int\r\n\t\tint num;// will hold the filtered random int that determines with entity to use for a tile\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\tr = random.nextInt(32);// gets random int from 0 to 32\r\n\t\t\t\tif (r < 4) num = 0; else if (r < 8) num = 1; else if (r < 31) num = 2; else num = 3;// distributes different objects\r\n\t\t\t\tif (nodes[i * WIDTH_TILES + j].isOccupied() == false) {// if tile empty or random chosen\r\n\t\t\t\t\tnodes[i * WIDTH_TILES + j] = new Node(new Point(i * BOARD_WIDTH / WIDTH_TILES, j * BOARD_WIDTH / HEIGHT_TILES), new ImageIcon(icons[num]).getImage(), true, occupants[num]);// creates random tile\r\n\t\t\t\t}// if (random)\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t}",
"@Override\n\tpublic void randomRoom() {\n\t\tint randSide = random.nextInt(3) + 1;\n\t\tString side = properties.getSideFromProperties().get(randSide);\n\t\tint randRoom = random.nextInt(6) + 1;\n\t\tthis.room = properties.getRoomFromProperties().get(randRoom);\n\t\tthis.side = this.room.substring(0, 1).toLowerCase() + side;\n\t}",
"private void initPosition() {\r\n while (true) {\r\n int x = RandomUtil.nextInt(boardLength);\r\n int y = RandomUtil.nextInt(boardLength);\r\n if (board.isSimple(x, y)) {\r\n heroTeam.setPosition(x, y);\r\n board.setTeamPosition(x, y);\r\n break;\r\n }\r\n }\r\n }",
"private void init() {\r\n\t\tx = (float) (Math.random() * 2 - 1);\r\n\t\ty = (float) (Math.random() * 2 - 1);\r\n\t\tz[0] = (float) (Math.random() * 3f);\r\n\t\tz[1] = z[0];\r\n\t}",
"public void fillRoom() {\n\t\tint doorCounter = 0;\r\n\t\tint doorSpot = pickDoorSpot();\r\n\t\t\r\n\t\tfor (int i = 0; i < getRoomWidth(); i++) {\r\n\t\t\tfor (int j = 0; j < getRoomLength(); j++) {\r\n\t\t\t\tif (i == 0 || j == 0) {\r\n\t\t\t\t\tdungeonRoom[i][j] = new Wall(false);\r\n\t\t\t\t\tdoorCounter++;\r\n\t\t\t\t\tif (doorCounter == doorSpot) {\r\n\t\t\t\t\t\tdungeonRoom[i][j] = new Door(\" | \", false, false);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if (i == getRoomWidth() - 1 || j == getRoomLength() - 1) {\r\n\t\t\t\t\tdungeonRoom[i][j] = new Wall(false);\r\n\t\t\t\t\tdoorCounter++;\r\n\t\t\t\t\tif (doorCounter == doorSpot) {\r\n\t\t\t\t\t\tdungeonRoom[i][j] = new Door(\" | \", false, false);\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}",
"public void randomGenerateMap(int width, int height, int monsterChance, int objectChance) \r\n {\r\n for (int x = 0; x < width; x++) \r\n {\r\n for (int y = 0; y < height; y++) \r\n {\r\n Room r = new Room(x, y);\r\n if (random.nextInt(100) <= monsterChance) \r\n {\r\n r.addMonster(MonsterGenerator.GenerateRandomMonster());\r\n }\r\n if (random.nextInt(100) < objectChance)\r\n {\r\n RoomObject tempObj = RoomObjectGenerator.GenerateRandomObject();\r\n if (tempObj != null)\r\n {\r\n r.addObject(tempObj);\r\n }\r\n }\r\n map.add(r);\r\n }\r\n }\r\n currentRoom = getRoom(0, 0);\r\n if (currentRoom.getMonster() != null) \r\n {\r\n currentRoom.removeMonster();\r\n }\r\n placeMandatoryObjects();\r\n placeMandatoryItems();\r\n prepareMerchant();\r\n }",
"private static void spawnAtRandomLocation(World world, GameObject gameObject, double radius) {\n Location location = new Location();\n gameObject.setLocation(location);\n boolean found = false;\n while (!found) {\n double x = Math.random() * (world.mNortheast.getX() - world.mSouthwest.getX());\n double y = Math.random() * (world.mNortheast.getY() - world.mSouthwest.getY());\n location.setX(x);\n location.setY(y);\n found = !world.collides(gameObject, radius);\n }\n world.registerGameObject(gameObject);\n Main.logger.log(Logger.VERBOSE, \"Spawning \" + gameObject + \" @ \" + gameObject.getLocation());\n }",
"public void init() {\n\t\tfor(int i = 0; i < roamingAliens; ++i) {\n\t\t\tAlien alien = new Alien(ColorUtil.MAGENTA, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) alien); \n\t\t}\n\t\tfor(int i = 0; i < roamingAstronauts; ++i) {\n\t\t\tAstronaut astronaut = new Astronaut(ColorUtil.GREEN, screenHeight, screenWidth, speed, speedMulti);\n\t\t\tgameObject.add((GameObject) astronaut);\n\t\t}\n\t\tgameObject.add((Spaceship.getSpaceship()));\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\n\t\tthis.clearChanged();\n\t}",
"public Mazealgo() {\n Random number = new Random();\n long i = number.nextLong();\n this.random = new Random(i);\n this.seed = i;\n }",
"void animalMove(int x,int y, Living[][] map,int gridLength, int gridWidth){\r\n \r\n boolean age=map[x][y].getAge();\r\n boolean gender=map[x][y].getGender();\r\n boolean checkRight=false;\r\n boolean checkLeft=false;\r\n boolean checkUp=false;\r\n boolean checkDown=false;\r\n boolean up=false;\r\n boolean down=false;\r\n boolean right=false;\r\n boolean left=false;\r\n boolean baby=false;\r\n boolean turn=map[x][y].getMovement(); //Check to see if it moved before in the array\r\n \r\n double random=Math.random();\r\n \r\n \r\n \r\n \r\n //Checks to see if it is possible to even see to the left first\r\n if(y-1>=0){\r\n left=true;\r\n \r\n if(turn && (map[x][y-1] instanceof Plant) ){ //Check to see if there is plants and goes to plants\r\n map[x][y].gainHealth((map[x][y-1].getHealth()));\r\n map[x][y].setMovement(false); \r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n if(turn && (map[x][y-1] instanceof Sheep) && (age==map[x][y-1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y-1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y-1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){ \r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null)&& !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null)&& !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if((y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){\r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y-1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n //If it can move to the left need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y-2>=0){\r\n checkLeft=true;\r\n }\r\n }\r\n \r\n //Checks to see if it is possible to even see to the right first \r\n if(y+1<gridWidth){\r\n right=true;\r\n \r\n //Check to move on towards plants\r\n if(turn && (map[x][y+1] instanceof Plant)){\r\n map[x][y].gainHealth(map[x][y+1].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n turn=false; \r\n }\r\n \r\n if(turn && (map[x][y+1] instanceof Sheep && age==map[x][y+1].getAge()) ){ \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x][y+1].getGender()) && (map[x][y].getHealth()>19) && (map[x][y+1].getHealth()>19) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n \r\n if( (x-1>=0) && (map[x-1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheeps will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x][y+1].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x][y+1].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to the right need to check if it can foresee more incase there wasn't any place for it to go\r\n if(y+2<gridWidth){ \r\n checkRight=true;\r\n }\r\n } \r\n \r\n //Check to see if it can go up\r\n if(x-1>=0){\r\n up=true;\r\n \r\n //Check for plant to go on to upwards \r\n if(turn && (map[x-1][y] instanceof Plant) ){\r\n map[x][y].gainHealth(map[x-1][y].getHealth()); \r\n map[x][y].setMovement(false); \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n }\r\n \r\n if(turn && (map[x-1][y] instanceof Sheep) && (age==map[x-1][y].getAge()) ){ \r\n //If the ages match age must be false to be adults and both be opposite genders and have more then 19 health\r\n if(turn && !age && !(gender==map[x-1][y].getGender()) &&map[x][y].getHealth()>19 &&map[x-1][y].getHealth()>19){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep\r\n \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if( (x+1<gridLength) && (map[x+1][y]==null) && !(baby) ){\r\n map[x+1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n \r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x-1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x-1][y].setMovement(false);\r\n turn=false; \r\n baby=false;\r\n }\r\n }\r\n } \r\n }\r\n \r\n //If it can move to upwards need to check if it can foresee more incase there wasn't any place for it to go\r\n if(x-2>=0){\r\n checkUp=true; \r\n }\r\n } \r\n //Check to see where to go downwards\r\n if(x+1<gridLength){\r\n down=true; \r\n \r\n //Check to see if any plants are downwards\r\n if(turn && (map[x+1][y] instanceof Plant) ){\r\n map[x][y].gainHealth( (map[x+1][y].getHealth()));\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n turn=false;\r\n } \r\n \r\n if(turn && (map[x+1][y] instanceof Sheep) && (age==map[x+1][y].getAge()) ){ \r\n \r\n //If the ages match they must be false to be adults and both be opposite genders\r\n if(turn && !(age) && !(gender==map[x+1][y].getGender()) && (map[x][y].getHealth()>=20) && (map[x+1][y].getHealth()>=20) ){\r\n \r\n //Success rate of conceiving\r\n if( (Math.random()<=0.85) ){\r\n if( (y+1<gridLength) && (map[x][y+1]==null) && !(baby) ){ //Following ifs check to see if a baby can be made surrounding the intitiating sheep \r\n map[x][y+1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true; \r\n }\r\n if( (y-1>=0) && (map[x][y-1]==null) && !(baby) ){\r\n map[x][y-1]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if( (x-1>=0) && (map[x+1][y]==null) && !(baby) ){\r\n map[x-1][y]=new Sheep(10,0,true,true,(Math.random()>0.5)); \r\n baby=true;\r\n }\r\n if(baby){ //If baby is made then sheep will lose health and turn is therefore over \r\n map[x][y].lowerHealth(10);\r\n map[x+1][y].lowerHealth(10);\r\n map[x][y].setMovement(false);\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n baby=false;\r\n }\r\n }\r\n } \r\n } \r\n if(x+2<gridLength){\r\n checkDown=true;\r\n }\r\n } \r\n \r\n //Movement towards plant only if no immediate sheep/plants are there to move to\r\n if(turn && checkRight && (map[x][y+2] instanceof Plant) ){\r\n if(map[x][y+1]==null){\r\n \r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y+1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n if(turn && checkDown && (map[x+2][y] instanceof Plant) ){\r\n if(map[x+1][y]==null){\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x+1][y].setMovement(false);\r\n turn=false;\r\n }\r\n } \r\n if(turn && checkUp && (map[x-2][y] instanceof Plant) ){\r\n if(map[x-1][y]==null){\r\n \r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n map[x-1][y].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n if(turn && checkLeft && (map[x][y-2] instanceof Plant) ){\r\n if(map[x][y-1]==null){\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n map[x][y-1].setMovement(false);\r\n turn=false;\r\n }\r\n }\r\n \r\n //Random Movement if there are no plants to move towards \r\n if(turn && right && (random<=0.2) ){\r\n if(map[x][y+1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y+1]=map[x][y];\r\n map[x][y]=null; \r\n }\r\n }\r\n if(turn && left && (random>0.2) && (random<=0.4) ){\r\n if(map[x][y-1]==null){\r\n map[x][y].setMovement(false);\r\n map[x][y-1]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && up && (random>0.4) && (random<=0.6) ){\r\n if(map[x-1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x-1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n if(turn && down && (random>0.6) && (random<=0.8) ){\r\n if(map[x+1][y]==null){\r\n map[x][y].setMovement(false);\r\n map[x+1][y]=map[x][y];\r\n map[x][y]=null;\r\n }\r\n }\r\n }",
"public void generate() {\n\t\t// all cardinal direction for up,down,left and right\n\t\tthis.allDirections = Arrays.asList(new Point(-1, 0), new Point(1, 0), new Point(0, 1),\n\t\t\t\tnew Point(0, -1));\n\n\t\twallList = new ArrayList<>();\n\t\tgenerateAddWalls(width / 2, height / 2);\n\t\t// generateAddWalls( 3, 3);\n\n\t\tRandom rand = new Random();\n\n\t\twhile (wallList.size() > 0) {\n\t\t\tPoint wall = wallList.get(rand.nextInt(wallList.size()));\n\n\t\t\tint emptyWallX = wall.x;\n\t\t\tint emptyWallY = wall.y;\n\n\t\t\tfor (Point point : allDirections) {\n\t\t\t\tif (maze[wall.x + point.x][wall.y + point.y] == Block.EMPTY) {\n\t\t\t\t\temptyWallX = wall.x + point.x;\n\t\t\t\t\temptyWallY = wall.y + point.y;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// find if oposite direction is empty by inverting the delta\n\t\t\tint deltaX = wall.x - emptyWallX;\n\t\t\tint deltaY = wall.y - emptyWallY;\n\n\t\t\tif (maze[wall.x + deltaX][wall.y + deltaY] == Block.WALL) {\n\t\t\t\tmaze[wall.x][wall.y] = Block.EMPTY;\n\t\t\t\tgenerateAddWalls(wall.x + deltaX, wall.y + deltaY);\n\t\t\t}\n\n\t\t\twallList.remove(wall);\n\t\t}\n\t}",
"protected void setRoom() {\n\t\tfor(int x = 0; x < xSize; x++) {\n\t\t\tfor (int y = 0; y < ySize; y++) {\n\t\t\t\tif (WALL_GRID[y][x] == 1) {\n\t\t\t\t\tlevelSetup[x][y] = new SimpleRoom();\n\t\t\t\t} else{\n\t\t\t\t\tlevelSetup[x][y] = new ForbiddenRoom();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t\t// put special rooms\n\t\tlevelSetup[6][0] = new RoomWithLockedDoor();\n\t\tlevelSetup[2][6] = new FragileRoom();\n\n\t}",
"public static void main(String[] args) {\n Hero aventurier = new Hero(200, 100);\n Equipement epee = new Equipement(\"epee\", 0);\n Monsters sorciere = new Monsters(\"witch\", 180, 0);\n Monsters barbare = new Monsters(\"olaf\", 160, 0);//Degat et point attaque sont à 0 car ils prendront les valeurs du random\n\n\n System.out.println(\"Bienvenue dans le dongeon\");\n System.out.println(\"Vous avez \" + aventurier.getPointDeVie() + \" Point de vie, \" + aventurier.getFlasqueDeau() + \" flasques pour combatre vos ennemies et une \");\n\n // i=room ;si pointdevie > room-->room+1 sinon game over(pas besoin de creer une classe)\n int i = 1;\n do {\n\n if (aventurier.getPointDeVie() > 0) ;\n {\n System.out.println(\"Room\" + i);\n\n Monsters enemieActuel = barbare;\n//nbr aleatoire entre sorcier et monster\n Random random = new Random();\n int nbrAl = random.nextInt(2 );\n//si nbr=0 = sorcier sinon barbare\n if (nbrAl == 0) {\n enemieActuel = sorciere;\n //sinon barbare\n } else {\n enemieActuel = barbare;\n }\n\n\n //Si barbare faire le do while\n\n if (enemieActuel == barbare) {\n\n do { //Faire des degats aleatoire grace au random à l'aide de l'epee\n epee.setDegat((int) (5 + (Math.random() * 30)));//comme .set dega=0 on lui donne la valeur de math.random\n int degat = epee.getDegat(); //.get renvoi la valeur au int nommer degat\n barbare.setPointDeVie(barbare.getPointDeVie() - degat);//vie - degat\n System.out.println(\"Il reste au barbare \" + barbare.getPointDeVie());//nouvelle valeur de point de vie\n\n\n //idem avec l'aventurier\n barbare.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = barbare.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n // tant que les Pvie de l'aventurier >= 0 et idem barbare continuer le combat\n } while (aventurier.getPointDeVie() >= 0 && barbare.getPointDeVie() >= 0);\n //à la fin du combat si pvie de l'aventurier sont >0 et que i (room) egale 5 \"gagné\"\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n\n //Si juste pvie de l'aventurier > 0 --->room suivante\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n //on redonne les valeurs de depart pdeVie pour la nouvelle room\n aventurier.setPointDeVie(200);\n barbare.setPointDeVie(180);\n i+=1;\n }\n\n // sinon room = 6 pour envoyer le sout \"game over\"\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n\n\n\n }\n\n //IDEM avec sorciere\n else {\n do {\n\n\n aventurier.setFlasqueDeau((int) (5 + (Math.random() * 30)));\n int degat = aventurier.getFlasqueDeau();\n sorciere.setPointDeVie(sorciere.getPointDeVie() - degat);\n System.out.println(\"Il reste à la sorciere \" + sorciere.getPointDeVie());\n\n sorciere.setPointAttaque((int) (5 + (Math.random() * 30)));\n int pointDattaque = sorciere.getPointAttaque();\n aventurier.setPointDeVie(aventurier.getPointDeVie() - pointDattaque);\n System.out.println(\"il vous reste \" + aventurier.getPointDeVie());\n\n } while (aventurier.getPointDeVie() >= 0 && sorciere.getPointDeVie() >= 0);\n if (aventurier.getPointDeVie() > 0 && i==5) {\n System.out.println(\"Bravo vous avez gagné ! =)\");\n }else if (aventurier.getPointDeVie() > 0 ){\n System.out.println(\"Bravo tu passes à la pièce suivante\");\n aventurier.setPointDeVie(200);\n sorciere.setPointDeVie(160);\n i+=1;\n }\n else {\n System.out.println(\"Game Over\");\n i = 6;\n }\n }\n } } while (i <= 5 && aventurier.getPointDeVie() > 0);\n\n\n }",
"public void setBasicNewGameWorld()\r\n\t{\r\n\t\tlistCharacter = new ArrayList<Character>();\r\n\t\tlistRelationship = new ArrayList<Relationship>();\r\n\t\tlistLocation = new ArrayList<Location>();\r\n\t\t\r\n\t\t//Location;\r\n\t\t\r\n\t\tLocation newLocationCity = new Location();\r\n\t\tnewLocationCity.setToGenericCity();\r\n\t\tLocation newLocationDungeon = new Location();\r\n\t\tnewLocationDungeon.setToGenericDungeon();\r\n\t\tLocation newLocationForest = new Location();\r\n\t\tnewLocationForest.setToGenericForest();\r\n\t\tLocation newLocationJail = new Location();\r\n\t\tnewLocationJail.setToGenericJail();\r\n\t\tLocation newLocationPalace = new Location();\r\n\t\tnewLocationPalace.setToGenericPalace();\r\n\t\t\r\n\t\tlistLocation.add(newLocationCity);\r\n\t\tlistLocation.add(newLocationDungeon);\r\n\t\tlistLocation.add(newLocationForest);\r\n\t\tlistLocation.add(newLocationJail);\r\n\t\tlistLocation.add(newLocationPalace);\r\n\t\t\r\n\t\t\r\n\t\t//Item\r\n\t\tItem newItem = new Item();\r\n\t\t\r\n\t\tString[] type =\t\tnew String[]\t{\"luxury\"};\r\n\t\tString[] function = new String[]\t{\"object\"};\t\r\n\t\tString[] property = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900101,\"diamond\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationPalace.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"weapon\"};\r\n\t\tfunction = new String[]\t{\"equipment\"};\t\r\n\t\tproperty = new String[]\t{\"weapon\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(500101,\"dagger\", type, function, \"null\", property, 1, false);\t\t\r\n\t\tnewLocationJail.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\ttype =\t\tnew String[]\t{\"quest\"};\r\n\t\tfunction = new String[]\t{\"object\"};\t\r\n\t\tproperty = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900201,\"treasure_map\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationDungeon.addOrUpdateItem(newItem);\r\n\r\n\t\t\r\n\t\t////// Add very generic item (10+ items of same name)\r\n\t\t////// These item start ID at 100000\r\n\t\t\r\n\t\t//Add 1 berry\r\n\t\t//100000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"berry\"};\r\n\t\tnewItem.setNewItem(100101,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100103,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t*/\r\n\r\n\t\t\r\n\t\t//Add 2 poison_plant\r\n\t\t//101000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem.setNewItem(100201,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100202,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\r\n\t\t//player\r\n\t\tCharacter newChar = new Character(\"player\", 1, true,\"city\", 0, false);\r\n\t\tnewChar.setIsPlayer(true);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//UNIQUE NPC\r\n\t\tnewChar = new Character(\"mob_NPC_1\", 15, true,\"city\", 0, false);\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\t\t\r\n\t\tnewChar = new Character(\"king\", 20, true,\"palace\", 3, true);\r\n\t\tnewChar.addOccupation(\"king\");\r\n\t\tnewChar.addOccupation(\"noble\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\r\n\t\t//Mob character\r\n\t\tnewChar = new Character(\"soldier1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// REMOVE to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"soldier2\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"soldier3\", 20, true,\"palace\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//listLocation.add(newLocationCity);\r\n\t\t//listLocation.add(newLocationDungeon);\r\n\t\t//listLocation.add(newLocationForest);\r\n\t\t//listLocation.add(newLocationJail);\r\n\t\t//listLocation.add(newLocationPalace);\r\n\t\t\r\n\t\tnewChar = new Character(\"doctor1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addSkill(\"heal\");\r\n\t\tnewChar.addOccupation(\"doctor\");\r\n\t\tlistCharacter.add(newChar);\t\r\n\t\tnewChar = new Character(\"blacksmith1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"blacksmith\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"thief1\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"thief\");\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"unlock\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(300101,\"lockpick\", type, function, \"thief1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// Remove to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"messenger1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"messenger\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\tnewChar = new Character(\"miner1\", 20, true,\"dungeon\", 1, true);\r\n\t\tnewChar.addOccupation(\"miner\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"lumberjack1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"lumberjack\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewChar = new Character(\"scout1\", 20, true,\"forest\", 2, true);\r\n\t\tnewChar.addOccupation(\"scout\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"farmer1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"farmer\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"merchant1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addOccupation(\"merchant\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\t// Merchant Item\r\n\t\t//NPC item start at 50000\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200101,\"potion_poison\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"healing\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200201,\"potion_heal\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"cure_poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200301,\"antidote\", type, function, \"merchant1\", property, 1, false);\t\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\t//add merchant to List\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Relation\r\n\t\tRelationship newRelation = new Relationship();\r\n\t\tnewRelation.setRelationship(\"merchant1\", \"soldier1\", \"friend\");\r\n\t\tlistRelationship.add(newRelation);\r\n\t\t\r\n\t\t//\r\n\t\r\n\t}",
"public void addAsteroid() \n\t{\n\t\tgameObj.add(new Asteroid(getHeight(), getWidth()));\n\t\tSystem.out.println(\"Asteroid added\");\n\t\tnotifyObservers();\n\t}",
"private void createDefaultGalaxy(){\n milkyWay.setGalaxyColonies(37579321);\n milkyWay.setGalaxyPopulation(1967387132);\n milkyWay.setGalaxyFleets(237);\n milkyWay.setGalaxyStarships(34769);\n }",
"public City(){\n this.x = (int)(Math.random()*200);\n this.y = (int)(Math.random()*200);\n }",
"public void randomWalk() {\n if (getX() % GameUtility.GameUtility.TILE_SIZE < 5 && getY() % GameUtility.GameUtility.TILE_SIZE < 5) {\n if (canChangeDirection) {\n direction = (int) (Math.random() * 3);\n direction += 1;\n direction *= 3;\n canChangeDirection = false;\n }\n }\n move(direction);\n if (timer >= timeTillChanngeDirection) {\n canChangeDirection = true;\n timer = 0;\n }\n\n if (lastLocation.x == this.getLocation().x && lastLocation.y == this.getLocation().y) {\n direction = (direction + 3) % 15;\n canChangeDirection = false;\n\n }\n lastLocation = this.getLocation();\n\n }",
"public void initMob() {\n this.lLegGeom.setName(\"Mob/\" + this.id + \"/lLeg\");\n this.rLegGeom.setName(\"Mob/\" + this.id + \"/rLeg\");\n this.bodyGeom.setName(\"Mob/\" + this.id + \"/Body\");\n this.lArmGeom.setName(\"Mob/\" + this.id + \"/lArm\");\n this.rArmGeom.setName(\"Mob/\" + this.id + \"/rArm\");\n this.headGeom.setName(\"Mob/\" + this.id + \"/Head\");\n this.weaponGeom.setName(\"Mob/\" + this.id + \"/Weapon\"); \n \n this.armMat.setColor(\"Color\",ColorRGBA.Black);\n this.legMat.setColor(\"Color\",ColorRGBA.Black);\n this.bodyMat.setColor(\"Color\",ColorRGBA.Black);\n \n //Refactor boss ActorControl into MobControl with MonkeyBrains\n CapsuleCollisionShape capsuleShape = new CapsuleCollisionShape(2.5f,4.5f,1);\n this.mobControl = new CharacterControl(capsuleShape, 3f);//Step size is set in last argument\n this.mobControl.setJumpSpeed(20);\n this.mobControl.setFallSpeed(45);\n this.mobControl.setGravity(50);\n \n }",
"public void generate() {\n\n enemies.clear();\n\n for (int i = 0; i < (GRID_SIZE * ROOM_WIDTH); i++) {\n for (int j = 0; j < (GRID_SIZE * ROOM_HEIGHT); j++) {\n terrain[i][j] = null;\n }\n }\n\n RoomType[][] rooms = new RoomType[GRID_SIZE][GRID_SIZE];\n for(int i = 0; i < GRID_SIZE; i++) {\n for (int j = 0; j < GRID_SIZE; j++) {\n rooms[i][j] = RoomType.None;\n }\n }\n\n left = down = false;\n int x = random.nextInt(GRID_SIZE), y = 0;\n\n startPosition = new Vector2();\n startPosition.y = 4 * Tile.SIZE;\n startPosition.x = ((x + 1) * ROOM_WIDTH * Tile.SIZE) + 5 * Tile.SIZE;\n\n\n startRoom = true;\n while(true) {\n down = false;\n getDir();\n\n if(left) {\n x--;\n }\n else {\n x++;\n }\n\n if(x >= GRID_SIZE) {\n x--;\n down = true;\n }\n else if(x < 0) {\n x++;\n down = true;\n }\n\n if(down) {\n if(startRoom) {\n startRoomX = x;\n startRoomY = y;\n startRoom = false;\n }\n rooms[x][y] = RoomType.Down;\n y++;\n left = !left;\n if(y >= GRID_SIZE) {\n rooms[x][y - 1] = RoomType.Standard;\n endRoomX = x;\n endRoomY = y - 1;\n break;\n }\n }\n\n if(!down) {\n if(startRoom) {\n startRoomX = x;\n startRoomY = y;\n startRoom = false;\n }\n rooms[x][y] = RoomType.Standard;\n }\n else {\n if(startRoom) {\n startRoomX = x;\n startRoomY = y;\n startRoom = false;\n }\n rooms[x][y] = RoomType.getEnum(random.nextInt(1) + 3);\n }\n }\n\n for (int i = 0; i < GRID_SIZE; i++) {\n for (int j = 0; j < GRID_SIZE; j++) {\n System.out.print(rooms[i][j].VALUE + \" \");\n generateRoom(i, j, rooms[i][j]);\n }\n System.out.println(\"\");\n }\n }",
"public Asteroid newAsteroid(GameScreen screen){\n\t\tthis.asteroid = new Asteroid(screen);\n\t\treturn asteroid;\n\t}",
"public OverWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(1024, 600, 1, false);\n Setup();\n }",
"@Override\n public void update() {\n App.updateScore();\n App.updateRocketsCount();\n checkLevel();\n\n if(pickupSpawnCooldown > 0){\n pickupSpawnCooldown--;\n }\n\n player.setSpeed(new Point2D(player.getSpeed().getX()*0.98,player.getSpeed().getY()*0.98));\n int rand = random.nextInt(100);\n if(rand == 0 && asteroidsNumber<asteroidsMaxNumber){\n createAsteroid();\n asteroidsNumber++;\n }\n rand = random.nextInt(500);\n if(rand == 0 && astronautsNumber<astronautsMaxNumber){\n createAstronaut();\n astronautsNumber++;\n }\n }",
"public HighwayCar(){\r\n \t\r\n \tint dir = (int) (Math.random() * 4 % 4);\r\n \t\r\n setDirection(dir * Math.PI / 2); \r\n \r\n setProperty(\"icon\", \"/robot.png\");\r\n setProperty(\"size\", 20);\r\n Clock.addClockListener(this, 2);\r\n }",
"public void initializeMaze(){\n for(int i = 0; i < 20; i ++){\n for(int j = 0; j < 15; j ++){\n if((i % 2 == 1) && (j % 2 == 1)){\n maze[i][j] = NOTVISIBLESPACE;\n }\n else{\n maze[i][j] = NOTVISIBLEWALL;\n }\n }\n }\n\n for(int i = 0; i < 15; i ++){\n maze[19][i] = NOTVISIBLEWALL;\n }\n }",
"@Override\n\tpublic void generate(World world, Random random, IDecoratedRoom room, Theme theme, StyleSheet styleSheet,\n\t\t\tLevelConfig config) {\n\t\tgetGenerationStrategy().generate(world, random, room, theme, styleSheet, config);\n\n\t\t/*\n\t\t * add additional elements\n\t\t */\n\t\tHallway hw = (Hallway)room.getRoom();\n\t\t// build the doors\n\t\tfor (IDoor door : hw.getDoors()) {\n\t\t\tif (hw.getAlignment() == Alignment.HORIZONTAL) {\n\t\t\t\t// test which side the door is on\n\t\t\t\tif (door.getCoords().getX() == hw.getMinX()) {\n\t\t\t\t\tif (door.getCoords().getZ() == door.getRoom().getMinZ()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.WEST, Direction.SOUTH);\n\t\t\t\t\t}\n\t\t\t\t\telse if (door.getCoords().getZ() == door.getRoom().getMaxZ()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.WEST, Direction.NORTH);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.WEST);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (door.getCoords().getX() == hw.getMaxX()) {\n\t\t\t\t\tif (door.getCoords().getZ() == door.getRoom().getMinZ()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.EAST, Direction.SOUTH);\n\t\t\t\t\t}\n\t\t\t\t\telse if (door.getCoords().getZ() == door.getRoom().getMaxZ()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.EAST, Direction.NORTH);\n\t\t\t\t\t}\n\t\t\t\t\telse {\t\t\t\t\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.EAST);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// VERTICAL (NORTH/SOUTH)\n\t\t\telse {\n\n\t\t\t\tif (door.getCoords().getZ() == hw.getMinZ()) {\n\t\t\t\t\tif (door.getCoords().getX() == door.getRoom().getMinX()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.NORTH, Direction.EAST);\n\t\t\t\t\t}\n\t\t\t\t\telse if (door.getCoords().getX() == door.getRoom().getMaxX()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.NORTH, Direction.WEST);\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.NORTH);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (door.getCoords().getZ() == hw.getMaxZ()) {\n\t\t\t\t\tif (door.getCoords().getX() == door.getRoom().getMinX()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.SOUTH, Direction.EAST);\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse if (door.getCoords().getX() == door.getRoom().getMaxX()) {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.SOUTH, Direction.WEST);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tbuildDoorway(world, door.getCoords(), Direction.SOUTH);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.7594092",
"0.72830003",
"0.70364904",
"0.6804202",
"0.6748914",
"0.6748552",
"0.66229147",
"0.6522389",
"0.6499612",
"0.6455686",
"0.64497095",
"0.64453727",
"0.6398425",
"0.63404644",
"0.6334242",
"0.63141423",
"0.62799937",
"0.62650937",
"0.61897814",
"0.61868477",
"0.6123082",
"0.61126494",
"0.60727185",
"0.60249203",
"0.60062385",
"0.59673584",
"0.59609425",
"0.5956716",
"0.59479594",
"0.59313333",
"0.59110606",
"0.5897522",
"0.5896214",
"0.5891426",
"0.5875469",
"0.58656156",
"0.5812308",
"0.5780501",
"0.57494754",
"0.57478815",
"0.574477",
"0.57348955",
"0.57337",
"0.5713614",
"0.56955117",
"0.56921434",
"0.5691378",
"0.5689286",
"0.5668116",
"0.56650287",
"0.56421876",
"0.56377393",
"0.56047755",
"0.56035906",
"0.5598051",
"0.55973154",
"0.5593388",
"0.55902475",
"0.55885464",
"0.5582184",
"0.5576281",
"0.5552522",
"0.5549253",
"0.55342156",
"0.55268836",
"0.5511561",
"0.5508247",
"0.54937375",
"0.5492517",
"0.54854876",
"0.54837835",
"0.5474376",
"0.5471056",
"0.54668736",
"0.54668295",
"0.5465806",
"0.5462299",
"0.5445219",
"0.5443147",
"0.5437871",
"0.54289037",
"0.5423957",
"0.54108757",
"0.5405976",
"0.53984296",
"0.53975",
"0.5391917",
"0.53891945",
"0.5387428",
"0.53855205",
"0.5382738",
"0.5382554",
"0.53799695",
"0.5374939",
"0.53744024",
"0.5373975",
"0.5370672",
"0.5362237",
"0.5360153",
"0.5360047"
] | 0.7212583 | 2 |
toString that prints the size of the asteroid, and calls super.toString to get the toString from MovableObject | public String toString()
{
String parentDesc = super.toString();
String myDesc = "[Size: " + this.size + " ]";
return parentDesc + myDesc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public String toString()\n {\n return \"The square's dimensions are \" + getLength() + \" X \" + getWidth();\n }",
"public String toString(){\n\t\treturn \"(\" + width + \" , \" + height + \")\" ;\n\t}",
"public String toString() {\r\n return name + \" \" + height + \" \" + width + \" \" + depth + \" \" + weight;\r\n }",
"@Override\n public String toString() {\n return position.toString()\n + rotation.toString()\n + scale.toString();\n }",
"public String toString(){\n return this.tileType.toString() + this.position + this.orientation;\n }",
"public String toString() {\n String result = super.toString() + \"\\n\";\n result += \"The side length is: \" + sideLength;\n return result;\n }",
"@Override\n public String toString(){\n StringBuffer result = new StringBuffer();\n \n for (Movable m: things){\n result.append(m.toString()).append(\"\\n\");\n }\n return result.toString().trim();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn (\"rect(\" + corner.x + \", \" + corner.y + \", \" + size.x + \", \"\n\t\t\t\t+ size.y + \")\");\n\t}",
"@Override\r\n public String toString() {\r\n return \"Rectangle length: \" + length + \", Rectangle width: \" + width + \", Rectangle color: \" + super.toString();\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(this.width+\"\"+this.height+\"\"+getPerimeter()+\"\"+getArea());\n\t}",
"public String toString() {\r\n\t\treturn getx() + \" \" + gety() + \" \" + getWidth() + \" \" + getHeight() + \" \" + getColor() + \" \" + getXSpeed()+ \" \" + getYSpeed();\r\n\t}",
"public String toString()\n\t{\n\t\treturn String.format(\"Square at x=%d, y=%d with sides %d\", anchor.x, anchor.y, oneside);\n\t}",
"public String toString() {\n return \"Name: \" + this.name + \"\\nType: Rectangle\" + \"\\nCenter: (\" + this.xPos + \",\"\n + this.yPos + \"), Width: \" + this.width + \", Height: \" + this.height + \", Color: (\"\n + this.color.getRed() + \",\" + this.color.getGreen() + \",\" + this.color.getBlue()\n + \")\\nAppears at t = \" + this.startTime + \"\\nDisappears at t = \" + this.endTime;\n }",
"public String toString()\n\t{\n\t\treturn String.format(Locale.getDefault(), \"{Width:%1$ Height:%2$ Format:%3$ AspectRatio:%4$}\", new Object[] { this._width, this._height, this._format, this.getAspectRatio() });\n\t}",
"protected String sizeString()\n {\n return (\" (\" + map.getSizeX() + \" x \" + map.getSizeY() + \")\");\n }",
"public String toString()\n\t{\n\t\treturn \"x:\"+xPos+\" y:\"+yPos+\" width:\"+width+\" height:\"+height+\" color:\"+ color;\n\t}",
"@Override\r\n public String toString() {\r\n return \"the car \"+this.id+\"has as size \"+this.size+\r\n \"and is oriented \"+this.orientation+\r\n \" and have a currentPosition in \"+this.currentPosition;\r\n }",
"@Override\n public String toString() {\n return \"Car \" + this.id + \". Size : \" + this.size\n + \".\\nOrientation :\" + this.orientation\n + \". Current position : \" + this.currentPosition;\n }",
"public String toString() {\n\t\treturn \"oval\" + \" \" + \"(\" + rb + \",\" + cb + \") \" + \"(\" + height + \",\" + width + \") \" + \"(\" + character + \")\";\n\t}",
"@Override // Inherited from the Object class.\n public String toString() {\n return \"gear: \" + gear + \" cadence: \" + cadence + \" speed: \" + speed +\n \" name: \" + name;\n }",
"public String toString() {\n //arena info\n String locations = \"The arena is \" + xSize + \" x \" + ySize;\n //pieces info\n for (Pieces d : drones) {\n locations += \"\\n\";\n locations += d.toString();\n }\n\n return locations;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn name() + \" \" + \"w:\" + weight + \" \" + \"d:\" + diameter;\n\t}",
"@Override\n public String toString() {\n return super.toString() + \"| Weight: \" + weight + \"\" + \"| Time of PIN: \" + timePin + \"| Size of Screem: \" + sizeScreem;\n }",
"@Override//overring a library function\n public String toString() {\n return shape + \" \" + name;//toString() is called everytime printing is done\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tfor(GameObject object : this.objects) {\r\n\t\t\tsb.append(object.toString() + \"\\n\");\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString(){\n return String.format(\n \"Width: %.2f\\nLength: %.2f\\nArea: %.2f\\nPerimeter: %.2f\\n\",\n getLength(), getWidth(), getArea(), getPerimeter());\n }",
"public String toString() {\n return super.toString() + \" with specifications:\\n\\tNumber of strings: \" + nrStrings \n + \"\\n\\tString size: \" + stringSize + \"mm\";\n }",
"public String toString() {\n\t\treturn getClass().getName() + \"[mode=\" + mode + \",size=\" + size\n\t\t\t + \",hgap=\" + hgap + \",vgap=\" + vgap + \"]\";\n\t}",
"public String toString()\n {\n String contents = \"\";\n double totalArea = 0;\n \n contents = contents + \"\\nThere are \" + shapes.size() + \" shapes in the container.\\n\";\n \n for(int i = 0; i < shapes.size(); i++)\n {\n totalArea = totalArea + shapes.get(i).getArea();\n contents = contents + shapes.get(i).toString();\n }\n contents = contents + \"\\nand total area of shapes is \" + totalArea + \"\\n\";\n return contents;\n }",
"public String toString() {\r\n\t\treturn super.toString() +\" \"+ getXSpeed() +\" \"+ getYSpeed();\r\n\t}",
"public String toString() {\n\t\treturn (\n\t\t\t\t\"PlayerCyborg: loc=\" + Math.round(this.getX()*10)/10 + \",\" + Math.round(this.getY()*10)/10 +\n\t\t\t\t\" color=\" + this.getColorToString() + \" heading=\" + this.getHeading() + \n\t\t\t\t\" speed=\" + this.getSpeed() + \"\\n size=\" + this.getSize() + \n\t\t\t\t\" maxSpeed=\" +this.getMaximumSpeed() + \" steeringDegree=\"+ this.getSteeringDirection() + \n\t\t\t\t\" energyLevel=\" + this.getEnergyLevel() + \" damageLevel=\" + this.getDamageLevel()\n\t\t\t\t);\n\t}",
"public String toString() {\n\t\t \n\t\tString s = \"Non-Player Ship: loc=\"+Math.round(this.getLocation().get(0)*10.0)/10.0+\",\"+Math.round(this.getLocation().get(1)*10.0)/10.0+\n\t\t\t\t\" color=[\"+ColorUtil.red(this.getColor())+\", \"+ColorUtil.green(this.getColor())+\", \"+ColorUtil.blue(this.getColor())+\"]\"\n\t\t\t\t\t\t+ \" speed=\"+this.getSpeed()+\" dir=\"+this.getDirection()+\" size=\"+this.getSize();\n\t\treturn s;\n\t}",
"@Override\n public String toString() {\n String out = \"Galaxy model \\n\";\n out+=\"Number of particles: \"+this.particles.size()+\"\\n\";\n if (this.qt!=null) {\n out += \"Total mass: \" +qt.getMass()+\"\\n\";\n out+= \"centered at: \"+qt.getCenterOfMass().toString()+\"\\n\";\n }\n return out;\n }",
"public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }",
"public String toString(){\n String s = \"id: \" + Byte.toString(id) + \" \";\n s+= \"name: \"+name+ \" \";\n s+= \"hp: \" + Byte.toString(hp) + \" \";\n s+= \"xPos: \" + Short.toString(xPos)+\" \";\n s+= \"yPos: \" + Short.toString(yPos)+\"\\n\";\n for (Pair<Byte,Short> pair : weapons){\n s+= \"weaponId: \" + Byte.toString(pair.getKey()) + \" \" + \"ammo: \" + Short.toString(pair.getValue())+'\\n';\n }\n s+= \"Bullets fired:\"+'\\n';\n for(Bullet b : bulletsFired){\n s+= b.toString()+'\\n';\n }\n s+= \"Weapons tracked:\"+'\\n';\n for(Byte b : weaponEntryTracker){\n s+= Byte.toString(b)+'\\n';\n }\n s+= \"initial y: \" +Short.toString(initial_y)+'\\n';\n s+= \"current weapon: \" + Byte.toString(currentWeapon.getKey()) + \" ammo: \" + Short.toString(currentWeapon.getValue())+'\\n';\n s+= \"shooting direction: \" +Short.toString(shootingDirection)+'\\n';\n return s;\n }",
"public String toString() {\r\n\t\tString out = \"\";\r\n\t\tfor (int i = 0; i < this.size; i++) {\r\n\t\t\tout += this.objectHeap[i] + \" \" + this.costHeap[i] + \"\\n\";\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"@Override\n\tpublic String toString(){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] dimensions = {\"i\", \"j\", \"k\", \"l\", \"m\", \"n\", \"o\", \"p\", \"r\", \"s\", \"t\", \"u\", \"v\", \"z\"};\n\t\t\n\t\tsb.append(\"V = \");\n\t\tsb.append(this.get(0));\n\t\tsb.append(dimensions[0]);\n\t\tfor(int i=1; i<this.getDimension(); i++){\n\t\t\tsb.append(\" + \");\n\t\t\tsb.append(this.get(i));\n\t\t\tsb.append(dimensions[i]);\n\t\t}\n\t\t\t\t\n\t\treturn sb.toString();\n\t}",
"public String toString(){\n return \"X = \" + xPosition + \", Y = \" + yPosition + \", width = \" + widthRadius + \", height = \" + \n heightRadius;\n }",
"@Override\r\n public String toString() {\r\n return this.objectName + \"{Name: \" + this.getName() + \", index: \" + this.getIndexList() + \", Measured m/z: \" + this.getMeasureValues() + \", Intensities: \" + this.getItensityValues() + \"}\";\r\n }",
"public String toString()\n {\n return getClass().getName() + \n \t\t\" name=\" + name +\n \t\t\"\\n Movement=\" + movement + \n \t\t\"\\n Weapon Skill=\" + weaponSkill + \n \t\t\"\\n Balistic Skill=\" + balisticSkill +\n \t\t\"\\n Strength=\" + strength +\n \t\t\"\\n Toughness=\" + toughness +\n \t\t\"\\n Wounds=\" + wounds +\n \t\t\"\\n Initiative=\" + strength +\n \t\t\"\\n Attacks=\" + attacks ;\n }",
"public String toString() {\n // DecimalFormat class is used to format the output\n DecimalFormat df = new DecimalFormat(\".0\");\n return \"\\nCoordinates of Parallelogram are:\\n\"\n + super.toString()\n + \"\\nWidth is :\"\n + df.format(width)\n + \"\\nHeight is :\"\n + df.format(height)\n + \"\\nArea is :\"\n + df.format(area());\n }",
"public String toString() {\n\t\tString str = \"\";\n\t\tfor (int i = 1 ; i < size - 1; i++ ){\n\t\t\tstr = str + getBlock(i);\n\t\t}\n\t\treturn str;\n\t}",
"public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }",
"@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }",
"@Override\n public String toString() {\n return String.valueOf(position.getX() + \" \" + position.getY() + \" \" + visible + \" \" + speed.getX() + \"\\n\");\n }",
"@Override\r\n\t\t\tpublic String toString(){\r\n\t\t\t\treturn \"Net: \"+\"Loc:(\"+this.getX()+\",\"+this.getY()+\") Size: \"+this.size;\r\n\t\t\t}",
"public String toString() {\n\t\t\treturn shape;\n\t\t}",
"public String toString(){\r\n return \"Breed: \" + this.Breed + \"\\nName: \"+ super.name + \"\\nPrimary Color: \" +this.PrimaryColor + \"\\nSize: \" + this.Size + \"\\nAge: \" + super.age;\r\n }",
"public String toString() {\n String output = dimension() + \"\\n\";\n for (int i = 0; i < blocks.length; i++) {\n for (int j = 0; j < blocks[i].length; j++) {\n if (blocks[i][j] < 10) {\n output += \" \";\n }\n output += blocks[i][j] + \" \";\n }\n output += \"\\n\";\n }\n return output;\n }",
"public String toString()\r\n/* 129: */ {\r\n/* 130:131 */ String str = \"\";\r\n/* 131:132 */ if (getAmplifier() > 0) {\r\n/* 132:133 */ str = getPotionName() + \" x \" + (getAmplifier() + 1) + \", Duration: \" + getDuration();\r\n/* 133: */ } else {\r\n/* 134:135 */ str = getPotionName() + \", Duration: \" + getDuration();\r\n/* 135: */ }\r\n/* 136:137 */ if (this.splash) {\r\n/* 137:138 */ str = str + \", Splash: true\";\r\n/* 138: */ }\r\n/* 139:140 */ if (!this.showParticles) {\r\n/* 140:141 */ str = str + \", Particles: false\";\r\n/* 141: */ }\r\n/* 142:143 */ if (Potion.potionList[this.id].j()) {\r\n/* 143:144 */ return \"(\" + str + \")\";\r\n/* 144: */ }\r\n/* 145:146 */ return str;\r\n/* 146: */ }",
"@Override\n\tpublic String toString(){\n\t\treturn \"\" + lives + \", \" + score + \", \" + brainX + \", \" + brainY + \", \" + zombieX;\n\t}",
"public String toString()\n {\n return \"I am the nice \" + NAME + \", I am now standing on square \" + x + \" , \" + y + \".\";\n }",
"public String toString() {\n String str = \"\";\n str += \"Shape: \" + name + \"\\n\";\n str += \"Center: \" + \"(\" + (xPosition+radius) + \",\" + (yPosition+radius) + \")\" + \"\\n\";\n str += \"Radius: \" + radius + \"\\n\";\n str += \"Color: \" + color + \"\\n\";\n str += \"Selected: \" + isSelected + \"\\n\";\n return str;\n }",
"@Override\n public String toString() {\n //String formatieren einsetzen, je nachdem wie wir das darstellen wollen\n return content.getId() + \", Spielname: \" + content.getName() + \", Punkte/Treffer: \" + content.getConfig().getHitPoints() + \", Punkte/Schiff versenkt: \" + content.getConfig().getSunkPoints() + \", Bedenkzeit: \" + content.getConfig().getRoundTime() + \" sek, Anzahl Schüsse: \" + content.getConfig().getShotCount();\n }",
"public String toStringShort() {\n\treturn AbstractFormatter.shape(this);\n}",
"@Override\n public String toString() {\n\t// TODO\n\treturn super.toString() + \" Sides: \" + this.getSide();\n }",
"@Override\n public String toString() {\n return \"Container{\" + \"id=\" + id + \", realPosition=\" + realPosition + \", indexPosition=\" + indexPosition + \", size=\" + size + '}';\n }",
"@Override\r\n public String toString() {\r\n String result = \"\";\r\n\r\n // Convert each sprite in each ArrayList to its string representation, then print it out.\r\n for (ArrayList<T> list : new ArrayList<ArrayList<T>>()) {\r\n for (T sprite : list) {\r\n result += sprite.toString();\r\n }\r\n result += \"\\n\";\r\n }\r\n\r\n return result;\r\n }",
"@Override\r\n public final String toString() {\r\n return String.format(\"%s[position=%d, limit=%d, capacity=%d]\",\r\n getClass().getName(),\r\n position(),\r\n limit(),\r\n capacity());\r\n }",
"public String toString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint n = dimension();\r\n\t\tsb = sb.append(n + \"\\n\");\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\tfor (int j = 0; j < n; j++) {\r\n\t\t\t\tsb = sb.append(\" \" + this.blocks[i][j]);\r\n\t\t\t}\r\n\t\t\tif (i != n) {\r\n\t\t\t\tsb = sb.append(\"\\n\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public String toString() {\r\n return \"Shape: \" + this.getClass().getName() +\r\n \"\\t radius: \" + radius;\r\n }",
"public String objectToString() {\n \n StringBuilder s = new StringBuilder(new String(\"\"));\n if(aggressor instanceof Town) {\n s.append(((Town) aggressor).getName()).append(\" \");\n } else {\n s.append(((Nation) aggressor).getName()).append(\" \");\n }\n if(defender instanceof Town) {\n s.append(((Town) defender).getName()).append(\" \");\n } else {\n s.append(((Nation) defender).getName()).append(\" \");\n }\n s.append(aggressorPoints).append(\" \");\n s.append(defenderPoints).append(\" \");\n for (Town town : towns.keySet()) {\n s.append(town.getName()).append(\" \");\n s.append(towns.get(town)).append(\" \");\n }\n\n if (rebelwar != null)\n s.append(\" \").append(rebelwar.getName());\n else\n s.append(\" \" + \"n u l l\");\n\n return s.toString();\n }",
"public String toString(){\n String pileString = \"\";\n\n for(int i = 0; i < this.nbObj; i++)\n {\n pileString += i + \": \" + this.objTab[i].toString() + \"\\n\";\n }\n pileString += \"End of Stack\";\n return pileString;\n }",
"@Override public String toString() {\n return String.format(\n \"Rectangle with bottom left corner at (%d, %d) and top \" +\n \"right corner at (%d, %d)\", this.x1, this.y1, this.x2, this.y2);\n }",
"public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(dimension + \"\\n\");\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n s.append(String.format(\"%2d \", (int) blocks[i * dimension + j]));\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }",
"@Override\n public String toString() {\n return String.format(\"size = %s, numOfCheese = %d, numOfPepperoni = %d, numOfHam = %d\", this.size, this.cheese,\n this.pepperoni, this.ham);\n }",
"@Override\n public String toString() {\n return String.format(\"%-4s %-35s %-20s %-20s\\n\", this.pokeNumber, this.pokeName,\n this.pokeType_1, this.hitPoints);\n }",
"@Override\r\n public String toString() {\r\n int sourceSize = (getSource() != null) ? getSource().size() : 0;\r\n int targetSize = (getTarget() != null) ? getTarget().size() : 0;\r\n InstanceInfo info = new InstanceInfo(this);\r\n info.add(super.toString());\r\n info.add(Constant.COMMA_BLANK);\r\n info.addAttribute(SOURCE_SIZE, sourceSize);\r\n info.addAttribute(TARGET_SIZE, targetSize);\r\n return info.toString();\r\n }",
"public String toString(){\r\n\t\tString str = \"<\";\r\n\t\tString nameOne;\r\n\t\tif (isSuperGiant() == true){\r\n\t\t\tnameOne = \"SuperGiant\";\r\n\t\t}\r\n\t\telse{\r\n\t\t\tnameOne = \"Red Giant\";\r\n\t\t}\r\n\t\tString nameTwo = getName();\r\n\t\tdouble massOne = getMass();\r\n\t\tdouble sizeOne = getSize();\r\n\t\tString strMass = roundOffTo2DecPlaces((float) massOne);\r\n\t\tString strSize = roundOffTo2DecPlaces((float) sizeOne);\r\n\t\tstr = str+nameTwo+\"> Is a \"+nameOne+\" Star with mass = <\"+strMass+\">KG and size = <\"+strSize+\"> miles.\";\r\n\t\treturn str;\r\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"public String toString()\r\n {\r\n\treturn \"HSIImage-object:\" +\r\n\t \"\\n\\tWidth: \" + getWidth() +\r\n\t \"\\n\\tHeight: \" + getHeight();\r\n }",
"@Override public String toString() {\n String toReturn = \"\";\n for (Rotor rotor : rotors)\n toReturn = rotor.getPositionString() + (toReturn.isEmpty() ? \"\" : \" \") + toReturn;\n return toReturn;\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn \"x=\" + x + \",y=\" + y + \",obj=\" + block;\n\t}",
"@Override\r\n public String toString(){\n String fromPet = super.toString();\r\n fromPet+= \"\\nLives: \"+ livesRemaining;\r\n fromPet += \"\\nType: Cat\";\r\n return fromPet;\r\n \r\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\tString s = new String(\"\");\r\n\t\tfor (int i = 0; i < maze.length; i++) {\r\n\t\t\ts+= \"\\n\";\r\n\t\t\ts+= \"Floor #\";\r\n\t\t\ts+= (i+1);\r\n\t\t\ts+= \":\";\r\n\t\t\ts+= \"\\n\";\r\n\t\t\tfor (int j = 0; j < maze[0].length; j++) {\r\n\t\t\t\ts+= \"\\n\";\r\n\t\t\t\tfor (int j2 = 0; j2 < maze[0][0].length; j2++) {\r\n\t\t\t\t\ts += this.maze[i][j][j2];\r\n\t\t\t\t\ts += \" \";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ts+= \"\\n\";\r\n\t\t}\r\n\t\treturn s;\r\n\t}",
"public String toString() {\n String val = \"\";\n val += \"Baddie [x=\" + positionX + \", y=\" + positionY + \"]\";\n return val;\n }",
"@Override\n public String toString() {\n String output = quantity + \" x \" + product;\n\n return output;\n }",
"@Override\n public String toString() {\n String[] output = new String[getHeight()];\n for (int row=0; row < getHeight(); row++) {\n StringBuilder builder = new StringBuilder();\n for (int col=0; col < getWidth(); col++) {\n Square current = getSquare(row, col);\n builder.append(getCharForSquare(current));\n }\n output[row] = builder.toString();\n }\n return String.join(\"\\n\", output);\n }",
"@Override\n public String toString() {\n StringBuilder s = new StringBuilder();\n for (int i = 0; i < this.getHeight(); i++) {\n for (int j = 0; j < this.getWidth(); j++) {\n s.append(this.getEntry(j,i)).append(\" \");\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }",
"@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }",
"@Override\n\tpublic String toString() {\n\t\tint precision = 5;\n\t\t// by scaling a larger Cylinder you get a higher resolution\n\t\treturn String.format(Locale.UK, cylinder, height, radius, center, precision);\n\t}",
"public String toString()\n {\n String str = \"\";\n switch (align)\n {\n case LEFT :\n str = \",align=left\";\n break;\n case CENTER :\n str = \",align=center\";\n break;\n case RIGHT :\n str = \",align=right\";\n break;\n }\n return getClass().getName() + \"[hgap=\" + hgap + \",vgap=\" + vgap + str + \"]\";\n }",
"@Override\n public String toString() {\n return \"Ship X:\" + position.x\n + \"\\nShip Y:\" + position.y;\n }",
"public String toString()\n\t{\n\t\treturn Integer.toString(playerList.size());\n\t}",
"public String toString()\n\t{\n\t\treturn getClass().getName() +\n\t\t\t\"[hgap=\" + hgap + \",vgap=\" + vgap + \"]\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tString line = \"\";\n\t\tint lineLength = (sqRt + 1) + (sqRt) * (sqRt + sqRt + 1);\n\t\tfor(int i = 0; i < lineLength; i++) {\n\t\t\tline += \"-\";\n\t\t}\n\t\tsb.append(line + \"\\n\");\t\n\t\tfor(int i = 1; i <= dimension; i++) {\n\t\t\tfor(int j = 1; j <= dimension; j++) {\n\t\t\t\tif(j == 1) {\n\t\t\t\t\tsb.append(\"| \");\n\t\t\t\t}\n\t\t\t\tsb.append(puzzle[i - 1][j - 1]);\n\t\t\t\tsb.append(\" \");\n\t\t\t\tif(j % sqRt == 0) \n\t\t\t\t\tsb.append(\"| \");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tif(i % sqRt == 0) \n\t\t\t\tsb.append(line + \"\\n\");\t\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String toString() {\n\t\treturn super.toString() + \"[count=\" + count + \",pos=\" + pos + \"]\";\n\t}",
"@Override\n public String toString() {\n StringBuilder s = new StringBuilder();\n int N = size();\n s.append(N + \"\\n\");\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n s.append(String.format(\"%2d \", tileAt(i,j)));\n }\n s.append(\"\\n\");\n }\n /*\n s.append(manhattan());\n s.append(\"\\n\");\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n s.append(String.format(\"%2d \", _goal[i][j]));\n }\n s.append(\"\\n\");\n }*/\n s.append(\"\\n\");\n return s.toString();\n }",
"public String toString() {\n\t\treturn String.format(\"Shape: %s,Color: %s\", shape, color);\n\t}",
"public String toString() {\n/* 6387 */ return \"VolaTile [X: \" + this.tilex + \", Y: \" + this.tiley + \", surf=\" + this.surfaced + \"]\";\n/* */ }",
"@Override\n public String toString()\n {\n return getClass().getName() + \"[# of GrassPatches=\" + grassPatches.length+ \", # of Units=\" + walkers.size()+ \"]\";\n }",
"public String toString(){\n\n\t\tString str = \"(numStrings=\"+ getNumStrings() +\n\t\t\t\t\t\",\\nLength=\"+ getGuitarLength() +\n\t\t\t\t\t\",\\nmanufacturer=\"+ getGuitarManufacturer() +\n\t\t\t\t\t\",\\ncolor=\"+ getGuitarColorString() + \")\";\n\t\treturn str;\n\t}",
"public String toString() {\r\n // If you leave off .toString then .toString is called automatically.\r\n // If the values are null then they are converted to \"null\" string\r\n return \"\" + monster1;\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 }",
"public String toString()\n\t{\n\t final String TAB = \" \";\n\t \n\t String retValue = \"\";\n\t \n\t retValue = \"Stand ( \"\n\t + super.toString() + TAB\n\t + \"id = \" + this.id + TAB\n\t + \"numero = \" + this.numero + TAB\n\t + \"metragem = \" + this.metragem + TAB\n\t + \" )\";\n\t\n\t return retValue;\n\t}",
"public String toString() {\n StringBuilder s = new StringBuilder();\n s.append(this.dim + \"\\n\");\n int counter = 0;\n for (int i = 0; i < this.dim; i++) {\n for (int j = 0; j < this.dim; j++) {\n int n = tiles[counter++];\n s.append(String.format(\"%2d \", n));\n }\n s.append(\"\\n\");\n }\n return s.toString();\n }",
"@Override\r\n public String dumpOf ()\r\n {\r\n StringBuilder sb = new StringBuilder();\r\n\r\n if (evaluation != null) {\r\n sb.append(String.format(\" evaluation=%s%n\", evaluation));\r\n }\r\n\r\n Shape physical = (getShape() != null) ? getShape().getPhysicalShape() : null;\r\n if (physical != null) {\r\n sb.append(String.format(\" physical=%s%n\", physical));\r\n }\r\n\r\n if (forbiddenShapes != null) {\r\n sb.append(String.format(\" forbiddenShapes=%s%n\", forbiddenShapes));\r\n }\r\n\r\n if (timeRational != null) {\r\n sb.append(String.format(\" rational=%s%n\", timeRational));\r\n }\r\n\r\n return sb.toString();\r\n }",
"public String toString()\n\t{\n\t\treturn \"Base animation\";\n\t}",
"public String toString() {\n return super.toString() + \",\" + m_props.size();\n }"
] | [
"0.73701745",
"0.6886278",
"0.68428284",
"0.6834249",
"0.67991716",
"0.66766196",
"0.665719",
"0.6644699",
"0.6642816",
"0.6603371",
"0.65926814",
"0.65920323",
"0.6571418",
"0.65528095",
"0.65202934",
"0.65091294",
"0.6491756",
"0.6483733",
"0.6477782",
"0.647665",
"0.64386326",
"0.64384145",
"0.6435974",
"0.6432953",
"0.6407147",
"0.6362262",
"0.63502175",
"0.63273716",
"0.63046575",
"0.6303327",
"0.6261037",
"0.625706",
"0.6255019",
"0.62427163",
"0.6240323",
"0.6191091",
"0.61786455",
"0.61679953",
"0.61624926",
"0.6158351",
"0.61416215",
"0.6133074",
"0.6100404",
"0.6082246",
"0.60741174",
"0.6069814",
"0.60665727",
"0.6061623",
"0.6059061",
"0.6055185",
"0.6045498",
"0.60371804",
"0.6036929",
"0.60359454",
"0.6033172",
"0.60252887",
"0.6024358",
"0.59993285",
"0.5998229",
"0.59851164",
"0.5977786",
"0.59757",
"0.5958701",
"0.5957507",
"0.5953891",
"0.59532523",
"0.5950455",
"0.5949799",
"0.5947224",
"0.59429663",
"0.5942313",
"0.5939354",
"0.59377384",
"0.5934945",
"0.59313476",
"0.5930177",
"0.59290946",
"0.592144",
"0.5918602",
"0.5915519",
"0.5914667",
"0.59105724",
"0.5903904",
"0.5903767",
"0.59020144",
"0.58984137",
"0.5897748",
"0.5892274",
"0.58839756",
"0.5882928",
"0.58807737",
"0.5880752",
"0.5880233",
"0.58749104",
"0.5867904",
"0.5867085",
"0.58668363",
"0.5861563",
"0.5860089",
"0.5853019"
] | 0.7250234 | 1 |
look in module sources | private static boolean visitModuleContentEntries(ModuleRootModel rootModel, RootVisitor visitor) {
for (ContentEntry entry : rootModel.getContentEntries()) {
VirtualFile rootFile = entry.getFile();
if (rootFile != null && !visitor.visitRoot(rootFile, null, null, true)) return false;
for (VirtualFile folder : entry.getSourceFolderFiles()) {
if (!visitor.visitRoot(folder, rootModel.getModule(), null, true)) return false;
}
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void inspect() {\n\t\tFileHandler handler = new FileHandler();\n\t\tIContainer container = handler.findOrCreateContainer(packageBase);\n\t\tIResource[] members = null;\n\t\ttry {\n\t\t\tmembers = container.members();\n\t\t} catch (CoreException e) {\n\t\t\tSystem.out.println(\"Could not access members of the container \"\n\t\t\t\t\t+ container.getFullPath() + \".\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttraverseSourceFiles(members);\n\t}",
"public interface Source {\n /**\n * A listener for changes.\n */\n public interface SourceListener {\n public void added(Source source,\n JavaProject javaProject, String name);\n\n public void removed(Source source,\n JavaProject javaProject, String name);\n\n public void changed(Source source,\n JavaProject javaProject, String name);\n }\n\n public void addListener(SourceListener listener);\n\n public void removeListener(SourceListener listener);\n\n /**\n * Find and return all custom contexts; usually called just before calling\n * addListener(this).\n * \n * @param javaProject the java context to find custom module contexts for\n */\n public Set<String> get(JavaProject javaProject, ProgressMonitor progressMonitor);\n \n public abstract boolean isListeningForChanges();\n \n public abstract void listenForChanges(boolean listenForChanges);\n}",
"public abstract Source load(ModuleName name);",
"public List<ClassDescription> scanSources()\n throws SCRDescriptorFailureException, SCRDescriptorException {\n final List<ClassDescription> result = new ArrayList<ClassDescription>();\n\n for (final Source src : project.getSources()) {\n if ( src.getFile().getName().equals(\"package-info.java\") ) {\n log.debug(\"Skipping file \" + src.getClassName());\n continue;\n }\n log.debug(\"Scanning class \" + src.getClassName());\n\n try {\n // load the class\n final Class<?> annotatedClass = project.getClassLoader().loadClass(src.getClassName());\n\n this.process(annotatedClass, src, result);\n } catch ( final SCRDescriptorFailureException e ) {\n throw e;\n } catch ( final SCRDescriptorException e ) {\n throw e;\n } catch ( final ClassNotFoundException e ) {\n log.warn(\"ClassNotFoundException: \" + e.getMessage());\n } catch ( final NoClassDefFoundError e ) {\n log.warn(\"NoClassDefFoundError: \" + e.getMessage());\n } catch (final Throwable t) {\n throw new SCRDescriptorException(\"Unable to load compiled class: \" + src.getClassName(), src.getFile().toString(), t);\n }\n }\n return result;\n }",
"private Map<String, ModuleReference> scan(Path entry) {\n\n BasicFileAttributes attrs;\n try {\n attrs = Files.readAttributes(entry, BasicFileAttributes.class);\n } catch (NoSuchFileException e) {\n return Map.of();\n } catch (IOException ioe) {\n throw new FindException(ioe);\n }\n\n try {\n\n if (attrs.isDirectory()) {\n Path mi = entry.resolve(MODULE_INFO);\n if (!Files.exists(mi)) {\n // assume a directory of modules\n return scanDirectory(entry);\n }\n }\n\n // packaged or exploded module\n ModuleReference mref = readModule(entry, attrs);\n if (mref != null) {\n String name = mref.descriptor().name();\n return Map.of(name, mref);\n }\n\n // not recognized\n String msg;\n if (!isLinkPhase && entry.toString().endsWith(\".jmod\")) {\n msg = \"JMOD format not supported at execution time\";\n } else {\n msg = \"Module format not recognized\";\n }\n throw new FindException(msg + \": \" + entry);\n\n } catch (IOException ioe) {\n throw new FindException(ioe);\n }\n }",
"private Header [] loadSource(String name, Header [] list, Header header, final boolean force)\r\n {\r\n int pos;\r\n int depth = header.depth;\r\n File file = null;\r\n\r\n name = name.trim();\r\n\r\n for(pos = 0; pos < list.length && list[pos] != header; pos++);\r\n\r\n String path = list[pos].name.substring(0, list[pos].name.lastIndexOf('\\\\'));\r\n\r\n // look in sdk's root directory\r\n if ((file = getFile(Parser.jdkSource, name)) != null)\r\n {\r\n if (Parser.jdkSource.compareToIgnoreCase(path) != 0)\r\n depth++;\r\n }\r\n\r\n // look in package\r\n if (file == null)\r\n {\r\n file = getFile(path, name);\r\n }\r\n\r\n // look in imports\r\n for (int j = 0; j < header.imports.length && file == null; j++)\r\n {\r\n String st = header.imports[j];\r\n int last = st.lastIndexOf('.') + 1;\r\n\r\n if (st.substring(last).compareToIgnoreCase(name) == 0)\r\n st = st.substring(0, last);\r\n\r\n if (st.endsWith(\".\"))\r\n st = st.substring(0, st.length() - 1);\r\n\r\n for (int k = -1; (k = st.indexOf('.')) >= 0; )\r\n st = st.substring(0, k) + '\\\\' + st.substring(k + 1);\r\n\r\n st = jdkSource + '\\\\' + st;\r\n\r\n file = getFile(st, name);\r\n\r\n if (file != null)\r\n depth++;\r\n }\r\n\r\n if (file != null)\r\n {\r\n String st = file.getAbsolutePath();\r\n\r\n // already loaded?\r\n for(int k = 0; k < list.length; k++)\r\n if (list[k].name.compareToIgnoreCase(st) == 0)\r\n {\r\n file = null;\r\n return list;\r\n }\r\n\r\n if (file != null)\r\n {\r\n File desc = new File(st.substring(0, st.lastIndexOf('.') + 1) + 'h');\r\n File fs = new File(st.substring(0, st.lastIndexOf('.') + 1) + \"fs\");\r\n\r\n st = file.getAbsolutePath();\r\n for(int i = 0; i < built.size(); i++)\r\n if (((String)built.get(i)).compareToIgnoreCase(st) == 0)\r\n {\r\n file = desc;\r\n break;\r\n }\r\n\r\n if ((!desc.exists() || !fs.exists() || fs.length() == 0 || fs.lastModified() < file.lastModified() || force) && file != desc)\r\n {\r\n Header [] hh \t= new Pass(file, built, force, gc).compilationUnit(list, depth); // compile\r\n\r\n return hh;\r\n }\r\n else\r\n {\r\n Header [] newList = new Header[list.length + 1];\r\n\r\n for (int k = 0; k < newList.length - 1; k++)\r\n newList[k] = list[k];\r\n System.out.println(desc.getAbsolutePath() + \" will be read!\");\r\n newList[newList.length - 1] = new Header(desc.getAbsolutePath(), depth); // load header\r\n list = newList;\r\n }\r\n }\r\n }\r\n\r\n return list;\r\n }",
"protected Set<SModule> processModuleFiles(SRepository repo, final Collection<File> moduleSourceDescriptorFiles) {\n Set<SModule> modules = new LinkedHashSet<SModule>();\n\n // XXX need a way to figure which FS to use here. Technically, it should come from a project as we are going to\n // use these modules as part of the project. OTOH, we know these are local FS files.\n final IFileSystem fs = myEnvironment.getPlatform().findComponent(VFSManager.class).getFileSystem(VFSManager.FILE_FS);\n DescriptorIOFacade descriptorIOFacade = myEnvironment.getPlatform().findComponent(DescriptorIOFacade.class);\n final ModulesMiner mminer = new ModulesMiner(Collections.<IFile>emptySet(), descriptorIOFacade);\n for (File df : CollectionSequence.fromCollection(moduleSourceDescriptorFiles)) {\n IFile descriptorFile = fs.getFile(df);\n if (descriptorIOFacade.fromFileType(descriptorFile) == null) {\n info(String.format(\"File %s doesn't point to module descriptor, ignored\", moduleSourceDescriptorFiles));\n continue;\n }\n mminer.collectModules(descriptorFile);\n }\n ModuleRepositoryFacade mrf = new ModuleRepositoryFacade(repo);\n final SRepositoryExt repoExt = ((SRepositoryExt) mrf.getRepository());\n for (ModulesMiner.ModuleHandle mh : mminer.getCollectedModules()) {\n // seems reasonable just to instantiate a module here and leave its registration to caller\n // however, at the moment, Generator modules need access to their source Language module, which they look up in the repository\n SModule module = repoExt.registerModule(mrf.instantiate(mh.getDescriptor(), mh.getFile()), myOwner);\n info(\"Loaded module \" + module);\n modules.add(module);\n }\n return modules;\n }",
"boolean hasSource();",
"private void scanProject() {\n ProjectResources resources = ResourceManager.getInstance().getProjectResources(mProject);\n if (resources != null) {\n Collection<ResourceItem> layouts = resources.getResourceItemsOfType(LAYOUT);\n for (ResourceItem layout : layouts) {\n List<ResourceFile> sources = layout.getSourceFileList();\n for (ResourceFile source : sources) {\n updateFileIncludes(source, false);\n }\n }\n\n return;\n }\n }",
"public IAstSourceFile findIncludeFile(String string);",
"boolean isSource();",
"private void init() {\n\t\tMvcs.scanPackagePath = analyseScanPath();\n\t\tif(StringHandler.isEmpty(Mvcs.scanPackagePath))\n\t\t\tthrow new RuntimeException(\"No scan path has been set! you need to setup ScanPackage annotation\");\n\t\t\n\t\t//put all class into the list\n\t\tList<String> allClassNames = scanAllClassNames();\n\t\tif(StringHandler.isEmpty(allClassNames)) //some loader may have no return value \n\t\t\treturn ;\n\t\t\n\t\tfor(String pkgPath : allClassNames){\n\t\t\tlist.add(ClassUtil.getClass(pkgPath));\n\t\t}\n\t}",
"boolean hasSourceFile();",
"private CanonizeSource() {}",
"void kickProjectSourceGroups() {\n AntlrConfiguration config = AntlrConfiguration.forProject(project);\n Path path = FileUtil.toFile(dir).toPath();\n FoldersLookupStrategyImplementationFactory.evict(path);\n Sources src = ProjectUtils.getSources(project);\n if (src != null) {\n src.getSourceGroups(\"java\");\n src.getSourceGroups(\"antlr\");\n }\n LogicalViewProvider log = project.getLookup().lookup(LogicalViewProvider.class);\n Node view = log.createLogicalView();\n Children kids = view.getChildren();\n kids.getNodes(true);\n }",
"java.lang.String getSourceFile();",
"public boolean isSource();",
"protected void initModules()\n {\n\n }",
"protected void setUp() {\n Collection<? extends ModuleInfo> infos = Lookup.getDefault().<ModuleInfo>lookupAll(ModuleInfo.class);\n }",
"@Test\n void findSourceJar() {\n Class<?> klass = org.apache.commons.io.FileUtils.class;\n var codeSource = klass.getProtectionDomain().getCodeSource();\n if (codeSource != null) {\n System.out.println(codeSource.getLocation());\n }\n }",
"private Map<String, ModuleReference> scanDirectory(Path dir)\n throws IOException\n {\n // The map of name -> mref of modules found in this directory.\n Map<String, ModuleReference> nameToReference = new HashMap<>();\n\n try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir)) {\n for (Path entry : stream) {\n BasicFileAttributes attrs;\n try {\n attrs = Files.readAttributes(entry, BasicFileAttributes.class);\n } catch (NoSuchFileException ignore) {\n // file has been removed or moved, ignore for now\n continue;\n }\n\n ModuleReference mref = readModule(entry, attrs);\n\n // module found\n if (mref != null) {\n // can have at most one version of a module in the directory\n String name = mref.descriptor().name();\n ModuleReference previous = nameToReference.put(name, mref);\n if (previous != null) {\n String fn1 = fileName(mref);\n String fn2 = fileName(previous);\n throw new FindException(\"Two versions of module \"\n + name + \" found in \" + dir\n + \" (\" + fn1 + \" and \" + fn2 + \")\");\n }\n }\n }\n }\n\n return nameToReference;\n }",
"public interface IAstRssSourceFile extends IAstSourceFile {\r\n\r\n /**\r\n * Get the top-level nodes defined by this file.\r\n */\r\n public IAstTopLevelNode[] getTopLevelNodes();\r\n\r\n /**\r\n * Tell whether the file contains a given node\r\n */\r\n public boolean hasTopLevelNode(IAstTopLevelNode node);\r\n\r\n /**\r\n * Get all the preprocessor nodes structuring this file. These include\r\n * directives and \"extra\" text not included in other nodes in the DOM\r\n * proper.\r\n * <p>\r\n * For instance, until a \"problem\" node exists, unparseable text will appear\r\n * as IAstPreprocessorTextNode outside of an IAstNode's range, when, say, a\r\n * nonsense top-level declaration exists; or overlapping the range of an\r\n * IAstNode, when a child of a complex node is unparseable.\r\n */\r\n public IAstPreprocessorNode[] getPreprocessorNodes();\r\n\r\n /**\r\n * Get all the macro definitions in this file\r\n * <p>\r\n * Note: the #defines are also accessible by iterating\r\n * getPreprocessorNodes()\r\n * <p>You must update any translation unit, if present, to notice. \r\n * @see ITranslationUnit#refresh()\r\n */\r\n public IAstPreprocessorDefineDirective[] getDefines();\r\n\r\n /**\r\n * Find a define\r\n */\r\n public IAstPreprocessorDefineDirective findDefine(String name);\r\n\r\n /**\r\n * Find an #include included in this file (non-recursive)\r\n */\r\n public IAstSourceFile findIncludeFile(ISourceFile file);\r\n\r\n /**\r\n * Find an #include included in this file (non-recursive).\r\n * Compares by filename.\r\n */\r\n public IAstSourceFile findIncludeFile(String string);\r\n \r\n /**\r\n * Find an #include included in this file (non-recursive)\r\n */\r\n public IAstPreprocessorIncludeDirective findInclude(ISourceFile file);\r\n\r\n /**\r\n * Find an #include included in this file (non-recursive)\r\n */\r\n public IAstPreprocessorIncludeDirective findInclude(String string);\r\n \r\n /**\r\n * Get all the includes in this file, in #include order.\r\n * Does not provide recursively included files.\r\n * This returns IAstSourceFile nodes, which reflect the\r\n * contents of the included files. These may be empty\r\n * when the second #include of the same file occurs.\r\n * <p>\r\n * Note: the #includes are also accessible by iterating\r\n * #getPreprocessorNodes()\r\n */\r\n public IAstPreprocessorIncludeDirective[] getIncludeFiles();\r\n\r\n /**\r\n * Get all macro references in this file\r\n * <p>\r\n * Note: the references are also accessible by iterating\r\n * getPreprocessorNodes()\r\n */\r\n public IAstPreprocessorMacroExpression[] getMacroExpressions();\r\n\r\n /**\r\n * Get all the *.rls includes in this file, in #include order.\r\n * Does not provide recursively included files.\r\n * This returns IAstRlsSourceFile nodes, which reflect the\r\n * contents of the included files. \r\n * <p>\r\n * Note: the #includes are also accessible by iterating\r\n * #getPreprocessorNodes()\r\n */\r\n public IAstRlsSourceFile[] getRlsSourceFiles();\r\n\r\n /**\r\n * Find a rls_string defined in this file (non-recursive)\r\n */\r\n public IAstRlsString findRlsString(String identifer);\r\n\r\n /**\r\n * Get all the rls_strings in this file.\r\n * Does not provide recursively included files.\r\n * <p>\r\n * Note: the #includes are also accessible by iterating\r\n * #getTopLevelNodes()\r\n */\r\n public IAstRlsString[] getRlsStrings();\r\n\r\n\t/**\r\n\t * Find a given RLS include\r\n\t * @param langCode\r\n\t * @return\r\n\t */\r\n\tpublic IAstRlsSourceFile findRlsFile(int langCode);\r\n\r\n\t/**\r\n\t * Remove an RLS file\r\n\t */\r\n\tpublic void removeRlsSourceFile(IAstRlsSourceFile rlsFile);\r\n\t\r\n\t/**\r\n\t * Refresh cached tables if nodes are changed outside\r\n\t */\r\n\tpublic void refresh();\r\n \r\n}",
"private SourcecodePackage() {}",
"private FilterChain loadFilters() {\n\t\ttry {\n\t\t\tAnnotation.scan(\"src/main/java/com/qa/app\");\n\t\t} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | IllegalArgumentException\n\t\t\t\t| InvocationTargetException | NoSuchMethodException | SecurityException | IOException 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 IAstSourceFile findIncludeFile(ISourceFile file);",
"private void getModules() throws BuildException {\n FilenameFilter fltr = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n return name.endsWith(\".war\");\n }\n };\n\n if (warDir == null) {\n throw new BuildException(\"No wardir supplied\");\n }\n\n String[] warnames = warDir.list(fltr);\n\n if (warnames == null) {\n throw new BuildException(\"No wars found at \" + warDir);\n }\n\n for (int wi = 0; wi < warnames.length; wi++) {\n wars.add(warnames[wi]);\n }\n\n for (FileSet fs: filesets) {\n DirectoryScanner ds = fs.getDirectoryScanner(getProject());\n\n String[] dsFiles = ds.getIncludedFiles();\n\n for (int dsi = 0; dsi < dsFiles.length; dsi++) {\n String fname = dsFiles[dsi];\n\n if (fname.endsWith(\".jar\")) {\n jars.add(fname);\n } else if (fname.endsWith(\".war\")) {\n wars.add(fname);\n }\n }\n }\n }",
"MafSource readSource(File sourceFile);",
"Source getSrc();",
"public void updateSource() {\n\t\t// Set the mode to recording\n\t\tmode = RECORD;\n\t\t// Traverse the source and record the architectures structure\n\t\tinspect();\n\t\t// Set the mode to code generation\n\t\tmode = GENERATE;\n\t\t// Traverse the source and calls back when key source elements are\n\t\t// missing\n\t\tinspect();\n\t\t// System.out.println(tree);\n\t\t// Add the source files that are missing\n\t\tArrayList<TagNode> tags = tree.getUnvisited();\n\t\tcreateSourceFiles(tags);\n\t}",
"private void searchCode() {\n }",
"public interface CommonLayer extends Layer {\n\n List<PlainFile> getCommonSources(String packageName);\n\n}",
"private String analyseScanPath() {\n\t\t//1. get main module from init params\n\t\tString mainModule = Mvcs.servletConfig.getInitParameter(\"mainModule\");\n\t\tClass<?> cl = ClassUtil.getClass(mainModule);\n\t\tif(cl.isAnnotationPresent(ScanPackage.class)){\n\t\t\tScanPackage ann = cl.getAnnotation(ScanPackage.class);\n\t\t\t//get annotation path value\n\t\t\treturn ann.path();\n\t\t}\n\t\t//default return null\n\t\treturn null;\n\t}",
"private static boolean loadModuleConfig(java.lang.String r5, java.lang.String r6) {\n /*\n android.util.Pair<java.lang.String, java.util.Set<java.lang.String>> r0 = lastModuleList\n r1 = 1\n if (r0 == 0) goto L_0x0018\n android.util.Pair<java.lang.String, java.util.Set<java.lang.String>> r0 = lastModuleList\n java.lang.Object r0 = r0.first\n java.lang.CharSequence r0 = (java.lang.CharSequence) r0\n boolean r0 = android.text.TextUtils.equals(r0, r6)\n if (r0 == 0) goto L_0x0018\n android.util.Pair<java.lang.String, java.util.Set<java.lang.String>> r0 = lastModuleList\n java.lang.Object r0 = r0.second\n if (r0 == 0) goto L_0x0018\n return r1\n L_0x0018:\n java.io.File r0 = new java.io.File\n java.lang.String r2 = \"de.robv.android.xposed.installer\"\n r0.<init>(r5, r2)\n boolean r5 = r0.exists()\n r2 = 0\n if (r5 != 0) goto L_0x0027\n return r2\n L_0x0027:\n java.io.File r5 = new java.io.File\n java.lang.String r3 = \"exposed_conf/modules.list\"\n r5.<init>(r0, r3)\n boolean r0 = r5.exists()\n if (r0 != 0) goto L_0x003c\n java.lang.String r5 = \"ExposedBridge\"\n java.lang.String r6 = \"xposed installer's modules not exist, ignore.\"\n android.util.Log.d(r5, r6)\n return r2\n L_0x003c:\n r0 = 0\n java.io.BufferedReader r3 = new java.io.BufferedReader // Catch:{ IOException -> 0x0081 }\n java.io.FileReader r4 = new java.io.FileReader // Catch:{ IOException -> 0x0081 }\n r4.<init>(r5) // Catch:{ IOException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x0081 }\n java.util.HashSet r5 = new java.util.HashSet // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n r5.<init>() // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n L_0x004c:\n java.lang.String r0 = r3.readLine() // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n if (r0 == 0) goto L_0x006a\n java.lang.String r0 = r0.trim() // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n java.lang.String r4 = \"#\"\n boolean r4 = r0.startsWith(r4) // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n if (r4 == 0) goto L_0x005f\n goto L_0x004c\n L_0x005f:\n boolean r4 = r0.isEmpty() // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n if (r4 == 0) goto L_0x0066\n goto L_0x004c\n L_0x0066:\n r5.add(r0) // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n goto L_0x004c\n L_0x006a:\n android.util.Pair r5 = android.util.Pair.create(r6, r5) // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n lastModuleList = r5 // Catch:{ IOException -> 0x007b, all -> 0x0079 }\n r3.close() // Catch:{ IOException -> 0x0074 }\n goto L_0x0078\n L_0x0074:\n r5 = move-exception\n r5.printStackTrace()\n L_0x0078:\n return r1\n L_0x0079:\n r5 = move-exception\n goto L_0x0090\n L_0x007b:\n r5 = move-exception\n r0 = r3\n goto L_0x0082\n L_0x007e:\n r5 = move-exception\n r3 = r0\n goto L_0x0090\n L_0x0081:\n r5 = move-exception\n L_0x0082:\n r5.printStackTrace() // Catch:{ all -> 0x007e }\n if (r0 == 0) goto L_0x008f\n r0.close() // Catch:{ IOException -> 0x008b }\n goto L_0x008f\n L_0x008b:\n r5 = move-exception\n r5.printStackTrace()\n L_0x008f:\n return r2\n L_0x0090:\n if (r3 == 0) goto L_0x009a\n r3.close() // Catch:{ IOException -> 0x0096 }\n goto L_0x009a\n L_0x0096:\n r6 = move-exception\n r6.printStackTrace()\n L_0x009a:\n throw r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p015me.weishu.exposed.ExposedBridge.loadModuleConfig(java.lang.String, java.lang.String):boolean\");\n }",
"public boolean shouldIncludeInGlobalSearch() {\n/* 255 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"interface ExternalModuleChecker {\n\t/**\n\t * To check is external-module registered well\n\t *\n\t * @param module module to check\n\t * @return true if registered well\n\t */\n\tboolean isValidModule(ExternalModule module);\n}",
"private List<RubyModule> gatherModules(RubyModule baseModule) {\n // build a list of all modules to consider for inclusion\n List<RubyModule> modulesToInclude = new ArrayList<RubyModule>();\n while (baseModule != null) {\n modulesToInclude.add(baseModule);\n baseModule = baseModule.getSuperClass();\n }\n \n return modulesToInclude;\n }",
"public abstract String getModuleName( );",
"int getNameSourceStart();",
"@Test\n public void shouldListActivatorsInSourceCode() throws Exception {\n initializeOSGiProjectWithBundlesInSourceCode();\n resetOutput();\n getShell().execute(\"osgi activators\");\n String mod1Expected = \"/main/src/module1/br/ufrgs/rmpestano/activator/Activator.java\";\n String mod2Expected = \"/main/src/module2/br/ufrgs/rmpestano/activator/Activator.java\";\n String mod3Expected = \"/main/src/module3/src/br/ufrgs/rmpestano/activator/Activator.java\";\n if(OSUtils.isWindows()){\n mod1Expected = mod1Expected.replaceAll(\"/\", File.separator + File.separator);\n mod2Expected = mod2Expected.replaceAll(\"/\", File.separator + File.separator);\n mod3Expected = mod3Expected.replaceAll(\"/\", File.separator + File.separator);\n }\n getOutput().contains(mod1Expected);\n getOutput().contains(mod2Expected);\n getOutput().contains(mod3Expected);\n\n\n }",
"@Converted(kind = Converted.Kind.MANUAL_COMPILATION,\n source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/FrontendActions.cpp\", line = 186,\n old_source = \"${LLVM_SRC}/llvm/tools/clang/lib/Frontend/FrontendActions.cpp\", old_line = 181,\n FQN=\"collectModuleHeaderIncludes\", NM=\"_ZL27collectModuleHeaderIncludesRKN5clang11LangOptionsERNS_11FileManagerERNS_9ModuleMapEPNS_6ModuleERN4llvm15SmallVectorImplIcEE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.frontend/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/Frontend/FrontendActions.cpp -nm=_ZL27collectModuleHeaderIncludesRKN5clang11LangOptionsERNS_11FileManagerERNS_9ModuleMapEPNS_6ModuleERN4llvm15SmallVectorImplIcEE\")\n//</editor-fold>\npublic static std.error_code collectModuleHeaderIncludes(/*const*/ LangOptions /*&*/ LangOpts, FileManager /*&*/ FileMgr, \n ModuleMap /*&*/ ModMap, Module /*P*/ _Module, \n SmallString/*&*/ Includes) {\n // Don't collect any headers for unavailable modules.\n if (!_Module.isAvailable()) {\n return new std.error_code();\n }\n \n // Add includes for each of these headers.\n for (HeaderKind HK : new /*const*/ HeaderKind [/*2*/] {Module.HeaderKind.HK_Normal, Module.HeaderKind.HK_Private}) {\n for (Module.Header /*&*/ H : _Module.Headers[HK.getValue()]) {\n _Module.addTopHeader(H.Entry);\n // Use the path as specified in the module map file. We'll look for this\n // file relative to the module build directory (the directory containing\n // the module map file) so this will find the same file that we found\n // while parsing the module map.\n addHeaderInclude(new StringRef(H.NameAsWritten), Includes, LangOpts, _Module.IsExternC);\n }\n }\n {\n Module.Header UmbrellaHeader = null;\n try {\n // Note that Module->PrivateHeaders will not be a TopHeader.\n UmbrellaHeader = _Module.getUmbrellaHeader();\n if (UmbrellaHeader.$bool()) {\n _Module.addTopHeader(UmbrellaHeader.Entry);\n if ((_Module.Parent != null)) {\n // Include the umbrella header for submodules.\n addHeaderInclude(new StringRef(UmbrellaHeader.NameAsWritten), Includes, LangOpts, \n _Module.IsExternC);\n }\n } else {\n Module.DirectoryName UmbrellaDir = null;\n try {\n UmbrellaDir = _Module.getUmbrellaDir();\n if (UmbrellaDir.$bool()) {\n JavaCleaner $c$ = $createJavaCleaner();\n try {\n // Add all of the headers we find in this subdirectory.\n std.error_code EC/*J*/= new std.error_code();\n SmallString/*128*/ DirNative/*J*/= new SmallString/*128*/(128);\n path.__native(new Twine(UmbrellaDir.Entry.getName()), DirNative);\n \n FileSystem /*&*/ FS = $c$.clean($c$.track(FileMgr.getVirtualFileSystem()).$star());\n for (recursive_directory_iterator Dir/*J*/= new recursive_directory_iterator(FS, new Twine(DirNative), EC), End/*J*/= new recursive_directory_iterator();\n Dir.$noteq(End) && !EC.$bool(); Dir.increment(EC)) {\n // Check whether this entry has an extension typically associated with \n // headers.\n if (!new StringSwitchBool(path.extension(Dir.$arrow().getName())).\n Cases(/*KEEP_STR*/\".h\", /*KEEP_STR*/\".H\", /*KEEP_STR*/\".hh\", /*KEEP_STR*/\".hpp\", true).\n Default(false)) {\n continue;\n }\n \n /*const*/ FileEntry /*P*/ Header = FileMgr.getFile(Dir.$arrow().getName());\n // FIXME: This shouldn't happen unless there is a file system race. Is\n // that worth diagnosing?\n if (!(Header != null)) {\n continue;\n }\n \n // If this header is marked 'unavailable' in this module, don't include \n // it.\n if (ModMap.isHeaderUnavailableInModule(Header, _Module)) {\n continue;\n }\n \n // Compute the relative path from the directory to this file.\n SmallVector<StringRef> Components/*J*/= new SmallVector<StringRef>(16, new StringRef());\n path.reverse_iterator PathIt = path.rbegin(Dir.$arrow().getName());\n for (int I = 0; I != Dir.level() + 1; ++I , PathIt.$preInc()) {\n Components.push_back(PathIt.$star());\n }\n SmallString/*128*/ RelativeHeader/*J*/= new SmallString/*128*/(new StringRef(UmbrellaDir.NameAsWritten), 128);\n for (std.reverse_iterator<StringRef /*P*/ > It = Components.rbegin(), _End = Components.rend(); $noteq_reverse_iterator$C(It, _End);\n It.$preInc()) {\n path.append(RelativeHeader, new Twine(It.$star()));\n }\n \n // Include this header as part of the umbrella directory.\n _Module.addTopHeader(Header);\n addHeaderInclude(RelativeHeader.$StringRef(), Includes, LangOpts, _Module.IsExternC);\n }\n if (EC.$bool()) {\n return EC;\n }\n } finally {\n $c$.$destroy();\n }\n }\n } finally {\n if (UmbrellaDir != null) { UmbrellaDir.$destroy(); }\n }\n }\n } finally {\n if (UmbrellaHeader != null) { UmbrellaHeader.$destroy(); }\n }\n }\n \n // Recurse into submodules.\n for (std.vector.iterator<Module /*P*/ > Sub = _Module.submodule_begin(), \n SubEnd = _Module.submodule_end();\n $noteq___normal_iterator$C(Sub, SubEnd); Sub.$preInc()) {\n {\n std.error_code Err = collectModuleHeaderIncludes(LangOpts, FileMgr, ModMap, Sub.$star(), Includes);\n if (Err.$bool()) {\n return Err;\n }\n }\n }\n \n return new std.error_code();\n}",
"static boolean sourceInProjectDirectories(LocationContext context) {\n return context.getImportRoots().containsWorkspacePath(context.workspacePath);\n }",
"public SourceLister() {\n this(defaultSrcDirs);\n }",
"java.lang.String getSourceFile(int index);",
"private Map<String, SkylarkModuleDoc> collectTypes() throws ClassPathException {\n return SkylarkDocumentationCollector.collectModules(\n Classpath.findClasses(MODULES_PACKAGE_PREFIX));\n }",
"private static List<String> getJavasSourceCodeFiels(Map<String,Object> map){\r\n \t\t\r\n \t\t\r\n \t\tSystem.out.println(\"............\");\r\n \t\tLinkedList<String> list = new LinkedList<String>();\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \r\n \t\t\t//package...\r\n \t\t\tif(o instanceof IPackageFragment){\r\n \t\t\t\t//System.out.println(\"Package --> \" + key);\r\n \t\t\t\tkey = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tkey = PACKAGE + \"(\" + key + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t//class...\r\n \t\t\tif(o instanceof ICompilationUnit){\r\n \t\t\t\t//System.out.println(\"Class --> \" + key);\r\n \t\t\t\tString classname = key.substring(0,key.indexOf('[')).trim();\r\n \t\t\t\tString packagename = key.substring(key.indexOf(PACKAGE),key.indexOf('\\n',key.indexOf(PACKAGE)));\r\n \t\t\t\tkey = CLASS_WITH_MEMBERS + \"(\" + packagename + \",\" + classname + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}//method\r\n \t\t\tif(o instanceof IMethod){\r\n \t\t\t\tSystem.out.println(\"Methode --> \" + key);\r\n \t\t\t\tkey = METHOD + \"(\" + getQueryFromMethod((IMethod)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif(o instanceof IField){\r\n \t\t\t\tSystem.out.println(\"Attribut --> \" + key);\r\n \t\t\t\tkey = FIELD + \"(\" + getQueryFromField((IField)o) + \")\";\r\n \t\t\t\tlist.add(key);\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn list;\r\n \t\t\r\n \t\t\r\n \t\t/*\r\n \t\tfor(String key : map.keySet()){\r\n \t\t\tObject o = map.get(key);\r\n \t\t\t//if(o instanceof ISourceAttribute)\r\n \t\t\t\t//System.out.println(\"attribute\");\r\n \t\t\t//if(o instanceof ISourceMethod)\r\n \t\t\t\t//System.out.println(\"methode\");\r\n \t\t\tif(o instanceof IPackageFragment) \r\n \t\t\t\tSystem.out.println(\"Package\");\r\n \t\t\tif(o instanceof ICompilationUnit)\r\n \t\t\t\tSystem.out.println(\"sour code file\");\r\n \t\t\t\t\r\n \t\t\t//\"oldquery or class('voller packagename', klassenname)\"\r\n \t\t\t\t\r\n \t\t\t\t\r\n \t\t\tif(o instanceof IField)\r\n \t\t\t\tSystem.out.println(\"Attribut\");\r\n \t\t\tif(o instanceof IType)\r\n \t\t\t\tSystem.out.println(\"classe also class ... in einem file\");\r\n \t\t\tif(o instanceof IMethod)\r\n \t\t\t\tSystem.out.println(\"Methode\");\r\n \t\t\tif(o instanceof IPackageFragmentRoot) \r\n \t\t\t\tSystem.out.println(\"jar package / src Ordner\");\r\n \t\t\tif(o instanceof IProject)\r\n \t\t\t\tSystem.out.println(\"Projekt Ordner\");\r\n \t\t\tif(o instanceof IClassFile)\r\n \t\t\t\tSystem.out.println(\"ClassFile\");\r\n \t\t\tif(o instanceof IAdaptable) //trieft auch auf viele ander sachen zu\r\n \t\t\t\tSystem.out.println(\"Libaraycontainer\");\r\n \t\t\tif(o instanceof IFile)\r\n \t\t\t\tSystem.out.println(\"file\"); //je nach ausgewlter ansicht knnen file auch *.java datein sein\r\n \t\t\tif(o instanceof IFolder)\r\n \t\t\t\tSystem.out.println(\"folder\");\r\n \t\t\tSystem.out.println(o.getClass());\r\n \t\t\t\r\n \t\r\n \t\t}\r\n \t\treturn null;\r\n \t\t*/\r\n \t}",
"@Test\r\n\tpublic void testScanBaseClass(){\n\t\tString path = JDocPluginUtils.getProjectDir().getPath()+ \"/src/test/java/\";\r\n\t\tSystem.out.println(\"path:\" + path);\r\n\t\tJavaSourceScanner scaner = new JavaSourceScanner();\r\n\t\tscaner.setSourceDir(path);\r\n\t\tList<JClassDoc> jdocs = scaner.scan(\"org.onetwo.plugins.jdoc.test\");\r\n\t\tSystem.out.println(\"testScanBaseClass:\" + getInfoDoc(jdocs).toString().trim());\r\n\t\t\r\n\t\tassertJDoc(jdocs);\r\n\t}",
"public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}",
"public Set<String> getJavaSourceListing() {\n Set<String> javasrcs = new TreeSet<String>();\n \n String javasrc;\n for(String classname: classlist) {\n if(classname.contains(\"$\")) {\n continue; // skip (inner classes don't have a direct 1::1 java source file\n }\n \n javasrc = classname.replaceFirst(\"\\\\.class$\", \".java\");\n javasrcs.add(javasrc);\n }\n \n return javasrcs;\n }",
"Set<File> getModules();",
"private Result findForSourceRoot(final URL root) throws MalformedURLException {\n Project p ;\n try {\n p = FileOwnerQuery.getOwner(root.toURI());\n } catch (URISyntaxException e) {\n throw new AssertionError(e);\n }\n if (p != null) {\n NbModuleProject module = p.getLookup().lookup(NbModuleProject.class);\n if (module != null) {\n String cnb = module.getCodeNameBase();\n // TODO C.P scan external clusters? Doesn't seem necessary, javadoc is built from source on the fly for clusters with sources\n NbPlatform plaf = module.getPlatform(false);\n if (plaf != null) {\n Util.err.log(\"Platform in \" + plaf.getDestDir() + \" claimed to have Javadoc roots \"\n + Arrays.asList(plaf.getJavadocRoots()));\n Result r = findByDashedCNB(cnb.replace('.', '-'), plaf.getJavadocRoots(), false);\n if (r != null) {\n return r;\n }\n }\n }\n }\n return null;\n }",
"@Override\n public void onModuleLoad() {\n }",
"@Override\n public void checkSourcesParameter(PubDTO pub) throws PubHandlerAssemblyException {\n\n }",
"@Override\n public void checkSourcesParameter(PubDTO pub) throws PubHandlerAssemblyException {\n\n }",
"public IAstRlsSourceFile[] getRlsSourceFiles();",
"public LSPSource[] getSources () {\r\n return sources;\r\n }",
"public boolean openSource(String link) {\n final String str = \" PC=\";\n final int pcPos = link.indexOf(str);\n String classAndMethods = link.substring(0, pcPos);\n int dotIndex = classAndMethods.lastIndexOf('.');\n final String className = classAndMethods.substring(0, dotIndex);\n final String methodName = classAndMethods.substring(dotIndex + 1);\n int pc;\n try {\n pc = Integer.parseInt(link.substring(pcPos + str.length()));\n } catch (NumberFormatException e) {\n return false;\n }\n String[] ps = _classPath.split(java.io.File.pathSeparator);\n ArrayList<String> list = new ArrayList<String>();\n for (String s : ps) {\n list.add(s);\n }\n ps = System.getProperty(\"sun.boot.class.path\").split(java.io.File.pathSeparator);\n for (String s : ps) {\n list.add(s);\n }\n ClassFileTools.ClassLocation cl = null;\n try {\n cl = ClassFileTools.findClassFile(className, list);\n if (cl == null) {\n return false;\n }\n SourceFileAttributeInfo sf = (SourceFileAttributeInfo) cl.getClassFile().getAttribute(SourceFileAttributeInfo.getAttributeName());\n String fileName = sf.getSourceFileName().toString();\n String packageName = cl.getClassFile().getThisClassName();\n dotIndex = packageName.lastIndexOf('.');\n if (dotIndex >= 0) {\n packageName = packageName.substring(0, dotIndex).replace('.', File.separatorChar);\n fileName = packageName + File.separatorChar + fileName;\n } else {\n packageName = \"\";\n }\n String[] paths = _sourcePath.split(File.pathSeparator);\n File sourceFile = null;\n for (String s : paths) {\n File f = new File(s, fileName);\n if (f.exists()) {\n sourceFile = f;\n break;\n }\n }\n if (sourceFile == null) {\n return false;\n }\n int lineNo = -1;\n for (MethodInfo mi : cl.getClassFile().getMethods()) {\n if ((mi.getName().toString() + mi.getDescriptor().toString()).equals(methodName)) {\n for (AAttributeInfo ai : mi.getCodeAttributeInfo().getAttributes()) {\n if (ai.getName().toString().equals(LineNumberTableAttributeInfo.getAttributeName())) {\n LineNumberTableAttributeInfo lntai = (LineNumberTableAttributeInfo) ai;\n LineNumberTableAttributeInfo.LineNumberRecord[] lns = lntai.getLineNumbers();\n for (LineNumberTableAttributeInfo.LineNumberRecord l : lns) {\n if (l.startPC >= pc) {\n lineNo = l.lineNo;\n break;\n }\n }\n }\n if (lineNo >= 0) {\n break;\n }\n }\n }\n if (lineNo >= 0) {\n break;\n }\n }\n if (lineNo == -1) {\n return false;\n }\n try {\n Process p = ExecJVM.runJVM(\"edu.rice.cs.drjava.DrJava\", new String[] { sourceFile.toString() + File.pathSeparator + lineNo }, _drJavaJarFile.getAbsolutePath() + File.pathSeparator + System.getProperty(\"java.class.path\"), new String[] {}, new File(\".\"));\n return (p != null);\n } catch (IOException ioe) {\n return false;\n }\n } finally {\n try {\n if (cl != null) {\n cl.close();\n }\n } catch (IOException e) {\n return false;\n }\n }\n }",
"@Override\n\tpublic void prepareModule() throws Exception {\n\n\t}",
"java.util.List<java.lang.String>\n getSourceFileList();",
"public boolean sourceExists(String name) {\n \treturn mTemplates.containsKey(name);\n }",
"boolean hasSrcPath();",
"public IAstRlsSourceFile findRlsFile(int langCode);",
"private InputSource filesystemLookup(ResourceLocation matchingEntry) {\n\n String uri = matchingEntry.getLocation();\n // the following line seems to be necessary on Windows under JDK 1.2\n uri = uri.replace(File.separatorChar, '/');\n URL baseURL;\n\n //\n // The ResourceLocation may specify a relative path for its\n // location attribute. This is resolved using the appropriate\n // base.\n //\n if (matchingEntry.getBase() != null) {\n baseURL = matchingEntry.getBase();\n } else {\n try {\n baseURL = FILE_UTILS.getFileURL(getProject().getBaseDir());\n } catch (MalformedURLException ex) {\n throw new BuildException(\"Project basedir cannot be converted to a URL\");\n }\n }\n\n URL url = null;\n try {\n url = new URL(baseURL, uri);\n } catch (MalformedURLException ex) {\n // this processing is useful under Windows when the location of the DTD\n // has been given as an absolute path\n // see Bugzilla Report 23913\n File testFile = new File(uri);\n if (testFile.exists() && testFile.canRead()) {\n log(\"uri : '\"\n + uri + \"' matches a readable file\", Project.MSG_DEBUG);\n try {\n url = FILE_UTILS.getFileURL(testFile);\n } catch (MalformedURLException ex1) {\n throw new BuildException(\n \"could not find an URL for :\" + testFile.getAbsolutePath());\n }\n } else {\n log(\"uri : '\"\n + uri + \"' does not match a readable file\", Project.MSG_DEBUG);\n\n }\n }\n\n InputSource source = null;\n if (url != null && \"file\".equals(url.getProtocol())) {\n String fileName = FILE_UTILS.fromURI(url.toString());\n if (fileName != null) {\n log(\"fileName \" + fileName, Project.MSG_DEBUG);\n File resFile = new File(fileName);\n if (resFile.exists() && resFile.canRead()) {\n try {\n source = new InputSource(Files.newInputStream(resFile.toPath()));\n String sysid = JAXPUtils.getSystemId(resFile);\n source.setSystemId(sysid);\n log(\"catalog entry matched a readable file: '\"\n + sysid + \"'\", Project.MSG_DEBUG);\n } catch (IOException ex) {\n // ignore\n }\n }\n }\n }\n return source;\n }",
"@Override\n public NestedSet<Artifact> getDeclaredIncludeSrcs() {\n return ccCompilationContext.getDeclaredIncludeSrcs();\n }",
"public void testSourceName() {\n\t\tassertEquals(\"boolean\", this.compiler.getSourceName(boolean.class));\n\t\tassertEquals(\"java.lang.Integer\", this.compiler.getSourceName(Integer.class));\n\t\tassertEquals(\"java.sql.Connection\", this.compiler.getSourceName(Connection.class));\n\t\tassertEquals(\"char[]\", this.compiler.getSourceName(char[].class));\n\t\tassertEquals(\"java.lang.String[]\", this.compiler.getSourceName(String[].class));\n\t}",
"ModulePath getModulePath();",
"private boolean isSourceDirectory(Project project, String sourceDirectory) {\r\n\t\tboolean result=false;\r\n\t\tif(sourceDirectory!=null&&(!sourceDirectory.equals(\"gen\"))){\r\n\t\t\tresult=true;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"String getSource();",
"public abstract String getSource();",
"@Override\n public com.gensym.util.Symbol getContainingModule() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.CONTAINING_MODULE_);\n return (com.gensym.util.Symbol)retnValue;\n }",
"private void scanClass(String scanPackage) {\n URL url = this.getClass().getClassLoader().getResource(\"/\" + scanPackage.replaceAll(\"\\\\.\", \"/\"));\n File dir = new File(url.getFile());\n for (File file : dir.listFiles()) {\n if (file.isDirectory()) {\n scanClass(scanPackage + \".\" + file.getName());\n } else {\n classNames.add(scanPackage + \".\" + file.getName().replaceAll(\".class\", \"\").trim());\n }\n }\n\n }",
"private void traverseSourceFiles(IResource[] members) {\n\t\tfor (int index = 0; index < members.length; index++) {\n\t\t\tif (monitor.isCanceled()) { // return if cancel is requested\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tIResource resource = members[index];\n\t\t\tif (resource instanceof IContainer) {\n\t\t\t\tIContainer container = (IContainer) resource;\n\t\t\t\tIResource[] newMembers = null;\n\t\t\t\ttry {\n\t\t\t\t\tnewMembers = container.members();\n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\tSystem.out.println(\"Could not access members \"\n\t\t\t\t\t\t\t+ \"of the container \" + container.getFullPath()\n\t\t\t\t\t\t\t+ \".\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttraverseSourceFiles(newMembers);\n\t\t\t}\n\t\t\tif (resource instanceof IFile) {\n\t\t\t\tastEngine = new ASTEngine((IFile) resource, this, mode, pattern);\n\t\t\t\tastEngine.traverseSource();\n\t\t\t\tmonitor.worked(1);\n\t\t\t}\n\t\t}\n\t}",
"public boolean isSource()\n\t{\n\t\treturn isSource;\n\t}",
"public void setSource (String source);",
"interface Source {\n /** Finds a reader for a given file name.\n */\n public java.io.Reader getReader (URL url) throws java.io.IOException;\n }",
"private List<ImageInfo> scanForImageInfo(CharSequence source) {\n return null; \n }",
"private Sources(Builder b)\n {\n super(NAMESPACE, ELEMENT);\n\n for (MediaSource ms: b.mediaSources)\n {\n addChildExtension(ms);\n }\n }",
"@Test\n public void testPackagePrivateAccessForNames_esModule() {\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"/** @package */\", //\n \"var name = 'foo';\",\n \"export {name};\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"import {name} from '/foo/bar.js'; name;\")));\n }",
"@Test\n public void testPackagePrivateAccessForNames_googModule() {\n disableRewriteClosureCode();\n testNoWarning(\n srcs(\n SourceFile.fromCode(\n Compiler.joinPathParts(\"foo\", \"bar.js\"),\n lines(\n \"goog.module('Foo');\",\n \"/** @package */\",\n \"var name = 'foo';\",\n \"exports = name;\")),\n SourceFile.fromCode(\n Compiler.joinPathParts(\"baz\", \"quux.js\"),\n \"goog.module('client'); const name = goog.require('Foo'); name;\")));\n }",
"static void allowAccess(ClassMaker cm) {\n var thisModule = CoreUtils.class.getModule();\n var thatModule = cm.classLoader().getUnnamedModule();\n thisModule.addExports(\"org.cojen.dirmi.core\", thatModule);\n }",
"public void setSource(String source);",
"CharStream findFile(String name) throws IOException,\n IncludeFileNotFound {\n // Look in the directory containing the source file ...\n String dir = \".\"; // default value used e.g. when reading from stdin\n File src = getSource();\n if (src != null && src.getParent() != null) {\n dir = src.getParent();\n }\n String full = dir + \"/\" + name;\n File f = new File(full);\n if (f.exists()) {\n LOG.debug(\"Using local file \" + full);\n return CharStreams.fromFileName(full);\n }\n\n // ... and fall back to the standard library path if not found.\n final URL url = ClassLoader.getSystemResource(\"include/\" + name);\n if (url != null) {\n LOG.debug(\"Using library \" + url);\n // Use fromReader(Reader, String) to catch the file name --- fromStream(InputStream) does not.\n return CharStreams.fromReader(new InputStreamReader(url.openStream()), url.getFile());\n }\n\n throw new IncludeFileNotFound(name, this, getInputStream()); // TODO: check this\n }",
"public interface SourceListener {\n public void added(Source source,\n JavaProject javaProject, String name);\n\n public void removed(Source source,\n JavaProject javaProject, String name);\n\n public void changed(Source source,\n JavaProject javaProject, String name);\n }",
"public void find() {\n for (CompilationUnit file : this.files) {\n // Iterate over each of the class/interface declaration in the file\n for (ClassOrInterfaceDeclaration clsOrInterfDecl\n : file.findAll(ClassOrInterfaceDeclaration.class)) {\n // Stop when the declration isnt an interface\n if (!clsOrInterfDecl.isInterface()) {\n continue;\n }\n this.clsOrInterfDeclrs.add(clsOrInterfDecl);\n }\n }\n }",
"public void getResults(String name)\n {\n try\n {\n Module m = compileModule(modules.get(name));\n m.displayResults();\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }",
"private String findSource(Request request) {\n String current = \"class\";\n String source = current;\n // check the java execution params for dev or prod values\n RuntimeMXBean runtimeMxBean = ManagementFactory.getRuntimeMXBean();\n List<String> arguments = runtimeMxBean.getInputArguments();\n // it will be run only for the first request\n if (startParameterSource == null) {\n // this condition will met only once per lifecycle\n startParameterSource = \"\";\n for (String arg : arguments) {\n if (arg != null && arg.startsWith(\"-Dtarget.source=\")) {\n startParameterSource = arg.substring(\"-Dtarget.source=\".length());\n break;\n }\n }\n }\n // first level is jvm parameter\n if (startParameterSource != null) {\n current = startParameterSource;\n }\n\n // second is the session\n if (request.getSession().containsKey(\"Dtarget.source\") && request.getSession().get(\"Dtarget.source\") != null) {\n current = String.valueOf(request.getSession().get(\"Dtarget.source\"));\n }\n\n // third is the header\n if (request.getHeader(\"Dtarget.source\") != null) {\n current = request.getHeader(\"Dtarget.source\");\n }\n\n // last is the request\n if (request.get(\"Dtarget.source\") != null) {\n current = request.get(\"Dtarget.source\");\n }\n\n if (\"db\".equalsIgnoreCase(current)) {\n source = \"db\";\n } else if (\"db-update-from-file\".equalsIgnoreCase(current)) {\n source = \"db-update-from-file\";\n } else if (\"file\".equalsIgnoreCase(current)) {\n source = \"file\";\n } else if (\"class\".equalsIgnoreCase(current)) {\n source = \"class\";\n }\n\n // return current execution source\n return source;\n }",
"protected JavaSource getJavaSourceForClass(String clazzname) {\n String resource = clazzname.replaceAll(\"\\\\.\", \"/\") + \".java\";\n FileObject fileObject = classPath.findResource(resource);\n if (fileObject == null) {\n return null;\n }\n Project project = FileOwnerQuery.getOwner(fileObject);\n if (project == null) {\n return null;\n }\n SourceGroup[] sourceGroups = ProjectUtils.getSources(project).getSourceGroups(\"java\");\n for (SourceGroup sourceGroup : sourceGroups) {\n return JavaSource.create(ClasspathInfo.create(sourceGroup.getRootFolder()));\n }\n return null;\n }",
"public void setSource(String source) {\r\n this.source = source;\r\n }",
"@Test\n public void sourceTest() {\n // TODO: test source\n }",
"@Test\n public void sourceTest() {\n // TODO: test source\n }",
"protected void connectToSourceRegistry()\r\n {\r\n TLCOutputSourceRegistry.getTraceExploreSourceRegistry().connect(this);\r\n }",
"public static void main(String[] args) throws IOException {\n\n _project _sc = _project.of();\n //reads from a maven-central jar file\n _downloadArchiveConsumer.of(\"https://search.maven.org/remotecontent?filepath=com/github/javaparser/javaparser-core/3.15.18/javaparser-core-3.15.18-sources.jar\",\n (ZipEntry ze, InputStream is)-> {\n if( ze.getName().endsWith(\".java\")){\n _sc.add( _codeUnit.of(is) );\n }\n });\n System.out.println( _sc.size() );\n\n _project _src = _githubProject.of(\"https://github.com/edefazio/bincat\").load();\n //_sources _src = _sources.of();\n //_downloadArchive _da = _downloadArchive.of(url, (ZipEntry ze,InputStream is)-> {\n // if( ze.getName().endsWith(\".java\")){\n // _src.add( _codeUnit.of(is) );\n // }\n //});\n /*\n try( InputStream inputStream = url.openStream();\n ZipInputStream zis = new ZipInputStream(inputStream) ) {\n\n byte[] buffer = new byte[2048];\n\n while (zis.available() > 0) {\n ZipEntry ze = zis.getNextEntry();\n System.out.println(\"reading \" + ze.getName());\n\n if( ze.isDirectory() ){\n ze.\n } else if( ze.)\n\n if (!ze.isDirectory() && ze.getName().endsWith(\".java\")) {\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int len;\n while ((len = zis.read(buffer)) > 0) {\n baos.write(buffer, 0, len);\n }\n try {\n System.out.println(\"adding\" + ze.getName());\n _src.add(_codeUnit.of(baos.toString()));\n } catch (Exception e) {\n throw new _ioException(\"could not read from entry \" + ze.getName());\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n */\n\n System.out.println( \"finished reading \"+ _src.size());\n }",
"public String[] getAllSources() {\n return this.sourceList.toArray(new String[0]);\n }",
"public boolean isSource() {\r\n \t\treturn source;\r\n \t}",
"private static void processRepository(File repo) {\n System.out.println(\"Processing repository: \" + repo);\n for (File fileOrDir : repo.listFiles()) {\n if (fileOrDir.isDirectory()) {\n processModule(fileOrDir);\n }\n }\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public void setSource(String source) {\n this.source = source;\n }",
"public static List<String> checkImports(CompilationUnit cu) {\n\t\tList<String> list = new ArrayList<>();\n\t\tImportCollector ic = new ImportCollector();\n\t\tic.visit(cu, list);\n\t\treturn list;\n\t}",
"@Test\n public void publicModuleNonPublicIncludes() {\n Source publicModuleFile =\n CompilerTests.javaSource(\n \"test.PublicModule\",\n \"package test;\",\n \"\",\n \"import dagger.producers.ProducerModule;\",\n \"\",\n \"@ProducerModule(includes = {\",\n \" BadNonPublicModule.class, OtherPublicModule.class, OkNonPublicModule.class\",\n \"})\",\n \"public final class PublicModule {}\");\n Source badNonPublicModuleFile =\n CompilerTests.javaSource(\n \"test.BadNonPublicModule\",\n \"package test;\",\n \"\",\n \"import dagger.producers.ProducerModule;\",\n \"import dagger.producers.Produces;\",\n \"\",\n \"@ProducerModule\",\n \"final class BadNonPublicModule {\",\n \" @Produces\",\n \" int produceInt() {\",\n \" return 42;\",\n \" }\",\n \"}\");\n Source okNonPublicModuleFile =\n CompilerTests.javaSource(\n \"test.OkNonPublicModule\",\n \"package test;\",\n \"\",\n \"import dagger.producers.ProducerModule;\",\n \"import dagger.producers.Produces;\",\n \"\",\n \"@ProducerModule\",\n \"final class OkNonPublicModule {\",\n \" @Produces\",\n \" static String produceString() {\",\n \" return \\\"foo\\\";\",\n \" }\",\n \"}\");\n Source otherPublicModuleFile =\n CompilerTests.javaSource(\n \"test.OtherPublicModule\",\n \"package test;\",\n \"\",\n \"import dagger.producers.ProducerModule;\",\n \"\",\n \"@ProducerModule\",\n \"public final class OtherPublicModule {\",\n \"}\");\n CompilerTests.daggerCompiler(\n publicModuleFile,\n badNonPublicModuleFile,\n okNonPublicModuleFile,\n otherPublicModuleFile)\n .compile(\n subject -> {\n subject.hasErrorCount(1);\n subject.hasErrorContaining(\n \"This module is public, but it includes non-public (or effectively non-public) \"\n + \"modules (test.BadNonPublicModule) that have non-static, non-abstract \"\n + \"binding methods. Either reduce the visibility of this module, make the \"\n + \"included modules public, or make all of the binding methods on the \"\n + \"included modules abstract or static.\")\n .onSource(publicModuleFile)\n .onLine(8);\n });\n }",
"static boolean sourceCoveredByProjectViewTargets(LocationContext context) {\n Collection<TargetKey> targetsBuildingSource =\n SourceToTargetMap.getInstance(context.project)\n .getRulesForSourceFile(new File(context.file.getPath()));\n return !targetsBuildingSource.isEmpty()\n && sourceInProjectTargets(context, targetsBuildingSource);\n }",
"public abstract Source getSource();",
"int getNumSources();"
] | [
"0.6044599",
"0.5992122",
"0.59821016",
"0.59348637",
"0.58848643",
"0.58287853",
"0.570214",
"0.56976706",
"0.5641507",
"0.5554895",
"0.55341613",
"0.5523791",
"0.5496373",
"0.54958385",
"0.5477179",
"0.54605204",
"0.5458578",
"0.54440105",
"0.5427399",
"0.5371304",
"0.5366044",
"0.5347025",
"0.5340649",
"0.5332745",
"0.53298247",
"0.53090227",
"0.5300654",
"0.5297211",
"0.5288311",
"0.5263614",
"0.5255091",
"0.5246667",
"0.5245781",
"0.52409005",
"0.5222018",
"0.52095693",
"0.51888853",
"0.5168987",
"0.51559097",
"0.51338494",
"0.5124798",
"0.5119949",
"0.51149565",
"0.5105102",
"0.510168",
"0.5084426",
"0.5083405",
"0.5067547",
"0.50641775",
"0.50530314",
"0.5052182",
"0.50395125",
"0.50395125",
"0.50357896",
"0.5027364",
"0.50120044",
"0.5007757",
"0.500748",
"0.5003194",
"0.49898273",
"0.49794674",
"0.49753642",
"0.49542844",
"0.4951607",
"0.49495637",
"0.4945748",
"0.49184558",
"0.49060974",
"0.49050033",
"0.4883085",
"0.4881472",
"0.4877141",
"0.4872062",
"0.4865996",
"0.4850165",
"0.48477986",
"0.48448396",
"0.48404095",
"0.4840374",
"0.48394597",
"0.48276573",
"0.48203224",
"0.48197594",
"0.4819088",
"0.48189014",
"0.48186472",
"0.48183158",
"0.4818076",
"0.4818076",
"0.48161885",
"0.4815951",
"0.48136914",
"0.48133075",
"0.4812723",
"0.4804048",
"0.4804048",
"0.4802455",
"0.47946715",
"0.479435",
"0.47933254",
"0.4790749"
] | 0.0 | -1 |
Creates new form conversionHistory | public conversionHistory() {
initComponents();
project_classes.DBLogic dl = new project_classes.DBLogic();//Initializing a DBLogic Object
dl.GetConnection();//Getting the connection
dl.populateConversionHistory(conversionHistoryTbl);//we populate the table conversionHistoryTbl by calling DBLogic member method populateConversionHistory
this.setTitle("Conversion History");//setting the title of the form
this.setResizable(false);//Setting the resizable option to false
getContentPane().setBackground(Color.decode("#005580"));//changing main panle background
mainPanel.setBackground(Color.decode("#005580"));//changing the secondary panle back-ground
conversionHistoryTbl.setBackground(Color.decode("#33D1B9"));//setting the back-gounrd of the JTable conversionHistoryTbl
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ConversionHistory() {\r\n conversionDate = LocalDate.now();\r\n }",
"private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(\"result.txt\"));\n\t\t\tfos = new FileOutputStream(new File(\"history.txt\"), true);\n\t\t\t\n\t\t\tfos.write(\"\\n\\n\".getBytes(\"utf-8\"));\n\t\t\tfos.flush();\n\t\t\t\n\t\t\tresultChannel = fis.getChannel();\n\t\t\thistoryChannel = fos.getChannel();\n\n\t\t\tresultChannel.transferTo(0, resultChannel.size(), historyChannel);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tif (fos != null) {\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(resultChannel != null) {\n\t\t\t\t\tresultChannel.close();\n\t\t\t\t}\n\t\t\t\tif(historyChannel != null) {\n\t\t\t\t\thistoryChannel.close();\n\t\t\t\t}\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}",
"private History() {}",
"protected abstract void createHistoryEvents();",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUIViewTransactionHistory h = new GUIViewTransactionHistory(true);\n\t\t\t}",
"public History() {\n }",
"private static void createHistoryEntry(int docId, String username, String eventType) {\r\n History history = new History();\r\n history.setDocId(docId);\r\n history.setDate(DateBean.toCompactString());\r\n history.setUsername(username);\r\n history.setEvent(eventType);\r\n HistoryDAO historyDao = (HistoryDAO) Context.getInstance().getBean(HistoryDAO.class);\r\n historyDao.store(history);\r\n }",
"public UpdateHistory() {\n this(\"update_history\", null);\n }",
"public BuildHistory(){\n buildHistory = new ArrayList<Build>();\n }",
"public void insertHistory(RecordDTO recordDTO);",
"private FXDealHistory() {}",
"void generateResponseHistory(LocalDate from, LocalDate to);",
"private void populateTreatementHistory() {\n DefaultTableModel model = (DefaultTableModel) historyTable.getModel();\n model.setRowCount(0);\n if (wr.getPatient().getPerson().getTreatmentHistory() != null) {\n for (WorkRequest r : wr.getPatient().getPerson().getTreatmentHistory()) {\n Object[] row = new Object[4];\n row[0] = r.getReceiver();\n row[1] = r.getResolveDate();\n row[2] = r.getMessage();\n row[3] = r.getStatus();\n\n model.addRow(row);\n }\n }\n\n }",
"public void initAllHistory() {\n\t\t// firstly tell the view clear its history content.\n\t\tview.clearHistoryTableContent();\n\n\t\tArrayList<Integer> scores = selectedLesson.getTestResultScores();\n\t\tArrayList<String> times = selectedLesson.getTestResultTimes();\n\n\t\tint count = times.size();\n\t\tfor (int i = 0; i < count; ++i) {\n\t\t\tview.addHistory(times.get(i), scores.get(i));\n\t\t}\n\t}",
"public AcademicHistory() {\n listOfTerms = new ArrayList<Term>();\n }",
"public void saveHistory() {\r\n\t\tJFileChooser jfc = new JFileChooser();\r\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\tjfc.setDialogTitle(\"Save \" + curveName + \" history\");\r\n\t\tjfc.setSelectedFile(new File(\".txt\"));\r\n\t\tint returnVal = jfc.showSaveDialog(getRootPane());\r\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tif (!cancelBecauseFileExist(jfc.getSelectedFile())) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\thistory.save(jfc.getSelectedFile());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Error while saving the history\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public VitalSignsHistory(){\n \n vitalSignsHistory = new ArrayList<VitalSigns>(); //Initiaizing ArrayList\n \n }",
"public PurchaseHistory() {\n this.purchaseHistory = new HashMap<>();\n }",
"int createTicketHistory(TicketHistory ticketHistory, int ticketId, int userId);",
"public HistoryGraph() {\n revisions = new HashSet<Revision>();\n orderedRevisions = new ArrayList<Revision>();\n }",
"public BitHistory(BitHistory bitHistory) {\n mMaxSize = bitHistory.mMaxSize;\n mHistory.addAll(bitHistory.mHistory);\n }",
"private void historyButtonListener() {\n JButton historyButton = gui.getHistory_Button();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n gui.getHistory_TextArea().setText(\"\");\n gui.getFrame_History().setVisible(true);\n gui.getFrame_History().setSize(415, 250);\n gui.getHistory_TextArea().setEditable(false);\n for (int key : requestsAnswered.keySet()) {\n gui.getHistory_TextArea().append(requestsAnswered.get(key).getFormattedRequest());\n }\n for (int key : processingRequests.keySet()) {\n gui.getHistory_TextArea().append(processingRequests.get(key).getFormattedRequest());\n }\n };\n historyButton.addActionListener(actionListener);\n }",
"private History toHistory(Game game) {\n\n History history = new History();\n\n history.setDate(game.getDate());\n history.setPlayerNameUa(game.getUsers().get(0).getNameUa());//TODO improve\n history.setPlayerNameEn(game.getUsers().get(0).getNameEn());//TODO improve\n\n if (game.getUsers().size() > 1) { //TODO improve\n history.setOpponentNameUa(game.getUsers().get(1).getNameUa());\n history.setOpponentNameEn(game.getUsers().get(1).getNameEn());\n } else {\n //TODO correct for both languages\n history.setOpponentNameUa(ResourceBundleUtil.getBundleString(\"games.game.statistics.text.audience\"));\n history.setOpponentNameEn(ResourceBundleUtil.getBundleString(\"games.game.statistics.text.audience\"));\n }\n\n User firstPlayer = game.getUsers().get(0); //TODO correct\n long firstPlayerScores = game.getAnsweredQuestions()\n .stream()\n .filter(aq -> firstPlayer.equals(aq.getUserWhoGotPoint()))\n .count();\n\n long secondPlayerScores = (long) game.getAnsweredQuestions()\n .size() - firstPlayerScores;\n\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(firstPlayerScores);\n stringBuilder.append(DELIMITER);//TODO move \":\" to properties\n stringBuilder.append(secondPlayerScores);\n String scores = stringBuilder.toString();\n history.setScores(scores);\n //TODO correct for both languages\n game.getAppeals().stream()\n .forEach(appeal -> {\n if (appeal.getAppealStage().equals(AppealStage.CONSIDERED)) {\n history.setAppealStage(ResourceBundleUtil.getBundleStringForAppealStage(AppealStage.CONSIDERED.name()));\n } else {\n history.setAppealStage(ResourceBundleUtil.getBundleStringForAppealStage(AppealStage.NOT_FILED.name()));\n }\n\n });\n// }\n return history;\n\n }",
"@Override\n public EditHistory createFromParcel(Parcel in) {\n return new EditHistory(in);\n }",
"public void getHistory() {\n List<Map<String, String>> HistoryList = null;\n HistoryList = getData();\n String[] fromwhere = {\"Line\", \"Station\", \"Repair_Time_Start\", \"Repair_Time_Finish\", \"Repair_Duration\"};\n int[] viewwhere = {R.id.Line, R.id.Station, R.id.RepairTimeStart, R.id.RepairTimeFinish, R.id.Duration};\n ABH = new SimpleAdapter(BreakdownHistory.this, HistoryList, R.layout.list_history, fromwhere, viewwhere);\n BreakdownHistory.setAdapter(ABH);\n }",
"public ViewHistory(ElectricityCompany m,ControllerHistory c) {//construction of view history\r\n\t\tsuper(m,c);\t\t\r\n\t\tthis.setTitle(\"View History\");\r\n\t\tthis.setSize(400,300);\r\n\t\tHistoryPanel history = new HistoryPanel(m);\r\n\t\tthis.add(history);\r\n\t\t\r\n\t}",
"public static SyncHistory createEntity() {\n return new SyncHistory();\n }",
"public BuildHistory(ArrayList<Build> buildHistory) {\n this.buildHistory = buildHistory;\n }",
"private StreamCouponHistory(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public History(History historyData) {\n\tthis.timestampMinute = historyData.getTimestampMinute();\n\tthis.status = historyData.getStatus();\n\tthis.plug = historyData.getPlug();\n }",
"public void switchToHistory() {\r\n\t\thistoryPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"historyPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"private ArrayList<Progress> generateFakeProgressHistory() {\n ArrayList<Progress> history = new ArrayList<>();\n\n Progress progress;\n\n int prevDay = -1;\n\n for (int i = 0; i < 5; i++) {\n progress = new Progress();\n progress.setUsername(Util.getUsername());\n progress.setDate(Util.getPrevDate(prevDay));\n progress.setSteps(\"1467\");\n progress.setMilestones_day(\"3\");\n history.add(progress);\n prevDay--;\n }\n\n return history;\n }",
"public CommandHistoryLinkedList() {\r\n\t\thistoryDate = new LinkedList<String>();\r\n\t\thistoryAL = new LinkedList<ArrayList<String>>();\r\n\t}",
"private List<ResourceExtenderHistory> getResourceExtenderHistoryListForDashboard( ResourceHistory resourceHistory, MassNotificationTaskConfig config, int nIdForm )\n {\n List<ResourceExtenderHistory> listResourceExtenderHistory = new ArrayList<>( );\n\n for ( String extenderType : config.getListExtenderTypesForDashboard( ) )\n {\n ResourceExtenderHistoryFilter filter = new ResourceExtenderHistoryFilter( );\n filter.setExtenderType( extenderType );\n filter.setIdExtendableResource( String.valueOf( resourceHistory.getIdResource( ) ) );\n filter.setExtendableResourceType( getResourceType( resourceHistory.getResourceType( ), nIdForm ) );\n \n listResourceExtenderHistory.addAll( _resourceExtenderHistoryService.findByFilter( filter ) );\n }\n return listResourceExtenderHistory;\n }",
"private void addDailyReportButtonFunction() {\n\t\tdailyReportButton.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tGUIViewTransactionHistory h = new GUIViewTransactionHistory(true);\n\t\t\t}\t\t\n\t\t});\n\t}",
"private void addCycle(int cycle) {\n // Add entries to history in case none is present yet for the given cycle\n if (!historyPackets.containsKey(cycle)) {\n historyPackets.put(cycle, new ArrayList<>());\n }\n if (!historyMoves.containsKey(cycle)) {\n historyMoves.put(cycle, new ArrayList<>());\n }\n if (!historyEnergy.containsKey(cycle)) {\n historyEnergy.put(cycle, new ArrayList<>());\n }\n }",
"LoginHistory create(LoginHistory entity);",
"private Object appendHistory(final Context ctx, final NumberMgmtHistory history) throws HomeException,\r\n HomeInternalException\r\n {\r\n final Home home = getHome(ctx);\r\n if (!validate(ctx, history))\r\n {\r\n return null;\r\n }\r\n return home.create(ctx, history);\r\n }",
"public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}",
"public hr.client.appuser.CouponCenter.ExchangeRecord.Builder addExchangeHistoryListBuilder(\n int index) {\n return getExchangeHistoryListFieldBuilder().addBuilder(\n index, hr.client.appuser.CouponCenter.ExchangeRecord.getDefaultInstance());\n }",
"public Changes() {\n }",
"@PostMapping(\"/family-histories\")\n @Timed\n public ResponseEntity<FamilyHistory> createFamilyHistory(@Valid @RequestBody FamilyHistory familyHistory) throws URISyntaxException {\n log.debug(\"REST request to save FamilyHistory : {}\", familyHistory);\n if (familyHistory.getId() != null) {\n throw new BadRequestAlertException(\"A new familyHistory cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n FamilyHistory result = familyHistoryService.save(familyHistory);\n return ResponseEntity.created(new URI(\"/api/family-histories/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }",
"public IapHistory() {\n\t\tthis(\"iap_history\", null);\n\t}",
"private JList getHistoryList() {\n if (historyList == null) {\n historyList = new JList();\n historyList.setModel(new ListListModel(new ArrayList()));\n historyList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n historyList.setCellRenderer(new HistoryListCellRenderer());\n historyList.addListSelectionListener(new ListSelectionListener() {\n\n public void valueChanged(ListSelectionEvent e) {\n final History history = (History) historyList.getSelectedValue();\n\n getViewPanel().setHistory(history);\n\n /*\n * Toggle the buttons off if no action needs to be taken\n */\n\n if (!isLocked() && getUserAccount().isAdministrator()) {\n final OkCancelButtonPanel panel = getButtonPanel();\n\n panel.getOkayButton().setEnabled((history != null) && !history.isProcessed());\n panel.getCancelButton().setEnabled((history != null) && !history.isProcessed());\n }\n\n }\n\n });\n }\n\n return historyList;\n }",
"private void setHistory(final CreateUrlRequest request)\n {\n String token = Session.getInstance().generateUrl(request);\n History.newItem(token, true);\n }",
"public JHistoryTextField()\n {\n this(true);\n }",
"private GetCouponExchangeHistory(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"void addRecord(HistoryRecord record) throws IOException;",
"private void saveHistoryToFile(File file) {\n JSONObject head = new JSONObject();\n\n // Meta information about the run\n JSONObject meta = new JSONObject();\n meta.put(\"TotalCycles\", this.totalCycles == -1 ? getEnvironment().getTime() : this.totalCycles);\n meta.put(\"TotalPackets\", this.totalPackets);\n meta.put(\"PacketsDelivered\", this.historyPackets.values().stream()\n .flatMap(Collection::stream)\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .count());\n meta.put(\"EnergyConsumed\", UserPanel.getInstance().score);\n\n\n JSONObject moves = new JSONObject();\n moves.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"FromX\", \"FromY\", \"ToX\", \"ToY\"}));\n moves.put(\"Data\", new JSONArray(historyMoves.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetPickup = new JSONObject();\n packetPickup.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"PacketX\", \"PacketY\"}));\n packetPickup.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Pickup)\n .map(p -> p.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDelivery = new JSONObject();\n packetDelivery.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DestinationX\", \"DestinationY\"}));\n packetDelivery.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDrop = new JSONObject();\n packetDrop.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DropX\", \"DropY\"}));\n packetDrop.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Drop)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject energyUpdate = new JSONObject();\n energyUpdate.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"Operator\", \"Percentage\"}));\n energyUpdate.put(\"Data\", new JSONArray(historyEnergy.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n head.put(\"Meta\", meta);\n head.put(\"Moves\", moves);\n head.put(\"PacketPickups\", packetPickup);\n head.put(\"PacketDeliveries\", packetDelivery);\n head.put(\"PacketDrops\", packetDrop);\n head.put(\"EnergyUpdates\", energyUpdate);\n\n try {\n FileWriter writer = new FileWriter(file);\n head.write(writer, 0, 0);\n writer.close();\n } catch (IOException e) {\n System.err.println(\"Failed to write history to file \" + file.getAbsolutePath());\n e.printStackTrace();\n }\n }",
"public void appendHistoryLog(String convertedURL) {\n\t\tString url_to_save = convertedURL + \"\\n\";\n\t\ttry (FileWriter fw = new FileWriter(\"history.txt\", true);\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\tPrintWriter out = new PrintWriter(bw)) {\n\t\t\tout.println(url_to_save);\n\t\t\tlblStatus.setText(\"Url successfully saved!\");\n\t\t} catch (IOException e) {\n\t\t\tlblStatus.setText(e.toString());\n\t\t}\n\t\t/*\n\t\t * try { Files.write(Paths.get(\"history.txt\"), url_to_save.getBytes(),\n\t\t * StandardOpenOption.APPEND); } catch (IOException e) { // tfNewURL\n\t\t * e.printStackTrace(); }\n\t\t */\n\t}",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"private EventHistoryTable() {}",
"@RequestMapping(value = \"/clinicHistoryAddInfs\",\n method = RequestMethod.POST,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<ClinicHistoryAddInf> create(@RequestBody ClinicHistoryAddInf clinicHistoryAddInf) throws URISyntaxException {\n log.debug(\"REST request to save ClinicHistoryAddInf : {}\", clinicHistoryAddInf);\n if (clinicHistoryAddInf.getId() != null) {\n return ResponseEntity.badRequest().header(\"Failure\", \"A new clinicHistoryAddInf cannot already have an ID\").body(null);\n }\n ClinicHistoryAddInf result = clinicHistoryAddInfRepository.save(clinicHistoryAddInf);\n return ResponseEntity.created(new URI(\"/api/clinicHistoryAddInfs/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(\"clinicHistoryAddInf\", result.getId().toString()))\n .body(result);\n }",
"void saveActivityHistForAddEntity(Record inputRecord);",
"@Override\n public String toString()\n {\n return \"HistoryEntry from: \" + validFrom + \", to: \" + validTo;\n }",
"public DispatchRouteHistoricalEntryBuilder() {\r\n dispatchRouteHistoricalEntry = new DispatchRouteHistoricalEntry();\r\n }",
"public History() {\n\tthis.timestampMinute = new Date();\n\tthis.status = false;\n\n }",
"public void openHistory() {\n usingHistoryScreen = true;\n myActivity.setContentView(R.layout.history);\n Button historyButtonToGame = myActivity.findViewById(R.id.button8);\n TextView historyText = myActivity.findViewById(R.id.textView46);\n historyText.setText(state.getHistory());\n historyText.setMovementMethod(new ScrollingMovementMethod());\n gui.invalidate();\n historyButtonToGame.setOnClickListener(\n new View.OnClickListener() {\n public void onClick(View v) {\n ShogiHumanPlayer.this.setAsGui(myActivity);\n usingHistoryScreen = false;\n if (state != null) {\n receiveInfo(state);\n }\n }\n });\n }",
"public RiswanAgam_HistoryFrame() {\n initComponents();\n Dimension size = Toolkit.getDefaultToolkit().getScreenSize();\n int width = (int)size.getWidth();\n int height = (int)size.getHeight();\n setBounds(width/2-200,height/2-250,670,540);\n database = new RiswanAgam_Database();\n database.connection();\n initTable();\n setResizable(false);\n setTitle(\"History\");\n setDefaultCloseOperation(this.DO_NOTHING_ON_CLOSE);\n }",
"private HistoryDTO convertEntityToDTO(History history) {\n\t\tHistoryDTO historyDto = modelMapper.map(history, HistoryDTO.class);\n\t\treturn historyDto;\n\t}",
"private History convertDTOToEntity(HistoryDTO historyDto) {\n\t\tHistory history = modelMapper.map(historyDto, History.class);\n\t\treturn history;\n\t}",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"public synchronized void addChannelToHistory(String channel) {\r\n if (!settings.getBoolean(\"saveChannelHistory\")) {\r\n return;\r\n }\r\n channel = prepareChannel(channel);\r\n if (channel == null) {\r\n return;\r\n }\r\n settings.mapPut(HISTORY_SETTING, channel, System.currentTimeMillis());\r\n settings.setSettingChanged(\"channelHistory\");\r\n }",
"public ActionForward addChangeLog(ActionMapping mapping, ActionForm form,\n\t\t\tHttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows Exception {\n\t\tString devId = request.getParameter(\"chid\");\n\t\tAssetChangeLogForm forms = (AssetChangeLogForm) form; \n\t\tAssetChangeLogBO bean = new AssetChangeLogBO();\n\t\tbean.setCreateTime(new Timestamp(System.currentTimeMillis()));\n\t\tbean.setStatusAfter(forms.getStatusAfter());\n\t\tbean.setStatusBefore(forms.getStatusBefore());\n\t\tInteger deviceId = null;\n\t\tif(devId != null && !\"\".equals(devId.trim()))\n\t\t\tdeviceId = Integer.valueOf(devId);\n\t\tbean.setDeviceId(deviceId);\n\t\tassetChangeLogService.saveAssetChangeLog(bean);\n\t\tAssetDeviceBO device = assetDeviceService.findById(deviceId);\n\t\tDomain department = new Domain();\n\t\tif(device.getLocationId()!= null){\n\t\t\tdepartment.setId(device.getLocationId());\n\t\t}\n\t\tif(device != null && device.getName() != null && !\"\".equals(device.getName().trim()))\n//\t\t\tsendAlertService.sendAlertService(1, \"资产管理\", \"资产信息变动\", null, device.getName()+\"有新的资产变动信息!\" + \"变更后:\" + bean.getStatusAfter(), null, null, \"事件报告\", WebConfigContent.mailAddress, WebConfigContent.mailFrom, WebConfigContent.mailPassword, WebConfigContent.mmsIp,WebConfigContent.mmsPort,department);\n\t\trequest.setAttribute(\"locid\", request.getParameter(\"locid\"));\n\t\trequest.setAttribute(\"typid\", request.getParameter(\"typeid\"));\n\t\trequest.setAttribute(\"chid\", request.getParameter(\"chid\"));\n\t\trequest.setAttribute(\"curpage\", request.getParameter(\"curpage\"));\n\t\treturn searchChangeLog(mapping, form, request, response);\n\t}",
"public void addMedicalHistory(MedicalHistory medicalHistory){}",
"protected void addToHistory(ModelContainer model, \n\t\t\tList<OWLOntologyChange> appliedChanges, METADATA metadata) {\n\t\t// do nothing, for now\n\t}",
"private void export(ActionEvent actionEvent) {\n if (this.totalCycles == -1) {\n var result = JOptionPane.showConfirmDialog(this, \"The run is not finished yet. Are you sure you want to proceed?\",\n \"Unfinished run\", JOptionPane.YES_NO_CANCEL_OPTION);\n\n if (result == JOptionPane.NO_OPTION) {\n return;\n }\n }\n\n // File dialog to save the history\n var fileChooser = new JFileChooser();\n fileChooser.setFileFilter(new FileFilter() {\n @Override\n public boolean accept(File file) {\n return file.getName().endsWith(\".json\");\n }\n\n @Override\n public String getDescription() {\n return \"*.json\";\n }\n });\n\n fileChooser.setAcceptAllFileFilterUsed(false);\n fileChooser.setCurrentDirectory(new File(Variables.OUTPUT_PATH));\n var resultDialog = fileChooser.showSaveDialog(this);\n\n if (resultDialog == JFileChooser.APPROVE_OPTION) {\n var file = fileChooser.getSelectedFile();\n\n if (!file.getName().endsWith(\".json\")) {\n file = new File(file.getAbsolutePath() + \".json\");\n }\n if (file.exists()) {\n var sure = JOptionPane.showConfirmDialog(this, \"File already exists. Overwrite?\",\n \"Overwrite file?\", JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n if (sure != JOptionPane.YES_OPTION) {\n return;\n }\n }\n\n this.saveHistoryToFile(file);\n }\n }",
"public static Map<Integer, DataDto> createHistoryDataByGrowDay(final Map<Integer, String> history,\n final DataDto data) {\n Map<Integer, DataDto> histDataByGrowDay = new TreeMap<Integer, DataDto>();\n Set<Entry<Integer, String>> entries = history.entrySet();\n for (Entry entry : entries) {\n DataDto dataFromHist = getDataFromHistory(data, (String) entry.getValue());\n if (dataFromHist != null) {\n histDataByGrowDay.put((Integer) entry.getKey(), dataFromHist);\n if (entry.getKey() == null) {\n System.out.println(entry);\n }\n }\n }\n return histDataByGrowDay;\n }",
"@Override\n public EditHistory[] newArray(int size) {\n return new EditHistory[size];\n }",
"private void initComponent() {\r\n\t\tjlHistory = new JList<String>(history.get());\r\n\t\tjlHistory.setLayoutOrientation(JList.VERTICAL);\r\n\t\tjlHistory.setVisibleRowCount(history.size());\r\n\t\t\r\n\t\tjspHistory = new JScrollPane(jlHistory);\r\n\t\t\r\n\t\tjbClose = new JButton(\"Close\");\r\n\t\tjbClose.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\t\r\n\t\t\r\n\t\tjbSave = new JButton(\"Save\");\r\n\t\tjbSave.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\r\n\t\t\t\tsaveHistory();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// Add the components\r\n\t\tsetLayout(new GridBagLayout());\r\n\t\tGridBagConstraints c = new GridBagConstraints();\r\n\r\n\t\tc.fill = GridBagConstraints.BOTH;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 0;\r\n\t\tc.gridwidth = 2;\r\n\t\tc.weightx = 1;\r\n\t\tc.weighty = 0.99;\r\n\t\tadd(jspHistory, c);\r\n\t\t\r\n\t\tc.fill = GridBagConstraints.VERTICAL;\r\n\t\tc.gridx = 0;\r\n\t\tc.gridy = 1;\r\n\t\tc.gridwidth = 1;\r\n\t\tc.weighty = 0.01;\r\n\t\tadd(jbSave, c);\t\t\r\n\t\t\r\n\t\tc.gridx = 1;\r\n\t\tc.gridy = 1;\r\n\t\tadd(jbClose, c);\r\n\t}",
"public void showMoveHistory() {\n\t\ttry {\n\t\t\tif (gameMoveHistoryStage == null) {\n\t\t\t\tgameMoveHistoryStage = new Stage();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveHistoryToStorage() {\r\n\t\tfor(Document i: strategy.getEntireHistory()) {\r\n\t\t\tif(!i.getContent().isEmpty()) {\r\n\t\t\t\ti.save(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n // Adding to list\n history.add(glucosedata);\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }",
"public Builder addExchangeHistoryList(\n int index, hr.client.appuser.CouponCenter.ExchangeRecord value) {\n if (exchangeHistoryListBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureExchangeHistoryListIsMutable();\n exchangeHistoryList_.add(index, value);\n onChanged();\n } else {\n exchangeHistoryListBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public ChangeLog() {\n initComponents();\n }",
"private void nextHistoryEntry()\n {\n // get next history entry (into input text field)\n if (this.historyPos < this.history.size()) {\n this.historyPos++;\n this.textInput.setText(this.history.get(this.historyPos));\n this.textInput.setSelection(this.history.get(this.historyPos).length());\n // if last index => input text must be cleaned\n } else if (this.historyPos == this.history.size()) {\n this.textInput.setText(\"\"); //$NON-NLS-1$\n this.textInput.setSelection(0);\n }\n }",
"private void renewPreview() {\r\n\t\tint start = 0;\r\n\t\tsurface.clear();\r\n\t\tfor (start = 0; start < myHistoryManager.historys.size(); start++) {\r\n\t\t\tAbstractHistory history = myHistoryManager.historys.get(start);\r\n\t\t\tif (history.getType() == \"AddHistory\") {\r\n\t\t\t\tPoint endPos = ((AddHistory) history).endPos;\r\n\t\t\t\tMyColor pathColor = ((AddHistory) history).pathColor;\r\n\t\t\t\tstrokeSize = ((AddHistory) history).strokeSize;\r\n\t\t\t\tdouble x = endPos.getVector2().getX();\r\n\t\t\t\tdouble y = endPos.getVector2().getY();\r\n\r\n\t\t\t\tif (strokePointCount == 1) {\r\n\t\t\t\t\t/* set stroke color, size, and shadow */\r\n\t\t\t\t\tcanvas_context.setStrokeStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setFillStyle(pathColor.getColorCode());\r\n\t\t\t\t\tcanvas_context.setLineWidth(strokeSize);\r\n\t\t\t\t\tcanvas_context.setLineCap(LineCap.ROUND);\r\n\t\t\t\t\tcanvas_context.setLineJoin(LineJoin.ROUND);\r\n\t\t\t\t\tcanvas_context.stroke();\r\n\t\t\t\t\tcanvas_context.beginPath();\r\n\t\t\t\t\tcanvas_context.moveTo(x, y);\r\n\t\t\t\t}\r\n\t\t\t\tcanvas_context.lineTo(x, y);\r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\t\r\n\t\t\t} else if (history.getType() == \"PathHeadHistory\") {\r\n\t\t\t\tstrokePointCount = 0; \r\n\t\t\t\tstrokePointCount++;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcanvas_context.stroke();\r\n\t\t\r\n\t}",
"public hr.client.appuser.CouponCenter.ExchangeRecord.Builder getExchangeHistoryListBuilder(\n int index) {\n return getExchangeHistoryListFieldBuilder().getBuilder(index);\n }",
"public Changelog() {\n\t\tthis(\"changelog\", null);\n\t}",
"public hr.client.appuser.CouponCenter.ExchangeRecord.Builder addExchangeHistoryListBuilder() {\n return getExchangeHistoryListFieldBuilder().addBuilder(\n hr.client.appuser.CouponCenter.ExchangeRecord.getDefaultInstance());\n }",
"public static DialogFragment completeHistoryDialog(Context context) {\n if (context == null) {\n return null;\n }\n BasicInfoDialogFragment dialogFragment = new BasicInfoDialogFragment();\n dialogFragment.setText(\n context.getString(R.string.dialog_wizard_complete_history_title),\n context.getString(R.string.dialog_wizard_complete_history_message));\n dialogFragment.setPositive(context.getString(R.string.dialog_wizard_complete_history_positive), null);\n commitFragment(context, dialogFragment, \"completeHistoryDialogTag\");\n return dialogFragment;\n }",
"public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }",
"InstantDt createHistoryToTimestamp() {\n\t\treturn InstantDt.withCurrentTime();\n\t}",
"@Override\n\tpublic List<FqcInspectionTemplateL> historynumberUpdate(IRequest request, @StdWho List<FqcInspectionTemplateL> list) {\n for (FqcInspectionTemplateL t : list) {\n switch (((BaseDTO) t).get__status()) {\n case DTOStatus.ADD:\n self().insertSelective(request, t);\n break;\n case DTOStatus.UPDATE:\n if (useSelectiveUpdate()) {\n \tt.setHistoryNum(t.getHistoryNum()+1);\n self().updateByPrimaryKeySelective(request, t);\n } else {\n \tt.setHistoryNum(t.getHistoryNum()+1);\n self().updateByPrimaryKey(request, t);\n }\n break;\n case DTOStatus.DELETE:\n self().deleteByPrimaryKey(t);\n break;\n default:\n break;\n }\n }\n return list;\n }",
"public void addHistoryPatientRecords(int visit_id, int patient_id, String usersellectedDate, String daysSel, String fowSel, String monthSel, String prescriptionImgPath, String clinical_note, String added_on_date, String visit_date, String doc_id, String doc_mem_id, String flag, String addedTime, String patientInfoType, String added_by, String action,\n String weight, String pulse, String bphigh, String bplow, String temparature, String symptoms, String dignosis, String strHeight, String bmi, String referedBy, String referedto, String rec_source, String strSpo2, String strRespirationRate, String obesity) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_VISIT_ID, visit_id);\n values.put(KEY_PATIENT_ID, patient_id);\n values.put(ACTUAL_FOLLOW_UP_DATE, usersellectedDate);\n\n values.put(DAYS, daysSel);\n values.put(WEEKS, fowSel);\n\n values.put(MONTHS, monthSel);\n values.put(PRESCRIPTION, prescriptionImgPath);\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(ADDED_ON, added_on_date);\n values.put(VISIT_DATE, visit_date);\n values.put(DOCTOR_ID, doc_id);\n values.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n values.put(SYCHRONIZED, flag);\n values.put(ADDED_TIME, addedTime);\n values.put(PATIENT_INFO_TYPE_FORM, patientInfoType);\n values.put(ACTION, action);\n values.put(ADDED_BY, added_by);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bphigh);\n values.put(BP_LOW, bplow);\n values.put(TEMP, temparature);\n\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n\n values.put(HEIGHT, strHeight);\n values.put(BMI, bmi);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedto);\n values.put(RECORD_SOURCE, rec_source);\n values.put(SPO2, strSpo2);\n values.put(RESPIRATION, strRespirationRate);\n values.put(OBESITY, obesity);\n\n db.insert(TABLE_PATIENT_HISTORY, null, values);\n\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }",
"public void addHistoryPatientRecords(int visit_id, int patient_id, String usersellectedDate, String follow_up_dates, String daysSel, String fowSel, String monthSel, String prescriptionImgPath, String clinical_note, String added_on_date, String visit_date, String doc_id, String doc_mem_id, String flag, String addedTime, String patientInfoType, String added_by, String action,\n String weight, String pulse, String bphigh, String bplow, String temparature, String sugar, String symptoms, String dignosis, String tests, String drugs, String strHeight, String bmi, String strSugarFasting, String referedBy, String referedto, String rec_source) {\n\n SQLiteDatabase db = this.getWritableDatabase();\n\n try {\n ContentValues values = new ContentValues();\n values.put(KEY_VISIT_ID, visit_id);\n values.put(KEY_PATIENT_ID, patient_id);\n values.put(ACTUAL_FOLLOW_UP_DATE, usersellectedDate);\n values.put(FOLLOW_UP_DATE, follow_up_dates);\n values.put(DAYS, daysSel);\n values.put(WEEKS, fowSel);\n\n values.put(MONTHS, monthSel);\n values.put(PRESCRIPTION, prescriptionImgPath);\n values.put(CLINICAL_NOTES, clinical_note);\n values.put(ADDED_ON, added_on_date);\n values.put(VISIT_DATE, visit_date);\n values.put(DOCTOR_ID, doc_id);\n values.put(DOCTOR_MEMBERSHIP_ID, doc_mem_id);\n values.put(SYCHRONIZED, flag);\n values.put(ADDED_TIME, addedTime);\n values.put(PATIENT_INFO_TYPE_FORM, patientInfoType);\n values.put(ACTION, action);\n values.put(ADDED_BY, added_by);\n values.put(WEIGHT, weight);\n values.put(PULSE, pulse);\n values.put(BP, bphigh);\n values.put(BP_LOW, bplow);\n values.put(TEMP, temparature);\n values.put(SUGAR, sugar);\n values.put(SYMPTOMS, symptoms);\n values.put(DIGNOSIS, dignosis);\n values.put(TESTS, tests);\n values.put(DRUGS, drugs);\n values.put(HEIGHT, strHeight);\n values.put(BMI, bmi);\n values.put(SUGAR_FASTING, strSugarFasting);\n values.put(REFERED_BY, referedBy);\n values.put(REFERED_TO, referedto);\n values.put(RECORD_SOURCE, rec_source);\n\n\n db.insert(TABLE_PATIENT_HISTORY, null, values);\n // Log.e(\"id\",\" \"+id);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }",
"@Subscribe\n public void receiveHistory(AccountHistoryResponse accountHistoryResponse) {\n accountHistory = accountHistoryResponse.getHistory();\n RxBus.get().post(new WalletHistoryUpdate());\n }",
"private void openHistoryManagementWindow() {\r\n\t\tnew JFrameHistory(this.jFrameMainWindow.getUser());\r\n\t}",
"public void botaohistory(View v) {\n startActivity(new Intent(this, com.example.appstore.history.class));\n }",
"private GetCouponExchangeHistoryResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public static ArrayList create_history(String file) throws IOException {\n todos.clear();\n file_reader = new FileReader(file);\n buffered_reader = new BufferedReader(file_reader);\n String line;\n String todo_string = \"\";\n\n while ((line = buffered_reader.readLine()) != null){\n if (!line.equals(\";\")){\n todo_string += line;\n }\n else{\n parse_todo(todo_string);\n todo_string = \"\";\n }\n }\n return todos;\n }",
"public void addToList() {\n addToCurrentListButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n //getting the variables from the user input\n String address = enterAddress.getText();\n String issue = enterAddress.getText();\n String model = enterModel.getText();\n //date method\n Date date = new Date();\n //creating a quick CentralAC list\n CentralAC acEntry = new CentralAC(address, issue, date, model);\n //adding items to the Arraylist\n HVACGUI.newCentralAC.add(acEntry);\n //adding items to the default list model\n HVACGUI.openService.addElement(acEntry);\n //disposing the form\n CentralAC_GUI.this.dispose();\n\n\n }\n });\n }",
"@Override\n public void updateHistory(Command c) {\n }",
"public int addTmlHistory(String tmlId,String time,String type);",
"private void addHistory(String s) {\r\n\t\tcurrentPlayer.getHistory().add(s);\r\n\t\tif (currentPlayer.getHistory().size() > 6) currentPlayer.getHistory().remove(0);\r\n\t\t//updatePlayArea(currentPlayer, false);\r\n\t}",
"private WriteCaseHistoryPanel getWriteCaseHistoryPanel() {\n if (writeCaseHistoryPanel == null) {\n writeCaseHistoryPanel = new WriteCaseHistoryPanel();\n //writeCaseHistoryPanel.setLayout(new GridBagLayout());\n }\n return writeCaseHistoryPanel;\n }",
"private void printHistory(patient toPrint){\r\n if (toPrint == null)\r\n JOptionPane.showMessageDialog\r\n (null, \"No Patient to print\");\r\n else{\r\n String history = \"\";\r\n for (String s: toPrint.getApptPaymentHistory()){\r\n history += s + \"\\n\";\r\n }\r\n billing_patientHistoryTextArea.setText(history);\r\n }\r\n }",
"@Override\n\tpublic void createItem(Object result) {\n\t\t\n\t\tunloadform();\n\t\tif (result != null) {\n\t\t\tIOTransactionLogic tr = (IOTransactionLogic) result;\n\t\t\tint year = Calendar.getInstance().get(Calendar.YEAR);\n\t\t\tint month = Calendar.getInstance().get(Calendar.MONTH);\n\t\t\t\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTime(tr.getDate());\n\t\t\tint trYear = cal.get(Calendar.YEAR);\n\t\t\tint trMonth = cal.get(Calendar.MONTH);\n\t\t\t\n\t\t\tif ((year == trYear) && (month == trMonth)\n\t\t\t\t\t&& tr.getBankAccountID() == bal.getId()) {\n\t\t\t\ttransactionDisplayer trDisplayer = new transactionDisplayer(tr);\n\t\t\t\tsetDataLineChart();\n\t\t\t\tsetDataPieChart();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public History(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"public HistoryController(Lesson lesson) {\n\t\tselectedLesson = lesson;\n\t\tview = HistoryPanel.getHistoryPanel();\n\n\t\tinitAllHistory();\n\t}"
] | [
"0.7114043",
"0.5847712",
"0.5784925",
"0.5770818",
"0.5715143",
"0.5699796",
"0.5632778",
"0.56212825",
"0.55622375",
"0.5531699",
"0.55149716",
"0.54675144",
"0.52594924",
"0.5231499",
"0.5201039",
"0.51925474",
"0.51893526",
"0.5154048",
"0.51432395",
"0.5115427",
"0.5114334",
"0.5111588",
"0.50912756",
"0.50910383",
"0.50883764",
"0.50697047",
"0.50558037",
"0.50517577",
"0.5025511",
"0.5011734",
"0.50067186",
"0.491793",
"0.49136406",
"0.49043235",
"0.48957247",
"0.48793426",
"0.48701718",
"0.48604748",
"0.4858532",
"0.48564577",
"0.48527828",
"0.48488602",
"0.48464558",
"0.48279297",
"0.48038647",
"0.4802915",
"0.47968495",
"0.47864923",
"0.47802374",
"0.47785482",
"0.47768614",
"0.47765315",
"0.47721523",
"0.47469494",
"0.473486",
"0.4733685",
"0.47280073",
"0.4726896",
"0.47262394",
"0.47194663",
"0.47115308",
"0.4701883",
"0.47006154",
"0.46994436",
"0.4684245",
"0.4683749",
"0.46801737",
"0.46668333",
"0.46654665",
"0.46605092",
"0.46603996",
"0.46396765",
"0.46382713",
"0.46375272",
"0.46354",
"0.46279064",
"0.46243867",
"0.46172372",
"0.46139222",
"0.46080545",
"0.46046773",
"0.46038994",
"0.46024743",
"0.46010998",
"0.45965138",
"0.45900872",
"0.45894736",
"0.45851564",
"0.45793167",
"0.45746046",
"0.45734778",
"0.45446813",
"0.4544395",
"0.45329073",
"0.45221192",
"0.45212603",
"0.45210198",
"0.45116204",
"0.4511176",
"0.45111465"
] | 0.5668581 | 6 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
mainPanel = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
conversionHistoryTbl = new javax.swing.JTable();
convertMrsCBtn = new javax.swing.JButton();
mainMenuBtn = new javax.swing.JButton();
resourcesBtn = new javax.swing.JButton();
morsealphabetandMachine = new javax.swing.JButton();
jLabel1 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
conversionHistoryTbl.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"English word", "Morse word", "Conversion Date"
}
));
jScrollPane1.setViewportView(conversionHistoryTbl);
convertMrsCBtn.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
convertMrsCBtn.setText("Convert Morse code");
convertMrsCBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
convertMrsCBtnActionPerformed(evt);
}
});
mainMenuBtn.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
mainMenuBtn.setText("Main Menu");
mainMenuBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
mainMenuBtnActionPerformed(evt);
}
});
resourcesBtn.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
resourcesBtn.setText("Resources");
resourcesBtn.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
resourcesBtnActionPerformed(evt);
}
});
morsealphabetandMachine.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
morsealphabetandMachine.setText("Morse Alphabet and Machine");
morsealphabetandMachine.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
morsealphabetandMachineActionPerformed(evt);
}
});
jLabel1.setFont(new java.awt.Font("Tahoma", 1, 24)); // NOI18N
jLabel1.setText("Conversion History ");
javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
mainPanel.setLayout(mainPanelLayout);
mainPanelLayout.setHorizontalGroup(
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 570, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(58, 58, 58)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(morsealphabetandMachine, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(resourcesBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mainMenuBtn, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(convertMrsCBtn, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel1))
.addContainerGap(120, Short.MAX_VALUE))
);
mainPanelLayout.setVerticalGroup(
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(mainPanelLayout.createSequentialGroup()
.addGap(20, 20, 20)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mainMenuBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(31, 31, 31)
.addComponent(convertMrsCBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(resourcesBtn, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(morsealphabetandMachine, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(29, 29, 29))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 562, javax.swing.GroupLayout.PREFERRED_SIZE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(mainPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public Oddeven() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Magasin() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\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 .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\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 .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\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 .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73208135",
"0.7291972",
"0.7291972",
"0.7291972",
"0.7287118",
"0.72494483",
"0.7214677",
"0.72086734",
"0.7197058",
"0.71912485",
"0.7185818",
"0.71596724",
"0.71489036",
"0.7094215",
"0.7082007",
"0.70579666",
"0.6988024",
"0.6978225",
"0.6955616",
"0.6955434",
"0.69458616",
"0.69446844",
"0.6937443",
"0.69325924",
"0.69280547",
"0.69266534",
"0.69264925",
"0.6912501",
"0.6911917",
"0.6894212",
"0.6893167",
"0.68922186",
"0.6892184",
"0.6890009",
"0.688444",
"0.6883334",
"0.68823224",
"0.6879555",
"0.68768615",
"0.6875667",
"0.68722147",
"0.6860655",
"0.68569547",
"0.6856804",
"0.6856167",
"0.6855431",
"0.6854634",
"0.68536645",
"0.68536645",
"0.684493",
"0.6837617",
"0.68372554",
"0.68303156",
"0.6828861",
"0.6827668",
"0.68246883",
"0.68245596",
"0.6818436",
"0.6818284",
"0.6812057",
"0.681017",
"0.68095857",
"0.68093693",
"0.6809163",
"0.68027467",
"0.67963576",
"0.6794979",
"0.6793972",
"0.6792247",
"0.67903155",
"0.67896885",
"0.67893314",
"0.6783135",
"0.6767654",
"0.67672074",
"0.67655265",
"0.6757984",
"0.6757062",
"0.6754005",
"0.67513984",
"0.674334",
"0.6740801",
"0.6737678",
"0.6737453",
"0.6734575",
"0.67281",
"0.6727845",
"0.67219335",
"0.67169774",
"0.67163646",
"0.6715783",
"0.67106164",
"0.6708574",
"0.6705358",
"0.67030907",
"0.6701408",
"0.6700769",
"0.66998196",
"0.6695165",
"0.66917574",
"0.6691252"
] | 0.0 | -1 |
This setter is made to inform the company id for this id member. | public void setId(long id) {
this.id = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(long companyId);",
"public void setCompanyId(Integer value) {\n this.companyId = value;\n }",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public String getCompanyId() {\r\n return companyId;\r\n }",
"public long getCompanyId() {\n return companyId;\n }",
"public String getCompanyId() {\n return companyId;\n }",
"@Override\n public void setCompanyId(long companyId) {\n _partido.setCompanyId(companyId);\n }",
"public String getCompanyId()\n {\n return companyId;\n }",
"public String getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"public int getCompanyId() {\n return companyId;\n }",
"public Long getCompanyId() {\n return companyId;\n }",
"public Integer getCompanyId() {\n return companyId;\n }",
"public Integer getCompanyId() {\n return companyId;\n }",
"public Long getCompanyId() {\r\n\t\treturn companyId;\r\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn model.getCompanyId();\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"@Override\n\tpublic void setCompanyId(long companyId);",
"public Integer getCompanyId() {\n return this.companyId;\n }",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"@Override\n\tpublic long getCompanyId();",
"public void setCompanyId(long companyId) {\n this.companyId = companyId;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _changesetEntry.getCompanyId();\n\t}",
"public void setCompanyId(int companyId) {\n this.companyId = companyId;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _dictData.getCompanyId();\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _employee.getCompanyId();\n\t}",
"@Override\n public long getCompanyId() {\n return _partido.getCompanyId();\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _second.getCompanyId();\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_userTracker.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_second.setCompanyId(companyId);\n\t}",
"public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }",
"public void setCompanyId(Integer companyId) {\n this.companyId = companyId;\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_expandoColumn.setCompanyId(companyId);\n\t}",
"@JsonSetter(\"company_id\")\n public void setCompanyId (String value) { \n this.companyId = value;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _paper.getCompanyId();\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_changesetEntry.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _userTracker.getCompanyId();\n\t}",
"public void setCompany(java.lang.Integer newCompany) {\n\tcompany = newCompany;\n}",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _expandoColumn.getCompanyId();\n\t}",
"public void setCompany(String company)\r\n {\r\n m_company = company;\r\n }",
"public void setCompany(Company aCompany) {\n company = aCompany;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _esfTournament.getCompanyId();\n\t}",
"public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }",
"public void setCompanyId(String companyId) {\r\n this.companyId = companyId;\r\n }",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_employee.setCompanyId(companyId);\n\t}",
"public void setCompanyId(Long companyId) {\n this.companyId = companyId;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _scienceApp.getCompanyId();\n\t}",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"public long getCompanyId();",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_dictData.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\tmodel.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_paper.setCompanyId(companyId);\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_esfTournament.setCompanyId(companyId);\n\t}",
"public void setCompanyId(Long companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}",
"public void setCompanyId(String companyId) {\n this.companyId = companyId == null ? null : companyId.trim();\n }",
"public void setCompany(String company) {\n this.company = company;\n }",
"@Override\n\tpublic long getCompanyId() {\n\t\treturn _permissionType.getCompanyId();\n\t}",
"public void setCompanycode(java.lang.Integer newCompany) {\n\tcompanycode = newCompany;\n}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_permissionType.setCompanyId(companyId);\n\t}",
"public void setCompanyId(String companyId) {\r\n\t\tthis.companyId = companyId;\r\n\t}",
"@Override\n\tpublic void setCompanyId(long companyId) {\n\t\t_scienceApp.setCompanyId(companyId);\n\t}",
"@JsonGetter(\"company_id\")\n public String getCompanyId ( ) { \n return this.companyId;\n }",
"public void setCompany(String company) {\r\n\t\tthis.company = company;\r\n\t}",
"public String getCompanyCode() {\r\n return companyCode;\r\n }",
"public String getCompanyCode() {\r\n return companyCode;\r\n }",
"public String getCompany() {\n return company;\n }",
"public String getCompanyCode() {\n return companyCode;\n }",
"@Override\r\n\tpublic void setCompanyData(RentCompanyData companyData) {\n\r\n\t}",
"public String getCompany() {\n return company;\n }",
"public String getCompany() {\n return company;\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public void setCompany(String company) {\n\t\tthis.company = company;\n\t}",
"public String getCompany() {\r\n\t\treturn company;\r\n\t}",
"public java.lang.Integer getCompany() {\n\treturn company;\n}",
"public void setCompany(final String value)\n\t{\n\t\tsetCompany( getSession().getSessionContext(), value );\n\t}",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"public String getCompany() {\n\t\treturn company;\n\t}",
"public String getCompany() {\n\t\treturn company;\n\t}",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"public String getCompanyCd() {\r\n return companyCd;\r\n }",
"public abstract void setCompteId(Integer pCompteId);",
"public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }",
"public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }",
"public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }",
"public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }",
"public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }",
"public boolean isSetCompanyId() {\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __COMPANYID_ISSET_ID);\n }"
] | [
"0.783373",
"0.783373",
"0.783373",
"0.783373",
"0.783373",
"0.77698785",
"0.7716471",
"0.7716471",
"0.76546896",
"0.76245445",
"0.7574639",
"0.75732225",
"0.75595266",
"0.75288427",
"0.7516223",
"0.75030833",
"0.75030833",
"0.7468495",
"0.74338436",
"0.74338436",
"0.74338436",
"0.74060744",
"0.74060744",
"0.74060744",
"0.74060744",
"0.73535675",
"0.73395747",
"0.73395747",
"0.73395747",
"0.73395747",
"0.73157847",
"0.7315369",
"0.7265756",
"0.72592676",
"0.723133",
"0.7206645",
"0.7169996",
"0.71619093",
"0.7159765",
"0.71577466",
"0.71577466",
"0.7151678",
"0.7148542",
"0.71467066",
"0.71387255",
"0.71348596",
"0.7128972",
"0.70926714",
"0.70668614",
"0.7057229",
"0.7056315",
"0.70552146",
"0.70552146",
"0.7044695",
"0.7031786",
"0.69767994",
"0.69725925",
"0.69725925",
"0.69725925",
"0.69725925",
"0.69725925",
"0.69417584",
"0.6912675",
"0.6912675",
"0.6912675",
"0.6845769",
"0.6813523",
"0.675369",
"0.6676751",
"0.6672079",
"0.6655496",
"0.6646846",
"0.66329795",
"0.66011566",
"0.6593551",
"0.65396637",
"0.64982885",
"0.6476254",
"0.6476254",
"0.64333415",
"0.64330053",
"0.64319575",
"0.6371652",
"0.6371652",
"0.6367665",
"0.63635457",
"0.6333231",
"0.6329859",
"0.6307541",
"0.6292772",
"0.6251267",
"0.6251267",
"0.62465125",
"0.62465125",
"0.62411517",
"0.6239937",
"0.623058",
"0.623058",
"0.623058",
"0.623058",
"0.623058"
] | 0.0 | -1 |
Track Product Information on load of this Local Expert Information screen. | @Subscribe
public void onShowActivityDetails(Events.LXShowDetails event) {
OmnitureTracking.trackAppLXProductInformation(event.activityDetails, lxState.searchParams);
activityDetails = event.activityDetails;
buildGallery(activityDetails);
buildSections(activityDetails);
buildOfferDatesSelector(activityDetails.offersDetail, lxState.searchParams.startDate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void loadDetailProductData() {\n mDetailPresenter.loadDetailProductData();\n }",
"public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}",
"@SuppressWarnings(\"unchecked\")\n private void fetchProductInformation() {\n // Query the App Store for product information if the user is is allowed\n // to make purchases.\n // Display an alert, otherwise.\n if (SKPaymentQueue.canMakePayments()) {\n // Load the product identifiers fron ProductIds.plist\n String filePath = NSBundle.getMainBundle().findResourcePath(\"ProductIds\", \"plist\");\n NSArray<NSString> productIds = (NSArray<NSString>) NSArray.read(new File(filePath));\n\n StoreManager.getInstance().fetchProductInformationForIds(productIds.asStringList());\n } else {\n // Warn the user that they are not allowed to make purchases.\n alert(\"Warning\", \"Purchases are disabled on this device.\");\n }\n }",
"private void loadData()\r\n\t{\r\n\t\taddProduct(\"Area\", \"Education\");\r\n\t\taddProduct(\"Area\", \"Environment\");\r\n\t\taddProduct(\"Area\", \"Health\");\r\n\r\n\t\taddProduct(\"Domain\", \"Documentation\");\r\n\t\taddProduct(\"Domain\", \"Project Activity\");\r\n\t\taddProduct(\"Domain\", \"Technology\");\r\n\r\n\t\taddProduct(\"City\", \"Bangalore\");\r\n\t\taddProduct(\"City\", \"Hyderabad\");\r\n\t\taddProduct(\"City\", \"Lucknow\");\r\n\r\n\t\taddProduct(\"Activity_Type\", \"Onsite\");\r\n\t\taddProduct(\"Activity_Type\", \"Offsite\");\r\n\r\n\t}",
"private void displayProductDetails() {\n //loading picture offline\n Picasso.get().load(pImage).networkPolicy(NetworkPolicy.OFFLINE)\n .placeholder(R.drawable.warning).into(productImage, new Callback() {\n @Override\n public void onSuccess() {\n\n }\n\n @Override\n public void onError(Exception e) {\n Picasso.get().load(pImage)\n .placeholder(R.drawable.warning).into(productImage);\n }\n });\n productName.setText(pName);\n productPrize.setText(pPrice);\n\n try{\n if (pCategory.equalsIgnoreCase(\"Bulk Purchase\")){\n quantity.setText(pLimitedQty);\n }\n } catch (Exception ex){\n Log.i(\"error\", ex.getMessage());\n catchErrors.setErrors(ex.getMessage(), dateAndTime.getDate(), dateAndTime.getTime(),\n \"OrderProductActivity\", \"displayProductDetails\");\n }\n }",
"@Override\n public void loadWomenProductsData() {\n\n if (mCatalogWomenPresenter != null) {\n mCatalogWomenPresenter.loadWomenProductsData();\n }\n }",
"private void initProductDisplay() {\n\t\tif (isScannednAddingFinished()) {\n\t\t\tarticleInqList = new ArrayList<ArticleInq>();\n\t\t\tarticleImageList = new ArrayList<ArticleImage>();\n\t\t}\n\t\tif (isBasketAddingFinished()\n\t\t\t\t&& (CommonBasketValues.getInstance().Basket == null || CommonBasketValues\n\t\t\t\t\t\t.getInstance().Basket.OrderNo == 0)) {\n\t\t\tdisplayArticleList = new ArrayList<ArticleInq>();\n\n\t\t}\n\n\t\tlastScanTime = 0;\n\t\tlastEan = \"\";\n\t\tcurrentEan = \"\";\n\t\tif (light_on) {\n//\t\t\tCameraManager.get().turn_onFlash();\n\t\t\tgetCameraManager().setTorch(true);\n\t\t}\n\t\tif (calledFromCreate) {\n//\t\t\tCameraManager.get().requestAutoFocus(handler, R.id.auto_focus);\n\t\t\tcalledFromCreate = false;\n\t\t}\n\n\t}",
"public void retrieveProduct(Product product) {\n // Place string values in TextFields.\n productIdField.setPromptText(String.valueOf(product.getId()));\n productNameField.setText(product.getName());\n productInvField.setText(String.valueOf(product.getStock()));\n productPriceField.setText(String.valueOf(product.getPrice()));\n productMaxField.setText(String.valueOf(product.getMax()));\n productMinField.setText(String.valueOf(product.getMin()));\n // load the TableViews after copying necessary values to instance.\n associatedPartsCopyMachine(product);\n this.product.setId(product.getId());\n super.initialize();\n }",
"private void loadInitialProducts(){\n final Intent intent = new Intent(this, MainActivity.class);\n\n ProductServiceProvider.getInstance().setServiceListener(new ProductServiceProvider.ServiceListener() {\n @Override\n public void onResultsSuccess(Response<SearchResult> response) {\n if(response.body().getResults() != null){\n AppDataModel.getAppDataModel().setInitialData(response.body().getResults());\n intent.putExtra(EXTRA_INITIAL_PRODUCTS, true);\n }\n\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n startActivity(intent);\n finish();\n }\n }, 1000);\n }\n\n @Override\n public void onProductsSuccess(Response<Products> response) {\n\n }\n\n @Override\n public void onFailure(String message) {\n intent.putExtra(EXTRA_INITIAL_PRODUCTS, false);\n new Handler().postDelayed(new Runnable() {\n\n @Override\n public void run() {\n startActivity(intent);\n finish();\n }\n }, 1000);\n }\n });\n\n ProductServiceProvider.getInstance().searchProducts(\"\");\n }",
"@OnShow\n\tpublic void onShow() {\n\t\tviewForm.setValue(\n\t\t\t\t// load product using the \"id\" parameter\n\t\t\t\tdatastore.query().target(TARGET).filter(ID.eq(id)).findOne(PRODUCT)\n\t\t\t\t\t\t// throw an exception if not found\n\t\t\t\t\t\t.orElseThrow(() -> new DataAccessException(\"Product not found: \" + id)));\n\t}",
"@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }",
"@Override\n public void initialize() {\n this.product = new Product(this.productId,this.productName,this.productPrice,this.productInv,this.productMin,this.productMax);\n productTitleLabel.setText(\"Modify Product\");\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) \n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_details);\n \n // Add toolbar to activity layout\n Toolbar toolbar = (Toolbar) findViewById(R.id.details_toolbar);\n setSupportActionBar(toolbar);\n toolbar.setTitleTextColor(Color.WHITE);\n \n // Open database controller\n dbManager = new DatabaseManager(this);\n\n // Get bundled ProductID\n Intent parentIntent = getIntent();\n int activeProductID = Integer.parseInt(parentIntent.getStringExtra(\"Product ID\"));\n\n // Get product data from ID\n activeProduct = dbManager.getProductByID(activeProductID);\n\n // Update layout view\n updateView();\n }",
"private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}",
"@Override\n public void loadAdd2CartProductData() {\n mAdd2CartPresenter.loadAdd2CartProductData();\n }",
"public void onLevelProductChange() {\n targetWSList.clear();\n targetPROCList.clear();\n sourceWSList.clear();\n sourcePROCList.clear();\n sourcePropertyWSList.clear();\n targetPropertyWSList.clear();\n templatePlanLevel = null;\n templatePlanLevel = productToolOperation.findProductTemplateLevel(planConfigBehavior.getTemplatePlanLevelSet(), selectLevel.getValue());\n if (templatePlanLevel != null) {\n numColumnLevel = templatePlanLevel.getNumColumn();\n communicationType = CommunicationType.valueOf(templatePlanLevel.getCommunicationType()).getLabel();\n productToolOperation.loadConfigCommunicationBridge(templatePlanLevel, targetWSList, targetPROCList);\n }\n\n productToolOperation.loadCommunicationList(communicationBridgeMap, sourceWSList, sourcePROCList, targetWSList, targetPROCList);\n\n communicationBridgeWs = new DualListModel<>(sourceWSList, targetWSList);\n communicationBridgeProc = new DualListModel<>(sourcePROCList, targetPROCList);\n }",
"private void initializeData() {\n lblItem.setText(product.getName());\n txtReference.setText(product.getTransaction().getReferenceNumber());\n txtItem.setText(product.getName());\n txtDescription.setText(product.getDescription());\n txtBrand.setText(product.getBrand());\n txtModel.setText(product.getModel());\n txtQuantity.setText(String.valueOf(product.getQuantity()));\n txtUnit.setText(product.getUnit());\n txtProductDate.setDate(product.getProduct_date());\n txtOrigPrice.setText(String.valueOf(product.getOriginalPrice()));\n txtAgent.setText(product.getAgent());\n txtContactPerson.setText(product.getContactPerson());\n try { \n txtSupplier.setText(((Supplier)product.getSuppliers().toArray()[0]).getName());\n } catch(ArrayIndexOutOfBoundsException ex) {\n System.out.println(ex.toString());\n }\n }",
"public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}",
"public interface OnloadProductListener {\n void changeToolbarTitle(String title);\n }",
"public ViewProductInfo() {\n initComponents();\n }",
"private void receiveData()\n {\n Intent i = getIntent();\n productSelected = Paper.book().read(Prevalent.currentProductKey);\n vendorID = i.getStringExtra(\"vendorID\");\n if (productSelected != null) {\n\n productName = i.getStringExtra(\"productName\");\n productImage = i.getStringExtra(\"imageUrl\");\n productLongDescription = i.getStringExtra(\"productLongDescription\");\n productCategory = i.getStringExtra(\"productCategory\");\n productPrice = i.getStringExtra(\"productPrice\");\n productSizesSmall = i.getStringExtra(\"productSizesSmall\");\n productSizesMedium = i.getStringExtra(\"productSizesMedium\");\n productSizesLarge = i.getStringExtra(\"productSizesLarge\");\n productSizesXL = i.getStringExtra(\"productSizesXL\");\n productSizesXXL = i.getStringExtra(\"productSizesXXL\");\n productSizesXXXL = i.getStringExtra(\"productSizesXXXL\");\n productQuantity = i.getStringExtra(\"productQuantity\");\n }\n }",
"@Override\n\tprotected void onCreate(Bundle arg0) {\n\t\tsuper.onCreate(arg0);\n\t\tsetContentView(R.layout.commodity_infos_activity);\n\t\tprodInfo = (ProdInfo) getIntent().getSerializableExtra(\"prodInfo\");\n\t\t\n\t\tinitview();\n\t\tinitdata();\n\t}",
"public void setProductInfo (java.lang.String productInfo) {\n\t\tthis.productInfo = productInfo;\n\t}",
"public void logDeviceEnterpriseInfo() {\n Callback<OwnedState> callback = (result) -> {\n recordManagementHistograms(result);\n };\n\n getDeviceEnterpriseInfo(callback);\n }",
"@Override\n\tpublic void productDetails(String productId) {\n\t\t//creating local variable\n\t\tint eq = 0;\n\t\tint ct = 0;\n\t\tint dif = 0;\n\t\t//creating the display to print out the product details of the tv sets class\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println(\" Type ProductId Product Name Price Display Size \" );\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println(\" \");\n\t\t//Create the for loop to verify all the products in the arrayLIst\n\t\tfor(int i = 0; i < Driver.products.size(); i++) {\n\t\t\t//if the productId inserted by the user is equal an any productId from this class tv sets\n\t\t\tif(Driver.products.get(i).getProductId().equals(productId)) {\n\t\t\t\tSystem.out.println(\" Eletronic Device \" + Driver.products.get(i).getProductId() + \" \" +\n\t\t\t\t\t\tDriver.products.get(i).getName() + \" \" + Driver.products.get(i).getPrice() + \" \" + \n\t\t\t\t\t\tDriver.products.get(i).getDisplaySize() );\t\n\t\t\t\teq += 1;\n\t\t\t//if the productId inserted by the user is not equal an any productId, but similar to the name from this class tv sets\n\t\t\t}else if (Driver.products.get(i).getProductId().contains(productId) && eq == 0) {\n\t\t\t\tSystem.out.println(\" Eletronic Device \" + Driver.products.get(i).getProductId() + \" \" +\n\t\t\t\t\t\tDriver.products.get(i).getName() + \" \" + Driver.products.get(i).getPrice() + \" \" + \n\t\t\t\t\t\tDriver.products.get(i).getDisplaySize() );\t\n\t\t\t\tct += 1;\n\t\t\t}//close if statement\n\t\t}//close for loop\n\t\t//if the productId inserted by the user was not found in the stoque\n\t\tfor(int i = 0; i < Driver.products.size(); i++) {\n\t\t\tif (eq == 0 && ct == 0 && dif == 0 ){\n\t\t\t\tSystem.out.println(\" The search \" + productId + \" was not found in our Stoque. Try changing the productId name. \");\n\t\t\t\tdif += 1;\n\t\t\t}//close if statement\n\t\t}//close for loop\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" ================================================================================================================\" );\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" \");\n\n\t\tSystem.out.println();\n\t}",
"public void loadProducts() throws RetailException {\n\t\tObjectMapper objectMapper = new ObjectMapper();\n\t\ttry {\n\t\t\tif (!dataLoadedIndicator) {\n\t\t\t\tproductData = Collections.unmodifiableMap((Map<String, Product>) objectMapper.readValue(\n\t\t\t\t\t\tThread.currentThread().getContextClassLoader().getResourceAsStream(\"products.json\"),\n\t\t\t\t\t\tnew TypeReference<HashMap<String, Product>>() {\n\t\t\t\t\t\t}));\n\t\t\t\t// load properties file\n\t\t\t\tsalesTaxConfig = new Properties();\n\t\t\t\tsalesTaxConfig.load(Thread.currentThread().getContextClassLoader()\n\t\t\t\t\t\t.getResourceAsStream(\"sales_tax_entries.properties\"));\n\t\t\t\tdataLoadedIndicator = true;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"There was an exception trying to upoad product data {}\", e);\n\t\t\tthrow new RetailException(ErrorCodes.ERR_PRODUCT_DATA_LOAD_ERROR);\n\t\t}\n\t}",
"private void saveProduct() {\n //Delegating to the Presenter to trigger focus loss on listener registered Views,\n //in order to persist their data\n mPresenter.triggerFocusLost();\n\n //Retrieving the data from the views and the adapter\n String productName = mEditTextProductName.getText().toString().trim();\n String productSku = mEditTextProductSku.getText().toString().trim();\n String productDescription = mEditTextProductDescription.getText().toString().trim();\n ArrayList<ProductAttribute> productAttributes = mProductAttributesAdapter.getProductAttributes();\n mCategoryOtherText = mEditTextProductCategoryOther.getText().toString().trim();\n\n //Delegating to the Presenter to initiate the Save process\n mPresenter.onSave(productName,\n productSku,\n productDescription,\n mCategoryLastSelected,\n mCategoryOtherText,\n productAttributes\n );\n }",
"private void loadDetails() {\n TextView tvName = (TextView) findViewById(R.id.tvPropertyName);\n TextView tvAddress = (TextView) findViewById(R.id.tvFullAddress);\n TextView tvCategory = (TextView) findViewById(R.id.tvPropCategory);\n TextView tvSize = (TextView) findViewById(R.id.tvRoomSize);\n TextView tvPrice = (TextView) findViewById(R.id.tvPropPrice);\n\n tvName.setText(name);\n tvAddress.setText(address);\n tvCategory.setText(category);\n tvSize.setText(size + \"m2\");\n tvPrice.setText(\"R\" + price + \".00 pm\");\n getImage();\n }",
"public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }",
"@Override\n public void openDetail(@NonNull Product product) {\n mMainView.openDetailUi(product);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_product_details);\n ActivityManager.getInstance().pushActivity(ProductDetailsActivity.this);\n mContext = ProductDetailsActivity.this;\n initTitle();\n initView();\n initData();\n }",
"@Override\n public void loadEntityDetails() {\n \tsuper.loadEntityDetails();\n }",
"public void setProductInfo(ProductInfoType productInfo) {\n\t this.productInfo = productInfo;\n\t}",
"private void loadProduct(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException {\n\t\tCookie[] theCookieLoop=request.getCookies();//tạo một cái mảng cookie có \n\t\tString manufacturer=null;\n\n\t\t\t\t\t\t\t//có tên là theCookieloop sau đó lấy ra các đối tượng trong mảng Cookie\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop)//dùng để duyệt qu các mảng cookie \n\t\t\t\t\t{\n\t\t\t\t\tif(\"tagProduct\".equals(tempCookie.getName())) {\n\t\t\t\t\t\tmanufacturer=tempCookie.getValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\tObservableList<Products> list_products = FXCollections.observableArrayList();\n\t\tString idManufacture= daoPageAdmin.getIdManufacturerWithName(manufacturer);\n\t\tlist_products = daoPageAdmin.getAllProducts(idManufacture);\n\t\trequest.getSession().setAttribute(\"LIST_PRODUCTS\", list_products);\n\t\tresponse.sendRedirect(\"/WebBuyPhone/admin/viewProduct.jsp\");\n\t}",
"@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}",
"public void setProduct(String product) {\r\n this.product = product;\r\n }",
"@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}",
"public String getProduct() {\r\n return this.product;\r\n }",
"public void printData () {\n System.out.println (products.toString ());\n }",
"public void retrieveProductFromDatabase(){\r\n // retrieve product from the database here\r\n System.out.println(\"Product Retrieved using ID --> \" + this.productId);\r\n \r\n }",
"public String getProduct() {\n return this.product;\n }",
"public void setInstallTracked() {\n }",
"@Override\n public void updateProductCounter() {\n\n }",
"private void pageProduct(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException, SQLException {\n\t\tloadProduct(request, response);\n\t\t\n\t}",
"@Override\n public void loadCartProductsData() {\n mCartPresenter.loadCartProductsData();\n }",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"public String getProductName() {\r\n return productName;\r\n }",
"public void setProductName(String productName) {\r\n this.productName = productName;\r\n }",
"ProductInventory(Product pProduct)\n\t{\n\n\t\t// Initialize the Product Inventory Array List\n\t\tmyProductInventory = new ArrayList<Product>();\n\n\t\t// Add a user-defined Product to the inventory array\n\t\t// This Product object is placed in the first position\n\t\t// of the Product Inventory Array List\n\t\tthis.addProduct(pProduct);\n\n\t}",
"String currentProduct() {\n if (PageFlowContext.getPolicy() != null && PageFlowContext.getPolicy().getProductTypeId() != null) {\n return PageFlowContext.getPolicy().getProductTypeId();\n } else {\n return \"\";\n }\n }",
"public void enterItem(String productId) {\r\n\t\tproduct = ProductCatalog.getProductCatalogMap().get(productId);\r\n\t\tBigDecimal subTotal = fetchSaleLineItem();\r\n\t\ttaxModel.setTaxTypeModelList(TaxCalculationHelper.fetchAllTaxTypes());\r\n\t\ttaxModel.setProductPriceIncludingTax(TaxCalculationHelper.calculatePriceWithTax(subTotal));\r\n\t\tpublishPropertyEventBeforeSale();\r\n\t}",
"public String getProduct() {\n return product;\n }",
"public String getProduct() {\n return product;\n }",
"private void loadInfo() {\n fname.setText(prefs.getString(\"fname\", null));\n lname.setText(prefs.getString(\"lname\", null));\n email.setText(prefs.getString(\"email\", null));\n password.setText(prefs.getString(\"password\", null));\n spinner_curr.setSelection(prefs.getInt(\"curr\", 0));\n spinner_stock.setSelection(prefs.getInt(\"stock\", 0));\n last_mod_date.setText(\" \" + prefs.getString(\"date\", getString(R.string.na)));\n }",
"public String getProductName() {\n return productName;\n }",
"public String getProductName() {\n return productName;\n }",
"public String getProductName() {\n return productName;\n }",
"@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }",
"public void setProduct(Product product) {\n this.product = product;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void autoDetails() {\n\t\t\r\n\t}",
"public void setProductName(final String productName);",
"public void onModuleLoad() {\r\n\r\n\t\tnew UseTracking(this.getClass().getName());\r\n\r\n\t\tRootPanel.get(\"main\").clear();\r\n\t\tRootPanel.get(\"main\").setWidth(\"100%\");\r\n\t\tVerticalPanel vpMain = new VerticalPanel();\r\n\t\tvpMain.setSize(\"100%\", \"100%\");\r\n\t\tvpMain.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);\r\n\t\tRootPanel.get(\"main\").add(vpMain, 0, 0);\r\n\r\n\t\tString uniqueID = EncryptText.decrypt(Cookies.getCookie(\"UniqueID\"));\r\n\t\t// uniqueID = \"AllineWatkins_1332886062783\";\r\n\r\n\t\tfinal String company = Location.getParameter(\"company\");\r\n\t\tif (company != null) {\r\n\r\n\t\t\tJSONObject json = new JSONObject();\r\n\t\t\tjson.put(\"ID\", new JSONString(company));\r\n\r\n\t\t\tUniqueIDGlobalVariables.companyUniqueID = json;\r\n\t\t}\r\n\r\n\t\tif (uniqueID == null || uniqueID.equals(\"null\")) {\r\n\r\n\t\t\tString authenticationCode = Location.getParameter(\"code\");\r\n\r\n\t\t\tfinal String error = Location.getParameter(\"error_reason\");\r\n\r\n\t\t\tif (!((null != error && error.equals(\"user_denied\")) || (authenticationCode == null || \"\"\r\n\t\t\t\t\t.equals(authenticationCode)))) {\r\n\r\n\t\t\t\tInitializeApplication.VerifyFacebookLogin(authenticationCode);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tInitializeApplication.verifyParameters(vpMain, uniqueID, company);\r\n\r\n\t}",
"public String getProduct()\n {\n return product;\n }",
"void onEnoughLightAvailable() {\n //start eye tracking if it is not running already\n startEyeTracking();\n }",
"public void loadInfo(){\n list=control.getPrgList();\n refreshpsTextField(list.size());\n populatepsListView();\n }",
"private void setInfo() {\n\n //init data and navigation controllers\n dataController = new DataController();\n navigationController = new NavigationController();\n\n //hide fab\n ((HomeActivity)getActivity()).hideFAB();\n\n //init utils\n utils = new Utils();\n\n //position selected, saved in session\n position = Session.getInstance().getPosition();\n\n //user\n user = Session.getInstance().getUser();\n\n //users shopping lists\n shoppingLists = Session.getInstance().getUser().getShoppingLists();\n shoppingList = shoppingLists.get(position);\n\n //selected shopping list\n productList = shoppingLists.get(position).getProducts();\n\n //Create Swipe Menu\n createSwipeMenu();\n listView.setMenuCreator(creator);\n\n //Set swipe direction\n listView.setSwipeDirection(SwipeMenuListView.DIRECTION_LEFT);\n\n\n //set action bar tittle\n ((HomeActivity)getActivity()).setToolbarTitle(shoppingList.getName());\n\n totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n\n adapter = new DetailedShoppingListAdapter(getActivity(), productList, false, new AppInterfaces.IEditItem() {\n @Override\n public void deleteItem(int position) {\n }\n\n @Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, position);\n }\n\n @Override\n public void changePrice(Product product, int position) {\n changeProductPrice(product, position);\n }\n\n @Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n changeProductQuantityType(product, productPosition, spinnerPosition);\n }\n }, new AppInterfaces.IPickItem() {\n @Override\n public void pickItem(int position) {\n if(productList.get(position).isPicked()) {\n productList.get(position).setPicked(false);\n\n } else {\n //set product picked\n productList.get(position).setPicked(true);\n }\n //refresh list\n adapter.notifyDataSetChanged();\n }\n });\n listView.setAdapter(adapter);\n }",
"@FXML\r\n public void lookupProduct() {\r\n \r\n String text = productSearchTxt.getText().trim();\r\n if (text.isEmpty()) {\r\n //No text was entered. Displaying all existing products from inventory, if available\r\n displayMessage(\"No text entered. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n else{\r\n ObservableList<Product> result = stock.lookupProduct(text);\r\n if (!result.isEmpty()) {\r\n //Product found in inventory. Displaying information available. \r\n updateProductsTable(result);\r\n }\r\n else {\r\n //Product not found in inventory. Displaying all existing products from inventory, if available\r\n displayMessage(\"Product not found. Displaying existing products, if available\");\r\n updateProductsTable(stock.getAllProducts());\r\n }\r\n }\r\n }",
"@Override\n public void onClick(Product product) {\n Log.i(\"MainActivity\", product.toString());\n Intent detailIntent = new Intent(this, DetailActivity.class);\n detailIntent.putExtra(Constants.Keys.PRODUCT_DETAIL.toString(), product);\n startActivity(detailIntent);\n }",
"public ProductInfoType getProductInfo() {\n\t return this.productInfo;\n\t}",
"@RequestMapping(value = \"/admin/account/renew/individual\", method = RequestMethod.GET)\n public String getCurrentIndividualProductInfoView() {\n return \"getCurrentIndividualProductInfo\";\n }",
"public void showProductType() {\r\n System.out.println(\"This is a iPhone.\");\r\n }",
"public void retrieveProductIndex(int productIndex) {\n this.productIndex = productIndex;\n }",
"private void loadStore(Inventory inventory){\n\t\t \n\t\t TextView tvPremiumUpgradeTitle = (TextView)this.findViewById(R.id.tvPremiumUpgradeTitle);\n\t\t TextView tvPremiumUpgradeDescription = (TextView)this.findViewById(R.id.tvPremiumUpgradeDescription);\n\t\t Button bPremiumUpgradePrice = (Button)this.findViewById(R.id.bPremiumUpgradePrice);\n\t\t ImageView ivPremiumUpgradePurchased = (ImageView)this.findViewById(R.id.ivPremiumUpgradePurchased);\n\t\t \n\t\t \n\t\t SkuDetails skuPremiumUpgrade = inventory.getSkuDetails(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE));\n\t\t tvPremiumUpgradeTitle.setText(this.getString(R.string.store_item_premium_upgrade_title));\n\t\t tvPremiumUpgradeDescription.setText(this.getString(R.string.store_item_premium_upgrade_description));\n\t\t if (inventory.hasPurchase(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE))){\n\t\t\t bPremiumUpgradePrice.setVisibility(View.GONE); \n\t\t\t }\n\t\t else{\n\t\t\t bPremiumUpgradePrice.setText(skuPremiumUpgrade.getPrice());\n\t\t\t bPremiumUpgradePrice.setTag(this.getString(R.string.SKU_GOOGLE_PLAY_PREMIUM_UPGRADE));\n\t\t\t bPremiumUpgradePrice.setOnClickListener(this);\n\t\t\t ivPremiumUpgradePurchased.setVisibility(View.GONE);\n\t\t }\n\n\t\t\t }",
"public void setProduct(java.lang.String product) {\n this.product = product;\n }",
"private void initialize() {\r\n //Below are for testing purposes\r\n this.addProductQuantity(new Product(\"1984\", 1, 1.99), 10);\r\n this.addProductQuantity(new Product(\"The Great Gatsby\", 2, 2.45), 25);\r\n this.addProductQuantity(new Product(\"Silent Spring\", 3, 1.86), 3);\r\n this.addProductQuantity(new Product(\"A Room of One's Own\", 4, 3.75), 15);\r\n this.addProductQuantity(new Product(\"Catcher in The Rye\", 5, 2.89), 11);\r\n this.addProductQuantity(new Product(\"The Code Breaker\", 6, 2.50), 26);\r\n this.addProductQuantity(new Product(\"Crime and Punishment\", 7, 2.75), 1);\r\n this.addProductQuantity(new Product(\"Moby Dick\", 8, 2.50), 13);\r\n this.addProductQuantity(new Product(\"The Sixth Extinction\", 9, 3.10), 10);\r\n }",
"public String getProductID() {\r\n return productID;\r\n }",
"ProductInventory()\n\t{\n\n\t\t// Initialize the Product Inventory Array List\n\t\tmyProductInventory = new ArrayList<Product>();\n\n\t}",
"void loadingFinished(ProductModel pm)\r\n {\r\n // System.out.println(\"--- Loading finished: \" + pm.getId());\r\n synchronized (loadedDbProducts) {\r\n loadedDbProducts.add(pm);\r\n }\r\n }",
"public void getEventDetails() {\r\n\t\t// Query DB to get specific event information based on EventID.\r\n\t}",
"private void handleProductRequestNotification(NSNotification notification) {\n MyModel model = null;\n StoreManager productRequestNotification = (StoreManager) notification.getObject();\n IAPProductRequestStatus result = productRequestNotification.getStatus();\n\n sectionNames.clear();\n\n switch (result) {\n // The App Store has recognized some identifiers and returned their\n // matching products.\n case ProductsFound:\n model = products.get(0);\n model.setElements(productRequestNotification.getAvailableProducts());\n // Keep track of the position of the AVAILABLE PRODUCTS section\n sectionNames.add(\"AVAILABLE PRODUCTS\");\n break;\n // Some product identifiers were not recognized by the App Store\n case IdentifiersNotFound:\n model = products.get(1);\n model.setElements(productRequestNotification.getInvalidProductIds());\n // Keep track of the position of the INVALID PRODUCT IDS section\n sectionNames.add(\"INVALID PRODUCT IDS\");\n break;\n default:\n break;\n }\n // Reload the tableview to update it\n if (model != null) {\n getTableView().reloadData();\n }\n }",
"public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }",
"@Override\n protected void onResume() {\n super.onResume();\n\n productTypes = getIntent().getStringExtra(\"product_type\");\n if (productTypes == null || productTypes.isEmpty() || productTypes.equals(\"\")) {\n productTypes = \"ebook\";\n }\n\n //Enable Bottom Navigation Widget Button of MyLibrary\n disabledAllActivatedBottomNavigationWidgetButton();\n if (productTypes.equals(\"test_preparation, mock_test\")) {\n Constants.setActivateBottomNavigationWidgetButton(\"Test Preparation\");\n enableCurrentBottomNavigationWidgetButton();\n } else if (productTypes.equals(\"ebook\")) {\n Constants.setActivateBottomNavigationWidgetButton(\"E-books\");\n enableCurrentBottomNavigationWidgetButton();\n } else if (productTypes.equals(\"video\")) {\n Constants.setActivateBottomNavigationWidgetButton(\"Video\");\n enableCurrentBottomNavigationWidgetButton();\n } else if (productTypes.startsWith(\"downloaded_\")) {\n Constants.setActivateBottomNavigationWidgetButton(\"NONE\");\n }\n\n String tempScreenName = screenName + \"_\" + productTypes.replaceAll(\"(\\\\s|,)+\", \"_\");\n\n Utils.triggerScreen(LibraryActivity.this, tempScreenName);\n\n // Prepare Library when user gave permissions from settings and came back to activity\n if (Utils.isPermissionDialogOpen()) {\n if (Utils.hasPermissions(LibraryActivity.this, Constants.STORAGE_PERMISSION)) {\n if (isFinishing()) {\n Utils.closePermissionDialog();\n }\n onPermissionGranted();\n }\n }\n }",
"public void clientInfo() {\n uiService.underDevelopment();\n }",
"public ProductInfo call() throws DataLoadException {\n\t\t\treturn new ProductInfo();\r\n\t\t}",
"public void recordInProductHelpMenuItemClicked() {\n RecordUserAction.record(\"Android.ChromeHome.IPHMenuItemClicked\");\n }",
"public Jp_MyInformation() {\n initComponents();\n //lb_correct.setIcon(null);\n //loadEmailInfor(lb_load_MainEmail);\n // md_loadCousers();\n\n md_NameChange(false);\n md_load_data();\n\n }",
"private void trackScreen() {\n if (paymentMethodSearch != null) {\n if (selectedSearchItem == null) {\n trackInitialScreen();\n } else {\n trackChildScreen();\n }\n }\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.phone_detail);\n\t\tImageLoader.initialize(this);\n\n\t\tsharedPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tIntent intent = getIntent();\n\t\tmProductDetailObject = intent.getParcelableExtra(\"productdetail\");\n\n\t\tintializeLayout();\n\t\talignImages(savedInstanceState);\n\t\tinitializeBankSpinner();\n\t\tinitializeEmiSpinner();\n\t\tsetPriceInfoLayout();\n\t\tsetUpTableLayout();\n\t\t// LoginButton authButton = (LoginButton) findViewById(R.id.authButton);\n\t\t// authButton.setReadPermissions(Arrays.asList(\"publish_actions\"));\n\t\tuiHelper = new UiLifecycleHelper(this, callback);\n\t\tuiHelper.onCreate(savedInstanceState);\n\t\tif (savedInstanceState != null) {\n\t\t\tpendingPublishReauthorization = savedInstanceState.getBoolean(\n\t\t\t\t\tPENDING_PUBLISH_KEY, false);\n\t\t}\n\t\t// Session session = Session.getActiveSession();\n\t\t//\n\t\t// session.requestNewPublishPermissions(new\n\t\t// Session.NewPermissionsRequest(\n\t\t// this, PERMISSIONS));\n\t\t// requestPublishPermissions(session);\n\n\t\t// loadProdImage();\n\n\t\tSettings.addLoggingBehavior(LoggingBehavior.INCLUDE_ACCESS_TOKENS);\n\n\t\tSession session = Session.getActiveSession();\n\t\tif (session == null) {\n\t\t\tif (savedInstanceState != null) {\n\t\t\t\tsession = Session.restoreSession(this, null, statusCallback,\n\t\t\t\t\t\tsavedInstanceState);\n\t\t\t}\n\t\t\tif (session == null) {\n\t\t\t\tsession = new Session(this);\n\t\t\t}\n\t\t\tSession.setActiveSession(session);\n\t\t\tif (session.getState().equals(SessionState.CREATED_TOKEN_LOADED)) {\n\t\t\t\tsession.openForRead(new Session.OpenRequest(this)\n\t\t\t\t\t\t.setCallback(statusCallback));\n\t\t\t}\n\t\t}\n\t\tmPlusClient = new PlusClient.Builder(this, this, this)\n\t\t\t\t.setScopes(Scopes.PLUS_LOGIN)\n\t\t\t\t.setVisibleActivities(\"http://schemas.google.com/AddActivity\",\n\t\t\t\t\t\t\"http://schemas.google.com/BuyActivity\").build();\n\n\t}",
"private ProductCatalog() {\n catalogPresenter = new CatalogPresenter(new CatalogRepositoryDb(), this);\n initComponents();\n fillComboBoxes();\n pagesTextField.setText(String.valueOf(currentPage));\n previousPageButton.setEnabled(false);\n setupTable();\n disableButons();\n catalogPresenter.getCategoriesFromDb();\n addRowSelectionListener();\n setupSearchTextFields();\n lockLowerDate();\n }",
"void load() {\n String path = ModuleSettings.getConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP);\n boolean useDefault = (path == null || path.isEmpty());\n defaultLogoRB.setSelected(useDefault);\n specifyLogoRB.setSelected(!useDefault);\n agencyLogoPathField.setEnabled(!useDefault);\n browseLogosButton.setEnabled(!useDefault);\n logFileCount.setText(String.valueOf(UserPreferences.getLogFileCount()));\n solrMaxHeapSpinner.setValue(UserPreferences.getMaxSolrVMSize());\n try {\n updateAgencyLogo(path);\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Error loading image from previously saved agency logo path\", ex);\n }\n if (memField.isEnabled()) {\n try {\n initialMemValue = Long.toString(getCurrentJvmMaxMemoryInGB());\n } catch (IOException ex) {\n logger.log(Level.SEVERE, \"Can't read current Jvm max memory setting from file\", ex);\n memField.setEnabled(false);\n }\n memField.setText(initialMemValue);\n }\n \n valid(); //ensure the error messages are up to date\n }",
"public void setProductName(String productName) {\r\n\t\tthis.productName = productName;\r\n\t}",
"public void weaponInformation() {\n System.out.println(\"Weapon Name: \" + super.name() );\r\n System.out.println(\"Desc:\" + super.description() );\r\n System.out.println(\"Mobility: \" + super.mobility() ); \r\n }",
"@Override\n public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {\n if (cursor == null || cursor.getCount() < 1) {\n return;\n }\n\n // Proceed with moving to the first row of the cursor and reading data from it\n // (This should be the only row in the cursor)\n if (cursor.moveToFirst()) {\n // Find the columns of pet attributes that we're interested in\n int nameColumnIndex = cursor.getColumnIndex(productEntry.COLUMN_product_NAME);\n int infoColumnIndex = cursor.getColumnIndex(ProductContract.productEntry.COLUMN_Product_description);\n int priceColumnIndex = cursor.getColumnIndex(productEntry.COLUMN_product_price);\n int quantityColumnIndex = cursor.getColumnIndex(ProductContract.productEntry.COLUMN_product_Quantity);\n int imageColumnIndex = cursor.getColumnIndex(ProductContract.productEntry.COLUMN_product_image);\n\n\n // Extract out the value from the Cursor for the given column index\n String name = cursor.getString(nameColumnIndex);\n String info = cursor.getString(infoColumnIndex);\n int price = cursor.getInt(priceColumnIndex);\n int quantity = cursor.getInt(quantityColumnIndex);\n String imageURI = cursor.getString(imageColumnIndex);\n\n // Update the views on the screen with the values from the database\n mNameEditText.setText(name);\n mDescriptionEditText.setText(info);\n mPriceEditText.setText(Integer.toString(price));\n mQuantityEditText.setText(Integer.toString(quantity));\n\n if (imageURI != null) {\n mImageView.setImageURI(Uri.parse(imageURI));\n }\n\n }\n }",
"void loadFeatured();",
"private void saveProduct() {\n Product product;\n String name = productName.getText().toString();\n if (name.isEmpty()) {\n productName.setError(getResources().getText(R.string.product_name_error));\n return;\n }\n String brandStr = brand.getText().toString();\n String brandOwnerStr = brandOwner.getText().toString();\n if (dbProduct == null) {\n product = new Product();\n product.setGtin(gtin);\n product.setLanguage(language);\n } else {\n product = dbProduct;\n }\n if (!name.isEmpty()) {\n product.setName(name);\n }\n if (!brandStr.isEmpty()) {\n product.setBrand(brandStr);\n }\n if (!brandOwnerStr.isEmpty()) {\n product.setBrandOwner(brandOwnerStr);\n }\n product.setCategory(selectedCategoryKey);\n LoadingIndicator.show();\n // TODO enable/disable save button\n PLYCompletion<Product> completion = new PLYCompletion<Product>() {\n @Override\n public void onSuccess(Product result) {\n Log.d(\"SavePDetailsCallback\", \"Product details saved\");\n dbProduct = result;\n LoadingIndicator.hide();\n if (isNewProduct) {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_saved, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productCreate(result);\n } else {\n SnackbarUtil.make(getActivity(), getView(), R.string.product_edited, Snackbar\n .LENGTH_LONG).show();\n DataChangeListener.productUpdate(result);\n }\n }\n\n @Override\n public void onPostSuccess(Product result) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n\n @Override\n public void onError(PLYAndroid.QueryError error) {\n Log.d(\"SavePDetailsCallback\", error.getMessage());\n if (isNewProduct || !error.isHttpStatusError() || !error.hasInternalErrorCode\n (PLYStatusCodes.OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n SnackbarUtil.make(getActivity(), getView(), error.getMessage(), Snackbar.LENGTH_LONG)\n .show();\n }\n LoadingIndicator.hide();\n }\n\n @Override\n public void onPostError(PLYAndroid.QueryError error) {\n if (!isNewProduct && error.isHttpStatusError() && error.hasInternalErrorCode(PLYStatusCodes\n .OBJECT_NOT_UPDATED_NO_CHANGES_CODE)) {\n FragmentActivity activity = getActivity();\n if (activity != null) {\n activity.onBackPressed();\n }\n }\n }\n };\n if (dbProduct == null) {\n ProductService.createProduct(sequentialClient, product, completion);\n } else {\n ProductService.updateProduct(sequentialClient, product, completion);\n }\n }",
"public ProductManager() {\n\t\tsuper();\n\t\ttotalQuantity = 0;\n\t\tcategoryList = new HashMap<Integer, ArrayList>();\n\t\tavailableProducts = new HashMap<String, String>();\n\t}",
"@Override\n\tpublic String getServletInfo()\n\t{\n\t\treturn \"C.R.U.D. Products\";\n\t}"
] | [
"0.6323517",
"0.6265436",
"0.6170424",
"0.6065443",
"0.5921952",
"0.591902",
"0.59145296",
"0.57548076",
"0.5730265",
"0.5723956",
"0.57110393",
"0.56537974",
"0.5651798",
"0.5568133",
"0.5554825",
"0.5552577",
"0.55404747",
"0.55226743",
"0.5521807",
"0.55117947",
"0.54940397",
"0.5483976",
"0.53672695",
"0.5349555",
"0.53351736",
"0.53316563",
"0.5311444",
"0.5310062",
"0.5309931",
"0.530698",
"0.53056777",
"0.52785856",
"0.5271397",
"0.52694565",
"0.52687216",
"0.52655786",
"0.52591956",
"0.5255796",
"0.52416736",
"0.52257264",
"0.5208171",
"0.51885927",
"0.51827466",
"0.51698744",
"0.5169094",
"0.5157986",
"0.51536983",
"0.5147763",
"0.51438046",
"0.5140876",
"0.5135861",
"0.5132849",
"0.5132849",
"0.51313734",
"0.5131154",
"0.5131154",
"0.5131154",
"0.5130296",
"0.5128377",
"0.5120786",
"0.5120786",
"0.5120786",
"0.5119158",
"0.5118267",
"0.5117835",
"0.5111242",
"0.5111135",
"0.5108912",
"0.5103649",
"0.5098115",
"0.50815",
"0.5080553",
"0.5076603",
"0.50671774",
"0.50623757",
"0.5045701",
"0.5044149",
"0.5033249",
"0.5027242",
"0.5015247",
"0.5014053",
"0.5006285",
"0.5004885",
"0.5002869",
"0.50021446",
"0.49984315",
"0.49911222",
"0.49896213",
"0.49875125",
"0.49847108",
"0.4978167",
"0.49752316",
"0.49746805",
"0.49746564",
"0.49738914",
"0.49732363",
"0.4965784",
"0.4963167",
"0.49598208",
"0.49566185"
] | 0.5448311 | 22 |
Display readmore for description and highlights if content is more than 5 lines. | public void buildSections(ActivityDetailsResponse activityDetailsResponse) {
int maxLines = getResources().getInteger(R.integer.lx_detail_content_description_max_lines);
resetSections();
if (Strings.isNotEmpty(activityDetailsResponse.description)) {
String descriptionContent = StrUtils.stripHTMLTags(activityDetailsResponse.description);
description.bindData(getResources().getString(R.string.description_activity_details), descriptionContent,
maxLines);
description.setVisibility(View.VISIBLE);
}
if (Strings.isNotEmpty(activityDetailsResponse.location)) {
String locationContent = StrUtils.stripHTMLTags(activityDetailsResponse.location);
location.bindData(getResources().getString(R.string.location_activity_details), locationContent, 0);
location.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.highlights)) {
CharSequence highlightsContent = StrUtils.generateBulletedList(activityDetailsResponse.highlights);
highlights
.bindData(getResources().getString(R.string.highlights_activity_details), highlightsContent, maxLines);
highlights.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.inclusions)) {
CharSequence inclusionsContent = StrUtils.generateBulletedList(activityDetailsResponse.inclusions);
inclusions.bindData(getResources().getString(R.string.inclusions_activity_details), inclusionsContent, 0);
inclusions.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.exclusions)) {
CharSequence exclusionsContent = StrUtils.generateBulletedList(activityDetailsResponse.exclusions);
exclusions.bindData(getResources().getString(R.string.exclusions_activity_details), exclusionsContent, 0);
exclusions.setVisibility(View.VISIBLE);
}
if (CollectionUtils.isNotEmpty(activityDetailsResponse.knowBeforeYouBook)) {
CharSequence knowBeforeYouBookContent = StrUtils.generateBulletedList(
activityDetailsResponse.knowBeforeYouBook);
knowBeforeYouBook.bindData(getResources().getString(R.string.know_before_you_book_activity_details),
knowBeforeYouBookContent, 0);
knowBeforeYouBook.setVisibility(View.VISIBLE);
}
String cancellationPolicyText = LXDataUtils
.getCancelationPolicyDisplayText(getContext(), activityDetailsResponse.freeCancellationMinHours);
cancellation.bindData(getResources().getString(R.string.cancellation_policy),
cancellationPolicyText, 0);
cancellation.setVisibility(View.VISIBLE);
int datesScrollerDrawable =
CollectionUtils.isNotEmpty(activityDetailsResponse.highlights) ? R.drawable.lx_dates_container_background
: R.drawable.lx_dates_container_background_no_top_border;
offerDatesScrollView.setBackground(getResources().getDrawable(datesScrollerDrawable));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void run() {\n if(body.getLineCount() < 4) {\n more.setVisibility(GONE);\n }\n body.setMaxLines(3);\n }",
"public void readMore5(View view) {\n String readMore5 = \"Founders: John Lush, Gunter Rust, Toivo Thomas\" + \"\\nWebsite: http://agri-cyclenamibia.weebly.com/\";\n displayMessage5(readMore5);\n }",
"public void readMore20(View view) {\n String readMore20 = \"Website: http://hellodoc.ng/\";\n displayMessage20(readMore20);\n }",
"public void readMore2(View view) {\n String readMore2 = \"Founder: Kwabena Danso\" + \"\\nWebsite: http://booomers.com/\";\n displayMessage2(readMore2);\n }",
"public void readMore10(View view) {\n String readMore10 = \"Founder: Amanda Gicharu\" + \"\\nWebsite: http://www.techrepublicafrica.com/\";\n displayMessage10(readMore10);\n }",
"public void readMore15(View view) {\n String readMore15 = \"Website: http://gomyway.com\";\n displayMessage15(readMore15);\n }",
"public void readMore1(View view) {\n String readMore1 = \"Founder: Johann Kok\" + \"\\nWebsite: http://www.seebox.co.za\";\n displayMessage(readMore1);\n }",
"public void readMore21(View view) {\n String readMore21 = \"Website: http://www.flyingdoctorsnigeria.com/\";\n displayMessage21(readMore21);\n }",
"public void readMore6(View view) {\n String readMore6 = \"Founder: Chinazo Ikenna\" + \"\\nWebsite: http://www.solarkobo.com\";\n displayMessage6(readMore6);\n }",
"public void readMore4(View view) {\n String readMore4 = \"Founder: Dr. William Mapham\" + \"\\nWebsite: http://www.vulamobile.com/\";\n displayMessage4(readMore4);\n }",
"public void readMore16(View view) {\n String readMore16 = \"Founder: Theuri Mwangi\" + \"\\nWebsite: https://mymookh.com/\";\n displayMessage16(readMore16);\n }",
"public void readMore14(View view) {\n String readMore14 = \"Website: http://ologa.com/\";\n displayMessage14(readMore14);\n }",
"public void readMore9(View view) {\n String readMore9 = \"Founder: Eyram Tawia\" + \"\\nWebsite: http://letiarts.com/\";\n displayMessage9(readMore9);\n }",
"public void readMore3(View view) {\n String readMore3 = \"Founder: James Steere\" + \"\\nWebsite: http://www.idropwater.com\";\n displayMessage3(readMore3);\n }",
"public void readMore19(View view) {\n String readMore19 = \"Website: https://www.ace.ng\";\n displayMessage19(readMore19);\n }",
"public void readMore8(View view) {\n String readMore8 = \"Founder: Antony Tonee Ndungu\" + \"\\nWebsite: http://kytabu.com\";\n displayMessage8(readMore8);\n }",
"public void readMore7(View view) {\n String readMore7 = \"Website: http://www.max.ng\";\n displayMessage7(readMore7);\n }",
"public void readMore11(View view) {\n String readMore11 = \"Website: http://www.settic.sn/\";\n displayMessage11(readMore11);\n }",
"public void readMore13(View view) {\n String readMore13 = \"Founder: Harouna Ba\" + \"\\nWebsite: http://greenwashafrica.com/\";\n displayMessage13(readMore13);\n }",
"public void readMore22(View view) {\n String readMore22 = \"Website: http://www.kilivr.com/\";\n displayMessage22(readMore22);\n }",
"public void readMore23(View view) {\n String readMore23 = \"Founder: Tinashe Makaza\" + \"\\nWebsite: http://www.virtualbank.co.zw/\";\n displayMessage23(readMore23);\n }",
"public void readMore12(View view) {\n String readMore12 = \"Founder: Adama Kane\" + \"\\nWebsite: http://www.jokkosante.org/\";\n displayMessage12(readMore12);\n }",
"private void displayMessage5(String message) {\n TextView agricycleReadMore = (TextView) findViewById(R.id.read_more5);\n agricycleReadMore.setTextColor(Color.BLACK);\n agricycleReadMore.setText(message);\n agricycleReadMore.setGravity(Gravity.CENTER);\n }",
"public void readMore24(View view) {\n String readMore24 = \"Website: http://www.smsgh.com\";\n displayMessage24(readMore24);\n }",
"public void readMore18(View view) {\n String readMore18 = \"Website: http://www.wecyclers.com\";\n displayMessage18(readMore18);\n }",
"private void setLinesCount(String description, boolean isClicked) {\n mBinding.tvPdpProductDescription.setMaxLines(!isClicked ? (FOUR * moreIndex) : mLineCount);\n mBinding.tvPdpProductDescription.setEllipsize(\n mLineCount > FOUR * moreIndex ? TextUtils.TruncateAt.END : null);\n mBinding.tvPdpProductDesMore.setVisibility(\n (!isClicked) ? View.VISIBLE : View.GONE);\n }",
"public void readMore17(View view) {\n String readMore17 = \"Founder: Terry Kanu-Iroegbu\" + \"\\nWebsite: https://www.pushcv.com\";\n displayMessage17(readMore17);\n }",
"private void displayMessage7(String message) {\n TextView maxReadMore = (TextView) findViewById(R.id.read_more7);\n maxReadMore.setTextColor(Color.BLACK);\n maxReadMore.setText(message);\n maxReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage20(String message) {\n TextView helloDocReadMore = (TextView) findViewById(R.id.read_more20);\n helloDocReadMore.setTextColor(Color.BLACK);\n helloDocReadMore.setText(message);\n helloDocReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage10(String message) {\n TextView techRepReadMore = (TextView) findViewById(R.id.read_more10);\n techRepReadMore.setTextColor(Color.BLACK);\n techRepReadMore.setText(message);\n techRepReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage14(String message) {\n TextView ologaReadMore = (TextView) findViewById(R.id.read_more14);\n ologaReadMore.setTextColor(Color.BLACK);\n ologaReadMore.setText(message);\n ologaReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage15(String message) {\n TextView gomywayReadMore = (TextView) findViewById(R.id.read_more15);\n gomywayReadMore.setTextColor(Color.BLACK);\n gomywayReadMore.setText(message);\n gomywayReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage21(String message) {\n TextView flyingDocReadMore = (TextView) findViewById(R.id.read_more21);\n flyingDocReadMore.setTextColor(Color.BLACK);\n flyingDocReadMore.setText(message);\n flyingDocReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage6(String message) {\n TextView solarKoboReadMore = (TextView) findViewById(R.id.read_more6);\n solarKoboReadMore.setTextColor(Color.BLACK);\n solarKoboReadMore.setText(message);\n solarKoboReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage18(String message) {\n TextView wecyclersReadMore = (TextView) findViewById(R.id.read_more18);\n wecyclersReadMore.setTextColor(Color.BLACK);\n wecyclersReadMore.setText(message);\n wecyclersReadMore.setGravity(Gravity.CENTER);\n }",
"public void expandDescription(final View v){\n if(!descriptionExpanded) {\n //Set line number to unlimited\n mDescription.setMaxLines(Integer.MAX_VALUE);\n\n //Animate expansion\n mAdditionalDetailsLayout.setVisibility(View.VISIBLE);\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_minimize_white));\n descriptionExpanded = true;\n }else{\n //Set line limit\n mDescription.setMaxLines(getApplicationContext().getResources().getInteger(R.integer.lines));\n\n mFAB.setImageDrawable(getResources().getDrawable(R.drawable.ic_add_white));\n\n\n //Animate collapse\n mAdditionalDetailsLayout.setVisibility(View.GONE);\n\n descriptionExpanded = false;\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tif (moreSummaryBtn.getText().toString().equals(getResources().getString(com.rs.mobile.wportal.R.string.more))) {\n\t\t\t\t\t\n\t\t\t\t\t\tmoreSummaryBtn.setText(getResources().getString(com.rs.mobile.wportal.R.string.hide));\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.setSingleLine(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.invalidate();\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\tmoreSummaryBtn.setText(getResources().getString(com.rs.mobile.wportal.R.string.more));\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.setMaxLines(4);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.invalidate();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"private void displayMessage19(String message) {\n TextView aceReadMore = (TextView) findViewById(R.id.read_more19);\n aceReadMore.setTextColor(Color.BLACK);\n aceReadMore.setText(message);\n aceReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage4(String message) {\n TextView vulaMobileReadMore = (TextView) findViewById(R.id.read_more4);\n vulaMobileReadMore.setTextColor(Color.BLACK);\n vulaMobileReadMore.setText(message);\n vulaMobileReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage8(String message) {\n TextView kytabuReadMore = (TextView) findViewById(R.id.read_more8);\n kytabuReadMore.setTextColor(Color.BLACK);\n kytabuReadMore.setText(message);\n kytabuReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage16(String message) {\n TextView mookhReadMore = (TextView) findViewById(R.id.read_more16);\n mookhReadMore.setTextColor(Color.BLACK);\n mookhReadMore.setText(message);\n mookhReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage9(String message) {\n TextView letiArtsReadMore = (TextView) findViewById(R.id.read_more9);\n letiArtsReadMore.setTextColor(Color.BLACK);\n letiArtsReadMore.setText(message);\n letiArtsReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage22(String message) {\n TextView kiliVrReadMore = (TextView) findViewById(R.id.read_more22);\n kiliVrReadMore.setTextColor(Color.BLACK);\n kiliVrReadMore.setText(message);\n kiliVrReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage11(String message) {\n TextView setTicReadMore = (TextView) findViewById(R.id.read_more11);\n setTicReadMore.setTextColor(Color.BLACK);\n setTicReadMore.setText(message);\n setTicReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage17(String message) {\n TextView pushCvReadMore = (TextView) findViewById(R.id.read_more17);\n pushCvReadMore.setTextColor(Color.BLACK);\n pushCvReadMore.setText(message);\n pushCvReadMore.setGravity(Gravity.CENTER);\n }",
"@Override\n public boolean isLearnMoreDisplayed() {\n\n setLogString(\"Check if Learn More is displayed\", true, CustomLogLevel.HIGH);\n return isDisplayed(getDriver(), By.cssSelector(\".help_icon.clickable\"), TINY_TIMEOUT);\n }",
"private void displayMessage12(String message) {\n TextView jokkoReadMore = (TextView) findViewById(R.id.read_more12);\n jokkoReadMore.setTextColor(Color.BLACK);\n jokkoReadMore.setText(message);\n jokkoReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage24(String message) {\n TextView smsghReadMore = (TextView) findViewById(R.id.read_more24);\n smsghReadMore.setTextColor(Color.BLACK);\n smsghReadMore.setText(message);\n smsghReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage2(String message) {\n TextView boomersReadMore = (TextView) findViewById(R.id.read_more2);\n boomersReadMore.setTextColor(Color.BLACK);\n boomersReadMore.setText(message);\n boomersReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage(String message) {\n TextView seeBoxReadMore = (TextView) findViewById(R.id.read_more1);\n seeBoxReadMore.setTextColor(Color.BLACK);\n seeBoxReadMore.setText(message);\n seeBoxReadMore.setGravity(Gravity.CENTER);\n }",
"private void dg_ui_detail_description(RecyclerView.ViewHolder viewHolder, AppTabContentModel item) {\n ArticleBean bean = item.getBean();\n DG_DetailDescriptionWebViewHolder holder = (DG_DetailDescriptionWebViewHolder) viewHolder;\n mDescriptionTextSize = DefaultPref.getInstance(holder.itemView.getContext()).getDescriptionSize();\n\n String fullDescription = bean.getDescription();\n\n if (bean.getAdd_pos() > 1) {\n if (item.getUniqueIdForView().equals(RowIds.rowId_description_1())) {\n holder.webview.loadDataWithBaseURL(\"https:/\", THP_AutoResizeWebview.defaultgroup_showDescription(holder.itemView.getContext(), bean.getLe(), fullDescription.substring(0, bean.getAdd_pos() - 1)),\n \"text/html\", \"UTF-8\", null);\n } else if (item.getUniqueIdForView().equals(RowIds.rowId_description_2())) {\n holder.webview.loadDataWithBaseURL(\"https:/\", THP_AutoResizeWebview.defaultgroup_showDescription(holder.itemView.getContext(), \"\", fullDescription.substring(bean.getAdd_pos() - 1)),\n \"text/html\", \"UTF-8\", null);\n }\n } else {\n holder.webview.loadDataWithBaseURL(\"https:/\", THP_AutoResizeWebview.defaultgroup_showDescription(holder.itemView.getContext(), bean.getLe(), fullDescription),\n \"text/html\", \"UTF-8\", null);\n }\n\n holder.webview.setSize(mDescriptionTextSize);\n\n // Enabling Weblink click on Description\n new WebViewClientForArticleDetail(true).linkClick(holder.webview, holder.itemView.getContext(), null);\n\n\n }",
"private void displayMessage13(String message) {\n TextView greenwashReadMore = (TextView) findViewById(R.id.read_more13);\n greenwashReadMore.setTextColor(Color.BLACK);\n greenwashReadMore.setText(message);\n greenwashReadMore.setGravity(Gravity.CENTER);\n }",
"private void displayMessage3(String message) {\n TextView iDropWaterReadMore = (TextView) findViewById(R.id.read_more3);\n iDropWaterReadMore.setTextColor(Color.BLACK);\n iDropWaterReadMore.setText(message);\n iDropWaterReadMore.setGravity(Gravity.CENTER);\n }",
"public void showDescription() {\r\n\t\tshowDescription(true);\r\n\t}",
"public void showMore() throws Exception {\n\t\tif(getControl(\"showMore\").queryVisible()) {\n\t\t\tgetControl(\"showMore\").click();\n\t\t}\n\t}",
"void showFullDesc(String desc, String title);",
"public boolean hasMoreDiscussions();",
"private void displayMessage23(String message) {\n TextView virtualBankReadMore = (TextView) findViewById(R.id.read_more23);\n virtualBankReadMore.setTextColor(Color.BLACK);\n virtualBankReadMore.setText(message);\n virtualBankReadMore.setGravity(Gravity.CENTER);\n }",
"public String editLongDesc(){\r\n \tString nextView= null;\r\n \tthis.getLog().info(\"editLongDesc()\");\r\n \t\r\n \tif(selectedAlgorithmID >= 0){\r\n \t\tthis.getLog().info(\"+ selected algorithm:\" + selectedAlgorithm.getDisplayShortName());\r\n\t \t\tnextView = \"editB_LongDescription\";\r\n \t}else{\r\n \t\tFacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, \"Error\" , \"<br />Please select an algorithm to edit.\"));\t\r\n \t}\r\n \t\r\n \tthis.getLog().info(\"+ nextView:\" + nextView); \r\n\t\treturn nextView;\r\n }",
"@Override\n public int heightHint() {\n return isMultiline() ? 45 : 15;\n }",
"public abstract String getContentDescription();",
"private void premium_ui_detail_description(RecyclerView.ViewHolder viewHolder, ArticleBean bean, int position) {\n PREMIUM_DetailDescriptionWebViewHolder holder = (PREMIUM_DetailDescriptionWebViewHolder) viewHolder;\n mDescriptionTextSize = DefaultPref.getInstance(holder.mLeadTxt.getContext()).getDescriptionSize();\n\n // Enabling Weblink click on Lead Text\n new WebViewClientForArticleDetail(true).linkClick(holder.mLeadTxt, holder.itemView.getContext(), null);\n\n holder.mLeadTxt.loadDataWithBaseURL(\"https:/\", THP_AutoResizeWebview.premium_WebTextDescription(holder.webview.getContext(), bean.getArticletitle(), true),\n \"text/html\", \"UTF-8\", null);\n holder.mLeadTxt.setSize(mDescriptionTextSize);\n\n holder.webview.setSize(mDescriptionTextSize);\n\n // Enabling Weblink click on Description\n new WebViewClientForArticleDetail(true).linkClick(holder.webview, holder.itemView.getContext(), null);\n\n holder.webview.loadDataWithBaseURL(\"https:/\", THP_AutoResizeWebview.premium_WebTextDescription(holder.webview.getContext(), bean.getDescription(), false),\n \"text/html\", \"UTF-8\", null);\n\n mDescriptionItemPosition = position;\n\n }",
"@Override\n\tprotected void onMoreViewHeightChange(View moreView, int pullHeight) {\n\t\tif (getXListView().getLoadMoreState() != XListView.MORE_STATE_LOADING) {\n\t\t\tTextView textView = (TextView) moreView\n\t\t\t\t\t.findViewById(R.id.textView);\n\t\t\tif (pullHeight > moreView.getMeasuredHeight()) {\n\t\t\t\ttextView.setText(\"Release to loading.\");\n\t\t\t} else {\n\t\t\t\ttextView.setText(\"Pull up load more.\");\n\n\t\t\t}\n\t\t}\n\t}",
"TextView getDescriptionView();",
"private String cutText(int maxLength, String content) {\n\t\tif(content.length() <= maxLength){\n\t\t\treturn content;\n\t\t}\t\t\n\t\treturn content.substring(0, maxLength) + \"...\";\n\t}",
"@Override\n public int getCount() {\n return description.length;\n }",
"public void setDescrizione (String descrizione) {\r\n\t\tthis.descrizione=descrizione;\r\n\t}",
"Builder addDetailedDescription(Article value);",
"public static String getRandomLongDescription() {\n int paragraphs = RandomNumberGenerator.getRandomInt(2, 5);\n StringBuilder sb = new StringBuilder();\n\n for (int i = 0; i < paragraphs; i++) {\n\n sb.append(\"##\").append(getRandomText(2, 1).replace('.', ' ')).append(\"##\\n\");\n int length = RandomNumberGenerator.getRandomInt(30, 200);\n sb.append(getRandomText(length, 1)).append(\"\\n\");\n }\n return sb.toString();\n }",
"public String getDescription() {\n\t\t//@formatter:off\n\t\treturn cb.toString()\n\t\t\n\t\t.trim()\n\t\t\n\t\t//jsoup converts \" \" to a character that doesn't display right on SO Chat\n\t\t.replace((char)160, ' ')\n\t\t\n\t\t//remove whitespace that's at the end of each line\n\t\t.replaceAll(\"[ \\\\t]+\\\\n\", \"\\n\")\n\t\t\n\t\t//there should never be a run of more than consecutive 2 newlines\n\t\t.replaceAll(\"\\\\n{3,}\", \"\\n\\n\")\n\t\t\n\t\t//the code tag should be inner most formatting tag (e.g. \"`**test**`\" --> \"**`test`**\")\n\t\t.replaceAll(\"`([\\\\*\\\\-]+)(.*?)([\\\\*\\\\-]+)`\", \"$1`$2`$3\")\n\t\t\n\t\t//move the code tags surrounding links so that they are inside the brackets (e.g. \"`[test](...)`\" --> \"[`test`](...)\")\n\t\t.replaceAll(\"`\\\\[(.*?)\\\\]\\\\((.*?)\\\\)`\", \"[`$1`]($2)\")\n\t\t\n\t\t//run this regex again to fix certain edge cases with links (e.g. \"`*[**test**](...)*`\" --> \"*`[**test**](...)`*\" --> \"*[**`test`**](...)*\")\n\t\t.replaceAll(\"`([\\\\*\\\\-]+)(.*?)([\\\\*\\\\-]+)`\", \"$1`$2`$3\");\n\t\t//@formatter:on\n\t}",
"boolean isMore();",
"int getLinesLimit();",
"public RichText getDescr();",
"public void setDescrizione(String descrizione) {\r\n\t\tthis.descrizione = descrizione;\r\n\t}",
"public boolean longDescriptionHasSeenBefore(){\n return longDescriptionviewer;\n }",
"private CharSequence getStyledContents(String subject, String snippet, boolean read) {\n SpannableStringBuilder ssb = new SpannableStringBuilder();\n boolean hasSubject = false;\n if (!TextUtils.isEmpty(subject)) {\n SpannableString ss = new SpannableString(subject);\n ss.setSpan(new StyleSpan(read ? Typeface.NORMAL : Typeface.BOLD), 0, ss.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n ss.setSpan(new ForegroundColorSpan(sDefaultTextColor), 0, ss.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.append(ss);\n hasSubject = true;\n }\n if (!TextUtils.isEmpty(snippet)) {\n if (hasSubject) {\n ssb.append(sContentsSnippetDivider);\n }\n SpannableString ss = new SpannableString(snippet);\n ss.setSpan(new ForegroundColorSpan(sLightTextColor), 0, snippet.length(),\n Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);\n ssb.append(ss);\n }\n return addStyle(ssb, sContentsFontSize, 0);\n }",
"void showFullDesc(String desc, String title, String startDate);",
"public void setDescrizione(String descrizione) {\n\t\tthis.descrizione = descrizione;\n\t}",
"public Description(long desc_id) throws Exception {\n\t\tDB.Select(\"SELECT * from Descriptions where id=\" + desc_id, new SelectReader() {\n\t\t\tpublic void Read(ResultSet rs) throws Exception\n\t\t\t{\n\t\t\t\tif (rs.next()) {\n\t\t\t\t\tid = desc_id;\n\t\t\t\t\ttext = rs.getString(\"text\");\n\t\t\t\t\tapproved = rs.getBoolean(\"approved\");\n\t\t\t\t\tdiscarded = rs.getBoolean(\"discarded\");\n\t\t\t\t\tuser_nusp = rs.getLong(\"user_nusp\");\n\t\t\t\t\timage_id = rs.getLong(\"image_id\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthrow new Exception(\"Descrição inexistente\");\n\t\t\t}\n\t\t});\n\t}",
"public void setDescrizione(java.lang.String descrizione) {\r\n this.descrizione = descrizione;\r\n }",
"@Override\n \t\t\t\tpublic void modifyText(ModifyEvent e) {\n \t\t\t\t\tString result = fp.getValidator().validate(text.getText());\n \t\t\t\t\tif (result == null)\n \t\t\t\t\t\tdecorator.hide();\n \t\t\t\t\telse {\n \t\t\t\t\t\tdecorator.setDescriptionText(result);\n \t\t\t\t\t\tdecorator.show();\n \t\t\t\t\t}\n \t\t\t\t\tupdateState();\n \t\t\t\t}",
"public void displayRequestedTermCollapsed(Term term, int position) {\n View collapsedTerm = getActivity().getLayoutInflater().inflate(R.layout.term_display_collapsed, null);\n ((TextView) collapsedTerm.findViewById(R.id.term_title_collapsed)).setText(term.getTitle()); // title\n\n String langage = term.getLangage();\n String category = term.getCategory();\n ((TextView) collapsedTerm.findViewById(R.id.term_type_langage_collapsed))\n .setText(\"\" + (category != null ? \", \" + category : \"\") + (langage != null ? \", \" + langage : \"\")); //category and langage if any\n\n StringBuilder builder = new StringBuilder();\n List<Domain> domains = term.getDomainList();\n for (int i = 0; i < domains.size(); i++) {\n builder.append(domains.get(i).getTitle().toUpperCase());\n if (i != domains.size() - 1 && domains.size() > 1) {\n builder.append(\" - \");\n }\n }\n List<Subdomain> subdomains = term.getSubdomainList();\n if (subdomains.size() > 1) { // so you dont add the separator\n builder.append(\" / \");\n }\n for (int i = 0; i < subdomains.size(); i++) {\n builder.append(subdomains.get(i).getTitle().toUpperCase());\n if (i != subdomains.size() - 1 && subdomains.size() > 1) {\n builder.append(\" - \");\n }\n }\n ((TextView) collapsedTerm.findViewById(R.id.term_domains_subdomains_collapsed)).setText(builder.toString());\n builder = new StringBuilder();\n\n if (term.getDefinition()!=null && term.getDefinition().length() > 40) {\n ((TextView) collapsedTerm.findViewById(R.id.term_definition_short_collapsed)).setText(term.getDefinition().substring(0, 40) + \"...\");\n } else {\n ((TextView) collapsedTerm.findViewById(R.id.term_definition_short_collapsed)).setText(term.getDefinition());\n }\n\n List<EquivalentTerm> equivalentTerms = term.getEquivalentTermList();\n for (int i = 0; i < equivalentTerms.size(); i++) {\n builder.append(equivalentTerms.get(i).getTitle());\n if (i != equivalentTerms.size() - 1 && equivalentTerms.size() > 1) {\n builder.append(\", \");\n }\n }\n ((TextView) collapsedTerm.findViewById(R.id.term_equivalents_collapsed)).setText(builder.toString());\n\n collapsedTerm.setOnClickListener(this);\n\n ViewUtil.addViewToParent((ViewGroup) view.findViewById(R.id.main_term_container), collapsedTerm, position);\n }",
"private String getUnexpandedContentText(int numOfNotifications) {\n /*switch (numOfNotifications) {\n case 0:\n return \"\";\n case 1:\n return \"\";\n default:*/\n return numOfNotifications + \" news received\";\n }",
"public abstract void setContentDescription(String description);",
"void descriptionComplete();",
"public String description(){\n\t\treturn \"Mark: \" + mark + \"\\n\" + \"Comment: \" + comment;\n\t}",
"private boolean more() {\n return regEx.length() > 0;\n }",
"public String getLongDescription() \n {\n return \"You are at \" + description + \".\\n\" \n + showItemInfo() + \".\\n\" + getExitString();\n }",
"private void drawDescription(){\n image.clear();\n \n String[] words = desc.split(\" \");\n int lineCounter = 1;\n int length = 0;\n int index = 0;\n String line1 = \"\";\n String line2 = \"\";\n String line3 = \"\";\n String line4 = \"\";\n String line5 = \"\";\n \n image.setColor(DESCRIPTION_BG_COLOR);\n image.fill();\n image.setColor(DESCRIPTION_COLOR);\n \n // Determines how many words to put on each line so it fits in the image\n while(index != words.length){\n if((length += words[index].length() + 1) * DESCRIPTION_FONT.getSize() * 0.6 < image.getWidth()){\n length += words[index].length() + 1;\n if(lineCounter == 1) line1 += words[index] + \" \";\n else if(lineCounter == 2) line2 += words[index] + \" \";\n else if(lineCounter == 3) line3 += words[index] + \" \";\n else if(lineCounter == 4) line4 += words[index] + \" \";\n else if(lineCounter == 5) line5 += words[index] + \" \";\n index++;\n }\n else{\n lineCounter++;\n length = 0;\n }\n }\n \n // Determines where to draw each string so that it always stays centered\n if(lineCounter == 1) image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 2) + DESCRIPTION_FONT.getSize() / 4);\n else if(lineCounter == 2){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 2 / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 5) + DESCRIPTION_FONT.getSize() / 4);\n }\n else if(lineCounter == 3){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 2) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line3, (image.getWidth() - (int)(line3.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 7 / 10) + DESCRIPTION_FONT.getSize() / 4);\n }\n else if(lineCounter == 4){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 2 / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line3, (image.getWidth() - (int)(line3.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 5) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line4, (image.getWidth() - (int)(line4.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 4 / 5) + DESCRIPTION_FONT.getSize() / 4);\n }\n else if(lineCounter == 5){\n image.drawString(line1, (image.getWidth() - (int)(line1.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line2, (image.getWidth() - (int)(line2.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 3 / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line3, (image.getWidth() - (int)(line3.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() / 2) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line4, (image.getWidth() - (int)(line4.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 7 / 10) + DESCRIPTION_FONT.getSize() / 4);\n image.drawString(line5, (image.getWidth() - (int)(line5.length() * DESCRIPTION_FONT.getSize() * 0.6)) / 2, (image.getHeight() * 9 / 10) + DESCRIPTION_FONT.getSize() / 4);\n }\n setImage(image);\n }",
"@Then(\"detailed description is displaying\")\n public void detailed_description_is_displaying() {\n }",
"private void createContents() {\n\t\tshlAbout = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.RESIZE);\n\t\tshlAbout.setMinimumSize(new Point(800, 600));\n\t\tshlAbout.setSize(800, 688);\n\t\tshlAbout.setText(\"About\");\n\t\t\n\t\tLabel lblKelimetrikAPsycholinguistic = new Label(shlAbout, SWT.CENTER);\n\t\tlblKelimetrikAPsycholinguistic.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tlblKelimetrikAPsycholinguistic.setBounds(0, 10, 784, 21);\n\t\tlblKelimetrikAPsycholinguistic.setText(\"KelimetriK: A psycholinguistic tool of Turkish\");\n\t\t\n\t\tScrolledComposite scrolledComposite = new ScrolledComposite(shlAbout, SWT.BORDER | SWT.V_SCROLL);\n\t\tscrolledComposite.setBounds(0, 37, 774, 602);\n\t\tscrolledComposite.setExpandHorizontal(true);\n\t\tscrolledComposite.setExpandVertical(true);\n\t\t\n\t\tComposite composite = new Composite(scrolledComposite, SWT.NONE);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setSize(107, 21);\n\t\tlabel.setText(\"Introduction\");\n\t\tlabel.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_1 = new Label(composite, SWT.WRAP);\n\t\tlabel_1.setLocation(0, 27);\n\t\tlabel_1.setSize(753, 157);\n\t\tlabel_1.setText(\"Selection of appropriate words for a fully controlled word stimuli set is an essential component for conducting an effective psycholinguistic studies (Perea, & Polatsek, 1998; Bowers, Davis, & Hanley, 2004). For example, if the word stimuli set of a visual word recognition study is full of high frequency words, this may create a bias on the behavioral scores and would lead to incorrect inferences about the hypothesis. Thus, experimenters who are intended to work with any kind of verbal stimuli should consider such linguistic variables to obtain reliable results.\\r\\n\\r\\nKelimetriK is a query-based software program designed to demonstrate several lexical variables and orthographic statistics of words. As shown in Figure X, the user-friendly interface of KelimetriK is an easy-to-use software developed to be a helpful source experimenters who are preparing verbal stimuli sets for psycholinguistic studies. KelimetriK provides information about several lexical properties of word-frequency, neighborhood size, orthographic similarity and relatedness. KelimetriK\\u2019s counterparts in other language are N-watch in English (Davis, 2005) and BuscaPalabras in Spanish (Davis, & Perea, 2005).\");\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setLocation(0, 190);\n\t\tlabel_2.setSize(753, 21);\n\t\tlabel_2.setText(\"The lexical variables in KelimetriK Software\");\n\t\tlabel_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\t\n\t\tLabel label_3 = new Label(composite, SWT.WRAP);\n\t\tlabel_3.setBounds(0, 228, 753, 546);\n\t\tlabel_3.setText(\"Output lexical variables (and orthographic statistics) in KelimetriK are word-frequency, bigram and tri-gram frequency and average frequency values, orthographic neighborhood size (Coltheart\\u2019s N), orthographic Levensthein distance 20 (OLD20) and transposed letter and subset/superset similarity.\\r\\n\\r\\nWord frequency is a value that describes of how many times a word occurred in a given text. Research shows that there is a consistent logarithmic relationship between reaction time and word\\u2019s frequency score; the impact of effect is higher for smaller frequencies words that the effect gets smaller on higher frequency scores (Davis, 2005).\\r\\n\\r\\nBi-grams and tri-grams are are obtained by decomposing a word (string of tokens) into sequences of two and three number of neighboring elements (Manning, & Sch\\u00FCtze, 1999). For example, the Turkish word \\u201Ckule\\u201D (tower in English) can be decomposed into three different bigram sets (\\u201Cku\\u201D, \\u201Cul\\u201D, \\u201Cle\\u201D). Bigram/trigram frequency values are obtained by counting how many same letter (four in this case) words will start with first bigram set (e.g. \\u201Cku\\u201D), how many words have second bigram set in the middle (e.g. \\u201Cul\\u201D) in the middle, and how many words will end with last bigram set (\\u201Cle\\u201D) in a given lexical word database. The trigrams for the word \\u201Ckule\\u201D are \\u201Ckul\\u201D and \\u201Cule\\u201D. Average bi-gram/tri-gram frequency is obtained by adding a word\\u2019s entire bi-gram/ tri-gram frequencies and then dividing it by number of bigrams (\\u201Ckule\\u201D consist of three bigrams).\\r\\n\\r\\nOrthographic neighborhood size (Coltheart\\u2019s N) refers to number of words that can be obtained from a given lexical database word list by substituting a single letter of a word (Coltheart et al, 1977). For example, orthographic neighborhood size of the word \\u201Ckule\\u201D is 9 if searched on KelimetriK (\\u201C\\u015Fule\\u201D, \\u201Ckula\\u201D, \\u201Ckulp\\u201D, \\u201Cfule\\u201D, \\u201Ckale\\u201D, \\u201Ck\\u00F6le\\u201D, \\u201Ckele\\u201D, \\u201Ckile\\u201D, \\u201Cku\\u015Fe\\u201D). A word\\u2019s orthographic neighborhood size could influence behavioral performance in visual word recognition tasks of lexical decision, naming, perceptual identification, and semantic categorization (Perea, & Polatsek, 1998).\\r\\n\\r\\nOrthographic Levensthein distance 20 (OLD20) of a word is the average of 20 most close words in the unit of Levensthein distance (Yarkoni, Balota, & Yap, 2008). Levensthein distance between the two strings of letters is obtained by counting the minimum number of operations (substitution, deletion or insertion) required while passing from one letter string to the other (Levenshthein, 1966). Behavioral studies show that, OLD20 is negatively correlated with orthographic neighborhood size (r=-561) and positively correlated with word-length (r=868) for English words (Yarkoni, Balota, & Yap, 2008). Moreover, OLD20 explains more variance on visual word recognition scores than orthographic neighborhood size and word length (Yarkoni, Balota, & Yap, 2008).\\r\\n\\r\\nOrthographic similarity between two words means they are the neighbors of each other like the words \\u201Cal\\u0131n\\u201D (forehead in English) and \\u201Calan\\u201D (area in English). Transposed letter (TL) and subset/superset are the two most common similarities in the existing literature (Davis, 2005). TL similiarity is the case when the two letters differ from each other based on a single pair of adjacent letters as in the Turkish words of \\u201Cesen\\u201D (blustery) and \\u201Cesne\\u201D (yawn). Studies have shown that TL similarity may facilitate detection performance on naming and lexical decision task (Andrews, 1996). Subset/Superset similarity occurs when there is an embedded word in a given input word such as \\u201Cs\\u00FCt\\u201D (subset: milk in Turkish) \\u201Cs\\u00FCtun\\u201D (superset: pillar in Turkish). Presence of a subset in a word in a stimuli set may influence the subject\\u2019s reading performance, hence may create a confounding factor on the behavioral results (Bowers, Davis, & Hanley, 2005).\");\n\t\t\n\t\tLabel lblAndrewsLexical = new Label(composite, SWT.NONE);\n\t\tlblAndrewsLexical.setLocation(0, 798);\n\t\tlblAndrewsLexical.setSize(753, 296);\n\t\tlblAndrewsLexical.setText(\"Andrews (1996). Lexical retrieval and selection processes: Effects of transposed-letter confusability, Journal of Memory and Language 35, 775\\u2013800\\r\\n\\r\\nBowers, J. S., Davis, C. J., & Hanley, D. A. (2005). References automatic semantic activation of embedded words: Is there a \\u2018\\u2018hat\\u2019\\u2019 in \\u2018\\u2018that\\u2019\\u2019? Journal of Memory and Language, 52, 131-143.\\r\\n\\r\\nColtheart, M., Davelaar, E., Jonasson, J. T., & Besner, D. (1977). Access to the internal lexicon. Attention and Performance, 6, 535-555.\\r\\n\\r\\nDavis, C. J. (2005). N-Watch: A program for deriving neighborhood size and other psycholinguistic statistics. Behavior Research Methods, 37, 65-70.\\r\\n\\r\\nDavis, C. J., & Parea, M. (2005). BuscaPalabras: A program for deriving orthographic and phonological neighborhood statistics and other psycholinguistic indices in Spanish. Behavior Research Methods, 37, 665-671.\\r\\n\\r\\nLevenshtein, V. I. (1966, February). Binary codes capable of correcting deletions, insertions and reversals. In Soviet physics doklady (Vol. 10, p. 707).\\r\\n\\r\\nManning, C. D., & Sch\\u00FCtze, H. (1999). Foundations of statistical natural language processing. MIT press.\\r\\n\\r\\nPerea, M., & Pollatsek, A. (1998). The effects of neighborhood frequency in reading and lexical decision. Journal of Experimental Psychology, 24, 767-779.\\r\\n\\r\\nYarkoni, T., Balota, D., & Yap, M. (2008). Moving beyond Coltheart\\u2019s N: A new measure of orthographic similarity. Psychonomic Bulletin & Review, 15(5), 971-979.\\r\\n\");\n\t\t\n\t\tLabel label_4 = new Label(composite, SWT.NONE);\n\t\tlabel_4.setBounds(0, 771, 753, 21);\n\t\tlabel_4.setText(\"References\");\n\t\tlabel_4.setForeground(SWTResourceManager.getColor(SWT.COLOR_RED));\n\t\tlabel_4.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tscrolledComposite.setContent(composite);\n\t\tscrolledComposite.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT));\n\n\t}",
"protected abstract boolean isMultiLine();",
"@Override\n\t\t\tpublic void handleMessage(final Message msg){\n\t\t\t\t\t\t if(msg.what<listno){ \n\t\t\t loadData(); \n\t\t\t \n\t\t\t adapter.notifyDataSetChanged(); //数据集变化后,通知adapter \n\t\t\t listView.setSelection(visibleLastIndex - visibleItemCount + 1); //设置选中项 \n\t\t\t loadmoretext.setText(\"Load More\");\n\t\t\t } else{\n\t\t\t \t if(listno>3){\n\t\t\t\t\t \t loadmoretext.setText(\"All Loaded\");\n\t\t\t\t\t \t }else{\n\t\t\t\t\t \t\t \n\t\t\t\t\t\t\t \t loadmoretext.setText(\"\");\n\t\t\t\t\t\t\t \n\t\t\t\t\t \t }\n\t\t\t }\n\t\t\t \n\t\t\t loadMorepb.setVisibility(View.INVISIBLE);\n\t\t\t\t\t\n\t\t \t }",
"public void onLearnMoreClickedListener(View view) {\n Toast.makeText(this, \"Go to service page on the website . . . \", Toast.LENGTH_SHORT).show();\n }",
"private void setupMoreActionButton() {\n moreButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n InterfaceAction.startMoreActionButtonAnimation(moreButton);\n\n boolean isCurrentUserThePostCreator = Helper.isPrismUserCurrentUser(prismPost.getPrismUser());\n AlertDialog morePrismPostAlertDialog = InterfaceAction.createMorePrismPostAlertDialog(context, prismPost, isCurrentUserThePostCreator);\n morePrismPostAlertDialog.show();\n }\n });\n }",
"public static String descriptrionForDisplay(String description){\n /*\n if(description == null || description.equals(CommonConstant.EMPTY_STRING)){\n return null;\n } \n description = description.replaceAll(Serializable.toStringRegex(DESC_OPEN), CommonConstant.EMPTY_STRING);\n description = description.replaceAll(Serializable.toStringRegex(DESC_CLOSE), CommonConstant.EMPTY_STRING);\n description = description.replaceAll(Serializable.toStringRegex(DESC_FIELD_SEPARATOR), CommonConstant.LINE_SEPARATOR); \n */\n return description;\n }",
"@Override\r\n\tpublic int getCount() {\n\t\treturn listmore.size();\r\n\t}",
"private void hideDescription() {\r\n\t\tdescriptionText.hide();\r\n\t\tdescriptionInputMatrix.hide();\r\n\t\tdescriptionOutputMatrix.hide();\r\n\t\tdescriptionArrow.hide();\r\n\t}",
"public void updateContent(final Link link) {\n AvatarUtils.createAvatar(Avatar.create(link.getAuthor().getAvatar(), \"\"), this.avatar, this.avatarSize, (AppConfig) this.appConfigProvider.get(), this.requestManager);\n String description2 = link.getDescription();\n if (TextUtils.isEmpty(description2)) {\n this.description.setVisibility(8);\n } else {\n this.description.setVisibility(0);\n this.description.setText(description2);\n }\n String title2 = link.getTitle();\n this.title.setText(title2);\n this.titleBarText.setText(title2);\n setAuthorSpannable(link.getAuthor().getFirstName());\n this.updated.setText(this.timeFormatter.getUpdated(link.getUpdatedAt()));\n LinearLayout createLayoutFromBlocks = ViewHolderGenerator.createLayoutFromBlocks(this.articleHolder, link.getBlocks(), this);\n LinearLayout linearLayout = this.linkContainer;\n linearLayout.addView(BlockUtils.getBlockView(linearLayout, createLayoutFromBlocks, this));\n this.titleSize = this.title.getMeasuredHeight();\n this.scrollView.setListener(new Listener() {\n public void onBottomReached() {\n }\n\n public void onScrollChanged(int i2) {\n IntercomArticleActivity intercomArticleActivity = IntercomArticleActivity.this;\n if (intercomArticleActivity.titleBarEnabled) {\n int i3 = i2 - intercomArticleActivity.titleSize;\n intercomArticleActivity.titleBar.setAlpha(((float) i3) / 100.0f);\n IntercomArticleActivity intercomArticleActivity2 = IntercomArticleActivity.this;\n intercomArticleActivity2.titleBarText.setAlpha(((float) (i3 - intercomArticleActivity2.titleBar.getHeight())) / 100.0f);\n }\n }\n });\n this.scrollView.setAlpha(0.0f);\n this.scrollView.animate().alpha(1.0f).setDuration(300).start();\n if (!ReactionReply.isNull(link.getReactionReply())) {\n ReactionReply reactionReply = link.getReactionReply();\n int dimensionPixelSize = getResources().getDimensionPixelSize(R.dimen.intercom_link_reaction_height);\n ContentAwareScrollView contentAwareScrollView = this.scrollView;\n contentAwareScrollView.setPadding(contentAwareScrollView.getPaddingLeft(), this.scrollView.getPaddingTop(), this.scrollView.getPaddingRight(), dimensionPixelSize);\n this.reactionComposer.preloadReactionImages(reactionReply, this.requestManager);\n this.reactionComposer.setUpReactions(reactionReply, false, new ReactionListener() {\n public void onReactionSelected(Reaction reaction) {\n Injector.get().getApi().reactToLink(link.getId(), reaction.getIndex(), false);\n IntercomArticleActivity intercomArticleActivity = IntercomArticleActivity.this;\n intercomArticleActivity.metricTracker.sentReaction(intercomArticleActivity.conversationId, intercomArticleActivity.partId, reaction.getIndex(), ReactionLocation.LINK);\n ((TextView) IntercomArticleActivity.this.findViewById(R.id.reaction_text)).setText(R.string.intercom_article_response);\n }\n }, this.requestManager);\n this.composerLayout.setVisibility(0);\n View view = this.composerLayout;\n view.setY(view.getY() + ((float) dimensionPixelSize));\n this.composerLayout.animate().setInterpolator(new OvershootInterpolator(1.0f)).translationY(0.0f).setDuration(300).setListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animator) {\n IntercomArticleActivity.this.linkView.setClipChildren(false);\n }\n }).start();\n if (reactionReply.getReactionIndex() != null) {\n ((TextView) findViewById(R.id.reaction_text)).setText(R.string.intercom_article_response);\n }\n }\n this.scrollView.getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n public void onGlobalLayout() {\n ViewUtils.removeGlobalLayoutListener(IntercomArticleActivity.this.scrollView, this);\n if (((float) IntercomArticleActivity.this.scrollView.getChildAt(0).getMeasuredHeight()) > ((float) IntercomArticleActivity.this.linkView.getMeasuredHeight()) * 1.5f) {\n IntercomArticleActivity.this.titleBarEnabled = true;\n }\n }\n });\n }",
"boolean contributesContent() {\n return includedInLastStep() && end >= start;\n }"
] | [
"0.7181128",
"0.6627325",
"0.65692335",
"0.6442371",
"0.6421225",
"0.6394025",
"0.6369641",
"0.635948",
"0.6340572",
"0.63317716",
"0.6286187",
"0.62358093",
"0.622794",
"0.62162995",
"0.6192278",
"0.6175012",
"0.6164669",
"0.6160705",
"0.6128938",
"0.6122735",
"0.6082603",
"0.60578996",
"0.6036141",
"0.60187155",
"0.60166454",
"0.5916954",
"0.591299",
"0.58822435",
"0.58396596",
"0.58140075",
"0.57802",
"0.5774216",
"0.57453626",
"0.57405573",
"0.5663135",
"0.56538934",
"0.5599131",
"0.5582668",
"0.5563556",
"0.55238295",
"0.55235416",
"0.5519413",
"0.5499834",
"0.54998225",
"0.548572",
"0.5465067",
"0.5422945",
"0.53954935",
"0.5378917",
"0.5328322",
"0.52858347",
"0.52448285",
"0.522343",
"0.5201359",
"0.51905376",
"0.5184569",
"0.51827914",
"0.5115158",
"0.5067204",
"0.50304765",
"0.49146837",
"0.48817897",
"0.48670503",
"0.484022",
"0.48388177",
"0.48167264",
"0.48144138",
"0.4779408",
"0.476697",
"0.47605148",
"0.4752064",
"0.47446948",
"0.47224906",
"0.46987432",
"0.4676356",
"0.46633878",
"0.46597433",
"0.46546873",
"0.4647692",
"0.46362507",
"0.46310794",
"0.46109518",
"0.46091866",
"0.45959103",
"0.4583568",
"0.4574539",
"0.45666704",
"0.45649797",
"0.45562744",
"0.45562348",
"0.4551964",
"0.45434776",
"0.45355922",
"0.45311782",
"0.45299542",
"0.45296833",
"0.4525639",
"0.45235667",
"0.4520675",
"0.4516274"
] | 0.48898703 | 61 |
Not all activities have all the sections. Reset before building details. | private void resetSections() {
description.setVisibility(View.GONE);
location.setVisibility(View.GONE);
highlights.setVisibility(View.GONE);
inclusions.setVisibility(View.GONE);
exclusions.setVisibility(View.GONE);
knowBeforeYouBook.setVisibility(View.GONE);
cancellation.setVisibility(View.GONE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void resetSections(boolean alwaysAllowEmptySections) {\n removeAllSections();\n\n SuggestionsSource suggestionsSource = mUiDelegate.getSuggestionsSource();\n int[] categories = suggestionsSource.getCategories();\n for (int category : categories) {\n int categoryStatus = suggestionsSource.getCategoryStatus(category);\n if (SnippetsBridge.isCategoryEnabled(categoryStatus)) {\n resetSection(category, categoryStatus, alwaysAllowEmptySections,\n shouldReportPrefetchedSuggestionsMetrics(category));\n } else {\n // If articles category is currently disabled, we may still need to show an\n // expandable header for the section.\n maybeAddSectionForHeader(category);\n }\n }\n\n recordDisplayedSuggestions(categories);\n }",
"public void resetBuildings(){\n\t\tfor(Structure building : this.buildings){\n\t\t\tbuilding.reset();\n\t\t}\n\t}",
"public void buildSections(ActivityDetailsResponse activityDetailsResponse) {\n\t\tint maxLines = getResources().getInteger(R.integer.lx_detail_content_description_max_lines);\n\n\t\tresetSections();\n\t\tif (Strings.isNotEmpty(activityDetailsResponse.description)) {\n\t\t\tString descriptionContent = StrUtils.stripHTMLTags(activityDetailsResponse.description);\n\t\t\tdescription.bindData(getResources().getString(R.string.description_activity_details), descriptionContent,\n\t\t\t\tmaxLines);\n\t\t\tdescription.setVisibility(View.VISIBLE);\n\t\t}\n\t\tif (Strings.isNotEmpty(activityDetailsResponse.location)) {\n\t\t\tString locationContent = StrUtils.stripHTMLTags(activityDetailsResponse.location);\n\t\t\tlocation.bindData(getResources().getString(R.string.location_activity_details), locationContent, 0);\n\t\t\tlocation.setVisibility(View.VISIBLE);\n\t\t}\n\t\tif (CollectionUtils.isNotEmpty(activityDetailsResponse.highlights)) {\n\t\t\tCharSequence highlightsContent = StrUtils.generateBulletedList(activityDetailsResponse.highlights);\n\t\t\thighlights\n\t\t\t\t.bindData(getResources().getString(R.string.highlights_activity_details), highlightsContent, maxLines);\n\t\t\thighlights.setVisibility(View.VISIBLE);\n\t\t}\n\t\tif (CollectionUtils.isNotEmpty(activityDetailsResponse.inclusions)) {\n\t\t\tCharSequence inclusionsContent = StrUtils.generateBulletedList(activityDetailsResponse.inclusions);\n\t\t\tinclusions.bindData(getResources().getString(R.string.inclusions_activity_details), inclusionsContent, 0);\n\t\t\tinclusions.setVisibility(View.VISIBLE);\n\t\t}\n\t\tif (CollectionUtils.isNotEmpty(activityDetailsResponse.exclusions)) {\n\t\t\tCharSequence exclusionsContent = StrUtils.generateBulletedList(activityDetailsResponse.exclusions);\n\t\t\texclusions.bindData(getResources().getString(R.string.exclusions_activity_details), exclusionsContent, 0);\n\t\t\texclusions.setVisibility(View.VISIBLE);\n\t\t}\n\t\tif (CollectionUtils.isNotEmpty(activityDetailsResponse.knowBeforeYouBook)) {\n\t\t\tCharSequence knowBeforeYouBookContent = StrUtils.generateBulletedList(\n\t\t\t\tactivityDetailsResponse.knowBeforeYouBook);\n\t\t\tknowBeforeYouBook.bindData(getResources().getString(R.string.know_before_you_book_activity_details),\n\t\t\t\tknowBeforeYouBookContent, 0);\n\t\t\tknowBeforeYouBook.setVisibility(View.VISIBLE);\n\t\t}\n\t\tString cancellationPolicyText = LXDataUtils\n\t\t\t.getCancelationPolicyDisplayText(getContext(), activityDetailsResponse.freeCancellationMinHours);\n\t\tcancellation.bindData(getResources().getString(R.string.cancellation_policy),\n\t\t\tcancellationPolicyText, 0);\n\t\tcancellation.setVisibility(View.VISIBLE);\n\n\t\tint datesScrollerDrawable =\n\t\t\tCollectionUtils.isNotEmpty(activityDetailsResponse.highlights) ? R.drawable.lx_dates_container_background\n\t\t\t\t: R.drawable.lx_dates_container_background_no_top_border;\n\t\tofferDatesScrollView.setBackground(getResources().getDrawable(datesScrollerDrawable));\n\t}",
"@Transactional\n\t@Override\n\tpublic void updateEmptySectionGroups() {\n\t\tList<SectionGroup> emptySectionGroups = sectionGroupService.findEmpty();\n\n\t\t// Generate termCode+subjectCode pairs to query DW for to get relevant sections\n\t\tList<SubjectTermCode> subjectTermCodes = jdbcTemplate.query(\"SELECT DISTINCT sg.TermCode, c.SubjectCode\" +\n\t\t\t\t\t\t\" FROM SectionGroups sg\" +\n\t\t\t\t\t\t\" LEFT JOIN Courses c ON sg.CourseId = c.Id\" +\n\t\t\t\t\t\t\" LEFT JOIN Sections st ON sg.Id = st.sectionGroupId\" +\n\t\t\t\t\t\t\" WHERE st.Id IS NULL;\",\n\t\t\t\t(rs, rowNum) -> new SubjectTermCode(\n\t\t\t\t\t\trs.getString(\"SubjectCode\"),\n\t\t\t\t\t\trs.getString(\"TermCode\")\n\t\t\t\t)\n\t\t);\n\n\t\t// Query DW for potentially matching sections\n\t\tList<DwSection> allDwSections = new ArrayList<>();\n\n\t\tfor (SubjectTermCode subjectTermCode : subjectTermCodes) {\n\t\t\tList<DwSection> slotDwSections = dwRepository.getSectionsBySubjectCodeAndTermCode(subjectTermCode.subjectCode, subjectTermCode.termCode);\n\t\t\tallDwSections.addAll(slotDwSections);\n\t\t}\n\n\t\t// Identify which dwSections match an IPA emptySectionGroup, and persist section/activities\n\t\tfor (DwSection dwSection : allDwSections) {\n\t\t\t// Convert dw sequenceNumber to sequencePattern\n\t\t\tCharacter dwSequenceNumberStart = dwSection.getSequenceNumber().charAt(0);\n\t\t\tString sequencePattern = null;\n\n\t\t\tif (Character.isLetter(dwSequenceNumberStart)) {\n\t\t\t\tsequencePattern = String.valueOf(dwSequenceNumberStart);\n\t\t\t} else {\n\t\t\t\tsequencePattern = dwSection.getSequenceNumber();\n\t\t\t}\n\n\t\t\t// Generate matchingKey for dwSection, example: '201610-ART-001-A'\n\t\t\tString dwMatchingKey = dwSection.getTermCode() + \"-\" + dwSection.getSubjectCode() + \"-\" + dwSection.getCourseNumber() + \"-\" + sequencePattern;\n\n\t\t\t// Find matching ipa sectionGroup\n\t\t\tfor (SectionGroup sectionGroup : emptySectionGroups) {\n\t\t\t\tString ipaMatchingKey = sectionGroup.getTermCode() + \"-\" + sectionGroup.getCourse().getSubjectCode() + \"-\" + sectionGroup.getCourse().getCourseNumber() + \"-\" + sectionGroup.getCourse().getSequencePattern();\n\n\t\t\t\tif (ipaMatchingKey.equals(dwMatchingKey)) {\n\t\t\t\t\t// Create section\n\t\t\t\t\tSection section = new Section();\n\t\t\t\t\tsection.setSectionGroup(sectionGroup);\n\n\t\t\t\t\tsection.setCrn(dwSection.getCrn());\n\t\t\t\t\tsection.setSequenceNumber(dwSection.getSequenceNumber());\n\t\t\t\t\tsection.setSeats(dwSection.getMaximumEnrollment());\n\n\t\t\t\t\t// Using sectionRepository as this sync needs to bypass the 'term lock' validation\n\t\t\t\t\tsection = sectionService.save(section);\n\n\t\t\t\t\t// Create activities\n\t\t\t\t\tfor (DwActivity dwActivity : dwSection.getActivities()) {\n\t\t\t\t\t\tActivity activity = activityService.createFromDwActivity(dwActivity);\n\n\t\t\t\t\t\tTerm term = termService.getOneByTermCode(sectionGroup.getTermCode());\n\n\t\t\t\t\t\tactivity.setEndDate(term.getEndDate());\n\t\t\t\t\t\tactivity.setBeginDate(term.getStartDate());\n\t\t\t\t\t\tactivity.setSection(section);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tactivityService.saveActivity(activity);\n\t\t\t\t\t\t} catch (javax.validation.ConstraintViolationException e) {\n\t\t\t\t\t\t\tlog.error(\"Could not save activity based on DW activity:\" + dwActivity);\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// Identify activities that exist on all sections, and move them to the sectionGroup sharedActivities\n\t\tfor (SectionGroup sectionGroup : emptySectionGroups) {\n\t\t\tsectionGroupService.identifyAndCondenseSharedActivities(sectionGroup);\n\t\t}\n\t}",
"protected void unloadSections() {\n\t\tsuper.unloadSections();\n\t}",
"protected void unloadSections() \n\t{\n\t\tsuper.unloadSections();\n\t}",
"private void initSections() {\n sections = new HashMap<>();\n addSection(JsonFailuresInput.class, new JsonFailuresInput(inputProgram, jsonObject));\n addSection(JsonTransformationCollectionInput.class,\n new JsonTransformationCollectionInput(inputProgram, jsonObject));\n addSection(JsonHeaderInput.class, new JsonHeaderInput(inputProgram, jsonObject, verifyProject));\n }",
"@Override\n public Object[] getSections() {\n return null;\n }",
"protected boolean loadSections() {\n\t\tpageTable = new TranslationEntry[numPages];\n\t\t//set all translation entry to invalid\n\t\tfor (int i = 0; i < pageTable.length; i++) {\n\t\t\t//pageTable[i] = new TranslationEntry(i, UserKernel.getNextPage(), false, false, false, false);\n\t\t\tpageTable[i] = new TranslationEntry(i, 0, false, false, false, false);\n\n\t\t}\n\n\t\treturn true;\n\t}",
"public void noPropertyies() {\n\t\tproperties.clear();\r\n\t\tfor(int i = 0; i<groups.length; i++){\r\n\t\t\tgroups[i].clear();\r\n\t\t}\r\n\t}",
"private static void resetDescontoMenosCompras(){\n for(Apps a : apps){\n if(a.isDescontoMenosCompras()){\n a.setDescontoMenosCompras(false);\n }\n }\n }",
"private SectionSets ()\r\n {\r\n }",
"private void reset(Section section) {\n statsRepository.saveAndFlush(BookingStatistics.builder()\n .section(new Availability(section))\n .build());\n\n // Send current day booking details to Manager.\n\n\n // Load excel for future blocking of seats\n\n\n // Reset Availability Flags\n final List<Slot> updatedSlots = section.getSlots()\n .stream()\n .filter(x -> ChronoUnit.DAYS.between(LocalDate.now(), x.getBlockTill()) == MIN_VALID_VALUE)\n .peek(slot -> {\n slot.setAvailable(true);\n slot.setBooked(false);\n slot.setColor(\"primary\");\n }).collect(Collectors.toList());\n slotRepository.saveAll(updatedSlots);\n }",
"private void clearAllState() {\n // Clear all layout records and views\n mLayoutRecords.clear();\n removeAllViews();\n\n // Reset to the top of the grid\n resetStateForGridTop();\n\n // Clear recycler because there could be different view types now\n mRecycler.clear();\n }",
"private static void resetGroupLineArrays() {\n // Reset the arrays to make sure that we have uptodate information in them\n itemsArray = null;\n itemsArrayForAlterations = null;\n itemsArrayForOpenDeposit = null;\n }",
"public void dispose(){\n\t\tcurrentSections.clear();\n\t}",
"public void clear(){\r\n \t\tcollapsingList.clear();\r\n \t}",
"public void clear(){\r\n\t\tsummary \t= null;\r\n\t\tstart\t\t= 0;\r\n\t\tend\t\t\t= 0;\r\n\t\tlocation\t= null;\r\n\t\talarm\t\t= 0;\r\n\t\tnote\t\t= null;\r\n\t\tallDay\t\t= false;\r\n\t\tattendees\t= null;\r\n\t\tfree_busy\t= FB_FREE;\r\n\t\tevent_class\t= CLASS_PRIVATE;\r\n\t\trepeat_type\t= \"\";\r\n\t}",
"@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n MainActivity act = ((MainActivity) activity);\n if (getArguments()!=null) {\n act.onSectionAttached(getArguments().getInt(ARG_SECTION_NUMBER));\n act.setFilterValue(null);\n }\n this.mainActivity=act;\n }",
"protected void unloadSections() {\n\t\tcoff.close();//make sure to close the file\n\t\tfor(int i=0; i < numPages; i++){\n\t\t\tUserKernel.addPhysicalPage(pageTable[i].ppn);\n\t\t\tpageTable[i] = null;\n\t\t}\n\t\tpageTable = null;\n\t}",
"private void resetActiveFields() {\n for ( int i=0 ; i < _dictionaryActiveEntryArray.length ; i++ ) {\n _dictionaryActiveEntryArray[ i ].reset();\n }\n }",
"@Override\r\n public void clear() {\r\n this.roomMap.clear();\r\n this.buildingMap.clear();\r\n this.roomResponsibleOrgMap.clear();\r\n }",
"public void prepareForSnapshot() {\n if (readMap != null)\n return;\n\n readMap = new TreeMap<>();\n\n for (Map.Entry<GroupPartitionId, PagesAllocationRange> entry : writeMap.entrySet()) {\n if (!skippedParts.contains(entry.getKey()))\n readMap.put(entry.getKey(), entry.getValue());\n }\n\n skippedParts.clear();\n writeMap.clear();\n }",
"private void resetArraysAndHeader()\r\n\t{\r\n\t\tmainHeader = \"\";\r\n\t\tenergyVals = \"\";\r\n\t\ttoBeOutputBranches.clear();\r\n\t\tassociatedR.clear();\r\n\t\tassociatedP.clear();\r\n\t\tassociatedQ.clear();\r\n\t\ttriangularP.clear();\r\n\t\ttriangularQ.clear();\r\n\t\ttriangularR.clear();\r\n\t\tinputBranchWithJ.clear();\r\n\t\tupperEnergyValuesWithJ.clear();\r\n\r\n\t\tif (energiesForCurrentKOppParity != null)\r\n\t\t\tenergiesForCurrentKOppParity.clear();\r\n\t}",
"private void clearEverything(){\n partTime.setSelected(false);\n fullTime.setSelected(false);\n management.setSelected(false);\n addIT.setSelected(false);\n addCS.setSelected(false);\n addECE.setSelected(false);\n dateAddText.clear();\n nameAddText.clear();\n hourlyAddText.clear();\n annualAddText.clear();\n managerRadio.setSelected(false);\n dHeadRadio.setSelected(false);\n directorRadio.setSelected(false);\n\n removeCS.setSelected(false);\n removeECE.setSelected(false);\n removeIT.setSelected(false);\n dateRemoveText.clear();\n nameRemoveText.clear();\n\n setCS.setSelected(false);\n setECE.setSelected(false);\n setIT.setSelected(false);\n dateSetText.clear();\n nameSetText.clear();\n hoursSetText.clear();\n\n }",
"private void clear_to_state () {\n\n\t\t// Structures not valid if we don't have a forecast\n\n\t\tif (modstate < MODSTATE_FORECAST) {\n\t\t\tgenericForecast = null;\n\t\t\tseqSpecForecast = null;\n\t\t\tbayesianForecast = null;\n\t\t}\n\n\t\t// Structures not valid if we don't have parameers\n\n\t\tif (modstate < MODSTATE_PARAMETERS) {\n\t\t\tcur_model = null;\n\t\t\tbayesianModel = null;\n\t\t}\n\n\t\t// Structures not valid if we don't have a catalog\n\n\t\tif (modstate < MODSTATE_CATALOG) {\n\t\t\tfcmain = null;\n\t\t\taafs_fcparams = null;\n\t\t\tfetch_fcparams = null;\n\t\t\tcustom_search_region = null;\n\t\t\tanalyst_inj_text = null;\n\t\t\thas_fetched_catalog = false;\n\n\t\t\tcur_mainshock = null;\n\t\t\tcur_aftershocks = null;\n\t\t\tgenericModel = null;\n\t\t\taftershockMND = null;\n\t\t\tmnd_mmaxc = 0.0;\n\t\t}\n\n\t\treturn;\n\t}",
"void perform(SectionState state) {\n state.addChildMode(getModeUsage(), null);\n state.addAttributeValidationModeUsage(getModeUsage());\n }",
"void initializeMandatorySectionFields();",
"public void clear() {\n clearIntentHistory();\n mInitialNavigationType = NAVIGATION_TYPE_NONE;\n mIsOnEffectiveRedirectChain = false;\n mLastCommittedEntryIndexBeforeStartingNavigation = 0;\n mShouldNotOverrideUrlLoadingUntilNewUrlLoading = false;\n }",
"@Override\n void collectMixedSectionItems(MixedSectionCollection mixedItems) {\n assert false;\n }",
"protected boolean loadSections() \n\t{\n\t\tpageTable = new TranslationEntry[numPages];\n\t\tfor(int i=0; i < numPages; ++i)\n\t\t{\n\t\t\tpageTable[i] = new TranslationEntry(i, -1, false, false, false, false);\n\t\t}\n\t\treturn true;\n\t}",
"public TeleversementDeLotSectionsHitTest() {\r\n\t\tsuper();\r\n\t}",
"public void Unassigned_Cases()\n\t{\n\t\t//assigning a ContactTracer to a case\n\t\tif(coronaCase.size() > 0)\n\t\t{\n\t\t\tSystem.out.println(\"\\nDisplaying unassigned cases: \");\n\t\t\tfor(int i = 0; i < coronaCase.size(); i++)\n\t\t\t\tif(coronaCase.get(i).isAssignedCase() == false)\n\t\t\t\t\tSystem.out.println(coronaCase.get(i).toString());\n\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"No unassigned cases to display.\");\n\t\t\n\t}",
"private void finishBuilding() {\n buildTarget = null;\n buildStep = 0;\n buildInstructions = null;\n buildLocation = null;\n buildHeight = null;\n\n knowledge.myState = RobotState.IDLE;\n }",
"@Override\r\n public final @Nonnull List<Section> getSections() {\r\n return ImmutableList.copyOf(sections);\r\n }",
"void fillAssignmentWithActivities(Assignment assignment);",
"public void reset() {\n initEntries();\n }",
"@Override\n public void clear() {\n isLoaded = false;\n }",
"public void resetData() {\r\n this.setName(\"\");\r\n this.setType(\"\");\r\n this.setContact(\"\");\r\n this.setAffiliatedResearchers(\"\");\r\n this.setCountry(\"\");\r\n this.setResearchKeywords(\"\");\r\n this.setResearchDescription(\"\");\r\n this.setHomePage(\"\");\r\n }",
"private synchronized void shrink() {\n if (isMutable()) {\n throw new IllegalStateException(\"Can't shrink a mutable test result!\");\n }\n\n // Should ensure we have a resultsFile.\n sections = null;\n\n // NOTE: if either of these are discarded, it may be a good idea to\n // optimize reload() to not read the section/stream data since\n // a small property lookup could incur a huge overhead\n //props = null; // works, may or may-not improve memory usage\n //desc = null; // doesn't work in current implementation\n }",
"public void clearAreaReset() {\n for(int x = 0; x < buildSize; x++) {\n for(int y = 4; y < 7; y++) {\n for(int z = 0; z < buildSize; z++) {\n myIal.removeBlock(x, y, z);\n }\n }\n }\n\n myIal.locx = 0; myIal.locy = 0; myIal.locz = 0;\n my2Ial.locx = 0; my2Ial.locy = 0; my2Ial.locz = 0;\n }",
"public int removeAll (Section[] sectionArr) throws DataAccessException;",
"private static void resetDescontoTotal(){\n for(Apps a : apps){\n if(a.isDescontoTotal()){\n a.setDescontoTotal(false);\n }\n }\n }",
"private void clearViews()\n {\n prepareNumbers();\n }",
"public void clickSection(View v) {\n int selected = Integer.parseInt(v.getTag().toString());\n Intent nav = null;\n\n if (selected == 1) {\n nav = new Intent(MapActivity.this, LogbookActivity.class);\n } else if (selected == 2) {\n nav = new Intent(MapActivity.this, GameActivity.class);\n } else if (selected == 3) {\n nav = new Intent(MapActivity.this, LibraryActivity.class);\n } else if (selected == 4) {\n nav = new Intent(MapActivity.this, ProfileActivity.class);\n } else if (selected == 5) {\n nav = new Intent(MapActivity.this, WallActivity.class);\n } else if (selected == 6) {\n nav = new Intent(MapActivity.this, YammerActivity.class);\n } else if (selected == 7) {\n nav = new Intent(MapActivity.this, InfoActivity.class);\n }/* else if (selected == 8) {\n User.set(\"checklist_type\", null, this);\n nav = new Intent(MapActivity.this, ChecklistActivity.class);\n }*/ else if (selected == 9) {\n nav = new Intent(MapActivity.this, FeedbackActivity.class);\n } else if (selected == 10) {\n nav = new Intent(MapActivity.this, EvaluationActivity.class);\n nav.putExtra(\"type\", \"post\");\n } else if (selected == 11) {\n nav = new Intent(MapActivity.this, RankingActivity.class);\n } else if (selected == 12) {\n showFemsa();\n } else if (selected == 13) {\n CookieManager.getInstance().removeAllCookie();\n User.clear(this);\n setResult(Activity.RESULT_OK);\n finish();\n overridePendingTransition(R.anim.static_motion, R.anim.fade_out);\n }\n\n if (nav == null) return;\n\n nav.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(nav);\n\n }",
"@Override\n public void onResume() {\n super.onResume();\n mSectionsPagerAdapter.newHazards = HazardManager.getNewHazardSet();\n }",
"public void clear() {\n classifiedSamples.clear();\n classificationNameMap.clear();\n classifications.clear();\n sampleClassificationMap.clear();\n nextIndex = 0;\n }",
"private void freshTheData() {\n mData.clear();\n mData.addAll(mDataOrg);\n }",
"private void clearFields() {\r\n keywords = \"\";\r\n searchBy = \"\";\r\n }",
"void handleStart()\n {\n // Release our interest in the sections previously matched\n // Note: References to the sections may live on beyond the life\n // of the filter that produced them.\n synchronized (sectionMonitor)\n {\n tableSections = null;\n haveReceivedSections = false;\n sentVersionChangeEvent = false;\n }\n }",
"private static void resetDescontoMensal(){\n for(Apps a : apps){\n if(a.isDescontoMensal()){\n a.setDescontoMensal(false);\n }\n }\n }",
"@Override\n public void clear() {\n initialized = false;\n }",
"@Override\n\tpublic int getGroupCount() {\n\t\treturn sections.size();\n\t}",
"public void reset() {\n unvisitedPOIs = new LinkedList<>(instance.getPlaceOfInterests());\n unvisitedPOIs.remove(instance.getStartPOI());\n unvisitedPOIs.remove(instance.getEndPOI());\n\n // initially, all the unvisited POIs should be feasible.\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n feasiblePOIs.remove(instance.getStartPOI());\n feasiblePOIs.remove(instance.getEndPOI());\n\n tour.reset(instance);\n currDay = 0;\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }",
"private void clearTasks(){\n ArrayList<Item> iteratorList = new ArrayList<Item>(items);\n Iterator<Item> it = iteratorList.iterator();\n while(it.hasNext()){\n Item i = it.next();\n if (!i.isCategory()){\n Task t = (Task) i;\n if(t.finished){\n \tDirectIO.RemoveItem(t);\n adapter.remove(i);\n }\n }\n }\n }",
"public void acceptLoadedSections() {\n\t\t{\n\t\t\tboolean modified = false;\n\t\t\tRenderableSection renderableSection;\n\t\t\twhile ((renderableSection = renderableSectionsLoadedQueue.poll()) != null) {\n\t\t\t\trenderableSections.put(renderableSection.getSectionId(), renderableSection);\n\t\t\t\tmodified = true;\n\t\t\t}\n\t\t\tif (modified) {\n\t\t\t\tmarkRenderModelsModified();\n\t\t\t}\n\t\t}\n\t\t{\n\t\t\tCollidingSection collidingSection;\n\t\t\twhile ((collidingSection = collidingSectionsLoadedQueue.poll()) != null) {\n\t\t\t\tcollidingSections.put(collidingSection.getSectionId(), collidingSection);\n\t\t\t}\n\t\t}\n\t}",
"private void resetDataForAddAfterSchoolAlly() \r\n\t{\n\t\tStaticVariables.showAllyName1InAfterSchool = false;\r\n\t\tStaticVariables.showAllyName2InAfterSchool = false;\r\n\r\n\t\t/*\tStaticVariables.allySetFor1 = null;\r\n\t\tStaticVariables.allySetFor2 = null;*/\r\n\r\n\t}",
"@Override\n\t@Transactional\n\tpublic void updateSectionsByCourseFromDW(Course course) {\n\t\tString ipaSubjectCode = course.getSubjectCode();\n\t\tString ipaCourseNumber = course.getCourseNumber();\n\n\t\tList<SectionGroup> sectionGroups = this.sectionGroupService.findByCourse(course);\n\n\t\tfor (SectionGroup sectionGroup : sectionGroups) {\n\t\t\tString ipaTermCode = sectionGroup.getTermCode();\n\n\t\t\tfor (Section section : sectionGroup.getSections()) {\n\t\t\t\tString ipaSequenceNumber = section.getSequenceNumber();\n\n\t\t\t\tString uniqueKey = ipaSubjectCode + \"-\" + ipaCourseNumber + \"-\" + ipaSequenceNumber;\n\n\t\t\t\tList<DwSection> _allDwSections = this.dwRepository.getSectionsByTermCodeAndUniqueKeys(ipaTermCode, Arrays.asList(uniqueKey));\n\n\t\t\t\tDwSection dwSection = _allDwSections.stream().filter(s ->\n\t\t\t\t\t\tipaTermCode.equals(s.getTermCode())\n\t\t\t\t\t\t\t\t&& ipaSequenceNumber.equals(s.getSequenceNumber())\n\t\t\t\t\t\t\t\t&& ipaSubjectCode.equals(s.getSubjectCode())\n\t\t\t\t\t\t\t\t&& ipaCourseNumber.equals(s.getCourseNumber())\n\t\t\t\t\t\t\t\t&& (s.getCrn() != null)\n\t\t\t\t).findFirst().orElse(null);\n\n\t\t\t\tif(dwSection != null) {\n\t\t\t\t\t// Set CRN if necessary\n\t\t\t\t\tif (dwSection.getCrn().equals(section.getCrn()) == false) {\n\t\t\t\t\t\tsection.setCrn(dwSection.getCrn());\n\t\t\t\t\t\tsection = this.sectionService.save(section);\n\t\t\t\t\t}\n\n\t\t\t\t\tactivityService.syncActivityLocations(dwSection, section.getActivities());\n\t\t\t\t\tactivityService.syncActivityLocations(dwSection, sectionGroup.getActivities());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic Object visitSection(Section section) {\n\t\treturn null;\n\t}",
"private void clear() {\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = 0;\n\n generations = 0;\n }",
"public void clearMissing()\n\t\t{\n\t\t\tm_missingInformation.clear();\n\t\t}",
"public void clearAll(){\n schoolID_comp.setText(\"\");\n fullname_comp.setText(\"\");\n contactNum_comp.setText(\"\");\n address_comp.setText(\"\");\n \n //set combobox on the first item\n grade_comp.setSelectedIndex(1);\n \n //uncheck checbox form form138 and nso/birthcertificate\n form138_comp.setSelected(false);\n nso_comp.setSelected(false);\n \n //clear image or icon in JLabel\n imageDisplayer.setIcon(null);\n imageDisplayer.revalidate();\n \n \n this.viewStudentinfo.displayData();\n \n \n }",
"public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }",
"private void clearArticleFields(){\n\t\ttxtArticleName.setText(EMPTYSTRING);\n\t\ttxtCW.setText(EMPTYSTRING);\n\t\t\n\t\t//cbCCC.select(2);\n\t\ttxtCCCValue.setText(EMPTYSTRING);\n\t\ttxtCCCValue.setEnabled(false);\n\t\t\n\t\t//cbDCC.select(2);\n\t\ttxtDCCValue.setText(EMPTYSTRING);\n\t\ttxtDCCValue.setEnabled(false);\n\t\t\n\t\t//cbIEC.select(1);\n\t\ttxtIEC_article.setText(EMPTYSTRING);\n\t\t\n\t\t//cbLoadingCharge.select(1);\n\t\ttxtLC_article.setText(EMPTYSTRING);\n\t\t\n\t\t//cbDDC.select(2);\n\t\ttxtDDC_chargeArticle.setText(EMPTYSTRING);\n\t\ttxtDDC_minPerLR.setText(EMPTYSTRING);\n\t\ttxtDDC_chargeArticle.setEnabled(false);\n\t\ttxtDDC_minPerLR.setEnabled(false);\n\t}",
"void resetComponents() {\n Utilitarios.fechaActual(jdcFechaInicio);\n Utilitarios.fechaActual(jdcFechaFin);\n if (oMedicoAtiendeReal != null) {\n oMedicoAtiendeReal = null;\n }\n if (oComprobanteDetalle != null) {\n oComprobanteDetalle = null;\n }\n oModeloRegistrarPagoMedicos.clear();\n personalizaVistaTabla();\n txfMedicoDeriva.setText(\"\");\n txfMedicoAtiende.setText(\"\");\n if(oMedico != null){\n oMedico = null;\n }\n txfMedico.setText(\"\");\n }",
"public Builder clearMission() {\n bitField0_ = (bitField0_ & ~0x00000002);\n mission_ = false;\n onChanged();\n return this;\n }",
"public Builder clearNewsindentifydetail() {\n newsindentifydetail_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n\n return this;\n }",
"public void activities(){\n if (exercise.isSelected()){\n newStudent.addActivity(\"exercise\");\n }\n if (sleeping.isSelected()){\n newStudent.addActivity(\"sleeping\");\n }\n if (sports.isSelected()){\n newStudent.addActivity(\"sports\");\n }\n if (music.isSelected()){\n newStudent.addActivity(\"music\");\n }\n if (fishing.isSelected()){\n newStudent.addActivity(\"fishing\");\n }\n if (familyTime.isSelected()){\n newStudent.addActivity(\"familyTime\");\n }\n if (watchingTV.isSelected()){\n newStudent.addActivity(\"watchingTV\");\n }\n if (reading.isSelected()){\n newStudent.addActivity(\"reading\");\n }\n }",
"public void collapse() {\n getSection().setExpanded(false);\n }",
"public void clear() {\n\t\tthis.count = (emptyItem ? 1 : 0);\n\t\tpages.clear();\n\t}",
"public void abortBuilding() {\n buildTarget = null;\n buildStep = 0;\n buildInstructions = null;\n buildLocation = null;\n buildHeight = null;\n\n knowledge.myState = RobotState.IDLE;\n }",
"protected void clear() {\n\n\t\tfinal HashSet<Transition> t = new HashSet<>(transitions);\n\t\tfor (final Transition o : t) {\n\t\t\tremoveTransition(o);\n\t\t}\n\t\ttransitions = new HashSet<>();\n\n\t\tfinal HashSet<State> s = new HashSet<>(states);\n\t\tfor (final State o : s) {\n\t\t\tremoveState(o);\n\t\t}\n\t\tstates = new HashSet<>();\n\n\t\tfinalStates = new HashSet<>();\n\n\t\tinitialState = null;\n\n\t\tcachedStates = null;\n\n\t\tcachedTransitions = null;\n\n\t\tcachedFinalStates = null;\n\n\t\ttransitionFromStateMap = new HashMap<>();\n\t\ttransitionToStateMap = new HashMap<>();\n\n\t\ttransitionArrayFromStateMap = new HashMap<>();\n\n\t\ttransitionArrayToStateMap = new HashMap<>();\n\n\t\twhile (myNotes.size() != 0) {\n\t\t\tfinal AutomatonPane ap = myNotes.get(0).getView();\n\t\t\tap.remove(myNotes.get(0));\n\t\t\tap.repaint();\n\t\t\tdeleteNote(myNotes.get(0));\n\t\t}\n\t}",
"private void clearBuild() {\n bitField0_ = (bitField0_ & ~0x00000004);\n build_ = 0L;\n }",
"private void clearInternVariables () {\n\n currentPostVersionList = null;\n postVersionsThatShouldBeInvestigated = null;\n\n allElementsInGUI.clear();\n\n blockPairs_groundTruth.clear();\n blockPairs_computedSimilarity.clear();\n\n positionOfCurrentLeftVersionInViewedPost = 0;\n\n mapPostHistoryIdToVersion.clear();\n groundTruth_postBlockLifeSpanVersionList.clear();\n }",
"@Override\n public void initialize() {\n sectionsPanel.removeAll();\n \n section1 = new ProgressReportSectionSettingPanel(this);\n section2 = new ProgressReportSectionSettingPanel(this);\n section3 = new ProgressReportSectionSettingPanel(this);\n section4 = new ProgressReportSectionSettingPanel(this);\n addSectionElement(0,section1);\n addSectionElement(1,section2);\n addSectionElement(2,section3);\n addSectionElement(3,section4);\n \n refresh();\n }",
"public void organizeInternalStructure( ) throws LoaderException\r\n {\r\n // Fist cast the object for easier use and validation\r\n IEmpty empty = null;\r\n try\r\n {\r\n empty = ( IEmpty )element;\r\n }\r\n catch( ClassCastException e )\r\n {\r\n throw new LoaderException( \"Class does not implement IEmpty.\", e );\r\n }\r\n \r\n if(((IActivity)element).getName( )==null)\r\n throw new LoaderException(\"The empty element must have a name defined\");\r\n }",
"public void initdata(){\n\n sectionList.clear();\n apnmntList.clear();\n\n ///get the list of date\n db.collection(\"appointmentsColl\").document(UserId)\n .collection(\"Date\")\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n\n for(QueryDocumentSnapshot queryDocumentSnapshot : task.getResult()){\n\n ///get the list of appointments inside the same date\n db.collection(\"appointmentsColl\").document(UserId)\n .collection(\"Date\").document(queryDocumentSnapshot .getId())\n .collection(\"appointmentsID\")\n .get()\n .addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n apnmntList = new ArrayList();\n for (DocumentSnapshot querysnapshot: task.getResult()){\n\n ///save appointment fields to class\n apnmtDetails details = new apnmtDetails(\n querysnapshot.getString(\"customer name\"),\n querysnapshot.getString(\"barberID\"),\n querysnapshot.getString(\"shop name\"),\n querysnapshot.getString(\"name\"),\n querysnapshot.getString(\"type\"),\n querysnapshot.getString(\"status\"),\n querysnapshot.getString(\"price\"),\n querysnapshot.getString(\"time slot\"),\n querysnapshot.getString(\"date\"),\n querysnapshot.getString(\"customerID\"),\n userType,\n querysnapshot.getId(),\n querysnapshot.getString(\"review\")\n );\n\n if(!details.getServicestatus().equalsIgnoreCase(\"Completed\")){\n ///adding appointmnets into an arraylist\n apnmntList.add(details);\n ///saving the value of the section title and the appointments arraylist inside one object\n String tempdate = queryDocumentSnapshot .getString(\"date\");\n\n DateTimeFormatter f = new DateTimeFormatterBuilder().parseCaseInsensitive()\n .append(DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\")).toFormatter(Locale.ENGLISH);\n\n LocalDate datetime = LocalDate.parse(tempdate, f);\n\n section = new Section(queryDocumentSnapshot .getString(\"date\"),datetime,apnmntList);\n }\n }\n\n ///check if date exist but there is no appointment\n if(section.getSectionItem() == null){\n\n section.setSectionName(null);\n\n }else{\n ////initializing a new array list with the section's objects\n sectionList.add(section);\n\n ///remove duplicates if there are any\n Set<Section> set = new HashSet<>(sectionList);\n sectionList.clear();\n sectionList.addAll(set);\n\n ///sort according to date\n Collections.sort(sectionList, new Comparator<Section>() {\n public int compare(Section o1, Section o2) {\n return o1.getSectionDate().compareTo(o2.getSectionDate());\n }\n });\n ///notify main recyclerview\n mainRecyclerAdapter.notifyDataSetChanged();\n }\n }\n });\n\n }\n }\n });\n }",
"public Builder clearRoute() {\n if (routeBuilder_ == null) {\n if (stepInfoCase_ == 7) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n onChanged();\n }\n } else {\n if (stepInfoCase_ == 7) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n }\n routeBuilder_.clear();\n }\n return this;\n }",
"@Override\n public void clear() {\n initialize();\n }",
"public void clearCollections() {\n sevenStates = new int[7][16];\n moveGeneratedFrom.clear();\n movesWithFreeTurn.clear();\n movesWhichPreventSteals.clear();\n opponentChoicesToSteal.clear();\n opponentBoardsBeforeSteal.clear();\n }",
"private void emptySearchFields() {\n view.setMinPrice(-1);\n view.setMaxPrice(-1);\n view.setMinSQM(-1);\n view.setMaxSQM(-1);\n view.setBedrooms(-1);\n view.setBathrooms(-1);\n view.setFloor(-1);\n view.setHeating(false); //Is supposed to be a checkbox so even unchecked it is false not empty\n view.setLocation(\"Athens\"); //Is supposed to get a string from a dropdown so it wil never be empty\n }",
"private void resetAll() {\n resetResources();\n resetStory();\n refresh();\n }",
"public void emptyList() {\n coursesTaken = new ArrayList<CourseTaken>();\r\n }",
"public void Case6(){\n System.out.println(\"Testing Case 6\");\n byDescription();\n clear();\n System.out.println(\"Case 6 Done\");\n }",
"@SuppressWarnings(\"unused\")\r\n private void beforeMarshal (Marshaller m)\r\n {\r\n // Convert sections -> ids\r\n if (sets != null) {\r\n descSets = new ArrayList<>();\r\n\r\n for (Collection<Section> set : sets) {\r\n SectionDescSet descSet = new SectionDescSet();\r\n\r\n for (Section section : set) {\r\n descSet.sections.add(\r\n new SectionDesc(\r\n section.getId(),\r\n section.getOrientation()));\r\n }\r\n\r\n descSets.add(descSet);\r\n }\r\n }\r\n }",
"public void setDeffectSection() {\n linearLayoutBottomButtons.setVisibility(View.VISIBLE);\n scroolViewScanner.setVisibility(View.GONE);\n scroolViewDefect.setVisibility(View.VISIBLE);\n linLayOverView.setVisibility(View.GONE);\n scroolViewSharWin.setVisibility(View.GONE);\n\n // set buttons background\n buttonBarScaner.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBackgroundGray200));\n buttonBarScaner.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBlack));\n buttonBarDefect.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorPrimaryDarkBlue900));\n buttonBarDefect.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorWhite));\n buttonBarOverView.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBackgroundGray200));\n buttonBarOverView.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBlack));\n buttonBarShareWin.setBackgroundColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBackgroundGray200));\n buttonBarShareWin.setTextColor(ContextCompat.getColor(ActivityScreans.this, R.color.colorBlack));\n }",
"private void clearMetaInfo()\r\n\t{\r\n\t amiMap.clear();\r\n\t}",
"public void clearAllFields(){\n\t\t//clear Page level Variables\n\t\tsetRateOfferedPk(null);\n\t\tsetCustomerRefNo(null);\n\t\tsetDocumentNumber(null);\n\t\tsetBeneficiaryName(null);\n\t\tsetBeneficiaryBankId(null);\n\t\tsetBeneficiaryBankName(null);\n\t\tsetRateOffered(null);\n\t\tsetCurrencyId(null);\n\t\tsetCurrencyName(null);\n\t\tsetTransctionAmount(null);\n\t\tsetCustomerRefAndName(null);\n\t\tsetRemitServiceId(null);\n\t\tsetRemitRemittanceId(null);\n\t\tsetRemitDeliveryId(null);\n\t\tsetCustomerId(null);\n\t\tsetCustomerName(null);\n\t\tsetRateOfferedPk(null);\n\t\tsetAmountAndQtyName(null);\n\t\tsetBeneficiaryMasterId(null);\n\t\tsetBeneficiaryAccountSeqId(null);\n\t\tsetCurrencyQtyName(null);\n\t\tsetRoutingCountry(null);\n\t\tsetRoutingBank(null);\n\t\tsetPaymentCode(null);\n\t\t//common Variables\n\t\tsetErrorMessage(null);;\n\t\tsetCreatedBy(null);\n\t\tsetCreatedDate(null);\n\t\tsetModifiedBy(null);\n\t\tsetModifiedDate(null);\n\t\tsetApprovedBy(null);\n\t\tsetApprovedDate(null);\n\t\tsetIsActive(null);\n\t\t\n\t\t//cheque and Card common Details\n\t\tsetRemitamount(null);;\n\t\tsetRemitBankId(null);;\n\t\tsetCheckRefNo(null);;\n\t\t//cheque Details\n\t\tsetRemitApproveCheckDate(null);;\n\t\tsetApprovalNumber(null);;\n\t\t\n\t\t//card Details\n\t\tsetCardNumber(null);;\n\t\tsetNameOfTheCard(null);\n\t\tsetApprovalNumberCard(null);\n\t\tsetCardBankId(null);\n\t\tsetLstRatePlaceOrderPk(null);\n\t\tsetBooRenderSaveOrExit(false);\n\t\tsetTotalAmount(null);\n\t\tsetPaymentAmountPanel(false);\n\t}",
"private void resetAll() {\n\t\trightHandNavPanel.clear();\n\t\tmainFlowPanel.clear();\n\t\tparameterNameTxtArea.setText(\"\");\n\t\tdefineNameTxtArea.setText(\"\");\n\t\tfuncNameTxtArea.setText(\"\");\n\t\t\n\t\tdefineAceEditor.setText(\"\");\n\t\tparameterAceEditor.setText(\"\");\n\t\tSystem.out.println(\" in resetAll doing setText\");\n\t\tcqlAceEditor.setText(\"\");\n\t\tfunctionBodyAceEditor.setText(\"\");\n\t\t\n\t\tviewParameterList.clear();\n\t\tviewDefinitions.clear();\n\t\tviewFunctions.clear();\n\t\t\n\t\tif (paramCollapse != null) {\n\t\t\tparamCollapse.clear();\n\t\t}\n\t\tif (defineCollapse != null) {\n\t\t\tdefineCollapse.clear();\n\t\t}\n\t\tif (functionCollapse != null) {\n\t\t\tfunctionCollapse.clear();\n\t\t}\n\t\t\n\t\tsetIsPageDirty(false);\n\t\tresetMessageDisplay();\n\t}",
"protected void clearFields(){\n\t\tsetFormReady(false);\n\t\tskipSpin.setValue(1);\n\t\tsetFormReady(true);\n\t}",
"public void setAllMissing();",
"public void dontCompleteBooking(){\r\n\t\ttempBookings.clear();\r\n\t}",
"public void clear()\n {\n // Clear headlines retrieved\n for( String running : this.running)\n {\n // Clear all retrieved headlines\n this.retrieved.put(running, new HashMap<>());\n this.ui.finishedTasks(running + \" is running\");\n }\n // Clear list of running tasks\n this.running.clear();\n\n // Reset cancelled flag\n synchronized(this.cancelledMonitor)\n {\n this.cancelled = false;\n }\n\n theLogger.info(\"Clearing filter due to user cancel\");\n }",
"public void reset() {\n \titems.clear();\n \tsetProcessCount(0);\n }",
"void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}",
"public void reset()\n {\n pages.clear();\n ePortfolioTitle = \"\";\n selectedPage = null;\n }",
"protected void nullifyTutorialObjectsAndStats() {\n\t\tthis.tutorial = null;\n\t\tthis.practiceDrillHuman = null;\n\t\tthis.practiceDrillAI = null;\n\t\tthis.finalMission = null;\n\t\tthis.numOfMoves = 0;\n\t\tthis.numOfTimesAITriggered = 0;\n\t}",
"private void setAllGone() {\n ivOne.setVisibility(View.GONE);\n ivTwo.setVisibility(View.GONE);\n ivThree.setVisibility(View.GONE);\n ivFour.setVisibility(View.GONE);\n ivFive.setVisibility(View.GONE);\n ivSix.setVisibility(View.GONE);\n ivSeven.setVisibility(View.GONE);\n ivEight.setVisibility(View.GONE);\n ivNine.setVisibility(View.GONE);\n }",
"private static void clearConfiguration(ConfigurationSection section) {\n for (String key : section.getKeys(false))\n section.set(key, null);\n }",
"private void settleNest()\n\t{\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tif(nestslots[i] == null && nestslots[i+1]!= null){\n\t\t\t\tnestslots[i] = nestslots[i+1];\n\t\t\t\tnestslots[i+1] = null;\n\t\t\t\tif(i==0)\n\t\t\t\t\tneststate = NestStatus.needCheck;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tif(nestslots[7]==null && extraparts.size()>0){\n\t\t\tnestslots[7]=extraparts.get(0);\n\t\t\textraparts.remove(0);\n\t\t}\n\t\t\n\t\t//if(lanestate == LaneStatus.hasPart && nestslots[7]==null){\n\t\t//\tacceptPart();\n\t\t//}\n\t}"
] | [
"0.5934595",
"0.5671418",
"0.56687963",
"0.55894536",
"0.5588161",
"0.55842674",
"0.5535092",
"0.54771984",
"0.53564966",
"0.53031987",
"0.5235572",
"0.52169645",
"0.51961297",
"0.51680475",
"0.5165925",
"0.5157649",
"0.5155226",
"0.51494074",
"0.51201224",
"0.51124907",
"0.5108933",
"0.50809395",
"0.507843",
"0.5043514",
"0.503881",
"0.5012859",
"0.4997086",
"0.49823344",
"0.4968904",
"0.4961918",
"0.49529615",
"0.49376717",
"0.4923271",
"0.49125206",
"0.49067914",
"0.4895359",
"0.48858956",
"0.4872722",
"0.48718396",
"0.48587948",
"0.48553815",
"0.48547488",
"0.48452994",
"0.48442316",
"0.48441753",
"0.48395145",
"0.48383707",
"0.48260036",
"0.4824822",
"0.4822986",
"0.48192152",
"0.4815649",
"0.48110607",
"0.4809387",
"0.48071292",
"0.48055416",
"0.48024824",
"0.4798824",
"0.4786129",
"0.47803083",
"0.47798455",
"0.47722614",
"0.4770831",
"0.47668284",
"0.47572145",
"0.4755141",
"0.47449628",
"0.47411662",
"0.4732386",
"0.472907",
"0.47285348",
"0.4728092",
"0.47264385",
"0.4721929",
"0.47210276",
"0.47195488",
"0.47191945",
"0.47178522",
"0.4712392",
"0.47087607",
"0.47062075",
"0.47018558",
"0.47013837",
"0.46950758",
"0.4690234",
"0.46877903",
"0.4679258",
"0.4675387",
"0.46741697",
"0.46733063",
"0.46623492",
"0.4660389",
"0.4659953",
"0.46588165",
"0.46585807",
"0.4658576",
"0.4658548",
"0.46555036",
"0.46545196",
"0.4653507"
] | 0.68202686 | 0 |
Setup interpolator for Gallery counterscroll (if needed) | private void galleryCounterscroll(int parentScroll) {
if (mIGalleryScroll == null) {
int screenHeight = getHeight();
PointF p1 = new PointF(0, screenHeight - mGalleryHeight / 2);
PointF p2 = new PointF(mGalleryHeight, screenHeight - mGalleryHeight);
PointF p3 = new PointF(screenHeight, (screenHeight - mGalleryHeight + mIntroOffset) / 2);
mIGalleryScroll = new SegmentedLinearInterpolator(p1, p2, p3);
}
// The number of y-pixels available to the gallery
int availableHeight = getHeight() - parentScroll;
int counterscroll = (int) mIGalleryScroll.get(availableHeight);
galleryContainer.setPivotX(getWidth() / 2);
galleryContainer.setPivotY(counterscroll + mGalleryHeight / 2);
galleryContainer.scrollTo(0, -counterscroll);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setInterpolator(final Interpolator interpolator);",
"SliderListener(Sampler[] samplers,Container pane,int numSampler,char parameter){\n this.samplers = samplers;\n this.pane = pane;\n this.numSampler = numSampler;\n this.parameter = parameter; \n }",
"public void setInterpolator(Interpolator interpolator) {\n mInterpolator = interpolator;\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"public void displayBanner() {\n\n mDemoSlider = (SliderLayout) findViewById(R.id.sample_output);\n mDemoSlider.setFocusable(true);\n mDemoSlider.setPresetTransformer(SliderLayout.Transformer.Default);\n mDemoSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);\n mDemoSlider.setCustomAnimation(new DescriptionAnimation());\n mDemoSlider.setDuration(3000);\n mDemoSlider.addOnPageChangeListener(this);\n /* LinkedHashMap<String, String> lhm = ShopApp.db.getFrontBanner();\n int length = lhm.size();\n if (length == 0) {*/\n int bannerArray[] = {R.drawable.banner, R.drawable.banner_1, R.drawable.banner_3};\n\n for (int i = 0; i < 3; i++) {\n\n TextSliderView textSliderView = new TextSliderView(context);\n // initialize a SliderLayout\n textSliderView\n .description(\"\")\n .image(bannerArray[i])\n .setScaleType(BaseSliderView.ScaleType.CenterCrop)\n .setOnSliderClickListener(this);\n\n //add your extra information\n textSliderView.bundle(new Bundle());\n textSliderView.getBundle()\n .putString(\"extra\", \"\");\n\n mDemoSlider.addSlider(textSliderView);\n }\n /* } else {*/\n\n /* Set<String> keys = lhm.keySet();\n for (String key : keys) {\n TextSliderView textSliderView = new TextSliderView(getContext());\n // initialize a SliderLayout\n textSliderView\n .description(\"\")\n .image(lhm.get(key))\n .setScaleType(BaseSliderView.ScaleType.CenterInside)\n .setOnSliderClickListener(this);\n\n //add your extra information\n textSliderView.bundle(new Bundle());\n textSliderView.getBundle()\n .putString(\"extra\", key);\n\n mDemoSlider.addSlider(textSliderView);\n }*/\n /* for (int i = 0; i < length; i++) {\n\n TextSliderView textSliderView = new TextSliderView(this);\n // initialize a SliderLayout\n textSliderView\n .description(\"\")\n .image(lhm.get(\"\" + i))\n .setScaleType(BaseSliderView.ScaleType.FitCenterCrop)\n .setOnSliderClickListener(this);\n\n //add your extra information\n textSliderView.bundle(new Bundle());\n textSliderView.getBundle()\n .putString(\"extra\", lhm.get(\"\" + i));\n\n mDemoSlider.addSlider(textSliderView);\n }*/\n // }\n\n\n }",
"public OppoScroller(android.content.Context r1, android.view.animation.Interpolator r2) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.widget.OppoScroller.<init>(android.content.Context, android.view.animation.Interpolator):void, dex: in method: android.widget.OppoScroller.<init>(android.content.Context, android.view.animation.Interpolator):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.<init>(android.content.Context, android.view.animation.Interpolator):void\");\n }",
"@Override public void onAnimationRepeat(Animator arg0) {\n\n }",
"public InterpolatorTest() {\n super(Interpolator2D.class);\n }",
"@Override\n\tprotected void initUi(View view) {\n\t\tImagesArray = new ArrayList<Integer>();\n\t\tslider_text = (TextView) view.findViewById(R.id.slider_text);\n\t\tmPager = (ViewPager) view.findViewById(R.id.pager);\n\t\tindicator = (CircleIndicator) view.findViewById(R.id.indicator);\n\t\t\n\t\t\n\t\tinit();\n\t}",
"g(int paramInt) {\n/* 14364 */ this.a = (Interpolator)new DecelerateInterpolator();\n/* 14365 */ this.b = paramInt;\n/* 14366 */ this.c = this.b + 500;\n/* */ }",
"@Override\n public void setInterpolation(int interpolation) {\n getSWTGraphics().setInterpolation(interpolation);\n }",
"private ObjectAnimator b(final c paramc)\n/* */ {\n/* 154 */ int i = getWidth();\n/* 155 */ ObjectAnimator localObjectAnimator = ObjectAnimator.ofFloat(paramc, \"translationX\", new float[] { i, 0.0F });\n/* 156 */ localObjectAnimator.addListener(new Animator.AnimatorListener()\n/* */ {\n/* */ public void onAnimationStart(Animator paramAnonymousAnimator) {\n/* 159 */ LogUtils.b(\"TTBannerAd\", \"SLIDE START\");\n/* */ }\n/* */ \n/* */ public void onAnimationEnd(Animator paramAnonymousAnimator)\n/* */ {\n/* 164 */ g= false;\n/* 165 */ j();\n/* 166 */ if (paramc != null) {\n/* 167 */ a( paramc.a());\n/* */ }\n/* */ \n/* 170 */ LogUtils.b(\"TTBannerAd\", \"SLIDE END\");\n/* 171 */ if (LogUtils.isDebug) {\n///* 172 */ Toast.makeText(LocationUtils.PhoneUtils(LocationUtils.this).getApplicationContext(), \"END\", 0).show();\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public void onAnimationCancel(Animator paramAnonymousAnimator) {}\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public void onAnimationRepeat(Animator paramAnonymousAnimator) {}\n/* 185 */ });\n/* 186 */ return localObjectAnimator;\n/* */ }",
"@Override\n public void run() {\n if (mImagePagerAdapter.getImageIdList().size() > 0) {\n if (i == 0) {\n i = 1;\n viewPager.setInterval(2000);\n viewPager.startAutoScroll();\n }\n }\n }",
"@Override\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onAnimationRepeat(Animation arg0) {\n \n }",
"@Override\n\tpublic void onAnimationRepeat(Animator arg0) {\n\n\t}",
"@Override\n\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\n\t}",
"@Override\n\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\n\t\t}",
"public MyScroller(Context context) {\n super(context, new DecelerateInterpolator());\n }",
"public void run() {\n runOnUiThread(new Runnable() {\n public void run() {\n imageSwitcher.setImageResource(gallery[position]);\n position++;\n if (position == 8) {\n position = 0;\n }\n }\n });\n }",
"@Override\n public void onAnimationRepeat(Animator arg0) {\n\n }",
"@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\n\t\t\t\t\t}",
"private float getInterpolation(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.getInterpolation(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.getInterpolation(float):float\");\n }",
"@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation arg0) {\n\t\t\t\t\r\n\t\t\t}",
"public void setAnimation(FilmsHolder holder) {\n try {\n YoYo.with(Techniques.ZoomIn).duration(1500).playOn(holder.firstLetter);\n }catch (Exception e){\n Log.i(\"AdapterFilms\", e.getMessage());\n }\n }",
"@Override\n public void ref() {\n new Handler().post(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n if (mImagePagerAdapter.getImageIdList().size() > 0) {\n if (i == 0) {\n i = 1;\n viewPager.setInterval(2000);\n viewPager.startAutoScroll();\n }\n }\n }\n });\n }",
"public void onAnimationRepeat(Animation arg0) {\n\t}",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n\n ClassLoader classLoader = getClass().getClassLoader();\n\n File folder = new File(classLoader.getResource(\"sampleMemes\").getFile());\n File[] listOfFiles = folder.listFiles();\n TilePane tilePane = new TilePane();\n tilePane.setHgap(5);\n tilePane.setVgap(5);\n tilePane.setMaxWidth(200);\n\n for (int i = 0; i < listOfFiles.length; ++i) {\n Image image = new Image(listOfFiles[i].toURI().toString());\n MyImageView imageView = new MyImageView(image);\n imageView.setImagePath(listOfFiles[i].toURI().toString());\n imageView.setId(listOfFiles[i].getAbsolutePath());\n imageView.setFitHeight(200);\n imageView.setFitWidth(190);\n imageView.setPreserveRatio(true);\n tilePane.getChildren().addAll(imageView);\n addEventToImageView(imageView);\n\n }\n\n imageSlider.setContent(tilePane);\n\n }",
"public interface Interpolator {\n /**\n * Adds a new Point with the given x and y value.\n * @param x x-value to add\n * @param y y-value to add\n * @return the Point which was added\n */\n public Point2D addPoint(double x, double y);\n /**\n * Adds a new point at the given index.\n * @param i index for where to add the new Point\n * @param x x-value to add\n * @param y y-value to add\n * @return the Point which was added\n */\n public Point2D insertPoint(int i, double x, double y);\n /**\n * Adds a List of Points.\n * @param points List of Points to add\n */\n public void addPoints(List<Point2D> points);\n /**\n * Adds a List of Point at the given index.\n * @param i index for where to add the Points\n * @param points List of Points to add\n */\n public void addPoints(int i, List<Point2D> points);\n /**\n * Sets the x and y values of the Point at the given index.\n * @param i index of the point to set\n * @param x x-value to set\n * @param y y-value to set\n * @return the Point after being set\n */\n public Point2D setPoint(int i, double x, double y);\n /**\n * Removes the given Point from the Interpolator.\n * @param p the Point to remove\n */\n public void removePoint(Point2D p);\n /**\n * Remove the Point at the given index.\n * @param i index of the Point to remove\n * @return the Point removed\n */\n public Point2D removePoint(int i);\n /**\n * Returns a list of the Interpolator's points.\n * @return list of the Interpolator's points\n */\n public List<Point2D> getControlPoints();\n /**\n * Returns a List of Points interpolated from the Interpolator's control \n * points.\n * @return List of Points interpolated from the Interpolator's control \n * points\n */\n public abstract List<Point2D> getInterpolatedPoints();\n /**\n * Returns true if the List of interpolated Points has changed since last\n * being requested and needs to be recalculated.\n * @return true if the List of interpolated Points has changed since last\n * being requested and needs to be recalculated\n */\n public boolean interpolationChanged();\n\n /**\n * Clears all the Points from the Interpolator.\n */\n public void clear();\n \n /**\n * Return the Interpolator's VersionProperty. Used to specify an \n * Interpolator type when serializing and de-serializing an Interpolator.\n * @return Interpolator's VersionProperty\n */\n public VersionProperty getInterpolatorVersion();\n \n public boolean touchesControlPoints();\n}",
"private void init() {\n CycleViewPage page = (CycleViewPage) findViewById(R.id.main_view_page);\n page.setAdapter(new InfiniteImageAdapter(createImages()));\n page.setCurrentItem(Integer.MAX_VALUE / 2);\n page.setCycleSwitch(true);\n }",
"public void InitLoadingInRecognition() {\n Point screen = MainView.GetScreenSize();\n // image setting\n int x = (screen.x - LOADING_IMAGE_SIZE.x) >> 1;\n int y = 100;\n this.m_LoadingImage.InitCharacterEx(\n \"recognizerimages\",\n x, y,\n LOADING_IMAGE_SIZE.x,\n LOADING_IMAGE_SIZE.y,\n 255, 1.0f, 0);\n // animation setting\n this.m_LoadingImage.InitAnimation(\n ANIMATION_LOADING_COUNT_MAX,\n ANIMATION_LOADING_FRAME, 0);\n }",
"@Override\r\n public void onAnimationRepeat(Animator arg0)// 动画重复\r\n {\n\r\n }",
"private void init() {\n\t\tmScroller = new Scroller(getContext());\n\n\t\t// get some default values from the system for touch/drag/fling\n\t\tfinal ViewConfiguration configuration = ViewConfiguration\n\t\t\t\t.get(getContext());\n\t\tmTouchSlop = configuration.getScaledTouchSlop();\n\t\tmMinimumVelocity = configuration.getScaledMinimumFlingVelocity();\n\t\tmMaximumVelocity = configuration.getScaledMaximumFlingVelocity();\n\t}",
"@Override\n public void onAnimationStart(Animation animation) {\n number++;\n }",
"public SlideAdapter(){\r\n\r\n }",
"public void onAnimationRepeat(Animation animation) {\n\r\n }",
"public void autoSwipeViews() {\n mTimer = new Timer();\n mTimer.scheduleAtFixedRate(new SliderTimer(), 10000, 10000);\n }",
"@SuppressWarnings(\"unchecked\")\n\t\t@Override\n\t\tprotected void onProgressUpdate(Object... values) {\n\t\t\tsuper.onProgressUpdate(values);\n\n\t\t\tfloat halfWidth = imswitcher.getWidth() / 2.0f;\n\t\t\tfloat halfHeight = imswitcher.getHeight() / 2.0f;\n\t\t\tint duration = 500;\n\t\t\tint depthz = 0;// viewFlipper.getWidth()/2;\n\n\t\t\tRotate3D rdin = new Rotate3D(75, 0, 0, halfWidth, halfHeight);\n\t\t\trdin.setDuration(duration);\n\t\t\trdin.setFillAfter(true);\n\t\t\timswitcher.setInAnimation(rdin);\n\t\t\tRotate3D rdout = new Rotate3D(-15, -90, 0, halfWidth, halfHeight);\n\n\t\t\trdout.setDuration(duration);\n\t\t\trdout.setFillAfter(true);\n\t\t\timswitcher.setOutAnimation(rdout);\n\n\t\t\ti = (i + 1);\n\t\t\tint p = i % 4;\n\n\t\t\tif (p >= 0) {\n\t\t\t\tsetpic(p);\n\t\t\t\timswitcher.setImageResource(imageIds[p]);\n\t\t\t} else {\n\n\t\t\t\tint k = 4 + p;\n\t\t\t\tsetpic(k);\n\t\t\t\timswitcher.setImageResource(imageIds[k]);\n\t\t\t}\n\n\t\t}",
"@Override\n public void onAnimationRepeat(Animation animation) {\n }",
"@Override\n public void onAnimationRepeat(Animation animation) {\n }",
"@Override\n public void onAnimationRepeat(Animation animation) {\n }",
"@Override\n public void onAnimationRepeat(Animation animation) {\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animation arg0) {\n\n\t\t\t\t\t\t\t}",
"@Override\n protected void doResetInterpolationHint(GGraphics2D g3, Object hint) {\n\t \n }",
"private void init(){\n\t\tmIV = new ImageView(mContext);\r\n\t\tFrameLayout.LayoutParams param1 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n\t\tmIV.setLayoutParams(param1);\r\n\t\tmIV.setScaleType(ScaleType.FIT_XY);\r\n//\t\tmIVs[0] = iv1;\r\n\t\tthis.addView(mIV);\r\n//\t\tImageView iv2 = new ImageView(mContext);\r\n//\t\tFrameLayout.LayoutParams param2 = new FrameLayout.LayoutParams(FrameLayout.LayoutParams.MATCH_PARENT\r\n//\t\t\t\t, FrameLayout.LayoutParams.MATCH_PARENT);\r\n//\t\tiv2.setLayoutParams(param2);\r\n//\t\tiv2.setScaleType(ScaleType.CENTER_CROP);\r\n//\t\tmIVs[1] = iv2;\r\n//\t\tthis.addView(iv2);\r\n\t\tthis.mHandler = new Handler();\r\n\t}",
"private void init() {\n\n // Set up the paint for the pie slices\n mPiePaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mPiePaint.setStyle(Paint.Style.FILL_AND_STROKE);\n mPiePaint.setStrokeWidth(mLinesWidth);\n mPiePaint.setColor(mSegmentsColor);\n\n // Set up the paint for the lines\n mLinesPaint = new Paint(Paint.ANTI_ALIAS_FLAG);\n mLinesPaint.setShadowLayer(mShadowRadius, 0, 0, Color.BLACK);\n mLinesPaint.setStyle(Paint.Style.STROKE);\n mLinesPaint.setColor(mLinesColor);\n mLinesPaint.setStrokeWidth(mLinesWidth);\n\n // Add a child view to draw the pie. Putting this in a child view\n // makes it possible to draw it on a separate hardware layer that rotates\n // independently\n mPieView = new PieView(getContext());\n addView(mPieView);\n mPieView.rotateTo(mPieRotation);\n\n // Set up an animator to animate the PieRotation property. This is used to\n // correct the pie's orientation after the user lets go of it.\n if (Build.VERSION.SDK_INT >= 11) {\n mAutoCenterAnimator = ObjectAnimator.ofInt(PieMenuView.this, \"PieRotation\", 0);\n }\n\n\n // Create a Scroller to handle the fling gesture.\n mScroller = new Scroller(getContext(), null, true);\n\n // The scroller doesn't have any built-in animation functions--it just supplies\n // values when we ask it to. So we have to have a way to call it every frame\n // until the fling ends. This code (ab)uses a ValueAnimator object to generate\n // a callback on every animation frame. We don't use the animated value at all.\n if (Build.VERSION.SDK_INT >= 11) {\n mScrollAnimator = ValueAnimator.ofFloat(0, 1);\n mScrollAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\n public void onAnimationUpdate(ValueAnimator valueAnimator) {\n tickScrollAnimation();\n }\n });\n }\n\n // Create a gesture detector to handle onTouch messages\n mDetector = new GestureDetector(PieMenuView.this.getContext(), new GestureListener());\n\n // Turn off long press--this control doesn't use it, and if long press is enabled,\n // you can't scroll for a bit, pause, then scroll some more (the pause is interpreted\n // as a long press, apparently)\n mDetector.setIsLongpressEnabled(false);\n\n // In edit mode it's nice to have some demo data, so add that here.\n if (this.isInEditMode()) {\n addItem(R.mipmap.ic_launcher);\n addItem(R.mipmap.ic_launcher);\n addItem(R.mipmap.ic_launcher);\n }\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@Override public void onAnimationStart(Animator arg0) {\n\n }",
"protected void createSliders() {\n\t\tsuper.addSlider(0, 1, myResources.getString(\"PercentFish\"));\n\t\tsuper.addSlider(0, 1, myResources.getString(\"PercentShark\"));\n\t}",
"@Override\n public void onAnimationRepeat(Animation animation) {\n\n }",
"@Override\n public void onAnimationRepeat(Animation animation) {\n\n }",
"@Override\r\n\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t\t}",
"void vng_interpolate()\n{\n}",
"@Override\n public SliderViewHolder onCreateViewHolder(ViewGroup parent) {\n LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());\n View view = layoutInflater.inflate(R.layout.image_layout_sample,parent,false);\n\n return new SliderViewHolder(view);\n }",
"public void setCount(int r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: android.widget.OppoScroller.setCount(int):void, dex: in method: android.widget.OppoScroller.setCount(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.setCount(int):void\");\n }",
"@Override\n public void onBindViewHolder(final ViewHolder viewHolder, final int position) {\n viewHolder.imageView.setImageResource(images[position]);\n\n ViewPagerAdapter viewPagerAdapter = new ViewPagerAdapter(this);\n viewHolder.viewPager.setAdapter(viewPagerAdapter);\n\n CustomGalleryAdapter customGalleryAdapter = new CustomGalleryAdapter(RecyclerAdapter.this, images);\n viewHolder.gallery.setAdapter(customGalleryAdapter);\n viewHolder.gallery.setSpacing(0);\n\n viewHolder.gallery.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n //DO SOMETHING\n switch (position) {\n case 0:\n //\n viewHolder.textView.setText(position);\n break;\n case 1:\n //\n viewHolder.tvGallery.setText(position);\n break;\n case 2:\n Toast.makeText(view.getContext(), \"3rd book Selected\", Toast.LENGTH_SHORT).show();\n break;\n }\n }\n\n// private Context getResources() {\n// String resource = getResources().getString(R.string.first_book_description);\n// return context;\n// }\n });\n\n // SETTING TIMER\n Timer timer = new Timer();\n timer.scheduleAtFixedRate(new TimerTask() {\n @Override\n public void run() {\n viewHolder.viewPager.getCurrentItem();\n// if (viewPager.getCurrentItem() == 0) {\n// viewPager.setCurrentItem(1);\n// } else if (viewPager.getCurrentItem() == 1) {\n// viewPager.setCurrentItem(2);\n// } else if (viewPager.getCurrentItem() == 2){\n// viewPager.setCurrentItem(3);\n// }else if (viewPager.getCurrentItem() == 3){\n// viewPager.setCurrentItem(4);\n// }else if (viewPager.getCurrentItem() == 4){\n// viewPager.setCurrentItem(5);\n// }else {\n// viewPager.setCurrentItem(0);\n// }\n }\n }, 1000, 2000);\n\n }",
"public Action setInterpolator(Interpolator i) {\n mInterpolator = i;\n return this;\n }",
"@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"private void m14909j() {\n getViewTreeObserver().addOnGlobalLayoutListener(new OnGlobalLayoutListener() {\n public void onGlobalLayout() {\n if (VERSION.SDK_INT < 16) {\n C3243f.this.getViewTreeObserver().removeGlobalOnLayoutListener(this);\n } else {\n C3243f.this.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n }\n int hypot = (int) Math.hypot((double) C3243f.this.getWidth(), (double) C3243f.this.getHeight());\n int i = 0;\n if (C3243f.this.f8718g != null) {\n i = C3243f.this.f8718g.getWidth() / 2;\n } else if (C3243f.this.f8707K > 0 || C3243f.this.f8708L > 0 || C3243f.this.f8709M > 0) {\n C3243f.this.f8700D = C3243f.this.f8705I;\n C3243f.this.f8701E = C3243f.this.f8706J;\n }\n Animator createCircularReveal = ViewAnimationUtils.createCircularReveal(C3243f.this, C3243f.this.f8700D, C3243f.this.f8701E, (float) i, (float) hypot);\n createCircularReveal.setDuration((long) C3243f.this.f8697A);\n if (C3243f.this.f8731t != null) {\n createCircularReveal.addListener(new AnimatorListenerAdapter() {\n public void onAnimationEnd(Animator animator) {\n C3243f.this.f8731t.mo10411a();\n }\n });\n }\n createCircularReveal.setInterpolator(AnimationUtils.loadInterpolator(C3243f.this.f8713b, 17563650));\n createCircularReveal.start();\n }\n });\n }",
"void onFastScrollStart(FastScroller fastScroller);",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.gallery_pager, container, false);\n\n this.pager = view.findViewById(R.id.gallery_pager);\n this.progressBar = view.findViewById(R.id.gallery_progress);\n\n this.next = (ImageButton) view.findViewById(R.id.gal_pgr_next);\n this.next.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentItem = pager.getCurrentItem();\n if(currentItem < imagesLength - 1) {\n pager.setCurrentItem(currentItem + 1);\n }\n }\n });\n this.prev = (ImageButton) view.findViewById(R.id.gal_pgr_prev);\n this.prev.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n int currentItem = pager.getCurrentItem();\n if(currentItem > 0) {\n pager.setCurrentItem(currentItem - 1);\n }\n }\n });\n showProgress(true);\n\n\n reloadImageList();\n\n\n return view;\n }",
"private void doBuildScroller() {\r\n\t\t\r\n\t}",
"public void initSlideshow(Album a){\n\t\talbum=a;\n\t\tlistOfPhotos = album.getPhotos();\n\t\tPhoto photo = listOfPhotos.get(photoNumber);\n\t\tImage photoImage = new Image(photo.getLocation(),610,450,false,false);\n\t\tphotoImageView.setImage(photoImage);\n\t\tImage img = new Image(\"file:resources/info.png\",35,34,false,false);\n infoHoverButton.setGraphic(new ImageView(img));\n Tooltip tt = new Tooltip();\n tt.setText(photo.printAttributes());\n tt.setStyle(\"-fx-font: normal bold 20 Langdon; \"\n + \"-fx-base: #AE3522; \"\n + \"-fx-text-fill: orange;\");\n infoHoverButton.setTooltip(tt);\n\t}",
"private void m113393a() {\n ViewPager viewPager = this.f91930a.getViewPager();\n ObjectAnimator ofInt = ObjectAnimator.ofInt(this.f91930a, \"backgroundColor\", new int[]{this.f91930a.mo89500a(this.f91930a.f92028d), this.f91930a.mo89500a(255.0f)});\n ofInt.setEvaluator(new ArgbEvaluator());\n ObjectAnimator ofFloat = ObjectAnimator.ofFloat(viewPager, \"translationY\", new float[]{viewPager.getTranslationY(), 0.0f});\n AnimatorSet animatorSet = new AnimatorSet();\n animatorSet.playTogether(new Animator[]{ofInt, ofFloat});\n animatorSet.start();\n }",
"@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\r\n\t\t\t}",
"public void setSwipes(int rb_dana_u_god) {\n _view.setOnTouchListener(new OnSwipeTouchListener(MainActivity.this) {\n\n\n @RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onSwipeLeft() {\n super.onSwipeLeft();\n YoYo.with(Techniques.ZoomInRight)\n .duration(650)\n .repeat(0)\n .playOn(_ikona);\n _rb_danaUgodini = _rb_danaUgodini + 1;\n _counter = _counter + 1;\n setUI(_counter);\n }\n\n @RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onSwipeRight() {\n super.onSwipeRight();\n YoYo.with(Techniques.ZoomInLeft)\n .duration(650)\n .repeat(0)\n .playOn(_ikona);\n _rb_danaUgodini = _rb_danaUgodini - 1;\n _counter = _counter - 1;\n setUI(_counter);\n }\n\n @RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onSwipeBottom() {\n super.onSwipeBottom();\n YoYo.with(Techniques.ZoomIn)\n .duration(550)\n .repeat(0)\n .playOn(_ikona);\n _rb_danaUgodini = _calendar.get(Calendar.DAY_OF_YEAR)-1;\n _counter = 0;\n setUI(_counter);\n }\n\n @RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public void onSwipeTop() {\n super.onSwipeTop();\n YoYo.with(Techniques.ZoomIn)\n .duration(550)\n .repeat(0)\n .playOn(_ikona);\n _rb_danaUgodini = _calendar.get(Calendar.DAY_OF_YEAR)-1;\n _counter = 0;\n setUI(_counter);\n }\n\n });\n\n }",
"public void fill_data(){\n sliderLayout.setCustomIndicator(pagerIndicator);\n sliderLayout.stopAutoCycle();\n ArrayList<String> file_maps=new ArrayList<>() ;\n file_maps=data_item.getImagesurl();\n for (int i = 0; i < file_maps.size(); i++) {\n\n if(!file_maps.get(i).equals(\"\")){\n\n DefaultSliderView defaultSliderView = new DefaultSliderView(context);\n defaultSliderView\n .image(file_maps.get(i))\n .setScaleType(BaseSliderView.ScaleType.FitCenterCrop);\n defaultSliderView.bundle(new Bundle());\n sliderLayout.addSlider(defaultSliderView);\n\n }\n }\n sliderLayout.setVisibility(View.VISIBLE);\n\n }",
"@Override\n\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onAnimationRepeat(Animator animation) {\n\t\t\t\n\t\t}",
"public FixedSpeedScroller(Context context) {\n super(context);\n }",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onAnimationStart(Animation arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_recipe_slider, container, false);\n\n mSectionsPagerAdapter = new SectionsPagerAdapter(getActivity().getSupportFragmentManager());\n zero = (ImageView) rootView.findViewById(R.id.intro_indicator_0);\n one = (ImageView) rootView.findViewById(R.id.intro_indicator_1);\n two = (ImageView) rootView.findViewById(R.id.intro_indicator_2);\n\n indicators = new ImageView[]{zero, one, two};\n\n // Set up the ViewPager with the sections adapter.\n mViewPager = (ViewPager) rootView.findViewById(R.id.recipe_slider);\n mViewPager.setAdapter(mSectionsPagerAdapter);\n\n mViewPager.setCurrentItem(page);\n updateIndicators(page);\n\n final ArgbEvaluator evaluator = new ArgbEvaluator();\n\n mViewPager.addOnPageChangeListener(new ViewPager.OnPageChangeListener() {\n @Override\n public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) {\n }\n\n @Override\n public void onPageSelected(int position) {\n\n page = position;\n\n updateIndicators(page);\n }\n\n @Override\n public void onPageScrollStateChanged(int state) {\n\n }\n });\n return rootView;\n }",
"@Override\n public int getCount() {\n return sliderImages.length;\n }",
"public void prepareSliderLayout(HashMap<String,Integer> file_maps){\n\n for(String name : file_maps.keySet()){\n TextSliderView mTextSliderView = new TextSliderView(this);\n mTextSliderView\n .description(name)\n .image(file_maps.get(name));\n\n mSliderLayout.addSlider(mTextSliderView);\n }\n }",
"private void setdata(){\n final Handler handler = new Handler();\n final Runnable Update = new Runnable() {\n public void run() {\n if (currentPage == img.length) {\n currentPage = 0;\n }\n viewPager.setCurrentItem(currentPage++, true);\n }\n };\n Timer swipeTimer = new Timer();\n swipeTimer.schedule(new TimerTask() {\n @Override\n public void run() {\n handler.post(Update);\n }\n }, 2500, 2500);\n }",
"SupportedInterpolationsType(){\n\n }",
"public void mo5967d() {\n this.f5416fa.setVisibility(0);\n this.f5416fa.setImageBitmap(C1413m.f5711i);\n ObjectAnimator duration = ObjectAnimator.ofFloat(this.f5416fa, \"translationY\", new float[]{-((float) C1413m.f5711i.getHeight()), 0.0f}).setDuration(240);\n ObjectAnimator duration2 = ObjectAnimator.ofFloat(this.f5416fa, \"alpha\", new float[]{0.0f, 0.2f, 0.3f, 0.4f, 0.5f, 0.6f, 0.7f, 0.8f, 0.9f, 1.0f}).setDuration(240);\n duration.start();\n duration2.start();\n long j = (long) 240;\n ObjectAnimator.ofFloat(this.f5436pa, \"alpha\", new float[]{1.0f, 0.9f, 0.8f, 0.7f, 0.6f, 0.5f, 0.4f, 0.3f, 0.2f, 0.0f}).setDuration(j).start();\n LinearLayout linearLayout = this.f5438qa;\n ObjectAnimator.ofFloat(linearLayout, \"translationY\", new float[]{0.0f, (float) ((linearLayout.getMeasuredHeight() - this.f5384D.getmImageViewHeight()) - C1413m.m6828a(27, this.f5389I))}).setDuration(j).start();\n ObjectAnimator.ofFloat(this.f5438qa, \"alpha\", new float[]{1.0f, 0.0f}).setDuration(j).start();\n duration.addListener(new C1304Ya(this));\n }",
"public boolean onCustomLayout(View view, int i, int i2, int i3, int i4) {\n int i5 = i3 - i;\n i2 = i4 - i2;\n Object obj = i5 < i2 ? 1 : null;\n if (view == this.cameraPanel) {\n if (obj != null) {\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n this.cameraPanel.layout(0, i4 - AndroidUtilities.m26dp(196.0f), i5, i4 - AndroidUtilities.m26dp(96.0f));\n } else {\n this.cameraPanel.layout(0, i4 - AndroidUtilities.m26dp(100.0f), i5, i4);\n }\n } else if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n this.cameraPanel.layout(i3 - AndroidUtilities.m26dp(196.0f), 0, i3 - AndroidUtilities.m26dp(96.0f), i2);\n } else {\n this.cameraPanel.layout(i3 - AndroidUtilities.m26dp(100.0f), 0, i3, i2);\n }\n return true;\n }\n View view2 = this.counterTextView;\n if (view == view2) {\n if (obj != null) {\n i5 = (i5 - view2.getMeasuredWidth()) / 2;\n i4 -= AndroidUtilities.m26dp(154.0f);\n this.counterTextView.setRotation(0.0f);\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n i4 -= AndroidUtilities.m26dp(96.0f);\n }\n } else {\n i5 = i3 - AndroidUtilities.m26dp(154.0f);\n i4 = (i2 / 2) + (this.counterTextView.getMeasuredWidth() / 2);\n this.counterTextView.setRotation(-90.0f);\n if (this.cameraPhotoRecyclerView.getVisibility() == 0) {\n i5 -= AndroidUtilities.m26dp(96.0f);\n }\n }\n TextView textView = this.counterTextView;\n textView.layout(i5, i4, textView.getMeasuredWidth() + i5, this.counterTextView.getMeasuredHeight() + i4);\n return true;\n } else if (view != this.cameraPhotoRecyclerView) {\n return false;\n } else {\n if (obj != null) {\n i2 -= AndroidUtilities.m26dp(88.0f);\n view.layout(0, i2, view.getMeasuredWidth(), view.getMeasuredHeight() + i2);\n } else {\n i = (i + i5) - AndroidUtilities.m26dp(88.0f);\n view.layout(i, 0, view.getMeasuredWidth() + i, view.getMeasuredHeight());\n }\n return true;\n }\n }",
"@Override\n\t\tpublic void onPageSelected(int arg0) {\n\t\t\tif (arg0 >2) {\n\t\t\t\targ0 = arg0 % 3;\n\t\t\t}\n\t\t\tswitch (arg0) {\n\t\t\tcase 0:\n\t\t\t\tif (mCurrentIndex == 1) {//即从1--->0\n\t\t\t\t\tanimation = new TranslateAnimation(offsetOne, 0, 0, 0);\n\t\t\t\t} else if (mCurrentIndex == 2) {\n\t\t\t\t\tanimation = new TranslateAnimation(offsetTwo, 0, 0, 0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif (mCurrentIndex == 0) {\n\t\t\t\t\tanimation = new TranslateAnimation(mOffset, offsetOne, 0, 0);\n\t\t\t\t} else if (mCurrentIndex == 2) {\n\t\t\t\t\tanimation = new TranslateAnimation(offsetTwo, offsetOne, 0,\n\t\t\t\t\t\t\t0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif (mCurrentIndex == 0) {\n\t\t\t\t\tanimation = new TranslateAnimation(mOffset, offsetTwo, 0, 0);\n\t\t\t\t} else if (mCurrentIndex == 1) {\n\t\t\t\t\tanimation = new TranslateAnimation(offsetOne, offsetTwo, 0,\n\t\t\t\t\t\t\t0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tmCurrentIndex = arg0;\n\t\t\tanimation.setFillAfter(true);//true:图片停在动画结束位置\n\t\t\tanimation.setDuration(500);\n\t\t\tmCursor.startAnimation(animation);\n\n\t\t}",
"@Override\n public void onAnimationRepeat(Animator animation) {\n }",
"@Override\n\t\tpublic void onAnimationRepeat(Animation animation) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onAnimationStart(Animator arg0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public abstract void interpolate(int i, float f, Object obj);",
"@Override\n public void onAnimationStart(Animation arg0) {\n \n }",
"public SpringScrollView(Context context, AttributeSet attrs) {\n super(context, attrs);\n\n mTouchSlop = ViewConfiguration.get(context).getScaledTouchSlop();\n mMediumAnimationDuration = getContext().getResources().getInteger(android.R.integer.config_mediumAnimTime);\n decelerateInterpolator = new DecelerateInterpolator(2f);\n Log.i(TAG, \"mTouchSlop:\" + mTouchSlop);\n }",
"public void updateViewCnt(Integer imgnum) throws Exception;"
] | [
"0.5588443",
"0.5494896",
"0.53644055",
"0.53611934",
"0.53611934",
"0.5360198",
"0.53305584",
"0.52784324",
"0.5275012",
"0.5274263",
"0.5264452",
"0.5253014",
"0.5226469",
"0.52227706",
"0.5198882",
"0.5198882",
"0.51879436",
"0.5185906",
"0.51519126",
"0.51519126",
"0.5135974",
"0.51209277",
"0.5120189",
"0.5110131",
"0.5098603",
"0.5098603",
"0.50871193",
"0.5083274",
"0.5079863",
"0.5062581",
"0.50605994",
"0.50013566",
"0.49710134",
"0.49420798",
"0.49364626",
"0.4931567",
"0.49234274",
"0.4912468",
"0.4893334",
"0.488174",
"0.48560598",
"0.48525319",
"0.48467132",
"0.48467132",
"0.48467132",
"0.48467132",
"0.48386806",
"0.48386806",
"0.48370257",
"0.48335695",
"0.48325804",
"0.48295018",
"0.48257697",
"0.48206878",
"0.48169047",
"0.48169047",
"0.48116738",
"0.48116738",
"0.48093504",
"0.48040217",
"0.48025158",
"0.4802108",
"0.479818",
"0.47945446",
"0.4791907",
"0.47896016",
"0.47894555",
"0.47878912",
"0.47732452",
"0.47695243",
"0.47659442",
"0.47659442",
"0.47659442",
"0.47659442",
"0.47632495",
"0.47632495",
"0.47632495",
"0.4762931",
"0.47628626",
"0.47600347",
"0.47600347",
"0.4754743",
"0.4754264",
"0.4754264",
"0.4749687",
"0.47470787",
"0.47442594",
"0.47422257",
"0.47419366",
"0.47368845",
"0.47356942",
"0.47318068",
"0.47309294",
"0.47220594",
"0.47193238",
"0.47159123",
"0.47119975",
"0.47101384",
"0.46962145",
"0.46883395"
] | 0.63225573 | 0 |
TODO Autogenerated method stub | public static void main(String[] args) {
int value = 1;
} | {
"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 boolean step() {
return 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 mouseDragged(MouseEvent 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 | @Override
public void mouseMoved(MouseEvent 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 | @Override
public void mouseClicked(MouseEvent 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 | @Override
public void mouseEntered(MouseEvent 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 | @Override
public void mouseExited(MouseEvent 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 | @Override
public void mousePressed(MouseEvent 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 |
Intent intent = getIntent(); String value = intent.getStringExtra("key"); Log.println(1, "Intent value",value); | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_color_change_by_magnet);
//Layout to change the background from the main activity
layout = findViewById(R.id.MagnassoRGB);
// Get a reference to the SensorManager
mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
// Get a reference to the magnetometer
magnetometer = mSensorManager
.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
// Exit unless sensor are available
if (null == magnetometer)
finish();
changeToHome();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String getExtraString(Activity context, String key) {\n \tString param = \"\";\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.getString(key);\n \t}\n \treturn param;\n\t}",
"private void getIntentValues() {\n\n// itemname= getIntent().getExtras().getString(IntentsConstants.item_name);\n// itemPrice = getIntent().getExtras().getDouble(IntentsConstants.item_price);\n Bundle bundle = getArguments();\n menusItem= (MenusItem) bundle.getSerializable(\"Item\");\n itemname=menusItem.getName();\n itemPrice=menusItem.getPrice();\n\n}",
"public static Object getExtraObject(Activity context, String key) {\n \tObject param = null;\n \tBundle bundle = context.getIntent().getExtras();\n \tif(bundle!=null){\n \t\tparam = bundle.get(key);\n \t}\n \treturn param;\n\t}",
"private void getExtrasFromCallingActivity() {\n extras = getIntent().getExtras();\n if (extras != null) {\n testIdString = extras.getString(\"TEST_ID_FOR_QUESTIONS\");\n } else {\n testIdString = \"-1\";\n }\n }",
"String getExtra();",
"private void getIntentData() {\n\t\ttry{\n\t\t\tIN_CATEGORYID = getIntent().getStringExtra(CATEGORY_ID) == null ? \"0\" : getIntent().getStringExtra(CATEGORY_ID);\n\t\t\tIN_ARTICLENAME = getIntent().getStringExtra(ARTICLENAME) == null ? \"\" : getIntent().getStringExtra(ARTICLENAME) ;\n\t\t\tIN_ARTICLEID = getIntent().getStringExtra(ARTICLEID) == null ? \"\" : getIntent().getStringExtra(ARTICLEID);\n\t\t}catch(Exception e){\n\t\t}\n\t}",
"private void showIntentInfo(Intent intent, TextView textView){\n StringBuilder infoBuilder = new StringBuilder();\n String action = intent.getAction();\n infoBuilder.append(\"Action=\");\n infoBuilder.append(action != null ? action : \"** NO Action **\");\n infoBuilder.append(\"\\n\");\n\n Bundle extras = intent.getExtras();\n if(extras == null){\n infoBuilder.append(\"** NO Extras **\");\n } else {\n infoBuilder.append(\"** Extras **\\n\");\n Set<String> keySet = extras.keySet();\n for(String key : keySet) {\n String value = extras.get(key).toString();\n infoBuilder.append(key);\n infoBuilder.append(\"=\");\n infoBuilder.append(value);\n infoBuilder.append(\"\\n\");\n }\n }\n textView.setText(infoBuilder.toString());\n }",
"void getData() {\n Intent intent = this.getIntent();\n /* Obtain String from Intent */\n Sname = intent.getExtras().getString(\"name\");\n Sbloodbank = intent.getExtras().getString(\"bloodbank\");\n Sbranch = intent.getExtras().getString(\"branch\");\n Sdate = intent.getExtras().getString(\"date\");\n Stime = intent.getExtras().getString(\"time\");\n Sphone = intent.getExtras().getString(\"phone\");\n Log.d(\"userDetails received\", Sname + \",\" + Sphone ); //Don't ignore errors!\n }",
"private void getDataFromMainActivity(){\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n site = bundle.getString(\"site\");\n }",
"public static String getStringIntent(Intent intent, String name) {\n\t\tString retval = null;\n\t\tif (intent != null) {\n\t\t\tif (intent.hasExtra(name))\n\t\t\t\tretval = intent.getStringExtra(name);\n\t\t}\n\t\treturn retval;\n\t}",
"private void logPushExtras(Intent intent) {\n Set<String> keys = intent.getExtras().keySet();\n for (String key : keys) {\n\n // ignore standard C2DM extra keys\n List<String> ignoredKeys = (List<String>) Arrays.asList(\n \"collapse_key\",// c2dm collapse key\n \"from\",// c2dm sender\n PushManager.EXTRA_NOTIFICATION_ID,// int id of generated notification (ACTION_PUSH_RECEIVED only)\n PushManager.EXTRA_PUSH_ID,// internal UA push id\n PushManager.EXTRA_ALERT);// ignore alert\n if (ignoredKeys.contains(key)) {\n continue;\n }\n Log.i(logTag,\n \"Push Notification Extra: [\" + key + \" : \"\n + intent.getStringExtra(key) + \"]\"\n );\n }\n }",
"private String getStringExtra(Bundle savedInstanceState, String strWhich) {\n String strRet = (savedInstanceState != null ? savedInstanceState.getString(strWhich) : \"\");\r\n \r\n if (strRet == \"\") {\r\n \tBundle extras = getIntent().getExtras(); \r\n \tstrRet = (extras != null ? extras.getString(strWhich) : \"\");\r\n }\r\n \r\n return strRet;\r\n\r\n\t}",
"@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }",
"public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }",
"private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }",
"@Override\n public void onClick(View v) {\n String s1=e1.getText().toString();\n String s2=e2.getText().toString();\n Intent i=new Intent(MainActivity.this,Secondactivity.class);\n //use method of intent class this is putExtra(through putextra method)send data in form of key n valu\n i.putExtra(\"name_key\",s1);\n i.putExtra(\"phone_name\",s2);\n startActivity(i);\n\n\n\n }",
"private void getIntentData() {\n if (getIntent() != null) {\n destinationLat = getIntent().getDoubleExtra(\"destinationLat\", 48.893478);\n destinationLng = getIntent().getDoubleExtra(\"destinationLng\", 2.334595);\n }\n }",
"@Override\n\t public void onReceive(Context context, Intent intent) {\n\t Toast.makeText(appContext, intent.getStringExtra(\"cmd_value\"), Toast.LENGTH_SHORT).show();\n\t }",
"void mo21580A(Intent intent);",
"private void getDataFromIntent(Intent intent) {\n panAadharCardDetail = intent.getParcelableExtra(\"panAadharDetail\");\n card_type = intent.getIntExtra(\"card_type\", 0);\n imageFileUri = intent.getStringExtra(\"imageFile\");\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_home);\n UserEmail = getIntent().getStringExtra(\"UserEmail\");\n Toast.makeText(this, \"Welcome\"+UserEmail, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n Toast.makeText(context,\"静态广播:\"+intent.getAction()+\":\"+intent.getStringExtra(\"tv\"),\n Toast.LENGTH_LONG).show();\n System.out.println(intent.getStringExtra(\"tv\"));\n }",
"public void viewallinfo(View view){\n String IDValue = ID.getText().toString();\n Intent intent=new Intent(this,ViewAllInfo.class);\n intent.putExtra(\"key1\", IDValue );\n startActivity(intent);\n }",
"public void getintent() {\n Intent intent = this.getIntent();\n acceptDetailsModel = (AcceptDetailsModel) intent.getSerializableExtra(\"menu_item\");\n }",
"@Override\n\tprotected void getIntentData(Bundle savedInstanceState) {\n\n\t}",
"@Override\n protected void getFromIntent() {\n this.groupID = getIntent().getStringExtra(\"groupId\");\n this.groupName = getIntent().getStringExtra(\"groupName\");\n }",
"void getBundleData(Intent intent);",
"private void getIntentData() {\r\n if (getIntent() != null && getIntent().getExtras() != null) {\r\n // Handling intent data from DirectoryDetailsActivity class\r\n if (Constant.ALBUM_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n position = getIntent().getIntExtra(Constant.POSITION, 0);\r\n nameKey = getIntent().getStringExtra(Constant.KEY_NAME);\r\n } else if (Constant.LIST_TYPE.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else if (Constant.SECURE_TAB.equalsIgnoreCase(getIntent().getExtras().getString(Constant.TYPE))) {\r\n imageDataModel = getIntent().getParcelableExtra(Constant.DATA);\r\n } else {\r\n // Handling other intent data like camera intent\r\n Uri uri = getIntent().getData();\r\n GalleryHelper.getImageFolderMap(this);\r\n File file = new File(getRealPathFromURI(uri));\r\n nameKey = FileUtils.getParentName(file.getParent());\r\n GalleryHelperBaseOnId.getMediaFilesOnIdBasis(this, GalleryHelper.imageFolderMap.get(nameKey).get(0).getBucketId());\r\n }\r\n }\r\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n String message = intent.getStringExtra(\"message\");\n Log.d(\"receiver\", \"Got message: \" + message);\n }",
"@Override\n\tprotected void obtainIntentValue() {\n\n\t}",
"public void pindah_ke_log(View v)\n {\n Intent dashboard = new Intent(DashboardUser.this,BuyerTransactionActivity.class) ;\n dashboard.putExtra(\"param1\",value1);\n dashboard.putExtra(\"param2\",value2);\n dashboard.putExtra(\"param3\",value3);\n dashboard.putExtra(\"param4\",value4);\n dashboard.putExtra(\"param5\",value5);\n// SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n// SharedPreferences.Editor editor = sharedPreferences.edit();\n// editor.putString(TEXT, value1);\n// editor.putString(SWITCH, value2);\n// editor.apply();\n startActivityForResult(dashboard, 100);\n }",
"public static String m9362n(Intent intent, String str) {\n String str2 = null;\n if (intent == null) {\n return str2;\n }\n try {\n return intent.getStringExtra(str);\n } catch (Exception e) {\n new StringBuilder(\"getStringExtra exception:\").append(e.getMessage());\n return str2;\n }\n }",
"@Override\n public void onClick(View view) {\n Intent myIntent = new Intent(DriverPrefrActivity.this, SearchParkActivity.class);\n //Creating a bundle\n Bundle bundle = new Bundle();\n //Adding values to bundle\n bundle.putString(\"driverlargecar\", String.valueOf(largecar));\n bundle.putString(\"drivertype\", String.valueOf(type));\n bundle.putString(\"driverprice\", String.valueOf(price));\n bundle.putString(\"driverdistancepklot\", String.valueOf(distpklot));\n\n myIntent.putExtra(\"mybundle\", bundle);\n startActivity(myIntent);\n }",
"private void initInstances(View rootView) {\n\n value = getActivity().getIntent().getStringExtra(\"x\");\n\n\n\n\n\n\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_item_details);\n SetActionBarTitle(actionBarTitle);\n\n// if(savedInstanceState != null){\n// savedInstanceState.getBundle(bundle);\n// }\n\n imageDetail = findViewById(R.id.image_detail);\n titleDetail = findViewById(R.id.title_detail);\n descriptionDetail = findViewById(R.id.description_detail);\n priceDetail = findViewById(R.id.price_detail);\n\n imageUrl = getIntent().getStringExtra(imageUrl);\n Glide.with(this).load(imageUrl).into(imageDetail);\n titleDetail.setText(getIntent().getStringExtra(title));\n descriptionDetail.setText(getIntent().getStringExtra(description));\n priceDetail.setText(getIntent().getStringExtra(price));\n\n }",
"private void BundleData(Intent intent) {\n bundle=new Bundle();\n bundle.putString(\"FNAME\",fname);\n bundle.putString(\"LNAME\",lname);\n bundle.putString(\"LOCALITY\",locality);\n bundle.putString(\"CITY\",city);\n bundle.putInt(\"PINCODE\",pincode);\n bundle.putString(\"TIME_TO_CALL\",timers);\n bundle.putString(\"PHONE\",phone);\n bundle.putString(\"ALTPHONE\",altphone);\n bundle.putString(\"EMAIL\",emailid);\n intent.putExtras(bundle);\n }",
"public Intent getIntent() {\n return mIntent;\n }",
"void openActivity() {\n Intent intent = new Intent(\"myaction\");\n Bundle bundle = new Bundle();\n bundle.putString(\"name\", \"hui\");\n intent.putExtras(bundle);\n startActivityForResult(intent, 1);\n }",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n Log.d(TAG, \"onReceive: -->\");\r\n String str = intent.getDataString();\r\n Toast.makeText(context, \"Got brocastcast\" + intent.getStringExtra(\"Extra\"), Toast.LENGTH_SHORT).show();\r\n }",
"@Override\n public void onClick(View view)\n {\n String PostKey = getSnapshots().getSnapshot(position).getKey();\n String ustazName = getSnapshots().get(position).getName();\n\n\n /* Intent click_post = new Intent(getActivity(),Agency_Details.class);\n click_post.putExtra(\"PostKey\", PostKey);\n //click_post.putExtra(\"Agencyname\", Agencyname);\n startActivity(click_post);*/\n\n\n }",
"void getContext() {\n playerName = getIntent().getExtras().getString(\"player_name\");\n Log.i(\"DiplomaActivity\", \"getContext - Player name: \" + playerName);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_appointment_contents);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n\n Intent intent = getIntent();\n user = (User) intent.getExtras().getSerializable(\"user\");\n chosedTime = intent.getStringExtra(\"chosed_time\");\n chosedDate = intent.getStringExtra(\"chosed_date\");\n lecturerName = intent.getStringExtra(\"lect_name\");\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK && requestCode == REQUEST_CODE) {\n \t settings_params = data.getExtras().getString(\"api_params\");\n Toast.makeText(this, settings_params,\n Toast.LENGTH_LONG).show();\n\n }\n \n }",
"static long m43010a(Intent intent) {\n if (intent == null) {\n return -1;\n }\n return intent.getLongExtra(\"com.tonyodev.fetch.extra_id\", -1);\n }",
"public Intent getIntent() {\n return mIntent;\n }",
"@Override\n protected void onHandleIntent(Intent intent) {\n\n }",
"private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }",
"public void onClick(View v) {\n Intent intent = new Intent(methodWithdrawal.this, AccessCode.class);\r\n amt =Float.parseFloat(getIntent().getExtras().getString(\"amount\"));\r\n acc_type=getIntent().getExtras().getString(\"acc_type\");\r\n pin=Integer.parseInt(getIntent().getExtras().getString(\"pin\"));\r\n acc=Integer.parseInt(getIntent().getExtras().getString(\"acc\"));\r\n method_used=\"access\";\r\n System.out.println(\"pin=\"+pin);\r\n System.out.println(\"amt=\"+amt);\r\n System.out.println(\"acc=\"+acc);\r\n System.out.println(\"acc_type=\"+acc_type);\r\n\r\n\r\n\r\n intent.putExtra(\"amount\",String.valueOf(amt));\r\n intent.putExtra(\"pin\",String.valueOf(pin));\r\n intent.putExtra(\"acc_type\",acc_type);\r\n intent.putExtra(\"acc\",String.valueOf(acc));\r\n intent.putExtra(\"method_used\",method_used);\r\n startActivity(intent);\r\n }",
"@Override\n\tprotected void onHandleIntent(Intent intent) {\n\n\t}",
"private void getDataFromIntent(){\n Bundle extras = getIntent().getExtras();\n //para recibir los datos de una manera segura, se hace una verificacion\n //para ver si los extras no son nulos\n if (extras!=null){\n //en caso de tener datos en el extra, se obtendran y guardaran en variables para su uso deseado\n String data = extras.getString(\"data\");\n boolean isTrue = extras.getBoolean(\"boolean\");\n if (isTrue){\n tvData.setText(data);\n Toast.makeText(this, \"Se recibio un booleano desde MainActivity.\", Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(this, \"No se recibio nada :c\", Toast.LENGTH_LONG).show();\n }\n //en caso de no tener daos dentro dle extra, entrara a esta parte de la condicion\n }else{\n Toast.makeText(this, \"No hay datos extras\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"public String getParameter(String paramName) {\n Log.v(TAG, \"getParameter\");\n return mActivity.getIntent().getStringExtra(paramName);\n }",
"public static void printContent(Intent intent) {\n if (intent == null) {\n logE(\"Intent is null\");\n return;\n }\n\n printContent(intent.getExtras());\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent(context, NewsDetails.class);\n intent.putExtra(\"desc\", desc.getText().toString()); // here key is = desc\n intent.putExtra(\"pubdate\", pub.getText().toString()); //key is = pubdate ,, nd in next activity key must be same\n intent.putExtra(\"title\", txtTitle.getText().toString());\n intent.putExtra(\"shdesc\", shdesc.getText().toString());\n intent.putExtra(\"postedby\", uname.getText().toString());\n context.startActivity(intent);\n }",
"public void setFlag(Intent intent) {\n String flag2;\n if (intent != null && (flag2 = intent.getStringExtra(\"flag\")) != null) {\n flag = flag2;\n Log.e(\"MOBISEC\", \"flag set correctly\");\n }\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tsetContentView(R.layout.secondxml);\r\n\t\tet1=(EditText)findViewById(R.id.editText2);\r\n\t\tIntent i=getIntent();\r\n\t\r\n\ts2= i.getStringExtra(IntentsActivity.EXTRA_MESSAGE);\r\n\t//i.setData(Uri.parse(et1.getText().toString()));\r\n\tToast.makeText(getBaseContext(),s2,Toast.LENGTH_LONG).show();\r\n\t\r\n\t Bundle receive=new Bundle();\r\n\t\treceive=getIntent().getExtras();\r\n\t\tname=receive.getString(\"key\");\r\n\t\tet1.setText(\"Welcome \"+name);\r\n\t \r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t\r\n\t//\tsetResult(RESULT_OK,i);\r\n\t\t//Toast.makeText(getBaseContext(), s2,Toast.LENGTH_SHORT).show();\r\n\t//\tTextView textView = new TextView(this);\r\n\t // textView.setTextSize(40);\r\n\t// textView.setText(\"my page\"+message);\r\n\t\t\r\n\t\t//setContentView(textView);\r\n\t}",
"@Override\n \tpublic void onReceive(Context context, Intent intent)\n \t{\n \tMediaInfoArtist = intent.getStringExtra(\"artist\");\n \tMediaInfoAlbum = intent.getStringExtra(\"album\");\n \tMediaInfoTrack = intent.getStringExtra(\"track\");\n \tMediaInfoNeedsUpdate = true;\n \tLog.d(\"OLV Music\",\"Artist: \"+MediaInfoArtist+\", Album: \"+MediaInfoAlbum+\" and Track: \"+MediaInfoTrack);\n \t}",
"@Override\n\tprotected void onHandleIntent(Intent arg0) {\n\t\t\n\t}",
"public void intentHandler() {\n Intent intent = getIntent();\n if (intent.hasExtra(\"DATA\")) {\n data = (String[]) getIntent().getSerializableExtra(\"DATA\");\n recievedPosition = (int) getIntent().getSerializableExtra(\"POS\");\n if(recievedPosition != 0){\n IOException e = new IOException();\n try {\n itemArrAdapt.updateItem(recievedPosition, data, e);\n this.setPrefs();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }\n } else {\n // Start Normal\n }\n }",
"@Override\n public void onClick(View v) {\n\n Intent Chat_Intent = new Intent(getActivity(), com.example.jason.barterworld.ChatActivity.class);\n\n Chat_Intent.putExtra(\"msg_key\",msg_key);\n\n startActivity(Chat_Intent);\n\n\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n intent = getIntent();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_search);\n\n\n// Intent intent =getIntent();\n// Bundle bundle =intent.getExtras();\n//\n// if(bundle!=null)\n// {\n// type = getIntent().getExtras().get(\"Admin\").toString();\n// key=getIntent().getExtras().get(\"key\").toString();\n// }\n\n\n type = getIntent().getStringExtra(\"Admin\");\n key=getIntent().getStringExtra(\"key\");\n\n\n\n\n\n inputText =findViewById(R.id.search_book_name);\n searchbtn =findViewById(R.id.search_btn);\n searchList=findViewById(R.id.search_list);\n\n searchList.setLayoutManager(new LinearLayoutManager(SearchActivity.this));\n\n searchbtn.setOnClickListener(new View.OnClickListener()\n {\n @Override\n public void onClick(View view)\n {\n searchinput = inputText.getText().toString();\n onStart();\n }\n });\n\n }",
"@Override\n public void onClick(View view) {\n\n Intent Main_Save_Intent = new Intent(getApplicationContext(),PingTestSetup.class);\n Bundle Main_Save_Bundle = new Bundle();\n Main_Save_Bundle.putSerializable(\"Play_TC_List\",Play_TC_List);\n Main_Save_Intent.putExtras(Main_Save_Bundle);\n startActivity(Main_Save_Intent);\n\n\n }",
"@Override\n public void onClick(View v) {\n Referinta.Verset = v.getId();\n\n Intent intent = new Intent(getContext(), TextActivity.class);\n // 2. put key/value data\n\n // intent.putExtra(\"referinta\", referinta );\n // intent.putExtra(\"message\", capitole[1]);\n\n // 3. or you can add data to a bundle\n\n\n // 5. start the activity\n startActivity(intent);\n // finish();\n\n }",
"@Override\n public void onClick(View v) {\n GREETER=edit.getText().toString();\n\n //Acceder al segundo Activity y mandarle un string\n Intent intent=new Intent(MainActivity.this,SecondActivity.class);\n intent.putExtra(\"greeter\",GREETER); //ID + dato a enviar a Second Acitivty\n startActivity(intent);\n }",
"private void m56319ab(Intent intent) {\n AppMethodBeat.m2504i(41901);\n boolean booleanExtra = intent.getBooleanExtra(\"key_create_succ\", false);\n String stringExtra = intent.getStringExtra(\"key_card_no\");\n String stringExtra2 = intent.getStringExtra(\"key_card_type\");\n C4990ab.m7417i(this.TAG, \"create succ: %s\", Boolean.valueOf(booleanExtra));\n if (booleanExtra) {\n m56322b(stringExtra, true, stringExtra2);\n }\n AppMethodBeat.m2505o(41901);\n }",
"@Override\n public void OnActivityResultReceived(int requestCode, int resultCode, Intent data) {\n\n }",
"private Order getIntentData(Intent intent) {\n\t\treturn intent != null ? (Order) intent\n\t\t\t\t.getSerializableExtra(TarrifActivity.TICKET_CONTIANS_ORDER_SERIALIZABLE_KEY)\n\t\t\t\t: null;\n\t}",
"private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }",
"@Override\r\nprotected void onNewIntent(Intent intent) {\n\tsuper.onNewIntent(intent);\r\nSystem.out.println(\"onNewIntent\");\r\n}",
"@Override\n protected void onResume() {\n CustomLog.e(\"AA\", \"FDFDSF\");\n intent1 = getIntent();\n if (intent1 != null) {\n if (intent1.getStringExtra(\"key\").equals(\"1\"))\n ;\n // setSelect(pagecount);\n else {\n setSelect(1);\n intent1.putExtra(\"key\", \"1\");\n }\n }\n\n super.onResume();\n }",
"public void submit(){\n\n Intent intentFinish = new Intent(MainActivity.this,Finish.class);\n Intent data = getIntent();\n String name = (String) data.getSerializableExtra(\"name\");\n String number = (String) data.getSerializableExtra(\"number\");\n intentFinish.putExtra(\"name\", name);\n intentFinish.putExtra(\"number\", number);\n startActivity(intentFinish);\n\n }",
"@Override\n public void onClick(View ve) {\n Intent intent = new Intent(MainActivity.this, MainActivity2.class);\n\n // añadimos un valor extra al intent, en este caso el texto que haya en el text view\n intent.putExtra(Values.CLAVE_INTENT, input.getText().toString());\n\n // intent.putExtra(Values.CLAVE_INTENT, getText(R.string.helloWorld));\n\n // cambiamos de activity esperando un resultado\n // deja la activity en pausa hasta que devuelva un resultCode esperado (un numero definido en la clase values)\n startActivityForResult(intent, Values.REQ_ACT_2);\n\n }",
"private void getAndSetIncomingIntent(){\n if (getIntent().hasExtra(\"asso\")) {\n Log.d(TAG, getIntent().getStringExtra(\"asso\"));\n edt_asso_name.setText(getIntent().getStringExtra(\"asso\"));\n }\n if (getIntent().hasExtra(\"school\")) {\n edt_school.setText(getIntent().getStringExtra(\"school\"));\n }\n if (getIntent().hasExtra(\"purpose\")) {\n edt_purpose.setText(getIntent().getStringExtra(\"purpose\"));\n }\n if (getIntent().hasExtra(\"link\")) {\n edt_link.setText(getIntent().getStringExtra(\"link\"));\n }\n if (getIntent().hasExtra(\"type\")) {\n selectedSpinnerType = getIntent().getStringExtra(\"type\");\n }\n\n }",
"@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\tIntent intent = new Intent(DeviceActivity.this, sdw.com.CountyActivity.class);// ����������Activity\n\t\t\t\t Bundle bundle = new Bundle(0); \n\t bundle.putString(\"fun1\",transferValue);\n\t Log.e(\"TAG\",transferValue);\n\t bundle.putString(\"search1\",\"btnRunRecord\"); \n\t intent.putExtras(bundle);//can't \n\t\t\t\tstartActivity(intent);\n//\t\t\t\tfinish();\n\t\t\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.about);\n\t\tgetActionBar().setTitle(\"关于AmoMcu\");\n\n\t\tIntent intent = getIntent();\n\t\tString value = intent.getStringExtra(\"testIntent\");\n\n\t\tString help = \"新产品预告:RGB灯泡即将推出,配套Android Apk与源码\"\n\t\t\t\t+ \"字符串显示与hex显示切换,时间可开关,表示收到数据的时间,点击“清除数据”把当前的数据清除掉,\"\n\t\t\t\t+ \"“详情”可显示单独某一项数据,比如ds18b20的温度计.\\r\\n\"\n\t\t\t\t+ \"\tAmoMcu 现专注蓝牙4.0低功耗开发板,\" + \"由三人团队组成,均拥有八至十年的工作经验,\"\n\t\t\t\t+ \"擅长CC2540等单片机的硬、软件开发,\" + \"十年间负责过的产品主要有:基于S3C44B0的电能质量分析仪、\"\n\t\t\t\t+ \"发动机点火分析仪、汽车故障检测仪,NRF9E5无线电池数据采集系统,\"\n\t\t\t\t+ \"2009年开始介入基于S3C6410的产品开发,对wince系统较为熟悉,\"\n\t\t\t\t+ \"2012年开始深入基于Exynos4412的设备开发,\"\n\t\t\t\t+ \"以及基于联发科MTK6575等Android手机终端以及平板开发;\"\n\t\t\t\t+ \"软件上,多年从事Android底层Linux驱动和HAL等驱动开发以及APK开发......\";\n\n\t\tTextView tv = (TextView) findViewById(R.id.about_text_help);\n\t\ttv.setText(help);\n\t}",
"@Override\n public void onClick(View v) {\n\n Intent i = new Intent(context, DetailActivity.class); //create intent to switch screen\n\n //trying to place movie into putExtra by putting it into Parcelable value (bc method can't take movie object)\n //we use Parcelable (go to AndroidStudio ref. where they have the code to allow u to use Parceler library\n //essentially, you place the implementation code into buildgradle file\n i.putExtra(\"movie\", Parcels.wrap(movie));\n //add @Parcel to Movie class and add empty constructor as shown in AU (android U) page + empty constructor\n //now you can go to DetailActivity to retrieve the whole movie object just by using an intent\n\n context.startActivity(i);\n\n }",
"public void run() {\n Intent intent = new Intent(MainActivity.this, Summit.class);\n String description = woeid.getWoeid();\n intent.putExtra(EXTRA_MESSAGE, description);\n // Log.d(\"Long\", description);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tputExtra();\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void onReceive(Context context, Intent intent) {\n\r\n mOutputTextView.setText(intent.getExtras().getString(Intent.EXTRA_TEXT));\r\n }",
"private void getMoviesData() {\n movieId = getIntent().getIntExtra(MOVIE_ID, 0);\n }",
"protected abstract Intent getIntent();",
"@Override\n public void onReceive(Context context, Intent intent) {\n\n if (intent != null) {\n String action = intent.getAction();\n if (action.equals(Constants.ACTION_DIFF) || action.equals(Constants.ACTION_SUM) ) {\n String text = intent.getStringExtra(Constants.INTENT_KEY);\n Log.d(Constants.RECEIVER_TAG, \"Result for \"+ action +\" is : \" + text);\n recv++;\n }\n }\n }",
"@Override\n public void onClick(View v) {\n Bundle extras = getIntent().getExtras();\n if (extras != null) {\n str = extras.getString(\"data_to_be_sent\") + \"\\r\\n\" + answer.getText().toString() ;\n }\n Intent intent = new Intent(getBaseContext(), Question4.class);\n intent.putExtra(\"data_to_be_sent\",str);\n startActivity(intent);\n }",
"@Override\n public void onMessageReceived(MessageEvent messageEvent) {\n\n if( messageEvent.getPath().equalsIgnoreCase(\"/0\")) {\n String value = new String(messageEvent.getData(), StandardCharsets.UTF_8);\n Intent intent = new Intent(this, MainActivity.class );\n\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n //you need to add this flag since you're starting a new activity from a service\n String string = value;\n String[] parts = string.split(\",\");\n String part1 = parts[0];\n String part2 = parts[1];\n String part3 = parts[2];\n\n\n intent.putExtra(\"0\", part1);\n intent.putExtra(\"1\", part2);\n intent.putExtra(\"2\", part3);\n startActivity(intent);\n } else {\n super.onMessageReceived( messageEvent );\n }\n\n }",
"public java.util.Map getExtra(int status) throws android.os.RemoteException;",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n ml = getSharedPreferences(\"musicList\", Context.MODE_PRIVATE);\n Intent receivem = getIntent();\n\n received = receivem.getIntExtra(\"MUS\",0);\n\n if(received==1)\n {\n MusKey=\"MUSICONE\";\n\n }\n\n if(received==2)\n {\n MusKey=\"MUSICTWO\";\n Toast.makeText(getApplicationContext(), \"Its shit\",\n Toast.LENGTH_SHORT).show();\n\n }\n if(received==3)\n {\n MusKey=\"MUSICTHREE\";\n }\n if(received==4)\n {\n MusKey=\"MUSICFOUR\";\n }\n\n if(received==9)\n {\n MusKey=\"EASYMUSIC\";\n }\n init_phone_music_grid();\n }",
"@Override\n public void onReceive(Context context, Intent intent) {\n // TODO Auto-generated method stub\n Log.d(TAG, \"got it\");\n }",
"public void onCreate(Bundle bundle) {\n super.onCreate(bundle);\n Intent intent = getIntent();\n if (intent != null) {\n this.Z = intent.getStringExtra(\"extra_deep_link_ots\");\n this.Y = intent.getStringExtra(\"extra_deep_link_email\");\n }\n }",
"private void handleIntent() {\n // Get the intent set on this activity\n Intent intent = getIntent();\n\n // Get the uri from the intent\n Uri uri = intent.getData();\n\n // Do not continue if the uri does not exist\n if (uri == null) {\n return;\n }\n\n // Let the deep linker do its job\n Bundle data = mDeepLinker.buildBundle(uri);\n if (data == null) {\n return;\n }\n\n // See if we have a valid link\n DeepLinker.Link link = DeepLinker.getLinkFromBundle(data);\n if (link == null) {\n return;\n }\n\n // Do something with the link\n switch (link) {\n case HOME:\n break;\n case PROFILE:\n break;\n case PROFILE_OTHER:\n break;\n case SETTINGS:\n break;\n }\n\n String msg;\n long id = DeepLinker.getIdFromBundle(data);\n if (id == 0) {\n msg = String.format(\"Link: %s\", link);\n } else {\n msg = String.format(\"Link: %s, ID: %s\", link, id);\n }\n\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }",
"String getString(String bundleKey);",
"private static int m9364v(Intent intent, String str) {\n int i = -10000;\n if (intent == null) {\n return i;\n }\n try {\n return intent.getIntExtra(str, -10000);\n } catch (Exception e) {\n new StringBuilder(\"getIntExtra exception:\").append(e.getMessage());\n return i;\n }\n }",
"public void GoToMain() {\n\t \t Intent intent = new Intent(this, MainActivity.class);\n\t \t intent.putExtra(\"Test value\", testList);\n\t \t startActivity(intent);\n\t }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(ScannerActivity.this,\"Redirecting...\",Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(ScannerActivity.this, ScannerResult.class);\n assignObjValue(laptopCheckOutInfoList, key);\n intent.putExtra(\"laptop_record_info\", laptopCheckOutInfo); //return the object li as a serialized object\n startActivity(intent);\n }",
"public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Restaurants item =(Restaurants)list.getItemAtPosition(position);\n Intent intent = new Intent(getBaseContext(),listItem.class);\n if(item != null) {\n String res_key = item.getKey();\n intent.putExtra(\"restaurant_key\", res_key);\n }\n startActivity(intent);\n\n }",
"public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n Restaurants item =(Restaurants)list.getItemAtPosition(position);\n Intent intent = new Intent(getBaseContext(),listItem.class);\n if(item != null) {\n String res_key = item.getKey();\n intent.putExtra(\"restaurant_key\", res_key);\n }\n startActivity(intent);\n\n }",
"@Override\n public void onClick(DialogInterface dialog,\n\n int which) {\n\n Intent i = new Intent(getApplicationContext(), MainActivity.class);\n i.putExtra(\"from_value\", \"enquiry\");\n startActivity(i);\n\n }",
"@Override\n public IBinder onBind(Intent intent) {\n Log.d(LOG_TAG, \"log tag\" + binder);\n return binder;\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"YourValueKey\", array_detailview.get(position));\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n\n// view.getContext().startActivity(new Intent(view.getContext(), DetailActivity.class));\n// context.startActivity(new Intent(context, DetailActivity.class));\n\n\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState)\n {\n Log.d(TAG, \"onCreate() called in InfoActivity\");\n super.onCreate(savedInstanceState);\n\n // read data from intent\n Intent intent = getIntent();\n String reviewMessage = intent.getStringExtra(MainActivity.REVIEW_MESSAGE);\n setContentView(R.layout.activity_info);\n\n // display data read from intent on a text view\n TextView tv = (TextView) findViewById(R.id.reviewMessageTextView);\n tv.setText(reviewMessage);\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.end);\n\t\tcd=(TextView) findViewById(R.id.cd);\n\t\tBundle gt=getIntent().getExtras();\n \t\tg=gt.getString(\"abcd\");\n \t\t\n \t\tcd.setText(g);\n \t\tToast.makeText(getApplicationContext(), \"Call Duration = \"+ g, Toast.LENGTH_SHORT).show();\n \t\t//Toast.makeText(getApplicationContext(), g+ \" :Call duration\", Toast.LENGTH_LONG).show();\n\t\tbh=(Button) findViewById(R.id.bh);\n\t\tbh.setOnClickListener(this);\n\n\t}"
] | [
"0.7639849",
"0.726505",
"0.70740473",
"0.6906844",
"0.69043297",
"0.68314546",
"0.6719572",
"0.6698957",
"0.66099036",
"0.6571819",
"0.64354676",
"0.6402122",
"0.6395963",
"0.6387482",
"0.63814604",
"0.63521385",
"0.6327676",
"0.63237274",
"0.62215483",
"0.62096715",
"0.6195824",
"0.61736715",
"0.6170581",
"0.6164042",
"0.6161785",
"0.6155988",
"0.613426",
"0.6079523",
"0.60606986",
"0.60606986",
"0.60529387",
"0.6051347",
"0.6022737",
"0.6013371",
"0.6005765",
"0.5982092",
"0.5950459",
"0.59236515",
"0.5905409",
"0.59013677",
"0.5899414",
"0.58541816",
"0.58508325",
"0.58455646",
"0.58441776",
"0.582644",
"0.581363",
"0.58087313",
"0.57879776",
"0.578387",
"0.5781508",
"0.5780904",
"0.577655",
"0.5774118",
"0.57652456",
"0.5759222",
"0.57322365",
"0.5726049",
"0.572544",
"0.57234764",
"0.5693464",
"0.5659998",
"0.5652183",
"0.56510144",
"0.56432605",
"0.5640703",
"0.56304866",
"0.5625104",
"0.5617881",
"0.56069374",
"0.5605572",
"0.55909234",
"0.5587091",
"0.5572525",
"0.5561191",
"0.55604887",
"0.55476445",
"0.5544825",
"0.55294263",
"0.5521664",
"0.55215573",
"0.5521497",
"0.55183417",
"0.5516194",
"0.55055696",
"0.55043554",
"0.5502083",
"0.54966986",
"0.5492118",
"0.549182",
"0.548731",
"0.5486239",
"0.5480117",
"0.5476679",
"0.5473746",
"0.5473746",
"0.5471107",
"0.5460968",
"0.545817",
"0.5456573",
"0.5445533"
] | 0.0 | -1 |
Acquire magnetometer event data | @Override
public void onSensorChanged(SensorEvent event) {
if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {
mGeomagnetic = new float[3];
System.arraycopy(event.values, 0, mGeomagnetic, 0, 3);
}
// If we have readings from both sensors then
// use the readings to compute the device's orientation
// and then update the display.
if (mGeomagnetic != null) {
int R = (int) mGeomagnetic[0];
int G = (int) mGeomagnetic[1];
int B = (int) mGeomagnetic[2];
setBackgroundColorDisplay(R, G, B);
Log.d(TAG, "mx : "+mGeomagnetic[0]+" my : "+mGeomagnetic[1]+" mz : "+mGeomagnetic[2]);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void magnetometer(int x, int y, int z, int timestamp) {\n }",
"public void onSensorChanged(SensorEvent event) {\n\t\t\tint type = event.sensor.getType();\n\t\t\tif (type == Sensor.TYPE_ACCELEROMETER) {\n\t\t\t\tlong curTime = System.currentTimeMillis();\n\t\t\t\t// only allow one update every 100ms, otherwise updates\n\t\t\t\t// come way too fast and the phone gets bogged down\n\t\t\t\t// with garbage collection\n\t\t\t\t//Log.d(TAG, \"onSensorChanged(\"+type+\")\");\t\t\t\t\n\t\t\t\tif (lastUpdate == -1 || (curTime - lastUpdate) > 40) {\n\t\t\t\t\tlastUpdate = curTime;\t\t\t\t\n\t\t\t\t\tsynchronized (LOCK){\n\t\t\t\t\t\tmLastAccOrientation = calculateAngle(event);\n\t\t\t\t\t\tmLastSample.x = event.values[0];\n\t\t\t\t\t\tmLastSample.y = event.values[1];\n\t\t\t\t\t\tmLastSample.z = event.values[2];\n\t\t\t\t\t\tmLastSample.angle = mLastAccOrientation.angle;\t\t\n\t\t\t\t\t\t//mLastSample.orientation = mLastAccOrientation.orientation;\n\t\t\t\t\t\tmLastSample.orientation = mLastAccOrientation.rotation*90;\n\t\t\t\t\t\tmLastSample.threshold = mLastAccOrientation.threshold;\n\t\t\t\t\t\tmBuffer = mLastSample.x+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.y+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.z+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.angle+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.orientation+\",\"+\n\t\t\t\t\t\t\t\t mLastSample.threshold;\n\t\t\t\t\t\tif (mShowLog)\n\t\t\t\t\t\t\tLog.d(TAG, mBuffer);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void onSensorChanged(SensorEvent event) {\n try {\n Thread.sleep(16);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n //called when accelerometer senses directional change\n sensorX = event.values[0];\n sensorY = event.values[1];\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n // Send data to phone\n if (count == 5) {\n count = 0;\n// Log.d(\"hudwear\", \"send accel data to mobile...\"\n// + \"\\nx-axis: \" + event.values[0]\n// + \"\\ny-axis: \" + event.values[1]\n// + \"\\nz-axis: \" + event.values[2]\n// );\n// Log.d(\"hudwear\", \"starting new task.\");\n\n if (connected)\n Log.d(\"atest\", \"values: \" + event.values[0] + \", \" + event.values[1] + \", \" + event.values[2]);\n// new DataTask().execute(new Float[]{event.values[0], event.values[1], event.values[2]});\n }\n else count++;\n }\n }",
"@Override\r\n public final void onSensorChanged(SensorEvent event) {\n double a0 = (double) event.values[0];\r\n double a1 = (double) event.values[1];\r\n double a2 = (double) event.values[2];\r\n\r\n double a = sqrt(a0*a0+a1*a1+a2*a2);\r\n\r\n // Do something with this sensor value.\r\n\r\n TextView textView = (TextView) findViewById(R.id.text_box2);\r\n textView.setText(Double.toString(a));\r\n\r\n if(count<size_accels) {\r\n accelerations[count] = a;\r\n times[count] = event.timestamp;\r\n }\r\n count = count + 1;\r\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n // This code is directly taken from the Android website.\n // I used it since the linear accelerometer doesn't seem to work correctly.\n // Without borrowing this code, I would have had no idea how to do this.\n // https://developer.android.com/guide/topics/sensors/sensors_motion.html\n\n final float alpha = 0.8F;\n\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // don't include first 10 pieces of data to make sure sensor is properly adjusted\n if(accuracyCounter>=0) {\n accuracyCounter--;\n } else {\n // Add the information to the dataset.\n dataSet.establishNextDataPoint(\n event.values[0] - gravity[0],\n event.values[1] - gravity[1],\n event.values[2] - gravity[2]);\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n float valueAzimuth = event.values[0];\n float valuePitch = event.values[1];\n\n parent.updateAccelerometer(\n valueAzimuth / maximumRange, -valuePitch / maximumRange);\n\n }",
"@Override public void onSensorChanged(SensorEvent event) \n\t{\n\t\tif (Sensor.TYPE_ACCELEROMETER == event.sensor.getType())\n\t\t{\n\t\t\t//The values provided from the accelerometer are always relative to the default screen orientation which can change\n\t\t\t//from device to device. To alleviate this we are converting into \"screen\" coordinates. This has been taken from\n\t\t\t//the nvidia accelerometer white paper which can be found at : http://developer.download.nvidia.com/tegra/docs/tegra_android_accelerometer_v5f.pdf\n\t\t\tActivity activity = CSApplication.get().getActivity();\n\t\t\tWindowManager windowManager = (WindowManager)activity.getSystemService(Activity.WINDOW_SERVICE);\n\t\t\tint rotationIndex = windowManager.getDefaultDisplay().getRotation();\n\t\t\tAxisSwap axisSwap = m_axisSwapForRotation[rotationIndex];\n\t\t\tfloat fScreenX = ((float)axisSwap.m_negateX) * event.values[axisSwap.m_sourceX];\n\t\t\tfloat fScreenY = ((float)axisSwap.m_negateY) * event.values[axisSwap.m_sourceY];\n\t\t\tfloat fScreenZ = event.values[2];\n\n\t\t\t//the values provided by android are in ms^-2. Accelerometer values are more typically given in\n\t\t\t//terms of \"g\"'s so we are converting here. We are also converting from a x, y and z positive in the\n\t\t\t//left, up and backward directions respectively to right, up and forward directions to be more consistent with iOS.\n\t\t\tfinal float k_gravity = 9.80665f;\n\t\t\tfinal float k_accelerationX = -fScreenX / k_gravity;\n\t\t\tfinal float k_accelerationY = fScreenY / k_gravity;\n\t\t\tfinal float k_accelerationZ = -fScreenZ / k_gravity;\n\t\t\t\n\t\t\t//update acceleration on main thread.\n\t\t\tRunnable task = new Runnable()\n\t\t\t{ \n\t\t\t\t@Override public void run() \n\t\t\t\t{\n\t\t\t\t\tif (true == mbHasAccelerometer && true == mbListening)\n\t\t\t\t\t{\n\t\t\t UpdateAcceleration(k_accelerationX, k_accelerationY, k_accelerationZ);\n\t\t\t }\n\t\t\t\t}\n\t\t\t};\n\t\t\tCSApplication.get().scheduleMainThreadTask(task);\n\t\t}\n\t}",
"private void processAccelerometerData(SensorEvent event) {\n //interval between two data entry should be min SENSOR_DATA_MIN_INTERVAL\n if ((event.timestamp - lastUpdateAccel) < SENSOR_DATA_MIN_INTERVAL_NANOS) {\n return;\n }\n\n float[] values = event.values;\n // Movement\n float x = values[0];\n float y = values[1];\n float z = values[2];\n\n //float accelationSquareRoot = (x * x + y * y + z * z)\n // / (SensorManager.GRAVITY_EARTH * SensorManager.GRAVITY_EARTH);\n\n //if (accelationSquareRoot >= EPSILON_ACC){\n\n lastUpdateAccel = event.timestamp;\n long timestamp = Util.getStartTime() + event.timestamp/Const.NANOS_TO_MILLIS;\n saveAccelerometerData(x, y, z, timestamp);\n //}\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == SENS_ACCELEROMETER && event.values.length > 0) {\n float x = event.values[0];\n float y = event.values[1];\n float z = event.values[2];\n\n latestAccel = (float)Math.sqrt(Math.pow(x,2.)+Math.pow(y,2)+Math.pow(z,2));\n //Log.d(\"pow\", String.valueOf(latestAccel));\n\n }\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy >0) {\n\n Log.d(\"Sensor\", event.sensor.getType() + \",\" + event.accuracy + \",\" + event.timestamp + \",\" + Arrays.toString(event.values));\n\n int newValue = Math.round(event.values[0]);\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n \n if(newValue!=0 && lastTimeSentUnix < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnix = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", latestAccel);\n intent.putExtra(\"TIME\", event.timestamp);\n intent.putExtra(\"ACCEL\", latestAccel);\n\n\n Log.d(\"change\", \"send intent\");\n\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), latestAccel, event.timestamp, event.values);\n }\n }\n\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n storage.writePhoneAccelerometer(new double[]{sensorEvent.values[0], sensorEvent.values[1], sensorEvent.values[2]});\n //System.out.println(\"x: \" + sensorEvent.values[0] + \", y: \" + sensorEvent.values[1] + \", z: \" + sensorEvent.values[2]);\n }",
"@Override\r\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\ttemp_m[0] = event.values[0];\r\n\t\t\t\ttemp_m[1] = event.values[1];\r\n\t\t\t\ttemp_m[2] = event.values[2];\r\n\t\t\t}",
"public void onSensorChanged(SensorEvent event) {\n switch (event.sensor.getType()) {\n case Sensor.TYPE_ACCELEROMETER:\n acceleration_vals = event.values.clone();\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n magnetic_vals = event.values.clone();\n break;\n }\n \n \n // If we have all the necessary data, update the orientation.\n if (acceleration_vals != null && magnetic_vals != null) {\n float[] R = new float[16];\n float[] I = new float[16];\n \n SensorManager.getRotationMatrix(R, I, acceleration_vals, \n magnetic_vals);\n \n float[] orientation = new float[3];\n SensorManager.getOrientation(R, orientation);\n \n acceleration_vals = null;\n magnetic_vals = null;\n \n // Use the pitch to determine whether we are in ID mode or\n // conference mode.\n if (orientation[1] <= -0.2) { // we're in conference mode\n this.setRequestedOrientation(\n ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);\n showScheduleView();\n } else if (orientation[1] >= 0.2) { // we're in ID mode\n this.setRequestedOrientation(\n ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);\n showBadgeView();\n }\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n Sensor mySensor = event.sensor;\n\n //double checking if we are referencing the correct sensor type\n if(mySensor.getType()==Sensor.TYPE_ACCELEROMETER)\n {\n //reading the sensor values\n // x- axis lateral movement\n float x = event.values[0];\n //y axis vertical movement\n float y = event.values[1];\n //z-axis movement in and out of the plane\n float z= event.values[2];\n mAccelLast = mAccelCurrent;\n mAccelCurrent = (float) Math.sqrt((double) (x*x + y*y + z*z));\n float delta = mAccelCurrent - mAccelLast;\n mAccel = mAccel * 0.9f + delta; // perform low-cut filter\n displayAcceleration();\n }\n\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n Sensor sensor=event.sensor;\n mMeasure.setMesureX(event.values[0]);\n mMeasure.setMesureY(event.values[1]);\n mMeasure.setMesureZ(event.values[2]);\n switch(sensor.getType()){\n case Sensor.TYPE_ACCELEROMETER:\n mTextArea.getTextValue1().setText(\"X=\" + (double)Math.round(mMeasure.getMesureX() * 100) / 100);\n mTextArea.getTextValue2().setText(\"Y=\" + (double)Math.round(mMeasure.getMesureY() * 100) / 100);\n mTextArea.getTextValue3().setText(\"Z=\" + (double)Math.round(mMeasure.getMesureZ() * 100) / 100);\n System.out.println(\"\\n\");\n System.out.println(\"Acceleration measure\\n\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]+\" y=\"+event.values[1]+\" z=\"+event.values[2]);\n System.out.println(\"\\n\");\n break;\n case Sensor.TYPE_MAGNETIC_FIELD:\n mTextArea.getTextValue1().setText(\"X=\" + (double)Math.round(mMeasure.getMesureX()* 100) / 100);\n mTextArea.getTextValue2().setText(\"Y=\" + (double)Math.round(mMeasure.getMesureY() * 100) / 100);\n mTextArea.getTextValue3().setText(\"Z=\" + (double)Math.round(mMeasure.getMesureZ() * 100) / 100);\n System.out.println(\"\\n\");\n System.out.println(\"Magnetic field measure\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]+\" y=\"+event.values[1]+\" z=\"+event.values[2]);\n System.out.println(\"\\n\");\n break;\n case Sensor.TYPE_PROXIMITY:\n if (mMeasure.getMesureX()==0){\n mTextArea.getTextValue1().setText(\"Object detected\");\n mTextArea.getTextValue1().setBackgroundColor(Color.GREEN);\n } else {\n mTextArea.getTextValue1().setText(\"no object detected\");\n mTextArea.getTextValue1().setBackgroundColor(0xffffffff);\n }\n //mTextArea.getTextValue1().setText(\"\"+mMeasure.getMesureX());\n\n System.out.println(\"\\n\");\n System.out.println(\"Proximity measure\\n\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]);\n System.out.println(\"\\n\");\n break;\n case Sensor.TYPE_LIGHT:\n mTextArea.getTextValue1().setText(\"\" + (double)Math.round(mMeasure.getMesureX() * 100) / 100);\n System.out.println(\"\\n\");\n System.out.println(\"Luminosity measure\\n\");\n System.out.println(\"time of the new measured value= \"+event.timestamp+ \"\\n\"+\"x=\"+event.values[0]);\n System.out.println(\"\\n\");\n }\n }",
"public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER && event.sensor.getType() != Sensor.TYPE_GYROSCOPE)\n return;\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n sensorCount++;\n\n if (sensorFirstRead) {\n nanotime = System.nanoTime();\n sensorFirstRead = false;\n } else {\n\n if (sensorCount > 0 && sensorCount % 10 == 0) {\n differenceNanoTime = System.nanoTime() - nanotime;\n if (differenceNanoTime > sensorCounterIntervalDelay) {\n differenceSeconds = (double) differenceNanoTime / 1000000000f;\n\n sensorAverageCount = sensorCount / differenceSeconds;\n sensorAverageCountTextView.setText(String.format(\"Read/s: %.2f\", sensorAverageCount));\n\n if (sensorFirstAverageCycle || Math.abs(sensorAverageCount - accValuesLimit * 2) > accValuesLimit * 0.2) {\n if (sensorFirstAverageCycle)\n sensorFirstAverageCycle = false;\n\n accValuesLimit = (int) sensorAverageCount / 2;\n gyroValuesLimit = accValuesLimit / 2;\n sensorCountLimitTextView.setText(String.format(\"Sensor count limit: %d\", accValuesLimit));\n\n stats.get(\"accX\").setLimit(accValuesLimit);\n stats.get(\"accY\").setLimit(accValuesLimit);\n stats.get(\"accZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeZ\").setLimit(accValuesLimit);\n stats.get(\"accDegreeX\").setLimit(accValuesLimit);\n stats.get(\"accDegreeY\").setLimit(accValuesLimit);\n stats.get(\"accTotalAcceleration\").setLimit(accValuesLimit);\n stats.put(\"gyroX\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroY\", new StatisticList(gyroValuesLimit));\n stats.put(\"gyroZ\", new StatisticList(gyroValuesLimit));\n }\n\n sensorCount = 0;\n nanotime = System.nanoTime();\n }\n }\n }\n }\n\n if(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n\n mAccelerometerSensorX = event.values[0];\n mAccelerometerSensorY = event.values[1];\n mAccelerometerSensorZ = event.values[2];\n\n mAccelerometerTotalAcceleration = Math.sqrt(Math.pow(mAccelerometerSensorX, 2) + Math.pow(mAccelerometerSensorY, 2) + Math.pow(mAccelerometerSensorZ, 2));\n\n stats.get(\"accX\").addValue(mAccelerometerSensorX);\n stats.get(\"accY\").addValue(mAccelerometerSensorY);\n stats.get(\"accZ\").addValue(mAccelerometerSensorZ);\n stats.get(\"accTotalAcceleration\").addValue(mAccelerometerTotalAcceleration);\n\n tmp_y = stats.get(\"accY\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage(); // g\n tmp_x = stats.get(\"accX\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n tmp_z = stats.get(\"accZ\").getAverage() / stats.get(\"accTotalAcceleration\").getAverage();\n\n mRotationDegreeZ = Math.asin(tmp_x) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeZ))\n mRotationDegreeZ = stats.get(\"accDegreeZ\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeX = Math.asin(tmp_z) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeX))\n mRotationDegreeX = stats.get(\"accDegreeX\").getAverage() > 0 ? 90 : -90;\n\n mRotationDegreeY = Math.asin(tmp_y) * 180 / Math.PI;\n if (Double.isNaN(mRotationDegreeY))\n mRotationDegreeY = stats.get(\"accDegreeY\").getAverage() > 0 ? 90 : -90;\n\n stats.get(\"accDegreeZ\").addValue(mRotationDegreeZ);\n stats.get(\"accDegreeX\").addValue(mRotationDegreeX);\n stats.get(\"accDegreeY\").addValue(mRotationDegreeY);\n\n updateLog(Sensor.TYPE_ACCELEROMETER);\n }\n else\n if(event.sensor.getType()==Sensor.TYPE_GYROSCOPE)\n {\n mGyroX = event.values[0];\n mGyroY = event.values[1];\n mGyroZ = event.values[2];\n\n stats.get(\"gyroX\").addValue(mGyroX);\n stats.get(\"gyroY\").addValue(mGyroY);\n stats.get(\"gyroZ\").addValue(mGyroZ);\n\n updateLog(Sensor.TYPE_GYROSCOPE);\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n // TODO Auto-generated method stub\n int sensorType = event.sensor.getType();\n\n //values[0]:X轴,values[1]:Y轴,values[2]:Z轴\n float[] values = event.values;\n\n if(sensorType == Sensor.TYPE_ACCELEROMETER){\n\n /*监听任一轴的加速度大于14的时候,\n *\n */\n if((Math.abs(values[0])>14||Math.abs(values[1])>14||Math.abs(values[2])>14)){\n num++;\n //摇动手机后,设置button上显示的字为空\n text.setText(\"摇了\"+num+\"下\");\n\n //摇动手机后,再伴随震动提示~~\n vibrator.vibrate(500);\n }\n }\n }",
"@Override\n public final void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n accx = event.values[0];\n accy = event.values[1];\n accz = event.values[2];\n }else if (event.sensor.getType() == Sensor.TYPE_GYROSCOPE) {\n gyx = event.values[0];\n gyy = event.values[1];\n gyz = event.values[2];\n } else if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {\n magx = event.values[0];\n magy = event.values[1];\n magz = event.values[2];\n }\n }",
"@Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);",
"@Override\n\tpublic void onSensorChanged( SensorEvent event )\n\t{\n\t\tfloat y = -event.values[ 0 ] / GRAVITY;\n\t\tfloat x = event.values[ 1 ] / GRAVITY;\n\t\tfloat z = event.values[ 2 ] / GRAVITY;\n\t\t\n\t\tx = Math.abs(x);\n\n\t\t//Log.d( \"Control\", String.format( \"%+6f, %+6f, %+6f\", x, y, z ) );\n\n\t\t// The x component gives us tilt forward / backward\n\t\tx -= 0.5;\n\t\tx *= 200;\n\t\tif ( Math.abs(x) < 10 ) x = 0;\n\n\t\t// The y component gives us steering\n\t\ty *= 50;\n\t\tif ( Math.abs(y) < 10 ) y = 0;\n\n\t\tfloat\n\t\t\t\tmotorL = x + y,\n\t\t\t\tmotorR = x - y;\n\n\t\t//Log.d( \"Control\", String.format( \"%+6f, %+6f, %+6f\", motorL, motorR, 0f ) );\n\n\t\t// Clamp the values to [-100, 100]\n\t\tif ( motorL < -100 || motorL > 100 )\n\t\t{\n\t\t\tmotorL -= motorL % 100;\n\t\t}\n\t\tif ( motorR < -100 || motorR > 100 )\n\t\t{\n\t\t\tmotorR -= motorR % 100;\n\t\t}\n\t\t\n\t\tmovingAverageX = (movingAverageAlpha * motorL) + (1.0f - movingAverageAlpha) * movingAverageX;\n\t\tmovingAverageY = (movingAverageAlpha * motorR) + (1.0f - movingAverageAlpha) * movingAverageY;\n\n\t\tcallbackTarget.onControlEventResult( (int) movingAverageX, (int) movingAverageY, 0 );\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n mAccelerometer = event.values;\n }\n if (event.sensor.getType() == Sensor.TYPE_MAGNETIC_FIELD) {\n mGeomagnetic = event.values;\n }\n\n if (mAccelerometer != null && mGeomagnetic != null) {\n float R[] = new float[9];\n float I[] = new float[9];\n boolean success = SensorManager.getRotationMatrix(R, I, mAccelerometer, mGeomagnetic);\n if (success) {\n float orientation[] = new float[3];\n SensorManager.getOrientation(R, orientation);\n // at this point, orientation contains the azimuth(direction), pitch and roll values.\n azimuth = 180*orientation[0] / Math.PI;\n double pitch = 180*orientation[1] / Math.PI;\n double roll = 180*orientation[2] / Math.PI;\n\n // Toast.makeText(getApplicationContext(),azimuth+\"--\",Toast.LENGTH_SHORT).show();\n }\n }\n }",
"public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);",
"@Override\n public void onSensorChanged(SensorEvent event) {\n long now = SystemClock.elapsedRealtime();\n\n long deltaMs = 0;\n if (mLastUpdateTS != 0) {\n deltaMs = now - mLastUpdateTS;\n if (mUpdateTargetMs > 0 && deltaMs < mUpdateTargetMs) {\n // New sample is arriving too fast. Discard it.\n return;\n }\n }\n\n // Format and post message for the emulator.\n float[] values = event.values;\n final int len = values.length;\n\n mChangeMsg.order(getEndian());\n mChangeMsg.position(0);\n mChangeMsg.putInt(getType());\n mChangeMsg.putFloat(values[0]);\n if (len > 1) {\n mChangeMsg.putFloat(values[1]);\n if (len > 2) {\n mChangeMsg.putFloat(values[2]);\n }\n }\n postMessage(ProtocolConstants.SENSORS_SENSOR_EVENT, mChangeMsg);\n\n // Computes average update time for this sensor and average globally.\n if (mLastUpdateTS != 0) {\n if (mGlobalAvgUpdateMs != 0) {\n mGlobalAvgUpdateMs = (mGlobalAvgUpdateMs + deltaMs) / 2;\n } else {\n mGlobalAvgUpdateMs = deltaMs;\n }\n }\n mLastUpdateTS = now;\n\n // Update the UI for the sensor, with a static throttling of 10 fps max.\n if (hasUiHandler()) {\n if (mLastDisplayTS != 0) {\n long uiDeltaMs = now - mLastDisplayTS;\n if (uiDeltaMs < 1000 / 4 /* 4fps in ms */) {\n // Skip this UI update\n return;\n }\n }\n mLastDisplayTS = now;\n\n mValues[0] = values[0];\n if (len > 1) {\n mValues[1] = values[1];\n if (len > 2) {\n mValues[2] = values[2];\n }\n }\n mValue = null;\n\n Message msg = Message.obtain();\n msg.what = SENSOR_DISPLAY_MODIFIED;\n msg.obj = MonitoredSensor.this;\n notifyUiHandlers(msg);\n }\n\n if (DEBUG) {\n long now2 = SystemClock.elapsedRealtime();\n long processingTimeMs = now2 - now;\n Log.d(TAG, String.format(\"glob %d - local %d > target %d - processing %d -- %s\",\n mGlobalAvgUpdateMs, deltaMs, mUpdateTargetMs, processingTimeMs,\n mSensor.getName()));\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n timestamp = event.timestamp;\n gyroX = event.values[0];\n gyroY = event.values[1];\n gyroZ = event.values[2];\n\n this.setChanged();\n this.notifyObservers(Sensor.TYPE_GYROSCOPE);\n }",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tint sensorType = event.sensor.getType(); \n //values[0]:X轴,values[1]:Y轴,values[2]:Z轴 \n float[] values = event.values; \n if (sensorType == Sensor.TYPE_ACCELEROMETER) \n { \n if ((Math.abs(values[0]) > 17 || Math.abs(values[1]) > 17 || Math \n .abs(values[2]) > 17)) \n { \n Log.d(\"sensor x \", \"============ values[0] = \" + values[0]); \n Log.d(\"sensor y \", \"============ values[1] = \" + values[1]); \n Log.d(\"sensor z \", \"============ values[2] = \" + values[2]); \n Intent intent = new Intent(this, MapActivity.class);\n startActivity(intent);\n //摇动手机后,再伴随震动提示~~ \n vibrator.vibrate(500); \n } \n \n } \n\t}",
"@Override\n public void onSensorChanged (SensorEvent event) {\n\n Sensor mySensor = event.sensor;\n\n if (mySensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n float x = event.values[0];\n float y = event.values[1];\n float z = event.values[2];\n\n// output.setText(\"x=\" + x + \"y=\" + y + \"z=\" + z);\n // Log.i(\"acc\",(\"x=\" + x + \"y=\" + y + \"z=\" + z));\n// try {\n// String value=String.valueOf(x)+\",\"+String.valueOf(y)+\",\"+ String.valueOf(z);\n// // outvalue.write(value.getBytes());\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// Log.i(\"acc\", Float.toString(x) + Float.toString(y)+Float.toString(z));\n\n }\n }",
"@Override\n\tpublic void onSensorChanged(SensorEvent se) {\n\t\teventIesim++;\n\t\tif(eventIesim == THRESHOLD_EVENTS)\n\t\t{\n\n\t\t\tswitch (se.sensor.getType())\n\t\t\t{\n\t\t\t\tcase Sensor.TYPE_ACCELEROMETER:\n\t\t\t\t{\n\t\t\t\t\taccelerometerValues = se.values.clone();\n\t\t\t\t\tnew ListenerThread(accelerometerValues,delta_orientation,context,gps).start(); // use the last orientation set\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase Sensor.TYPE_MAGNETIC_FIELD:\n\t\t\t\t{\n\t\t\t\t\tgeomagneticMatrix = se.values.clone();\n\t\t\t\t\tsensorReady = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t} \n\n\t\t\tif (geomagneticMatrix != null && accelerometerValues != null && sensorReady) \n\t\t\t{\n\t\t\t\tsensorReady = false;\n\n\t\t\t\tfloat[] R = new float[16];\n\t\t\t\tfloat[] I = new float[16];\n\n\t\t\t\tSensorManager.getRotationMatrix(R, I, accelerometerValues, geomagneticMatrix);\n\n\t\t\t\tfloat[] actual_orientation = new float[3];\n\t\t\t\tSensorManager.getOrientation(R, actual_orientation); // lastorientation filled with orientation in radiant\n\t\t\t\t\n\t\t\t\tdelta_orientation[0]= (delta_orientation[0] > actual_orientation[0]) ? (delta_orientation[0] - actual_orientation[0]) : (actual_orientation[0] - delta_orientation[0]);\n\t\t\t\tdelta_orientation[1]= (delta_orientation[1] > actual_orientation[1]) ? (delta_orientation[1] - actual_orientation[1]) : (actual_orientation[1] - delta_orientation[1]);\n\t\t\t\tdelta_orientation[2]= (delta_orientation[2] > actual_orientation[2]) ? (delta_orientation[2] - actual_orientation[2]) : (actual_orientation[2] - delta_orientation[2]);\n\n\t\t\t\tLog.i(TAG, \"acceleration with gravity x:\"+accelerometerValues[0]+\" y:\"+accelerometerValues[1]+\" z:\"+accelerometerValues[2]);\n\n\t\t\t\tnew ListenerThread(accelerometerValues,delta_orientation,context,gps).start();\n\n\t\t\t\tLog.i(TAG, \"orientation x:\"+delta_orientation[0]+\" y:\"+delta_orientation[1]+\" z:\"+delta_orientation[2]);\n\t\t\t\t//Toast.makeText(context, \"orientation x:\"+delta_orientation[0]+\" y:\"+delta_orientation[1]+\" z:\"+delta_orientation[2], Toast.LENGTH_SHORT).show();\n\t\t\t\t\n\t\t\t\tdelta_orientation = actual_orientation;\n\t\t\t}\n\t\t\teventIesim = 0;\n\t\t}\n\t\t\n\n\n\t}",
"public interface AccelerometerListener extends SensorEventListener {\n\n void onSensorChanged(SensorEvent var1);\n\n void onAccuracyChanged(Sensor var1, int var2);\n\n void start(Context context, int samplingRate, String queryNumber,String ioPair);\n\n void stop();\n\n}",
"public void onSensorChanged(SensorEvent event)\n {\n if (event.sensor.getType()==Sensor.TYPE_ACCELEROMETER) {\n gravity[0] = event.values[0];\n gravity[1] = event.values[1];\n gravity[2] = event.values[2];\n\n }\n if (event.sensor.getType()==Sensor.TYPE_MAGNETIC_FIELD) {\n geomagnetic[0] = event.values[0];\n geomagnetic[1] = event.values[1];\n geomagnetic[2] = event.values[2];\n\n }\n\n if(SensorManager.getRotationMatrix(_R, null, gravity, geomagnetic)){\n _R = this.opglr.swapRotMatrix(_R);\n }\n\n }",
"@Override\n public void serialEvent(SerialPortEvent oEvent)\n {\n if (oEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {\n try{\n String strIn = br.readLine();\n String[] strPara = strIn.split(\",\");\n if(strPara.length != 2){\n System.out.println(\"[Serial error]: \" + strIn);\n return;\n }\n\n // Check data validaty\n try{\n for(int i=0 ; i<strPara.length ; i++)\n Double.valueOf(strPara[i]);\n }\n catch(Exception e){\n System.out.println(\"[Serial error]: \" + strIn);\n return;\n }\n \n // Update data to window interface\n parent.setEMGData_From_SerialPort(strPara[0], strPara[1]);\n } \n catch (Exception e) {\n e.printStackTrace();\n }\n }\n // Ignore all the other eventTypes, but you should consider the other ones.\n\t}",
"@Override\n public void onReceive(Context context, Intent intent) {\n Log.d(\"ALARMA\", \"alarma\");\n AlarmUtils.scheduleAlarmHeartRate();\n BleDevice device = new BleDevice(new DeviceManager().getDevice().getMacAddress());\n\n device.connect();\n /*\n while(!device.readSteps(new StepsListener() {\n @Override\n public void onStepsRead(int value) {\n Log.d(\"ALARMA\", value+\"\");\n }\n })){\n }\n */\n\n while(!device.readHeartRate(new HeartRateListener() {\n @Override\n public void onHeartRateRead(int value) {\n Log.d(\"ALARMA\", value+\"\");\n\n Measurement measurement = new Measurement(new SessionManager().getId(), value, currentTimeMillis()/1000);\n new ApiHelper().uploadHeartRateMeasure(measurement, new SessionManager().getJWT());\n }\n }));\n }",
"@Override\r\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\r\n\t\tax = - event.values[0] / 7;\r\n\t\tay = event.values[1] / 7;\r\n\t}",
"public void onSensorChanged(SensorEvent event) {\n\t\tif(event.sensor.getType() == Sensor.TYPE_PROXIMITY){\n\t\tproxview.setText(\"\\n\\n\"+\"PROXIMITY\"+\"\\n\"+String.valueOf(event.values[0]));\n\t\t\n\t\t\n\t\t}\n\t\tif(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER){\n\t\t\t\n\t\taccview.setText(\"ACCELEROMETER\"+\"\\n\"+\"X: \"+event.values[0]+\"\\nY: \"+event.values[1]+\"\\nZ: \"+event.values[2]);\n\t\t\n\t\tdouble p = event.values[0];\n\t\tif(p<0.0)\n\t\t{mp.pause();}\n\t\telse{\n\t\t\tif(mp.isPlaying())\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{mp.start();}\n\t\t}\n\t\t\n\t}\n\t\tif(event.sensor.getType() == Sensor.TYPE_LIGHT){\n\t\t\t\n\t\t\tliview.setText(\"LIGHT\"+\"\\n\"+String.valueOf(event.values[0]));\n\t\t\t\n\t\t}\n}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n long currentTimeUnix = System.currentTimeMillis() / 1000L;\n long nSeconds = 30L;\n\n // send heartrate data and create new intent\n if (event.sensor.getType() == SENS_HEARTRATE && event.values.length > 0 && event.accuracy > 0) {\n int newValue = Math.round(event.values[0]);\n\n if(newValue!=0 && lastTimeSentUnixHR < (currentTimeUnix-nSeconds)) {\n lastTimeSentUnixHR = System.currentTimeMillis() / 1000L;\n currentValue = newValue;\n\n Log.d(TAG, \"Broadcast HR.\");\n Intent intent = new Intent();\n intent.setAction(\"com.example.Broadcast\");\n intent.putExtra(\"HR\", event.values);\n intent.putExtra(\"ACCR\", event.accuracy);\n intent.putExtra(\"TIME\", event.timestamp);\n sendBroadcast(intent);\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n\n }\n }\n // also send motion/humidity/step data to know when NOT to interpret hr data\n\n if (event.sensor.getType() == SENS_STEP_COUNTER && event.values[0]-currentStepCount!=0) {\n\n if(lastTimeSentUnixSC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixSC = System.currentTimeMillis() / 1000L;\n currentStepCount = event.values[0];\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n\n }\n\n if (event.sensor.getType() == SENS_ACCELEROMETER) {\n\n if(lastTimeSentUnixACC < (currentTimeUnix-nSeconds)){\n lastTimeSentUnixACC = System.currentTimeMillis() / 1000L;\n\n client.sendSensorData(event.sensor.getType(), event.accuracy, event.timestamp, event.values);\n }\n }\n\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n float azimuth = event.values[0];\n changeVolumeLevel(azimuth, attenuation);\n Log.d(\"CompassService\", String.valueOf(azimuth));\n }",
"public boolean setup() {\n\t\tmakeStream(EVENT, EVENT_BUFFER_SIZE);\n\t\t\n\t\tmakeStream(BAROMETER, BAROMETER_BUFFER_SIZE);\n\t\trocket.barometer.setListener(new MS5611.MS5611Listener() {\n\t\t\t@Override\n\t\t\tpublic void onData(int P /* mbar */, int TEMP /* C */) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(BAROMETER);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + BAROMETER + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeInt(P);\n\t\t\t\t\t\t\tstream.writeInt(TEMP);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + BAROMETER + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(String message) {}\n\t\t});\n\t\t\n//\t\tmakeStream(GYRO, GYRO_BUFFER_SIZE);\n//\t\trocket.gyro.setListener(new ITG3205.ITG3205Listener() {\n//\t\t\t@Override\n//\t\t\tpublic void onDeviceId(byte deviceId) {}\n//\t\t\t\n//\t\t\t@Override\n//\t\t\tpublic void onData(int x, int y, int z, int temperature) {\n//\t\t\t\tif (enabled) {\n//\t\t\t\t\tDataOutputStream stream = out.get(GYRO);\n//\t\t\t\t\t\n//\t\t\t\t\tif (stream == null) {\n//\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + GYRO + \".\");\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n//\t\t\t\t\t\t\tstream.writeInt(x);\n//\t\t\t\t\t\t\tstream.writeInt(y);\n//\t\t\t\t\t\t\tstream.writeInt(z);\n//\t\t\t\t\t\t\tstream.writeInt(temperature);\n//\t\t\t\t\t\t} catch (IOException e) {\n//\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + GYRO + \" values to output stream.\");\n//\t\t\t\t\t\t\te.printStackTrace();\n//\t\t\t\t\t\t\treturn;\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\t@Override\n//\t\t\tpublic void onError(String message) {}\n//\t\t});\n\t\t\n\t\tmakeStream(LOX_PRESSURE, PRESSURE_BUFFER_SIZE);\n\t\trocket.loxPressure.setListener(new P51500AA1365V.P51500AA1365VListener() {\n\t\t\t@Override\n\t\t\tpublic void onVoltage(float voltage) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(LOX_PRESSURE);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + LOX_PRESSURE + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeFloat(voltage);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + LOX_PRESSURE + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\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\tmakeStream(ETHANOL_PRESSURE, PRESSURE_BUFFER_SIZE);\n\t\trocket.ethanolPressure.setListener(new P51500AA1365V.P51500AA1365VListener() {\n\t\t\t@Override\n\t\t\tpublic void onVoltage(float voltage) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(ETHANOL_PRESSURE);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + ETHANOL_PRESSURE + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeFloat(voltage);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + ETHANOL_PRESSURE + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\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\tmakeStream(ENGINE_PRESSURE, PRESSURE_BUFFER_SIZE);\n\t\trocket.enginePressure.setListener(new P51500AA1365V.P51500AA1365VListener() {\n\t\t\t@Override\n\t\t\tpublic void onVoltage(float voltage) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(ENGINE_PRESSURE);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + ENGINE_PRESSURE + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeFloat(voltage);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + ENGINE_PRESSURE + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\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\tmakeStream(ACCELEROMETER, ACCELEROMETER_BUFFER_SIZE);\n\t\trocket.accelerometer.setListener(new ADXL345.ADXL345Listener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onDeviceId(byte deviceId) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onMultiplier(float multiplier) {\n\t\t\t\tbyte[] data = new byte[4];\n\t\t\t\tByteBuffer.wrap(data).putFloat(multiplier);\n\t\t\t\tevent(Event.ACCELEROMETER_MULTIPLIER, data);\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onData(int x, int y, int z) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(ACCELEROMETER);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + ACCELEROMETER + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeInt(x);\n\t\t\t\t\t\t\tstream.writeInt(y);\n\t\t\t\t\t\t\tstream.writeInt(z);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + ACCELEROMETER + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\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\t@Override\n\t\t\tpublic void onError(String message) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tmakeStream(INTERNAL_ACCELEROMETER, ACCELEROMETER_BUFFER_SIZE);\n\t\trocket.internalAccelerometer.setListener(new PhoneAccelerometer.PhoneAccelerometerListener() {\n\t\t\t@Override\n\t\t\tpublic void onPhoneAccelerometer(float x, float y, float z) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(INTERNAL_ACCELEROMETER);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + INTERNAL_ACCELEROMETER + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeFloat(x);\n\t\t\t\t\t\t\tstream.writeFloat(y);\n\t\t\t\t\t\t\tstream.writeFloat(z);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + INTERNAL_ACCELEROMETER + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\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\tmakeStream(LOX_TEMPERATURE, TEMPERATURE_BUFFER_SIZE);\n\t\trocket.loxTemperature.setListener(new MAX31855.MAX31855Listener() {\n\t\t\t@Override\n\t\t\tpublic void onFault(byte fault) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onData(float internal, float thermocouple) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(LOX_TEMPERATURE);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + LOX_TEMPERATURE + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeFloat(internal);\n\t\t\t\t\t\t\tstream.writeFloat(thermocouple);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + LOX_TEMPERATURE + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\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\tmakeStream(IGNITOR_TEMPERATURE, TEMPERATURE_BUFFER_SIZE);\n\t\trocket.ignitorTemperature.setListener(new MAX31855.MAX31855Listener() {\n\t\t\t@Override\n\t\t\tpublic void onFault(byte fault) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onData(float internal, float thermocouple) {\n\t\t\t\tif (enabled) {\n\t\t\t\t\tDataOutputStream stream = out.get(IGNITOR_TEMPERATURE);\n\t\t\t\t\t\n\t\t\t\t\tif (stream == null) {\n\t\t\t\t\t\tApp.log.e(App.TAG, \"Output stream not available for \" + IGNITOR_TEMPERATURE + \".\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstream.writeFloat(App.elapsedTime());\n\t\t\t\t\t\t\tstream.writeFloat(internal);\n\t\t\t\t\t\t\tstream.writeFloat(thermocouple);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tApp.log.e(App.TAG, \"Failed to write \" + IGNITOR_TEMPERATURE + \" values to output stream.\");\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\treturn;\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\treturn true;\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tif (event.sensor.getType() == Sensor.TYPE_LINEAR_ACCELERATION) {\t\n\t\t\t\n\t\t\tfloat x, y, z;\n\t\t\tx = event.values[0];\n\t\t\ty = event.values[1];\n\t\t\tz = event.values[2];\n\t\t\t\n\t\t\tfloat [] first = {x,y,z};\n\t\t\tlast = lowpassFilter(first,last);\n\n\n\t\t\tdouble m = Math.sqrt(last[0] * last[0] + last[1] * last[1] + last[2] * last[2]);\n\n\t\t\t// Inserts the specified element into this queue if it is possible\n\t\t\t// to do so immediately without violating capacity restrictions,\n\t\t\t// returning true upon success and throwing an IllegalStateException\n\t\t\t// if no space is currently available. When using a\n\t\t\t// capacity-restricted queue, it is generally preferable to use\n\t\t\t// offer.\n\n\t\t\ttry {\n\t\t\t\tmAccBuffer.add(new Double(m));\n\n\t\t\t} catch (IllegalStateException e) {\n\n\t\t\t\t// Exception happens when reach the capacity.\n\t\t\t\t// Doubling the buffer. ListBlockingQueue has no such issue,\n\t\t\t\t// But generally has worse performance\n\t\t\t\tArrayBlockingQueue<Double> newBuf = new ArrayBlockingQueue<Double>( mAccBuffer.size() * 2);\n\t\t\t\tmAccBuffer.drainTo(newBuf);\n\t\t\t\tmAccBuffer = newBuf;\n\t\t\t\tmAccBuffer.add(new Double(m));\n\t\t\t}\n\t\t}\n\n\t}",
"private void processGyroData(SensorEvent event){\n //interval between two data entry should be min SENSOR_DATA_MIN_INTERVAL which is millis\n if ((event.timestamp - lastUpdateGyro) < SENSOR_DATA_MIN_INTERVAL_NANOS) { //multiply to convert to millis from nanos\n return;\n }\n\n\n float[] values = event.values;\n\n float axis_x = values[0];\n float axis_y = values[1];\n float axis_z = values[2];\n\n //float gyroscopeRotationVelocity = (float)Math.sqrt(axis_x * axis_x + axis_y * axis_y + axis_z * axis_z);\n //magnitude of gyroscope reading thresholded\n\n //if(gyroscopeRotationVelocity > EPSILON){\n lastUpdateGyro = event.timestamp;\n long timestamp = Util.getStartTime() + event.timestamp/Const.NANOS_TO_MILLIS;\n saveGyroData(axis_x, axis_y, axis_z, timestamp);\n //}\n }",
"@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n super.onDataChanged(dataEvents);\n \n Log.d(TAG, \"onDataChanged: \" + dataEvents);\n \n final List<DataEvent> events = FreezableUtils.freezeIterable(dataEvents);\n \n // Establish a connection using Google API.\n GoogleApiClient googleApiClient = new GoogleApiClient.Builder(this)\n \t.addApi(Wearable.API)\n \t.build();\n\n ConnectionResult connectionResult = googleApiClient.blockingConnect(30, TimeUnit.SECONDS);\n\n if (!connectionResult.isSuccess()) {\n \tLog.e(TAG, \"Failed to connect to GoogleApiClient.\");\n \treturn;\n }\n\n // Attempts to retrieve the data from Android Wear device.\n for (DataEvent event : events) {\n \n final Uri uri = event.getDataItem().getUri();\n final String path = uri!=null ? uri.getPath() : null;\n \n if (\"/dreamforcedata\".equals(path)) {\n \n String PEDOMETERKEY = \"df_pedometer\";\n final DataMap map = DataMapItem.fromDataItem(event.getDataItem()).getDataMap();\n int pedValues = map.getInt(PEDOMETERKEY);\n \n // Stores the value in preferences.\n AID_prefs = getSharedPreferences(AID_OPTIONS, MODE_PRIVATE); // Main preferences variable.\n AID_prefs_editor = AID_prefs.edit();\n AID_prefs_editor.putInt(PEDOMETERKEY, 0); // Stores the retrieved integer value.\n AID_prefs_editor.putBoolean(\"df_isWearDataSent\", true);\n Log.d(TAG, \"PEDOMETER VALUE: \" + pedValues); // LOGGING\n }\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n if (sensorEvent.sensor.getType() == Sensor.TYPE_ACCELEROMETER && s.equals(\"Accelerometre\")) {\n float Ax = sensorEvent.values[0];\n float Ay = sensorEvent.values[1];\n float Az = sensorEvent.values[2];\n\n acce = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Ax = \" + Ax + \" \" + \"\\n Ay = \" + Ay + \" \" + \"\\n Az = \" + Az + \"\\n\";\n\n // Do something with this sensor value .\n sensorTxt.setText(acce);\n Log.d(TAG, \" TimeAcc = \" + sensorEvent.timestamp + \" Ax = \" + Ax + \" \" + \" Ay = \" + Ay + \" \" + \" Az = \" + Az);\n }\n\n //LUMIERE\n if (sensorEvent.sensor.getType() == Sensor.TYPE_LIGHT && s.equals(\"Lumiere\")) {\n // La valeur de la lumière\n float lv = sensorEvent.values[0];\n\n light = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Light value = \" + lv + \"\\n\";\n //On affiche la valeur\n sensorTxt.setText(light);\n }\n\n //PROXIMITE\n if (sensorEvent.sensor.getType() == Sensor.TYPE_PROXIMITY && s.equals(\"Proximite\")) {\n // La valeur de proximité\n float p = sensorEvent.values[0];\n\n proxi = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Proximite value = \" + p + \"\\n\";\n //On affiche la valeur\n sensorTxt.setText(proxi);\n }\n\n //GYROSCOPE\n if (sensorEvent.sensor.getType() == Sensor.TYPE_GYROSCOPE && s.equals(\"Gyroscope\")) {\n // Les valeurs du gyroscope\n float xGyroscope = sensorEvent.values[0];\n float yGyroscope = sensorEvent.values[1];\n float zGyroscope = sensorEvent.values[2];\n\n gyro = \" TimeAcc = \" + sensorEvent.timestamp + \"\\n Valeur du gyroscope \\n Valeur en x = \" + xGyroscope + \" \" + \"\\n Valeur en y = \" + yGyroscope + \" \" + \"\\n Valeur en z = \" + zGyroscope + \"\\n\";\n //On affiche la valeur\n sensorTxt.setText(gyro);\n }\n\n }",
"public void startMeasurement(View view) {\n Button button = (Button) findViewById(R.id.start_button);\r\n\r\n if(!running_measurement) {\r\n mSensorManager.registerListener(this, accel, accel.getMinDelay());\r\n\r\n button.setText(\"Stop\");\r\n }\r\n else{\r\n mSensorManager.unregisterListener(this);\r\n\r\n button.setText(\"Start\");\r\n\r\n TextView textView = (TextView) findViewById(R.id.text_box1);\r\n textView.setText(calculateVertical());\r\n\r\n\r\n //TextView textView = (TextView) findViewById(R.id.text_box1);\r\n File path = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\r\n File filename = new File(path, \"_myfile2.txt\");\r\n String string = \"\";\r\n\r\n try {\r\n FileOutputStream outputStream = new FileOutputStream(filename, false);\r\n int max_i = min(count, size_accels);\r\n for(int i=0; i<max_i; i++) {\r\n string = Long.toString(times[i]);\r\n outputStream.write(string.getBytes());\r\n string = \",\";\r\n outputStream.write(string.getBytes());\r\n string = Double.toString(accelerations[i]);\r\n outputStream.write(string.getBytes());\r\n string = \",\";\r\n outputStream.write(string.getBytes());\r\n }\r\n outputStream.close();\r\n\r\n //textView.setText(Double.toString(accel.getMinDelay()));\r\n\r\n } catch (Exception e) {\r\n //textView.setText(\"Error\");\r\n e.printStackTrace();\r\n }\r\n\r\n Intent intent = new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE);\r\n intent.setData(Uri.fromFile(filename));\r\n sendBroadcast(intent);\r\n //*/\r\n\r\n accelerations = new double[100000];\r\n times = new long[100000];\r\n count = 0;\r\n }\r\n running_measurement = !running_measurement;\r\n\r\n //EditText editText = (EditText) findViewById(R.id.edit_message);\r\n //String message = editText.getText().toString();\r\n\r\n /*\r\n TextView textView = (TextView) findViewById(R.id.text_box1);\r\n if (mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null) {\r\n textView.setText(\"GOOD\");\r\n }\r\n else {\r\n textView.setText(\"NO ACCEL\");\r\n }\r\n */\r\n }",
"private void startReading() {\r\n\r\n isReading = true;\r\n Thread readingThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n while (isReading) {\r\n synchronized (this) {\r\n int ret;\r\n\r\n // Fetch the data here\r\n if(mUsbDeviceConnection != null && mUsbEndpointIn != null){\r\n byte[] bytes = new byte[mUsbEndpointIn.getMaxPacketSize()];\r\n ret = mUsbDeviceConnection.bulkTransfer(mUsbEndpointIn, bytes, bytes.length, 1000);\r\n\r\n if (ret >= 64) {\r\n if(bytes[1] == (byte)0xc8){\r\n // USB_COMMAND_ACK\r\n }\r\n else{\r\n // DATA Frame, bytes[1] should be 0x65\r\n float[] accSensorData = new float[3];\r\n float[] gyroSensorData = new float[3];\r\n float[] magSensorData = new float[3];\r\n\r\n // ACC\r\n accSensorData[0] = byte2float(bytes, 4);\r\n accSensorData[1] = byte2float(bytes, 8);\r\n accSensorData[2] = byte2float(bytes, 12);\r\n\r\n // Gyro\r\n gyroSensorData[0] = byte2float(bytes, 16) * (float)Math.PI / 180.0f;\r\n gyroSensorData[1] = byte2float(bytes, 20) * (float)Math.PI / 180.0f;\r\n gyroSensorData[2] = byte2float(bytes, 24) * (float)Math.PI / 180.0f;\r\n\r\n // Mag, not used so far\r\n magSensorData[0] = (float) (byte2float(bytes, 28) * Math.PI / 180.0f);\r\n magSensorData[1] = (float) (byte2float(bytes, 32) * Math.PI / 180.0f);\r\n magSensorData[2] = (float) (byte2float(bytes, 36) * Math.PI / 180.0f);\r\n\r\n String[] msgData = new String[3];\r\n msgData[0] = String.format(\"%.2f\", accSensorData[0]) + \", \" + String.format(\"%.2f\", accSensorData[1]) + \", \" + String.format(\"%.2f\", accSensorData[2]);\r\n msgData[1] = String.format(\"%.2f\", gyroSensorData[0]) + \", \" + String.format(\"%.2f\", gyroSensorData[1]) + \", \" + String.format(\"%.2f\", gyroSensorData[2]);\r\n msgData[2] = String.format(\"%.2f\", magSensorData[0]) + \", \" + String.format(\"%.2f\", magSensorData[1]) + \", \" + String.format(\"%.2f\", magSensorData[2]);\r\n\r\n Message msg = new Message();\r\n msg.obj = msgData;\r\n msg.what = 0;\r\n mHandler.sendMessage(msg);\r\n }\r\n }\r\n else{\r\n Log.d(TAG, \"No data from USB device.\");\r\n }\r\n }\r\n else{\r\n isReading = false;\r\n Log.d(TAG, \"USB connection is not available.\");\r\n }\r\n }\r\n }\r\n }\r\n });\r\n\r\n Log.d(TAG, \"Start the reading thread here to retrieve sensors(acc, gyro, mag)\");\r\n readingThread.start();\r\n }",
"public void recvSensorEvent(Object data_)\n\t{\n\t\tList<Tuple> event = ConstructSensingEvent((Message) data_) ;\n\t\tmicroLearner.handleSensorEvent(event);\t\t\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\trawSensorValue = Math.round(event.values[0]); \n\t\twhile (rawSensorValue < 0) rawSensorValue += 360;\n\t\tm_azimuth_degrees = rawSensorValue - m_sun_azimuth_degrees;\n\t\twhile (m_azimuth_degrees < 0) m_azimuth_degrees += 360;\n\t\t\n\t\t// get pitch value\n\t\tint rotation = activity.getWindowManager().getDefaultDisplay().getRotation();\n\t\tif ((rotation == 0) || (rotation == 2)) m_pitch_degrees = Math.abs((int)event.values[1]); \n\t\telse m_pitch_degrees = Math.abs((int)event.values[2]);\n\t\t\n\t\t// Update event\n\t\tif (m_parent != null) m_parent.onSensorChanged(event);\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n deltaX = Math.abs(lastX - event.values[0]);\n deltaY = Math.abs(lastY - event.values[1]);\n deltaZ = Math.abs(lastZ - event.values[2]);\n\n // if the change is below 5, it is just plain noise\n if (deltaX < 5)\n deltaX = 0;\n if (deltaY < 5)\n deltaY = 0;\n if (deltaZ < 5)\n deltaZ = 0;\n\n // set the last know values of x,y,z\n lastX = event.values[0];\n lastY = event.values[1];\n lastZ = event.values[2];\n\n vibrate();\n\n }",
"@Override\r\n\t\t\tpublic void onSensorChanged(SensorEvent event)\r\n\t\t\t{\n\t\t\t\tx=event.values[0];\r\n\t\t\t\ty=event.values[1];\r\n\t\t\t\tz=event.values[2];\r\n\t\t\t\t//balle\r\n\t\t\t\tmx-=(int)x;\r\n\t\t\t\tmy+=(int)y;\r\n\t\t\t\tif (mx<40)\r\n\t\t\t\t{\r\n\t\t\t\t\tmx=40;\r\n\t\t\t\t}\r\n\t\t\t\tif (mx>1190)\r\n\t\t\t\t{\r\n\t\t\t\t\tmx=1190;\r\n\t\t\t\t}\r\n\t\t\t\tif (my<50)\r\n\t\t\t\t{\r\n\t\t\t\t\tmy=50;\r\n\t\t\t\t}\r\n\t\t\t\tif (my>700)\r\n\t\t\t\t{\r\n\t\t\t\t\tmy=700;\r\n\t\t\t\t}\r\n\t\r\n\t\t\t\t\t//departBalle\r\n\t\r\n\t\t\t\tdepartBalle.setPos_x(mx);\r\n\t\t\t\tdepartBalle.setPos_y(my);\r\n\t\t\tSystem.out.println(\"\"+mx+\":\"+my);\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t}",
"public void receivedValue(HashMap<Sensor, Double> e) {\n\t\ttry {\n\t\t\tarmIMUAngle = e.get(Sensor.ARM_ANGLE);\n\t\t} catch (NullPointerException error) {\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"Bad Angle Sensor\");\n\t\t}\n\t\ttry {\n\t\t\tcurrentDist = e.get(Sensor.ULTRASONIC_DISTANCE);\n\t\t} catch (NullPointerException error) {\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"Bad Ultrasonic Sensor\");\n\t\t}\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t\taccleration.setText(\"X: \" + event.values[0]+\n\t\t\t\t\t\t\t\"\\n Y: \"+ event.values[1]+\n\t\t\t\t\t\t\t\"\\n Z:\" + event.values[2]);\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() != Sensor.TYPE_ACCELEROMETER)\n return;\n /*\n * record the accelerometer data, the event's timestamp as well as\n * the current time. The latter is needed so we can calculate the\n * \"present\" time during rendering. In this application, we need to\n * take into account how the screen is rotated with respect to the\n * sensors (which always return data in a coordinate space aligned\n * to with the screen in its native orientation).\n */\n\n switch (mDisplay.getRotation()) {\n case Surface.ROTATION_0:\n mSensorX = event.values[0];\n mSensorY = event.values[1];\n break;\n case Surface.ROTATION_90:\n mSensorX = -event.values[1];\n mSensorY = event.values[0];\n break;\n case Surface.ROTATION_180:\n mSensorX = -event.values[0];\n mSensorY = -event.values[1];\n break;\n case Surface.ROTATION_270:\n mSensorX = event.values[1];\n mSensorY = -event.values[0];\n break;\n }\n\n mGLView.updateScene(10*mSensorX,10*mSensorY,10*event.values[2]);\n\n }",
"public void handleSensorEvents(){\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n theta = (float) Math.toDegrees(Math.atan(event.values[1] / event.values[2]));\n\n\n }",
"protected void onResume() {\n sensorManager.registerListener(this, acelerometro, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, magnetometro, SensorManager.SENSOR_DELAY_NORMAL);\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER)\n {\n mGravity = event.values;\n\n float[] g = new float[3];\n g = event.values.clone();\n\n float norm_Of_g = (float) Math.sqrt(g[0] * g[0] + g[1] * g[1] + g[2] * g[2]);\n\n // Normalize the accelerometer vector\n g[0] = g[0] / norm_Of_g;\n g[1] = g[1] / norm_Of_g;\n g[2] = g[2] / norm_Of_g;\n\n int inclination = (int) Math.round(Math.toDegrees(Math.acos(g[2])));\n //Log.d(\"test\", Integer.toString(inclination));\n\n // lower than 70 degree display google map view\n if(inclination<65)\n {\n if(showGoogleMap==false)\n {\n\n showGoogleMap=true;\n ft = getSupportFragmentManager().beginTransaction();\n ft.hide(mBeyondarFragment);\n ft.show(mapFragment);\n ft.commit();\n myLocationButton.setVisibility(View.VISIBLE);\n }\n\n }\n else\n {\n\n if(showGoogleMap==true)\n {\n showGoogleMap=false;\n ft = getSupportFragmentManager().beginTransaction();\n ft.hide(mapFragment);\n ft.show(mBeyondarFragment);\n ft.commit();\n myLocationButton.setVisibility(View.GONE);\n }\n // display AR view\n }\n /*if (inclination<25||inclination>155)\n {\n Log.d(\"test\", \"downwards\");\n }\n else\n {\n Log.d(\"test\", \"upwards\");\n }*/\n }\n\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n double aX = event.values[0];\n double aY = event.values[1];\n double aZ = event.values[2];\n\n if(!isPowerConnected){\n // Call fall detection method - argument acceleration vector\n fallDetection(new MovementInstance(aX, aY, aZ).getAccelerationVector());\n //Alternate Method - argument MovementInstance object\n// fallDetectionV2(new MovementInstance(aX, aY, aZ));\n }\n else{\n // Call earthquake detection method - argument movement object\n earthquakeDetect(new MovementInstance(aX, aY, aZ));\n }\n }\n }",
"private void initSensorManager() {\n\t\ttry {\n\t\t\tSensorManager sensorManage = (SensorManager) getSystemService(Context.SENSOR_SERVICE);\n\t\t\tList<Sensor> mySensors = sensorManage\n\t\t\t\t\t.getSensorList(Sensor.TYPE_ACCELEROMETER);\n\t\t\tmAccel = 0.00f;\n\t\t\tmAccelCurrent = SensorManager.GRAVITY_EARTH;\n\t\t\tmAccelLast = SensorManager.GRAVITY_EARTH;\n\t\t\tsensorManage.registerListener(new SensorEventListener() {\n\t\t\t\tpublic void onAccuracyChanged(Sensor sensor, int accuracy) {\n\n\t\t\t\t}\n\n\t\t\t\t@SuppressLint(\"FloatMath\")\n\t\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\n\t\t\t\t\tfloat x = event.values[0];// Get X-Coordinator\n\n\t\t\t\t\tfloat y = event.values[1];// Get Y-Coordinator\n\n\t\t\t\t\tfloat z = event.values[2];// Get Z-Coordinator\n\n\t\t\t\t\tmAccelLast = mAccelCurrent;\n\t\t\t\t\tmAccelCurrent = (float) Math\n\t\t\t\t\t\t\t.sqrt((double) (x * x + y * y + z * z));\n\t\t\t\t\tfloat delta = mAccelCurrent - mAccelLast;\n\t\t\t\t\tmAccel = mAccel * 0.9f + delta; // perform low-cut filter\n\n\t\t\t\t\tif (SHAKING_DELTA > mAccel\n\t\t\t\t\t\t\t&& CommonValues.getInstance().CameraMessage != CameraMessageStatus.Focused) {\n\t\t\t\t\t\t// BY SAM for start autofocusing\n\t\t\t\t\t\tif (!lock_autofocus) {\n\t\t\t\t\t\t\tif (autoFocusCounter > AUTO_FOCUS_START_INTERVAL\n\t\t\t\t\t\t\t\t\t&& CommonValues.getInstance().CameraMessage == CameraMessageStatus.Shacked) {\n//\t\t\t\t\t\t\t\tCameraManager.get().requestAutoFocus(handler,\n//\t\t\t\t\t\t\t\t\t\tR.id.auto_focus);\n\t\t\t\t\t\t\t\tautoFocusCounter = 0;\n\t\t\t\t\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Stopped;\n\t\t\t\t\t\t\t} else if (autoFocusCounter > AUTO_FOCUS_START_INTERVAL) {\n\t\t\t\t\t\t\t\tautoFocusCounter = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (!lock_autofocus\n\t\t\t\t\t\t\t\t&& Math.abs(z - old_z) > SHAKING_Z_DELTA) {\n\n\t\t\t\t\t\t\tstatusView.setText(getString(R.string.set_focus));\n//\t\t\t\t\t\t\tCameraManager.get().requestAutoFocus(handler,\n//\t\t\t\t\t\t\t\t\tR.id.auto_focus);\n\t\t\t\t\t\t\tautoFocusCounter = 0;\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (!lock_autofocus) {\n\n\t\t\t\t\t\t\t\tstatusView\n\t\t\t\t\t\t\t\t\t\t.setText(getString(R.string.brcd_img_middle));\n\t\t\t\t\t\t\t\tautoFocusCounter++;\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tstatusView\n\t\t\t\t\t\t\t\t\t\t.setText(getString(R.string.brcd_press_focus));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (mAccel > SHAKING_DELTA)// Shaking\n\t\t\t\t\t{\n\n\t\t\t\t\t\tstatusView.setText(getString(R.string.phone_silent));\n\t\t\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Shacked;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tstatusView.setText(getString(R.string.set_focus));\n\t\t\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Stopped;\n\n\t\t\t\t\t}\n\t\t\t\t\told_z = z;\n\n\t\t\t\t}\n\t\t\t}, mySensors.get(0), SensorManager.SENSOR_DELAY_NORMAL);\n\n\t\t} catch (Exception e) {\n\t\t\tLog.e(\"Unable to detect SensorManager. \",\n\t\t\t\t\t\"Error data \" + e.toString());\n\t\t}\n\t}",
"@Override\n public void onProcessedValueChanged(DSensorEvent dSensorEvent) {\n if (Float.isNaN(dSensorEvent.values[0])) {\n textToSpeech.speak(\"Compass is not working ,\" +\n \"please calibrate ypur phone.\"\n ,TextToSpeech.QUEUE_FLUSH,null);\n\n } else {\n compass = Distance.round(Math.toDegrees(dSensorEvent.values[0]),1);\n if (compass < 0) {\n compass = Distance.round((compass + 360) % 360,1);\n }\n }\n //Toast.makeText(RoutesActivity.this, String.valueOf(dSensorEvent.values[0]), Toast.LENGTH_SHORT).show();\n }",
"private void getAcceleroMeterAndMagneticFieldSensorIfNeeded() {\n if( !hasAppropriateSensor() ) { // no rotation vector\n List acceleroMeterSensorList = sensorManager.getSensorList(Sensor.TYPE_ACCELEROMETER);\n List magneticFieldSensorList = sensorManager.getSensorList(Sensor.TYPE_MAGNETIC_FIELD);\n if( acceleroMeterSensorList != null && !acceleroMeterSensorList.isEmpty() &&\n magneticFieldSensorList != null && !magneticFieldSensorList.isEmpty() ) {\n Log.d(\"Ball\", \"Accelerometer and magnetic field is available\");\n sensorList = new ArrayList<Sensor>();\n sensorList.addAll(acceleroMeterSensorList);\n sensorList.addAll(magneticFieldSensorList);\n } else {\n Log.d(\"Ball\", \"Accelerometer and magnetic field is NOT available\");\n }\n }\n }",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\n\t}",
"public void onSensorChanged(SensorEvent event) {\n synchronized (this) {\n\n //((TextView) findViewById(R.id.texto_prueba2)).setText(Boolean.toString(status));\n\n getInicio(event);\n\n if(status){\n\n if(!(limitarEje(event) && limitarTiempo(event.timestamp, m.getCurrentTime()))){\n ((TextView) findViewById(R.id.texto_prueba)).setText(\"Acelerómetro X, Y , Z: \" + event.values[0] +\" , \"+ event.values[1] +\" , \"+ event.values[2]);\n return;\n }\n\n action=m.isMovement(event.values[0], event.values[1], event.values[2], event.timestamp);\n if(action>=0){\n if(action==10){\n Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);\n startActivity(intent);\n status=false;\n }\n\n if(action==12){\n //context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH);\n if(cam==null){\n cam = Camera.open();\n p = cam.getParameters();\n p.setFlashMode(android.hardware.Camera.Parameters.FLASH_MODE_TORCH);\n cam.setParameters(p);\n cam.startPreview();\n }\n else{\n p.setFlashMode(android.hardware.Camera.Parameters.FLASH_MODE_OFF);\n cam.setParameters(p);\n cam.release();\n cam = null;\n\n }\n }\n if(action==13){\n /* if(mPlayer==null){\n\n recorder.setAudioSource(MediaRecorder.AudioSource.MIC);\n recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);\n recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);\n recorder.setOutputFile(path);\n recorder.prepare();\n recorder.start();\n }\n else{\n recorder.stop();\n recorder.reset();\n recorder.release();\n\n recorder = null;\n }\n*/\n }\n }\n\n ((TextView) findViewById(R.id.texto_prueba2)).setText(Integer.toString(action));\n\n ((TextView) findViewById(R.id.texto_prueba1)).setText(Long.toString((event.timestamp-m.getCurrentTime())/500000000));\n }\n //((TextView) findViewById(R.id.texto_prueba)).setText(\"Acelerómetro X, Y , Z: \" + curX +\" , \"+ curY +\" , \"+ curZ);\n }\n }",
"@Override\n\t\tpublic void onAccelerometerData(Myo myo, long timestamp, Vector3 accel) {\n\t\t\tsuper.onAccelerometerData(myo, timestamp, accel);\n\t\t}",
"@Override\n\tpublic void Orientation_Graphic_ObjectEvent(Interface.Orientation_Graphic_ObjectEvent e, double data) {\n\t\t\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if(runOrNot) {\n Sensor mySensor = event.sensor;\n if (mySensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n long current = System.currentTimeMillis();\n\n if((current - prevTime) > 100) {\n prevTime = current;\n x = event.values[0];\n y = event.values[1];\n z = event.values[2];\n String text = \"x: \" + x + \" y: \" + y + \" z: \" + z;\n\n listOfPoints.append(new Coordinate(x,y,z));\n box.setText(text + \"\\n\" + box.getText().toString());\n }\n\n }\n }\n\n }",
"private void enableAccelerometerListening() {\n SensorManager sensorManager =\r\n (SensorManager) this.getSystemService(\r\n Context.SENSOR_SERVICE); //The last parm specifies the type of Sensor we want to monitor\r\n\r\n\r\n //Now that we have a Sensor Handle, let's start \"listening\" for movement (accelerometer).\r\n //3 parms, The Listener, Sensor Type (accelerometer), and Sampling Frequency.\r\n sensorManager.registerListener(sensorEventListener,\r\n sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),\r\n SensorManager.SENSOR_DELAY_NORMAL); //don't set this too high, otw you will kill user's battery.\r\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (timerFlag) {\n sendInfo(\"heart\", (sim_flag ? bpm/sim_scale : bpm));\n timerFlag = false;\n\n HR_i++;\n if(HR_i>9) {\n HR_i = 0;\n over = true;\n }\n\n if (over)\n {\n HeartRateAvg = 0;\n for (int i=0;i<10;i++)\n {\n HeartRateAvg = HeartRateAvg + HeartRate[i];\n }\n HeartRateAvg = HeartRateAvg/10;\n if ((bpm>HeartRateAvg*1.3 || bpm<HeartRateAvg*0.7) && !sendAttackFlag && sendAttackFlagCnt>15)\n {\n sendInfo(\"attack\",0);\n sendAttackFlag = true;\n Toast.makeText(getApplicationContext(), \"HeartAttack\", Toast.LENGTH_SHORT).show();\n }\n sendAttackFlagCnt++;\n if (sendAttackFlag) {\n sendAttackFlagCnt++;\n if (sendAttackFlagCnt>10)\n {\n sendAttackFlagCnt=0;\n sendAttackFlag = false;\n }\n }\n }\n HeartRate[HR_i] = bpm;\n sendInfo (\"avg\", HeartRateAvg);\n }\n\n // Update the accelerometer\n if (flag) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {\n final float alpha = (float) 0.8;\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // Remove the gravity contribution with the high-pass filter.\n linear_acceleration[0] = event.values[0] - gravity[0];\n linear_acceleration[1] = event.values[1] - gravity[1];\n linear_acceleration[2] = event.values[2] - gravity[2];\n\n totAcc = Math.sqrt(linear_acceleration[0] * linear_acceleration[0] +\n linear_acceleration[1] * linear_acceleration[1] +\n linear_acceleration[2] * linear_acceleration[2]);\n\n fallAcc = linear_acceleration[2];\n }\n\n // Update the heart rate\n if (event.sensor.getType() == Sensor.TYPE_HEART_RATE) {\n bpm = event.values[0];\n if (sim_flag)\n bpm = bpm/sim_scale;\n\n String message = String.valueOf ((int) bpm) + \" bpm\";\n heart.setText(message);\n }\n\n flag = false;\n\n FallCounter = ((totAcc > threshold) ? FallCounter + 1 : 0);\n\n if (FallCounter == 5 && !detected) {\n fallDetectionAction();\n }\n }\n }",
"@Override\n public final void onSensorChanged(SensorEvent event) {\n linearAccelerations = event.values;\n linearAccelerations[0] = linearAccelerations[0]-xOff;\n linearAccelerations[1] = linearAccelerations[1]-yOff;\n linearAccelerations[2] = linearAccelerations[2]-zOff;\n xAccel = (float) round(linearAccelerations[0]/9.8, 3);\n yAccel = (float) round(linearAccelerations[1]/9.8, 3);\n zAccel = (float) round(linearAccelerations[2]/9.8, 3);\n// Log.i(appLabel, \"Acceleration: (\"+xAccel+\", \"+yAccel+\", \"+zAccel+\")\");\n xAccelSquared = (float) round(xAccel*xAccel, 3);\n yAccelSquared = (float) round(yAccel*yAccel, 3);\n zAccelSquared = (float) round(zAccel*zAccel, 3);\n //If they are negative accelerations, squaring them will have made them positive\n if (xAccel < 0) {\n xAccelSquared = xAccelSquared*-1;\n }\n if (yAccel < 0) {\n yAccelSquared = yAccelSquared*-1;\n }\n if (zAccel < 0) {\n zAccelSquared = zAccelSquared*-1;\n }\n xAccelOutput.setText(String.valueOf(xAccel));\n yAccelOutput.setText(String.valueOf(yAccel));\n zAccelOutput.setText(String.valueOf(zAccel));\n// Log.i(appLabel, \"Acceleration squares: \"+xAccelSquared+\", \"+yAccelSquared+\", \"+zAccelSquared);\n float accelsSum = xAccelSquared+yAccelSquared+zAccelSquared;\n double accelsRoot;\n if (accelsSum < 0) {\n accelsSum = accelsSum * -1;\n accelsRoot = Math.sqrt(accelsSum) * -1;\n } else {\n accelsRoot = Math.sqrt(accelsSum);\n }\n// Log.i(appLabel, \"Acceleration squares sum: \"+accelsSum);\n// Log.i(appLabel, \"Acceleration sqrt:\"+accelsRoot);\n cAccel = (float) round(accelsRoot, 3);\n// Log.i(appLabel, \"Net Acceleration: \"+cAccel);\n //Store the maximum acceleration\n if (cAccel > maxAccel) {\n maxAccel = cAccel;\n }\n accelOutput.setText(String.valueOf(cAccel));\n if (isRunning) {\n setSpeed();\n }\n if (speed >= 60) {\n timeToSixty = seconds;\n timeToSixtyOutput.setText(String.valueOf(timeToSixty));\n stopTimer();\n }\n }",
"private static native void getMotionData(long pointer, long controllerHandle, float[] motionData);",
"@Override\n public void onSensorChanged(SensorEvent event) {\n // Log.i(TAG, event + \"\");\n for (int i = 0; i < mListeners.size(); i++) {\n mListeners.get(i).setAzimuthPitchRoll(event.values);\n }\n }",
"@Override\n public void onSensorChanged(android.hardware.SensorEvent event) {\n int azimuth = (int) event.values[0];\n switch (cz.kruch.track.TrackingMIDlet.getActivity().orientation) {\n case 0: // portrait\n // nothing to do\n break;\n case 1: // landscape\n azimuth = (azimuth + 90) % 360;\n break;\n case 2: // portrait reversed\n azimuth = (azimuth + 180) % 360;\n break;\n case 3: // landscape reversed\n azimuth = (azimuth + 270) % 360;\n break;\n }\n// android.util.Log.w(\"TrekBuddy\", \"[app] fixed azimuth = \" + azimuth);\n notifySenser(azimuth);\n }",
"@Override\n public void onSensorChanged(SensorEvent sensorEvent) {\n if (sensorEvent.sensor.getType() != Sensor.TYPE_ACCELEROMETER)\n return;\n\n // must be the accelerometer - number of milliseconds since Midnight, Jan 1, 1970\n // How many milliseconds in a day? 60(60)(24)(1000) = 90,000,000\n long curr_time = System.currentTimeMillis();\n\n if (curr_time - prev_time > 500) {\n prev_time = curr_time;\n float y = sensorEvent.values[1];\n accel_y_view.setText(Float.toString(y));\n }\n }",
"double getMagnetic(double reading);",
"@Override\n public void robotInit() {\n m_chooser.setDefaultOption(\"Default Auto\", kDefaultAuto);\n m_chooser.addOption(\"My Auto\", kCustomAuto);\n SmartDashboard.putData(\"Auto choices\", m_chooser);\n\n /* lets grab the 360 degree position of the MagEncoder's absolute position */\n /* mask out the bottom12 bits, we don't care about the wrap arounds */ \n\t\tint absolutePosition = elevator.getSelectedSensorPosition(0) & 0xFFF;\n \n /* use the low level API to set the quad encoder signal */\n elevator.setSelectedSensorPosition(absolutePosition, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\n /* choose the sensor and sensor direction */\n elevator.configSelectedFeedbackSensor(FeedbackDevice.CTRE_MagEncoder_Relative, \n Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\n /* Ensure sensor is positive when output is positive */\n elevator.setSensorPhase(false);\n\n /**\n * Set based on what direction you want forward/positive to be.\n * This does not affect sensor phase. \n */ \n //elevator.setInverted(Constants.kMotorInvert);\n \n /* Config the peak and nominal outputs, 12V means full */\n elevator.configNominalOutputForward(0, Constants.kTimeoutMs);\n elevator.configNominalOutputReverse(0, Constants.kTimeoutMs);\n //elevator.configPeakOutputForward(1, Constants.kTimeoutMs);\n elevator.configNominalOutputForward(0.5);\n //elevator.configPeakOutputForward(1, Constants.kTimeoutMs);\n elevator.configPeakOutputForward(0.5);\n elevator.configPeakOutputReverse(-1, Constants.kTimeoutMs);\n \n /**\n * Config the allowable closed-loop error, Closed-Loop output will be\n * neutral within this range. See Table in Section 17.2.1 for native\n * units per rotation.\n */\n //elevator.configAllowableClosedloopError(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n \n /* Config Position Closed Loop gains in slot0, typically kF stays zero. */\n elevator.config_kF(Constants.kPIDLoopIdx, 0.0, Constants.kTimeoutMs);\n elevator.config_kP(Constants.kPIDLoopIdx, 0.5, Constants.kTimeoutMs);\n elevator.config_kI(Constants.kPIDLoopIdx, 0.0, Constants.kTimeoutMs);\n elevator.config_kD(Constants.kPIDLoopIdx, 0.0, Constants.kTimeoutMs);\n\n\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n float distance = event.values[0];\n Log.e(\"xuawang\", \"d: \"+distance);\n if(distance > 5) {\n //far\n if(mIsDarkMode){\n darkScreen(false, getWindow());\n am.setMode(AudioManager.MODE_NORMAL);\n am.setSpeakerphoneOn(true);\n am.setBluetoothScoOn(false);\n }\n mIsDarkMode = false;\n } else {\n //close enough\n if(!mIsDarkMode){\n darkScreen(true, getWindow());\n am.setMode(AudioManager.MODE_IN_CALL);\n am.setSpeakerphoneOn(false);\n am.setBluetoothScoOn(true);\n }\n mIsDarkMode = true;\n }\n }",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tdegree = Math.round(event.values[0]);\n\t}",
"@Override\n public void onCreate() {\n Log.d(TAG, \"Creating and connecting to accelerometer\");\n sensorManager = (SensorManager)getSystemService(Service.SENSOR_SERVICE);\n if (sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER) != null) {\n sensor = sensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER);\n }\n else {\n Log.e(TAG, \"Cannot get connection to accelerometer\");\n stopSelf();\n }\n sensorManager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL);\n\n // Create LocalBroadcastManager\n broadcastManager = LocalBroadcastManager.getInstance(this);\n }",
"void oscEvent(OscMessage msg) throws IOException{\n\r\n\t\tObject[] arguments = msg.arguments();\t\t\r\n\t\t\r\n\t\tTimestamp timeStamp = new Timestamp(System.currentTimeMillis());\r\n\t\t\r\n\t\t//Muse EEG headband sends a lot of signals but we are only interested in Alpha, Beta, Gamma, Delta and Theta\r\n\t\t//For more information, visit: http://developer.choosemuse.com/tools/available-data\r\n\r\n\t\t\r\n\t\t//Checking if the signal is Alpha\r\n\t\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/alpha_absolute\")==true) {\r\n\t\t\r\n\t\t\tSystem.out.print(\"\\n\"+timeStamp+\",\");\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\tSystem.out.println(\"float\"+msg.get(0).floatValue()+\", int:\"+msg.get(0).intValue()+\",string:\"+msg.get(0).toString()+\",long:\"+msg.get(0).longValue()+\",double\"+msg.get(0).doubleValue());\r\n\t\t\t\r\n\t\t\t//printing it out into the .csv file in a way that the average is calculated and written\r\n\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\t\r\n\t\r\n\t\t\r\n\t\t//Check for Beta signal\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/beta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\r\n\t\t//check for Delta signal\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/delta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\t\r\n\t\t//check for Gamma signal\t\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/gamma_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\r\n\r\n\t\t//Check for Theta signal\r\n\t\tif(msg.checkAddrPattern(\"/muse/elements/theta_absolute\")==true) {\r\n\t\t\t\r\n\t\t\targuments = msg.arguments();\r\n\t\t\t\r\n\t\t\tSystem.out.print(\"=(\"+arguments[0]+\"+ \");\r\n\t\t\tSystem.out.print(arguments[1]+\"+\");\r\n\t\t\tSystem.out.print(arguments[2]+\"+\");\r\n\t\t\tSystem.out.print(arguments[3]+\")/4,\");\r\n\t\t}\t\r\n\t\t\r\n\t}",
"public interface AccelerometerListener {\r\n public void onAccelerationChanged(float x, float y, float z);\r\n\r\n public void onShake(float force);\r\n}",
"@Override\n public void init() {\n \n \n rightFront = hardwareMap.dcMotor.get(\"frontR\");\n rightBack = hardwareMap.dcMotor.get(\"backR\");\n \n \n \n rightFront.setDirection(DcMotor.Direction.FORWARD); \n rightBack.setDirection(DcMotor.Direction.FORWARD);\n \n \n \n\n // Send telemetry message to signify robot waiting;\n telemetry.addData(\"Say\", \"Hello Driver\"); //\n }",
"@Override\n public void init() {\n touchSensor1 = hardwareMap.touchSensor.get(\"touchSensor1\");\n lightSensor1 = hardwareMap.lightSensor.get(\"lightSensor1\");\n motorLeft1 = hardwareMap.dcMotor.get(\"motorLeft1\");\n motorLeft2 = hardwareMap.dcMotor.get(\"motorLeft2\");\n motorRight1 = hardwareMap.dcMotor.get(\"motorRight1\");\n motorRight2 = hardwareMap.dcMotor.get(\"motorRight2\");\n\n //Setup Hardware\n motorLeft1.setDirection(DcMotor.Direction.REVERSE);\n motorLeft2.setDirection(DcMotor.Direction.REVERSE);\n\n // Set up the parameters with which we will use our IMU. Note that integration\n // algorithm here just reports accelerations to the logcat log; it doesn't actually\n // provide positional information.\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"AdafruitIMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n // parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n\n // Retrieve and initialize the IMU. We expect the IMU to be attached to an I2C port\n // on a Core Device Interface Module, configured to be a sensor of type \"AdaFruit IMU\",\n // and named \"imu\".\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n imu.initialize(parameters);\n\n currentState = MotorState.WAIT_TO_START;\n nextState = MotorState.WAIT_TO_START;\n count = 0;\n composeTelemetry();\n }",
"@Override\n\tpublic void DataAcquisitionObjectEvent(Interface.DataAcquisitionObjectEvent e,String data) {\n\t\t\n\t}",
"private void UI_RefreshSensorData ()\r\n\t{\r\n\t\t\t\t\r\n\t\tlong now = System.currentTimeMillis();\r\n\t\t\r\n\t\tif (now-ts_last_rate_calc>1000)\r\n\t\t{\r\n\t\t\tsensor_event_rate=last_nAccVal/((now-ts_last_rate_calc)/1000.0);\r\n\t\t\tts_last_rate_calc=now;\r\n\t\t}\r\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER){\n // Corriger les valeurs x et y en fonction de l'orientation de l'appareil\n switch (mDisplay.getRotation()) {\n case Surface.ROTATION_0:\n mAccelerationX = event.values[0];\n mAccelerationY = event.values[1];\n break;\n case Surface.ROTATION_90:\n mAccelerationX = -event.values[1];\n mAccelerationY = event.values[0];\n break;\n case Surface.ROTATION_180:\n mAccelerationX = -event.values[0];\n mAccelerationY = -event.values[1];\n break;\n case Surface.ROTATION_270:\n mAccelerationX = event.values[1];\n mAccelerationY = -event.values[0];\n break;\n }\n\n //mResX.setText(\"Accelerometre X : \" + mAccelerationX);\n //mResY.setText(\"Accelerometre Y : \" + mAccelerationY);\n\n float newPos = - mAccelerationX*viewWidth/12;\n float deltaAngle = tempAngle-mAccelerationX;\n\n //si l'angle ne varie qu'un peu,on ne bouge pas le boar\n if(Math.abs(deltaAngle)>0.2){\n animate = new TranslateAnimation(globalBoar.getX(),newPos ,0.2f*viewHeight/2, 0.2f*viewHeight/2);\n animate.setDuration(200);\n animate.setFillAfter(true);\n boarPlayerImage.startAnimation(animate);\n globalBoar.decideBoar(newPos,0.2f*viewHeight/2);\n tempAngle=mAccelerationX;\n\n }\n\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event) {\n\n final float alpha = (float) 0.8;\n\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // Remove the gravity contribution with the high-pass filter.\n linear_acceleration[0] = event.values[0] - gravity[0];\n linear_acceleration[1] = event.values[1] - gravity[1];\n linear_acceleration[2] = event.values[2] - gravity[2];\n\n xValueTextView.setText(\"Valor en X: \" + linear_acceleration[0]);\n yValueTextView.setText(\"Valor en Y: \" + linear_acceleration[1]);\n zValueTextView.setText(\"Valor en Z: \" + linear_acceleration[2]);\n }",
"@Override\r\n\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\tmGX = event.values[SensorManager.DATA_X];\r\n\t\t\tmGY= event.values[SensorManager.DATA_Y];\r\n\t\t\tmGZ = event.values[SensorManager.DATA_Z];\r\n\t\t\tif(mGX<-2 && me.getexploded()==false)\r\n\t\t\t{\r\n\t\t\t\tme.setdirectionY(parameter.UP);\r\n\t\t\t\tme.setv(parameter.maxspeed);\r\n\t\t\t}\r\n\t\t\telse if (mGX>2 && me.getexploded()==false) \r\n\t\t\t{\r\n\t\t\t\tme.setdirectionY(parameter.DOWN);\r\n\t\t\t\tme.setv(parameter.maxspeed);\r\n\t\t\t}\r\n\t\t\tif(mGY<-2 && me.getexploded()==false)\r\n\t\t\t{\r\n\t\t\t\tme.setdirectionX(parameter.LEFT);\r\n\t\t\t\tme.setv(parameter.maxspeed);\r\n\t\t\t}\r\n\t\t\telse if (mGY>2 && me.getexploded()==false) \r\n\t\t\t{\r\n\t\t\t\tme.setdirectionX(parameter.RIGHT);\r\n\t\t\t\tme.setv(parameter.maxspeed);\r\n\t\t\t}\t\r\n\t\t}",
"@Override\r\n\t\t\tpublic void onSensorChanged(SensorEvent event) {\n\t\t\t\ttemp_r[0] = event.values[0];\r\n\t\t\t\ttemp_r[1] = event.values[1];\r\n\t\t\t\ttemp_r[2] = event.values[2];\r\n\t\t\t\t// TipsTextView.setText(String.valueOf(temp_r[0]) + \" \"\r\n\t\t\t\t// + String.valueOf(temp_r[1]) + \" \"\r\n\t\t\t\t// + String.valueOf(temp_r[2]));\r\n\t\t\t}",
"@Override\r\n\tpublic void onSensorChanged(SensorEvent event) {\r\n\t\tif (start_button.getText().equals(\"Stop\")) {\r\n\r\n\t\t\tswitch(event.sensor.getType()){\r\n\r\n\t\t\t\t/* Accelerometer Sensor */\r\n\t\t\t\tcase Sensor.TYPE_LINEAR_ACCELERATION:\r\n\t\t\t\t{\r\n\t\t\t\t\t/* Read data from sensor */\r\n\t\t\t\t\tfor(int i =0; i < 3; i++){\r\n\t\t\t\t\t\tacceleration[i] = event.values[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* Insert data to local database */\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tdataSource_d=new Path_d_dataSource(this);\r\n\t\t\t\t\tdataSource_d.open();\r\n\t\t\t\t\tpath_d=null;\r\n\t\t\t\t\tpath_d=dataSource_d.createPath_d(path_h.getId(), direction[0], direction[1], direction[2],\r\n\t\t\t\t\t\t\tacceleration[0], acceleration[1], acceleration[2], gyro[0], gyro[1], gyro[2]);\r\n\t\t\t\t\tdataSource_d.close();\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* Get system date */\r\n\t\t\t\t\tDate dCurrentTime = new Date();\r\n\t\t\t\t\tCharSequence sCurrentTime = DateFormat.format(\"hh:mm:ss\", dCurrentTime.getTime());\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* Send data to external server */\r\n\t\t\t\t\tString url = \"http://caminamaps.com/caminadev/insert_path_d.php?\"\r\n\t\t\t\t\t\t\t+\"date=\"+sCurrentTime\r\n\t\t\t\t\t\t\t+\"&directionX=\"+direction[0]\r\n\t\t\t\t\t\t\t+\"&directionY=\"+direction[1]\r\n\t\t\t\t\t\t\t+\"&directionZ=\"+direction[2]\r\n\t\t\t\t\t\t\t+\"&accelerationX=\"+acceleration[0]\r\n\t\t\t\t\t\t\t+\"&accelerationY=\"+acceleration[1]\r\n\t\t\t\t\t\t\t+\"&accelerationZ=\"+acceleration[2]\r\n\t\t\t\t\t\t\t+\"&gyroX=\"+gyro[0]\r\n\t\t\t\t\t\t\t+\"&gyroY=\"+gyro[1]\r\n\t\t\t\t\t\t\t+\"&gyroZ=\"+gyro[2]\r\n\t\t\t\t\t\t\t+\"&steps=0\";\r\n\t\t\t\t\t\r\n\t\t\t\t\tHttpConnection con = new HttpConnection(url);\r\n\t\t\t\t\t\t(new Thread(con)).start();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t/* Orientation Sensor */\r\n\t\t\t\tcase Sensor.TYPE_ORIENTATION:\r\n\t\t\t\t{\t\r\n\t\t\t\t\t/* Read data from sensor */\r\n\t\t\t\t\tfor(int i =0; i < 3; i++){\r\n\t\t\t\t\t\tdirection[i] = event.values[i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\r\n\t\t\t\t/* Gyro Sensor */\r\n\t\t\t\tcase Sensor.TYPE_GYROSCOPE:\r\n\t\t\t\t{\t\r\n\t\t\t\t\t/* Read data from sensor */\r\n\t\t\t\t\tfor(int i =0; i < 3; i++){\r\n\t\t\t\t\t\tgyro[i] = event.values[i];\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}",
"public void onSensorChanged(SensorEvent event) {\n double x = event.values[0];\n double y = event.values[1];\n double z = event.values[2];\n\n final double alpha = 0.8; // constant for our filter below\n\n double[] gravity = {0,0,0};\n\n // Isolate the force of gravity with the low-pass filter.\n gravity[0] = alpha * gravity[0] + (1 - alpha) * event.values[0];\n gravity[1] = alpha * gravity[1] + (1 - alpha) * event.values[1];\n gravity[2] = alpha * gravity[2] + (1 - alpha) * event.values[2];\n\n // Remove the gravity contribution with the high-pass filter.\n x = event.values[0] - gravity[0];\n y = event.values[1] - gravity[1];\n z = event.values[2] - gravity[2];\n\n if (!mInitialized) {\n // sensor is used for the first time, initialize the last read values\n mLastX = x;\n mLastY = y;\n mLastZ = z;\n mInitialized = true;\n } else {\n // sensor is already initialized, and we have previously read values.\n // take difference of past and current values and decide which\n // axis acceleration was detected by comparing values\n\n double deltaX = Math.abs(mLastX - x);\n double deltaY = Math.abs(mLastY - y);\n double deltaZ = Math.abs(mLastZ - z);\n if (deltaX < NOISE)\n deltaX = (float) 0.0;\n if (deltaY < NOISE)\n deltaY = (float) 0.0;\n if (deltaZ < NOISE)\n deltaZ = (float) 0.0;\n mLastX = x;\n mLastY = y;\n mLastZ = z;\n\n if (deltaX > deltaY) {\n // Horizontal shake\n // do something here if you like\n } else if (deltaY > deltaX) {\n // Vertical shake\n // do something here if you like\n } else if ((deltaZ > deltaX) && (deltaZ > deltaY)) {\n // Z shake\n stepManager.ManualUpdateSharedPref();\n } else {\n // no shake detected\n }\n }\n }",
"@Override\n public void onSensorChanged(SensorEvent event)\n {\n // Get the sensor which has triggered the event\n\n Sensor sensor = event.sensor;\n\n // Perform differing functionality depending upon\n // the sensor type (caller)\n\n switch (event.sensor.getType())\n {\n case Sensor.TYPE_STEP_COUNTER:\n\n if (reportedSteps < 1){\n\n // Log the initial value\n\n reportedSteps = (int)event.values [0];\n }\n\n // Calculate steps taken based on\n // first value received.\n\n stepsTaken = (int)event.values [0] - reportedSteps;\n\n // Output the value to the simple GUI\n\n countText.setText(\"Cnt: \" + stepsTaken);\n\n break;\n\n case Sensor.TYPE_STEP_DETECTOR:\n\n // Increment the step detector count\n\n stepDetector++;\n\n // Output the value to the simple GUI\n\n detectText.setText(\"Det: \" + stepDetector);\n\n break;\n\n case Sensor.TYPE_ACCELEROMETER:\n\n // Get the accelerometer values and set them to a string with 2dp\n\n String x = String.format(\"%.02f\", event.values[0]);\n String y = String.format(\"%.02f\", event.values[1]);\n String z = String.format(\"%.02f\", event.values[2]);\n\n // Output the string to the GUI\n\n accelText.setText(\"Acc:\" + x + \",\" + y + \",\" + z);\n\n break;\n }\n }",
"private void initSensor(){\n sensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);\n\n registerListeners();\n }",
"public void onFingerDown(String idSensor) // evento que se genera al colocar un dedo en el lector\n{\n}",
"public AnalogData() {\r\n id = Drone.ANALOG;\r\n vBat = 0.0f;\r\n powerMeterSum = 0;\r\n rssi = 0;\r\n amperage = 0.0f;\r\n }",
"@Override\n\tpublic void PRESSURE_ObjectEvent(Interface.PRESSURE_ObjectEvent e, String data) {\n\t\t\n\t}",
"public interface SensorUpdateCallback {\n void onBearingValue(float f);\n}",
"@Override\n public void onEmulatorMessage(int msg_type, ByteBuffer msg_data) {\n switch (msg_type) {\n case ProtocolConstants.SENSORS_START:\n Log.v(TAG, \"Starting sensors emulation.\");\n startSensors();\n break;\n case ProtocolConstants.SENSORS_STOP:\n Log.v(TAG, \"Stopping sensors emulation.\");\n stopSensors();\n break;\n case ProtocolConstants.SENSORS_ENABLE:\n String enable_name = new String(msg_data.array());\n Log.v(TAG, \"Enabling sensor: \" + enable_name);\n onEnableSensor(enable_name);\n break;\n case ProtocolConstants.SENSORS_DISABLE:\n String disable_name = new String(msg_data.array());\n Log.v(TAG, \"Disabling sensor: \" + disable_name);\n onDisableSensor(disable_name);\n break;\n default:\n Loge(\"Unknown message type \" + msg_type);\n break;\n }\n }",
"public void onResume() {\n sensorManager.registerListener(this, accelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n }",
"public void queryAccelerometerData()\n\t{\n\t\ttry\n\t\t{\n\t\t\tif(serverRequestStatus==true)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcheckApi();\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void updateOrientation(float [] data){\n if(data == null){Log.e(TAG, \"Failed type message data to float []\"); return;}\n if(data.length != 3){Log.e(TAG, \"updateOrientation data must have length of 3\");return;}\n\n float x = data[0];\n float y = data[1];\n float z = data[2];\n\n //use this as the threshold for detecting direction\n final float NEUTRAl = 0.01f;\n final float THRESHOLD = 0.10f;\n\n //commands to send based on orientation\n final String MOVE_FORWARD=\"HMF\";\n final String MOVE_BACKWARD=\"HMB\";\n final String MOVE_RIGHT=\"HMR\";\n final String MOVE_LEFT=\"HML\";\n\n String msg = \"Accelerometer[x, y, z]: \" + String.format(\"%.4f, %.4f, %.4f\\n\", x, y, z);\n TextView stats = (TextView) findViewById(R.id.accel_stats);\n stats.setText(msg);\n //forward\n if(y <= -(THRESHOLD)) {\n findViewById(R.id.forward).setPressed(true);\n mClientService.write(MOVE_FORWARD.getBytes());\n }\n else{findViewById(R.id.forward).setPressed(false);}\n\n //backward\n if(y>=THRESHOLD){\n findViewById(R.id.bottom).setPressed(true);\n mClientService.write(MOVE_BACKWARD.getBytes());\n }\n else{findViewById(R.id.bottom).setPressed(false);}\n\n //left\n if(x >= THRESHOLD) {\n findViewById(R.id.left).setPressed(true);\n mClientService.write(MOVE_LEFT.getBytes());\n\n }\n else{findViewById(R.id.left).setPressed(false);}\n\n //right\n if(x<= -(THRESHOLD)) {\n findViewById(R.id.right).setPressed(true);\n mClientService.write(MOVE_RIGHT.getBytes());\n }\n else{findViewById(R.id.right).setPressed(false);}\n }",
"protected void doPdrDraw(SensorEvent accEvent, SensorEvent gyroEvent) {\n\n float NS2S=1.0f/1000000000.0f;//纳秒转为秒\n if(timeStart==0){\n timeStart=accEvent.timestamp;\n timestamp=0;\n }\n else\n timestamp=(accEvent.timestamp-timeStart)*NS2S;\n float yvalue = (float)Math.sqrt(accEvent.values[0]*accEvent.values[0]+accEvent.values[1]*accEvent.values[1]+accEvent.values[2]*accEvent.values[2]);\n float lpyvalue = 0;\n if(xTick+1>N_windows)\n lpyvalue = filter(yvalue);\n else\n value_buf[xTick] = yvalue;\n float[] euler = mMadgwick.rotMat2euler(mMadgwick.quatern2rotMat(mMadgwick.MadgwickAHRSupdateGyro(gyroEvent.values[0], gyroEvent.values[1], gyroEvent.values[2])));\n heading = euler[2];\n tvHeading.setText(String.format(\"%.2f\", heading * 180 / Math.PI));\n //Log.d(TAG,String.format(\"%.2f,%f\",timestamp,lpyvalue));\n if (stepDetecter(timestamp,lpyvalue)){\n stepNo= stepNo+1;\n if(stepNo==1) {\n locationx = (float)(0f + stepLength * Math.sin(heading));\n locationy = (float)(0f + stepLength * Math.cos(heading));\n }\n else {\n locationx = (float)(locationx + stepLength * Math.sin(heading));\n locationy = (float)(locationy + stepLength * Math.cos(heading));\n }\n tvStep.setText(String.format(\"%s\",stepNo));\n tvLocation.setText(String.format(\"( %.2f, %.2f)\", locationx, locationy));\n map.addStep(new PointF(-locationx,locationy));\n map.setPos(-locationx * map.getScaleX(), locationy * map.getScaleY(), 30, 30, (float) Math.PI, true);\n multiTouchView.invalidate();\n }\n xTick++;\n }",
"@Override\npublic void teleopPeriodic() {\nm_robotDrive.arcadeDrive(m_stick.getRawAxis(5)* (-0.5), m_stick.getRawAxis(4)*0.5);\n}",
"@Override\n public void onDataChanged(DataEventBuffer dataEvents) {\n\n Log.i(TAG, \"onDataChanged()\");\n\n for (DataEvent dataEvent : dataEvents) {\n if (dataEvent.getType() == DataEvent.TYPE_CHANGED) {\n DataItem dataItem = dataEvent.getDataItem();\n Uri uri = dataItem.getUri();\n String path = uri.getPath();\n\n if (path.startsWith(\"/sensors/\")) {\n if (SmartWatch.getInstance() != null) {\n SmartWatch.getInstance().unpackSensorData(DataMapItem.fromDataItem(dataItem).getDataMap());\n }\n }\n }\n }\n }"
] | [
"0.70778173",
"0.64532775",
"0.63299257",
"0.6221094",
"0.6190583",
"0.61350036",
"0.6056669",
"0.60513324",
"0.60488605",
"0.60294634",
"0.594051",
"0.59398735",
"0.5924054",
"0.58744943",
"0.58328",
"0.58141917",
"0.57951766",
"0.57698864",
"0.57658255",
"0.57656264",
"0.57654905",
"0.5734919",
"0.5726529",
"0.5695964",
"0.56665814",
"0.56646216",
"0.5652272",
"0.5649286",
"0.56440234",
"0.56258005",
"0.56176007",
"0.5611341",
"0.5610944",
"0.5602954",
"0.559009",
"0.5583197",
"0.55655766",
"0.5562899",
"0.5560064",
"0.55386245",
"0.5530426",
"0.5523223",
"0.5520641",
"0.5520599",
"0.55131996",
"0.5510624",
"0.5500709",
"0.54987425",
"0.54910016",
"0.5488027",
"0.5481389",
"0.54794925",
"0.545939",
"0.545117",
"0.5448135",
"0.5433742",
"0.5406988",
"0.5379775",
"0.5379775",
"0.5374943",
"0.53738064",
"0.53719276",
"0.53541046",
"0.5345719",
"0.5338858",
"0.53346413",
"0.5325376",
"0.53196883",
"0.52988535",
"0.52946126",
"0.52814317",
"0.52737606",
"0.5268681",
"0.5252177",
"0.5234438",
"0.52336496",
"0.5230179",
"0.5228534",
"0.5221711",
"0.5206886",
"0.52008146",
"0.5188512",
"0.5185757",
"0.51758343",
"0.51671124",
"0.5159829",
"0.5159197",
"0.51565105",
"0.51526976",
"0.5152378",
"0.514541",
"0.51436377",
"0.51350594",
"0.51334536",
"0.51298255",
"0.5122178",
"0.51161885",
"0.51101077",
"0.5109318",
"0.5107474"
] | 0.5757912 | 21 |
Changing MainActivity backgroundcolor with boundaries for the RGB colors not falling below 0 | private void setBackgroundColorDisplay(int colorR, int colorG, int colorB){
int red = colorR;
int green = colorG;
int blue = colorB;
if(colorR < 0){
red = 0;
}
if (colorG < 0){
green = 0;
}
if (colorB < 0){
blue = 0;
}
int magnassoColor = (255 & 0xff) << 24 | (red & 0xff) << 16 | (green & 0xff) << 8 | (blue & 0xff);
layout.setBackgroundColor(magnassoColor);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateColor() {\n int redShift = red << 16; // red: 0xRR0000 <- 0xRR\n int greenShift = green << 8; // red: 0xGG00 <- 0xGG\n int blueShift = blue; // blue: 0xBB <- 0xBB\n int alphaShift = 0xff << 24; // alpha 0xff000000 <- 0xff // we don't want our color to be transparent.\n int color = alphaShift | redShift | greenShift | blueShift;\n viewColor.setBackgroundColor(color);\n }",
"private void updateBackground() {\n \t\t\t\ttextRed.setText(\"\" + redBar.getProgress());\n \t\t\t\ttextGreen.setText(\"\" + greenBar.getProgress());\n \t\t\t\ttextBlue.setText(\"\" + blueBar.getProgress());\n \t\t\t\ttextAlpha.setText(\"\" + alphaBar.getProgress());\n \t\t\t\tcolorTest.setBackgroundColor(Color.argb(alphaBar.getProgress(), redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n \t\t\t}",
"private void updateMainColors () {\n int mainColor = getCurrentMainColor();\n int index = 0;\n int[] topColors = new int[256];\n for ( int y = 0; y < 256; y++ ) {\n for ( int x = 0; x < 256; x++ ) {\n if ( y == 0 ) {\n mMainColors[index] = Color.rgb( 255 - ( 255 - Color.red( mainColor ) ) * x / 255, 255 - ( 255 - Color.green( mainColor ) ) * x / 255, 255 - ( 255 - Color.blue( mainColor ) ) * x / 255 );\n topColors[x] = mMainColors[index];\n } else\n mMainColors[index] = Color.rgb( ( 255 - y ) * Color.red( topColors[x] ) / 255, ( 255 - y ) * Color.green( topColors[x] ) / 255, ( 255 - y ) * Color.blue( topColors[x] ) / 255 );\n index++;\n }\n }\n }",
"private void updateBackgroundID() {\n if ((x + 1) % 2 == (y + 1) % 2) {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_black_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_black_white;\n break;\n default:\n background = R.drawable.pawngame_black_empty;\n }\n } else {\n switch (c) {\n case BLACK:\n background = R.drawable.pawngame_white_black;\n break;\n case WHITE:\n background = R.drawable.pawngame_white_white;\n break;\n default:\n background = R.drawable.pawngame_white_empty;\n }\n }\n }",
"private void setBackgroundColor(int red) {\n\t\tint bgColor = Color.argb(255, red, 0, 0);\n\t\tlayout.setBackgroundColor(bgColor);\n\t}",
"public abstract void setBackgroundPressed(final int rgba);",
"public abstract View getBlackBackground();",
"private void onColorClick() {\n Integer colorFrom = getResources().getColor(R.color.animated_color_from);\r\n Integer colorTo = getResources().getColor(R.color.animated_color_to);\r\n ValueAnimator colorAnimator = ValueAnimator.ofObject(new ArgbEvaluator(), colorFrom, colorTo);\r\n colorAnimator.setDuration(animationDuration);\r\n colorAnimator.setRepeatCount(1);\r\n colorAnimator.setRepeatMode(ValueAnimator.REVERSE);\r\n colorAnimator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {\r\n\r\n @Override\r\n public void onAnimationUpdate(ValueAnimator animator) {\r\n animatedArea.setBackgroundColor((Integer)animator.getAnimatedValue());\r\n }\r\n\r\n });\r\n colorAnimator.start();\r\n }",
"private void updateColorPreview() {\n runOnUiThread(() -> colorView.setBackgroundColor(Utils.HSV_to_ARGB(specState.hue,\n specState.saturation,\n specState.value)));\n }",
"private void setBackgroundColor(int backColor){\n backgroundColor = backColor;\n touchArea.setBackgroundColor(backgroundColor);\n }",
"private void drawBackground(Canvas canvas) {\n if (resourceHelper == null || settingsHelper == null) return;\n \n paint.setStrokeWidth(0);\n paint.setStyle(Paint.Style.FILL);\n \n int lastThreshold = top;\n \n for (MeasurementLevel measurementLevel : new MeasurementLevel[]{MeasurementLevel.HIGH, MeasurementLevel.MID, MeasurementLevel.LOW}) {\n paint.setColor(resourceHelper.getGraphColor(measurementLevel));\n int threshold = settingsHelper.getThreshold(sensor, measurementLevel);\n \n canvas.drawRect(0, project(lastThreshold), getWidth(), project(threshold), paint);\n lastThreshold = threshold;\n }\n \n paint.setColor(resourceHelper.getGraphColor(MeasurementLevel.VERY_LOW));\n canvas.drawRect(0, project(lastThreshold), getWidth(), getHeight(), paint);\n }",
"public Color getBackground();",
"public int backgroundColor() {\n // create/return the background color\n return Color.rgb(180, 200, 255);\n }",
"@Override\n public void setBackgroundColor(int backgroundColor) {\n }",
"public abstract void setCurBackground(Color colr);",
"private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }",
"@Override\n\tprotected int getMainTabBackgroundDrawable() {\n\t\treturn R.color.white;\n\t}",
"public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}",
"private void resetBackgrounds(){\n for(int y = 1; y <= rowCount; y++){\n for(int x = 1; x <= columnCount; x++){\n rootView.findViewById(Integer.parseInt(\"10\" + x + \"00\" + y)).findViewById(R.id.third_list_value).setBackgroundResource(R.drawable.white_off_shape);\n }\n }\n }",
"public void RGB_Change(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Change\");\r\n adb.setItems(colors, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n color[which]=255;\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n }\r\n });\r\n adb.setPositiveButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }",
"public Color getScreenBackgroundColor();",
"Color getBackgroundColor();",
"@Override\n\t\t\tpublic void onAnimationUpdate(ValueAnimator animation) {\n\t\t\t\trlayout.setBackgroundColor((Integer)animation.getAnimatedValue());\n\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean bo) {\n int r = sbrRed.getProgress();\n int g = sbrGreen.getProgress();\n int b = sbrBlue.getProgress();\n int a = sbrAlpha.getProgress();\n\n int color = Color.argb(a,r,g,b);\n vieColors.setBackgroundColor(color);\n\n //Toast.makeText(this, \"The new color is: \"+a, Toast.LENGTH_SHORT).show();\n }",
"private void getColorBackgroundShared() {\n\t\t // get shared preference\n\t\t SharedPreferences readeShared = getSharedPreferences(\"colorBackground\" , MODE_PRIVATE);\n\n\t\t if ( readeShared != null ) {\n\t\t\t String color = readeShared.getString(\"color\" , null);\n\t\t\t if ( color != null && color.length() > 0 ) {\n\t\t\t\t\tif ( color.equals(\"w\") ) {\n\n\t\t\t\t\t\t setBackgroundColor(getResources().getColor(R.color.white) , getResources().getColor(R.color.b2b2b2));\n\n\t\t\t\t\t} else if ( color.equals(\"b\") ) {\n\n\t\t\t\t\t\t setBackgroundColor(getResources().getColor(R.color.b2b2b2) , getResources().getColor(R.color.white));\n\n\t\t\t\t\t}\n\t\t\t }\n\t\t }\n\t }",
"private void setColors(int background, int foreground) {\n rootView.setBackgroundColor(background);\n emptyCategoryTextView.setTextColor(foreground);\n }",
"public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }",
"private void clearbackground() {\n\t\tfive_direct_single.setBackgroundResource(0);\r\n\t\tfour_direct_single.setBackgroundResource(0);\r\n\t\ttopthree_group_three_single.setBackgroundResource(0);\r\n\t\ttopthree_group_six_single.setBackgroundResource(0);\r\n\t\ttopthree_direct_single.setBackgroundResource(0);\r\n\t\tbottomthree_direct_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_three_single.setBackgroundResource(0);\r\n\t\tbottompthree_group_six_single.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_single.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_single.setBackgroundResource(0);\r\n\t\ttopthree_mix_group.setBackgroundResource(0);\r\n\t\tbottompthree_mix_group.setBackgroundResource(0);\r\n\t\tfive_direct_double.setBackgroundResource(0);\r\n\t\tfive_group_120.setBackgroundResource(0);\r\n\t\tfive_group_60.setBackgroundResource(0);\r\n\t\tfive_group_30.setBackgroundResource(0);\r\n\t\tfive_group_20.setBackgroundResource(0);\r\n\t\tfive_group_10.setBackgroundResource(0);\r\n\t\tfive_group_5.setBackgroundResource(0);\r\n\t\tfour_direct_double.setBackgroundResource(0);\r\n\t\tfour_group_24.setBackgroundResource(0);\r\n\t\tfour_group_12.setBackgroundResource(0);\r\n\t\ttopthree_direct_double.setBackgroundResource(0);\r\n\t\ttopthree_group_three.setBackgroundResource(0);\r\n\t\ttopthree_group_six.setBackgroundResource(0);\r\n\t\ttopthree_group_sum.setBackgroundResource(0);\r\n\t\ttopthree_group_container.setBackgroundResource(0);\r\n\t\tbottomthree_direct_double.setBackgroundResource(0);\r\n\t\tbottomthree_group_span.setBackgroundResource(0);\r\n\t\tbottomthree_group_three.setBackgroundResource(0);\r\n\t\tbottomthree_group_six.setBackgroundResource(0);\r\n\t\tbottomthree_group_sum.setBackgroundResource(0);\r\n\t\tbottomthree_group_container.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_sum.setBackgroundResource(0);\r\n\t\ttwo_direct_bottomtwo_span.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_double.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_span.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_double.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_double.setBackgroundResource(0);\r\n\t\tfixed_position.setBackgroundResource(0);\r\n\t\tthree_bottomthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_bottomthree_two_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_one_notposition.setBackgroundResource(0);\r\n\t\tthree_topthree_two_notposition.setBackgroundResource(0);\r\n\t\tfour_bottomfour_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_two_notposition.setBackgroundResource(0);\r\n\t\tfive_bottomfive_three_notposition.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_sum.setBackgroundResource(0);\r\n\t\tfour_group_6.setBackgroundResource(0);\r\n\t\tfour_group_4.setBackgroundResource(0);\r\n\t\tbottomthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_sum.setBackgroundResource(0);\r\n\t\ttopthree_direct_span.setBackgroundResource(0);\r\n\t\ttopthree_sum_end.setBackgroundResource(0);\r\n\t\tbottomthree_sum_end.setBackgroundResource(0);\r\n\t\ttwo_direct_toptwo_sum.setBackgroundResource(0);\r\n\t\ttwo_group_toptwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_container.setBackgroundResource(0);\r\n\t\ttwo_group_bottomtwo_sum.setBackgroundResource(0);\r\n\t\tfour_bottomfour_one_notposition.setBackgroundResource(0);\r\n\t\tmaxmin_bottomtwo.setBackgroundResource(0);\r\n\t\tmaxmin_bottomthree.setBackgroundResource(0);\r\n\t\tmaxmin_toptwo.setBackgroundResource(0);\r\n\t\tmaxmin_topthree.setBackgroundResource(0);\r\n\t}",
"private void createBackground()\n {\n GreenfootImage background = getBackground();\n background.setColor(Color.BLACK);\n background.fill();\n }",
"@Override\n public void onColorChange(int color) {\n int r = Color.red(color);\n int g = Color.green(color);\n int b = Color.blue(color);\n Log.w(\"CameraEngineActivity\", \"R:\" + r + \" G:\" + g + \" B:\" + b);\n colorText.setBackgroundColor(color);\n }",
"private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }",
"void color(){\n Activity.setColor(borderColor);\n ViewAnimator.color(backCircularColorView, \"circularColor\", 0, 500, backCircularColorView.getCircularColor(), textColor);\n ViewAnimator.color(leftCircularColorView, \"circularColor\", 100, 500, leftCircularColorView.getCircularColor(), textColor);\n ViewAnimator.color(rightCircularColorView, \"circularColor\", 200, 500, rightCircularColorView.getCircularColor(), textColor);\n ViewAnimator.color(backCircularColorView, \"borderColor\", 0, 500, backCircularColorView.getCircularColor(), borderColor);\n ViewAnimator.color(leftCircularColorView, \"borderColor\", 100, 500, leftCircularColorView.getCircularColor(), borderColor);\n ViewAnimator.color(rightCircularColorView, \"borderColor\", 200, 500, rightCircularColorView.getCircularColor(), borderColor);\n }",
"void fill(int rgb);",
"private Background InitBackground()\r\n {\r\n \tBoundingSphere worldBounds = new BoundingSphere(\r\n \t\t new Point3d( 0.0, 0.0, 0.0 ), // Center\r\n \t\t 1000000000000000000000.0 ); // Extent\r\n \t\t\r\n \t// Set the background color and its application bounds\r\n \tbg = new Background( );\r\n \tbg.setColor( backgroundColor );\r\n \tbg.setCapability( Background.ALLOW_COLOR_WRITE );\r\n \tbg.setCapability( Background.ALLOW_COLOR_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_WRITE );\r\n \tbg.setApplicationBounds( worldBounds );\r\n \t\r\n \treturn bg;\r\n }",
"public void onColorsRotate() {\n if (this.screenType == 2) {\n this.backgroundRotation += 45;\n while (true) {\n int i = this.backgroundRotation;\n if (i >= 360) {\n this.backgroundRotation = i - 360;\n } else {\n setBackgroundColor(this.backgroundColor, 0, true, true);\n return;\n }\n }\n } else {\n this.accent.backgroundRotation += 45;\n while (true) {\n Theme.ThemeAccent themeAccent = this.accent;\n int i2 = themeAccent.backgroundRotation;\n if (i2 >= 360) {\n themeAccent.backgroundRotation = i2 - 360;\n } else {\n Theme.refreshThemeColors();\n return;\n }\n }\n }\n }",
"public void setBg(){\n this.setBackground(color);\n }",
"@Override\n\tpublic void run() {\n\t\tfor(int i=0; i<views.length; i++){\n\t\t\tviews[i].setBackgroundColor(getResources().getColor(colors[(i+color_offset_index)%(views.length)]));\t\n\t\t}\n\n\t\thandler.postDelayed(this, 500);\n\t\tcolor_offset_index++;\n//\t\tif(color_offset_index >= views.length){//可有可无,即使溢出也从0重新开始\n//\t\t\tcolor_offset_index = 0;\n//\t\t}\n\t}",
"public void setBackgroundColor(int i, int i2, boolean z, boolean z2) {\n MotionBackgroundDrawable motionBackgroundDrawable;\n if (i2 == 0) {\n this.backgroundColor = i;\n } else if (i2 == 1) {\n this.backgroundGradientColor1 = i;\n } else if (i2 == 2) {\n this.backgroundGradientColor2 = i;\n } else if (i2 == 3) {\n this.backgroundGradientColor3 = i;\n }\n updatePlayAnimationView(z2);\n if (this.backgroundCheckBoxView != null) {\n int i3 = 0;\n while (true) {\n WallpaperCheckBoxView[] wallpaperCheckBoxViewArr = this.backgroundCheckBoxView;\n if (i3 >= wallpaperCheckBoxViewArr.length) {\n break;\n }\n if (wallpaperCheckBoxViewArr[i3] != null) {\n wallpaperCheckBoxViewArr[i3].setColor(i2, i);\n }\n i3++;\n }\n }\n if (this.backgroundGradientColor2 != 0) {\n if (this.intensitySeekBar != null && Theme.getActiveTheme().isDark()) {\n this.intensitySeekBar.setTwoSided(true);\n }\n Drawable background = this.backgroundImage.getBackground();\n if (background instanceof MotionBackgroundDrawable) {\n motionBackgroundDrawable = (MotionBackgroundDrawable) background;\n } else {\n motionBackgroundDrawable = new MotionBackgroundDrawable();\n motionBackgroundDrawable.setParentView(this.backgroundImage);\n if (this.rotatePreview) {\n motionBackgroundDrawable.rotatePreview(false);\n }\n }\n motionBackgroundDrawable.setColors(this.backgroundColor, this.backgroundGradientColor1, this.backgroundGradientColor2, this.backgroundGradientColor3);\n this.backgroundImage.setBackground(motionBackgroundDrawable);\n this.patternColor = motionBackgroundDrawable.getPatternColor();\n this.checkColor = NUM;\n } else if (this.backgroundGradientColor1 != 0) {\n this.backgroundImage.setBackground(new GradientDrawable(BackgroundGradientDrawable.getGradientOrientation(this.backgroundRotation), new int[]{this.backgroundColor, this.backgroundGradientColor1}));\n int patternColor2 = AndroidUtilities.getPatternColor(AndroidUtilities.getAverageColor(this.backgroundColor, this.backgroundGradientColor1));\n this.checkColor = patternColor2;\n this.patternColor = patternColor2;\n } else {\n this.backgroundImage.setBackgroundColor(this.backgroundColor);\n int patternColor3 = AndroidUtilities.getPatternColor(this.backgroundColor);\n this.checkColor = patternColor3;\n this.patternColor = patternColor3;\n }\n if (!Theme.hasThemeKey(\"chat_serviceBackground\") || (this.backgroundImage.getBackground() instanceof MotionBackgroundDrawable)) {\n int i4 = this.checkColor;\n Theme.applyChatServiceMessageColor(new int[]{i4, i4, i4, i4}, this.backgroundImage.getBackground());\n } else if (Theme.getCachedWallpaper() instanceof MotionBackgroundDrawable) {\n int color = Theme.getColor(\"chat_serviceBackground\");\n Theme.applyChatServiceMessageColor(new int[]{color, color, color, color}, this.backgroundImage.getBackground());\n }\n ImageView imageView = this.backgroundPlayAnimationImageView;\n if (imageView != null) {\n imageView.setColorFilter(new PorterDuffColorFilter(Theme.getColor(\"chat_serviceText\"), PorterDuff.Mode.MULTIPLY));\n }\n ImageView imageView2 = this.messagesPlayAnimationImageView;\n if (imageView2 != null) {\n imageView2.setColorFilter(new PorterDuffColorFilter(Theme.getColor(\"chat_serviceText\"), PorterDuff.Mode.MULTIPLY));\n }\n BackupImageView backupImageView = this.backgroundImage;\n if (backupImageView != null) {\n backupImageView.getImageReceiver().setColorFilter(new PorterDuffColorFilter(this.patternColor, this.blendMode));\n this.backgroundImage.getImageReceiver().setAlpha(Math.abs(this.currentIntensity));\n this.backgroundImage.invalidate();\n if (!Theme.getActiveTheme().isDark() || !(this.backgroundImage.getBackground() instanceof MotionBackgroundDrawable)) {\n this.backgroundImage.getImageReceiver().setGradientBitmap((Bitmap) null);\n SeekBarView seekBarView = this.intensitySeekBar;\n if (seekBarView != null) {\n seekBarView.setTwoSided(false);\n }\n } else {\n SeekBarView seekBarView2 = this.intensitySeekBar;\n if (seekBarView2 != null) {\n seekBarView2.setTwoSided(true);\n }\n if (this.currentIntensity < 0.0f) {\n this.backgroundImage.getImageReceiver().setGradientBitmap(((MotionBackgroundDrawable) this.backgroundImage.getBackground()).getBitmap());\n }\n }\n SeekBarView seekBarView3 = this.intensitySeekBar;\n if (seekBarView3 != null) {\n seekBarView3.setProgress(this.currentIntensity);\n }\n }\n RecyclerListView recyclerListView = this.listView2;\n if (recyclerListView != null) {\n recyclerListView.invalidateViews();\n }\n FrameLayout frameLayout2 = this.backgroundButtonsContainer;\n if (frameLayout2 != null) {\n int childCount = frameLayout2.getChildCount();\n for (int i5 = 0; i5 < childCount; i5++) {\n this.backgroundButtonsContainer.getChildAt(i5).invalidate();\n }\n }\n FrameLayout frameLayout3 = this.messagesButtonsContainer;\n if (frameLayout3 != null) {\n int childCount2 = frameLayout3.getChildCount();\n for (int i6 = 0; i6 < childCount2; i6++) {\n this.messagesButtonsContainer.getChildAt(i6).invalidate();\n }\n }\n RadialProgress2 radialProgress2 = this.radialProgress;\n if (radialProgress2 != null) {\n radialProgress2.setColors(\"chat_serviceBackground\", \"chat_serviceBackground\", \"chat_serviceText\", \"chat_serviceText\");\n }\n }",
"public static int color(Context context) {\n\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tint bg = prefs.getInt(\"menu.background\", 0x7c000000);\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}",
"public abstract void setForegroundPressed(final int rgba);",
"public void setColor(int datapoints) {\n\t\tif (datapoints == 0) {\n\t\t\tmainSash.setBackground(new Color(Display.getCurrent(), new RGB(180, 0, 0)));\n\t\t} else {\n\t\t\tmainSash.setBackground(new Color(Display.getCurrent(), new RGB(0, 180, 0)));\n\t\t}\n\t}",
"@Override\n public void onAnimationUpdate(ValueAnimator\n animator) {\n etiqueta.setBackgroundColor((Integer)animator.getAnimatedValue());\n }",
"private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}",
"public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }",
"public Color getBackground(){\r\n return back;\r\n }",
"private void drawBackground() {\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(0,0,512, 512);\n\t\t\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(128, 0, 256, 512);\n\t}",
"public void setBackgroundColor(int red, int green, int blue, int alpha){\n if(isTheColorInputCorrect(red, green, blue, alpha)){\n backgroundColor = new Color(red, green, blue, alpha); \n }\n }",
"private void setBgColor(Color c)\n\t{\n\t\teToPower.setBackground (c);\n\t\ttwoPower.setBackground (c);\n\t\tln.setBackground (c);\n\t\txCube.setBackground (c);\n\t\txSquare.setBackground (c);\n\t\tdel.setBackground (c);\n\t\tcubeRoot.setBackground (c);\n\t\tC.setBackground (c);\n\t\tnegate.setBackground (c);\n\t\tsquareRoot.setBackground (c);\n\t\tnine.setBackground (c);\n\t\teight.setBackground (c);\n\t\tseven.setBackground (c);\n\t\tsix.setBackground (c);\n\t\tfive.setBackground (c);\n\t\tfour.setBackground (c);\n\t\tthree.setBackground (c);\n\t\ttwo.setBackground (c);\n\t\tone.setBackground (c);\n\t\tzero.setBackground (c);\n\t\tdivide.setBackground (c);\n\t\tpercent.setBackground (c);\n\t\tmultiply.setBackground (c);\n\t\treciprocal.setBackground (c);\n\t\tadd.setBackground (c);\n\t\tsubtract.setBackground (c);\n\t\tdecimalPoint.setBackground (c);\n\t\tequals.setBackground (c);\n\t\te.setBackground (c);\n\t\tPI.setBackground (c);\n\t\tentry.setBackground (c);\n\t\t\n\t\tmenuBar.setBackground (c);\n\t\tfileMenu.setBackground (c);\n\t\ttoolsMenu.setBackground (c);\n\t\thelpMenu.setBackground (c);\n\t\t\n\t\texit.setBackground (c);\n\t\tsettings.setBackground (c);\n\t\tabout.setBackground (c);\n\t\treadme.setBackground (c);\n\t}",
"protected void setPlayerBackground() { Console.setBackground(Console.YELLOW); }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\trunOnUiThread(new Runnable() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif(isRecognition) {\n\t\t\t\t\t\t\talpha *= 0.95f;\n//\t\t\t\t\t\t\tsetBackgroundColor((int) (255 * (1 - label) * alpha));\n\t\t\t\t\t\t\ttxtHandParts.setTextColor(Color.argb((int) (alpha * 255), 255,\n\t\t\t\t\t\t\t\t\t255, 255));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(alpha > 0.1f) {\n\t\t\t\t\t\t\t\tLog.d(LOGTAG, (int) (255 * (1 - label) * alpha)+\"\");\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}",
"public final void mo39711K() {\n setBackgroundColor(0);\n }",
"public void setRgbColorBg(int newval) throws YAPI_Exception\n {\n _rgbColor = newval;\n _ycolorled.set_rgbColor(newval);\n }",
"private void setBackground() {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String status = city.getStatus();\n switch (status) {\n case \"Clear\":\n background.setBackgroundResource(R.drawable.sunny_day);\n break;\n case\"Rain\":\n case \"Drizzle\":\n case \"Thunderstorm\":\n background.setBackgroundResource(R.drawable.rainy_day);\n break;\n default:\n background.setBackgroundResource(R.drawable.cloudy_day);\n }\n }\n });\n }",
"public void setBackgroundColorByPosition(int position) {\n if (position % 2 == 0) {\n mRelative.setBackgroundColor(getResources().getColor(R.color.colorBeige));\n\n } else{\n mRelative.setBackgroundColor(getResources().getColor(R.color.colorTaupe));\n }\n }",
"public void setBackground(int x)\r\n { \t\r\n \tbg.setColor(ptools.color2Color3f(x));\r\n }",
"private void assignColors() {\n soundQuickStatus.setBackground(drawables[noise]);\n comfortQuickStatus.setBackground(drawables[comfort]);\n lightQuickStatus.setBackground(drawables[light]);\n convenienceQuickStatus.setBackground(drawables[convenience]);\n }",
"public void setBackground(float[] rvba_01){\n\t\tswingComponent.setBackground(new Color(rvba_01[R_INDEX], rvba_01[G_INDEX], rvba_01[B_INDEX], rvba_01[A_INDEX]));\n\t}",
"protected int getShadeAlpha() {\n int a = currAlpha - 80;\n if (a < 0)\n a = 0;\n return a;\n }",
"public void enterBackground();",
"protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }",
"public void showBgColoredSurface(int color, Rect bounds) {\n this.mBackgourndSurface = makeSurfaceController(TAG, bounds.width(), bounds.height());\n Surface surface = new Surface(this.mBackgourndSurface);\n Canvas canvas = null;\n try {\n canvas = surface.lockCanvas(bounds);\n } catch (Surface.OutOfResourcesException | IllegalArgumentException e) {\n SlogEx.i(TAG, \"lockCanvas exception\");\n }\n if (canvas != null) {\n canvas.drawColor(color);\n surface.unlockCanvasAndPost(canvas);\n surface.release();\n showBackgroundSurface(new Point(bounds.left, bounds.top));\n }\n }",
"@Override\n public GralColor setBackgroundColor(GralColor color)\n {\n return null;\n }",
"void onRenderBackground(RenderArguments arguments);",
"@Override\n protected void onStart() {\n super.onStart();\n Log.v(TAG, \"Invoked onStart()\");\n\n //checking the background colour returned from the settings screen.\n //invoking this code within the onStart method so that when we finish() the settings activity\n //it will load the new colour on the home activity\n SharedPreferences prefs = this.getSharedPreferences(\"usernamePrefs\", Context.MODE_PRIVATE);\n bgChoice = prefs.getInt(\"bg\", 0);\n SharedPreferences.Editor editor = prefs.edit();\n\n layout = findViewById(R.id.layoutMain);\n\n if(bgChoice == 1) {\n //if the bgChoice int that has been returned is equal to 1 then set the background to\n //homev2\n layout.setBackgroundResource(R.drawable.homev2);\n } else if(bgChoice == 2) {\n //if the bgChoice int that has been returned is equal to 2 then set the background to\n //homev3\n layout.setBackgroundResource(R.drawable.homev3);\n } else if(bgChoice == 3) {\n //if the bgChoice int that has been returned is equal to 3 then set the background to\n //homev4\n layout.setBackgroundResource(R.drawable.homev4);\n }\n\n }",
"public static int color(int bg) {\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}",
"public Color getBackgroundColor(){\n\t\treturn Color.BLACK;\n\t}",
"public void changeColor() {\n linearLayout.setBackgroundColor(currentColor);\n for (int i = 0; i < arrayList.size(); i++) {\n arrayList.get(i).gifImageView.setBackgroundColor(currentColor);\n }\n }",
"protected int getColor() {\n return Color.TRANSPARENT;\n }",
"public void setupGUI(){\n //home button\n homeBtn = (ImageButton) findViewById(R.id.home_button);\n homeBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n goToHome();\n }\n });\n\n sharedpreferences = getSharedPreferences(savedColor, Context.MODE_PRIVATE);\n\n int value1 = sharedpreferences.getInt(\"value1\", 0);\n int value2 = sharedpreferences.getInt(\"value2\", 0);\n int value3 = sharedpreferences.getInt(\"value3\", 0);\n int value4 = sharedpreferences.getInt(\"set\", 0);\n if(value4 != 0){\n View v = findViewById(R.id.measure_id_3);\n v.setBackgroundColor(Color.rgb(value1, value3, value2));\n setContentView(v);\n }\n }",
"private void initColours() {\n colourArray = Utilities.get2dResourceArray(getContext(), \"colour\");\n\n // A means to save colour configuration when screen is rotated between games.\n if (colourSet == null) {\n // Set new colour pairing.\n colourSet = new ColourSet();\n }\n\n // Set View colours\n mGameLoop.setColour(colourSet.primarySet);\n setToolbarColour(colourSet.primaryColourDark);\n mAltBackground.setBackgroundColor(colourSet.primaryColour);\n mTempToolbar.setBackgroundColor(colourSet.primaryColourDark);\n mFab.setBackgroundTintList(ColorStateList.valueOf(colourSet.secondaryColour));\n mWorldScore.setBackgroundColor(colourSet.getPrimaryColour(COLOUR_LOCATION_SCORE));\n }",
"public void setBackground(int r, int g, int b)\r\n {\r\n \tbg.setColor(new Color3f(ptools.ColorInt2Float(r), ptools.ColorInt2Float(g), ptools.ColorInt2Float(b)));\r\n }",
"@Override\n public void setBackgroundColor(@ColorInt int backgroundColor) {\n if (this != null) {\n this.setBackgroundColor(backgroundColor);\n }\n }",
"public void draw() {\n background(0);\n}",
"@Override\r\n\tpublic void setBackgroundResource(int resid) {\n\t\tsuper.setBackgroundResource(resid);\r\n\t}",
"public void RGB_Mix(View view) {\r\n int [] color= {0,0,0};\r\n\r\n adb= new AlertDialog.Builder(this);\r\n adb.setCancelable(false);\r\n adb.setTitle(\"Core Colors Mix\");\r\n adb.setMultiChoiceItems(colors, null, new DialogInterface.OnMultiChoiceClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\r\n if(isChecked) color[which]=255;\r\n else if(color[which]==255) color[which]=0;\r\n }\r\n });\r\n adb.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n lL.setBackgroundColor(Color.rgb(color[0],color[1],color[2]));\r\n\r\n }\r\n });\r\n adb.setNegativeButton(\"Exit\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n\r\n }\r\n });\r\n AlertDialog ad=adb.create();\r\n ad.show();\r\n }",
"protected void addopqueueonBackground() {\n\t\tlv.setClickable(false);\n\t\tlvx.setClickable(false);\n\t\trefresh.setClickable(false);\n\t\tsearch.setClickable(false);\n\t\tsearch.setEnabled(false);\n\t\tlv.setEnabled(false);\n\t\tlvx.setEnabled(false);\n\t\trefresh.setEnabled(false);\n\t\tcancelButton.setClickable(false);\n\t\tcancelButton.setEnabled(false);\n\t\tlistbackground.setAlpha(0.5f);\n\t\tbackground.setAlpha(0.5f);\n\t}",
"public void setFrameBackgroundColor(int i2) {\n this.n.setColor(i2);\n }",
"private void setTheBackground(){\n\t\tString user_choice = prefs.getString(\"pref_background_choice\",\"blue_glass\");\n\t\tLog.d(\"User Background Choice\", user_choice);\n\t\tLinearLayout layout = (LinearLayout) findViewById(R.id.activity_mail_select_layout);\n\t\tif (user_choice.equalsIgnoreCase(\"blue_glass\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.blue_glass));\n\t\t} else if (user_choice.equalsIgnoreCase(\"blue_oil_painting\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.blue_oil_painting));\n\t\t} else if (user_choice.equalsIgnoreCase(\"stained_glass_blue\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.stained_glass_blue));\n\t\t} else if (user_choice.equalsIgnoreCase(\"light_blue_boxes\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.light_blue_boxes));\n\t\t} else if (user_choice.equalsIgnoreCase(\"light_silver_background\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.light_silver_background));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_grey\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_grey));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_apricot\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_apricot));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_teal\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_teal));\n\t\t} else if (user_choice.equalsIgnoreCase(\"xmas\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.xmas));\n\t\t} else if (user_choice.equalsIgnoreCase(\"lacuna_logo\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.lacuna_logo));\n\t\t} else {\n\t\t}\n\t}",
"private void makeTransparentBackground(View v)\n {\n v.setBackgroundColor(0x00000000); //set the transparent background\n }",
"private void drawBackground() {\n g2.setColor(SquareRenderer.BLANK_CELL_COLOR);\n g2.fillRect(BORDER_SIZE, BORDER_SIZE, BOARD_SIZE, BOARD_SIZE);\n }",
"public static void setViewBGcolor(Context context, int color){\n SharedPreferences.Editor edit = context.getSharedPreferences(\"DEFAULTS\", Context.MODE_PRIVATE).edit();\n edit.putInt(\"bgColor\", color);\n edit.apply();\n }",
"@Override\n public void onGenerated(Palette palette) {\n int defaultValue = 0x000000;\n chosenColor = palette.getDarkMutedColor(defaultValue);\n collapsingToolbar.setContentScrimColor(chosenColor);\n\n //changing the status bar color\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n int darkerColorChosen=getDarkerColor(chosenColor, 0.8f);\n window.setStatusBarColor(darkerColorChosen);\n }\n\n }",
"public void buildWheelIfNeeded(Context mContext) {\n if (primary == null) {\n primary = new int[]{\n mContext.getResources().getColor(R.color.purple_500),\n mContext.getResources().getColor(R.color.teal_500),\n mContext.getResources().getColor(R.color.deep_orange_500),\n mContext.getResources().getColor(R.color.pink_500),\n mContext.getResources().getColor(R.color.yellow_500),\n mContext.getResources().getColor(R.color.indigo_500)\n };\n }\n if (secondary == null) {\n secondary = new int[]{\n mContext.getResources().getColor(R.color.purple_200),\n mContext.getResources().getColor(R.color.teal_200),\n mContext.getResources().getColor(R.color.deep_orange_200),\n mContext.getResources().getColor(R.color.pink_200),\n mContext.getResources().getColor(R.color.yellow_200),\n mContext.getResources().getColor(R.color.indigo_200)\n };\n }\n }",
"public void setBackgroundColor(Color c) {\n backColor = c;\n updateFigureForModel(nodeFigure);\n }",
"@Override\n public void mousePressed(MouseEvent arg0) {\n yourBoardPanel[xx][yy].setBackground(new Color(175, 175, 0));\n }",
"public void setColor()\n {\n String PREF_FILE_NAME = \"PrefFile\";\n final SharedPreferences preferences = getSharedPreferences(PREF_FILE_NAME, MODE_PRIVATE);\n\n if(preferences.getBoolean(\"ColorBlind\", false)) {\n View box1 = this.findViewById(R.id.username);\n box1.setBackgroundColor(0xffffffff);\n\n View box2 = this.findViewById(R.id.password);\n box2.setBackgroundColor(0xffffffff);\n\n View box3 = this.findViewById(R.id.Login);\n box3.setBackgroundColor(0xffffffff);\n\n }\n }",
"public void setBackgroundLayerColor(int color) {\n this.backgroundLayerColor = color;\n }",
"public Background(int w, int h) {\n this.width = w;\n this.height = h;\n\t\t\tsetBackground(Color.RED); //background is red\n\t\t}",
"private void assignTileColor() {\n boolean isLightTile = ((tileCoordinate + tileCoordinate / 8) % 2 == 0);\n setBackground(isLightTile ? LIGHT_TILE_COLOR : DARK_TILE_COLOR);\n }",
"public Color getBackgroundColor() {\n return backColor;\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tlyt_appback = (LinearLayout)findViewById(R.id.lyt_appback);\t\t\n\t\tlyt_appback.setBackgroundResource(Application.appDrawableId);\n\t}",
"private void initBackgroundColorClick() {\n\t\tRadioGroup rgBackgroundColor = (RadioGroup) findViewById(R.id.radioGroup3);\n\t\trgBackgroundColor.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCheckedChanged(RadioGroup arg0, int arg1) {\n\n\t\t\t\tScrollView sv = (ScrollView) findViewById(R.id.scrollView);\n\n\t\t\t\tswitch (arg1) {\n\t\t\t\t\tcase R.id.radioGreen: {\n\t\t\t\t\t\tgetSharedPreferences(\"MyContactListPreferences\", Context.MODE_PRIVATE).edit().putString(\"bgcolor\", \"green\").commit();\n\t\t\t\t\t\tsv.setBackgroundResource(R.color.green);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase R.id.radioPink: {\n\t\t\t\t\t\tgetSharedPreferences(\"MyContactListPreferences\", Context.MODE_PRIVATE).edit().putString(\"bgcolor\", \"pink\").commit();\n\t\t\t\t\t\tsv.setBackgroundResource(R.color.pink);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tcase R.id.radioBlue: {\n\t\t\t\t\t\tgetSharedPreferences(\"MyContactListPreferences\", Context.MODE_PRIVATE).edit().putString(\"bgcolor\", \"blue\").commit();\n\t\t\t\t\t\tsv.setBackgroundResource(R.color.blue);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"private void m113393a() {\n ViewPager viewPager = this.f91930a.getViewPager();\n ObjectAnimator ofInt = ObjectAnimator.ofInt(this.f91930a, \"backgroundColor\", new int[]{this.f91930a.mo89500a(this.f91930a.f92028d), this.f91930a.mo89500a(255.0f)});\n ofInt.setEvaluator(new ArgbEvaluator());\n ObjectAnimator ofFloat = ObjectAnimator.ofFloat(viewPager, \"translationY\", new float[]{viewPager.getTranslationY(), 0.0f});\n AnimatorSet animatorSet = new AnimatorSet();\n animatorSet.playTogether(new Animator[]{ofInt, ofFloat});\n animatorSet.start();\n }",
"private void drawBackground() {\r\n\r\n\t\tGL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\r\n\t\tthis.mc.renderEngine.bindTexture(BACKGROUND_RESOURCE);\r\n\t\tString text = \"Nitro Teleport Waypoints\";\r\n\t\tint posX = (width - SIZE_X) / 2;\r\n\t\tint posY = (height - SIZE_Y) / 2;\r\n\t\tint strWidth = this.fontRendererObj.getStringWidth(text);\r\n\r\n\t\tthis.drawTexturedModalRect(posX, posY, 0, 0, SIZE_X, SIZE_Y);\r\n\t\tthis.drawCenteredString(this.fontRendererObj, text, width / 2, posY - 17, 0xFFFFFF);\r\n\t}",
"public void chooseBackgroundColor(){\n currentBackgroundColor = backgroundColorPicker.getValue();\n draw();\n }",
"public void setBgColours(weatherData tmp) {\n\t\t\t\t\tswitch(tmp.getCondit()) {\n\t\t\t\t\t\tcase \"sky is clear \":\n\t\t\t\t\t\tcase \"clear sky \":\n\t\t\t\t\t\tcase \"Sky is Clear \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(255, 215,0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(255, 111, 0);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"few clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 255, 0);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(9, 173, 33);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"scattered clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 90);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(45, 110, 35);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"broken clouds \":\n\t\t\t\t\t\tcase \"overcast clouds \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(30, 255, 150);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 150, 130);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"shower rain \":\n\t\t\t\t\t\tcase \"light intensity drizzle \":\n\t\t\t\t\t\tcase \"drizzle \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle \":\n\t\t\t\t\t\tcase \"light intensity drizzle rain \":\n\t\t\t\t\t\tcase \"drizzle rain \":\n\t\t\t\t\t\tcase \"heavy intensity drizzle rain \":\n\t\t\t\t\t\tcase \"shower rain and drizzle \":\n\t\t\t\t\t\tcase \"heavy shower rain and drizzle \":\n\t\t\t\t\t\tcase \"shower drizzle \":\n\t\t\t\t\t\tcase \"light intensity shower rain \":\n\t\t\t\t\t\tcase \"heavy intensity shower rain \":\n\t\t\t\t\t\tcase \"ragged shower rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0,255,255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 130, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"rain \":\n\t\t\t\t\t\tcase \"light rain \":\n\t\t\t\t\t\tcase \"moderate rain \":\n\t\t\t\t\t\tcase \"heavy intensity rain \":\n\t\t\t\t\t\tcase \"very heavy rain \":\n\t\t\t\t\t\tcase \"extreme rain \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 166, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(30, 50, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light rain \":\n\t\t\t\t\t\tcase \"thunderstorm with rain \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy rain \":\n\t\t\t\t\t\tcase \"light thunderstorm \":\n\t\t\t\t\t\tcase \"heavy thunderstorm \":\n\t\t\t\t\t\tcase \"ragged thunderstorm \":\n\t\t\t\t\t\tcase \"thunderstorm with light drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with drizzle \":\n\t\t\t\t\t\tcase \"thunderstorm with heavy drizzle \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(0, 95, 255);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(60, 30, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"snow \":\n\t\t\t\t\t\tcase \"freezing rain \":\n\t\t\t\t\t\tcase \"light snow \":\n\t\t\t\t\t\tcase \"heavy snow \":\n\t\t\t\t\t\tcase \"sleet \":\n\t\t\t\t\t\tcase \"shower sleet \":\n\t\t\t\t\t\tcase \"light rain and snow \":\n\t\t\t\t\t\tcase \"rain and snow \":\n\t\t\t\t\t\tcase \"light shower snow \":\n\t\t\t\t\t\tcase \"shower snow \":\n\t\t\t\t\t\tcase \"heavy shower snow \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(145, 245, 245);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(75, 150, 160);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"mist \":\n\t\t\t\t\t\tcase \"smoke \":\n\t\t\t\t\t\tcase \"haze \":\n\t\t\t\t\t\tcase \"sand, dust whirls \":\n\t\t\t\t\t\tcase \"fog \":\n\t\t\t\t\t\tcase \"sand \":\n\t\t\t\t\t\tcase \"dust \":\n\t\t\t\t\t\tcase \"volcanic ash \":\n\t\t\t\t\t\tcase \"squalls \":\n\t\t\t\t\t\tcase \"tornado \":\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(200, 210, 210);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(85, 110, 100);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\tcolor1 = new Color(160, 120, 240);\n\t\t\t\t\t\t\t\t\tcolor2 = new Color(40, 10, 90);\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"public abstract void setBackgroundHover(final int rgba);",
"protected Background background () {\n return Background.bordered(0xFFCCCCCC, 0xFFCC99FF, 5).inset(5);\n }",
"private void setupAllBackgroundColorViews(){\n allBackgroundColorViews = new ArrayList<>();\n allBackgroundColorViews.add(clMainScreenEncompassing);\n allBackgroundColorViews.add(containerDegrees);\n allBackgroundColorViews.add(containerRadians);\n allBackgroundColorViews.add(containerSine);\n allBackgroundColorViews.add(containerCosine);\n allBackgroundColorViews.add(containerTangent);\n allBackgroundColorViews.add(containerRadianControl);\n }",
"private void changeButtonBackground(final int row, final int col, final boolean mode){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if(mode)\n buttons[row][col].setBackground(new BitmapDrawable(getResources(), buttons[row][col].getBitmap()));\n\n else{\n buttons[row][col].setBackgroundResource(android.R.drawable.btn_default);\n }\n }\n });\n }"
] | [
"0.67259985",
"0.6595715",
"0.65832627",
"0.6423258",
"0.6289663",
"0.62326545",
"0.6232581",
"0.62237734",
"0.61843187",
"0.6132572",
"0.612847",
"0.6097026",
"0.60552156",
"0.60519785",
"0.6037003",
"0.6036531",
"0.6025955",
"0.6001259",
"0.5991261",
"0.5985455",
"0.59819555",
"0.5968724",
"0.5945767",
"0.5889804",
"0.5876439",
"0.58698946",
"0.58654064",
"0.5860566",
"0.582088",
"0.5815312",
"0.5814524",
"0.58103466",
"0.5804847",
"0.5790498",
"0.5764346",
"0.5760801",
"0.5753905",
"0.574313",
"0.57230616",
"0.5722593",
"0.5708961",
"0.5683366",
"0.5673513",
"0.5668171",
"0.5635821",
"0.5622153",
"0.56204766",
"0.5619842",
"0.56114405",
"0.56087756",
"0.5592945",
"0.558603",
"0.55787003",
"0.55766314",
"0.55533046",
"0.5528682",
"0.5525828",
"0.5510474",
"0.55081457",
"0.5497956",
"0.5492315",
"0.5491964",
"0.5487953",
"0.5478685",
"0.54649466",
"0.54459167",
"0.5443245",
"0.54408115",
"0.5433909",
"0.5431939",
"0.5421438",
"0.54202956",
"0.5405255",
"0.5394868",
"0.5384378",
"0.5381257",
"0.5380977",
"0.5378318",
"0.5374429",
"0.5374373",
"0.5374256",
"0.53735137",
"0.53689057",
"0.53571093",
"0.5354379",
"0.53474295",
"0.5342506",
"0.5342311",
"0.5341091",
"0.5338166",
"0.53358024",
"0.53249705",
"0.53184557",
"0.53141063",
"0.5306068",
"0.5300242",
"0.5297239",
"0.5291025",
"0.5290539",
"0.52863926"
] | 0.63209355 | 4 |
TODO Autogenerated method stub | @Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AppManager.getInstance().addActivity(this);
} | {
"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 int compare(PackageSubscription o1, PackageSubscription o2) {
return o2.getEndDate().compareTo(o1.getEndDate());
} | {
"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 |
Use the current date as the default date in the picker | @Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
final Calendar c = Calendar.getInstance();
int year = c.get(Calendar.YEAR);
int month = c.get(Calendar.MONTH);
int day = c.get(Calendar.DAY_OF_MONTH);
d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);
DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);
datePickerDialog.updateDate(year, month, day);
// Create a new instance of DatePickerDialog and return it
return datePickerDialog;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}",
"public void set_value_to_default() {\n this.selectionListStrike.setText(\"\");\n this.selectionListCal_iv.setText(\"\");\n this.selectionListUlast.setText(\"\");\n String format = new SimpleDateFormat(\"dd/MM/yyyy\").format(new Date());\n int parseInt = Integer.parseInt(format.substring(6, 10));\n int parseInt2 = Integer.parseInt(format.substring(3, 5));\n int parseInt3 = Integer.parseInt(format.substring(0, 2));\n this.selectedDate = parseInt + \"-\" + parseInt2 + \"-\" + parseInt3;\n this.selectionListExpiry.setSelectedText(format);\n this.selectionListExpiry.initItems(R.string.set_date, SelectionList.PopTypes.DATE, parseInt, parseInt2, parseInt3);\n if (!this.wtype.equals(\"C\")) {\n this.callputbutton.callOnClick();\n }\n }",
"public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }",
"public Date getSelectedDate();",
"public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}",
"private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}",
"private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }",
"public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }",
"abstract Date getDefault();",
"private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }",
"protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }",
"public String getDefaultDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMMM d, yyyy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\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 setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }",
"public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }",
"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 }",
"private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }",
"@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }",
"private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }",
"public void setCurrentDate(String d) {\n currentDate = d;\n }",
"@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }",
"public void setTodayCalendar()\n {\n this.currentCalendar = Calendar.getInstance();\n }",
"public Date getSelectDate();",
"public void setPickerDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.getYear(), date.getMonth().getValue(), date.getDayOfMonth()));\n new Dialog().confirmDialog();\n }",
"public void selectDate(){\r\n\t\tcloseDateText.sendKeys(ConvertDate());\r\n\t}",
"public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }",
"public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }",
"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}",
"private DatePicker createDatePicker(boolean veto) {\r\n DatePickerSettings datePickerSettings = new DatePickerSettings();\r\n datePickerSettings.setAllowEmptyDates(false);\r\n datePickerSettings.setAllowKeyboardEditing(false);\r\n DatePicker datePicker = new DatePicker(datePickerSettings);\r\n if (veto) {\r\n // If today is Saturday or Sunday, this sets the default\r\n // to the following Monday\r\n if (LocalDate.now().getDayOfWeek() == DayOfWeek.SATURDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(3));\r\n } else if (LocalDate.now().getDayOfWeek() == DayOfWeek.SUNDAY) {\r\n datePicker.setDate(LocalDate.now().plusDays(2));\r\n } else datePicker.setDate(LocalDate.now().plusDays(1));\r\n // Veto Policy to disallow weekends\r\n datePickerSettings.setVetoPolicy(new VetoDates());\r\n } else datePicker.setDate(LocalDate.now());\r\n return datePicker;\r\n }",
"public void setDefaultDateRange() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n Calendar todaysDate = Calendar.getInstance();\n toDateField.setText(dateFormat.format(todaysDate.getTime()));\n\n todaysDate.set(Calendar.DAY_OF_MONTH, 1);\n fromDateField.setText(dateFormat.format(todaysDate.getTime()));\n }",
"public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }",
"public void SetCurrentDate(CalendarWidget kCal) {\n\t\tfor(int i = 0; i < 42; ++i)\n\t\t{\n\t\t\tif(kCal.cell[i].date.getText().toString().length() == 0)\n\t\t\t\tcontinue;\n\t\t\tkCal.checkForCurrentData(kCal.cell[i]);\n\t\t}\n\t}",
"private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(Addnewuser.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n dob.setText(birthday);\n // Toast.makeText(Addnewuser.this, \"\"+birthday+\"\\n\" +\n // \"\"+date.toString(), Toast.LENGTH_SHORT).show();\n\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n }",
"@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }",
"public Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}",
"public GregorianCalendar getSelectedDate(){\n int day = Integer.parseInt(this.date_day.getSelectedItem().toString());\n int month = Integer.parseInt(this.date_month.getSelectedItem().toString());\n int year = Integer.parseInt(this.date_year.getSelectedItem().toString());\n\n GregorianCalendar date = new GregorianCalendar();\n date.setTimeInMillis(0);\n \n date.set(Calendar.DAY_OF_MONTH, day);\n date.set(Calendar.MONTH, month -1);\n date.set(Calendar.YEAR, year);\n\n return date;\n }",
"private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }",
"public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }",
"public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}",
"private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }",
"public DatePickerDialog(@NonNull Context context) {\n this(context, 0, null, Calendar.getInstance(), -1, -1, -1);\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,\n int monthOfYear, int dayOfMonth) {\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_eDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }",
"public Main() {\n initComponents();\n setColor(btn_home);\n String date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n jcurrentDate.setText(date);\n \n }",
"@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n CharSequence strDate = null;\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, monthOfYear, year);\n\n long dateAttendance = chosenDate.toMillis(true);\n strDate = DateFormat.format(\"dd-MM-yyyy\", dateAttendance);\n\n edt_std_leave_sDate.setText(strDate);\n currentDate = String.valueOf(strDate);\n }",
"@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDateField.setText(year + \"/\" + (month + 1) + \"/\" + day);\n }",
"public static void setDate() {\r\n\t\tDate.set(DateFormat.getDateTimeInstance(DateFormat.SHORT,\r\n\t\t\t\tDateFormat.LONG, Locale.getDefault()).format(\r\n\t\t\t\tnew java.util.Date()));\r\n\t}",
"private void initializeDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\n\t\tmYear = c.get(Calendar.YEAR);\n\t\tmMonth = c.get(Calendar.MONTH);\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\n\t\t\n\t\texpense.setDate(c.getTime());\n\n\t\t// display the current date\n\t\tupdateDateDisplay();\n\t}",
"private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }",
"private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\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 }",
"@TargetApi(Build.VERSION_CODES.O)\n public LocalDate getTodayDate() {\n LocalDate date;\n date = LocalDate.now();\n return date;\n }",
"private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }",
"public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }",
"public String getCurrentDate() {\n return currentDate;\n }",
"public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}",
"DateFormatPanel() {\r\n\t\tfDateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT);\r\n\t}",
"public void setSelectedDate(Date selectedDate);",
"public DateChooser(Locale locale) {\r\n this.locale = locale;\r\n currentDate = Calendar.getInstance(locale);\r\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 }",
"public static Date today() // should it be void?\n {\n GregorianCalendar currentDate = new GregorianCalendar();\n int day = currentDate.get(GregorianCalendar.DATE);\n int month = currentDate.get(GregorianCalendar.MONTH) + 1;\n int year = currentDate.get(GregorianCalendar.YEAR);\n int hour = currentDate.get(GregorianCalendar.HOUR_OF_DAY);\n int minute = currentDate.get(GregorianCalendar.MINUTE);\n return new Date(day, month, year, hour, minute);\n }",
"public static String getCurrentDate() {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"); \n LocalDateTime now = LocalDateTime.now(); \n return dtf.format(now);\n }",
"@SuppressLint(\"SetTextI18n\")\n private void setTransactionDate() {\n // used to get the name of the month from the calendar\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(mnths[i], Integer.toString(i));\n } else {\n\n months.put(mnths[i], Integer.toString(i));\n }\n }\n\n // set the date when somehting is selected from the DatePicker\n dateText.setText(months.get(transaction.getMonth()) + '-' + Integer.toString(transaction.getDay()) + '-' + transaction.getYear());\n findViewById(R.id.transaction_date).setOnClickListener(new View.OnClickListener() {\n @Override\n // show DatePicker on field click\n public void onClick(View v) {\n showDatePickerDialog();\n }\n });\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 }",
"private void setDefaultExpiryDate() {\n int twoWeeks = 14;\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n calendar.add(Calendar.DAY_OF_YEAR, twoWeeks);\n this.expiryDate = calendar.getTime();\n }",
"public static Date getCurrentDate() {\n return new Date();\n }",
"public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"@Override\n\tpublic Calendar getInitialDate() {\n\t\treturn Calendar.getInstance();\n\t}",
"public Date getCurrentDate() {\n Calendar cal = Calendar.getInstance();\n cal.set(Calendar.HOUR_OF_DAY, 0); // ! clear would not reset the hour of day !\n cal.clear(Calendar.MINUTE);\n cal.clear(Calendar.SECOND);\n cal.clear(Calendar.MILLISECOND);\n\n Date currentDate = cal.getTime();\n return currentDate;\n }",
"private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\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 }",
"public void setDate() {\n this.date = new 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 CurrentDate getCurrentDate() { \n return mCurrentDate; \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 }",
"public void promptDate(String date)\n {\n this.date = date;\n }",
"public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }",
"public Date getCurrentDate() {\n\t\treturn new Date();\n\t}",
"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 }",
"@Override\n\tprotected void setDate() {\n\n\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 }",
"private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }",
"private void show_Date_Picker() {\n final Calendar c = Calendar.getInstance();\r\n mYear = c.get(Calendar.YEAR);\r\n mMonth = c.get(Calendar.MONTH);\r\n mDay = c.get(Calendar.DAY_OF_MONTH);\r\n android.app.DatePickerDialog datePickerDialog = new android.app.DatePickerDialog(this,\r\n new android.app.DatePickerDialog.OnDateSetListener() {\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth)\r\n {\r\n\r\n txt_mfgdate_text.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);\r\n\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.show();\r\n\r\n }",
"public static Date getCurrentDate() {\r\n\t\tCalendar calendar = Calendar.getInstance();\r\n\t\tjava.util.Date currentDate = calendar.getTime();\r\n\t\tDate date = new Date(currentDate.getTime());\r\n\t\treturn date;\r\n\t}",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}",
"public void setDate(Date newDate) {\n this.currentDate = newDate;\n }",
"public void setRequestedDate(Date date) {\n requestedDate.setText(formatDate(date));\n }",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(final View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(UserRegister.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n\n String birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n // String dob = birthday;\n et_dob.setText(birthday);\n\n\n if (validatedate(mybirthday)) {\n Snackbar.make(v, birthday + \" is not possible\", Snackbar.LENGTH_LONG).show();\n et_dob.setText(\"\");\n return;\n }\n if (validateage(mybirthday)) {\n Snackbar.make(v, \"You have to be above 15 years old\", Snackbar.LENGTH_LONG)\n .setAction(\"Help\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //visitwebsite();\n }\n })\n .show();\n et_dob.setText(\"\");\n }\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n\n\n }",
"private void setToday() {\r\n\t\tmTime = new Date().getTime();\r\n\t}",
"public void resetDates() {\r\n selectedDate = null;\r\n currentDate = Calendar.getInstance();\r\n }",
"@Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR); // current year\n int mMonth = c.get(Calendar.MONTH); // current month\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\n // date picker dialog\n datePickerDialog = new DatePickerDialog(ChangeProfileActivity.this,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n // set day of month , month and year value in the edit text\n txtdate.setText(dayOfMonth + \"/\"\n + (monthOfYear + 1) + \"/\" + year);\n\n }\n }, mYear, mMonth, mDay);\n datePickerDialog.show();\n }",
"public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}",
"@RequiresApi(api = Build.VERSION_CODES.N)\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the current date as the default date in the picker\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n // Create a new instance of DatePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }",
"public Date getDate(Date defaultVal) {\n return get(ContentType.DateType, defaultVal);\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 }",
"private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }",
"public void goToToday() {\n goToDate(today());\n }",
"void showDate()\n {\n Date d=new Date();\n SimpleDateFormat s=new SimpleDateFormat(\"dd-MM-yyyy\");\n date.setText(s.format(d));\n }"
] | [
"0.7571277",
"0.70525557",
"0.697431",
"0.686381",
"0.6798962",
"0.67890644",
"0.67821634",
"0.6780236",
"0.67048514",
"0.6688095",
"0.6673843",
"0.66645014",
"0.6640542",
"0.66284364",
"0.662271",
"0.6613284",
"0.66120523",
"0.65636647",
"0.65568733",
"0.653814",
"0.6530678",
"0.65142274",
"0.65106934",
"0.6483987",
"0.6483935",
"0.6472484",
"0.6459431",
"0.6439175",
"0.64355314",
"0.6434727",
"0.642497",
"0.6407088",
"0.64031863",
"0.63950855",
"0.63891476",
"0.6372443",
"0.6365076",
"0.6359059",
"0.63412386",
"0.6336546",
"0.6329485",
"0.6319998",
"0.6309386",
"0.6303375",
"0.6296283",
"0.62773395",
"0.62758654",
"0.6268007",
"0.6255645",
"0.6250643",
"0.62437224",
"0.62379235",
"0.6234701",
"0.6221773",
"0.620869",
"0.6201243",
"0.61899304",
"0.6178417",
"0.61749005",
"0.6163194",
"0.6161124",
"0.6155444",
"0.6152793",
"0.6133054",
"0.61223316",
"0.6114123",
"0.6097932",
"0.60890234",
"0.6088971",
"0.6080105",
"0.6079283",
"0.607801",
"0.6072907",
"0.607032",
"0.6046399",
"0.60451937",
"0.6042656",
"0.6038611",
"0.60372704",
"0.6031795",
"0.60300297",
"0.60229635",
"0.6019042",
"0.6015218",
"0.6010301",
"0.6000104",
"0.5999446",
"0.59958506",
"0.5995391",
"0.5994525",
"0.5991846",
"0.59841675",
"0.5983204",
"0.59826833",
"0.59814805",
"0.59761757",
"0.59753853",
"0.597185",
"0.5971171",
"0.59703726",
"0.596331"
] | 0.0 | -1 |
~ Constructors Creates a new ReduceTransform object. | protected MetricMappingTransform(ValueMapping valueMapping) {
this.valueMapping = valueMapping;
this.defaultScope = valueMapping.name();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ReduceType reduceInit();",
"@Override\n\t\tpublic void reduce() {\n\t\t\t\n\t\t}",
"ASTFoldCombine() { super(null); }",
"public Transform() {\n }",
"public InMemoryCombiningReducer() {\n\n\t\t}",
"public Transform getTransform(){\n switch (this){\n case promote_terminals: return new SubexpressionTransformation.TerminalChain();\n case promote_redundant: return new SubexpressionTransformation.RedundantChain();\n case promote_summary: return new SubexpressionTransformation.SummarisingChain();\n case promote_chomsky: return new SubexpressionTransformation.ChomskyChain();\n case filter: return new RelationFilterTransformation();\n case order: return new EvaluationOrderTransformation(true, true);\n default: throw new RuntimeException(\"Unreachable\");\n }\n }",
"public AxesTransform() {\n\n\t}",
"Transform<A, B> getTransform();",
"@InterfaceAudience.Public\n Reducer compileReduce(String source, String language);",
"public void reduce( T mrt ) { }",
"public void reduce( T mrt ) { }",
"public Transformation mult(Transformation a) {\n\t\tTransformation result = new Transformation();\n\t\tsuper.mult(a, result);\n\t\treturn result;\n\t}",
"public Transform() {\n setIdentity();\n }",
"public Transform(Transform transform){\n System.arraycopy(transform.matrix, 0, matrix, 0, 16); \n }",
"protected Matrix4 computeTransform() {\n return super.computeTransform();\n }",
"protected Matrix4 computeTransform() {\n return internalGroup.computeTransform();\n }",
"public RegexNode Reduce()\n\t{\n\t\tRegexNode n;\n\n\t\tswitch (Type())\n\t\t{\n\t\t\tcase Alternate:\n\t\t\t\tn = ReduceAlternation();\n\t\t\t\tbreak;\n\n\t\t\tcase Concatenate:\n\t\t\t\tn = ReduceConcatenation();\n\t\t\t\tbreak;\n\n\t\t\tcase Loop:\n\t\t\tcase Lazyloop:\n\t\t\t\tn = ReduceRep();\n\t\t\t\tbreak;\n\n\t\t\tcase Group:\n\t\t\t\tn = ReduceGroup();\n\t\t\t\tbreak;\n\n\t\t\tcase Set:\n\t\t\tcase Setloop:\n\t\t\t\tn = ReduceSet();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tn = this;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn n;\n\t}",
"public static Transform mult(Transform t1, Transform t2) {\n\t\treturn transpose(t1.a * t2.a + t1.c * t2.b, t1.a * t2.c + t1.c * t2.d, t1.a * t2.tx + t1.c * t2.ty + t1.tx,\n\t\t\t\t\t\t t1.b * t2.a + t1.d * t2.b, t1.b * t2.c + t1.d * t2.d, t1.b * t2.tx + t1.d * t2.ty + t1.ty);\n\t}",
"private SBomCombiner()\n\t{}",
"public TransformationBuff() {}",
"public AbstractRecombinator() \r\n\t{\r\n\t\tsuper();\r\n\t\tsetPpl();\r\n\t\tsetSpl();\t\t\r\n\t}",
"@Override\r\n\tprotected void onReduceMp()\r\n\t{\n\t}",
"@Override\n public <KEYIN extends Serializable, VALUEIN extends Serializable, K extends Serializable, V extends Serializable, KOUT extends Serializable, VOUT extends Serializable> IMapReduce<KEYIN, VALUEIN, KOUT, VOUT>\n buildMapReduceEngine(@Nonnull final String name, @Nonnull final IMapperFunction<KEYIN, VALUEIN, K, V> pMapper, @Nonnull final IReducerFunction<K, V, KOUT, VOUT> pRetucer) {\n return new SparkMapReduce(name, pMapper, pRetucer);\n }",
"public static Expression reduce(Expression expression) { throw Extensions.todo(); }",
"public interface Transform<INPUT, OUTPUT> {\n\n\tOUTPUT transform(INPUT input);\n\t\n}",
"public interface Reducer<KeyIn extends WritableComparable<KeyIn> , ValueIn extends WritableComparable<ValueIn> , KeyOut extends WritableComparable<KeyOut> , ValueOut extends WritableComparable<ValueOut>> {\n\t\n\tpublic void reduce(KeyIn keyIn , Iterator<ValueIn> values , ReduceOutputCollector<KeyOut, ValueOut> outputCollector );\n\t\n}",
"protected abstract void shiftReduceAlgorithm() throws ParseException;",
"O transform(R result);",
"@Override\n\tprotected void reduce(IntWritable arg0, Iterable<Text> arg1,Context arg2)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString fenzi=null;\n\t\tdouble fenmu=0;\n\t\tText reducevalue=new Text();\n\t\tfor(Text value:arg1)\n\t\t{\n\t\t\tString[] array=value.toString().split(\",\");\n\t\t\tdouble m=Double.parseDouble(array[1]);\n\t\t\tfenmu=fenmu+m;\n\t\t\tString[] points=array[0].split(\" \");\n\t\t\tString[] temps=null;\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tif(fenzi==null)\n\t\t\t{\n\t\t\t\t temps=new String[points.length];\n\t\t\t\t for(int i=0;i<temps.length;i++)\n\t\t\t\t {\n\t\t\t\t\t temps[i]=\"0\";\n\t\t\t\t }\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttemps=fenzi.split(\" \");\n\t\t\t}\n\t\t\tfor(int i=0;i<points.length;i++)\n\t\t\t{\n\t\t\t\tpoints[i]=(Double.parseDouble(temps[i])+Double.parseDouble(points[i]) * m)+\"\";\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=0;i<points.length;i++)\n\t\t\t{\n\t\t\t\tsb.append(points[i]+\" \");\n\t\t\t}\n\t\t\tfenzi=sb.toString().substring(0,sb.length()-1);\n\t\t\tsb=null;\n\t\t//\tSystem.out.println(value.toString());\n\t\t}\n\t\tString[] res=fenzi.split(\" \");\n\t//\tSystem.out.println(\"fenmu=\"+fenmu);\n\t\tfor(int i=0;i<res.length;i++)\n\t\t{\n\t\t//\tSystem.out.println(\"res=\"+res[i]);\n\t\t\tres[i]=Double.parseDouble(res[i])/fenmu+\"\";\n\t\t}\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=0;i<res.length;i++)\n\t\t{\n\t\t//\tSystem.out.println(\"res=\"+res[i]);\n\t\t\tsb.append(res[i]+\" \");\n\t\t}\n\t\tfenzi=sb.toString().substring(0,sb.length()-1);\n\t\treducevalue.set(fenzi);\n\t\targ2.write(arg0, reducevalue);\n\t}",
"public AnXmlTransform() {\n super();\n }",
"public void fromTransformations(Transformations transformations);",
"@Override\n\tpublic boolean isReduce() {\n\t\treturn true;\n\t}",
"public ColorTransform(int transformType) {\n\ttype = transformType;\n\tname = TRANSF_NAMES[type];\n }",
"public static void reduceDemo() {\n Observable.range(1, 10).reduce(new Func2<Integer, Integer, Integer>() {\n @Override\n public Integer call(Integer integer, Integer integer2) {\n RxDemo.log(RxDemo.getMethodName() + \" \" + integer + \" \" + integer2);\n return integer + integer2;\n }\n }).subscribe(new RxCreateOperator.Sub());\n }",
"public Transform compose(Transform other){\n float[][] ans = new float[4][4];\n for(int row = 0; row < 4; row++){\n for(int col = 0; col < 4; col++){\n for(int i = 0; i < 3; i++){\n ans[row][col] += this.values[row][i] * other.values[i][col];\n }\n }\n ans[row][3] += this.values[row][3];\n }\n return new Transform(ans);\n }",
"@Test\n\tpublic void testReducer() {\n\n\t\tList<Text> values = new ArrayList<Text>();\n\t\tvalues.add(new Text(\"1745.09564282 5218.86073424\"));\n\n\t\t/*\n\t\t * For this test, the reducer's input will be \"cat 1 1\".\n\t\t */\n\t\treduceDriver.withInput(new Text(\"Sweden\"), values);\n\n\t\t/*\n\t\t * The expected output is \"cat 2\"\n\t\t */\n\t\treduceDriver.withOutput(new Text(\"(Sweden)\"), new Text(\"| in 2011$ values PPP, 1995 health cost: 1745.1| 2014 health cost: 5218.86| cost increase (%): 199.06%\\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\"));\n\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\treduceDriver.runTest();\n\t}",
"@Override\n public <KEYIN extends Serializable, VALUEIN extends Serializable, K extends Serializable, V extends Serializable, KOUT extends Serializable, VOUT extends Serializable> IMapReduce<KEYIN, VALUEIN, KOUT, VOUT>\n buildMapReduceEngine(@Nonnull final String name, @Nonnull final IMapperFunction<KEYIN, VALUEIN, K, V> pMapper, @Nonnull final IReducerFunction<K, V, KOUT, VOUT> pRetucer, final IPartitionFunction<K> pPartitioner) {\n return new SparkMapReduce(name, pMapper, pRetucer, pPartitioner);\n }",
"@Override\n\tprotected void reduce(Text arg0, Iterable<DoubleWritable> arg1,Context arg2)\n\t\t\tthrows IOException, InterruptedException {\n\t\t double sum=0;\n\t\t StringBuilder sb = new StringBuilder();\n\t\t int m = 0;\n\t\tm= arg2.getConfiguration().getInt(\"m\", m);\n\t\tSystem.out.println(\"m=\"+m);\n\t\tfor ( DoubleWritable value : arg1 )\n\t\t{\n\t\t\tSystem.out.println(\"value=\"+value);\n\t\t\tsum = sum + Math.pow((1.0 / value . get ( )),2.0/(m-1)) ;\n\t\t\tlist . add ( new DoubleWritable(value.get())) ;\n\t\t}\n\t\tfor ( int i = 0 ; i < list . size();i ++)\n\t\t{\n\t\t\tdouble l= Math.pow((list.get(i).get()),2.0/(m-1)) ;\n\t\t\tSystem.out.println(list.get(i).get()+\" \"+l);\n\t\t\tsb.append((sum/l)+\" \");\n\t\t}\n\t\tlist.clear();\n\t\treducevalue .set ( sb.toString() ) ;\n\t\tSystem.out.println(\"in rebuild\"+arg0+\" \"+reducevalue);\n\t\targ2.write(arg0, reducevalue);\n\t}",
"protected abstract boolean reduce();",
"public static Transform identity(){\n return new Transform(new float[][]{\n {1.0f, 0.0f, 0.0f, 0.0f},\n {0.0f, 1.0f, 0.0f, 0.0f},\n {0.0f, 0.0f, 1.0f, 0.0f},\n {0.0f, 0.0f, 0.0f, 1.0f}\n });\n }",
"@Override\n public Integer reduceInit() { return 0; }",
"public TransformationMatrix() {\n\t\ta11 = 1; a12 = 0; a13 = 0; a14 = 0;\n\t\ta21 = 0; a22 = 1; a23 = 0; a24 = 0;\n\t\ta31 = 0; a32 = 0; a33 = 1; a34 = 0;\n\t}",
"private Combined() {}",
"@Override\n public void reduce(Text key, Iterable<Text> values,\n Context context\n ) throws IOException, InterruptedException {\n String[] value;\n\n HashMap<Integer, Float> mapM = new HashMap<Integer, Float>();\n HashMap<Integer, Float> mapN = new HashMap<Integer, Float>();\n\n for (Text val : values){\n value = val.toString().split(\",\");\n if (value[2].equals(\"0\")){\n mapM.put(Integer.parseInt(value[0]), Float.parseFloat(value[1]));\n }else if(value[2].equals(\"1\")) {\n mapN.put(Integer.parseInt(value[0]), Float.parseFloat(value[1]));\n }\n }\n\n Text commonKey = new Text();\n float product = 0.0f;\n\n for (Integer i : mapM.keySet()){\n for (Integer k : mapN.keySet()){\n // commonkey format:\n // <i><,><k>\n commonKey.set(i+\",\"+k);\n\n product = mapM.get(i)*mapN.get(k);\n context.write(commonKey, new FloatWritable(product));\n }\n }\n }",
"default <V> Parser<S,T,U> reduce(Parser<S,T,Function<U,U>> p) {\n return s-> {\n return reduce(s, parse(s), p);\n };\n }",
"protected static void performReduceWithABinaryOperator() {\n Integer sum = Stream.of(1, 2, 3, 4, 5).reduce(0, Integer::sum);\n\n Integer minValue = Stream.of(5, 4, 9, 2, 1).reduce(Integer.MIN_VALUE, Integer::max);\n\n String concatenation = Stream.of(\"str \", \"= \", \"alt \", \"string\")\n // the first parameter becomes the target of the concat method and the second one is the argument to concat\n // the target, the parameter and the result are of the same type and this can be considered a binary\n // operator for the reduce method\n .reduce(\"\", String::concat);\n System.out.println(concatenation);\n }",
"public interface GraphTransformationAlgorithm {\n\n /**\n * Return whether the algorithm will perform another transformation.\n *\n * @return true if there is another transformation\n */\n public boolean hasNextStep();\n\n /**\n * Perform the next transformation step and return a description of the\n * transformation.\n *\n * @return description of the transformation\n */\n public String nextStep();\n\n /**\n * Report the current progress of the transformation as an integer between 0\n * and 100.\n *\n * @return progress indication\n */\n public int getProgress();\n\n /**\n * Perform reduction algorithm.\n *\n * @param verbose\n * if true report each step to stdout\n * @return a description of the transformation sequence\n */\n public List<String> run(boolean verbose);\n\n /**\n * Restore the original graph.\n */\n public void reset();\n\n /**\n * Return the normalized length of the specified reduction sequence.\n *\n * <p>\n * The normalized length is the number of Delta-Wye or Wye-Delta\n * transformations required for reduction to K1.\n *\n * @param sequence\n * the reduction sequence to normalize\n * @return normalized length\n */\n public int normalizedLength(List<String> sequence);\n\n /**\n * Return the number of Delta-Wye transformations contained in the specified\n * reduction sequence.\n *\n * @param sequence\n * the reduction sequence to analyze\n * @return number of delta-wye transformations\n */\n public int deltaWyeCount(List<String> sequence);\n\n /**\n * Return the number of Wye-Delta transformations contained in the specified\n * reduction sequence.\n *\n * @param sequence\n * the reduction sequence to analyze\n * @return number of wye-delta transformations\n */\n public int wyeDeltaCount(List<String> sequence);\n\n}",
"public void reduce() {\n if (numTransitions <= 1) {\n return;\n }\n sortTransitions(Transition.CompareByDestThenMinMax);\n State p = null;\n int min = -1, max = -1;\n int upto = 0;\n for (int i=0;i<numTransitions;i++) {\n final Transition t = transitionsArray[i];\n if (p == t.to) {\n if (t.min <= max + 1) {\n if (t.max > max) max = t.max;\n } else {\n if (p != null) {\n transitionsArray[upto++] = new Transition(min, max, p);\n }\n min = t.min;\n max = t.max;\n }\n } else {\n if (p != null) {\n transitionsArray[upto++] = new Transition(min, max, p);\n }\n p = t.to;\n min = t.min;\n max = t.max;\n }\n }\n\n if (p != null) {\n transitionsArray[upto++] = new Transition(min, max, p);\n }\n numTransitions = upto;\n }",
"public abstract Shape transform(Transformation t);",
"private void reduce2( MRTask2<T> mrt ) {\n if( mrt == null ) return;\n if( _res == null ) _res = mrt._res;\n else if( mrt._res != null ) _res.reduce4(mrt._res);\n if( _fs == null ) _fs = mrt._fs;\n else _fs.add(mrt._fs);\n }",
"@Override\n public void chain(@Nonnull final IMapReduce source) {\n performSourceMapReduce(((SparkMapReduce) source).output);\n }",
"@Override\n public TDViewReduceBlock compileReduceFunction(String reduceSource,\n String language) {\n return null;\n }",
"public static Transformer instantiateTransformer() {\n return INSTANTIATE_TRANSFORMER;\n }",
"public RMTransform getTransform()\n{\n return new RMTransform(getX(), getY(), getRoll(), getWidth()/2, getHeight()/2,\n getScaleX(), getScaleY(), getSkewX(), getSkewY());\n}",
"@SuppressWarnings(\"unchecked\")\n public static Transformation<?> apply(\n StreamExecutionEnvironment env, Transformation<?> transformation) throws Exception {\n if (env.getConfiguration().get(PythonOptions.PYTHON_OPERATOR_CHAINING_ENABLED)) {\n final Field transformationsField =\n StreamExecutionEnvironment.class.getDeclaredField(\"transformations\");\n transformationsField.setAccessible(true);\n final List<Transformation<?>> transformations =\n (List<Transformation<?>>) transformationsField.get(env);\n final Tuple2<List<Transformation<?>>, Transformation<?>> resultTuple =\n optimize(transformations, transformation);\n transformationsField.set(env, resultTuple.f0);\n return resultTuple.f1;\n } else {\n return transformation;\n }\n }",
"public interface Transformer {\n\t/**\n\t * Transform a source object dynamically.\n\t * \n\t * This iteratively calls {@link #transform(Object, Class) transform}\n\t * \n\t * @param <S>\n\t * the source type.\n\t * @param <T>\n\t * the target type.\n\t * @param source\n\t * The source object.\n\t * @return The target object or <em>null</em> if no applicable rule has been\n\t * found.\n\t * @see #getTransformationRules()\n\t */\n\tpublic <S, T> T transform(S source);\n\n\t/**\n\t * Transform a source object using a specific type of rule.\n\t * \n\t * @param <S>\n\t * the source type.\n\t * @param <T>\n\t * the target type.\n\t * @param source\n\t * The source object.\n\t * @param with\n\t * The type of rule to be used.\n\t * @return The target object or <em>null</em> if no applicable rule has been\n\t * found.\n\t */\n\tpublic <S, T> T transform(S source, Class<? extends Rule<S, T>> with);\n\n\t/**\n\t * Get the list of rule definitions related to this transformation instance.\n\t * \n\t * @return An ordered collection of transformation rule definitions.\n\t */\n\tpublic Set<Class<? extends Rule<?, ?>>> getTransformationRules();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic Context getContext();\n}",
"@Override public void reduce(CMTask drt) {\n if (!_model.regression) {\n if (_matrix == null) {\n _matrix = drt._matrix;\n } else {\n _matrix = _matrix.add(drt._matrix);\n }\n _sum += drt._sum;\n // Reduce tree errors\n long[] ept1 = _errorsPerTree;\n long[] ept2 = drt._errorsPerTree;\n if (ept1 == null) _errorsPerTree = ept2;\n else if (ept2 != null) {\n if (ept1.length < ept2.length) ept1 = Arrays.copyOf(ept1, ept2.length);\n for (int i = 0; i < ept2.length; i++) ept1[i] += ept2[i];\n }\n\n if (_cms!=null)\n for (int i = 0; i < _cms.length; i++) Utils.add(_cms[i], drt._cms[i]);\n\n if (_oobs != null)\n for (int i = 0; i < _oobs.length; ++i) _oobs[i] += drt._oobs[i];\n } else {\n _ss += drt._ss;\n _rowcnt += drt._rowcnt;\n }\n }",
"public ConcatReader(){\r\n\t\t// Empty Constructor\r\n\t}",
"public ParallelReceptacle() {\n }",
"public Concat() {\r\n }",
"public static Transformer nullTransformer() {\n return NULL_TRANSFORMER;\n }",
"public Reduction(Problem child, Problem parent) {\n this(child, parent, Complexity.LINEAR);\n }",
"public CopyTransformTest() {\n }",
"Object transform(Object o);",
"default <V> Parser<S, T, V> reduce(Supplier<V> start,BiFunction<V, U, V> f) {\n return s-> {\n return reduceBase(s, start.get(),f);\n };\n }",
"public PipelineFilter()\n {\n }",
"public Transducer ()\n\t{\n\t\tsumLatticeFactory = new SumLatticeDefault.Factory();\n\t\tmaxLatticeFactory = new MaxLatticeDefault.Factory();\n\t}",
"@Override\n\tprotected void reduce(Text arg0, Iterable<Text> arg1,Context arg2)\n\t\t\tthrows IOException, InterruptedException {\n\t\tfor(Text value:arg1)\n\t\t{\n\t\t\tSystem.out.println(arg0+\" \"+value);\n\t\t\targ2.write(arg0, value);\n\t\t}\n\t}",
"private ChainedTransformer(Transformer[] transformers) {\n super();\n iTransformers = transformers;\n }",
"public T caseTransformation(Transformation object) {\n\t\treturn null;\n\t}",
"public interface Transformation {\n\n\t/**\n\t * @return A description of the transformation this class performs.\n\t */\n\tpublic String getDescription();\n\n\t/**\n\t * @return the {@link FileType} for which this transformer can be used.\n\t */\n\tpublic Set<FileType> getSupportedFileTypes();\n\n /**\n * Determines when this Transformation has to be build\n * \n * @return the priority when to execute this transformation.\n */\n public int getBuildOrderPriority();\n // XXX(leo;20.11.2011) add uniform transform statement or two! so that the\n // sub transformation interfaces can be merged to one\n\n}",
"@Override\r\n protected void reduce(Text key, Iterable<MapWritable> values,\r\n Context context)\r\n throws IOException, InterruptedException {\r\n super.reduce(key, values, context);\r\n\r\n }",
"public LatentImage transform(ColorTransformer t) {\n\t\tpendingOperations.add(t);\n\t\treturn this;\n\t}",
"<K1, V1> KTable<K1, V1> reduce(Reducer<V1> addReducer,\n Reducer<V1> removeReducer,\n KeyValueMapper<K, V, KeyValue<K1, V1>> selector,\n Serializer<K1> keySerializer,\n Serializer<V1> valueSerializer,\n Deserializer<K1> keyDeserializer,\n Deserializer<V1> valueDeserializer,\n String name);",
"public MapSum() {\n\n }",
"public void performSourceMapReduce(JavaRDD<KeyValueObject<KEYIN, VALUEIN>> pInputs) {\n // if not commented out this line forces mappedKeys to be realized\n // pInputs = SparkUtilities.realizeAndReturn(pInputs,getCtx());\n JavaSparkContext ctx2 = SparkUtilities.getCurrentContext();\n System.err.println(\"Starting Score Mapping\");\n JavaPairRDD<K, Tuple2<K, V>> kkv = performMappingPart(pInputs);\n // kkv = SparkUtilities.realizeAndReturn(kkv, ctx2);\n\n// mappedKeys = mappedKeys.persist(StorageLevel.MEMORY_AND_DISK_2());\n// // if not commented out this line forces mappedKeys to be realized\n// mappedKeys = SparkUtilities.realizeAndReturn(mappedKeys, ctx2);\n//\n// // convert to tuples\n// // JavaPairRDD<K, Tuple2<K, V>> kkv = mappedKeys.mapToPair(new KeyValuePairFunction<K, V>());\n//\n// kkv = kkv.persist(StorageLevel.MEMORY_AND_DISK_2());\n// // if not commented out this line forces mappedKeys to be realized\n// kkv = SparkUtilities.realizeAndReturn(kkv, ctx2);\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n // kkv = SparkUtilities.realizeAndReturn(kkv );\n\n System.err.println(\"Starting Score Reduce\");\n IReducerFunction reduce = getReduce();\n // for some reason the compiler thnks K or V is not Serializable\n JavaPairRDD<K, Tuple2<K, V>> kkv1 = kkv;\n\n // JavaPairRDD<? extends Serializable, Tuple2<? extends Serializable, ? extends Serializable>> kkv1 = (JavaPairRDD<? extends Serializable, Tuple2<? extends Serializable, ? extends Serializable>>)kkv;\n //noinspection unchecked\n JavaPairRDD<K, KeyAndValues<K, V>> reducedSets = (JavaPairRDD<K, KeyAndValues<K, V>>) KeyAndValues.combineByKey(kkv1);\n\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n reducedSets = SparkUtilities.realizeAndReturn(reducedSets );\n\n PartitionAdaptor<K> prt = new PartitionAdaptor<K>(getPartitioner());\n reducedSets = reducedSets.partitionBy(prt);\n reducedSets = reducedSets.sortByKey();\n\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n reducedSets = SparkUtilities.realizeAndReturn(reducedSets );\n\n ReduceFunctionAdaptor f = new ReduceFunctionAdaptor(ctx2, reduce);\n\n JavaRDD<KeyValueObject<KOUT, VOUT>> reducedOutput = reducedSets.flatMap(f);\n\n\n // JavaPairRDD<K, V> kvJavaPairRDD = asTuples.partitionBy(sparkPartitioner);\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n //kvJavaPairRDD = SparkUtilities.realizeAndReturn(kvJavaPairRDD,getCtx());\n\n\n // if not commented out this line forces kvJavaPairRDD to be realized\n // reducedOutput = SparkUtilities.realizeAndReturn(reducedOutput, ctx2);\n\n output = reducedOutput;\n }",
"public interface Reducer<T, U> {\n U reduce(U collector, T item);\n}",
"public MapReduceOutput mapReduce(final MapReduceCommand command) {\n ReadPreference readPreference = command.getReadPreference() == null ? getReadPreference() : command.getReadPreference();\n Map<String, Object> scope = command.getScope();\n Boolean jsMode = command.getJsMode();\n if (command.getOutputType() == MapReduceCommand.OutputType.INLINE) {\n\n MapReduceWithInlineResultsOperation<DBObject> operation =\n new MapReduceWithInlineResultsOperation<>(getNamespace(), new BsonJavaScript(command.getMap()),\n new BsonJavaScript(command.getReduce()), getDefaultDBObjectCodec())\n .filter(wrapAllowNull(command.getQuery()))\n .limit(command.getLimit())\n .maxTime(command.getMaxTime(MILLISECONDS), MILLISECONDS)\n .jsMode(jsMode != null && jsMode)\n .sort(wrapAllowNull(command.getSort()))\n .verbose(command.isVerbose())\n .collation(command.getCollation());\n\n if (scope != null) {\n operation.scope(wrap(new BasicDBObject(scope)));\n }\n if (command.getFinalize() != null) {\n operation.finalizeFunction(new BsonJavaScript(command.getFinalize()));\n }\n MapReduceBatchCursor<DBObject> executionResult = executor.execute(operation, readPreference, getReadConcern());\n return new MapReduceOutput(command.toDBObject(), executionResult);\n } else {\n String action;\n switch (command.getOutputType()) {\n case REPLACE:\n action = \"replace\";\n break;\n case MERGE:\n action = \"merge\";\n break;\n case REDUCE:\n action = \"reduce\";\n break;\n default:\n throw new IllegalArgumentException(\"Unexpected output type\");\n }\n\n MapReduceToCollectionOperation operation =\n new MapReduceToCollectionOperation(getNamespace(),\n new BsonJavaScript(command.getMap()),\n new BsonJavaScript(command.getReduce()),\n command.getOutputTarget(),\n getWriteConcern())\n .filter(wrapAllowNull(command.getQuery()))\n .limit(command.getLimit())\n .maxTime(command.getMaxTime(MILLISECONDS), MILLISECONDS)\n .jsMode(jsMode != null && jsMode)\n .sort(wrapAllowNull(command.getSort()))\n .verbose(command.isVerbose())\n .action(action)\n .databaseName(command.getOutputDB())\n .bypassDocumentValidation(command.getBypassDocumentValidation())\n .collation(command.getCollation());\n\n if (scope != null) {\n operation.scope(wrap(new BasicDBObject(scope)));\n }\n if (command.getFinalize() != null) {\n operation.finalizeFunction(new BsonJavaScript(command.getFinalize()));\n }\n try {\n MapReduceStatistics mapReduceStatistics = executor.execute(operation, getReadConcern());\n DBCollection mapReduceOutputCollection = getMapReduceOutputCollection(command);\n DBCursor executionResult = mapReduceOutputCollection.find();\n return new MapReduceOutput(command.toDBObject(), executionResult, mapReduceStatistics, mapReduceOutputCollection);\n } catch (MongoWriteConcernException e) {\n throw createWriteConcernException(e);\n }\n }\n }",
"public AbstractParallelAlgorithm()\n {\n this(null);\n }",
"protected void reduce4( T mrt ) {\n // Reduce any AppendableVecs\n if( _noutputs > 0 )\n for( int i=0; i<_appendables.length; i++ )\n _appendables[i].reduce(mrt._appendables[i]);\n // User's reduction\n reduce(mrt);\n }",
"public RegexNode ReduceSet()\n\t{\n\t\t// Extract empty-set, one and not-one case as special\n\n\t\tif (RegexCharClass.IsEmpty(_str))\n\t\t{\n\t\t\t_type = Nothing;\n\t\t\t_str = null;\n\t\t}\n\t\telse if (RegexCharClass.IsSingleton(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (One - Set);\n\t\t}\n\t\telse if (RegexCharClass.IsSingletonInverse(_str))\n\t\t{\n\t\t\t_ch = RegexCharClass.SingletonChar(_str);\n\t\t\t_str = null;\n\t\t\t_type += (Notone - Set);\n\t\t}\n\n\t\treturn this;\n\t}",
"public void setTransform(Transform transform);",
"public TransformDesign() {\n tLayerPool = new TransformLayerPool();\n }",
"private SimilarityTransformation3D getCombinedTransfo3D(Document document,double sourcescale,double targetscale) {\n\t\tElement root = XMLUtil.getRootElement(document);\n\n\t\tArrayList<Element> transfoElementArrayList = XMLUtil.getElements(root,\n\t\t\t\t\"MatrixTransformation\");\n\t\t// int nbtransfo=transfoElementArrayList.size();\n\t\tArrayList<Matrix> listoftransfo = new ArrayList<Matrix>();\n\t\t\n\t\t//Matrix ScaleSourcetransfo=Matrix.identity(4, 4).times(sourcescale);\n\t\t//Matrix Scaletargettransfo=Matrix.identity(4, 4).times(1.0/targetscale);\n\t\tMatrix ScaleSourcetransfo=Matrix.identity(4, 4).times(sourcescale);\n\t\tScaleSourcetransfo.set(3,3,1.0);\n\t\tScaleSourcetransfo.set(2,2,1.0);//do not touch z\n\t\tMatrix Scaletargettransfo=Matrix.identity(4, 4).times(1.0/targetscale);\n\t\tScaletargettransfo.set(3,3,1.0);\n\t\tScaletargettransfo.set(2,2,1.0);//do not touch z\n\t\t//listoftransfo.add(ScaleSourcetransfo);\n\t\t// the default value of orisizex has to the actual pixel size:\n\t\t// otherwise during the initialisation (i.e the first tranform \n\t\t//when getcombined transform has nothing to return\n\t\tdouble orisizex=source.getValue().getPixelSizeX();\n\t\tdouble orisizey=source.getValue().getPixelSizeY();\n\t\tdouble orisizez=source.getValue().getPixelSizeZ();\n\t\tElement transfoElementf=transfoElementArrayList.get(0);\n\t\tdouble orisizexbinned=XMLUtil.getAttributeDoubleValue(transfoElementf, \"formerpixelsizeX\", 0);\n\t\t//double orisizeybinned=XMLUtil.getAttributeDoubleValue(transfoElementf, \"formerpixelsizeY\", 0);\n\t\t//double orisizezbinned=XMLUtil.getAttributeDoubleValue(transfoElementf, \"formerpixelsizeZ\", 0);\n\t\tif ((orisizex==orisizexbinned)&&(sourcescale!=1)){\n\t\t\tlistoftransfo.add(ScaleSourcetransfo);\n\t\t\tSystem.out.println(\"Warning something strange happened to your metadata. Check your binned metadata and these one.\");\n\t\t}\n\t\tfor (Element transfoElement : transfoElementArrayList) {\n\t\t\tdouble[][] m = new double[4][4];\n\t\t\t// int order = XMLUtil.getAttributeIntValue( transfoElement, \"order\"\n\t\t\t// , -1 ); //to be check for now only: has to be used!!!\n\t\t\t// the only different pixel size (i.e the orginal source size) is given only at the first transformation\n\t\t\t\n\t\t\t\n\t\t\tm[0][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m00\", 0);\n\t\t\tm[0][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m01\", 0);\n\t\t\tm[0][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m02\", 0);\n\t\t\tm[0][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m03\", 0);\n\n\t\t\tm[1][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m10\", 0);\n\t\t\tm[1][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m11\", 0);\n\t\t\tm[1][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m12\", 0);\n\t\t\tm[1][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m13\", 0);\n\n\t\t\tm[2][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m20\", 0);\n\t\t\tm[2][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m21\", 0);\n\t\t\tm[2][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m22\", 0);\n\t\t\tm[2][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m23\", 0);\n\n\t\t\tm[3][0] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m30\", 0);\n\t\t\tm[3][1] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m31\", 0);\n\t\t\tm[3][2] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m32\", 0);\n\t\t\tm[3][3] = XMLUtil.getAttributeDoubleValue(transfoElement, \"m33\", 0);\n\t\t\t\n\t\t\tMatrix T = new Matrix(m);\n\t\t\tlistoftransfo.add(T);\n\n\t\t}\n\t\tlistoftransfo.add(Scaletargettransfo);\n\t\tMatrix CombinedTransfo = Matrix.identity(4, 4);\n\t\tfor (int i = 0; i < listoftransfo.size(); i++) {\n\t\t\tCombinedTransfo = listoftransfo.get(i).times(CombinedTransfo);\n\t\t}\n\t\t\n\t\t\n\t\tSimilarityTransformation3D resulttransfo=new SimilarityTransformation3D(CombinedTransfo,orisizex,orisizey,orisizez);\n\t\treturn resulttransfo;\n\t\n}",
"public Transformation(double values[][]) {\n\t\tsuper(4, 4, values);\n\t}",
"TransformFactory getFactory();",
"public Transform getTransform() {return transform;}",
"public ImsTransformer() {\n\n }",
"public T transform(T item) {\n T result = item;\n for (SimpleTransformation<T> transformation : transformations) {\n result = transformation.transform(result);\n }\n\n return result;\n }",
"public Core() {\r\n inputs = new ArrayList<>();\r\n outputs = new ArrayList<>();\r\n converter = new Converter();\r\n\r\n }",
"public ChainOperator(){\n\n }",
"TransformationFactory getTransformationFactory();",
"protected CombinatoricsUtils() {\n super();\n }",
"public MapReduceToCollectionOperation(final MongoNamespace namespace, final BsonJavaScript mapFunction,\n final BsonJavaScript reduceFunction, final String collectionName) {\n this(namespace, mapFunction, reduceFunction, collectionName, null);\n }",
"public StandardPipeline() {\n this(null);\n }",
"public Transformation(Tuple i, Tuple j, Tuple k, Tuple s) {\n\n this(i.getTuple(), j.getTuple(), k.getTuple(), s.getTuple());\n }",
"public interface ReduceFunction {\n String reduce(String hash);\n}",
"public TransformationMatrix(TransformationMatrix m) {\n\t\ta11 = m.a11; a12 = m.a12; a13 = m.a13; a14 = m.a14;\n\t\ta21 = m.a21; a22 = m.a22; a23 = m.a23; a24 = m.a24;\n\t\ta31 = m.a31; a32 = m.a32; a33 = m.a33; a34 = m.a34;\n\t}",
"@Override void apply(Env env) {\n if( env.isNum() ) { env.push(new ValNum(op(env.popDbl()))); return; }\n// if( env.isStr() ) { env.push(new ASTString(op(env.popStr()))); return; }\n Frame fr = env.popAry();\n final ASTUniOp uni = this; // Final 'this' so can use in closure\n Frame fr2 = new MRTask() {\n @Override public void map( Chunk[] chks, NewChunk[] nchks ) {\n for( int i=0; i<nchks.length; i++ ) {\n NewChunk n =nchks[i];\n Chunk c = chks[i];\n int rlen = c._len;\n if (c.vec().isEnum() || c.vec().isUUID() || c.vec().isString()) {\n for (int r = 0; r <rlen;r++) n.addNum(Double.NaN);\n } else {\n for( int r=0; r<rlen; r++ )\n n.addNum(uni.op(c.atd(r)));\n }\n }\n }\n }.doAll(fr.numCols(),fr).outputFrame(fr._names, null);\n env.pushAry(fr2);\n }",
"public void reduce4( T mrt ) {\n // Reduce any AppendableVecs\n for( int i=0; i<_fr._vecs.length; i++ )\n if( _fr._vecs[i] instanceof AppendableVec )\n ((AppendableVec)_fr._vecs[i]).reduce((AppendableVec)mrt._fr._vecs[i]);\n // User's reduction\n reduce(mrt);\n }",
"public static void main(String[] args){\n int result = Stream.of(1,2,3,4,5,6,7,8,9,10)\n .reduce(0,Integer::sum);//metodo referenciado\n// .reduce(0, (acumulador, elemento) -> acumulador+elemento);\n System.out.println(result);\n\n // Obtener lenguajes separados por pipeline entre ellos y sin espacios\n // opcion 1(mejor) con operador ternario\n String cadena = Stream.of(\"Java\",\"C\",\"Python\",\"Ruby\")\n .reduce(\"\", (acumulador, lenguaje) -> acumulador.equals(\"\")?lenguaje:acumulador + \"|\" + lenguaje);\n\n System.out.println(cadena);\n\n //Opcion 2 Con regex\n String cadenaRegex = Stream.of(\"Java\",\"C\",\"Python\",\"Ruby\")\n .reduce(\"\", (acumulador, lenguaje) -> acumulador + \"|\" + lenguaje)\n .replaceFirst(\"\\\\|\",\"\") // Quitamos la primera pipeline\n .replaceAll(\"\\\\s\",\"\"); // Quitamos todos los espacios\n\n System.out.println(cadenaRegex);\n }"
] | [
"0.6350373",
"0.6062235",
"0.57367307",
"0.56551266",
"0.5606503",
"0.5567269",
"0.5482259",
"0.54593146",
"0.5372737",
"0.5342808",
"0.5342808",
"0.53044236",
"0.5301201",
"0.52904075",
"0.52286714",
"0.51774",
"0.5164718",
"0.5141613",
"0.5120662",
"0.5110548",
"0.5057661",
"0.503593",
"0.5010741",
"0.4996287",
"0.4988375",
"0.49847624",
"0.49742007",
"0.4959615",
"0.49390683",
"0.4923503",
"0.489496",
"0.48515868",
"0.48500887",
"0.48254046",
"0.4807938",
"0.48041308",
"0.47930282",
"0.4785527",
"0.478312",
"0.47701672",
"0.47477496",
"0.4741845",
"0.4737026",
"0.47283858",
"0.47189584",
"0.4683809",
"0.46756455",
"0.4664732",
"0.46598268",
"0.46536198",
"0.46531624",
"0.46507165",
"0.4626459",
"0.46199802",
"0.46161488",
"0.4611582",
"0.46004972",
"0.45923904",
"0.45834816",
"0.4583394",
"0.4577882",
"0.4562772",
"0.45577163",
"0.4544429",
"0.4543621",
"0.45413393",
"0.45317915",
"0.4531658",
"0.45149338",
"0.45137864",
"0.4512763",
"0.44996652",
"0.44979998",
"0.4496505",
"0.44890994",
"0.44783098",
"0.44776177",
"0.4475713",
"0.44621608",
"0.4446392",
"0.44446555",
"0.44429356",
"0.443905",
"0.44384632",
"0.44363686",
"0.44243023",
"0.44232893",
"0.44198334",
"0.44181767",
"0.44159254",
"0.4405",
"0.44035155",
"0.4402025",
"0.4397155",
"0.4387371",
"0.43815824",
"0.43815777",
"0.43762198",
"0.43741685",
"0.43739262",
"0.43738738"
] | 0.0 | -1 |
Mapping a list of metric, only massage its datapoints. | private List<Metric> mapping(List<Metric> metrics) {
SystemAssert.requireArgument(metrics != null, "Cannot transform empty metric/metrics");
if (metrics.isEmpty()) {
return metrics;
}
List<Metric> newMetricsList = new ArrayList<Metric>();
for (Metric metric : metrics) {
Map<Long, String> cleanDatapoints = cleanDPs(metric.getDatapoints());
metric.setDatapoints(this.valueMapping.mapping(cleanDatapoints));
newMetricsList.add(metric);
}
return newMetricsList;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<Metric> getMetrics();",
"private void addMetrics(List<MetricDatum> list,\n MetricValues metricValues,\n StandardUnit unit) {\n List<MachineMetric> machineMetrics = metricValues.getMetrics();\n List<Long> values = metricValues.getValues();\n for (int i=0; i < machineMetrics.size(); i++) {\n MachineMetric metric = machineMetrics.get(i);\n long val = values.get(i).longValue();\n // skip zero values in some cases\n if (val != 0 || metric.includeZeroValue()) {\n MetricDatum datum = new MetricDatum()\n .withMetricName(metric.getMetricName())\n .withDimensions(\n new Dimension()\n .withName(metric.getDimensionName())\n .withValue(metric.name()))\n .withUnit(unit)\n .withValue((double) val)\n ;\n list.add(datum);\n }\n }\n }",
"public abstract CustomMetric[] getCustomMetrics();",
"java.util.List<com.google.dataflow.v1beta3.MetricUpdate> getMetricsList();",
"public void addMetric(Set<M> m){\r\n\t\tmetrics.addAll(m);\r\n\t}",
"@Override\n public void flatMap(MetricTrends t, Collector<Tuple8<String, String, String, String, String, Integer, Integer,String>> out) throws Exception {\n // if(t.getGroup().equals(\"Group_1\") && t.getService().equals(\"Service_1B\") && t.getEndpoint().equals(\"Hostname_4\") && t.getMetric().equals(\"Metric_B\")){\n int criticalstatus = this.opsMgr.getIntStatus(\"CRITICAL\");\n int warningstatus = this.opsMgr.getIntStatus(\"WARNING\");\n int unknownstatus = this.opsMgr.getIntStatus(\"UNKNOWN\");\n\n Timeline timeline = t.getTimeline();\n TimelineIntegrator timelineIntegrator = new TimelineIntegrator();\n int[] criticalstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), criticalstatus);\n int[] warningstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), warningstatus);\n int[] unknownstatusInfo = timelineIntegrator.countStatusAppearances(timeline.getSamples(), unknownstatus);\n\n ArrayList<String> tags = (ArrayList)this.mtagsMgr.getTags(t.getMetric()).clone();\n String tagInfo = \"\";\n for (String tag : tags) {\n if (tags.indexOf(tag) == 0) {\n tagInfo = tagInfo + tag;\n } else {\n tagInfo = tagInfo + \",\" + tag;\n }\n }\n \n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleCritical = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"CRITICAL\", criticalstatusInfo[0], criticalstatusInfo[1], tagInfo);\n out.collect(tupleCritical);\n\n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleWarning = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"WARNING\", warningstatusInfo[0], warningstatusInfo[1], tagInfo);\n out.collect(tupleWarning);\n\n Tuple8<String, String, String, String, String, Integer, Integer, String> tupleUnknown = new Tuple8< String, String, String, String, String, Integer, Integer, String>(\n t.getGroup(), t.getService(), t.getEndpoint(), t.getMetric(), \"UNKNOWN\", unknownstatusInfo[0], unknownstatusInfo[1], tagInfo);\n\n out.collect(tupleUnknown);\n }",
"Map<String, Map<Long, Double>> getRawMetrics(String metricName, String parameters, long from, long to);",
"java.util.List<com.google.api.servicecontrol.v1.MetricValue> getMetricValuesList();",
"List<ClassificationCostsDto> map(List<ClassificationCostsReport> classificationCostsReports);",
"private void addMetrics(Map<MetricName, KafkaMetric> kafkaMetrics) {\n Set<MetricName> metricKeys = kafkaMetrics.keySet();\n for (MetricName key : metricKeys) {\n KafkaMetric metric = kafkaMetrics.get(key);\n String metricName = getMetricName(metric.metricName());\n if (metrics.getNames().contains(metricName)) {\n metrics.remove(metricName);\n }\n metrics.register(metricName, new Gauge<Double>() {\n @Override\n public Double getValue() {\n return metric.value();\n }\n });\n }\n }",
"@SuppressWarnings(\"restriction\")\npublic interface Meter {\n\n Collection<? extends Metric<?>> supportedMetrics();\n\n Collection<? extends Measure<?>> measureData(MonitoredVm vm);\n}",
"Map<Long, Double> getMetrics(String topologyName, String componentId, String metricName, AggregateFunction aggrFunction, long from, long to);",
"private JsonArray statistics(List<JsonObject> datapoints,\n String targetName,\n List<Range> intervals,\n String statsLabel) {\n\n return intervals.stream()\n .map(range -> {\n\n DescriptiveStatistics stats = calculateStatsForRange(datapoints, targetName, range);\n switch (statsLabel) {\n case \"min\":\n return datapoint(stats.getMin(), range.getStart());\n case \"pcl50\":\n return datapoint(stats.getPercentile(50), range.getStart());\n case \"pcl80\":\n return datapoint(stats.getPercentile(80), range.getStart());\n case \"pcl90\":\n return datapoint(stats.getPercentile(90), range.getStart());\n case \"pcl95\":\n return datapoint(stats.getPercentile(95), range.getStart());\n case \"pcl99\":\n return datapoint(stats.getPercentile(99), range.getStart());\n case \"max\":\n return datapoint(stats.getMax(), range.getStart());\n default:\n return datapoint(0d, 0);\n }\n })\n .filter(a -> !a.isEmpty())\n .collect(toJsonArray());\n }",
"com.google.api.servicecontrol.v1.MetricValue getMetricValues(int index);",
"protected void measurementToMap(Measurement m) {\n if (m instanceof WithNames) {\n values = new HashMap<String, ProbeValue>();\n for (ProbeValue pv : m.getValues()) {\n values.put(((ProbeValueWithName)pv).getName(), pv);\n }\n } else {\n LoggerFactory.getLogger(TcpdumpReporter.class).error(\"ProcessInfoReporter works with Measurements that are WithNames\");\n }\n }",
"private MetricValues metricValues(Set<MachineMetric> customSet,\n List<MachineMetric> defaults, List<Long> values) {\n List<MachineMetric> actualMetrics = defaults;\n List<Long> actualValues = values;\n if (customSet.size() > 0) {\n // custom set of machine metrics specified\n actualMetrics = new ArrayList<MachineMetric>();\n actualValues = new ArrayList<Long>();\n for (int i=0; i < defaults.size(); i++) {\n MachineMetric mm = defaults.get(i);\n if (customSet.contains(mm)) {\n actualMetrics.add(mm);\n actualValues.add(values.get(i));\n }\n }\n }\n return new MetricValues(actualMetrics, actualValues);\n }",
"public interface MetricsService {\n Map<Integer, MetricsDto> analyzeBoard(List<Integer> boardList);\n}",
"public void addAllMetrics(Iterable<String> values) {\n ensureMetricsIsMutable();\n AbstractMessageLite.addAll(values, this.metrics_);\n }",
"void transform(Map<String, List<Map<String,String>>> data, long startTime, long endTime);",
"void reportCustomMetrics(final List<DynatraceCustomMetric> dynatraceCustomMetrics) throws Exception;",
"java.util.List<com.google.api.MetricDescriptor> getMetricDescriptorsList();",
"private double[][] toFormatNeuralNetwork(Map<String, Object> mpintpus){\n\t\tlogger.info(\" #### toFormatNeuralNetwork \"+mpintpus.values());\n\t\t\n\t\tCollection<Object> list = mpintpus.values();\n\t\tdouble[] input = new double[list.size()];\n\t\tint idx=0;\n\t\tfor (Object o : list) {\n\t\t\tinput[idx] = ((Double)o).doubleValue();\n\t\t\tidx++;\n\t\t}\t\n\t\tdouble[][]_inputs = {input};\n\t\treturn _inputs;\n\t}",
"public void setMetric(String metric) {\n this.metric = metric;\n }",
"public void setMetric(String metric) {\n this.metric = metric;\n }",
"void collect(MetricsCollector collector);",
"private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }",
"com.google.api.MetricDescriptor getMetricDescriptors(int index);",
"public interface ListEvaluation extends Metric {\n /**\n * Adds generated list for a specific user for internal calculation\n * \n * @param user\n * A target {@link User} which normally comes from test data\n * @param list\n * Generate item list with related predicted rating for a given\n * {@link User}\n */\n void addRecommendations(User user, Map<Integer, Float> list);\n\n /**\n * Returns the calculated result\n * \n * @return The calculated result\n */\n float getEvaluationResult();\n \n /**\n * Set train data. Train data neede for some metrics such as popularity\n * @param trainData\n */\n void setTrainData(DataModel trainData);\n}",
"public interface DataTransformation {\n /**\n * Provide a data transformation on the supplied feed data. The type of processing is arbitrary and based on the context\n * in which the method is invoked.\n * @param data for the parameters in the given time range\n * @param startTime for the data request, this may not correspond to any times in the data set.\n * @param endTime for the data request, this may not correspond to any times in the data set.\n */\n void transform(Map<String, List<Map<String,String>>> data, long startTime, long endTime);\n }",
"public Collection<MetricInfo> listMetrics() {\n if (!registeredMetrics.isEmpty()) {\n return registeredMetrics.values();\n }\n return null;\n }",
"void metric(String controllerName, String policyName, Metric metric);",
"public void setMapAdvices(List<MapAdvice> mapAdvices);",
"public void map(LongWritable key, Text value, OutputCollector <Text, Text> output, Reporter reporter) throws IOException {\n\n\t\tString valueString1 = value.toString();\n\t\tString valueString=valueString1.replaceAll(\"[\\\\n]\",\" \");\n\t\tString[] Data_raw = valueString.split(\"\\t\");\n\t\tif(Data_raw.length > 4)\n\t\t{\n\t\t\n\t\tString[] Data = Data_raw[4].split(\" |\\\\,|\\\\.|!|\\\\?|\\\\:|\\\\;|\\\\\\\"|\\\\(|\\\\)|\\\\<|\\\\>|\\\\[|\\\\]|\\\\#|\\\\$|\\\\=|\\\\-|\\\\/\");\n\t\tfor(String s: Data)\n\t\t{\n\t\t\toutput.collect(new Text(s.toString().toLowerCase()), new Text(Data_raw[0].toString()));\n\t\t}\n\t\t}\n\t}",
"default <T> DiscreteObjectMap2D<T> pushForwardToObject(DoubleFunction<T> function) {\r\n\t\treturn (x, y) -> function.apply(getValueAt(x, y));\r\n\t}",
"void insert(Metric metric) throws MetricException;",
"java.util.List<? extends com.google.dataflow.v1beta3.MetricUpdateOrBuilder>\n getMetricsOrBuilderList();",
"com.google.dataflow.v1beta3.MetricUpdate getMetrics(int index);",
"public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException \n\t{\n\t\tString line = value.toString();\n\t\tStringTokenizer tokenizer = new StringTokenizer(line, \",\");\t\t\t\n\t\tif (tokenizer.hasMoreTokens() && tokenizer.nextToken().equals(\"2012\")) \n\t\t{\n\t\t\tcaller.set(tokenizer.nextToken());\n\t\t\toutput.collect(caller, one);\n\t\t}\n\t}",
"private void assignMeasurementData(Measurement measurement, Obsunit obsUnit, List<Object> dataList) {\n for (Object data : dataList) {\n if (data instanceof DataN) {\n DataN dataN = (DataN) data;\n if (obsUnit.getOunitid().equals(dataN.getDataNPK().getOunitid())) {\n int columnIndex = workbookStudy.getVariateColumnIndex(dataN.getDataNPK().getVariatid());\n if (columnIndex != -1) {\n MeasurementData measurementData = new MeasurementData();\n measurementData.setData(dataN);\n measurement.setMeasurementData(columnIndex, measurementData);\n }\n }\n } else if (data instanceof DataC) {\n DataC dataC = (DataC) data;\n if (obsUnit.getOunitid().equals(dataC.getDataCPK().getOunitid())) {\n int columnIndex = workbookStudy.getVariateColumnIndex(dataC.getDataCPK().getVariatid());\n if (columnIndex != -1) {\n MeasurementData measurementData = new MeasurementData();\n measurementData.setData(dataC);\n measurement.setMeasurementData(columnIndex, measurementData);\n }\n }\n }\n }\n }",
"public List<String> getDataPoints() {\n Object[] dataPoints = (Object[])configMap.get(DATA_POINT);\n List<String> dps = Utility.downcast( dataPoints );\n return dps;\n }",
"private List<EventInfo> map(List<EventLog> entries) {\n List<EventInfo> events = new ArrayList<>();\n for (EventLog entry : entries) {\n events.add(map(entry));\n }\n return events;\n }",
"@Override\r\n\t\t\tpublic void map(Object arg0, Object arg1, OutputCollector arg2,\r\n\t\t\t\t\tReporter arg3) throws IOException {\n\t\t\t\t\r\n\t\t\t}",
"ReadOnlyObjectProperty<String[]> metricIdsProperty();",
"@Override\n\tpublic void map(LongWritable key, Text value, OutputCollector<Text, Text> output, Reporter reporter)\n\t\t\tthrows IOException {\n\t\tString val = value.toString();\n\t\tString[] Data = val.split(\", \");\n\t\toutput.collect(new Text(Data[1]), new Text(val));\n\t}",
"public static List<DataPoint> rate(Collection<? extends DataPoint> points, Duration unit) {\n double unitMillis = unit.toMillis();\n return combineNeighbors(points, (first, second) -> {\n double diff = second.getValue() - first.getValue();\n double timeDiff = second.getTime() - first.getTime();\n if (timeDiff > 0) {\n return new DataPoint(second.getTime(), diff / timeDiff * unitMillis);\n } else {\n return null;\n }\n });\n }",
"public abstract java.util.Map<java.lang.Double, java.util.List<java.lang.Integer>> pnlListMap();",
"default DiscreteDoubleMap2D pushForward(DoubleUnaryOperator function) {\r\n\t\treturn (x, y) -> function.applyAsDouble(getValueAt(x, y));\r\n\t}",
"public Builder metrics(Collection<Metric> metrics) {\n this.metrics = metrics;\n return this;\n }",
"IStreamList<T> transform(IStreamList<T> dataset);",
"@Override\r\n\tpublic void setDataSeries(List<Double> factValues) {\n\r\n\t}",
"public Object[] adapt( Map<String, Object> objs, Object arg );",
"private void addValueToStatMap(HashMap<String, ArrayList<Double>> map, String key, Double value) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new ArrayList<Double>());\r\n }\r\n map.get(key).add(value);\r\n }",
"java.util.Map<String, Long>\n getMetricCostsMap();",
"<T, U> Collection<U> map(Collection<T> sources, TypeToken<Collection<U>> destinationTypeToken);",
"public void reduce(Text key, \n Iterator<Text> values, \n OutputCollector<Text, Text> output, \n Reporter reporter) throws IOException {\n\n\n List<Text> saved_values = new ArrayList<Text>();\n\n float lat_sum = 0.0f;\n float lon_sum = 0.0f;\n int count = 0;\n\n while (values.hasNext()) {\n Text val = values.next();\n saved_values.add(val);\n\n String line = val.toString();\n Observation obs = Observation.makeObs(line);\n if (obs == null) {\n reporter.setStatus(\"bad input line: \" + line);\n continue;\n }\n\n /// debug: log our intermediate values\n //output.collect(key, new FloatWritable(val)); \n\n lon_sum += obs.lon;\n lat_sum += obs.lat;\n count++;\n }\n\n float lon_avg = lon_sum / count;\n float lat_avg = lat_sum / count;\n Coord avg = new Coord(lon_avg, lat_avg);\n\n /// debug: log totals\n //output.collect(new Text(key.toString()+ \"-count\"), new FloatWritable(count * 1.0f));\n \n // ### remove cells with too few observations ###\n int min_observations = 4;\n if (count < min_observations) {\n output.collect(key, new Text(\"too few obs (0 / \" + count + \")\"));\n return;\n }\n\n\n List<Text> outliers = new ArrayList<Text>();\n for (Text val : saved_values) {\n String line = val.toString();\n Observation obs = Observation.makeObs(line);\n if (obs == null) continue;\n double dist = avg.distance_to(obs);\n\n // ### remove outliers\n int max_distance = 1000;\n if (dist > max_distance) {\n outliers.add(val);\n }\n\n // ### remove cells with too little uncertainty ###\n int min_uncertainty = 150;\n if (obs.uncertainty != null && dist + obs.uncertainty >= min_uncertainty) {\n if (!outliers.contains(val))\n outliers.add(val);\n }\n\n }\n\n\n // process removals\n for (Text val : outliers) {\n saved_values.remove(val);\n }\n\n // recalulate actual results\n lat_sum = 0.0f;\n lon_sum = 0.0f;\n count = 0;\n for (Text val : saved_values) {\n String line = val.toString();\n Observation obs = Observation.makeObs(line);\n if (obs == null) continue;\n lon_sum += obs.lon;\n lat_sum += obs.lat;\n count++;\n }\n\n\n // output the results \n //output.collect(key, new Text(\"CELL:\" + avg.lon +\", \"+ avg.lat \n // + \" (\" + (count + outliers.size()) + \")\"));\n output.collect(key, new Text(lon_sum/count +\", \"+ lat_sum/count\n + \" (\" + count + \" / \" + (count + outliers.size()) + \")\"));\n\n }",
"@Override\r\n protected Instances mapsToSingleInstance(Instances miData) throws Exception {\r\n Instances siMinData = new Instances(miData.attribute(1).relation(), miData.numInstances());\r\n Instances siMaxData = new Instances(miData.attribute(1).relation(), miData.numInstances());\r\n\r\n for (int i = 0; i < miData.numInstances(); i++) {\r\n Instances bag = miData.attribute(1).relation(i);\r\n double[] attrMinVals = new double[bag.numAttributes()];\r\n double[] attrMaxVals = new double[bag.numAttributes()];\r\n for (int j = 0; j < bag.numAttributes(); j++) {\r\n Stats stats = new Stats();\r\n for (int k = 0; k < bag.numInstances(); k++) {\r\n stats.add(bag.get(k).value(j));\r\n }\r\n attrMinVals[j] = stats.min;\r\n attrMaxVals[j] = stats.max;\r\n }\r\n siMinData.add(new DenseInstance(1, attrMinVals));\r\n siMaxData.add(new DenseInstance(1, attrMaxVals));\r\n }\r\n RenameAttribute raFilter = new RenameAttribute();\r\n try {\r\n raFilter.setOptions(new String[]{\"-find\", \"(^)\", \"-replace\", \"min_\", \"-R\", \"first-last\"});\r\n raFilter.setInputFormat(siMinData);\r\n siMinData = Filter.useFilter(siMinData, raFilter);\r\n raFilter.setOptions(new String[]{\"-find\", \"(^)\", \"-replace\", \"max_\", \"-R\", \"first-last\"});\r\n raFilter.setInputFormat(siMaxData);\r\n siMaxData = Filter.useFilter(siMaxData, raFilter);\r\n } catch (Exception ex) {\r\n Logger.getLogger(MinMaxMappingBagNoiseFilter.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new Exception(\"There was some problem renaming attributes to mix-max mapping method\");\r\n }\r\n Instances siData = Instances.mergeInstances(siMinData, siMaxData);\r\n Add filter = new Add();\r\n try {\r\n filter.setOptions(new String[]{\"-T\", \"NOM\", \"-N\", \"class\", \"-L\", \"0,1\"});\r\n } catch (Exception ex) {\r\n Logger.getLogger(MinMaxMappingBagNoiseFilter.class.getName()).log(Level.SEVERE, null, ex);\r\n throw new Exception(\"There was some problem when adding the class attribute in the mapped dataset\");\r\n }\r\n filter.setInputFormat(siData);\r\n siData = Filter.useFilter(siData, filter);\r\n siData.setClassIndex(siData.numAttributes() - 1);\r\n for (int i = 0; i < miData.numInstances(); i++) {\r\n siData.get(i).setClassValue(miData.get(i).classValue());\r\n }\r\n return siData;\r\n }",
"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}",
"private static void fillListFromMap(List<Integer> bucketContents, Map<Double, List<Integer>> m) {\r\n\t\tIterator<Double> iter = m.keySet().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tDouble key = iter.next();\r\n\t\t\tbucketContents.addAll(m.get(key));\r\n\t\t}\r\n\t}",
"public void addMetric(M wm){\r\n\t\tmetrics.add(wm);\r\n\t}",
"@Override\n\t\tprotected void map(Text key, Text value,\n\t\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString[] array=value.toString().split(\" \");\n\t\t\tfor(int i=0;i<clist.size();i++)\n\t\t\t{\n\t\t\t\tString s=clist.get(i);\n\t\t\t//\tSystem.out.println(\"距离点为\"+s+\" \"+key.toString());\n\t\t\t\tdouble res=getDistance(s,key.toString());\n\t\t//\t\tSystem.out.println(\"距离为\"+res);\n\t\t\t\tmapvalue.set(res);\n\t\t\t\tcontext.write(key, mapvalue);\n\t\t\t}\n\t\t}",
"@Override\r\n public <R> ListADT<R> map(Function<T, R> converter) {\r\n return new ListADTImpl(head.map(converter));\r\n }",
"@Override\n\tprotected void map(Text key, Text value,\n\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString[] array=value.toString().split(\" \");\n\t\tfor(int i=0;i<clist.size();i++)\n\t\t{\n\t\t\tString s=clist.get(i);\n\t\t//\tSystem.out.println(\"距离点为\"+s+\" \"+key.toString());\n\t\t\tdouble res=getDistance(s,key.toString());\n\t\t//\tSystem.out.println(\"距离为\"+res);\n\t\t\tmapvalue.set(res*Double.parseDouble(array[i]));\n\t\t\tcontext.write(mapkey, mapvalue);\n\t\t}\n\t}",
"@Deprecated\r\n\t\tpublic MappedConverter(final List<T> col) {\r\n\t\t\tmap = new HashMap<Long, T>(col.size());\r\n\t\t\tfor (T entity: col) {\r\n\t\t\t\tmap.put(entity.getId(), entity);\r\n\t\t\t}\r\n\t\t}",
"static Reporter<zipkin2.Span> toReporter(Map<String, List<zipkin2.Span>> spans) {\n return s -> spans.computeIfAbsent(s.traceId(), k -> new ArrayList<>()).add(s);\n }",
"public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\n\n\t\tString line = value.toString();\n\n\t\t// 1. Get The Values From The Input File\n\t\tString year = line.substring(15, 19);\n\t\t\n\t\tint airTemperature;\n\t\tif (line.charAt(87) == '+') {\n\t\t\tairTemperature = Integer.parseInt(line.substring(88, 92));\n\t\t} else {\n\t\t\tairTemperature = Integer.parseInt(line.substring(87, 92));\n\t\t}\n\n\t\t// 2. Output To the <key,value> pair\n\t\tString quality = line.substring(92, 93);\n\t\tif (airTemperature != MISSING && quality.matches(\"[01459]\")) {\n\t\t\toutput.collect(new Text(year), new IntWritable(airTemperature));\n\t\t}\n\t}",
"private MetricValues fdMetricValues(Set<MachineMetric> customSet,\n List<Long> values) {\n return metricValues(customSet, MachineMetricFactory.fdMetrics, values);\n }",
"@Override\n\tpublic void reduce(Iterable<Entry> values, Collector<IntDouble> out) throws Exception {\n\t\t\n\t\tfor (Entry entry : values) {\n\t\t\tList<IntDouble2> ls = entry.getLs();\n\t\t\tfor (int i = 0; i < ls.size(); i++) {\n\t\t\t\tIntDouble2 id = ls.get(i);\n\t\t\t\tmap.put(id.f0, map.get(id.f0)+ id.f1);\n\t\t\t}\n\t\t}\n\t\tPriorityQueue<IntDouble> pq = new PriorityQueue<>();\n\t\tfor (java.util.Map.Entry<Integer, Double> i : map.entrySet()) {\n\t\t\tpq.add(new IntDouble(i.getKey(), i.getValue()));\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < k; i++)\n\t\t\tout.collect(pq.poll());\n\t}",
"DataMap getCustomAnnotations();",
"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}",
"Map<Item, List<Double>> calculateDiscountRule1PriceList(Map<String, Item> itemMap, List<String> itemList);",
"@Delegate\n MetricApi getMetricApi();",
"public Map<String, Double> normalize(Map<String, List<Integer>> nmap) throws InvalidRangeException {\n\n\t\tif (nmap == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tif (nmap.size() > 7 || nmap.size() < 2) {\n\t\t\tthrow new InvalidRangeException(INVALID_RANGE);\n\t\t}\n\n\t\tint dataSize = nmap.size();\n\t\tString[] names = new String[dataSize];\n\t\tdouble[] normalizedScores = new double[dataSize];\n\t\tint sum = 0;\n\n\t\tint idx = 0;\n\t\tfor (String key : nmap.keySet()) {\n\n\t\t\tString memName = key;\n\n\t\t\tint lsum = 0;\n\n\t\t\tfor (int num : nmap.get(key)) {\n\t\t\t\tif (num < 0 || num > 5)\n\t\t\t\t\tthrow new InvalidRangeException(INVALID_RANGE);\n\t\t\t\tlsum += num;\n\t\t\t}\n\t\t\tnames[idx] = memName;\n\t\t\tnormalizedScores[idx] = lsum;\n\t\t\tsum += lsum;\n\t\t\tidx++;\n\n\t\t}\n\n\t\tfor (int i = 0; i < normalizedScores.length; i++) {\n\n\t\t\tnormalizedScores[i] = sum != 0 ? roundValue(normalizedScores[i] / sum, 2) : 0;\n\n\t\t}\n\n\t\tMap<String, Double> nMap = new LinkedHashMap<String, Double>();\n\n\t\tfor (int i = 0; i < dataSize; i++) {\n\n\t\t\tnMap.put(names[i], normalizedScores[i]);\n\n\t\t}\n\n\t\treturn nMap;\n\t}",
"public abstract List<ScorePackage> getScores(List<T> observationList);",
"private <T> void addCustomMetricsToHitBuilder(T builder) {\n\t\ttry {\n\t\t\tMethod builderMethod = builder.getClass().getMethod(\"setCustomMetric\", Integer.TYPE, String.class);\n\n\t\t\tfor (Entry<Integer, Long> entry : customMetrics.entrySet()) {\n\t\t\t\tInteger key = entry.getKey();\n\t\t\t\tLong value = entry.getValue();\n\t\t\t\ttry {\n\t\t\t\t\tbuilderMethod.invoke(builder, (key), value);\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SecurityException e) {\n\t\t} catch (NoSuchMethodException e) {\n\t\t}\n\t}",
"@Override\n public void reduce(Text key, Iterable<StringWritable> values, Context context) throws\n IOException, InterruptedException {\n MapWritable map = new <Text, IntWritable>MapWritable();\n for (StringWritable sw : values) {\n map.put(new Text(sw.getKey()), new DoubleWritable(Double.parseDouble(sw.getVal())));\n }\n\n context.write(key, map);\n }",
"boolean populateValue(Metric metric) throws MetricException;",
"public DTO2RowDataMapper(List<FlinkCol> cols) {\n super(cols);\n }",
"public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n String[] temp = new String[10];\n temp = value.toString().split(\",\");\n if ((temp[2].equals(\"TMAX\") || temp[2].equals(\"TMIN\") && !temp[3].equals(\"\"))){\n HashMap<String,Double[]> h= new HashMap<String, Double[]>();\n Double[] d = new Double[2];\n d[0] = Double.parseDouble(temp[3]);\n d[1] = 1.0;\n if (results.containsKey(temp[0])){\n if (results.get(temp[0]).containsKey(temp[2])){\n results.get(temp[0]).get(temp[2])[0] += Double.parseDouble(temp[3]);\n results.get(temp[0]).get(temp[2])[1] += 1.0;\n }\n else{\n results.get(temp[0]).put(temp[2],d);\n }\n }\n else{\n h.put(temp[2],d);\n results.put(temp[0], h);\n }\n }\n }",
"private void putValueList(ListPrefix listPrefix, KeyPrefix keyPrefix,\n Plane plane, List<Double> valueList) {\n this.monitorValuesMap.put(createKey(listPrefix, keyPrefix, plane),\n valueList);\n }",
"io.netifi.proteus.admin.om.Metrics getMetrics();",
"private void scaleMap(List<LatLng> listPoints){\n LatLngBounds.Builder bounds = new LatLngBounds.Builder();\n\n for(LatLng point : listPoints)\n bounds.include(point);\n\n googleMap.setOnMapLoadedCallback(() -> googleMap.moveCamera(CameraUpdateFactory.newLatLngBounds(bounds.build(), 50)));\n }",
"public void setMetric(Metric value) {\n if (value != null) {\n this.bitField0_ |= 2;\n this.metric_ = value.getNumber();\n return;\n }\n throw new NullPointerException();\n }",
"java.util.Map<java.lang.String, java.lang.Long> getHdfsMetricsMap();",
"private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }",
"Map<Item, List<Double>> calculateDiscountPriceList(Map<String, Item> itemMap, List<String> itemList);",
"@Override\n public void setMetric(final Metric metric) {\n this.metric = metric;\n }",
"public void calculateScores(OutputCollector collector, List<T> observationList) {\n List<ScorePackage> packageList = getScores(observationList);\n for (ScorePackage scorePackage : packageList) {\n collector.emit(new Values(scorePackage.getId(), scorePackage.getScore(), scorePackage.getObj()));\n }\n }",
"DataFrame<R,C> mapToDoubles(ToDoubleFunction<DataFrameValue<R,C>> mapper);",
"@SuppressWarnings(\"serial\")\n protected Object getMetrics(Map<String, Object> keyMap, String key)\n throws BaseCollectionException {\n Object metrics = null;\n if (keyMap.containsKey(key)) {\n metrics = (Object) keyMap.get(key);\n }\n return metrics;\n }",
"static List<MeanWithClusterProbAggregator> map(GmmPartitionData data, int countOfComponents) {\n List<MeanWithClusterProbAggregator> aggregators = new ArrayList<>();\n for (int i = 0; i < countOfComponents; i++)\n aggregators.add(new MeanWithClusterProbAggregator());\n\n for (int i = 0; i < data.size(); i++) {\n for (int c = 0; c < countOfComponents; c++)\n aggregators.get(c).add(data.getX(i), data.pcxi(c, i));\n }\n\n return aggregators;\n }",
"@Override\n\t\tpublic void map(Text key, Text value,\n\t\t\t\tOutputCollector<Text, Text> output, Reporter reporter)\n\t\t\t\tthrows IOException {\n\t\t\tfor (String word : words) {\n\t\t\t\tif (key.toString().equals(word)) {\n\t\t\t\t\tString[] outVals = parseOutValue(value.toString(), filemap)\n\t\t\t\t\t\t\t.split(\"\\n\");\n\t\t\t\t\tfor (String val : outVals) {\n\t\t\t\t\t\tString outkey = val.substring(0, val.indexOf('['));\n\t\t\t\t\t\tString outval = word + \"::\"\n\t\t\t\t\t\t\t\t+ val.substring(val.indexOf(':') + 1);\n\t\t\t\t\t\toutput.collect(new Text(outkey), new Text(outval));\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"default DiscreteIntMap2D pushForwardToInt(DoubleToIntFunction function) {\r\n\t\treturn (x, y) -> function.applyAsInt(getValueAt(x, y));\r\n\t}",
"com.google.dataflow.v1beta3.MetricUpdateOrBuilder getMetricsOrBuilder(int index);",
"public List<MapAdvice> getMapAdvices();",
"public org.apache.spark.ml.param.ParamPair<double[]> w (java.util.List<java.lang.Double> value) { throw new RuntimeException(); }",
"public void addOrMergeTimelineMetric(SingleValuedTimelineMetric metric) {\n TimelineMetric metricToMerge = null;\n\n if (!allMetrics.isEmpty()) {\n for (TimelineMetric timelineMetric : allMetrics) {\n if (metric.equalsExceptTime(timelineMetric)) {\n metricToMerge = timelineMetric;\n break;\n }\n }\n }\n\n if (metricToMerge != null) {\n metricToMerge.getMetricValues().put(metric.getTimestamp(), metric.getValue());\n if (metricToMerge.getTimestamp() > metric.getTimestamp()) {\n metricToMerge.setTimestamp(metric.getTimestamp());\n }\n if (metricToMerge.getStartTime() > metric.getStartTime()) {\n metricToMerge.setStartTime(metric.getStartTime());\n }\n } else {\n allMetrics.add(metric.getTimelineMetric());\n }\n }",
"private void convertToPlotData( Map<String,Operation> resultsByOps , int whichMetric )\n {\n for( Operation o : resultsByOps.values() ) {\n int[] sizes = getMatrixSizes(o);\n\n RuntimePlotData plotData = new RuntimePlotData(sizes);\n plotData.plotName = o.fileName;\n\n for( int index = 0; index < o.platforms.size(); index++ ) {\n Platform p = o.platforms.get(index);\n RuntimeResults r = o.results.get(index);\n\n // If a matrix size has no data then its value will be NaN\n double results[] = new double[ sizes.length ];\n for( int i = 0; i < results.length; i++ )\n results[i] = Double.NaN;\n\n\n for( int i = 0; i < r.getMetrics().length; i++ ) {\n RuntimeEvaluationMetrics m = r.getMetrics()[i];\n if( m == null )\n continue;\n\n int matrixSize = r.getMatDimen()[i];\n\n int indexSize = findMatchIndex( matrixSize , sizes );\n\n results[indexSize] = m.getMetric(whichMetric);\n }\n\n plotData.addLibrary(p.plotName,results,index);\n }\n\n // generate and save the plot\n createPlots(plotData,o.fileName,o.plotName);\n }\n }",
"public interface MetricsVisitor {\n\n /**\n * Callback for int value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Integer> metric, int value);\n\n /**\n * Callback for long value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Long> metric, long value);\n\n /**\n * Callback for float value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Float> metric, float value);\n\n /**\n * Callback for double value gauges\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void gauge(MetricGauge<Double> metric, double value);\n\n /**\n * Callback for integer value counters\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void counter(MetricCounter<Integer> metric, int value);\n\n /**\n * Callback for long value counters\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void counter(MetricCounter<Long> metric, long value);\n\n /**\n * Callback for integer value delta\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void delta(MetricDelta<Integer> metric, int value);\n\n /**\n * Callback for long value delta\n * \n * @param metric the metric object\n * @param value of the metric\n */\n public void delta(MetricDelta<Long> metric, long value);\n}",
"static Metric toMetricProto(\n io.opencensus.metrics.export.Metric metric,\n @Nullable io.opencensus.resource.Resource resource) {\n Metric.Builder builder = Metric.newBuilder();\n builder.setMetricDescriptor(toMetricDescriptorProto(metric.getMetricDescriptor()));\n for (io.opencensus.metrics.export.TimeSeries timeSeries : metric.getTimeSeriesList()) {\n builder.addTimeseries(toTimeSeriesProto(timeSeries));\n }\n if (resource != null) {\n builder.setResource(toResourceProto(resource));\n }\n return builder.build();\n }",
"private DescriptiveStatistics calculateStatsForRange(List<JsonObject> datapoints, String targetName, Range range) {\n\n return datapoints.stream()\n .filter(js -> targetName.equals(js.getJsonObject(\"t\").getString(\"name\"))\n && range.contains(js.getJsonObject(\"n\").getLong(\"begin\")))\n .map(js -> js.getJsonObject(\"n\").getLong(\"value\"))\n .map(Long::doubleValue)\n .collect(descStatsCollector());\n }"
] | [
"0.60332745",
"0.60228306",
"0.5450348",
"0.5424652",
"0.5424079",
"0.538144",
"0.5297616",
"0.5144823",
"0.51224583",
"0.50804263",
"0.5068653",
"0.5044828",
"0.50118273",
"0.4963569",
"0.49626163",
"0.49326453",
"0.48996887",
"0.4883409",
"0.48403046",
"0.48330325",
"0.48327398",
"0.47730502",
"0.47550574",
"0.47550574",
"0.47305143",
"0.46756983",
"0.4667488",
"0.46614146",
"0.46504346",
"0.46403217",
"0.46389553",
"0.4606092",
"0.46027038",
"0.4592671",
"0.45860463",
"0.45768136",
"0.45764643",
"0.4575299",
"0.45732823",
"0.45573762",
"0.45540962",
"0.4550978",
"0.4539669",
"0.4526784",
"0.45225883",
"0.4512764",
"0.45127442",
"0.450992",
"0.44869286",
"0.44710615",
"0.44588295",
"0.44488978",
"0.44488147",
"0.4447222",
"0.44424218",
"0.44410434",
"0.44383594",
"0.4436391",
"0.44339722",
"0.44273254",
"0.4409245",
"0.4405283",
"0.44049475",
"0.43920434",
"0.4381769",
"0.43809393",
"0.4373114",
"0.43592456",
"0.43570697",
"0.43529367",
"0.4352592",
"0.43487313",
"0.4343712",
"0.43414688",
"0.4330419",
"0.4330378",
"0.43265942",
"0.43136078",
"0.43125382",
"0.4311798",
"0.43106422",
"0.43052274",
"0.42982763",
"0.4297114",
"0.4293246",
"0.42919996",
"0.42919657",
"0.4289312",
"0.42818353",
"0.42815045",
"0.42776987",
"0.4276742",
"0.42656523",
"0.42639017",
"0.42595637",
"0.42572674",
"0.42550713",
"0.4253818",
"0.4244844",
"0.42434385"
] | 0.7307739 | 0 |
TODO Autogenerated method stub | @Override
public void onClick(View v)
{
if(MAP_SWITCH_FLAG)
{
/* 卫星地图模式 */
MAP_SWITCH_FLAG = false;
//mMapSwitchBtn.setText("地图");
//mMapSwitchBtn.setTextSize(10);
//mMapSwitchBtn.setTextColor(Color.GREEN);
/* mMapSwitchBtn.setCompoundDrawables(null,
getResources().getDrawable(R.drawable.map_switch_button_m), null, null);*/
mMapSwitchBtn.setCompoundDrawablesWithIntrinsicBounds(mDrawableMapNormal, null, null, null);
//设置卫星地图
mBaiduMap.setMapType(BaiduMap.MAP_TYPE_SATELLITE);
}
else
{
/* 普通地图模式 */
MAP_SWITCH_FLAG = true;
//mMapSwitchBtn.setText("卫星");
//mMapSwitchBtn.setTextSize(10);
//mMapSwitchBtn.setTextColor(Color.WHITE);
/*mMapSwitchBtn.setCompoundDrawables(null,
getResources().getDrawable(R.drawable.map_switch_button_m, null), null, null);*/
mMapSwitchBtn.setCompoundDrawablesWithIntrinsicBounds(mDrawableMapSatellite, null, null, null);
mBaiduMap.setMapType(BaiduMap.MAP_TYPE_NORMAL);
}
} | {
"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 mDistanceAround = Integer.valueOf(mEditText.getText().toString()); Toast.makeText(mContext, "mSeekBar:mDistanceAround value is " + mDistanceAround, Toast.LENGTH_SHORT).show(); Toast.makeText(mContext, "SeekBar onStopTrackingTouch ", Toast.LENGTH_SHORT).show(); | @Override
public void onStopTrackingTouch(VerticalSeekBar VerticalSeekBar)
{
mDistanceAround = mVerticalSeekBar.getProgress() + MIN_DISTANCE;
mEditText.setAlpha(0.5f);
mVerticalSeekBar.setAlpha(0.4f);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void onStopTrackingTouch(SeekBar seekBar);",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\n\t}",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStopTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStopTrackingTouch(SeekBar arg0) {\n\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n public void onStopTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n \n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n \n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n \t\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n \t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n \n \t\t\t}",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tif(custom)\n\t\t\t\t{\n\t\t\t\t\ttip_perc.setText(\"Tip: \"+String.valueOf(progress_value)+\" %\");\n\t\t\t\t\tint tip_dollar = calculateTip(progress_value, Integer.parseInt(ed.getText().toString()));\n\t\t\t\t\ttotal_val=Integer.parseInt(ed.getText().toString())+tip_dollar;\n\t\t\t\t\ttip.setText(\"Tip: \"+String.valueOf(tip_dollar));\n\t\t\t\t\ttotal.setText(\"Total: \" + String.valueOf(total_val));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t\tint p = seekBar.getProgress();\n\t\t\t\t\t\tif (p > 150) {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_3_D);\n\t\t\t\t\t\t} else if (p > 50) {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_2_N);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_1_C);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t}",
"@Override\n\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t}",
"public void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t}",
"@Override\n\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\n\t}",
"@Override\n\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\n\t}",
"@Override\n\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\n\t\t}",
"@Override\r\n\t\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\r\n\t\t\t\t}",
"@Override\n\tpublic void onStopTrackingTouch(SeekBar seekBar)\n\t{\n\t}",
"public void onStopTrackingTouch(SeekBar seekBar) {\n\t}",
"@Override\r\n\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t}",
"@Override\n public void onStopTrackingTouch(SeekBar arg0) {\n mp.seekTo(seek.getProgress());\n }",
"@Override\n \tpublic void onStopTrackingTouch(SeekBar seekBar)\n \t{\n \n \t}",
"@Override \n\t\t\t\tpublic void onStopTrackingTouch(SeekBar analyseSeekBar) {\n\t\t\t\tp1 = analyseSeekBar.getProgress();\t\t\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tint maxOffset = min_MaxOffset + (step_MaxOffset*seekBar.getProgress());\n\t\t\t\tt_MaxOffset.setTextSize(maxOffset);\n\t\t\t\t//Toast toast = new Toast(null);\n\t\t Toast.makeText(getApplicationContext(), String.valueOf(maxOffset),Toast.LENGTH_SHORT).show();\n\t\t \n\t\t seismicImage.setMaxOffset(maxOffset);\n\t\t\t}",
"public void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\r\n\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\tUtils.printLog(TAG, \"SeekBarListener onStopTrackingTouch \");\r\n\t\t}",
"public void onStopTrackingTouch(SeekBar seekBar) {\n\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\tseekBar.getProgress() + \"%\", Toast.LENGTH_SHORT).show();\n\t}",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n\n //Toast.makeText(this, \"The user has finished a touch\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n mp_mus.pause();\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tint thickness = min_Thickness + (step_Thickness*seekBar.getProgress());\n\t\t\t\tt_Thickness.setTextSize(thickness);\n\t\t Toast.makeText(getApplicationContext(), String.valueOf(thickness),Toast.LENGTH_SHORT).show();\n\t\t \n\t\t seismicImage.setThickness(thickness);\n\t\t\t}",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n mp_ok.pause();\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC,\n\t\t\t\t\t\tseekBar.getProgress(), 8);\n\t\t\t\tvolumnSize.setText(seekBar.getProgress() * 100\n\t\t\t\t\t\t/ seekBar.getMax() + \"%\");\n\t\t\t}",
"public void onStopTrackingTouch(SeekBar arg0) {\r\n\t\t// Do Nothing\r\n\t}",
"@Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n int totalDuration = mp.getDuration();\n // Get the new playing position\n currentPlayPosition = utils.progressToTimer(seekBar.getProgress(), totalDuration);\n playSong(currentSongIndex, currentPlayPosition);\n }",
"@Override\n\t\t\tpublic void onProgressChanged(VerticalSeekBar VerticalSeekBar, int progress, boolean fromUser)\n\t\t\t{\n\n\t\t\t\tmEditText.setText(String.valueOf(progress + MIN_DISTANCE)+\"m\");\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tCursurIndex = 3;\n\t\t\t\tHandleCursurDisplay.sendMessage(HandleCursurDisplay.obtainMessage(CursurIndex));\n\t\t\t}",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tint peakFreq = min_PeakFreq + (step_PeakFreq*seekBar.getProgress());\n\t\t\t\tt_PeakFreq.setTextSize(peakFreq);\n\t\t Toast.makeText(getApplicationContext(), String.valueOf(peakFreq),Toast.LENGTH_SHORT).show();\n\t\t \n\t\t seismicImage.setPeakFreq(peakFreq);\n\t\t\t}",
"private void procStopTrackingTouch(int userSelectedPosition) {\nlog_d(\"procStopTrackingTouch: \" + userSelectedPosition);\n float ratio = (float)userSelectedPosition/(float)MAX_PROGRESS;\n int position = (int)(ratio * mDuration);\n mAudioPlayer.seekTo(position);\n}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekArc seekArc) {\n\n\t\t\t}",
"void onStartTrackingTouch(SeekBar seekBar);",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n \n }"
] | [
"0.6275768",
"0.6185892",
"0.6185892",
"0.6162989",
"0.61608976",
"0.61608976",
"0.6152103",
"0.6146631",
"0.6146631",
"0.6146631",
"0.6146631",
"0.61271304",
"0.6125317",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6120728",
"0.6119689",
"0.6119689",
"0.6104426",
"0.6104426",
"0.6104426",
"0.6104426",
"0.6104426",
"0.6104426",
"0.6104426",
"0.6093099",
"0.6093099",
"0.6089257",
"0.6089257",
"0.6080216",
"0.60630864",
"0.6047217",
"0.6038512",
"0.6038512",
"0.60329413",
"0.60317755",
"0.60317755",
"0.60317755",
"0.60317755",
"0.60317755",
"0.60317755",
"0.60317755",
"0.6027546",
"0.6026561",
"0.6026561",
"0.6026561",
"0.6026191",
"0.6025981",
"0.6025981",
"0.60250694",
"0.6024572",
"0.6024572",
"0.6001306",
"0.5999322",
"0.5999322",
"0.59980816",
"0.59931386",
"0.5991144",
"0.5989855",
"0.5988049",
"0.59666705",
"0.596375",
"0.5936029",
"0.5868896",
"0.5762345",
"0.5644504",
"0.5630793",
"0.5619874",
"0.56017137",
"0.557763",
"0.5511176",
"0.54568726",
"0.54525334",
"0.5436888",
"0.5404682",
"0.5381968",
"0.5364961",
"0.5356701",
"0.53516686",
"0.5345098",
"0.5345098",
"0.5345098"
] | 0.6727084 | 0 |
TODO Autogenerated method stub Toast.makeText(mContext, "SeekBar onStartTrackingTouch ", Toast.LENGTH_SHORT).show(); | @Override
public void onStartTrackingTouch(VerticalSeekBar VerticalSeekBar)
{
mEditText.setAlpha(0.8f);
mVerticalSeekBar.setAlpha(0.8f);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar)\n {\n }",
"@Override\r\n\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\tUtils.printLog(TAG, \"SeekBarListener onStartTrackingTouch \");\r\n\r\n\t\t}",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"public void onStartTrackingTouch(SeekBar seekBar) {\n\t}",
"public void onStartTrackingTouch(SeekBar seekBar) {\n\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\r\n\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\n\t}",
"@Override\n\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\n\t}",
"@Override\n\tpublic void onStartTrackingTouch(SeekBar seekBar)\n\t{\n\t}",
"@Override\n\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t}",
"@Override\n\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t}",
"@Override\r\n\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\r\n\t\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }",
"@Override\n\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t}",
"@Override\n \tpublic void onStartTrackingTouch(SeekBar seekBar)\n \t{\n \n \t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t}",
"@Override\n\t\t\t\t\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\n\t\t\t\t\t\t\t}",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n\n }",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onStartTrackingTouch(SeekBar arg0) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onStartTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\n\t\t\t}"
] | [
"0.88108766",
"0.8768382",
"0.8768382",
"0.8768382",
"0.8768382",
"0.8768382",
"0.8750743",
"0.87474626",
"0.87472314",
"0.87306046",
"0.87200046",
"0.87190896",
"0.87141097",
"0.87141097",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8705604",
"0.8701022",
"0.86969584",
"0.86969584",
"0.8696899",
"0.86950386",
"0.86950386",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.86924475",
"0.868283",
"0.8682266",
"0.8678626",
"0.8676746",
"0.8676746",
"0.86730367",
"0.86730367",
"0.8671706",
"0.86696154",
"0.86696154",
"0.86636996",
"0.86636996",
"0.8662531",
"0.8661998",
"0.8654072",
"0.8646173",
"0.8645003",
"0.8645003",
"0.8645003",
"0.8645003",
"0.8645003",
"0.8645003",
"0.8645003",
"0.8645003",
"0.8645003",
"0.8634471",
"0.86256886",
"0.86256886",
"0.86256886",
"0.8624034",
"0.8624034",
"0.8624034",
"0.86233014",
"0.86233014",
"0.86233014",
"0.86233014",
"0.86233014",
"0.86233014",
"0.86233014"
] | 0.0 | -1 |
TODO Autogenerated method stub TODO Autogenerated method stub seekBar.setProgress(progress); mDistanceAround = seekBar.getProgress(); mEditText.setText(progress); Toast.makeText(mContext, "mDistanceAround value is " + mDistanceAround, Toast.LENGTH_SHORT).show(); progress = Integer.valueOf(mEditText.getText().toString()); Toast.makeText(mContext, "SeekBar onProgressChanged ", Toast.LENGTH_SHORT).show(); | @Override
public void onProgressChanged(VerticalSeekBar VerticalSeekBar, int progress, boolean fromUser)
{
mEditText.setText(String.valueOf(progress + MIN_DISTANCE)+"m");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n distanceValue.setText(getString(R.string.fullscreen_dialog__value_in_meter,progress));\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n\r\n }",
"public void seekBarListener() {\n seekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n int progressChangedValue = 0;\n\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n progressChangedValue = progress;\n }\n\n public void onStartTrackingTouch(SeekBar seekBar) {\n // TODO Auto-generated method stub\n }\n\n public void onStopTrackingTouch(SeekBar seekBar) {\n progressTextView.setText(\"Your current progress is \" + progressChangedValue);\n Toast.makeText(MainActivity.this, \"Seek bar progress is :\" + progressChangedValue,\n Toast.LENGTH_SHORT).show();\n }\n });\n }",
"private void procUpdatePosition(int position) {\n //log_d(\"procUpdatePosition: \" + position);\n\n float ratio = 0;\n if( mDuration > 0 ) {\n ratio = (float)position / (float)mDuration;\n }\n\n int progress = (int)(MAX_PROGRESS * ratio);\n setSeekbarProgress(progress);\n\n}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar3.setMax(10);\n txt3.setText(String.valueOf(progress));\n salataAdet = progress;\n \n \n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar2.setMax(10);\n txt2.setText(String.valueOf(progress));\n icecekAdet = progress;\n \n \n \n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //shou lian\r\n mImgView.setImageBitmap(mFaceEditor.BFFaceLift(seekBar.getProgress()/10,0,0,0));//));//change to 0-100\r\n\r\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n progressValue = progress;\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n //Toast.makeText(MainActivity.this, \"Changing max value!\", Toast.LENGTH_SHORT).show();\r\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n seek_bar1.setMax(10);\n txt1.setText(String.valueOf(progress));\n yemekAdet = progress; \n \n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n\r\n //big eye\r\n mImgView.setImageBitmap(null);\r\n mImgView.setImageBitmap(mFaceEditor.BFEyeWarp(15,seekBar.getProgress()/10));//change to 0-100\r\n// int val = seekBar.getProgress();\r\n// Log.e(\"eyewarp\", \"eyewarp: \"+val);\r\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //high nose\r\n mImgView.setImageBitmap(mFaceEditor.BFHighnose(seekBar.getProgress()/10));//));//change to 0-100\r\n\r\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //light eye\r\n mImgView.setImageBitmap(mFaceEditor.BFLightEye(seekBar.getProgress()/10));//));//change to 0-100\r\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //eye bag remove\r\n mImgView.setImageBitmap(mFaceEditor.BFEyeBagRemoval(seekBar.getProgress()/10));//));//change to 0-100\r\n }",
"@Override \r\n\t\t public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n\t\t \tint actualValue = Math.round(progress/100)*100;\r\n\t\t \tactualValue += delayMinimum;\t\t \t\r\n\t\t seekValue.setText(\"\"+actualValue);\t\t\r\n\t\t delayTime = actualValue;\r\n\t\t }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n TextView tvDeSeekBarPregunta3 = (TextView) findViewById(R.id.tvDeSeekBarPregunta3);\n tvDeSeekBarPregunta3.setText(String.valueOf(progress));\n Shared200.setP212_43(String.valueOf(progress));\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n TextView tvDeSeekBarPregunta1 = (TextView) findViewById(R.id.tvDeSeekBarPregunta1);\n tvDeSeekBarPregunta1.setText(String.valueOf(progress));\n Shared200.setP212_41(String.valueOf(progress));\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_graduacao = inf.findViewById(R.id.textView11);\n txtV_graduacao.setText(\"\"+progress+\" %\");\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_volume = inf.findViewById(R.id.textView9);\n txtV_volume.setText(\"\"+progress+\" ml\");\n }",
"@Override\n \tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)\n \t{\n \t\tradiusTextField.setText(\"\" + progress);\n \t}",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress,\r\n boolean fromUser) {\n int value = seekBar.getProgress();\r\n LayoutParams paramsStrength = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\r\n int s = GlobalDefinitions.SCREEN_WIDTH-ScaleUtils.scale(240);\r\n paramsStrength.leftMargin = (int) (ScaleUtils.scale(83)+s*value/1000);\r\n paramsStrength.topMargin = ScaleUtils.scale(40);\r\n mValueTxt.setLayoutParams(paramsStrength);\r\n int res = (value/10);\r\n mValueTxt.setText(String.valueOf(res));\r\n mImgView.setImageBitmap(null);\r\n //skin white\r\n mImgView.setImageBitmap(mFaceEditor.BFSoftskin(GlobalDefinitions.softRatio, Math.abs(seekBar.getProgress()/10)));//));//change to 0-100\r\n\r\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser) {\n progress = progressValue;\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n pDialog.setProgress(progress[0]);\n\n // updating percentage value\n //txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n TextView tvDeSeekBarPregunta2 = (TextView) findViewById(R.id.tvDeSeekBarPregunta2);\n tvDeSeekBarPregunta2.setText(String.valueOf(progress));\n Shared200.setP212_42(String.valueOf(progress));\n }",
"void updateSeekbar(int position, int duration);",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n TextView txtV_quantidade = inf.findViewById(R.id.volume_12);\n txtV_quantidade.setText(\"\"+progress+\" copo(s)\");\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\n }",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv3.setText(String.format(\"%.0f\", 200*progress-1000.));\r\n\t\t\t}",
"@Override \n\t public void onProgressChanged(SeekBar Bar, int progress, boolean fromUser) {\n\t \n\t \t// Adapt value TextView Rate to the new value of SeekBar Bar\n\t \tif(fromUser) { \n\t \t\tint value = progress; \n\t \t\tRate.setText(String.format(\"%d\", value));\n\t \t} \n\t }",
"private void setSeekbarListener(){\n mTempSeekbar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) { }\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress,boolean fromUser) {\n if(progress<=100 && progress>=0){\n // change display temp based on seekbar progress and update the view\n display_temp = Tools.roundToHalf((32-9)*progress/100.0+9);\n Log.v(TAG, \"onProgressChanged: temp:\"+display_temp+\"seekbar progress=\"+progress);\n updateControlView();\n // update the mercury of the thermometer\n ClipDrawable mMercuryClip = (ClipDrawable) mMercuryImg.getDrawable();\n mMercuryClip.setLevel(progress*100);\n }\n }\n });\n }",
"@Override\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\t\tp1=progress;\n\t\t\t\tp=p1.toString();\n\t\t\t\tx=p1.toString();\n\t\t\t\twithin.setText( x+=\" Kms\");\t\t\t\t\n\t\t\t\t}",
"public void onProgressChanged(SeekBar arg0, int progress, boolean fromUser) {\n }",
"@Override\n public void onProgressChanged(\n SeekBar seekbar, int value, boolean fromUser) {\n mValue = toDoubleExpression(value) + mRange.getLowerBound();\n\n final String fmt = \"%\" + mNumberOfIntegralDigits + \".\" +\n mNumberOfDecimalDigits + \"f\";\n\n // use the proper unit based on the value\n mTextView.setText(Unit.getUnitString(mContext, mUnit, fmt, mValue));\n }",
"@Override\r\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\r\n\r\n }",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv.setText(String.format(\"%1.2f\", ((float)progress+20)/200));\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onProgressChanged(SeekBar seekbar, int progress, boolean arg2) {\n\t\t\t\ttv2.setText(String.format(\"%.1f\", 0.4*progress-100));\r\n\t\t\t}",
"private void primarySeekBarProgressUpdater() {\n seekBarProgress.setProgress((int) (((float) mediaPlayer.getCurrentPosition() / mediaFileLengthInMilliseconds) * 100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n if (mediaPlayer.isPlaying()) {\n Runnable notification = new Runnable() {\n public void run() {\n primarySeekBarProgressUpdater();\n }\n };\n handler.postDelayed(notification, 1000);\n }\n }",
"@Override \n\t\t\t\tpublic void onStopTrackingTouch(SeekBar analyseSeekBar) {\n\t\t\t\tp1 = analyseSeekBar.getProgress();\t\t\n\t\t\t\t}",
"private void primarySeekBarProgressUpdater() {\n \tseekBarProgress.setProgress((int)(((float)mediaPlayer.getCurrentPosition()/mediaFileLengthInMilliseconds)*100)); // This math construction give a percentage of \"was playing\"/\"song length\"\n\t\tif (mediaPlayer.isPlaying()) {\n\t\t\tRunnable notification = new Runnable() {\n\t\t public void run() {\n\t\t \tprimarySeekBarProgressUpdater();\n\t\t\t\t}\n\t\t };\n\t\t handler.postDelayed(notification,1000);\n \t}\n }",
"@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n if (arg0 == _seekBarSpeed) {\n double inc = ((double)arg1*2)/100;\n NotifyTimeDeltaChanged(inc);\n _textSpeed.setText(String.format(\"%.2f\", inc));\n } else {\n if (arg0 == _seekBarArgs[0]) {\n NotifyParameterChanged(0, arg1);\n _textArgs[0].setText(String.format(\"%d\", arg1));\n } else if (arg0 == _seekBarArgs[1]) {\n NotifyParameterChanged(1, arg1);\n _textArgs[1].setText(String.format(\"%d\", arg1));\n } else if (arg0 == _seekBarArgs[2]) {\n NotifyParameterChanged(2, arg1);\n _textArgs[2].setText(String.format(\"%d\", arg1));\n }\n }\n }",
"@Override\n public void onProgressChanged(SeekBar bar, int progress, boolean fromuser) {\n mProgress = progress;\n mSeekBarFromUser = fromuser;\n }",
"@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n }",
"public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n textViewDelay.setText(\"Delay: \" + progress + \" seconds\"); //update \"progress\" value and pass it to textview\n }",
"@Override\n protected void onProgressUpdate(Integer... progress) {\n progressBar.setVisibility(View.VISIBLE);\n\n // updating progress bar value\n progressBar.setProgress(progress[0]);\n\n // updating percentage value\n txtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n }",
"private void changeSeekbar() {\n\n seekbar.setProgress(mediaPlayer.getCurrentPosition());\n\n if(mediaPlayer.isPlaying())\n {\n runnable=new Runnable() {\n @Override\n public void run() {\n changeSeekbar();\n }\n };\n handler.postDelayed(runnable,1000);\n }\n\n }",
"private void changeDistance() {\n kilometers = sb.getProgress();\n TextView textView = (TextView) findViewById(R.id.distanceText);\n textView.setText(kilometers + \" km\");\n }",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tprogressBar.setVisibility(View.VISIBLE);\n\n\t\t\t// updating progress bar value\n\t\t\tprogressBar.setProgress(progress[0]);\n\n\t\t\t// updating percentage value\n\t\t\ttxtPercentage.setText(String.valueOf(progress[0]) + \"%\");\n\t\t}",
"public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n mSeekbarValue.setText(String.valueOf(progress));\n }",
"@Override\r\n public void onStartTrackingTouch(SeekBar seekBar) {\r\n resultsTextView.setText(\"Range: 0-\" + seekBar.getProgress());\r\n }",
"@Override\n\tpublic void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if (radarPlugin == null) {\n return;\n }\n if (seekBar == this.distanceSeekBar) {\n seekBarDistanceTextView.setText(\"Max distance \" + progress);\n mBeyondarFragment.setMaxDistanceToRender(progress);\n radarPlugin.setMaxDistance(progress);\n }\n if (seekBar == this.pullCloserSeekBar) {\n pullCloserTextView.setText(\"Pull Closer \" + progress);\n mBeyondarFragment.setPullCloserDistance(progress);\n }\n if (seekBar == this.pushAwaySeekBar) {\n pushAwayTextView.setText(\"Push Away \" + progress);\n mBeyondarFragment.setPushAwayDistance(progress);\n }\n if (seekBar == this.distanceFactorSeekBar) {\n distanceFactorTextView.setText(\"Distance Factor \" + progress);\n mBeyondarFragment.setDistanceFactor(progress);\n }\n }",
"@Override\n\t\t\t\t\tpublic void onProgressChanged(SeekBar seekBar,\n\t\t\t\t\t\t\tint progress, boolean fromUser) {\n\t\t\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n pitch1Change = progress;\n pitchSeek1Value.setText(String.valueOf(pitch1Change));\n }",
"public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n textGoalStart.setText(String.valueOf(arg1)+\"%\");\n\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if (fromUser){\n int seekPos = seekBar.getProgress();\n mSeekBarIntent.putExtra(\"seekPos\",seekPos);\n this.sendBroadcast(mSeekBarIntent);\n }\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n pitch2Change = progress;\n pitchSeek2Value.setText(String.valueOf(pitch2Change));\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress,\n boolean fromUser) {\n progressValue =progress;\n Camera.Parameters params = mCamera.getParameters();\n params.setZoom(progress);\n mCamera.setParameters(params);\n }",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t\tfloat set = (float) progress/100;\n\t\t\t\tLog.v(\"set\", set+\"\");\n\t\t\t\tmMediaPlayer[0].setVolume(set,set);\n\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int i, boolean b) {\n mTextView.setText(\"\"+i);\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(VerticalSeekBar VerticalSeekBar)\n\t\t\t{\n\t\t\t\tmDistanceAround = mVerticalSeekBar.getProgress() + MIN_DISTANCE;\n\t\t\t\tmEditText.setAlpha(0.5f);\n\t\t\t\tmVerticalSeekBar.setAlpha(0.4f);\n\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n seekAttemptsCount.setText(Integer.toString(progress + 1));\n }",
"@Override\n\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\tif(custom)\n\t\t\t\t{\n\t\t\t\t\ttip_perc.setText(\"Tip: \"+String.valueOf(progress_value)+\" %\");\n\t\t\t\t\tint tip_dollar = calculateTip(progress_value, Integer.parseInt(ed.getText().toString()));\n\t\t\t\t\ttotal_val=Integer.parseInt(ed.getText().toString())+tip_dollar;\n\t\t\t\t\ttip.setText(\"Tip: \"+String.valueOf(tip_dollar));\n\t\t\t\t\ttotal.setText(\"Total: \" + String.valueOf(total_val));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\tboolean fromUser) {\n\t\t\tcustomPercent = progress / 100.0;\n\t\t\tupdateCustom();\n\t\t\t\n\t\t}",
"public void onProgressChanged (SeekBar seekBar, int progress, boolean fromUser) {\n myCircleView.setSize(progress*2);\n }",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar skb, int prog, boolean fromUser) {\n\t\t\t\tMySurfaceView.redVal = prog;\n\t\t\t}",
"private void seekChange(View v){\n \t//if(mediaPlayer.isPlaying()){\n\t \tSeekBar sb = (SeekBar)v;\n\t\t\tmediaPlayer.seekTo(sb.getProgress());\n\t\t//}\n }",
"public void afterTextChanged(Editable s) {\n\n if(!String.valueOf(s).matches(\"\")) {\n\n String valStr = String.valueOf(s);\n int valInt = Integer.parseInt(valStr);\n\n if (valInt <= 40000000) {\n\n seekBar.setProgress(valInt / 100000);\n\n Log.d(\"SEEKBAREDITTEXTVALLOG\", \"Value :\" + \" \" + valInt / 100000);\n\n expectedPriceEdtx.setSelection(expectedPriceEdtx.getText().toString().length());\n\n } else {\n\n activity.runOnUiThread(new Runnable() {\n @Override\n public void run() {\n expectedPriceEdtx.setText(\"40000000\");\n Toasty.error(activity, \"Cannot add more than 4 Crore\", Toasty.LENGTH_SHORT).show();\n }\n });\n\n }\n }\n }",
"@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\n\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n p4t = (progress*50);\n parameter_04_time.setText(\"Time interval for Linear Accelerator Sensor: \"+String.valueOf(p4t)+\" (ms)\");\n prefs2.saveData(\"time_interval_04\",String.valueOf(p4t));\n\n }",
"@Override\n\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\t\tfloat percent=((float)progress*2)/10.0f;\n\t\tvol_cur_percent=MIN_VOL+percent;\n\t\ttv_vol_pro.setText(CUR_VOL+(int)(vol_cur_percent*100)+\"%\");\n\t\t\n\t}",
"protected void calculateProgressDegrees() {\r\n\t\tmProgressDegrees = mPointerPosition - mStartAngle; // Verified\r\n\t\tmProgressDegrees = (mProgressDegrees < 0 ? 360f + mProgressDegrees : mProgressDegrees); // Verified\r\n\t}",
"void onProgress(float progress);",
"@Override\r\n\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n\t\t\tUtils.printLog(TAG, \"SeekBarListener onProgressChanged progress =\" + progress + \" fromUser =\" + fromUser);\r\n\t\t\tif (fromUser) {\r\n\r\n\t\t\t\tif (sEndTime > 0) {\r\n\t\t\t\t\tfinal long time = progress * (long) sEndTime / Utils.SeekBarLength;\r\n\t\t\t\t\tUtils.printLog(TAG, \"SeekBarListener mseekbariwidth=\" + mPlayerSeekar.getWidth() + \" onProgressChanged sEndTime =\" + sEndTime + \" time =\" + time);\r\n\t\t\t\t\tnew Thread(new Runnable() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\t\t\tmVideoContrl.seekTo((int) time);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\t\t\t\t\tlong xoff = (mPlayerSeekar.getWidth() - Utils.SeekBarThumbLength) * (long) progress / Utils.SeekBarLength;\r\n\t\t\t\t\tseekBarPopWindow.showText(mPlayerSeekar, Utils.getTimeShort((int) time), (int) xoff, -22);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmPlayerSeekar.setProgress(0);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}",
"private void updateRunnable() {\n updateSeekBar = new Runnable() {\n @Override\n public void run() {\n playerSeekBar.setProgress(mediaPlayer.getCurrentPosition());\n seekBarHandler.postDelayed(this, 500);\n }\n };\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n p4_X = (progress);\n parameter_04_X.setText(\"Threshold for Linear Accelerator Sensor, X axis: |\"+String.valueOf(p4_X)+\"| (m/s^2)\");\n prefs2.saveData(\"threshold_04_X\",String.valueOf(p4_X));\n\n }",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progressValue, boolean fromUser){\n\t\t\t\tprogress = progressValue;\n\t\t\t\ttextView.setText(\"Skill Level: \" + progress + \"/\" + seekBar.getMax());\n\t\t\t}",
"public void setProgress(SeekBar seekBar, int progress, boolean isPressed) {\n if (isPressed) {\n int id = seekBar.getId();\n this.ampDsp.bf = 0;\n this.ampDsp.as = 0;\n switch (id) {\n case R.id.sound_progress1:\n this.ampDsp.tvSoundProgress[0].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress2:\n this.ampDsp.tvSoundProgress[1].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress3:\n this.ampDsp.tvSoundProgress[2].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress4:\n this.ampDsp.tvSoundProgress[3].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress5:\n this.ampDsp.tvSoundProgress[4].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress6:\n this.ampDsp.tvSoundProgress[5].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress7:\n this.ampDsp.tvSoundProgress[6].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress8:\n this.ampDsp.tvSoundProgress[7].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress9:\n this.ampDsp.tvSoundProgress[8].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress10:\n this.ampDsp.tvSoundProgress[9].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress11:\n this.ampDsp.tvSoundProgress[10].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress12:\n this.ampDsp.tvSoundProgress[11].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress13:\n this.ampDsp.tvSoundProgress[12].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress14:\n this.ampDsp.tvSoundProgress[13].setText(\"\" + (progress - 10));\n break;\n case R.id.sound_progress15:\n this.ampDsp.tvSoundProgress[14].setText(\"\" + (progress - 10));\n break;\n }\n if (this.ampDsp.vsbSoundProgress[0] != null) {\n this.ampDsp.putSystemString(\"KeyCustomEQ\", \"\" + this.ampDsp.vsbSoundProgress[0].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[1].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[2].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[3].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[4].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[5].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[6].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[7].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[8].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[9].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[10].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[11].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[12].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[13].getProgress() + \",\" + this.ampDsp.vsbSoundProgress[14].getProgress());\n }\n this.ampDsp.bttnEqCustom1.setSelected(false);\n this.ampDsp.bttnEqCustom2.setSelected(false);\n this.ampDsp.bttnEqCustom3.setSelected(false);\n this.ampDsp.putSystemInt(\"KeyCTmode\", this.ampDsp.as);\n this.ampDsp.bg.removeMessages(1);\n this.ampDsp.bg.sendEmptyMessageDelayed(1, 50);\n }\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n p4_Y = (progress);\n parameter_04_Y.setText(\"Threshold for Linear Accelerator Sensor, Y axis: |\"+String.valueOf(p4_Y)+\"| (m/s^2)\");\n prefs2.saveData(\"threshold_04_Y\",String.valueOf(p4_Y));\n\n }",
"protected void onProgressUpdate(String... progress) {\n\t\t\t\t\t\t// Set progress percentage\n\t\t\t\t\t\tprgDialog.setProgress(Integer.parseInt(progress[0]));\n\t\t\t\t\t}",
"public void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\tboolean fromUser) {\n\t}",
"public void onProgress(int pos);",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n p4_Z = (progress);\n parameter_04_Z.setText(\"Threshold for Linear Accelerator Sensor, Z axis: |\"+String.valueOf(p4_Z)+\"| (m/s^2)\");\n prefs2.saveData(\"threshold_04_Z\",String.valueOf(p4_Z));\n\n }",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\t\t\t}",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n schermataRicercaFragment.distanzaProgresso.setText(\"Distanza : \" + progressoAggiornato);\n }",
"public void onProgressChanged(SeekBar arg0, int arg1, boolean arg2) {\n textStart.setText(String.valueOf(arg1));\n count = arg1;\n }",
"public interface OnProgressChangedListener {\n void onProgressChanged(RoundSeekBar roundSeekBar, float progress);\n\n void onStartTrackingTouch(RoundSeekBar roundSeekBar);\n\n void onStopTrackingTouch(RoundSeekBar roundSeekBar);\n}",
"@Override\n\t\t\t\tpublic void onProgress(int progress) {\n\t\t\t\t\tmProgressBar.setProgress(progress);\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress,\n\t\t\t\t\tboolean fromUser) {\n\n\t\t\t}",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if (!fromUser)\n return;\n String tag = (String) seekBar.getTag();\n switch (tag) {\n case \"frames\":\n //Log.v(\"RenderSettings\", \"frames seekbar changed\");\n setFrames(seekBar.getProgress() + 2);\n break;\n case \"a\":\n //Log.v(\"RenderSettings\", \"'a' seekbar changed\");\n setA((seekBar.getProgress() + 1) / 1000.0f);\n break;\n case \"b\":\n //Log.v(\"RenderSettings\", \"'b' seekbar changed\");\n setB(seekBar.getProgress() / 100.0f + 1.0f);\n break;\n case \"P\":\n //Log.v(\"RenderSettings\", \"'P' seekbar changed\");\n setP(seekBar.getProgress() / 100.0f);\n break;\n default:\n Log.v(\"RenderSettings\", \"unknown seekbar changed.\");\n break;\n }\n }",
"@Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n int temp = seekBar.getProgress();\n\n switch (temp){\n case 0:\n sendValue = S1;\n break;\n case 1:\n sendValue = S2;\n break;\n case 2:\n sendValue = S3;\n break;\n case 3:\n sendValue = S4;\n break;\n }\n }",
"@Override\n\t\t\t\tpublic void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) \n\t\t\t\t{\n\t\t\t\t\tif(progress<=20)\n\t\t\t\t\t{\n\t\t\t\t\t\t//set the brightness to 20\n\t\t\t\t\t\tbrightness=20;\n\t\t\t\t\t}\n\t\t\t\t\telse //brightness is greater than 20\n\t\t\t\t\t{\n\t\t\t\t\t\t//sets brightness variable based on the progress bar \n\t\t\t\t\t\tbrightness = progress;\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n\t\tprotected void onProgressUpdate(Integer... progress) {\n\t\t\tsuper.onProgressUpdate(progress);\n\n\t\t\tdialog.setProgress(progress[0]);\n\t\t}",
"@Override\n\t\t\t\t\tpublic void onStopTrackingTouch(SeekBar seekBar) {\n\t\t\t\t\t\tint p = seekBar.getProgress();\n\t\t\t\t\t\tif (p > 150) {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_3_D);\n\t\t\t\t\t\t} else if (p > 50) {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_2_N);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetSeekBarProgress(ConfigurationUtil.MODE_1_C);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n public void onProgressUpdate(Integer... progress)\n {\n _dialog.setProgress(progress[0]);\n }"
] | [
"0.7624047",
"0.75022596",
"0.7500587",
"0.7392109",
"0.73446983",
"0.73212713",
"0.7299551",
"0.7278841",
"0.727401",
"0.72151923",
"0.72007936",
"0.719799",
"0.71004385",
"0.707012",
"0.7038548",
"0.7034035",
"0.70207417",
"0.6997881",
"0.6993024",
"0.69729155",
"0.6944505",
"0.69332373",
"0.6911418",
"0.6908882",
"0.6861333",
"0.6847731",
"0.682142",
"0.67803854",
"0.67542225",
"0.6748634",
"0.67427844",
"0.67329085",
"0.6713394",
"0.6710522",
"0.6699874",
"0.66814977",
"0.6650169",
"0.6645219",
"0.6638359",
"0.66238225",
"0.6616597",
"0.6616597",
"0.661427",
"0.6611424",
"0.6602762",
"0.6598895",
"0.65918773",
"0.6582693",
"0.6560998",
"0.6559228",
"0.65479934",
"0.64892954",
"0.6476899",
"0.64764017",
"0.6468082",
"0.64352673",
"0.6415792",
"0.6413377",
"0.6409223",
"0.6409223",
"0.6369833",
"0.63641214",
"0.63636005",
"0.6361934",
"0.63535833",
"0.6349965",
"0.634875",
"0.6336484",
"0.6318438",
"0.6292552",
"0.6292529",
"0.6291553",
"0.62829757",
"0.62778693",
"0.62758315",
"0.626988",
"0.6257996",
"0.62509406",
"0.6246499",
"0.62291574",
"0.6224613",
"0.6220532",
"0.62158215",
"0.6204056",
"0.6187456",
"0.61800903",
"0.61800903",
"0.61800903",
"0.6172418",
"0.61712575",
"0.61690074",
"0.6158265",
"0.61535895",
"0.61535895",
"0.6121241",
"0.61191183",
"0.6111883",
"0.61053413",
"0.60879743",
"0.6074296"
] | 0.75018036 | 2 |
MyLog.w("location_public", "here " + location.getLongitude() + " " + location.getLatitude()); | private void notifyOnLocationChange(Location location) {
if (listeners != null) {
for (GPSServiceListener listener : listeners) {
if (listener != null) {
listener.onLocationChange(location);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void onLocationChanged(Location location) {\n\t\t\t\tLog.d(\"demo\", \"Lat:\" + location.getLatitude() + \" Long:\"+location.getLongitude());\r\n\t\t\t}",
"@Override\n public void onLocationChanged(Location location) {\n Toast.makeText(getApplicationContext(), location.toString() + \"\", Toast.LENGTH_SHORT).show();\n Log.i(TAG, \"onLocationChanged: \" + location.toString());\n }",
"@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n Toast.makeText(this, currentLatitude + \", \" + currentLongitude + \"\", Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onLocationChanged(Location location) {\n lat=location.getLatitude();\n Log.e(\"MyLat\",Double.toString(lat));\n lng=location.getLongitude();\n Log.e(\"Mylongitude\",Double.toString(lng));\n /* houni c'est bon khdhina el lat w longitude\n donc just taamel el requete li bch tarmiha fel base\n */\n Toast.makeText(this,Double.toString(lng),Toast.LENGTH_LONG).show();\n\n }",
"@Override\n\tpublic void onLocationChanged(Location arg0) {\n\t\t Location myLocation =mMap.getMyLocation();\n if( myLocation != null ){\n logger.debug( \"Latitude: \" + myLocation.getLatitude() + \"\\nLongitude: \" + myLocation.getLongitude() );\n } \n\t}",
"@Override\n public void onLocationChanged(Location location) {\n\n clientlat = location.getLatitude();\n clientlon = location.getLongitude();\n System.out.println(\"latitude is \"+clientlat);\n System.out.println(\"longitude is \"+clientlon);\n }",
"public void logLocation(View view) {\n writeGPSDataToDB(locationHandler.getLatitude(), locationHandler.getLongitude(), locationHandler.getAltitude());\n databaseHandler.setValueInExpInfo(((TextView) findViewById(R.id.accelerate_indicator_rec)).getText().toString(), \"receiver_orientation\", experimentNumber);\n accelerometerHandler.close();\n Toast.makeText(this, \"receivers GPS data logged\", Toast.LENGTH_SHORT).show();\n gpsLogged = true;\n }",
"@Override\n public String updateLog() {\n return mylon;\n }",
"@Override\n public void onLocationChanged(Location location) {\n t.append(\"\\n \" + location.getLongitude() + \"\\n\" + location.getLatitude() + \"\\n\" + location.getAccuracy() + \"\\n\" + location.getTime());\n latitude = Double.toString(location.getLatitude());\n longitude =Double.toString(location.getLongitude());\n }",
"private void getLocation() {\n\n }",
"public void onLocationChanged(Location location) {\n Log.i( \"wifiMonitor\", location.toString() );\n\n }",
"@Override\n public void onLocationChanged(Location location) {\nString x=\"Latitude is--> \"+location.getLatitude();\nString y=\"Longtitude is--> \"+location.getLongitude();\n Toast.makeText(this.context,\"LATITUDE=\"+x+\" LONGTITUDE=\"+y, Toast.LENGTH_LONG).show();\n txtview.setText(x+\"\\n\"+y);\n\n }",
"public void gotLocation(Location location){\r\n \tif(location!=null){\r\n\t \tConstants.gpslat = location.getLatitude()+\"\";\r\n\t Constants.gpslng = location.getLongitude()+\"\";\r\n\t Log.d(\"location changed: lattitue & longitude\",Constants.gpslat+\" & \"+Constants.gpslng);\r\n \t}\r\n }",
"public String getLocation(){\n return location;\n }",
"public String getLocation(){\r\n return location;\r\n }",
"public String getLocation(){\r\n return Location;\r\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n Toast.makeText(ATSLocationActivity.this, \"Last location is null\", Toast.LENGTH_SHORT).show();\n }else{\n Toast.makeText(ATSLocationActivity.this, \"\"+location.getLatitude(), Toast.LENGTH_SHORT).show();\n }\n }",
"private String getLocationForPrint(double latitude, double longitude) {\n int latDegree = (new Double(Math.floor(latitude))).intValue();\n int longDegree = (new Double(Math.floor(longitude))).intValue();\n String latEnd = getString(R.string.latitude_south);\n String longEnd = getString(R.string.longitude_west);\n if (latDegree > 0) {\n latEnd = getString(R.string.latitude_north);\n\n }\n if (longDegree > 0) {\n longEnd = getString(R.string.longitude_east);\n }\n double latSecond = (latitude - latDegree) * 100;\n double latMinDouble = (latSecond * 3d / 5d);\n int latMinute = new Double(Math.floor(latMinDouble)).intValue();\n\n double longSecond = (longitude - longDegree) * 100;\n double longMinDouble = (longSecond * 3d / 5d);\n int longMinute = new Double(Math.floor(longMinDouble)).intValue();\n// return String.format(getString(R.string.geo_location_info), latDegree,\n// latMinute, latEnd, longDegree, longMinute, longEnd);\n return getString(R.string.geo_location_info);\n\n }",
"@Override\n public void onSuccess(Location location) {\n Log.e(\"onRequestPermissions\", \"Success\");\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n Log.e(\"getLocation\", String.valueOf(wayLongitude));\n }\n }",
"private void dumpLocation(Location location) {\n if (location == null)\n log(\"Location[unknown]\");\n else\n log(location.toString());\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n wayLatitude = location.getLatitude();\n wayLongitude = location.getLongitude();\n SharedStore.getInstance().save(Double.toString(wayLatitude),\"CurrentLat\");\n SharedStore.getInstance().save(Double.toString(wayLongitude),\"CurrentLong\");\n Log.e(\"getLocation\", String.valueOf(wayLatitude));\n }\n }",
"public void getLocation(){\n }",
"@Override\n public void onSuccess(Location location) {\n Log.d(TAG, \"onSuccess: Location : \" + location);\n if (location != null) {\n Toast.makeText(MainActivity.this, \"Location : \" + location, Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n double longitude = location.getLongitude();\n double latitude = location.getLatitude();\n LocText.setText(\"Longitude:\" + longitude + \"\\n\" +\"Latitude\" + latitude);\n }",
"@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t\n \t\t\t\t\t}",
"@Override\n \t\t\t\t\tpublic void onLocationChanged(Location location) {\n \t\t\t \tTextView latitudine = (TextView) findViewById(R.id.latitude_txt);\n \t\t\t \tTextView longitudine = (TextView) findViewById(R.id.longitude_txt);\n\n \t\t\t \tlatitudine.setText(\"La latitudine è: \"+String.valueOf(location.getLatitude()));\n \t\t\t \tlongitudine.setText(\"La longitudine è: \"+String.valueOf(location.getLongitude()));\n \t\t\t\t\t}",
"String getLocation() {\n return super.getLocation()+ \", z : \" + z;\n }",
"@SuppressLint(\"MissingPermission\")\n private void startup() {\n Log.i(TAG, \"startup: \");\n Log.i(TAG, \"startup: \" + currentLocation.latitude);\n\n }",
"public String getLocationName(){\n return myLoc;\n }",
"public String getLocation(){\n return this.location;\n }",
"public int getLocation()\r\n {\n }",
"public String getLocation()\n {\n return location;\n }",
"public String getLocation() {\n\t\treturn \"-12.9990189,-38.5140298\";\n\t}",
"public String getLocation() { return location; }",
"public String getLocation() { return location; }",
"@Override\n\t\tpublic void onLocationChanged(Location location) {\n\t\t\tcurrent_location=location;\n\t\t\tlatitude=current_location.getLatitude();\n\t\t\tlongitude=current_location.getLongitude();\n\t\t\t//Toast.makeText(AgentSectionActivity.this,\"LATITUDE IS : \"+latitude+\"\\n LONGITUDE IS :\"+longitude+\"\",4000).show();\n\t\t\tsenddata(logged_user,Double.toString(latitude),Double.toString(longitude));\n\t\t}",
"@Override\n public void onLocationChanged(Location location) {\n TextView tv = (TextView) findViewById(R.id.textView);\n if(location == null){\n tv.setText(\"Unable to get current location.\");\n }else {\n longitude = location.getLongitude();\n latitude = location.getLatitude();\n tv.setText(\"longitude: \" + longitude + \"\\n latitude: \" + latitude);\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n Toast.makeText(MainActivity.this,\n location.toString(),Toast.LENGTH_LONG).show();\n }\n else{\n Toast.makeText(MainActivity.this,\n \"Location object not received\",Toast.LENGTH_LONG).show();\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n latitude=String.valueOf(location.getLatitude());\n longitude= String.valueOf(location.getLongitude());\n\n System.out.println(\"asdfgh==\"+latitude);\n\n\n /* Geocoder geocoder;\n List<Address> addresses;\n geocoder = new Geocoder(SafetyActivity.this, Locale.getDefault());\n\n try {\n addresses = geocoder.getFromLocation(location.getLatitude(), location.getLongitude(), 1);\n String address = addresses.get(0).getAddressLine(0); // If any additional address line present than only, check with max available address lines by getMaxAddressLineIndex()\n String city = addresses.get(0).getLocality();\n String state = addresses.get(0).getAdminArea();\n String country = addresses.get(0).getCountryName();\n String postalCode = addresses.get(0).getPostalCode();\n String knownName = addresses.get(0).getFeatureName();\n\n System.out.println(\"addresses==\"+address);\n // Here 1 represent max location result to returned, by documents it recommended 1 to 5\n } catch (IOException e) {\n e.printStackTrace();\n }*/\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n Log.i(TAG, \"Lat :\" + location.getLatitude() + \" Lng: \"+ location.getLongitude());\n }else{\n Log.i(TAG, \"Lat : null Lng: null\");\n\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n mLastLocation = location;\n Log.wtf(\"-GPS\", \"getLocation 169 : \" + mLastLocation.getLatitude() + \",\" + mLastLocation.getLongitude());\n\n } else {\n Log.wtf(\"-GPS\", \"getLocation 171 : \" + mLastLocation);\n\n }\n }",
"public double getLocation(){\n\t\treturn location;\n\t}",
"public void printLocationInfo()\n {\n System.out.println(currentRoom.getLongDescription());\n System.out.println();\n }",
"public void onLocationChanged(Location location) {\n \t\tprintMyCurrentLocationAsString(location);\n \t\t\n\t\t\n \t}",
"@Override\n public void onLocationChanged(Location location) {\n currentLatitude = location.getLatitude();\n currentLongitude = location.getLongitude();\n\n }",
"String getLocation(boolean detail);",
"String getLocation();",
"String getLocation();",
"String getLocation();",
"public String getLocation() {\n return location;\n }",
"public void onLocationChanged(Location loc) {\n\n\n loc.getLatitude();\n loc.getLongitude();\n latitude=loc.getLatitude()+\", \"+loc.getLongitude();\n String Text = \"\\n Lat = \" + loc.getLatitude() + \"\\n Long = \" + loc.getLongitude();\n mensaje1.setText(Text);\n this.mainActivity.setLocation(loc);\n }",
"public void onLocationChanged(Location location) {\n if (location != null) {\n Log.i(\"SuperMap\", \"Location changed : Lat: \" + location.getLatitude() + \" Lng: \" +\n location.getLongitude());\n }\n\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n //Toast.makeText(getApplicationContext(), String.valueOf(location.getLatitude()+\",\"+location.getLongitude()), Toast.LENGTH_SHORT).show();\n retrofitPegarOnibus(location.getLatitude() + \",\" + location.getLongitude());\n coord = location.getLatitude() + \",\" + location.getLongitude();\n } else {\n //Toast.makeText(getApplicationContext(), \"Location = null\", Toast.LENGTH_SHORT).show();\n }\n }",
"public String getLocationString() {\r\n\t\treturn \"Location = (\" + Math.round(getLocationX() * 10) / 10.0 + \", \" + Math.round(getLocationY() * 10) / 10.0 + \")\";\r\n\t}",
"public String getLocation() {\n return mLocation;\n }",
"private void getGPSLocation()\n {\n gps_ = new GPSLocator( LoginActivity.this );\n\n // check if GPS enabled\n if ( gps_.canGetLocation() )\n {\n latitude_ = gps_.getLatitude();\n longitude_ = gps_.getLongitude();\n\n // Raises a toast to show the location\n Toast.makeText(\n getApplicationContext(),\n \"Your Location is - \\nLat: \" + latitude_ + \"\\nLong: \"\n + longitude_, Toast.LENGTH_SHORT ).show();\n }\n else\n {\n // There was an error getting the gps information\n gps_.showSettingsAlert();\n }\n }",
"public void onLocationChanged(Location location){\n\n }",
"long getLatitude();",
"public String getLocation() {\r\n return location;\r\n }",
"public int getLocation()\r\n {\r\n return location;\r\n }",
"@Override\n public String getLocation() {\n return location;\n }",
"public Location getLocation(){\n return location;\n }",
"private void getLocation() {\n //if you don't have permission for location services yet, ask\n if (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_PERMISSION);\n //have the app ask for location permission\n } else {\n fusedLocationClient.requestLocationUpdates\n (getLocationRequest(), mLocationCallback,\n null /* Looper */);\n //uses the type of request and the location callback to update the location\n /**fusedLocationClient.getLastLocation().addOnSuccessListener(\n new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n TextView error = findViewById(R.id.errorMsg);\n error.setVisibility(View.VISIBLE);\n\n if (location != null) {\n lastLocation = location;\n error.setText(\"location: \" + lastLocation.getLatitude());\n } else {\n error.setText(\"location not available\");\n }\n }\n });**/\n }\n }",
"private void writeActualLocation(Location location)\n {\n //textLat.setText( \"Lat: \" + location.getLatitude() );\n //textLong.setText( \"Long: \" + location.getLongitude() );\n //T.t(MapsActivity.this, \"\" + \"Lat: \" + location.getLatitude() + \"\" + \"Long: \" + location.getLongitude());\n markerLocation(new LatLng(location.getLatitude(), location.getLongitude()));\n }",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n\n final ProgressDialog progressDialog = new ProgressDialog(InfoActivity.this);\n progressDialog.setMessage(\"Getting your location...\");\n progressDialog.show();\n SmartLocation.with(InfoActivity.this).location().oneFix().start(new OnLocationUpdatedListener() {\n @Override\n public void onLocationUpdated(Location location) {\n latitudeStr = String.valueOf(location.getLatitude());\n longitudeStr = String.valueOf(location.getLongitude());\n progressDialog.dismiss();\n Toast.makeText(InfoActivity.this, location.getLatitude() + \" \" + location.getLongitude(), Toast.LENGTH_SHORT).show();\n }\n });\n }",
"public String getLocation() {\r\n return location;\r\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"public String getLocation() {\n return location;\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n int latitude = (int) location.getLatitude();\n int longitude = (int) location.getLongitude();\n slat = latitude + \"\";\n slong = longitude + \"\";\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n int latitude = (int) location.getLatitude();\n int longitude = (int) location.getLongitude();\n slat = latitude + \"\";\n slong = longitude + \"\";\n }\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n lastLatitude = Double.toString(location.getLatitude());\n lastLongitude = Double.toString(location.getLongitude());\n //lastLocation = Double.toString(location.getLatitude()) + \",\" + Double.toString(location.getLongitude()) ;\n //String b = lastLocation;\n // Get into right format\n // Logic to handle location object\n }\n }",
"public static String location(SensorDetails details) {\r\n\t\treturn details.location;\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getLocation();\r\n\t}",
"com.google.ads.googleads.v14.common.LocationInfo getLocation();",
"private String requestInfo(Location location) {\n return \"location(lat \" + location.getLat() + \", lon \" + location.getLat() + \") \";\n }",
"public String toString(){\n if(trackLat != null && trackLon != null)\n return (trackNumber+\"; lat=\" + trackLat.getValue() + \";lon=\" + trackLon.getValue());\n else\n return (trackNumber+\" No location detail\");\n }",
"@Override\n public void onLocationChanged(Location location) {\n //Aqui creamos la funcion DownloadWebPageTask para poder descargar los archivos desde la pagina del api\n DownloadWebPageTask task = new DownloadWebPageTask(location);\n task.execute(new String[] { \"http://api.openweathermap.org/data/2.5/weather?lat=\"+location.getLatitude()+\n \"&lon=\"+location.getLongitude()+\"&units=metric&lang=fr&appid=5bdfb081811a28abc515bc673fc0d20f\" });\n Log.d(\"DEBUGGGGGGGGGGGGGGGGGG\", String.valueOf(location.getLatitude()));\n }",
"public String myLocation(double latitude, double longitude){\n String myCity = \"\";\n Geocoder geocoder = new Geocoder(getActivity(), Locale.getDefault());\n List<Address> addressList ;\n try{\n addressList = geocoder.getFromLocation(latitude,longitude,1);\n\n if(addressList.size()>0){\n myCity = addressList.get(0).getLocality();\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n return myCity;\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n mLastLocation = location;\n Log.i(\"mLastLocation\", String.valueOf(mLastLocation.getLatitude()) + \" \" + String.valueOf(mLastLocation.getLongitude()));\n }\n }",
"java.lang.String getLocation();",
"synchronized String getLocString() {\n String MSG_TERMINATOR = \";\";\n String DATA_SEPARATOR = \",\";\n\n if (loc == null) {\n return System.currentTimeMillis() + DATA_SEPARATOR + \"No Location!\" + MSG_TERMINATOR;\n }\n\n return String.valueOf(System.currentTimeMillis()) +\n DATA_SEPARATOR +\n loc.getLongitude() +\n DATA_SEPARATOR +\n loc.getLatitude() +\n DATA_SEPARATOR +\n loc.getAltitude() +\n DATA_SEPARATOR +\n loc.getSpeed() +\n DATA_SEPARATOR +\n loc.getBearing() +\n DATA_SEPARATOR +\n loc.getAccuracy() +\n DATA_SEPARATOR +\n loc.getTime() +\n DATA_SEPARATOR +\n providerEnabled.toString() +\n DATA_SEPARATOR +\n lastTemp +\n DATA_SEPARATOR +\n lastGravity +\n DATA_SEPARATOR +\n lastPressure +\n MSG_TERMINATOR;\n }",
"private UserLocation getLocation() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, \"The Location Permission is needed to show the weather \", Toast.LENGTH_SHORT).show();\n } else {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_LOCATION_CODE_PERMISSION);\n }\n }\n\n } else {\n Log.d(TAG, \"getLocation: Permission Granted\");\n mFusedLocationClient.getLastLocation().addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n msLocation = location;\n userLocation.setLat(location.getLatitude());\n userLocation.setLon(location.getLongitude());\n\n mLocationText.setText(getString(R.string.location_text\n , msLocation.getLatitude()\n , msLocation.getLongitude()\n , msLocation.getTime()));\n RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n params.addRule(RelativeLayout.CENTER_HORIZONTAL);\n mLocationText.setGravity(Gravity.CENTER_HORIZONTAL);\n mLocationText.setLayoutParams(params);\n mLocationText.setTextSize(24);\n\n } else {\n mLocationText.setText(R.string.no_location);\n }\n }\n });\n\n }\n return userLocation;\n }",
"public java.lang.String getLocation() {\n return location;\n }",
"@Override\n public geo_location getLocation() {\n return location;\n }",
"private void displayLocation() {\n\n if (ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(getContext(), Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mLastLocation = LocationServices.FusedLocationApi.getLastLocation(mGoogleApiClient);\n\n if (mLastLocation != null) {\n double latitude = mLastLocation.getLatitude();\n double longitude = mLastLocation.getLongitude();\n\n\n String add = getAddressString(latitude, longitude);\n\n //Check in\n student_checkin chkIn = new student_checkin(getActivity(), sessionId, \"Lat: \" + latitude + \" Long: \" + longitude);\n chkIn.execute();\n lblLocation.setText(latitude + \", \" + longitude);\n cords.setText(add);\n\n\n\n } else {\n\n lblLocation\n .setText(\"(Couldn't get the location. Make sure location is enabled on the device)\");\n }\n }",
"protected String getLocation(){\r\n return this.location;\r\n }",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"Location getLocation();",
"@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }"
] | [
"0.74165004",
"0.7380279",
"0.7371401",
"0.7315793",
"0.7100082",
"0.7081746",
"0.7009303",
"0.69677484",
"0.6856503",
"0.6833042",
"0.67766637",
"0.6765339",
"0.6731211",
"0.66461724",
"0.66142344",
"0.66047966",
"0.6603654",
"0.6598043",
"0.65957665",
"0.65843683",
"0.65740687",
"0.65622336",
"0.65354836",
"0.6532564",
"0.6529566",
"0.6529463",
"0.6528582",
"0.6522026",
"0.64875776",
"0.645896",
"0.6434235",
"0.6421291",
"0.64209425",
"0.64185745",
"0.64185745",
"0.64069605",
"0.6405443",
"0.6389117",
"0.6373985",
"0.63621026",
"0.63570213",
"0.631315",
"0.63028765",
"0.6301515",
"0.62998265",
"0.6298247",
"0.6291439",
"0.6291439",
"0.6291439",
"0.6286784",
"0.6278298",
"0.6262613",
"0.6251335",
"0.62284",
"0.62278503",
"0.62142515",
"0.6213885",
"0.6198779",
"0.61947674",
"0.6188438",
"0.61852896",
"0.61780626",
"0.6170475",
"0.61620396",
"0.615504",
"0.6152238",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.6146449",
"0.61437374",
"0.61437374",
"0.6141386",
"0.6139968",
"0.6139109",
"0.61390525",
"0.61333305",
"0.6130537",
"0.6124492",
"0.61217964",
"0.60988003",
"0.6087303",
"0.60798687",
"0.60772777",
"0.6073244",
"0.6068305",
"0.60599315",
"0.605721",
"0.6055884",
"0.6055884",
"0.6055884",
"0.6055884",
"0.60514283"
] | 0.0 | -1 |
return true if distance increase more than 200 meters or time more than 5 minutes | private boolean isNotifyLocationChange(Location old, Location update) {
boolean isNotifyLocationChange = false;
isNotifyLocationChange = (old.distanceTo(update) >= MIN_DISTANCE_NOTIFY) && (update.getTime() - old.getTime() >= MIN_TIME_NOTIFY);
return isNotifyLocationChange;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean isFinished() {\n \n boolean thereYet = false;\n\n double time = timer.get();\n\n \n if (Math.abs(targetDistance - distanceTraveled) <= 4){\n\n thereYet = true;\n\n // else if(Math.abs(targetDistance - distanceTraveled) <= 24){\n\n //shifter.shiftDown();\n \n //}\n\n \n\n } else if (stopTime <= time - startTime){\n\n thereYet = true;\n }\n SmartDashboard.putNumber(\"Distance Traveled\", distanceTraveled);\n\n return thereYet;\n\n }",
"boolean hasDistance();",
"private boolean isInDistanceLimit(double distance) {\n return distance < distanceLimit;\n }",
"private boolean hasDeviation(Location location){\n\n double dth = 2;\n double d = getDistanceFromNextPoint(location);\n details.setText(details.getText()+\"\\n\"+\"Min Dis :\"+String.valueOf(dth));\n details.setText(details.getText()+\"\\n\"+\"Min_m Dist :\"+String.valueOf(d));\n\n if (d >= dth)\n return true;\n return false;\n }",
"protected boolean isFinished() {\n \tdouble changeInX = targetX - Robot.sensors.getXCoordinate();\n \tdouble changeInY = targetY - Robot.sensors.getYCoordinate();\n \tdouble distance = Math.sqrt(Math.pow(changeInX, 2) + Math.pow(changeInY, 2));\n return distance < 8 || System.currentTimeMillis() >= stopTime;\n }",
"public boolean closeEnoughToAlert(Entity e){\r\n\t\tVector3f distance = new Vector3f();\r\n\t\tdistance.sub(e.position, position);\r\n\t\t\r\n\t\tif(distance.length()<15.0f) return true;\r\n\t\treturn false;\r\n\t}",
"public boolean isDifficult()\n {\n int count = 0;\n for (int i = 1; i < markers.length; i++) {\n if (Math.abs(markers[i] - markers[i-1]) >= 30){\n count++;\n }\n }\n return (count >= 3);\n }",
"protected boolean isFinished() {\n \treturn Robot.lift.isMotionMagicNearTarget() || totalTimer.get() > 5.0;\n }",
"protected boolean isFinished() {\n \t//finish if distance >= requried distance\n return (Robot.drive.leftEncoder.getDistance() >= distance || Robot.drive.rightEncoder.getDistance() >= distance);\n }",
"private boolean isBetterLocation(Location location, Location otherLocation) {\n\t\tfinal int DISTANCE = 200;\n\t\t\n\t // Check whether the new location fix is newer or older\n\t long timeDelta = location.getTime() - otherLocation.getTime();\n\t boolean isSignificantlyNewer = timeDelta > TIME_THRESHOLD;\n\t boolean isSignificantlyOlder = timeDelta < -TIME_THRESHOLD;\n\t boolean isNewer = timeDelta > 0;\n\n\t // If it's been more than two minutes since the current location, use the new location\n\t // because the user has likely moved\n\t if (isSignificantlyNewer) {\n\t return true;\n\t // If the new location is more than two minutes older, it must be worse\n\t } else if (isSignificantlyOlder) {\n\t return false;\n\t }\n\n\t // Check whether the new location fix is more or less accurate\n\t int accuracyDelta = (int) (location.getAccuracy() - otherLocation.getAccuracy());\n\t boolean isLessAccurate = accuracyDelta > 0;\n\t boolean isMoreAccurate = accuracyDelta < 0;\n\t boolean isSignificantlyLessAccurate = DISTANCE > 200;\n\n\t // Check if the old and new location are from the same provider\n\t boolean isFromSameProvider = isSameProvider(location.getProvider(),\n\t otherLocation.getProvider());\n\n\t // Determine location quality using a combination of timeliness and accuracy\n\t if (isMoreAccurate) {\n\t return true;\n\t } else if (isNewer && !isLessAccurate) {\n\t return true;\n\t } else if (isNewer && !isSignificantlyLessAccurate && isFromSameProvider) {\n\t return true;\n\t }\n\t return false;\n\t}",
"public static boolean isBetterLocation(Location location, Location anotherLocation) {\n\t\t\n\t\tif (anotherLocation == null) {\n\t\t\treturn true;\n\t\t}else if (anotherLocation.getAltitude() <= 0){\n\t\t\treturn true;\n\t\t}\n\n\t\t//Comprobar si la nueva ubicación es más o menos reciente que la anterior\n\t\tlong timeDelta = location.getTime() - anotherLocation.getTime();\n\t\tboolean isNewer = timeDelta > 0;\n//\t\tLog.d(log,\"1.1: \"+location.getLatitude() + \",\"+location.getLongitude()+\" AC:\"+location.getAccuracy()+\" aLT:\"+location.getAltitude()+\"\\n\");\n//\t\tLog.d(log,\"1.2: \"+anotherLocation.getLatitude() + \",\"+anotherLocation.getLongitude()+\" AC:\"+anotherLocation.getAccuracy()+\" aLT:\"+anotherLocation.getAltitude()+\"\\n\");\n // Si hace más de dos minutos de la última ubicación ->nueva es mejor\n\t\tif (timeDelta > TWO_MINUTES) {\n//\t\t\tLog.d(log,\"2\");\n\t\t\treturn true;\n\t\t\t//Si la nueva ubicación es antigua -> nueva es peor\n\t\t} else if (timeDelta < -TWO_MINUTES) {\n//\t\t\tLog.d(log,\"3\");\n\t\t\treturn false;\n\t\t}\n\n\n\t\tint accuracyDelta = (int) (location.getAccuracy() - anotherLocation.getAccuracy());\n\t\tboolean isLessAccurate = accuracyDelta > 0;\n\t\tboolean isMoreAccurate = accuracyDelta < 0;\n\t\tboolean isSignificantlyLessAccurate = accuracyDelta > 200;\n\n \n\t\tboolean isFromSameProvider = isSameProvider(location.getProvider(),\n\t\t\t\tanotherLocation.getProvider());\n//\t\tLog.d(log,\"4\");\n\t\t// Determinar la mejor localización según las variables calculadas\n\t\tif (isMoreAccurate) {\n//\t\t\tLog.d(log,\"5\");\n\t\t\treturn true;\n\t\t} else if (isNewer && !isLessAccurate) {\n//\t\t\tLog.d(log,\"6\");\n\t\t\treturn true;\n\t\t} else if (isNewer && !isSignificantlyLessAccurate && isFromSameProvider) {\n//\t\t\tLog.d(log,\"7\");\n\t\t\treturn true;\n\t\t}\n//\t\tLog.d(log,\"8\");\n\t\treturn false;\n\t}",
"public boolean update( double time ){\n\t\tdouble t_left = route.moveConvoy( this, time - time_loc );\n\t\ttime_loc = time;\n\t\tif( t_left > 0 ){\n\t\t\treached_destination();\n\t\t\ttime_loc = time - t_left;\n\t\t\treturn true;\n\t\t}else{\n\t\t\ttime_loc = time;\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean CheckTimeInLevel(){\n \n Long comparetime = ((System.nanoTime() - StartTimeInLevel)/1000000000);\n \n return (comparetime>TILData.critpoints.get((int)speed));\n // stop tetris because this subject is an outlier for this level\n \n \n }",
"@java.lang.Override\n public boolean hasRemainingDistanceMeters() {\n return remainingDistanceMeters_ != null;\n }",
"protected boolean isFinished() {\n \treturn (Robot.sonar.getDistance() <= distance);\n }",
"@Override\n public boolean isFinished() {\n /* Need to convert distance travelled to degrees. The Standard\n Romi Chassis found here, https://www.pololu.com/category/203/romi-chassis-kits,\n has a wheel placement diameter (149 mm) - width of the wheel (8 mm) = 141 mm\n or 5.551 inches. We then take into consideration the width of the tires.\n */\n //double inchPerDegree = Math.PI * 5.551 / 360;\n // Compare distance travelled from start to distance based on degree turn\n\n if(counter == 4) {\n if(m_degrees != 0) {\n return m_drive.getGyroAngleZ() >= m_degrees - 7 && m_drive.getGyroAngleZ() <= m_degrees + 7;\n } else {\n return true;\n }\n } else {\n return false;\n }\n }",
"public boolean isInRangeToRenderDist(double distance) {\n/* 38 */ return (distance < 4096.0D);\n/* */ }",
"public boolean getLocationsFrom(double curLat, double curLon, Double num) {\r\n boolean locationsFromDB = true;\r\n String previousCurLat, previousCurLon;\r\n Log.d(\"Detailed analysis\",\"getting data from db, calling getdata function\");\r\n Cursor rs1 = myDB.getData(curLat, curLon, num);\r\n //In this condition if data not found locationsFromDB is set to false and then returned\r\n if (rs1.getCount() <= 0){\r\n System.out.println(rs1.getCount());\r\n locationsFromDB = false;\r\n Log.d(\"Detailed analysis\",\"Data not found\");\r\n }\r\n //In this condition if data is found need to do the further action of finding the user has moved or not and calculating the direction and distance if user has moved\r\n else {\r\n Log.d(\"Detailed analysis\", \"data found\");\r\n Double[] latArray = new Double[rs1.getCount()];\r\n Double[] lonArray = new Double[rs1.getCount()];\r\n int z = 0;\r\n double distanceBtwLocations = 0;\r\n double finalLat = 0.0;\r\n double finalLon = 0.0;\r\n while (rs1.moveToNext()) {\r\n latArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lat)));\r\n lonArray[z] = Double.parseDouble(rs1.getString(rs1.getColumnIndex(DBHelper.Locations_COLUMN_lon)));\r\n Log.d(\"Detailed Analysis\", latArray[z] +\", \" + lonArray[z] );\r\n double tempDistance = findDistanceBetweenPoints(latArray[z], lonArray[z], Math.round(curLat * 10000.0) / 10000.0, Math.round(curLon * 10000.0) / 10000.0);\r\n System.out.println(tempDistance + \" : tempDistance\");\r\n if (distanceBtwLocations < tempDistance) {\r\n finalLat = latArray[z];\r\n finalLon = lonArray[z];\r\n distanceBtwLocations = tempDistance;\r\n System.out.println(distanceBtwLocations + \" : distanceBtwLocations\");\r\n }\r\n z++;\r\n }\r\n if (distanceBtwLocations < 100 * 1606.34) {\r\n Log.d(\"Detailed Analysis\", \"Distance is not greater than 100 miles\");\r\n previousCurLat = String.valueOf(finalLat);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lat));\r\n previousCurLon = String.valueOf(finalLon);//rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_lon));\r\n Cursor rs = myDB.getData(finalLat, finalLon, num);\r\n rs.moveToFirst();\r\n// condChoice = Integer.parseInt(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_condChoice)));\r\n number = Double.parseDouble(rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_num)));\r\n Log.d(\"Detailed Analysis\", \"number while data found: \" + number);\r\n Log.d(\"Detailed Analysis\", \"Recent number value from getLocationsFrom: \" + number);\r\n Log.d(\"Detailed analysis\", \"Lattittude and Longitude points\" + \" \" + Double.parseDouble(previousCurLat) + \",\" + Double.parseDouble(previousCurLon) + \":\" + Math.round(curLat * 10000.0) / 10000.0 + \",\" + Math.round(curLon * 10000.0) / 10000.0);\r\n //if user has not moved then locationsFromDB is set to true and then returned\r\n if (Double.parseDouble(previousCurLat) == Math.round(curLat * 10000.0) / 10000.0 && Double.parseDouble(previousCurLon) == Math.round(curLon * 10000.0) / 10000.0) {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are same\");\r\n rs.moveToFirst();\r\n locationValues = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n locationsFromDB = true;\r\n } else {\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes are not same\");\r\n float distance = 0;\r\n LatLng movedPoints;\r\n Log.d(\"Detailed analysis\", \"finding distance between lattitudes and longitudes\");\r\n distance = findDistanceBetweenPoints(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon), curLat, curLon);\r\n Log.d(\"Detailed Analysis\", \"distance in meters\" + \" \" + distance);\r\n direction = SphericalUtil.computeHeading(new LatLng(Double.parseDouble(previousCurLat), Double.parseDouble(previousCurLon)), new LatLng(curLat, curLon));\r\n Log.d(\"Detailed Analysis\", \"direction in degrees\" + \" \" + direction);\r\n String values = rs.getString(rs.getColumnIndex(DBHelper.Locations_COLUMN_results));\r\n String valuesArray[] = values.split(\":\");\r\n Log.d(\"Detailed analysis\", \"finding random locations after moving a bit\");\r\n for (int i = 0; i < valuesArray.length; i++) {\r\n String pointsArray[] = valuesArray[i].split(\",\");\r\n Log.d(\"Detailed analysis\", \"lattitudes and longitudes points\" + pointsArray[0] + \" \" + pointsArray[1]);\r\n movedPoints = findMovedPoints(Double.parseDouble(pointsArray[0]), Double.parseDouble(pointsArray[1]), distance, direction);\r\n Log.d(\"Detailed Analysis\", \"latitude and longitude points after moving\" + \" \" + movedPoints);\r\n locationValues = findRandomLocations(movedPoints.latitude, movedPoints.longitude, 1, distance + 1);\r\n }\r\n }\r\n }\r\n else{\r\n locationValues = findRandomLocations(curLat, curLon, num, 30);\r\n }\r\n locationsFromDB = true;\r\n }\r\n return locationsFromDB;\r\n }",
"boolean hasDistanceView();",
"public boolean locationChangedGreaterThan(int metres, Location prevLocation, Location mCurrentLocation) {\n\n float diffDistance = mCurrentLocation.distanceTo(prevLocation);\n if (diffDistance > metres)\n return true;\n return false;\n }",
"public boolean hasRemainingDistanceMeters() {\n return remainingDistanceMetersBuilder_ != null || remainingDistanceMeters_ != null;\n }",
"private boolean linkIsViableWiFiComplex(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link viable debug: no GPS fix.\");\n\t\t\treturn true;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\n\t\t// Too far away (> 70m)\n\t\tif (distance > 70) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link not viable: %.1f meters apart. (>70)\", distance));\n\t\t\treturn false;\n\t\t}\n\n\t\t// Quite close together (< 20 m)\n\t\tif (v1.distanceTo(v2) < 20) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (<20m)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both stationary?\n\t\tif (v1.hasSpeed() && v1.getSpeed() < 2 && v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (low speed)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// One stationary and other moving towards it?\n\t\tif (v1.hasSpeed()\n\t\t\t\t&& v1.getSpeed() < 2\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& ((Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (other approaching)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\t\tif (v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& ((Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (approaching other)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both moving towards each other\n\t\tif (v1.distanceTo(v2) < 35\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& (Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 15)\n\t\t\t\t&& (Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 15)) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (mutual approach)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Moving together?\n\t\tif (v1.distanceTo(v2) < 35\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& v1.hasSpeed()\n\t\t\t\t&& v2.hasSpeed()\n\t\t\t\t&& (Math.abs(v1.getBearing() - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.getBearing() - v2.getBearing()) > 360 - 15)\n\t\t\t\t&& Math.abs(v1.getSpeed() - v2.getSpeed()) < 5) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (moving together)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// log_nodisplay(String.format(\n\t\t// \"Link viable: %.1f meters apart. (moving apart)\", distance));\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link not viable: %.1f meters apart. (moving apart)\", distance));\n\t\treturn false;\n\t}",
"public void recordFlightDistanceInKilometers(int distance) {\n\t\tthis.balance = this.balance + distance;\n\t\tif(this.balance < 10000) this.status = \"Bronze\";\n\t\telse if(this.balance >= 10000) this.status = \"Silver\";\n\t\t\n\t}",
"@Override\n public void onSensorChanged(SensorEvent event) {\n float distance = event.values[0];\n Log.e(\"xuawang\", \"d: \"+distance);\n if(distance > 5) {\n //far\n if(mIsDarkMode){\n darkScreen(false, getWindow());\n am.setMode(AudioManager.MODE_NORMAL);\n am.setSpeakerphoneOn(true);\n am.setBluetoothScoOn(false);\n }\n mIsDarkMode = false;\n } else {\n //close enough\n if(!mIsDarkMode){\n darkScreen(true, getWindow());\n am.setMode(AudioManager.MODE_IN_CALL);\n am.setSpeakerphoneOn(false);\n am.setBluetoothScoOn(true);\n }\n mIsDarkMode = true;\n }\n }",
"public boolean withinRange(double range) {\n running = true;\n while (running) {\n try {\n double distance = ranger.get();\n if (distance < range) {\n notifyObservers(distance);\n return true;\n }\n } catch (IOException ex) {\n return false;\n }\n }\n return false;\n }",
"double getDistanceInMiles();",
"@Override\n protected float duration(final float distance) {\n if (distance < 100) {\n return 0.15f;\n } else if (distance < 200) {\n return 0.3f;\n } else if (distance < 300) {\n return 0.45f;\n } else if (distance < 400) {\n return 0.6f;\n } else if (distance < 500) {\n return 0.75f;\n } else if (distance < 600) {\n return 0.9f;\n }\n return 1.1f;\n }",
"protected boolean isFinished() {\n \tif(timer.get()>.7)\n \t\treturn true;\n \tif(Robot.gearX==0)\n \t\treturn true;\n return (Math.abs(173 - Robot.gearX) <= 5);\n }",
"public void calcDistance() {\n if (DataManager.INSTANCE.getLocation() != null && location.getLength() == 2) {\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n Log.e(\"asdf\", DataManager.INSTANCE.getLocation().getLength() + \"\");\n double dLat = Math.toRadians(location.getLatitude() - DataManager.INSTANCE.getLocation().getLatitude()); // deg2rad below\n double dLon = Math.toRadians(location.getLongitude() - DataManager.INSTANCE.getLocation().getLongitude());\n double a =\n Math.sin(dLat / 2) * Math.sin(dLat / 2) +\n Math.cos(Math.toRadians(location.getLatitude()))\n * Math.cos(Math.toRadians(location.getLatitude()))\n * Math.sin(dLon / 2)\n * Math.sin(dLon / 2);\n double c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n double d = KM_IN_RADIUS * c; // Distance in km\n distance = (float) d;\n } else distance = null;\n }",
"protected boolean isFinished() {\n \tboolean distanceTarget = Robot.driveDistancePID.onRawTarget();\n \t\n \tdouble timeNow = timeSinceInitialized();\n \t\n \treturn (distanceTarget || (timeNow >= expireTime));\n }",
"@Override\n public boolean isFinished() {\n double[] positions = drivetrain.getPositions();\n\n return Math.abs(positions[0] - targetDistance) <= allowedError && Math.abs(positions[1] - targetDistance) <= allowedError;\n }",
"private boolean isFeltEarthquake(double distance, double magnitude) {\n //Ichikawa's original formula is (magnitude=2.7*Math.log(distance/1000)-1.0) \n //with the accuracy of M+-0.5.\n //To raise recall (not precision), magnitude is added by 0.5.\n return ((magnitude+0.5)>(2.7*Math.log10(distance/1000)-1.0));\n }",
"public boolean isOverSpeed(){ return vehicleAvarageSpeed > roadMaxSpeed; }",
"public void checkLavaTileUpdates() {\n // 1 second (1 bn nanoseconds) between each tick\n long timeBetweenTicks = 1000;\n long newTime = System.currentTimeMillis();\n\n // if it has been 1 second: decrement ticks, set a new time and return true\n if (newTime - timeLastTick >= timeBetweenTicks) {\n timeLastTick = newTime;\n updateLavaTiles();\n }\n }",
"public boolean howClose(double a){\r\n\t\t uSensor.ping();\r\n\t\t double range = getRangeInches();\r\n\t\t if (range <= a){\r\n\t\t\t return true;\r\n\t\t }\r\n\t\t else{\r\n\t\t\t return false;\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t\t\r\n\t }",
"@Override\n protected boolean isFinished() {\n return (System.currentTimeMillis() >= thresholdTime || (currentAngle > (totalAngleTurn - 2) && currentAngle < (totalAngleTurn + 2)));\n }",
"@Override\n public void onLocationChanged(Location location) {\n Intent i = new Intent(\"location_update\");\n i.putExtra(\"coordinates\", location.getLongitude() + \" \" + location.getLatitude());\n home_loc = new FileCacher<>(getApplicationContext(), \"myloc.txt\");\n\n if (home_loc.hasCache()) {\n try {\n double lat1 = location.getLatitude();\n double long1 = location.getLongitude();\n String loc = home_loc.readCache();\n String[] coors1 = {Double.toString(long1), Double.toString(lat1)};\n if (loc != null) {\n Log.i(\"loc\", loc);\n coors1 = loc.split(\" \");\n }\n\n double lat2 = Double.parseDouble(coors1[1]);\n double long2 = Double.parseDouble(coors1[0]);\n double dist = distance(lat1, lat2, long1, long2);\n Log.i(\"dist\", Double.toString(dist));\n if (dist > thresh) {\n i.putExtra(\"exceed\", \"true\");\n } else {\n i.putExtra(\"exceed\", \"false\");\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n sendBroadcast(i);\n }",
"@Override\n public boolean isFinished() {\n return !(System.currentTimeMillis() - currentMs < timeMs) &&\n // Then check to see if the lift is in the correct position and for the minimum number of ticks\n Math.abs(Robot.lift.getPID().getSetpoint() - Robot.lift.getEncoderHeight()) < error\n && ++currentCycles >= minDoneCycles;\n }",
"public boolean isWithinDistance(long distance)\n\t{\n\t\treturn (distance >=0 && distance <= radius);\n\t}",
"boolean hasAltitude();",
"public boolean isJam() {\n boolean jam = false;\n if (sensor_door.getDistance(DistanceUnit.CM) < 100) {\n jam = true;\n RobotLog.vv(\"jam?\", \"TRUE\");\n }\n return jam;\n }",
"protected boolean isFinished() {\r\n \tif (manipulator.isHighSwitchPressed() && speed > 0 ||\r\n \t\tmanipulator.isLowSwitchPressed() && speed < 0)\r\n \t\treturn true;\r\n \t\r\n \treturn isTimedOut();\r\n \t\r\n// \tif (targetHeight > startHeight) {\r\n// \t\treturn manipulator.getAverageElevatorHeight() >= targetHeight;\r\n// \t} else {\r\n// \t\treturn manipulator.getAverageElevatorHeight() <= targetHeight;\r\n// \t}\r\n }",
"boolean EsHemisferioSur()\r\n {\r\n if (getLat() < 29.46)\r\n return true;\r\n else\r\n return false;\r\n }",
"@Override\n protected boolean isFinished() {\n return Timer.getFPGATimestamp()-startT >= 1.5;\n }",
"void updateDistance(int distance);",
"private static boolean isDistanceOK(double[] diff) {\n\t\tfor (double d : diff) {\n\t\t\tif (Math.abs(d) > MAX_PIXEL_DISTANCE) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\t\t\tpublic boolean accept(double t) {\n\t\t\t\treturn t>0.5;\r\n\t\t\t}",
"public boolean timeToRefresh() {\n if (tozAdCampaignRetrievalCounter == null) {\n return (true);\n }\n else if (tozAdCampaignRetrievalInterval != 0) {\n tozAdCampaignRetrievalCounter += getSleepInterval();\n\n AppyAdService.getInstance().debugOut(TAG,\"Ad Campaign refresh counter=\"+tozAdCampaignRetrievalCounter);\n if (tozAdCampaignRetrievalCounter >= tozAdCampaignRetrievalInterval) {\n tozAdCampaignRetrievalCounter = 0;\n return (true);\n }\n }\n return (false);\n }",
"public boolean addTime(double time) {\n this.time += time;\n if(time > 0)\n return true;\n else \n return false;\n }",
"public final boolean mo3474a(Long l, int i) {\n Long valueOf = Long.valueOf(System.currentTimeMillis() / 1000);\n return valueOf.longValue() - l.longValue() >= ((long) (i + -60)) || valueOf.longValue() - l.longValue() < 0;\n }",
"private boolean isRelevant(Address address){\n\n return Math.abs(ride.getStartLatitude() - address.getLatitude()) < 2 &&\n Math.abs(ride.getStartLongitude() - address.getLongitude()) < 2;\n }",
"private boolean isAccelerating(SensorEvent event) {\n float gx = event.values[0] / SensorManager.GRAVITY_EARTH;\n float gy = event.values[1] / SensorManager.GRAVITY_EARTH;\n float gz = event.values[2] / SensorManager.GRAVITY_EARTH;\n double squareMagnitude = gx * gx + gy * gy + gz * gz;\n return squareMagnitude > SHAKE_THRESHOLD * SHAKE_THRESHOLD;\n }",
"public boolean isNearCurrentLocation(GeoLocation deviceLocation){\n double latitude = deviceLocation.getLatitude();\n double longitude = deviceLocation.getLongitude();\n\n return feetBetweenCoordinates(this.latitude, this.longitude, latitude, longitude) < CONSTANT_CONSTRAINT;\n }",
"private boolean linkIsViableWiFi(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link not viable: GPS disabled\");\n\t\t\treturn false;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\t\tlong threshold = 70;\n\t\tboolean viable = (distance < threshold);\n\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link %s: %.1f meters apart (threshold %d). v1=%s v2=%s\",\n\t\t\t\tviable ? \"viable\" : \"not viable\", distance, threshold, v1, v2));\n\n\t\treturn viable;\n\t}",
"private boolean shouldApplyGFTGun(double aimedEnemyDistance, int enemiesCount) {\n double totalIncreasePercentageDistance = enemiesCount * PERCENTAGE_INCREASING_DISTANCE_FOR_EACH_ADDITIONAL_ENEMY;\n boolean result = aimedEnemyDistance <= FURTHEST_DISTANCE_TO_FIRE_ONE_ON_ONE * (1 + totalIncreasePercentageDistance);\n return result;\n }",
"public boolean timeUp(){\n return timeAlive == pok.getSpawnTime(); \n }",
"private boolean m29992a(double d) {\n if (this.southwest.longitude <= this.northeast.longitude) {\n return this.southwest.longitude <= d && d <= this.northeast.longitude;\n } else {\n if (this.southwest.longitude > d) {\n if (d > this.northeast.longitude) {\n return false;\n }\n }\n return true;\n }\n }",
"protected boolean isBetterLocation(Location location) {\n if (mCurrent == null) {\n // A new location is always better than no location\n return true;\n }\n \n // Check whether the new location fix is newer or older\n long timeDelta = location.getTime() - mCurrent.getTime();\n boolean isSignificantlyOlder = timeDelta < -MIN_TIME_SHORT;\n boolean isNewer = timeDelta > 0;\n \n // If the new location is more than two minutes older, it must be worse\n if (isSignificantlyOlder) {\n return false;\n }\n \n // Check whether the new location fix is more or less accurate\n int accuracyDelta = (int) (location.getAccuracy() - mCurrent.getAccuracy());\n Log.d(TAG, location.getProvider() + \" accuracy: \" + location.getAccuracy());\n boolean isLessAccurate = accuracyDelta > 0;\n boolean isMoreAccurate = accuracyDelta < 0;\n boolean isSignificantlyLessAccurate = accuracyDelta > MIN_DISTANCE;\n \n // Check if the old and new location are from the same provider\n boolean isFromSameProvider = isSameProvider(location.getProvider(),\n \t\t mCurrent.getProvider());\n \n // Determine location quality using a combination of timeliness and accuracy\n if (isMoreAccurate) {\n return true;\n } else if (isNewer && !isLessAccurate) {\n return true;\n } else if (isNewer && !isSignificantlyLessAccurate && isFromSameProvider) {\n return true;\n }\n return false;\n }",
"public void driveToDistance(double distance) {\n //TODO\n }",
"public boolean canMove() {\n return (Math.abs(getDist())>=50);\n }",
"boolean hasLongitude();",
"boolean hasLongitude();",
"public boolean hasPassed(final long delta){\n return stamp + delta <= System.currentTimeMillis();\n }",
"@Override\n public boolean isMayorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()<this.getValue();\n }",
"boolean hasHasLongitude();",
"private float checkDistance(float d) {\r\n if (d < 0) {\r\n return 0f;\r\n }\r\n if (d > 1) {\r\n return 1f;\r\n }\r\n return d;\r\n }",
"boolean hasDesiredTime();",
"private boolean linkIsViableDSRCComplex(Location v1, AdhocPacket other) {\n\t\tLocation v2 = other.getLocation();\n\n\t\tif (v1 == null || v2 == null) {\n\t\t\tlog_nodisplay(\"Link viable debug: no GPS fix.\");\n\t\t\treturn true;\n\t\t}\n\n\t\tfloat distance = v1.distanceTo(v2);\n\n\t\t// Too far away (> 250m)\n\t\tif (distance > 250) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link not viable: %.1f meters apart. (>250)\", distance));\n\t\t\treturn false;\n\t\t}\n\n\t\t// Quite close together (< 150 m)\n\t\tif (v1.distanceTo(v2) < 150) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (<100m)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both stationary?\n\t\tif (v1.hasSpeed() && v1.getSpeed() < 2 && v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (low speed)\", distance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// One stationary and other moving towards it?\n\t\tif (v1.hasSpeed()\n\t\t\t\t&& v1.getSpeed() < 2\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& ((Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (other approaching)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\t\tif (v2.hasSpeed()\n\t\t\t\t&& v2.getSpeed() < 2\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& ((Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 45) || (Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 45))) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (approaching other)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Both moving towards each other\n\t\tif (v1.distanceTo(v2) < 200\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& (Math.abs(v1.bearingTo(v2) - v1.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.bearingTo(v2) - v1.getBearing()) > 360 - 15)\n\t\t\t\t&& (Math.abs(v2.bearingTo(v1) - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v2.bearingTo(v1) - v2.getBearing()) > 360 - 15)) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (mutual approach)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// Moving together?\n\t\tif (v1.distanceTo(v2) < 200\n\t\t\t\t&& v1.hasBearing()\n\t\t\t\t&& v2.hasBearing()\n\t\t\t\t&& v1.hasSpeed()\n\t\t\t\t&& v2.hasSpeed()\n\t\t\t\t&& (Math.abs(v1.getBearing() - v2.getBearing()) < 15 || Math\n\t\t\t\t\t\t.abs(v1.getBearing() - v2.getBearing()) > 360 - 15)\n\t\t\t\t&& Math.abs(v1.getSpeed() - v2.getSpeed()) < 5) {\n\t\t\tlog_nodisplay(String.format(\n\t\t\t\t\t\"Link viable: %.1f meters apart. (moving together)\",\n\t\t\t\t\tdistance));\n\t\t\treturn true;\n\t\t}\n\n\t\t// log_nodisplay(String.format(\n\t\t// \"Link viable: %.1f meters apart. (moving apart)\", distance));\n\t\tlog_nodisplay(String.format(\n\t\t\t\t\"Link not viable: %.1f meters apart. (moving apart)\", distance));\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\tif(this.motionMagicEndPoint >0) {\n \tif(Math.abs(RobotMap.motorLeftTwo.get() )< 0.09 && Math.abs(RobotMap.motorRightTwo.get() )> -0.09&& Timer.getFPGATimestamp()-starttime > 10) {\n \t\treturn true;\n \t}\n\t}\n\t\n return false;\n }",
"@Override\n\tpublic boolean isDanger() {\n\t\tSharedPreferences prefs = NotificationStack.context.getSharedPreferences(\"com.app.virtualguardian\", Context.MODE_PRIVATE); \n\t\tint distancia=pingGps(Latitud,Longitud);\n\t\tint distanciaAuto=pingCar();\n\t\tint maxPer = Integer.parseInt(prefs.getString(\"distanciaPersonal\",\"3000\")); \n\t\tint maxCar = Integer.parseInt(prefs.getString(\"distanciaAuto\",\"3000\"));\n\t\tif(distancia<=maxPer){\n\t\t\t//avisaamigos\n\t\t\tavisaAmigos(distancia);\n\t\t}\n\t\tif(distanciaAuto<=maxCar){\n\t\t\t//avisaauto\n\t\t\tavisaAuto(distanciaAuto);\n\t\t}\n\t\tif(distancia<=maxPer || distanciaAuto<=maxCar)return true;\n\t\treturn false;\n\t}",
"@OnlyIn(Dist.CLIENT)\n public boolean isInRangeToRenderDist(double distance) {\n double d0 = this.getBoundingBox().getAverageEdgeLength() * 4.0D;\n\n if (Double.isNaN(d0)) {\n d0 = 4.0D;\n }\n\n d0 = d0 * 64.0D;\n return distance < d0 * d0;\n }",
"@GetMapping(\"/geofencingUpdate/{id}\")\n\tpublic boolean getDistanceUpdate(@RequestParam(value = \"teknisiLat\") BigDecimal teknisiLat,\n\t\t\t@RequestParam(value = \"teknisiLong\") BigDecimal teknisiLong, @PathVariable(value = \"id\") Long BranchId) {\n\t\tboolean isNear = false;\n\n\t\tdouble maxDistance = 2000; // toleransi distance 2KM/2000 M\n\n\t\tClientCompanyBranch clientCompanyBranch = clientCompanyBranchRepository.findById(BranchId).get();\n\n\t\tdouble teknisiLatDouble = teknisiLat.doubleValue();\n\t\tdouble companyLatDouble = clientCompanyBranch.getBranchLatitude().doubleValue();\n\t\tdouble teknisiLongDouble = teknisiLong.doubleValue();\n\t\tdouble companyLongDouble = clientCompanyBranch.getBranchLongitude().doubleValue();\n\n\t\tdouble radius = 6371; // Radius of earth\n\n\t\tdouble latDistance = Math.toRadians(companyLatDouble - teknisiLatDouble);\n\t\tdouble longDistance = Math.toRadians(companyLongDouble - teknisiLongDouble);\n\t\tdouble a = Math.sin(latDistance / 2) * Math.sin(latDistance / 2) + Math.cos(Math.toRadians(teknisiLatDouble))\n\t\t\t\t* Math.cos(Math.toRadians(companyLatDouble)) * Math.sin(longDistance / 2) * Math.sin(longDistance / 2);\n\t\tdouble c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));\n\t\tdouble distance = radius * c * 1000; // convert to meters\n\n\t\tdistance = Math.pow(distance, 2);\n\t\tBigDecimal result = new BigDecimal(Math.sqrt(distance));\n\t\tBigDecimal radiusBd = new BigDecimal(maxDistance);\n\n\t\tif (result.compareTo(radiusBd) == -1) {\n\t\t\tisNear = true;\n\t\t} else {\n\t\t\tisNear = false;\n\t\t}\n\t\treturn isNear;\n\t}",
"public boolean hasReachedGoal(List<Integer> collectTime);",
"private boolean validateUserInput(int distance){\n return distance>0\n && distance<Integer.MAX_VALUE;\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"public boolean moveStep() {\n\t\t// TODO: take orientation into account\n\t\t\n\t\t// Work out the distance to the destination\n\t\tDouble2D delta = destination.subtract(getPosition());\n//\t\tSystem.out.println(this.toString() + \"has \" + delta.length() + \" to go.\"); // Debug\n\t \n\t // If this is below a small value, we have arrived, return true\n\t if (delta.length() < 4) return true;\n\t \n\t // FIXME: a better model allow different speed for different vehicle class\n\t // update the speed of vehicle\n\t velocity.setTo(delta.x * 0.004, delta.y * 0.004);;\n\t \n\t // FIXME: avoidance?\n\t \n\t // FIXME: orientation?\n//\t\torientation += angularRate;\n\t // update the vehicle location\n\t\tDouble2D location = _siteState.getArea().getObjectLocation(this);\n\t\t_siteState.getArea().setObjectLocation(this, location.add(new Double2D(velocity)));\n\t \n\t\treturn false;\n\t}",
"private boolean isAtLeastOneMemberNotToFarAwayFromSpawnPoint(final LinkedList<Fightable> kis) {\n\t\t\n\t\tfor (Fightable ki : kis) {\n\t\t\tif (Points.distBetweenTwoPoints(ki.getCoord(), ki.getSpawnPoint()) \n\t\t\t\t\t< ki.getAttributeValue(Attribute.viewRange) * VIEWRANGE_FACTOR) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean close(LatLngPoint a, LatLngPoint b) {\n float lat_actual = Math.abs(a.lat - b.lat);\n float lng_actual = Math.abs(a.lng - b.lng);\n assertTrue(lat_actual < 1);\n assertTrue(lng_actual < 1);\n return true;\n }",
"private void cekStatusGPSpeed() {\n\t\t\n\t\tlokasimanager = (LocationManager) Kecepatan.this.getSystemService(Context.LOCATION_SERVICE);\n\t\t\n\t\tcekGpsNet = new CekGPSNet(Kecepatan.this);\n\t\tisInternet = cekGpsNet.cekStatsInternet();\n\t\tisNetworkNyala = cekGpsNet.cekStatsNetwork();\n\t\tisGPSNyala = cekGpsNet.cekStatsGPS();\n\t\t\n\t\tstatusInternet = cekGpsNet.getKondisiNetwork(isInternet, isNetworkNyala);\n\t\tstatusGPS = cekGpsNet.getKondisiGPS(isGPSNyala);\n\t\t\n\t\tLog.w(\"STATUS GPS INTERNET\", \"GPS \" + statusGPS + \" INTERNET \" + statusInternet);\n\t\t\n\t\tif (statusInternet == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.NETWORK_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListNetwork);\n\t\t\tLog.w(\"Network\", \"Network\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG NETWORK\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tif (statusGPS == CekGPSNet.TAG_NYALA) {\n\t\t\t\n\t\t\tlokasimanager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES , locListGPS);\n\t\t\tLog.w(\"GPS\", \"GPS\");\n\t\t\t\n\t\t\tif (lokasimanager != null) {\n\t\t\t\tlocation = lokasimanager.getLastKnownLocation(LocationManager.GPS_PROVIDER);\n\t\t\t\t\n\t\t\t\tif (location != null) {\n\t\t\t\t\tlatitude = location.getLatitude();\n\t\t\t\t\tlongitude = location.getLongitude();\n\t\t\t\t\t\n\t\t\t\t\tLog.w(\"TAG GPS\", \" \" + latitude + \" \" + longitude);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"public boolean mo23025h() {\n long j = this.f26122b.getLong(\"has.ask.rate.at\", 0);\n boolean z = false;\n int i = (j > 0 ? 1 : (j == 0 ? 0 : -1));\n if (i < 0) {\n return false;\n }\n if (i == 0 || (System.currentTimeMillis() - j) / 1000 > 5000) {\n z = true;\n }\n return z;\n }",
"protected boolean isFinished() {\n\t\treturn Robot.roborio.getYAccelerationComparedToThreshold(threshold, true) || \n\t\t\t\tinitDistance - Robot.drivetrain.getRightEncoderPos(0) < 18 * Drivetrain.kEncoderTicksPerInch; \n\t}",
"protected boolean checkDistance(Creep c, Point p, double range) {\n if (!c.isAlive()) {\n return false;\n }\n return p.distance(c.getPosition()) < range + c.getHalfWidth();\n }",
"public static Boolean inDistance(Player player1, Player player2, int inRounds) {\n int distance = Math.abs(player1.getX() - player2.getX()) + Math.abs(player1.getY() - player2.getY());\n return distance <= (player1.getSpeed() * inRounds) + (player2.getSpeed() * inRounds) && distance != 0;\n }",
"@Override\n protected boolean isFinished() {\n if (_timer.get() > 1.0) {\n return true;\n }\n return false;\n }",
"@Override\n public boolean isFinished() {\n return swerve.getPose().getTranslation().distance(pointOfInterest) <= distance;\n }",
"private boolean validateNewPosition(GeographicPosition newPosition)\n {\n boolean isValid = true;\n if (getPosition().getGeoPosition() != null)\n {\n LatLonAlt current = getPosition().getGeoPosition().getLatLonAlt();\n if (isValid && current.getAltM() < 2000)\n {\n isValid = Math.abs(newPosition.getLatLonAlt().getLatD() - current.getLatD()) < ourZoomedInDegreeTolerance\n && Math.abs(newPosition.getLatLonAlt().getLonD() - current.getLonD()) < ourZoomedInDegreeTolerance;\n }\n if (isValid && (newPosition.getLatLonAlt().getAltM() < 2000 || current.getAltM() < 2000))\n {\n isValid = newPosition.getLatLonAlt().getAltM() - current.getAltM() < 1500;\n }\n }\n return isValid;\n }",
"private void checkChargeTime() {\n\t\tif (elapsedTimeSeconds > chargeTimeP1) {\n\t\t\tplayerCharge.put(dolphinNodeOne, false);\n\t\t}\n\t}",
"@Override\n\tpublic void onSensorChanged(SensorEvent event) {\n\t\tint value = (int) event.values[0];\n\t\tif(0 == value) {\n\t\t\tnearFlag = true;\n\t\t} else if (1 <= value) {\n\t\t\tfarFlag = true;\n\t\t\tvalue = 1;\n\t\t} else {\n\t\t\t// Something is wrong\n\t\t}\n\t\ttip.setText(\"距离值 : \" + event.values[0]);\n\t\tif(nearFlag && farFlag && !pass) {\n\t\t\tpass = true;\n\t\t\t((AutoMMI)getApplication()).recordResult(PSensorTest.TAG, \"\", \"1\");\n\t\t}\n\t}",
"public boolean nearZero() {\n\t\treturn (Math.abs(this.angleDelta) < Constants.Values.Drive.ANGLE_TOLERANCE_STOP && \n\t\t\t\tMath.abs(this.distanceDelta) < Constants.Values.Drive.DISTANCE_TOLERANCE_STOP);\n\t}",
"boolean expendEnergy(double amount) {\r\n if (amount <= energy) {\r\n energy -= amount;\r\n return true;\r\n }\r\n else\r\n return false;\r\n }",
"@Override\n public void onLocationChanged(final Location location) {\n\n if(mLastLocation==null || location.distanceTo(mLastLocation)>getResources().getInteger(R.integer.min_distance_listen))\n {\n new GetNearBy().executePreHeavy();\n }\n\n mLastLocation=location;\n\n android.util.Log.e(\"onLocationChanged\",mLastLocation.getLatitude()+\" - \"+mLastLocation.getLongitude());\n\n\n\n }",
"@Override\n public boolean isMenorAt(UnitTime ut) {\n return ((LongUnitTime)ut).getValue()>this.getValue(); \n }",
"@Override\n public void onLocationChanged(Location location) {\n currentLat = location.getLatitude();\n currentLong = location.getLongitude();\n\n if (location != null) {\n CLocation myLocation = new CLocation(location, true);\n this.updateSpeed(myLocation);\n }\n\n// String originUpdate = getAddressFromLatLng(currentLat, currentLong);\n// //Use Geocoder class to calculate minutes walking from current location.\n// String url = \"https://maps.googleapis.com/maps/api/distancematrix/json?origins=\" + originUpdate + \"&destinations=\" + destinationPassed + \"&mode=walking&language=fr-FR&avoid=tolls&key=AIzaSyBCv-Rz8niwSqwicymjqs_iKinNNsVBAdQ\";\n// Log.d(\"url string\", url);\n// geoTask.execute(url);\n }",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"boolean hasSpeed();",
"@Override\n public float distanceAdjacent(int x1, int y1, int x2, int y2) {\n float duration = 0;\n\n if (x1 == x2 || y1 == y2) {\n MapTile.Instance fromTile = getTileData(x1, y1);\n MapTile.Instance toTile = getTileData(x2, y2);\n assert fromTile != null && toTile != null;\n\n Direction move = Direction.get(x2 - x1, y2 - y1);\n\n int fromHeight = fromTile.heightOf(move);\n int toHeight = toTile.heightOf(move.inverse());\n\n // steepness\n float t1inc = (fromHeight - fromTile.getHeight()) / (TILE_SIZE / 2);\n float t2inc = (toHeight - toTile.getHeight()) / (TILE_SIZE / 2);\n\n // actual duration of walking\n float walkSpeedT1 = (1f / hypoLength(t1inc)) * walkSpeed;\n float walkSpeedT2 = (1f / hypoLength(t2inc)) * walkSpeed;\n\n // duration += walkspeed(steepness_1) * dist + walkspeed(steepness_2) * dist\n duration += (walkSpeedT1 + walkSpeedT2) * TILE_SIZE;\n\n // height difference on the sides of the tiles\n float cliffHeight = (toHeight - fromHeight) * TILE_SIZE_Z;\n\n // climbing if more than 'an acceptable height'\n if (cliffHeight > 0) {\n duration += (cliffHeight / climbSpeed);\n }\n\n } else {\n // TODO allow diagonal tracing\n Logger.WARN.print(String.format(\n \"Pathfinding (%s) asked for non-adjacent tiles (%d, %d) (%d, %d)\",\n getClass(), x1, y1, x2, y2\n ));\n\n return Float.POSITIVE_INFINITY;\n }\n\n return duration;\n }"
] | [
"0.6671038",
"0.65811986",
"0.6331327",
"0.62904507",
"0.61218256",
"0.61002195",
"0.592034",
"0.58820254",
"0.58818614",
"0.5839883",
"0.5837194",
"0.58312744",
"0.57940805",
"0.57909656",
"0.577803",
"0.574542",
"0.5722032",
"0.5633868",
"0.5613757",
"0.5611128",
"0.56051326",
"0.55950755",
"0.55794346",
"0.5578142",
"0.55661076",
"0.5556369",
"0.5537889",
"0.5511565",
"0.5509657",
"0.5506139",
"0.55023575",
"0.54957604",
"0.5487763",
"0.54711974",
"0.5460687",
"0.5454632",
"0.54392594",
"0.54269946",
"0.5421944",
"0.54197496",
"0.54137033",
"0.5409513",
"0.54045326",
"0.54003257",
"0.538919",
"0.5387095",
"0.5385708",
"0.5371444",
"0.5369793",
"0.5369238",
"0.5351905",
"0.53472996",
"0.53443897",
"0.5342404",
"0.5340552",
"0.53346634",
"0.53321344",
"0.5331816",
"0.5324306",
"0.5319175",
"0.5315612",
"0.5315612",
"0.5306173",
"0.52988464",
"0.5291109",
"0.52793115",
"0.52775675",
"0.5277014",
"0.5269014",
"0.5268024",
"0.5259653",
"0.5259084",
"0.52561736",
"0.5252258",
"0.5249101",
"0.52438694",
"0.5241083",
"0.52409124",
"0.5240412",
"0.52353996",
"0.52346176",
"0.5224714",
"0.52233213",
"0.5217083",
"0.5216775",
"0.5209929",
"0.5207393",
"0.5203624",
"0.5193076",
"0.5192072",
"0.51889837",
"0.5188594",
"0.51755327",
"0.51754236",
"0.51754236",
"0.51754236",
"0.51754236",
"0.51754236",
"0.51754236",
"0.5171377"
] | 0.5282513 | 65 |
/ access modifiers changed from: protected | public void attach(BaseRecyclerChildViewModel bVar) {
bVar.attachParent(this);
this.mChildSet.add(bVar);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private abstract void privateabstract();",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\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}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void smell() {\n\t\t\n\t}",
"public abstract Object mo26777y();",
"protected void h() {}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"protected abstract Set method_1559();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public abstract void mo70713b();",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"protected Doodler() {\n\t}",
"public abstract void mo27386d();",
"@Override\n\tprotected void getExras() {\n\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}",
"private PropertyAccess() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public abstract void mo56925d();",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"public abstract void mo27385c();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void someUtilityMethod() {\n }",
"private void someUtilityMethod() {\n }",
"public abstract void mo30696a();",
"abstract int pregnancy();",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void leti() \n\t{\n\t}",
"private TMCourse() {\n\t}",
"public abstract void mo35054b();",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"private Infer() {\n\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public final void mo51373a() {\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"protected FanisamBato(){\n\t}",
"public abstract Object mo1771a();",
"public abstract void m15813a();",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void get() {}",
"@Override\n\tpublic void dibuja() {\n\t\t\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 }",
"private Get() {}",
"private Get() {}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public abstract void mo27464a();",
"public abstract String mo41079d();",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"public abstract void mo102899a();",
"@SuppressWarnings(\"unused\")\n private void _read() {\n }",
"public abstract void mo42329d();",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"public void method_4270() {}",
"public abstract void mo6549b();",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"protected void init() {\n // to override and use this method\n }"
] | [
"0.7375736",
"0.7042321",
"0.6922649",
"0.6909494",
"0.68470824",
"0.6830288",
"0.68062353",
"0.6583185",
"0.6539446",
"0.65011257",
"0.64917654",
"0.64917654",
"0.64733833",
"0.6438831",
"0.64330196",
"0.64330196",
"0.64295477",
"0.6426414",
"0.6420484",
"0.64083177",
"0.6406691",
"0.6402136",
"0.6400287",
"0.63977665",
"0.63784796",
"0.6373787",
"0.63716805",
"0.63680965",
"0.6353791",
"0.63344383",
"0.6327005",
"0.6327005",
"0.63259363",
"0.63079315",
"0.6279023",
"0.6271251",
"0.62518364",
"0.62254924",
"0.62218183",
"0.6213994",
"0.6204108",
"0.6195944",
"0.61826825",
"0.617686",
"0.6158371",
"0.6138765",
"0.61224854",
"0.6119267",
"0.6119013",
"0.61006695",
"0.60922325",
"0.60922325",
"0.6086324",
"0.6083917",
"0.607071",
"0.6070383",
"0.6067458",
"0.60568124",
"0.6047576",
"0.6047091",
"0.60342956",
"0.6031699",
"0.6026248",
"0.6019563",
"0.60169774",
"0.6014913",
"0.6011912",
"0.59969044",
"0.59951806",
"0.5994921",
"0.599172",
"0.59913194",
"0.5985337",
"0.59844744",
"0.59678656",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.5966894",
"0.59647757",
"0.59647757",
"0.59616375",
"0.5956373",
"0.5952514",
"0.59497356",
"0.59454703",
"0.5941018",
"0.5934147",
"0.5933801",
"0.59318185",
"0.5931161",
"0.5929297",
"0.5926942",
"0.5925829",
"0.5924853",
"0.5923296",
"0.5922199",
"0.59202504",
"0.5918595"
] | 0.0 | -1 |
Type your code here | public static void main (String[] args){
Scanner s=new Scanner(System.in);
int n=s.nextInt();
if(n%2==1)
{
n=n/2;
n++;
}
else
{
n=n/2;
}
for(int i=1;i<=n;i++)
{
for(int k=1;k<=i-1;k++)
{
System.out.print(" ");
}
for(int j=1;j<=((2*n-1)-2*(i-1));j++)
{
if(j==1||j==((2*n-1)-2*(i-1)))
System.out.print("*");
else
System.out.print(" ");
}
System.out.println();
}
for(int i=2;i<=n;i++)
{
for(int k=1;k<=n-i;k++)
{
System.out.print(" ");
}
for(int j=1;j<i*2;j++)
{
if(j==1||j==(i*2-1))
System.out.print("*");
else
System.out.print(" ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void generateCode()\n {\n \n }",
"@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}",
"@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}",
"CD withCode();",
"Code getCode();",
"private void searchCode() {\n }",
"public void genCode(CodeFile code) {\n\t\t\n\t}",
"public interface Code {\n //运行结果编号\n Integer getCode();\n //运行结果描述\n String getDescription();\n String toString();\n\n}",
"public void Tyre() {\n\t\t\r\n\t}",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"String getCode();",
"public abstract int code();",
"public void mo38117a() {\n }",
"public abstract String getFullCode();",
"public void generateCode() {\n new CodeGenerator(data).generateCode();\n }",
"private void yy() {\n\n\t}",
"public void mo5382o() {\n }",
"public static void main(String[] args) {\n\t\tBlockCode blockcode = new BlockCode();\n\t\t//blockcode.printName();\n\t\t\n\t\t}",
"public void exec(PyObject code) {\n }",
"java.lang.String getCode();",
"java.lang.String getCode();",
"public interface CodeFormatter\n{\n}",
"public String getCode();",
"public String getCode();",
"void setCode(String code);",
"@Override public boolean isCodeTask() { return true; }",
"public static void main(String[] args) {\n\t// write your code here\n }",
"public String CodeInterpreter() {\n\n\t\tString timeStamp = new SimpleDateFormat(\"yyyyMMdd_HHmmss\").format(Calendar.getInstance().getTime());\n\t\treturn \"DA\" + \"_\" + timeStamp;\n\t}",
"public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}",
"Editor mo117962b();",
"public void code (String code) throws LuchthavenException\r\n\t{\r\n\t\tluchthaven.setCode(code);\r\n\t}",
"public void mo9241ay() {\n }",
"public void mo9848a() {\n }",
"int getCode();",
"int getCode();",
"int getCode();",
"Programming(){\n\t}",
"private List<String> runCode(JasminBytecode code) throws AssembleException {\n // Turn the Jasmin code into a (hopefully) working class file\n if (code == null) {\n throw new AssembleException(\"No valid Jasmin code to assemble\");\n }\n AssembledClass aClass = AssembledClass.assemble(code);\n // Run the class and return the output\n SandBox s = new SandBox();\n s.runClass(aClass);\n return s.getOutput();\n }",
"abstract protected void pre(int code);",
"public Code() {\n\t}",
"public void mo115188a() {\n }",
"public void mo5248a() {\n }",
"public void createCode(){\n\t\tsc = animationScript.newSourceCode(new Coordinates(10, 60), \"sourceCode\",\r\n\t\t\t\t\t\t null, AnimProps.SC_PROPS);\r\n\t\t \r\n\t\t// Add the lines to the SourceCode object.\r\n\t\t// Line, name, indentation, display dealy\r\n\t\tsc.addCodeLine(\"1. Berechne für jede (aktive) Zeile und Spalte der Kostenmatrix\", null, 0, null); // 0\r\n\t\tsc.addCodeLine(\" die Differenz aus dem kleinsten (blau) und zweit-kleinsten (lila)\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Element der entsprechenden Zeile/ Spalte.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"2. Wähle die Zeile oder Spalte (grün) aus bei der sich die größte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" Differenz (blau) ergab.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"3. Das kleinste Element der entsprechenden Spalte\", null, 0, null); \r\n\t\tsc.addCodeLine(\" (bzw. Zeile) gibt nun die Stelle an, welche im\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Transporttableau berechnet wird (blau).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"4. Nun wird der kleinere Wert von Angebots- und\", null, 0, null); // 4\r\n\t\tsc.addCodeLine(\" Nachfragevektor im Tableau eingetragen.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"5. Anschließend wird der eingetragene Wert von den Rändern\", null, 0, null); // 5\r\n\t\tsc.addCodeLine(\" abgezogen (mindestens einer muss 0 werden). \", null, 0, null);\r\n\t\tsc.addCodeLine(\"6. Ist nun der Wert im Nachfragevektor Null so markiere\", null, 0, null); // 6\r\n\t\tsc.addCodeLine(\" die entsprechende Spalte in der Kostenmatrix. Diese\", null, 0, null);\r\n\t\tsc.addCodeLine(\" wird nun nicht mehr beachtet (rot). Ist der Wert des\", null, 0, null);\r\n\t\tsc.addCodeLine(\" Angebotsvektors Null markiere die Zeile der Kostenmatrix.\", null, 0, null);\r\n\t\tsc.addCodeLine(\"7. Der Algorithmus wird beendet, falls lediglich eine Zeile oder\", null, 0, null); // 8\r\n\t\tsc.addCodeLine(\" Spalte der Kostenmatrix unmarkiert ist (eines reicht aus).\", null, 0, null);\r\n\t\tsc.addCodeLine(\"8 . Der entsprechenden Zeile bzw. Spalte im Transporttableau werden\", null, 0, null); // 9\t\t \r\n\t\tsc.addCodeLine(\" die restlichen Angebots- und Nachfragemengen zugeordnet.\", null, 0, null);\r\n\t\t\r\n\t}",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"CodeType createCodeType();",
"public void printCode( String value )\r\n\t{\r\n\t\tSystem.out.println(\"A suitable number for this : \");\r\n\t\tSystem.out.println(value);\r\n\t}",
"public void mo3749d() {\n }",
"public void mo9233aH() {\n }",
"public void mo21785J() {\n }",
"public void mo8738a() {\n }",
"public void mo55254a() {\n }",
"public void mo6944a() {\n }",
"public void mo12930a() {\n }",
"@Override\n public String getCode(String name) {\n String type = keywords.stream()\n .map(keyword -> keyword.getCode())\n .collect(Collectors.joining(\" \"));\n\n String varName = name == null ? \"\" : \" \" + name;\n return type + varName;\n /*\n if (name == null) {\n return type;\n }\n \n return type + \" \" + name;\n */\n }",
"public void mo4359a() {\n }",
"private void strin() {\n\n\t}",
"public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }",
"public void ganar() {\n // TODO implement here\n }",
"public void mo21795T() {\n }",
"@Override\r\n\tpublic void program() {\n\t\tSystem.out.println(\"我是一名Java工程师\");\r\n\t}",
"public void mo97908d() {\n }",
"public void mo21791P() {\n }",
"public void mo3376r() {\n }",
"void mo67924c();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"void mo84655a();",
"void mo57278c();",
"public static void main(String[] args) {\n\t\tSystem.out.print(\"This is added code\");\n\t\tSystem.out.print(\"This is added code from GitHub\");\n\n\t}",
"public void mo21782G() {\n }",
"public void mo44053a() {\n }",
"CodeBlock createCodeBlock();",
"@Override\n\tpublic void orgasm() {\n\t\t\n\t}",
"public void mo21789N() {\n }",
"boolean hasCode();",
"boolean hasCode();",
"boolean hasCode();",
"public void mo5097b() {\n }",
"public static void main(String[] args) {\n //Ersetzt jetzt mal unseren Parser, Stell Dir vor\n // das Ding liest das Beispiel da oben ^^.\n final StatementNode[] statementNodes = readStatements();\n \n //Zustände:\n // - FillSymbolTable (was für Symbole [variablen, ...] gibt es)\n // - TypInferenz (Was für Typen haben die Expressions und sind die eingaben semantisch korrekt)\n // - CodeGenerierung oder Ausführung (ersetzen wir mit \"schreibe die Werte aller Variablen nach Ende der Ausführung\")\n \n \n final SymbolTabelle symbolTabelle = new SymbolTabelle();\n //IDEE 2:\n //Ich gebe Statements und Expressions nur eine Methode mit Visitor als Callback\n final StatementVisitorSymbolTabelle statementVisitorSymbolTabelle = new StatementVisitorSymbolTabelle(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorSymbolTabelle);\n }\n \n final StatementVisitorTypInferenz statementVisitorTypInferenz = new StatementVisitorTypInferenz(symbolTabelle);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorTypInferenz);\n }\n \n PseudoLaufContext laufContext = new PseudoLaufContext();\n final StatementVisitorCodeGen statementVisitorCodeGen = new StatementVisitorCodeGen(laufContext);\n for(StatementNode statementNode : statementNodes) {\n statementNode.accept(statementVisitorCodeGen);\n }\n \n laufContext.druckeVariablen();\n \n //Zusammenfassung:\n //Reduktion des Problems darauf, den Code nur noch von einem Abhängig zu machen\n //Jetzt nur noch abhängig vom Typ des Statements\n \n \n //Problem hierbei:\n //Ich muss selbst angeben, in welchem Zustand ich bin\n //Code-Duplizierung\n }",
"public static void main() {\n \n }",
"public void display2(){\n System.out.println(\"codegym\");\n }",
"public void mo56167c() {\n }",
"void program() {\n\n }",
"public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}",
"public void mo5099c() {\n }",
"public void addToCode(String code){\r\n\t\tiCode+=getTabs()+code+\"\\n\";\r\n\t}",
"public interface Code {\r\n \r\n /**\r\n * Called to execute the \"next\" line of code in this\r\n * virtual hardware component.\r\n * \r\n * This can be any action (or sequence of actions) as desired by\r\n * the implementation to simulate hardware functions.\r\n * \r\n * @return true when this \"process\" wants to exit.\r\n */\r\n public boolean executeNext();\r\n \r\n /**\r\n * Called when this instruction set should terminate execution permanently.\r\n * This method SHOULD NOT modify the process Identifier or CPU. It should\r\n * only shut down any processing needs and reset internal data if this\r\n * process is executed again.\r\n */\r\n public void shutdown();\r\n\r\n /**\r\n * Get the program name.\r\n */\r\n public String getName();\r\n \r\n // </editor-fold>\r\n }",
"@Override\n\tpublic void compile(CodeBlock c, CompilerEnvironment environment) {\n\n\t}",
"void pramitiTechTutorials() {\n\t\n}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Hello\");\r\n\t\tSystem.out.println(\" code\");\r\n\t\tSystem.out.println(\" added one more line of code\");\r\n\t\t;\r\n\r\n\t}",
"public static String compileAndRun(String code) throws Exception {\n\t\treturn run(LavaCompiler.compile(code));\n\t}",
"public String getCode(ClassDecl cl)\r\n\t{\r\n\t\tString testcode = \"#Region \\\"Testing code generated by KawigiEdit\\\"\\n\";\r\n\t\ttestcode += \"Module MainModule\\n\";\r\n\t\ttestcode += \"\\tSub Main()\\n\";\r\n\t\tEditorDataType returnType = cl.getMethod().getReturnType();\r\n\t\ttestcode += \"\\t\\tDim Errors As Boolean = False\\n\";\r\n\t\ttestcode += \"\\t\\tDim Answer, DesiredAnswer As \" + EditorLanguage.VB.getName(returnType) + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Obj As \" + cl.getName() + \"\\n\";\r\n\t\ttestcode += \"\\t\\tDim Time As DateTime\\n\";\r\n\t\tif (returnType.isArrayType())\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tDim Same As Boolean\\n\";\r\n\t\t\ttestcode += \"\\t\\tDim i As Integer\\n\";\r\n\t\t}\r\n\t\tboolean stringType = returnType.isType(EditorDataType.String);\r\n\t\tEditorDataType[] paramTypes = cl.getMethod().getParamTypes();\r\n\t\ttestcode += \"\\t\\t<%:start-tests%>\\n\";\r\n\t\tfor (int i=0; i<cl.countTests(); i++)\r\n\t\t{\r\n\t\t\ttestcode += \"\\t\\tObj = New \" + cl.getName() + \"()\\n\";\r\n\t\t\ttestcode += \"\\t\\tTime = DateTime.Now\\n\";\r\n\t\t\ttestcode += \"\\t\\tAnswer = Obj.\" + cl.getMethod().getName() + \"(\" + toTest(cl.getTest(i).getParameters(), paramTypes) + \")\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Time: \\\" & (DateTime.Now.Subtract(Time)).TotalSeconds & \\\" seconds\\\")\\n\";\r\n\t\t\ttestcode += \"\\t\\tDesiredAnswer = \" + translateObject(returnType, cl.getTest(i).getAnswer()) + \"\\n\";\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Your Answer:\\\")\\n\";\r\n\t\t\tif (returnType.isArrayType())\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Answer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"Answer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To Answer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\"\\t, \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.Write(\\\"{ \\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (DesiredAnswer.Length > 0) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.Write(\" + (stringType ? \"\\\"\\\"\\\"\\\" & \" : \"\") + \"DesiredAnswer(0)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 1 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tConsole.Write(\\\", \" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & DesiredAnswer(i)\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\" }\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"}\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tSame = (Answer.Length = DesiredAnswer.Length)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf (Same)\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tFor i = 0 To DesiredAnswer.Length - 1\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tIf Answer(i) <> DesiredAnswer(i) Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\t\\tSame = False\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tNext\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Same Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") + \"\\\" & Answer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"Desired Answer:\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tConsole.WriteLine(\\\"\\t\" + (stringType ? \"\\\"\\\"\" : \"\") +\"\\\" & DesiredAnswer\" + (stringType ? \" & \\\"\\\"\\\"\\\"\" : \"\") + \")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tIf Answer = DesiredAnswer Then\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Match :-)\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"DOESN'T MATCH!!!!\\\")\\n\";\r\n\t\t\t\ttestcode += \"\\t\\t\\tErrors = True\\n\";\r\n\t\t\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\t\t}\r\n\t\t\ttestcode += \"\\t\\tConsole.WriteLine()\\n\";\r\n\t\t}\r\n\t\ttestcode += \"\\t\\t<%:end-tests%>\\n\";\r\n\t\ttestcode += \"\\t\\t\\n\\t\\tIf Errors Then\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"Some of the test cases had errors :-(\\\")\\n\";\r\n\t\ttestcode += \"\\t\\tElse\\n\";\r\n\t\ttestcode += \"\\t\\t\\tConsole.WriteLine(\\\"You're a stud (at least on the test data)! :-D \\\")\\n\";\r\n\t\ttestcode += \"\\t\\tEnd If\\n\";\r\n\t\ttestcode += \"\\tEnd Sub\\n\";\r\n\t\ttestcode += \"End Module\\n\";\r\n\t\ttestcode += \"#End Region\\n\";\r\n\t\treturn testcode;\r\n\t}",
"private GenericVar run(String code) throws InterpreterException {\n\t\treturn evaluate(code);\n\t}"
] | [
"0.67529005",
"0.65678793",
"0.641418",
"0.6334503",
"0.6230944",
"0.62127316",
"0.6207898",
"0.60968196",
"0.6072467",
"0.606349",
"0.606349",
"0.606349",
"0.606349",
"0.606349",
"0.59795964",
"0.58908486",
"0.58157927",
"0.5754923",
"0.57194966",
"0.57184726",
"0.5709211",
"0.5692097",
"0.5684853",
"0.5684853",
"0.56823534",
"0.56733847",
"0.56733847",
"0.5671409",
"0.5662773",
"0.5638152",
"0.5632804",
"0.56146115",
"0.5611494",
"0.5600294",
"0.55993855",
"0.5585444",
"0.557892",
"0.557892",
"0.557892",
"0.5578722",
"0.5576019",
"0.5574037",
"0.5531144",
"0.55272293",
"0.5518262",
"0.55119634",
"0.55099744",
"0.5506902",
"0.5502219",
"0.54998595",
"0.54769903",
"0.547528",
"0.54718536",
"0.54693407",
"0.5468204",
"0.5467253",
"0.5465737",
"0.5460886",
"0.5458771",
"0.5453637",
"0.5448387",
"0.54482716",
"0.5444913",
"0.5442078",
"0.5436509",
"0.5435591",
"0.5432728",
"0.5422528",
"0.5422528",
"0.5422528",
"0.5422528",
"0.5422528",
"0.5422528",
"0.5422528",
"0.5422326",
"0.54217345",
"0.5416883",
"0.5415361",
"0.5414889",
"0.5414248",
"0.5411796",
"0.5411148",
"0.54099554",
"0.54099554",
"0.54099554",
"0.5398955",
"0.53947574",
"0.53902584",
"0.5384459",
"0.5382319",
"0.53795886",
"0.53692216",
"0.5366011",
"0.536356",
"0.5353671",
"0.53508645",
"0.53495604",
"0.5349039",
"0.5348749",
"0.53385496",
"0.5333768"
] | 0.0 | -1 |
'append()' will append data at last position. | public void append(int data) {
// created object of 'Node' class
Node node = new Node();
// initializing 'node' of the linked-list
node.data = data;
node.next = null; // at the time of node creation, the 'next' not refer to any other node
// if the linked-list is empty which means 'head' is refer to 'null'
if (head == null) {
//Creating a first or head node
head = node;
} else {
Node n = head; // n is our temporary node
while (n.next != null) {
n = n.next; // jumping to next node as 'n.next' contains next node address
}
n.next = node;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void append(int data, int row, int column);",
"Position<T> addLast(T data);",
"public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }",
"public void append(Object item);",
"public void append(T element);",
"public void append(T element);",
"public void appendData(T data){\n Node<T> newEnd = new Node<>(data); // new Node referenced by newEnd\n Node<T> thisNode = this; // grab this Node\n\n // traverse list and append to the tail\n while (thisNode.next != null){\n thisNode = thisNode.next;\n }\n thisNode.next = newEnd;\n }",
"public void appendToEnd(T data){\n\t Node end = new Node(data);\n\t Node current = this;\n\t \n\t while(current.next != null){\n\t current = current.next;\n\t }\n\t \n\t current.next = end;\n\t //System.out.println(current.next.data);\n\t }",
"void append(E[] elements, int off, int len);",
"public void append(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head == null) {\n head = newNode;\n } else {\n Node<T> iterator = head;\n while (iterator.getNext() != null) {\n iterator = iterator.getNext();\n }\n iterator.setNext(newNode);\n }\n numElement++;\n }",
"void append(E data) {\n Node<E> node = new Node<>(data);\n if (isNull(head)) {\n head = node;\n return;\n }\n\n Node<E> last = head;\n while (nonNull(last.next)) {\n last = last.next;\n }\n\n last.next = node;\n node.previous = last;\n }",
"public void addLast(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}",
"void append(E element);",
"public void append(Integer data) {\n\t\t// Construct a node tmp and make null as the next pointer:Step1\n\t\tListNode tmp = new ListNode(data, null);\n\n\t\tif (!isEmpty()) {\n\t\t\t// make next pointer of tail as tmp :Step2\n\t\t\t tail.next = tmp;// tmp is new tail\n\t\t\t\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element \n\t\t\t//and is new tail as wells as head[see next statement executed]\t\n\t\t\tthis.head = tmp;\n\t\t}\n\t\tthis.tail = tmp; // now make tmp the new tail:Step2\n\t\n\t\tlength++;\n\t}",
"@Override\n\tpublic void append(Object data) throws IOException {\n\n\t\tNode newNode = new Node(data);\n\t\tif (head == null) {\n\t\t\thead = newNode;\n\t\t} else {\n\t\t\tNode currentNode = head;\n\t\t\t\n\t\t\twhile (currentNode.getNext() != null) {\n\t\t\t\tcurrentNode = currentNode.getNext();\t\n\t\t\t}\n\t\t\t\n\n\t\t\tFileOutputStream fos = new FileOutputStream(\"res/test.dat\");\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\n\t\t\toos.writeObject(currentNode.getElement()); \n\t\t\t\n\t\t\toos.reset();\n\n\t\t\toos.close();\n\t\t\tfos.close();\n\t\t\t\n\t\t\tcurrentNode.setNext(newNode);\n\n\t\t}\n\t\tthis.size++;\t\n\t\n\n\t}",
"public void append(Object data){\r\n try{\r\n throw new LinkedListException(); //cannot be used so throwing an exception\r\n }\r\n catch (Exception LinkedListException){\r\n System.out.println(\"Not valid method\");\r\n }\r\n }",
"public PersistentLinkedList<T> addLast(T data) {\n return add(this.treeSize, data);\n }",
"void append(SNode node);",
"public void append(int new_data) \r\n\t\t{ \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t \r\n\t\t if (head == null) \r\n\t\t { \r\n\t\t head = new Node(new_data); \r\n\t\t return; \r\n\t\t } \r\n\t\t \r\n\t\t new_node.next = null; \r\n\t\t \r\n\t\t Node last = head; \r\n\t\t while (last.next != null) \r\n\t\t last = last.next; \r\n\t\t \r\n\t\t last.next = new_node; \r\n\t\t return; \r\n\t\t}",
"void append(int new_data)\n {\n /* 1. allocate node\n * 2. put in the data */\n Node new_node = new Node(new_data);\n\n Node last = head;/* used in step 5*/\n\n /* 3. This new node is going to be the last node, so\n * make next of it as NULL*/\n new_node.setNext(null);\n\n /* 4. If the Linked List is empty, then make the new\n * node as head */\n if(head == null)\n {\n new_node.setPrev(null);\n head = new_node;\n return;\n }\n\n /* 5. Else traverse till the last node */\n while(last.getNext() != null)\n last = last.getNext();\n\n /* 6. Change the next of last node */\n last.setNext(new_node);\n\n /* 7. Make last node as previous of new node */\n new_node.setPrev(last);\n }",
"void append(int new_data) {\n\t\tNode new_node = new Node(new_data);\n\t\tNode last = head;\n\t\tnew_node.next = null;\n\t\tif (head == null) {\n\t\t\tnew_node.prev = null;\n\t\t\thead = new_node;\n\t\t\treturn;\n\t\t}\n\t\twhile (last.next != null)\n\t\t\tlast = last.next;\n\t\tlast.next = new_node;\n\t\tnew_node.prev = last;\n\t}",
"public void addLast(Object data) {\n Node newNode = new Node(data);\n if(isEmpty()) {\n addFirst(data);\n } else {\n tail.next = newNode;\n tail = newNode;\n size ++;\n }\n }",
"void append(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (back == null) \n\t\t{\n\t\t\tfront = back = temp; //if the list is empty, then the new node temp becomes the front and back of the list as its the only node within the list\n\t\t\tlength++;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tback.next = temp; //the next node after the back node becomes the new node temp since it was inserted into the back of the list\n\t\t\ttemp.prev = back; //the new node temp's previous node becomes the back since temp is now the new back of the list\n\t\t\tback = temp; //the new back of the list now becomes the new node temp\n\t\t\tlength++;\n\t\t}\n\t}",
"@Override\n public void addLast(E e) throws IllegalStateException {\n checkSize();\n data[size] = e;\n size++;\n }",
"void append(E[] elements);",
"@Override\r\n\tpublic void addLast(E e) {\n\t\t\r\n\t}",
"public void addLast(String data){\n tail = new Node(data, null, tail);\n Node second = tail.prev;\n if(second!=null)\n second.next = tail;\n else\n head = tail;\n size++;\n }",
"private void append(byte[] array, int off, int len) throws IOException {\n if(buffer == null) {\n buffer = allocator.allocate(limit);\n }\n buffer.append(array, off, len);\n }",
"@Override\r\n public boolean appendEnd(final Appendable out , final Object... OtherData) {\r\n return false;\r\n }",
"void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}",
"public void insertLast( T data ) {\n\t\t//make a new node \n\t\tLinkedListNode<T> lastNode = new LinkedListNode<T>();\n\t\t//if somebody accidently called insert after with an empty list\n\n\t\t///add data to this node\n\t\tlastNode.setData(data);\t\n\t\t//invoke insertfirstnode to link up the new node\n\t\tinsertAfter (getLastNode(), data);\n\t\t\n\t}",
"@Override\n\tpublic Position<E> addLast(E e) {\n\t\treturn addBetween(tail.prev, tail, e);\n\t}",
"@Override\n public void addToEnd(T data){\n Node<T> dataNode = new Node<>();\n\n dataNode.setData(data);\n dataNode.setNext(null);\n\n Node<T> tempHead = this.head;\n while(tempHead.getNext() != null) {\n tempHead = tempHead.getNext();\n }\n\n tempHead.setNext(dataNode);\n }",
"public void append(String op) throws Exception \r\n\t{\n\t oWriter.write(lastString); \r\n\t lastString = new String(op); \r\n\t}",
"void append(String new_data) {\n // 1. allocate node \n // 2. put in the data \n Node new_node = new Node(new_data);\n\n Node last = head;\n // used in step 5\n\n // 3. This new node is going to be the last node, so\n // make next of it as NULL\n new_node.next = null;\n\n // 4. If the Linked List is empty, then make the new\n // node as head \n if (head == null) {\n new_node.prev = null;\n head = new_node;\n return;\n }\n\n // 5. Else traverse till the last node \n while (last.next != null) {\n last = last.next;\n }\n\n // 6. Change the next of last node \n last.next = new_node;\n\n // 7. Make last node as previous of new node \n new_node.prev = last;\n }",
"public void addLast(T t) {\n if (size == elements.length) // checks potential overflow\n ensureCapacity(); // increase capacity\n elements[size] = t; //store element at last position\n size++; // increment size\n }",
"public void append(String fragment);",
"public int append(IDataTableRecord record)\n\t{\n\t return add(recordCount(),record);\n\t}",
"public ByteArrayImplementation append(ByteArrayImplementation a) {\n byte[] result = new byte[data.length + a.getData().length];\n System.arraycopy(data, 0, result, 0, data.length);\n System.arraycopy(a, 0, result, data.length, a.getData().length);\n return new ByteArrayImplementation(result);\n }",
"void appendTo(Appendable buff) throws IOException;",
"void append(String text);",
"void append(String text);",
"public void addLast(T element);",
"public abstract void append(String s);",
"private void appendData() {\n XYDataset tempdata = getDataset();\n\n XYSeriesCollection originaldata = (XYSeriesCollection) chartpanel.getChart().getXYPlot().getDataset();\n XYSeriesCollection newdata = (XYSeriesCollection) getDataset();\n\n addToDataSet(newdata, originaldata);\n tempdata = missingSeries(newdata, originaldata);\n\n XYSeriesCollection foo = (XYSeriesCollection) tempdata;\n int n = foo.getSeriesCount();\n for (int i = 0; i < n; i++) {\n originaldata.addSeries(foo.getSeries(i));\n }\n nullMissingPoints((XYSeriesCollection) chartpanel.getChart().getXYPlot().getDataset());\n }",
"public void append(int data) {\r\n ListNode temp = head;\r\n while(temp.next !=null) {\r\n temp = temp.next;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n temp.next=new_node;\r\n }",
"public void insertLast( T data )\n\t{\n\t\t//if the list is empty or the head is the last node\n\t\tif(isEmpty() || head.getNext() == null){\n\t\t\t//insert first node\n\t\t\tinsertFirst(data);\n\t\t\t//increment the size of the list\n\t\t\tlistSize++;\n\t\t}\n\t\telse\n\t\t\t//insert a new node after last node\n\t\t\tinsertAfter(getLastNode(), data);\n\t}",
"public int appendData(byte[] data) {\n\t\t\n\t\tsynchronized (mData) {\n\n\t\t\tif (mDataLength + data.length > mData.capacity()) {\n\t\t\t\t//the buffer will overflow... attempt to trim data\n\t\t\t\t\n\t\t\t\tif ((mDataLength + data.length)-mDataPointer <= mData.capacity()) {\n\t\t\t\t\t//we can cut off part of the data to fit the rest\n\t\t\t\t\t\n\t\t\t\t\ttrimData();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//the encoder is gagging\n\t\t\t\t\t\n\t\t\t\t\treturn (mData.capacity() - (mDataLength + data.length)); // refuse data and tell the amount of overflow\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tmData.position(mDataLength);\n\t\t\tmData.put(data);\n\n\t\t\tmDataLength += data.length;\n\t\t\t\n\t\t\tstart(); //if idle\n\t\t\t\n\t\t\treturn (mData.capacity() - mDataLength); //return the remaining amount of space in the buffer\n\t\t}\n\t}",
"public abstract void appendBlock();",
"public void append(int data){\n\t\tif(head==null){\n\t\t\thead = new Node(data);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tNode current = head;\n\t\tNode newNode = new Node(data);\n\t\t\n\t\t// traverse to last node\n\t\twhile(current.getNext()!=null){\n\t\t\tcurrent = current.getNext();\n\t\t}\n\t\t\n\t\tcurrent.setNext(newNode);\n\t}",
"public void addLast(Item x);",
"public void insertLast( T data ){\n\t\t//create temporary node that will contain data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData( data );\n\t\t//if tail = empty\n\t\tif( tail == null ){\n\t\t\ttail = newNode;\n\t\t} else{\n\t\t\tnewNode.setPrev( tail );\n\t\t\ttail.setNext(newNode);\n\t\t\ttail = newNode;\n\t\t}\n\t\tsize++;\n\t}",
"public Node<E> append(Node<E> node){\n this.addToEnd(node);\n return node;\n }",
"void testAppend(Tester t) {\n t.checkExpect(ints1.length(), 1);\n t.checkExpect(ints2.length(), 2);\n t.checkExpect(ints3.length(), 2);\n\n ints1.append(ints2);\n\n t.checkExpect(ints1.length(), 3);\n\n ints2.append(ints3);\n\n t.checkExpect(ints1.length(), 5);\n ints2.append(ints4);\n\n t.checkExpect(ints2.length(), 6);\n\n ints4.append(ints4);\n\n // will be infinite\n // t.checkExpect(ints4.length(), -1);\n }",
"public void insertEnd(T data){\n Node<T> node = new Node<T>(data);\n if(this.isEmpty()) {\n this.insertFirst(data);\n }\n else{\n this.end.next = node;\n node.previous = this.end;\n this.end = node;\n }\n size++;\n }",
"@Override\n\tpublic Position insertLast(Object element) {\n\t\treturn null;\n\t}",
"public native void appendData(String arg) /*-{\r\n\t\tvar jso = [email protected]::getJsObj()();\r\n\t\tjso.appendData(arg);\r\n }-*/;",
"public void addLast(T item) {\n if (size == 0) {\n array[rear] = item;\n size++;\n return;\n }\n\n this.checkReSizeUp();\n rear++;\n this.updatePointer();\n array[rear] = item;\n size++;\n }",
"public synchronized void append(K key, V val) throws IOException {\n\n\t\t\tlong pos = data.sync();\n\t\t\t// Only write an index if we've changed positions. In a block compressed\n\t\t\t// file, this means we write an entry at the start of each block\n\t\t\t// position.set(pos); // point to current eof\n\t\t\tindex.append(new Pair<K, Long>(key, keySchema, pos, Schema\n\t\t\t\t\t.create(Type.LONG)));\n\n\t\t\tdata.append(new Pair<K, V>(key, keySchema, val, valueSchema)); // append\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// key/value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to data\n\t\t\tsize++;\n\t\t}",
"public void append(byte[] bytes)\n throws IndexOutOfBoundsException {\n if ( le != -1 ) // there exists already an le in byte buffer\n throw new IndexOutOfBoundsException(\"An le value exists in APDU buffer, therefore no append is possible\"); // so appending bytes makes no sense\n super.append(bytes);\n lc += bytes.length;\n }",
"public void addLast(Object o) {\r\n addBefore(o, header);\r\n }",
"public void append(int data){\n\t\tif (this.head == null)\n\t\t\tthis.head = new Node(data);\n\t\telse {\n\t\t\tNode current = this.head;\n\t\t\twhile (current.next != null){\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t\t\tcurrent.next = new Node(data);\n\t\t}\n\t}",
"public Node appendNode(Node node);",
"public void addLast(T e) {\n if (_size == 0) {\n _end = new DLLNode<T>(e, null, null);// Same thing as in addFront()\n _front = _end;\n }\n else {\n _end.setNext(new DLLNode<T>(e, _end, null));// add something after the last thing and make that the new end\n _end = _end.getNext();\n }\n _size++;\n }",
"public void addLast(Item item) {\r\n if (item == null) {\r\n throw new NullPointerException();\r\n }\r\n if (lastCursor == items.length) {\r\n resize(2 * items.length);\r\n }\r\n items[lastCursor++] = item;\r\n }",
"public void append(byte[] bytes)\n\t{\n\t\t// create a new byte array object\n\t\tByteArray combined = combineWith(bytes);\n\t\t\n\t\t// reset the array of bytes\n\t\tthis.bytes = combined.getBytes();\n\t}",
"void seekToLast();",
"public void addLast(E item);",
"public void testAppend() {\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n test1.append(new Buffer(3, rec));\n assertEquals(6, test1.length());\n }",
"public void addLast(int data) //O(n)\n\t{\n\t\tSinglyLinkedListNode currentNode = head;\n\t\tif(head == null)\n\t\t{\n\t\t\taddFront(data);\n\t\t}\n\t\telse\n\t\t{\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tif(currentNode.getNext() != null)\n\t\t\t\t{\n\t\t\t\t\tcurrentNode = currentNode.getNext();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSinglyLinkedListNode newNode = new SinglyLinkedListNode();\n\t\t\t\t\tcurrentNode.setNext(newNode);\n\t\t\t\t\tnewNode.setData(data);\n\t\t\t\t\tnewNode.setNext(null);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void append(Word d){\n\t\tWordNode wn = new WordNode(d.words);\n\t\tlast.next = wn;\n\t\tlast = wn;\n\t\tlength++;\n\t}",
"public void insertLast( T data )\n {\n \t//account for special case when head is the only node\n \tif (getLastNode()==this.head)\n \t\tinsertFirst(data);\n \t\n //create a new linkedListNode\n LinkedListNode<T> newNode = new LinkedListNode<T>();\n //assign that node some data\n newNode.setData(data);\n //point last node to new node\n this.getLastNode().setNext(newNode);\n }",
"public native String appendItem(String newItem);",
"public void append(Item value) {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an array.\");\n }",
"ILoLoString append(ILoString that);",
"private void popupMenuAppendData() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAddDataDialog addDataDialog = new AddDataDialog(table.getShell(), Messages.HexEditorControl_48, HexEditorConstants.DIALOG_TYPE_APPEND);\n\t\tif (addDataDialog.open() != Window.OK)\n\t\t\treturn;\n\t\tint[] addDialogResult = addDataDialog.getResult();\n\n\t\tif (addDialogResult == null) {\n\t\t\t//\n\t\t\t// Cancel button pressed - do nothing\n\t\t\t//\n\t\t\treturn;\n\t\t}\n\n\t\t//\n\t\t// Retrieve the parameters from the 'Insert' dialog\n\t\t//\n\t\tint dataSize = addDialogResult[0];\n\t\tint dataValue = addDialogResult[1];\n\n\t\tif (dataSize <= 0) return;\n\n\t\t//\n\t\t// Append new bytes into the table\n\t\t//\n\t\tappendData(dataSize, dataValue);\n\n\t\t//\n\t\t// Update the status panel\n\t\t//\n\t\tupdateStatusPanel();\n\t}",
"public void append(Money d) {\r\n // TODO Code here for append\r\n // Step 1: create the new node with data d\r\n MoneyNode newNode = new MoneyNode(d);\r\n\r\n // Step 2: Append after the last node; make last node point to new node\r\n last.next = newNode;\r\n\r\n // Step 3: update, increase length\r\n last = newNode;\r\n length++;\r\n\r\n // Step 4: check the empty linked list manually, no code, just trace\r\n }",
"@Override\n public void addLast(T item) {\n if (size >= array.length) {\n resize(size * 2);\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n } else {\n array[nextLast] = item;\n nextLast = plusOne(nextLast);\n }\n size += 1;\n }",
"public boolean add (Object o) {return addLast(o);}",
"public void addLast(T item){\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, null, _end);\n\t _end.setPrev(temp);\n\t _end = temp;\n\t}\n\t_size++;\n }",
"public void append(byte b)\n throws IndexOutOfBoundsException {\n if ( le != -1 ) // there exists already an le in byte buffer\n throw new IndexOutOfBoundsException(\"An le value exists in APDU buffer, therefore no append is possible\"); // so appending bytes makes no sense\n super.append(b);\n lc++;\n }",
"@Override\n public void addLast(Item i) {\n resize();\n items[nextLast] = i;\n size += 1;\n nextLast = moveForward(nextLast, 1);\n }",
"public void appendNodeToEnd(Node n){\n\t Node end = n;\n\t Node current = this;\n\t \n\t while(current.next != null){\n\t current = current.next;\n\t }\n\t \n\t current.next = end;\n\t //System.out.println(current.next.data);\n\t }",
"public void add( Comparable newVal ) {\n \t//if _data is full, expand the array\n \tif (_size == _data.length){\n\t \texpand();\n \t}\n \t\n\tset(_lastPos + 1, newVal);\n \t//increases _lastPos and _size\n \t_lastPos++;\n \t_size++;\n }",
"public void addLast(E item){\r\n }",
"IList<T> append(IList<T> l);",
"public void append(Object obj) throws Exception {\n\t\tif(count>0&&front==rear)\n\t\t\t\tthrow new Exception(\" 队列已满\");\n\t\tdata[rear]= obj;\n\t\trear=(rear+1)%maxSize;\n\t\tcount++;\n\t}",
"public void addANodeToEnd(E addData)\n\n\t{\n\t\tNode position = head;\n\t\t// when the link is null, stop the loop and add a node \n\t\twhile (position.link != null) {\n\t\t\t// get next node\n\t\t\tposition = position.link;\n\t\t}\n\t\t// add a new node to the end\n\t\tposition.link = new Node(addData, null);\n\n\t}",
"void addToEnd(Object[] by);",
"public int addRecord (DatabaseRecord r) //add a record to the end of the array\r\n\t{\r\n\t\tdataRecord[length] = r;\t\t//add new record to the next available position in the array;\r\n\t\tlength++;\t\t\t\t\t//update length, which holds the amount of positions filled\r\n\t\treturn (length - 1);\t\t//returns location where 'r' was added\r\n\t}",
"@Override\n public synchronized void append(LoggingEvent event) {\n while (logQueue.size() > size) {\n logQueue.remove();\n }\n if (closed) {\n LogLog.warn(\"This appender is already closed, cannot append event.\");\n return;\n }\n \n String loggerName = getLoggerName(event);\n\n LogEntry logEntry = new LogEntry(System.currentTimeMillis(), event.getLevel().toString(), loggerName, event.getMessage().toString());\n logQueue.add(logEntry);\n }",
"void add(byte[] data, int offset, int length);",
"public void append(Node newNode)\r\n {\n newNode.prev = this;\r\n newNode.next = next;\r\n if (next != null)\r\n {\r\n next.prev = newNode;\r\n }\r\n next = newNode;\r\n System.out.println(\"Node added with Traffic Data \" + Arrays.toString(newNode.trafficEntry.toStringArray()) + \" added ontop of \" \r\n + prev.trafficEntry.convertToString());\r\n \r\n }",
"public void append(Serializable message){\n taskQueue.addLast(message);\n unlockWaiter();//unblocks for taskQueue\n unlockPoolWaiter();//unblocks for threadPool\n }",
"@Override\n\tpublic void addAtBeginning(String data) {\n\t}",
"void append(CharSequence s) throws IOException;",
"public void insertEnd(T newdata){\n\n if (head == null){\n push(newdata);\n return;\n }\n\n Node n = new Node(newdata);\n n.next = null;\n Node last = head;\n while (last.next!=null){\n last = last.next;\n }\n last.next = n;\n }",
"public void appendAdd(EPPSecDNSExtDsData dsData) {\n\t\tif (addDsData == null) {\n\t\t\taddDsData = new ArrayList();\n\t\t}\n\t\taddDsData.add(dsData);\n }",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public void addLast(Item x) {\n if (size == items.length) {\n resize(size * 2);\n }\n items[size] = x;\n size += 1;\n }"
] | [
"0.6845645",
"0.674864",
"0.674226",
"0.6685855",
"0.66609025",
"0.66609025",
"0.6584389",
"0.6573061",
"0.6372028",
"0.63694084",
"0.63678086",
"0.6362639",
"0.63526016",
"0.62732667",
"0.62391955",
"0.6237168",
"0.62202567",
"0.62088716",
"0.6157042",
"0.61543596",
"0.61476827",
"0.61392933",
"0.6136794",
"0.61026734",
"0.6071396",
"0.60653067",
"0.6060388",
"0.60550934",
"0.60351306",
"0.60336316",
"0.6010526",
"0.5977375",
"0.595462",
"0.5952969",
"0.5944431",
"0.5941608",
"0.5936843",
"0.59297895",
"0.592308",
"0.5916136",
"0.5911447",
"0.5911447",
"0.5906868",
"0.59048694",
"0.58911264",
"0.5876996",
"0.58329827",
"0.58256024",
"0.5815191",
"0.5806531",
"0.5803841",
"0.57737684",
"0.5763648",
"0.57552296",
"0.5739996",
"0.5737915",
"0.5734724",
"0.57320553",
"0.5722337",
"0.5719256",
"0.5713156",
"0.5694766",
"0.5684972",
"0.56780547",
"0.5658135",
"0.5656552",
"0.5650687",
"0.56481713",
"0.5647335",
"0.559442",
"0.5576499",
"0.557042",
"0.55685383",
"0.5562159",
"0.5554518",
"0.5553058",
"0.55490345",
"0.55458564",
"0.55456275",
"0.5544271",
"0.5540387",
"0.5539732",
"0.5532312",
"0.5522407",
"0.5520328",
"0.5520224",
"0.551468",
"0.5510917",
"0.54976857",
"0.5492001",
"0.54899716",
"0.5472329",
"0.5458367",
"0.54556054",
"0.5455236",
"0.5452822",
"0.5447312",
"0.5440645",
"0.54322517",
"0.542304"
] | 0.5530771 | 83 |
'insertAfter()' will insert data after specific node value | public void insertAfter(int after, int data) {
// variable "after" stores the value after which we want to insert node in the linked-list
Node node = new Node();
node.data = data;
node.next = null;
Node n = head;
while(n != null){
if (n.data == after){
node.next = n.next;
n.next = node;
}
n = n.next;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node insertAfter(Node node);",
"public void insertAfter( long after, T data){\n Node<T> node = new Node<T>(data);\n if(this.isEmpty()|| after == 0) {\n this.insertFirst(data);\n }\n else if(after >= size) { //if new Node inserted in the end of list\n this.insertEnd(data);\n }\n else{\n Node<T> current = begin;\n for(int i = 0; i < after; i++)\n current = current.next;\n node.next = current.next;\n current.next.previous = node;\n node.previous = current;\n current.next = node;\n }\n size++;\n }",
"public Node insertBefore(Node node);",
"void insertAfter(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length==0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertAfter() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == back) \n\t\t{\n\t\t\tappend(data); //if the cursor is at the back of the list then you can just all append since you will be inserting the element into the back element\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.next = cursor.next; //the new node temp's next will be the cursor's next\n\t\t\ttemp.prev = cursor; //the new node temp's previous will become the cursor\n\t\t\tcursor.next.prev = temp; //cursor's next previous element becomes temp\n\t\t\tcursor.next = temp; //cursor's next becomes temp\n\t\t\tlength++;\n\t\t}\n\t}",
"public void insertAfter(Node prev_node, int new_data) \r\n\t\t{ \r\n\t\t if (prev_node == null) \r\n\t\t { \r\n\t\t System.out.println(\"\\nThe given previous node cannot be null\"); \r\n\t\t return; \r\n\t\t } \r\n\t\t \r\n\t\t Node new_node = new Node(new_data); \r\n\t\t new_node.next = prev_node.next; \r\n\t\t prev_node.next = new_node; \r\n\t\t}",
"Node insertBefore(Node newChild, Node refChild);",
"public void insertAfter(String insertData, String findData) {\n\t\t// write you code for insertAfter using the specification above\n\t\tNode compare = new Node(findData);\n\t\tNode nodref = head;\n\t\twhile (nodref != null){\n\t\t\tif (nodref.equals(compare)){\n\t\t\t\tNode adder = new Node(insertData);\n\t\t\t\tadder.next = nodref.next;\n\t\t\t\tnodref.next = adder; \n\t\t\t\tnumElements++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tnodref = nodref.next;\n\t\t}\n\t\treturn;\n\t}",
"public void insert_after(int data, Node prev_node){\n if(prev_node == null){\n System.out.println(\"Given Node is null !\");\n return;\n }\n Node cursor = this.head;\n Node new_node = new Node(data);\n new_node.next = prev_node.next;\n prev_node.next = new_node;\n new_node.prev = prev_node;\n if(new_node.next != null){\n new_node.next.prev = new_node;\n }\n System.out.println(\"Node Added !\");\n this.print_list();\n return;\n }",
"private void addAfter(Node n, String data)\n {\n Node next = n.next;\n n.next = new Node(data, next);\n size++;\n }",
"protected void insertAfter(\n LogicalOperator after,\n LogicalOperator newNode,\n Map<Integer, Integer> projectionMapping)\n throws VisitorException, FrontendException {\n List<LogicalOperator> successors = mPlan.getSuccessors(after);\n if(successors==null) {\n mPlan.addAsLeaf(newNode);\n return;\n }\n if (successors.size() != 1) {\n throw new RuntimeException(\"insertAfter only valid to insert \" + \n \"after a node with single output.\");\n }\n insertBetween(after, newNode, successors.get(0), projectionMapping);\n }",
"public void insertAfter( DLLNode<T> current, T data ){\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData( data );\n\t\t\n\t\t//DL's code\n\t\tDLLNode<T> nextNode = current.next;\n\t\t\n\t\tnewNode.setPrev( current );\n\t\t//DL's code\n\t\tnewNode.setNext( nextNode );\n\t\t\n\t\t//DL's code\n\t\tif (nextNode != null)\n\t\t\tnextNode.setPrev(newNode);\t\t\t\n\t\t\t//current.getPrev().setNext( newNode );\n\t\t\n\t\t//DL's code\n\t\tcurrent.setNext(newNode);\n\t\t\n\t\t//increase size by 1\n\t\tsize++;\n\t}",
"public void insert(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }",
"public void insert(Node n);",
"public void insertAfter(ListNode next){\n ListNode cur = this.next;\n this.next = next;\n next.next = cur;\n }",
"Position<T> addAfter(Position<T> p, T data) throws IllegalStateException;",
"public void insertAfter(T element) {\n setNext( new LLNode<T>(element, getNext()));\n }",
"@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}",
"public void insertAfter(Object item) {\n this.next = new SListNode(item, next);\n }",
"public void insertAfter(int data) {\n\n\tpublic int insertAfter(int data) {\n\t\tNode node = new Node(data);\n\n\t\tint flag = 0;\n\t\tNode temp = head;\n\t\tNode prev = head;\n\t\twhile (temp != null) {\n\t\t\tprev = temp;\n\t\t\ttemp = temp.next;\n\t\t\tif (prev.data == 30) {\n\t\t\t\tprev.next = node;\n\t\t\t\tnode.next = temp;\n\t\t\t\tprev.next = node;\n\t\t\t\tnode.next = temp;\n\t\t\t\tflag = 1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\treturn flag;\n\t}\n\n\t// list printing\n\tpublic void printList() {\n\t\tNode temp = head;\n\t\twhile (temp != null) {\n\t\t\tSystem.out.print(temp.data + \"->\");\n\t\t\ttemp = temp.next;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\n\n}",
"public void insertTest(T info){\n NodeList<T> n = new NodeList<>();\n n.setInfo(info);\n n.setNext(first);\n this.first = n;\n }",
"public void addAfter(Node prevNode , Integer newdata){\n if (prevNode==null){\n return;\n }\n\n Node n = new Node(newdata);\n n.next = prevNode.next;\n prevNode.next = n;\n\n }",
"public void addElement(XmlNode newNode) {\n\t\t\n\t\t// get selected Fields and add xmlElement after last seleted one\n\n\t\tXmlNode lastDataField = null;\n\t\t\n\t\tif (highlightedFields.size() > 0) {\n\t\t\tlastDataField = highlightedFields.get(highlightedFields.size()-1);\n\t\t} else {\n\t\t\t// add after last child of protocol (if there are any!)\n\t\t\tint numChildren = getRootNode().getChildren().size();\n\t\t\tif (numChildren > 0) \n\t\t\t\tlastDataField = rootNode.getChild(numChildren - 1);\n\t\t\t// otherwise, lastDataField is null, and new xmlElement will be 1st child of protocol\n\t\t}\n\t\t\n\t\t// if no xmlElement selected (none exist!), add at top (1st child of protocol)\n\t\tif (lastDataField == null) {\n\t\t\tnewNode.setParent(rootNode);\n\t\t\trootNode.addChild(newNode);\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t\telse {\n\t\t// otherwise, add after the xmlElement.\n\t\t\tXmlNode parentNode = lastDataField.getParentNode();\n\t\t\tint indexToInsert = lastDataField.getMyIndexWithinSiblings() + 1;\n\n\t\t\tnewNode.setParent(parentNode);\n\t\t\tparentNode.addChild(indexToInsert, newNode);\n\t\t\t\n\t\t\tnodeSelected(newNode, true);\n\t\t}\n\t}",
"public void InsertAfter(Node prev_Node, int new_data) {\n\t\tif (prev_Node == null) {\n\t\t\tSystem.out.println(\"The given previous node cannot be NULL \");\n\t\t\treturn;\n\t\t}\n\t\tNode new_node = new Node(new_data); //Create a new node with 8 as data.\n\t\tnew_node.next = prev_Node.next;\n\t\tprev_Node.next = new_node;\n\t\tnew_node.prev = prev_Node;\n\t\tif (new_node.next != null)\n\t\t\tnew_node.next.prev = new_node;\n\t}",
"public static native Element insertAfter(Element elem, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(parent, configJS);\r\n\t}-*/;",
"public void insertAfter(Node prevNode, E data) {\n if (isNull(prevNode)) {\n System.out.println(\"PrevNode cannot be null\");\n return;\n }\n\n Node<E> node = new Node<>(data);\n node.previous = prevNode;\n node.next = prevNode.next;\n prevNode.next = node;\n if (nonNull(node.next)) {\n node.next.previous = node;\n }\n }",
"void insert(T value, int position);",
"void insert(Object value, int position);",
"public void insertAfterData(int data,int newData){\n Node node = head;\n Node newNode = new Node(newData);\n while (node != null && node.data != data){\n node = node.next;\n }\n\n if (node == null){\n System.out.println(\"Not possible\");\n return;\n }\n\n Node tempNode = node.next;\n if (tempNode == null){\n node.next = newNode;\n newNode.prev = node;\n }else {\n node.next = newNode;\n newNode.next = tempNode;\n newNode.prev = node;\n tempNode.prev = newNode;\n }\n }",
"public void insertAfter( LinkedListNode<T> currentNode, T data )\n {\n //create a new linkedListNode\n LinkedListNode<T> newNode = new LinkedListNode<T>();\n //assign that node some data\n newNode.setData(data);\n //point new node where current pointer is\n newNode.setNext(currentNode.getNext());\n //set head pointer to this new node\n currentNode.setNext(newNode);\n }",
"public void insertAfter(Node node, int data) {\n\t\tif (node == null) {\n\t\t\tSystem.out.println(\"The given previous node cannot be NULL \");\n\t\t\treturn;\n\t\t}\n\t\t/* 2. allocate node 3. put in the data */\n\t\tNode new_node = new Node(data);\n\n\t\t/* 4. Make next of new node as next of prev_node */\n\t\tnew_node.next = node.next;\n\n\t\t/* 5. Make the next of prev_node as new_node */\n\t\tnode.next = new_node;\n\n\t\t/* 6. Make prev_node as previous of new_node */\n\t\tnode.previous = node;\n\n\t\t/* 7. Change previous of new_node's next node */\n\t\tif (new_node.next != null)\n\t\t\tnew_node.next.previous = new_node;\n\t}",
"void addAfter(T target, T element);",
"public void addAfter(T existing, T element) throws ElementNotFoundException;",
"public void insertAfter(SequiturSymbol toInsert){\n join(toInsert,n);\n join(this,toInsert);\n }",
"LinkedEntries.LinkNode addAfter(NodeEntry cne, int index, LinkedEntries.LinkNode insertAfter) {\n LinkedEntries.LinkNode newNode;\n if (insertAfter == null) {\n // insert at the beginning\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, getHeader());\n } else if (insertAfter.getNextLinkNode() == null) {\n newNode = add(cne, index);\n } else {\n newNode = new LinkedEntries.LinkNode(cne, index);\n addNode(newNode, insertAfter.getNextLinkNode());\n }\n return newNode;\n }",
"public void addAfter(MovieNode target, Object item){\n MovieNode insert = new MovieNode(item);\n insert.next = target.next;\n target.next = insert;\n size++;\n }",
"public void insertAfter( LinkedListNode<T> currentNode, T data ) {\n\t\t//if somebody accidently called insert after with an empty list\n\t\tif (currentNode == null) {\n\t\t\t//correct their mistake and insert the data at the first spot\n\t\t\tinsertFirst (data);\n\t\t}\n\t\t//otherwise\n\t\telse {\n\t\t//make a new node \n\t\tLinkedListNode<T> newNode = new LinkedListNode<T>();\n\t\t///add data to this node\n\t\tnewNode.setData(data);\n\t\t//set new node to point to the node after the current node\n\t\tnewNode.setNext(currentNode.getNext());\n\t\t//set the current node to point to the new node\n\t\tcurrentNode.setNext(newNode);\n\t\t}\n\t}",
"public ExtElement insertAfter(ExtElement element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}",
"public ExtElement insertAfter(String element, BaseModel value) {\r\n\t\treturn insertAfter(element, value.getJsObj());\r\n\t}",
"public void insertAfterCurernt(T aData){\r\n if(curr == null){\r\n return;\r\n }\r\n curr.link = new ListNode(aData,curr.link);\r\n }",
"private static void insertAtPos(int data, int pos) {\n\tNode newnode=new Node(data);\n\tNode temp=head;\n\tNode n=head;\n\tint size=0;\n\twhile(n!=null)\n\t{\n\t\tn=n.next;\n\t\ttemp=temp.next;\n\t\tsize++;\n\t}\n\tn=head;\n\ttemp=head;\n\tfor(int i=0;i<pos-2;i++)\n\t{\n\t\tn=n.next;\n\t\ttemp=temp.next;\n\t}\n\ttemp=temp.next;\n\tnewnode.next=n.next;\n\tn.next=newnode;\n\ttemp.prev=newnode;\n\tnewnode.prev=n;\n}",
"void insertToNode(String text, Node n) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tint pos = 0, end;\n\t\t//Method finds all text part between spaces, but ignores the last text since there is no space, just newline\n\t\twhile ((end = text.indexOf(\" \", pos)) >= 0) {\n\t\t\tlist.add(text.substring(pos, end));\n\t\t\tpos = end + 1;\n\t\t}\n\t\t//Adds the last text since it else wise is ignored\n\t\tlist.add(2, text.substring(pos, text.length() - 1));\n\t\t\n\t\tn.setNum(Integer.parseInt(list.get(0).trim()));\n\t\tn.setLatitude(Double.parseDouble(list.get(1).trim()));\n\t\tn.setLongitude(Double.parseDouble(list.get(2).trim()));\n\t\tn.setPrev(new Last());\n\t}",
"public void insert(Node newNode)\r\n {\n newNode.prev = prev;\r\n prev.next = newNode;\r\n prev = newNode;\r\n System.out.println(\"Node with Traffic Data \" + Arrays.toString(newNode.trafficEntry.toStringArray()) + \" Inserted before Node with Traffic Data \" + Arrays.toString(trafficEntry.toStringArray()));\r\n }",
"public void insertAfter(String value, StringListIterator position)\n {\n\tStringListNode node = new StringListNode(value, position.node, position.node.next);\n\tposition.node.next = node;\n\tif (tail == position.node) {\n\t tail = node;\n\t}\n\telse {\n\t node.next.prev = node;\n\t}\n }",
"public void insertAfter(Node<T> first, Node<T> second) {\n if (first == null || second == null || First == null) {\n return;\n }\n Node<T> current = First; //at least one element\n while (current != null && current.item != first.item) {\n current = current.next;\n }\n\n if (current == null) { // no\n return;\n } else { //找到了\n second.next = current.next;\n current.next = second;\n }\n }",
"private void addAfter (Node<E> node, E item)\n {\n Node<E> temp = new Node<E>(item,node.next);\n node.next = temp;\n size++;\n }",
"public void insert(int value){\n linkedList.insertLast(value);\n }",
"public void insertNode(Item it) {\n this.currentPosition = new Node(this.currentPosition, it, this.currentPosition.next);\n }",
"public void insertAfter( LinkedListNode<T> currentNode, T data )\n\t{\n\t\t//make a new node to insert it\n\t\tLinkedListNode<T> newNode = new LinkedListNode<T>();\n\t\t//add data to the node\n\t\tnewNode.setData(data);\n\t\t//set the next node to be next of current node\n\t\tnewNode.setNext(currentNode.getNext());\n\t\t//link up the new node by\n\t\t//have the current node point to the new node\n\t\tcurrentNode.setNext(newNode);\t\n\t\t//increment the size of the list\n\t\tlistSize++;\n\t}",
"private static void insertAtEnd(int data) {\n\tNode newnode=new Node(data);\n\tnewnode.next=null;\n\tNode n=head;\n\tNode last=head;\n\twhile(last.next!=null)\n\t{\n\t\tlast=last.next;\n\t}\n\tlast.next=newnode;\n\tnewnode.prev=last;\n\treturn;\n\t\n}",
"public void insertAtBack(L insertItem){\n\t\tListNode node = new ListNode(insertItem);\n\t\tif(isEmpty()) //firstNode and lastNode refer to same Object\n\t\tfirstNode = lastNode = node;\n\t\telse{ //lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t//you can replace the two previous lines with this line: lastNode = lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t}",
"public void insertAtBack(T insertItem) {\n\t\tNode<T> node = new Node<T>(insertItem);\n\t\t\n\t\tif (isEmpty()) // firstNode and lastNode refer to same Object\n\t\t\tfirstNode = lastNode = node;\n\t\telse { // lastNode's nextNode refers to new node\n\t\t\tlastNode.nextNode = node;\n\t\t\tlastNode = node;\n\t\t\t// you can replace the two previous lines with this line: lastNode =\n\t\t\t// lastNode.nextNode = new ListNode( insertItem );\n\t\t}\n\t\tsize++;\n\t}",
"private Node<E> addAfter(Node current, E toAdd) {\n\t\tif ((((Comparable<E>) toAdd).compareTo((E) current.data)) >= 0) {\n\t\t\tif (current.rightChild == null) {\n\t\t\t\tcurrent.rightChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.rightChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.rightChild, toAdd);\n\t\t\t}\n\t\t} else {\n\t\t\tif (current.leftChild == null) {\n\t\t\t\tcurrent.leftChild = new Node(toAdd, current, null, null);\n\t\t\t\treturn current.leftChild;\n\t\t\t} else {\n\t\t\t\treturn addAfter(current.leftChild, toAdd);\n\t\t\t}\n\t\t}\n\t}",
"private void InsertAt(IntRepList.OpNode node, IntRepList.OpNode current) {\n current.prev.next = node;\n node.prev = current.prev;\n node.next = current;\n }",
"public void addNodeAfterThis( int newdata ) {\r\n\t\tlink = new IntNode( newdata, link );\r\n\t}",
"public void copyAndInsertElement(XmlNode node) {\n\t\t\t\n\t\tXmlNode newNode = duplicateDataFieldNode(node);\n\t\tduplicateDataFieldTree(node, newNode);\n\t\t\t\n\t\taddElement(newNode);\n\t\t\n\t}",
"public Node<T> addAfter(Node<T> listNode, T t) \r\n {\r\n Node<T> afterNewNode = listNode.next;\r\n Node<T> newNode = new Node<T>(t, listNode, afterNewNode);\r\n listNode.next = newNode;\r\n afterNewNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }",
"public void insertAfterCurrent(T aData) {\r\n\t\t// Can't insert if there is nothing at current\r\n\t\tif (curr == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tListNode newNode = new ListNode(aData, curr.link);\r\n\t\tif (curr != null && prev == null) { // at the head\r\n\t\t\thead.link = newNode; // curr.link = newNode;\r\n\t\t} else if (curr != null && prev != null) { // If it's in the middle\r\n\t\t\tcurr.link = newNode;\r\n\t\t}\r\n\r\n\t}",
"public JsStatement insertAfter(String expression)\n\t{\n\t\tchain(ManipulatingHelper.insertAfter(expression));\n\t\treturn this;\n\t}",
"public void insertAtBack(T data) {\n \t//we create a new node\n Node<T> aNode = new Node<>(data);\n //and again if there is no node we make a new node as first and last node\n if (isEmpty()) {\n firstNode = lastNode = aNode;\n } \n //otherwise we set a new node as last node\n //and we assign to last node the next node of the last one\n //so the last node is new created node now\n else {\n lastNode.setNext(aNode);\n lastNode = lastNode.getNext();\n }\n }",
"@Override\n\tpublic void insert(Node node) {\n\t\tchildren.add(node);\n\t}",
"public void insert(Node given){\n\t\tlength++;\n\t\tString retVar = \"\";\n\t\tNode curNode = root;\n\t\twhile (!curNode.isLeaf()){\n\t\t\tif (curNode.getData() > given.getData()){\n\t\t\t\tcurNode = curNode.getLeft();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurNode = curNode.getRight();\n\t\t\t}\n\t\t}\n\t\tif (curNode.getData() > given.getData()){ \n\t\t\tcurNode.setLeft(given);\n\t\t}\n\t\telse{\n\t\t\tcurNode.setRight(given);\n\t\t}\n\t\tmyLazySearchFunction = curNode;\n\t}",
"public void insertAt(int index,int data){\n Node node =new Node();\n node.data=data;\n node.next=null;\n\n if (index == 0) {\n insertAtStart(data);\n }\n\n\nelse{\n Node n = head;\n for (int i=0; i < index-1;i++){\n n =n.next;\n }\n node.next =n.next;\n n.next = node;\n\n}}",
"public void insertBefore( DLLNode<T> current, T data ){\n\t\t//UNUSED METHOD.....\n\t\t\n\t\t//create new node that contains data\n\t\tDLLNode<T> newNode = new DLLNode<T>();\n\t\tnewNode.setData(data);\n\t\t\n\t\tnewNode.setNext(current);\n\t\tcurrent.setPrev(newNode);\n\t\thead = newNode;\n\t\t\n\t\t//DL deleted\n//\t\tnewNode.setPrev(current.getPrev());\n//\t\tnewNode.setNext(current);\n//\t\tcurrent.setPrev(newNode);\n//\t\tcurrent.getPrev().setNext(newNode);\n\t\t\n\t\t//increase size by 1\n\t\tsize++;\n\t}",
"public static Node addAfter(final Node node, final String xPath, final Node newNode) throws Exception {\r\n Node before = selectSingleNode(node, xPath);\r\n assertNotNull(\"No node for xpath [\" + xPath + \"] found\", before);\r\n Node parent = before.getParentNode();\r\n parent.insertBefore(newNode, before.getNextSibling());\r\n return node;\r\n }",
"public boolean addAfter(int after,int data){\n\t\tNode curNode = first;\n\t\twhile(curNode.data !=after){\n\t\t\tcurNode = curNode.next;\n\t\t\tif(curNode == null)\n\t\t\t\treturn false;\n\t\t}\n\t\tNode newNode = new Node();\n\t\tnewNode.data = data;\n\t\tif(curNode == last){\n\t\t\tcurNode.next = null;\n\t\t\tlast = newNode;\n\t\t}else{\n\t\t\tnewNode.next = curNode.next;\n\t\t\tcurNode.next.previous = newNode;\n\t\t\t\n\t\t}\n\t\tnewNode.previous = curNode;\n\t\tcurNode.next = newNode;\n\t\treturn true;\n\t}",
"private void insert(Node<E> x) {\n\t\tlast = last.next = x;\n\t}",
"public void insertAtLast(int data) {\n\t\tNode node = new Node(); // Defining Object Of Node Class\n\t\tnode.data = data; // initializing the data from the end user to node\n\t\t\t\t\t\t\t// object\n\t\tnode.next = null; // Setting the next to null,since last node hold null\n\t\t\t\t\t\t\t// value\n\n\t\t// Checking the condition if there is not present data already,might be\n\t\t// the first node\n\t\tif (head == null) {\n\t\t\thead = node;\n\t\t} else {\n\t\t\tNode n = head; // starting from head itself\n\t\t\twhile (n.next != null) { // traversing the next element which is not\n\t\t\t\t\t\t\t\t\t\t// null\n\t\t\t\tn = n.next;\n\t\t\t}\n\t\t\tn.next = node;\n\n\t\t}\n\t}",
"@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}",
"private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }",
"public void insert(SplayNode n) {\n\t\t\t SplayNode y = null;\n\t\t\t SplayNode temp = this.root;\n\t\t while(temp != null) {\n\t\t y = temp;\n\t\t if(n.data < temp.data)\n\t\t temp = temp.left;\n\t\t else\n\t\t temp = temp.right;\n\t\t }\n\t\t n.parent = y;\n\n\t\t if(y == null) //newly added node is root\n\t\t this.root = n;\n\t\t else if(n.data < y.data)\n\t\t y.left = n;\n\t\t else\n\t\t y.right = n;\n\n\t\t this.splay(n);\n\t\t }",
"public void insertBefore(int value, int newVal) {\n try {\n ListNode nodeValue = new ListNode(value);\n ListNode newValue = new ListNode(newVal);\n ListNode current = this.root;\n\n while (current.data != value) {\n current = current.next;\n }\n newValue.next = current.next;\n current.next = newValue;\n } catch (NullPointerException e) {\n System.out.println(\"You have reached the end of the list.\");\n }\n }",
"void reorderNode(LinkedEntries.LinkNode insert, LinkedEntries.LinkNode before) {\n removeNode(insert);\n if (before == null) {\n addNode(insert, getHeader());\n } else {\n addNode(insert, before);\n }\n }",
"@Override\n public void insertAtEnd(T value) {\n Node<T> new_node = new Node<T>(value);\n if (start == null) {\n start = new_node;\n }\n if (end == null) {\n end = new_node;\n } else {\n end.next = new_node;\n end = new_node;\n }\n\n }",
"public static native Element insertAfter(String id, DomConfig config)/*-{\r\n\t\tvar configJS = [email protected]::getJsObject()();\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(id, configJS);\r\n\t}-*/;",
"public void insert(Nodo tree, String textField) {\n tree.getRoot().insertG(tree.getRoot(),textField);\n }",
"public void insert(double x, double y){\n root = insert(root, new Node(x, y), X_AXIS);\n\t\t}",
"public RNode insertAfter(int item, int position) {\n if (position >= 0 && position < length() ) {\n\t if (position == 0) {\n\t\tnext = new RNode(item, next);\n\t\treturn this; \n\t } else {\n\t\tnext = next.insertAfter(item, position - 1);\n\t\treturn this;\n\t }\n\t}\n\telse throw new RuntimeException(\"precondition violated\");\n }",
"public void insertAt(String insertData, int index) {\n\t\t// write you code for insertAt using the specification above\n\t\tif(index==0){\n\t\t\tadd(insertData);\n\t\t\treturn;\n\t\t}\n\t\tif(index<=size()){\n\t\t\tNode nodref = head;\n\t\t\tfor (int count = 0; count<index-1; count++){\n\t\t\t\tnodref=nodref.next;\n\t\t\t}\n\t\t\tNode adder = new Node(insertData);\n\t\t\tadder.next = nodref.next;\n\t\t\tnodref.next = adder; \n\t\t\tnumElements++;\n\t\t\treturn;\n\t\t}\n\t}",
"public void insertAtPos(int val, int position){\n singlyListNode n = new singlyListNode(val, null);\n singlyListNode ptr = this.head;\n int previous = position - 1;\n //find insertion position\n for (int i = 0 ; i < this.listSize; i ++){\n if (i == position){\n singlyListNode temp = ptr.getNextNode();\n ptr.setNextNode(n);\n n.setNextNode(temp);\n break;\n }\n ptr = ptr.getNextNode();\n }\n this.listSize ++;\n }",
"public void insertBefore( int pos, T data ) \n {\n \tDLLIterator cycle = new DLLIterator();\n \t\n \t\n if(pos <= 0){\n \t \n \t insertFirst(data);\n }\n \n else if(pos >= capacity){\n \t insertLast(data);\n \t \n } \n \n else{\n \t \n \t int x = 0;\n \t \n \t DLLNode insert = cycle.currentNode;\n \t \n \t while(x != pos){\n \t\t x++;\n \t\t insert = cycle.nextNode();\n \t\t \n \t }\n \t \n \t DLLNode before = insert.prev;\n \t DLLNode newNode = new DLLNode(data, before, insert);\n \t \n \t before.next = newNode;\n \t insert.prev = newNode;\n \t \n }\n \n \t \n \t \n \n }",
"@Override\n public void insertAtAnyPosition(T value, int index) {\n Node<T> new_node = new Node<>(value);\n if(index < 0)\n throw new IndexOutOfBoundsException();\n else if(index == 0){\n new_node.next = start;\n start = new_node;\n }else{\n Node<T> previous = start;\n for(int i =0;i<index-1;i++)\n {\n previous = previous.next;\n }\n Node<T> curr = previous.next;\n new_node.next = curr;\n previous.next = new_node;\n }\n\n }",
"public void internalInsert(T insertItem){\n if(isEmpty())\n firstNode = lastNode = new SortedListNode<>(insertItem);\n else\n lastNode = lastNode.nextNode = new SortedListNode<>(insertItem);\n\n\n }",
"public void insertLast( T data ) {\n\t\t//make a new node \n\t\tLinkedListNode<T> lastNode = new LinkedListNode<T>();\n\t\t//if somebody accidently called insert after with an empty list\n\n\t\t///add data to this node\n\t\tlastNode.setData(data);\t\n\t\t//invoke insertfirstnode to link up the new node\n\t\tinsertAfter (getLastNode(), data);\n\t\t\n\t}",
"public void insertAtPos(int val , int pos)\n\n {\n\n Node nptr = new Node(val, null, null); \n\n if (pos == 1)\n\n {\n\n insertAtStart(val);\n\n return;\n\n } \n\n Node ptr = start;\n\n for (int i = 2; i <= size; i++)\n\n {\n\n if (i == pos)\n\n {\n\n Node tmp = ptr.getLinkNext();\n\n ptr.setLinkNext(nptr);\n\n nptr.setLinkPrev(ptr);\n\n nptr.setLinkNext(tmp);\n\n tmp.setLinkPrev(nptr);\n\n }\n\n ptr = ptr.getLinkNext(); \n\n }\n\n size++ ;\n\n }",
"@Override\r\n\t\tpublic Node insertBefore(Node newChild, Node refChild) throws DOMException\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"private void insertNodeIntoTree(Node node) {\n\t\troot = insert(root,node);\t\n\t}",
"static ListNode insertAtPostion(ListNode head, int data, int postion) {\n\n int size = length(head);\n\n //boundery checks \n if (postion > size + 1 || postion < 1) {\n System.out.println(\"invalid postion\");\n return head;\n }\n ListNode newNode = new ListNode(data);\n\n if (postion == 1) {\n\n newNode.next = head;\n return newNode;\n } else {\n ListNode previous = head;\n int count = 1;\n while (count < postion - 1) {\n\n previous = previous.next;\n count++;\n }\n ListNode current = previous.next;\n newNode.next = current;\n previous.next = newNode;\n return head;\n }\n\n }",
"public void insert(HuffmanTree node);",
"public void insertNode(T insertValue){\n if(root == null)\n root = new TreeNode<T>(insertValue);\n else\n root.insert(insertValue);\n }",
"public void insertAtEnd(int data)\r\n\t{\r\n\t\t\r\n\t\tif(root ==null) {\r\n\t\t\tNode atEnd = new Node(data);\r\n\t\t\troot = atEnd;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tNode tmp = root;\r\n\t\t\t//traversing the last node that has null at the end \r\n\t\t\twhile(tmp!=null)\r\n\t\t\t{\r\n\t\t\t\ttmp = tmp.right;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tNode atEnd = new Node(data);\r\n\t\t\tatEnd.right = atEnd;\r\n\t\t}\r\n\t}",
"public void insert(T insertItem){\n if(isEmpty())\n firstNode = lastNode = new SortedListNode<>(insertItem);\n else\n lastNode = lastNode.nextNode = new SortedListNode<>(insertItem);\n\n this.sort();\n }",
"protected void insertEnd(T value) {\r\n\t\tSNode<T> iterator = head;\r\n\t\twhile (iterator.getPrev() != this.tail) {\r\n\t\t\titerator = iterator.getPrev();\r\n\t\t}\r\n\t\titerator.setPrev(new SNode<T>(value, this.tail));\r\n\t\tsize++;\r\n\t}",
"private void addBetween(E e, Node<E> previous, Node<E> after) {\n\t\tNode<E> newest = new Node<E>(e, previous, after);\n\t\tprevious.setNext(newest);\n\t\tafter.setPrev(newest);\n\t\tsize++;\n\t}",
"public void insertnode ()\n\t// insert an empty node\n\t{\n\t\tif (Pos.haschildren() && !GF.askInsert()) return;\n\t\tNode n = new Node(Pos.node().number());\n\t\tPos.insertchild(new TreeNode(n));\n\t\tn.main(Pos);\n\t\tgetinformation();\n\t\tPos = Pos.lastChild();\n\t\tsetlast();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"public static native Element insertAfter(Element elem, Element sibling)/*-{\r\n\t\treturn $wnd.Ext.DomHelper.insertAfter(elem, sibling);\r\n\t}-*/;",
"public abstract Position<E> insertRightSibling(Position<E> p, E e);",
"public void insert(int pos, int data){\n\t\tif (pos == 0){\n\t\t\tpreappend(data);\n\t\t\treturn;\n\t\t}\n\n\t\tNode newNode = new Node(data);\n\t\tNode prev = this.head;\n\t\tNode current = prev;\n\t\tint counter = 0;\n\t\twhile(current != null){\n\t\t\tcurrent = current.next;\n\t\t\tcounter++;\n\t\t\tif (counter == pos){\n\t\t\t\tprev.next = newNode;\n\t\t\t\tnewNode.next = current;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (prev.next != null){\n\t\t\t\tprev = prev.next;\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Position larger then linkedlist so add to end\n\t\tprev.next = newNode;\n\t\treturn;\n\t}",
"public void insert(IndexRecord recordValue) {\n int j;\n for (j = next-1 ; j >=0 ; j--) {\n if (data[j].field.compareTo(recordValue.field) < 0) break;\n data[j+1] = data[j];\n }\n data[j+1] = recordValue;\n next++;\n }",
"@Override\r\n\tpublic void insert(FollowUp followup) {\n\t\t\r\n\t}",
"Position<T> addBefore(Position<T> p, T data) throws IllegalStateException;"
] | [
"0.7880999",
"0.692111",
"0.6881626",
"0.6699208",
"0.6685485",
"0.66037476",
"0.6553272",
"0.65226203",
"0.64800435",
"0.6471049",
"0.64052814",
"0.64028174",
"0.6339794",
"0.6329584",
"0.63259625",
"0.6303488",
"0.6276342",
"0.62330407",
"0.6232637",
"0.62293375",
"0.62246644",
"0.62192464",
"0.62136894",
"0.62073284",
"0.6206123",
"0.6195048",
"0.6187427",
"0.61819255",
"0.6179853",
"0.61797106",
"0.61738527",
"0.6133279",
"0.6102685",
"0.6088168",
"0.6086506",
"0.6081989",
"0.60803217",
"0.6079786",
"0.6077198",
"0.6062052",
"0.6060014",
"0.6038193",
"0.6018388",
"0.6015136",
"0.599499",
"0.59760034",
"0.5961234",
"0.5953524",
"0.5930277",
"0.5916511",
"0.5909267",
"0.5857996",
"0.58566487",
"0.58344764",
"0.58288616",
"0.58216673",
"0.58211577",
"0.5819724",
"0.581837",
"0.5816606",
"0.5813251",
"0.581255",
"0.5804719",
"0.58046395",
"0.58036906",
"0.5798642",
"0.57960457",
"0.5789498",
"0.57854563",
"0.57808524",
"0.5773908",
"0.57608086",
"0.5756989",
"0.575686",
"0.57345474",
"0.5734207",
"0.57330245",
"0.5732872",
"0.57328284",
"0.5728947",
"0.57246125",
"0.57233274",
"0.5722455",
"0.5722164",
"0.57193005",
"0.5714643",
"0.5710404",
"0.5708126",
"0.5705509",
"0.5704655",
"0.5697631",
"0.56846386",
"0.56841725",
"0.5681707",
"0.56803656",
"0.56786937",
"0.56727093",
"0.5668211",
"0.5668096",
"0.56665725"
] | 0.6847356 | 3 |
/ SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(); simpleRetryPolicy.setMaxAttempts(3); | private RetryPolicy simpleRetryPolicy() {
Map<Class<? extends Throwable>, Boolean> exceptionsMaps = new HashMap<>();
exceptionsMaps.put(RecoverableDataAccessException.class, true);
exceptionsMaps.put(IllegalArgumentException.class, false);
SimpleRetryPolicy simpleRetryPolicy = new SimpleRetryPolicy(3, exceptionsMaps, true);
return simpleRetryPolicy;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public RetryPolicy getRetryPolicy() {\n return super.getRetryPolicy();\n }",
"@Override\n public RetryPolicy getRetryPolicy() {\n return super.getRetryPolicy();\n }",
"protected int retryLimit() {\n return DEFAULT_RETRIES;\n }",
"static RetryPolicy getDefaultRetry() {\n return new ExponentialBackoffRetry(\n CuratorUtils.DEFAULT_CURATOR_POLL_DELAY_MS, CuratorUtils.DEFAULT_CURATOR_MAX_RETRIES);\n }",
"protected short maxRetries() { return 15; }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\r\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry ( int retryNo){\n }",
"@Override\n public void onRetry ( int retryNo){\n }",
"@Override\n public void onRetry ( int retryNo){\n }",
"@Override\r\n public void onRetry(int retryNo) {\n }",
"public Resender(RetryPolicy retryPolicy) {\n this.retryPolicy = retryPolicy;\n }",
"public int getRequestRetryCount() {\n \t\treturn 1;\n \t}",
"public abstract long retryAfter();",
"@Override\r\n public void onRetry(int retryNo) {\n }",
"@Override\r\n public void onRetry(int retryNo) {\n }",
"@Override\r\n public void onRetry(int retryNo) {\n }",
"void doRetry();",
"public DefaultHttpRequestRetryHandler() {\n this(3);\n }",
"int getSleepBeforeRetry();",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"@Override\n public void onRetry(int retryNo) {\n }",
"public interface RetryCallback {\n void retry();\n}",
"public interface IRetryPolicy {\n // this capture all the retry logic\n // TODO: design decision should this return a single or an observable?\n\n /// <summary>\n /// Method that is called to determine from the policy that needs to retry on the exception\n /// </summary>\n /// <param name=\"exception\">Exception during the callback method invocation</param>\n /// <param name=\"cancellationToken\"></param>\n /// <returns>If the retry needs to be attempted or not</returns>\n Mono<ShouldRetryResult> shouldRetry(Exception e);\n\n int getRetryCount();\n\n void incrementRetry();\n\n void captureStartTimeIfNotSet();\n\n void updateEndTime();\n\n Duration getRetryLatency();\n\n Instant getStartTime();\n\n Instant getEndTime();\n\n void addStatusAndSubStatusCode(Integer index, int statusCode, int subStatusCode);\n\n List<int[]> getStatusAndSubStatusCodes();\n\n \n}",
"boolean allowRetry(int retry, long startTimeOfExecution);",
"public native void setDefaultRetryTimeout (long retryTimeout) throws IOException,IllegalArgumentException;",
"public interface RetryPolicy {\n\n /**\n * Returns duration till the next retry attempt.\n *\n * @param nextAttemptNumber next attempt number\n * @return {@link Optional} of Duration till the next attempt,\n * or {@link Optional#empty()} if next attempt shouldn't be made\n */\n Optional<Duration> durationToNextTry(int nextAttemptNumber);\n}",
"public interface OnRetryListener {\n void onRetry();\n}",
"private void backoff(int retries) {\n try {\n sleep(SECONDS.toMillis((long) (getBasicBackoffTimeInSeconds() * pow(2, retries - 1))));\n } catch (InterruptedException e) {\n // continue\n }\n }",
"public void setMaxRetryAttempt(final Integer maxRetryAttempt) {\n\t\tthis.maxRetryAttempt = maxRetryAttempt;\n\t}",
"int getRetries();",
"@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }",
"void sendRetryMessage(int retryNo);",
"Integer totalRetryAttempts();",
"private void backoff() {\n nextSleep *= 2;\n if (nextSleep > MAX_SLEEP) nextSleep = MAX_SLEEP;\n try {\n Thread.sleep(nextSleep);\n } catch (InterruptedException e) {\n }\n }",
"public RetryOptions(){\n this(DEFAULT_SHOULD_RETRY, DEFAULT_MAX_RETRIES, DEFAULT_DELAY);\n }",
"public void onTryFails(int currentRetryCount, Exception e) {}",
"@Override\n\t\tpublic boolean isRetry() { return true; }",
"public void incrementRetryCount() {\n this.retryCount++;\n }",
"@Override\n public int getRetryDelay() {\n return retryDelay;\n }",
"public _cls_cs_retries0() {\r\n}",
"public void setRecoveryRetries(int retries);",
"static public void setMaxAsyncPollingRetries(int maxRetries) {\n maxAsyncPollingRetries = maxRetries;\n }",
"public int getRetryTimeoutInSeconds() {\n return retryTimeoutInSeconds;\n }",
"public void setSocketRetries(int retries);",
"public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}",
"private void retry() {\n if (catalog == null) {\n if (--retries < 0) {\n inactive = true;\n pendingRequests.clear();\n log.error(\"Maximum retries exceeded while attempting to load catalog for endpoint \" + discoveryEndpoint\n + \".\\nThis service will be unavailabe.\");\n } else {\n try {\n sleep(RETRY_INTERVAL * 1000);\n _loadCatalog();\n } catch (InterruptedException e) {\n log.warn(\"Thread for loading CDS Hooks catalog for \" + discoveryEndpoint + \"has been interrupted\"\n + \".\\nThis service will be unavailable.\");\n }\n }\n }\n }",
"@Override\n public void onRetry(int retryNo) {\n super.onRetry(retryNo);\n // 返回重试次数\n }",
"@Override\n\t\tpublic boolean isRetry() { return false; }",
"void onRetryAuthentication();",
"@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }",
"@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }",
"@Override\n public void onRetry(int retryNo) {\n Log.d(\"AsyncAndro\", \"AsyncAndroid retryNo:\" + retryNo);\n }",
"public void setRetryCount( int retries ) {\n numberRetries = retries;\n }",
"@Test\n public void addPerCallPolicy() {\n KeyVaultAccessControlAsyncClient keyVaultAccessControlAsyncClient = new KeyVaultAccessControlClientBuilder()\n .vaultUrl(vaultUrl)\n .credential(new TestUtils.TestCredential())\n .addPolicy(new TestUtils.PerCallPolicy())\n .addPolicy(new TestUtils.PerRetryPolicy())\n .buildAsyncClient();\n\n HttpPipeline pipeline = keyVaultAccessControlAsyncClient.getHttpPipeline();\n\n int retryPolicyPosition = -1, perCallPolicyPosition = -1, perRetryPolicyPosition = -1;\n\n for (int i = 0; i < pipeline.getPolicyCount(); i++) {\n if (pipeline.getPolicy(i).getClass() == RetryPolicy.class) {\n retryPolicyPosition = i;\n }\n\n if (pipeline.getPolicy(i).getClass() == TestUtils.PerCallPolicy.class) {\n perCallPolicyPosition = i;\n }\n\n if (pipeline.getPolicy(i).getClass() == TestUtils.PerRetryPolicy.class) {\n perRetryPolicyPosition = i;\n }\n }\n\n assertTrue(perCallPolicyPosition != -1);\n assertTrue(perCallPolicyPosition < retryPolicyPosition);\n assertTrue(retryPolicyPosition < perRetryPolicyPosition);\n }",
"private void sleepNoNetwork(int maxRetryCount, int retryTimeout, int k) {\n Long interval = (long) retryTimeout * 1000;\n AnaplanJdbcRetryer anaplanJdbcRetryer = new AnaplanJdbcRetryer((long) (retryTimeout * 1000),\n (long) Constants.MAX_RETRY_TIMEOUT_SECS * 1000,\n FeignApiRetryer.DEFAULT_BACKOFF_MULTIPLIER);\n if (k > 1) {\n interval = anaplanJdbcRetryer.nextMaxInterval(k - 1);\n }\n if (k < maxRetryCount) {\n LOG.info(\"Attempt {} : Could not connect to the database! Will retry in {} seconds \", k, interval / 1000);\n try {\n Thread.sleep(interval);\n } catch (InterruptedException e1) {\n // we still want to retry, even though sleep was interrupted\n LOG.debug(\"Sleep was interrupted.\" + e1);\n }\n }\n if (k == maxRetryCount) {\n LOG.info(\"Attempt {} : Could not connect to the database! Max connection attempts reached..\", k);\n }\n }",
"public void testGetPolicyWOptionsWRetries() throws Throwable {\n secretsManagerService.enableRetries(4, 30);\n testGetPolicyWOptions();\n\n // Disable retries and run testGetPolicyWOptions.\n secretsManagerService.disableRetries();\n testGetPolicyWOptions();\n }",
"@Override\npublic boolean retry(ITestResult result) {\n\tif(minretryCount<=maxretryCount){\n\t\t\n\t\tSystem.out.println(\"Following test is failing====\"+result.getName());\n\t\t\n\t\tSystem.out.println(\"Retrying the test Count is=== \"+ (minretryCount+1));\n\t\t\n\t\t//increment counter each time by 1 \n\t\tminretryCount++;\n\n\t\treturn true;\n\t}\n\treturn false;\n}",
"void requestRateLimited();",
"public Integer getMaxRetryAttempt() {\n\t\treturn maxRetryAttempt;\n\t}",
"public static HttpRequestRetryHandler getRetryHandler(final String... details) throws JSONException {\n\t\treturn new HttpRequestRetryHandler() {\n\t\t\t@Override\n\t\t\tpublic boolean retryRequest(IOException exception, int executionCount, HttpContext httpContext) {\n\t\t\t\tLOGGER.info(\"Request Execution no: \" + executionCount);\n\t\t\t\t// System.out.println(\"Request Execution no: \"+executionCount);\n\t\t\t\tif (executionCount >= 5) {\n\t\t\t\t\tLOGGER.info(\"Aborting Request retry using Job Schedular\");\n\t\t\t\t\tSystem.out.println(details);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tLOGGER.info(\"Retrying request...\");\n\t\t\t\t// System.out.println(\"Retrying request...\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t};\n\t}",
"int getRetryCount() {\n return retryCount;\n }",
"public boolean isRetry();",
"protected int getMaxRetries()\n {\n return heartbeat.getMaxRetries();\n }",
"public static void setRetryCount(int count) {\n logger.debug(\"The retry count value is {}\", count);\n retryCount = count;\n }",
"protected abstract void onMaxAttempts(final Exception exception);",
"void retry(Task task);",
"public int getRetryCount() {\n return this.retryCount;\n }",
"@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }",
"static public int getMaxAsyncPollingRetries() {\n return maxAsyncPollingRetries;\n }",
"private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }",
"protected int maxTimeout() { return 15*1000*1000; }",
"public void setRetryMaxDelay(long retryMaxDelay) {\n this.retryMaxDelay = retryMaxDelay;\n }",
"public void setRetryTimeoutInSeconds(int retryTimeoutInSeconds) {\n this.retryTimeoutInSeconds = retryTimeoutInSeconds;\n }",
"public int getRetryCount() {\n return retryCount;\n }",
"public int getRetryCount() {\n return retryCount;\n }",
"public void setMaxattempts(int maxattempts) {\n this.maxattempts = maxattempts;\n }",
"@Test\n @MediumTest\n @DisabledTest(message = \"crbug.com/1182234\")\n @Feature({\"Payments\"})\n public void testRetryWithDefaultError() throws TimeoutException {\n mPaymentRequestTestRule.triggerUIAndWait(\"buy\", mPaymentRequestTestRule.getReadyForInput());\n mPaymentRequestTestRule.clickAndWait(\n R.id.button_primary, mPaymentRequestTestRule.getReadyForUnmaskInput());\n mPaymentRequestTestRule.setTextInCardUnmaskDialogAndWait(\n R.id.card_unmask_input, \"123\", mPaymentRequestTestRule.getReadyToUnmask());\n mPaymentRequestTestRule.clickCardUnmaskButtonAndWait(\n ModalDialogProperties.ButtonType.POSITIVE,\n mPaymentRequestTestRule.getPaymentResponseReady());\n\n mPaymentRequestTestRule.retryPaymentRequest(\"{}\", mPaymentRequestTestRule.getReadyToPay());\n\n Assert.assertEquals(\n mPaymentRequestTestRule.getActivity().getString(R.string.payments_error_message),\n mPaymentRequestTestRule.getRetryErrorMessage());\n }",
"@Override\n public void onRetry(HttpRequest req, String reason) {\n\n }",
"@Test\n public void eternal_retry10s() {\n Cache<Integer, Integer> c = new Cache2kBuilder<Integer, Integer>() {}\n .eternal(true)\n .retryInterval(10, TimeUnit.SECONDS)\n /* ... set loader ... */\n .build();\n target.setCache(c);\n DefaultResiliencePolicy p = extractDefaultPolicy();\n assertEquals(0, p.getResilienceDuration());\n assertEquals(TimeUnit.SECONDS.toMillis(10), p.getMaxRetryInterval());\n assertEquals(TimeUnit.SECONDS.toMillis(10), p.getRetryInterval());\n }",
"public void decRetryCount() {\n\t\tint cont = getRetryCount(); \n\t\tif (cont > 0) cont--;\n\t\tsetRetryCount(cont);\n\t}",
"private BackoffResult doBackoff() {\n if (attempt >= maxAttempts) {\n return BackoffResults.EXHAUSTED;\n }\n // Maximum cumulative backoff reached.\n if (cumulativeBackoff.compareTo(MAX_CUMULATIVE_BACKOFF) >= 0) {\n return BackoffResults.EXHAUSTED;\n }\n\n double currentIntervalMillis =\n Math.min(\n initialBackoff.getMillis() * Math.pow(1.5, attempt - 1), MAX_BACKOFF.getMillis());\n double randomOffset =\n (rand.nextDouble() * 2 - 1) * RANDOMIZATION_FACTOR * currentIntervalMillis;\n long nextBackoffMillis = Math.round(currentIntervalMillis + randomOffset);\n // Cap to limit on cumulative backoff\n Duration remainingCumulative = MAX_CUMULATIVE_BACKOFF.minus(cumulativeBackoff);\n nextBackoffMillis = Math.min(nextBackoffMillis, remainingCumulative.getMillis());\n\n // Update state and return backoff.\n cumulativeBackoff = cumulativeBackoff.plus(Duration.millis(nextBackoffMillis));\n attempt += 1;\n return new BackoffDuration(Duration.millis(nextBackoffMillis));\n }",
"@Test\n public void testRetryLimitProperty() {\n assertEquals(3, rc.getRetryLimit());\n }",
"protected long getRetryPeriod()\n {\n return heartbeat.getPulsePeriod();\n }",
"public int getRecoveryRetries();",
"public void setRetryDelay(long retryDelay) {\n this.retryDelay = retryDelay;\n }",
"private void waitBeforeNextConnectAttempt(final int attempts) {\n\t\tfinal String METHOD = \"waitBeforeNextConnectAttempt\";\n\t\t// Log when throttle boundaries are reached\n\t\tif (attempts == THROTTLE_3) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, String.valueOf(attempts) + \n\t\t\t\t\t\" consecutive failed attempts to connect. Retry delay increased to \" + String.valueOf(RATE_3) + \"ms\");\n\t\t}\n\t\telse if (attempts == THROTTLE_2) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, String.valueOf(attempts) + \n\t\t\t\t\t\" consecutive failed attempts to connect. Retry delay increased to \" + String.valueOf(RATE_2) + \"ms\");\n\t\t}\n\t\telse if (attempts == THROTTLE_1) {\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, String.valueOf(attempts) + \n\t\t\t\t\t\" consecutive failed attempts to connect. Retry delay set to \" + String.valueOf(RATE_1) + \"ms\");\n\t\t}\n\n\t\ttry {\n\t\t\tlong delay = RATE_0;\n\t\t\tif (attempts >= THROTTLE_3) {\n\t\t\t\tdelay = RATE_3;\n\t\t\t} else if (attempts >= THROTTLE_2) {\n\t\t\t\tdelay = RATE_2;\n\t\t\t} else if (attempts >= THROTTLE_1) {\n\t\t\t\tdelay = RATE_1;\n\t\t\t}\n\t\t\tThread.sleep(delay);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void setRetryMaxDuration(Duration retryMaxDuration) {\n this.retryMaxDuration = retryMaxDuration;\n }",
"@IntRange(from = 0L) long interval(int retryCount, long elapsedTime);",
"com.google.protobuf.Duration getMaximumBackoff();",
"public int getRetryCount() {\n return numberRetries;\n }",
"public void retryRequired(){\n startFetching(query);\n }",
"public DefaultHttpRequestRetryHandler(final int retryCount) {\n this(retryCount,\n InterruptedIOException.class,\n UnknownHostException.class,\n ConnectException.class,\n ConnectionClosedException.class,\n SSLException.class);\n }"
] | [
"0.73712415",
"0.73712415",
"0.689617",
"0.6896096",
"0.6757981",
"0.66719115",
"0.6525613",
"0.646714",
"0.646714",
"0.646714",
"0.64404476",
"0.64363205",
"0.6386163",
"0.63442826",
"0.63393915",
"0.63393915",
"0.63393915",
"0.63381076",
"0.6328039",
"0.63146305",
"0.6268445",
"0.6268445",
"0.6268445",
"0.6268445",
"0.6268445",
"0.6268445",
"0.6268445",
"0.6268445",
"0.6268445",
"0.6239319",
"0.61937743",
"0.6156973",
"0.6136783",
"0.6134254",
"0.6131308",
"0.6106072",
"0.6027831",
"0.6010711",
"0.6010664",
"0.5898744",
"0.58948064",
"0.58849984",
"0.58775306",
"0.58412236",
"0.5811959",
"0.5756785",
"0.5740506",
"0.57201606",
"0.57185096",
"0.5712735",
"0.5712067",
"0.5707827",
"0.56999266",
"0.56983316",
"0.56905544",
"0.5683558",
"0.56504375",
"0.5648719",
"0.5648719",
"0.5648719",
"0.56297076",
"0.56233484",
"0.5620331",
"0.56135297",
"0.5605283",
"0.5557971",
"0.5557668",
"0.55481017",
"0.5547759",
"0.554331",
"0.55077106",
"0.54956853",
"0.5488793",
"0.54796016",
"0.54708236",
"0.54621536",
"0.54617167",
"0.5451058",
"0.54288906",
"0.5417896",
"0.5406194",
"0.5403247",
"0.5403247",
"0.5402827",
"0.5396483",
"0.53904164",
"0.5377542",
"0.53618205",
"0.53612214",
"0.5354659",
"0.5353438",
"0.53516257",
"0.5350889",
"0.5316605",
"0.53089297",
"0.5304897",
"0.5278781",
"0.5272846",
"0.52569693",
"0.52508926"
] | 0.80151874 | 0 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
getActivity().setTitle("Car Status");
v=inflater.inflate(R.layout.fragment_status, container, false);
listView = (ListView) v.findViewById(R.id.obdReadingsList);
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
firebaseManager.L_ReadingsRef.addChildEventListener(new ChildEventListener() {
@Override
public void onChildAdded(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onChildChanged(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onChildRemoved(@NonNull DataSnapshot dataSnapshot) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onChildMoved(@NonNull DataSnapshot dataSnapshot, @Nullable String s) {
arrayList.clear();
arrayList.add("Engine Load: \n"+firebaseManager.L_ENGINE_LOAD);
arrayList.add("RPM: \n"+firebaseManager.L_RPM);
arrayList.add("Speed: \n"+firebaseManager.L_SPEED);
arrayList.add("Throttle Position: \n"+firebaseManager.L_THROTTLE_POS);
arrayList.add("Coolant Temperature: \n"+firebaseManager.L_COOLANT_TEMP);
arrayList.add("Fuel Pressure: \n"+firebaseManager.L_FUEL_PRESSURE);
arrayList.add("Intake Pressure: \n"+firebaseManager.L_INTAKE_PRESSURE);
arrayList.add("Timing Advance: \n"+firebaseManager.L_TIMING_ADVANCE);
arrayList.add("Air Flow Rate: \n"+firebaseManager.L_MAF);
arrayList.add("Fuel Level: \n"+firebaseManager.L_FUEL_LEVEL);
arrayList.add("Fuel Type: \n"+firebaseManager.L_FUEL_TYPE);
arrayList.add("Oil Temperature: \n"+firebaseManager.L_OIL_TEMP);
arrayList.add("Fuel Inject Timing \n"+firebaseManager.L_FUEL_INJECT_TIMING);
arrayList.add("Engine Fuel Rate: \n"+firebaseManager.L_FUEL_RATE);
arrayAdapter = new ArrayAdapter<String>(getContext(), android.R.layout.simple_list_item_1, arrayList);
listView.setAdapter(arrayAdapter);
}
@Override
public void onCancelled(@NonNull DatabaseError databaseError) {
}
});
return v;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
We always encode/decode utf8 strings | public static byte[] serialize(Packet data) throws InvalidParameterException, UnsupportedEncodingException {
byte[] emitter = data.getEmitter().getBytes(ENCODING);
byte[] text = data.getText().getBytes(ENCODING);
if (emitter.length > Byte.MAX_VALUE) {
throw new InvalidParameterException("Emitter length exceeded");
}
if (text.length > Short.MAX_VALUE) {
throw new InvalidParameterException("Text length exceeded");
}
int size = MIN_SIZE + emitter.length + text.length;
ByteBuffer buffer = ByteBuffer.allocate(size)
.putInt(size)
.put(data.getType().code())
.putShort(data.getId())
.putLong(data.getTimestamp())
.put((byte) emitter.length)
.put(emitter)
.putShort((short) text.length)
.put(text);
return buffer.array();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public EncodeAndDecodeStrings() {}",
"protected String getUTF8Str(String str) throws UnsupportedEncodingException {\n return new String(str.getBytes(\"iso-8859-1\"), \"utf-8\");\r\n }",
"@org.junit.Test\n public void encodeDecode()\n {\n String test = \"just some \\t\\ftes\\rt\\u001B for decoding\\t and...\\n\";\n\n assertEquals(\"encode/decode\", test,\n Encodings.decodeEscapes(Encodings.encodeEscapes(test)));\n assertEquals(\"encode/decode\", \"\",\n Encodings.decodeEscapes(Encodings.encodeEscapes(null)));\n }",
"String decodeString();",
"public String encode(String str, String charsetName) throws UnsupportedEncodingException {\n/* 230 */ if (str == null) {\n/* 231 */ return null;\n/* */ }\n/* 233 */ return StringUtils.newStringUsAscii(encode(str.getBytes(charsetName)));\n/* */ }",
"public interface Encoding {\n String encode(String encodeValue);\n String decode(String encodedValue);\n}",
"public abstract void encodeUtf8Direct(CharSequence charSequence, ByteBuffer byteBuffer);",
"java.lang.String getEncoded();",
"private String UTF8Encode(String s) {\n\n\n s = s.replace(\"\\r\\n\", \"\\n\");\n int[] utftext = new int[s.length() * 3];\n int utftextlen = 0;\n for (int n = 0; n < s.length(); n++) {\n int c = s.charAt(n);\n if (c < 128) {\n utftext[utftextlen++] = c;\n Log.e(\"utf\", n + \" try:\" + c);\n } else if ((c > 127) && (c < 2048)) {\n utftext[utftextlen++] = (c >> 6) | 192;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 6) | 192));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n } else {\n utftext[utftextlen++] = (c >> 12) | 224;\n utftext[utftextlen++] = ((c >> 6) & 63) | 128;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 12) | 224));\n Log.e(\"utf\", n + \" try:\" + (((c >> 6) & 63) | 128));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n }\n\n }\n int i = 0;\n char chr1, chr2, chr3;\n int enc1, enc2, enc3, enc4;\n StringBuilder string = new StringBuilder();\n while (i < utftextlen) {\n chr1 = (char) utftext[i++];\n chr2 = (char) utftext[i++];\n chr3 = (char) utftext[i++];\n enc1 = chr1 >> 2;\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n enc4 = chr3 & 63;\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n string.append(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4));\n }\n string.append(\"\");\n return string.toString();\n }",
"public interface ExtraEncoding {\n \n /**\n * Converts an Unicode string to a byte array according to some encoding.\n * @param text the Unicode string\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(String text, String encoding);\n \n /**\n * Converts an Unicode char to a byte array according to some encoding.\n * @param char1 the Unicode char\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */ \n public byte[] charToByte(char char1, String encoding);\n \n /**\n * Converts a byte array to an Unicode string according to some encoding.\n * @param b the input byte array\n * @param encoding the requested encoding. It's mainly of use if the same class\n * supports more than one encoding.\n * @return the conversion or <CODE>null</CODE> if no conversion is supported\n */\n public String byteToChar(byte b[], String encoding); \n}",
"public String getStringEncoding()\n\t{\n\t\treturn \"utf-8\";\n\t}",
"private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}",
"public void convertToUTF8() {\n FileInputStream istream = null;\n Writer out = null;\n try {\n istream = new FileInputStream(path);\n BufferedInputStream in = new BufferedInputStream(istream);\n CharsetDecoder charsetDecoder = Charset.forName(\"UTF-8\").newDecoder();\n charsetDecoder.onMalformedInput(CodingErrorAction.REPLACE);\n charsetDecoder.onUnmappableCharacter(CodingErrorAction.REPLACE);\n Reader inputReader = new InputStreamReader(in, charsetDecoder);\n StringWriter writer = new StringWriter();\n IOUtils.copy(inputReader, writer);\n String theString = writer.toString();\n FileUtils.deleteQuietly(new File(path));\n out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(path), \"UTF-8\"));\n out.write(theString);\n out.close();\n// System.out.println(\"\");\n } catch (FileNotFoundException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n } catch (IOException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n } finally {\n try {\n if (out != null) {\n out.close();\n }\n if (istream != null) {\n istream.close();\n }\n } catch (IOException ex) {\n logger.error(\"Error converting the file to utf8\", ex);\n }\n }\n\n }",
"public static String isoToUTF8(String value) throws Exception{\n \treturn value;\n\t}",
"public final void encodeUtf8(CharSequence in, ByteBuffer out) {\n if (out.hasArray()) {\n int offset = out.arrayOffset();\n out.position(Utf8.encode(in, out.array(), out.position() + offset, out.remaining()) - offset);\n } else if (out.isDirect()) {\n encodeUtf8Direct(in, out);\n } else {\n encodeUtf8Default(in, out);\n }\n }",
"protected byte[] encodeString(String in) {\n\t\tbyte[] rv = null;\n\t\ttry {\n\t\t\trv = in.getBytes(charset);\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t\treturn rv;\n\t}",
"private String encodeValue(String value) {\r\n try {\r\n return URLEncoder.encode(value, \"UTF8\");\r\n } catch (UnsupportedEncodingException e) {\r\n // it should not occur since UTF8 should be supported universally\r\n throw new ExcelWrapperException(\"UTF8 encoding is not supported : \" + e.getMessage());\r\n }\r\n }",
"@Override // com.google.protobuf.Utf8.Processor\n public int encodeUtf8(CharSequence in, byte[] out, int offset, int length) {\n char c;\n int utf16Length = in.length();\n int i = 0;\n int limit = offset + length;\n while (i < utf16Length && i + offset < limit && (c = in.charAt(i)) < 128) {\n out[offset + i] = (byte) c;\n i++;\n }\n if (i == utf16Length) {\n return offset + utf16Length;\n }\n int j = offset + i;\n while (i < utf16Length) {\n char c2 = in.charAt(i);\n if (c2 < 128 && j < limit) {\n out[j] = (byte) c2;\n j++;\n } else if (c2 < 2048 && j <= limit - 2) {\n int j2 = j + 1;\n out[j] = (byte) ((c2 >>> 6) | 960);\n j = j2 + 1;\n out[j2] = (byte) ((c2 & '?') | 128);\n } else if ((c2 < 55296 || 57343 < c2) && j <= limit - 3) {\n int j3 = j + 1;\n out[j] = (byte) ((c2 >>> '\\f') | 480);\n int j4 = j3 + 1;\n out[j3] = (byte) (((c2 >>> 6) & 63) | 128);\n out[j4] = (byte) ((c2 & '?') | 128);\n j = j4 + 1;\n } else if (j <= limit - 4) {\n if (i + 1 != in.length()) {\n i++;\n char low = in.charAt(i);\n if (Character.isSurrogatePair(c2, low)) {\n int codePoint = Character.toCodePoint(c2, low);\n int j5 = j + 1;\n out[j] = (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE);\n int j6 = j5 + 1;\n out[j5] = (byte) (((codePoint >>> 12) & 63) | 128);\n int j7 = j6 + 1;\n out[j6] = (byte) (((codePoint >>> 6) & 63) | 128);\n j = j7 + 1;\n out[j7] = (byte) ((codePoint & 63) | 128);\n }\n }\n throw new UnpairedSurrogateException(i - 1, utf16Length);\n } else if (55296 > c2 || c2 > 57343 || (i + 1 != in.length() && Character.isSurrogatePair(c2, in.charAt(i + 1)))) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + c2 + \" at index \" + j);\n } else {\n throw new UnpairedSurrogateException(i, utf16Length);\n }\n i++;\n }\n return j;\n }",
"public String encode(String str) throws EncoderException {\n/* 249 */ if (str == null) {\n/* 250 */ return null;\n/* */ }\n/* */ try {\n/* 253 */ return encode(str, getDefaultCharset());\n/* 254 */ } catch (UnsupportedEncodingException e) {\n/* 255 */ throw new EncoderException(e.getMessage(), e);\n/* */ } \n/* */ }",
"@Override\n public void setCharacterEncoding(String arg0) {\n\n }",
"@Override // com.google.protobuf.Utf8.Processor\n public void encodeUtf8Direct(CharSequence in, ByteBuffer out) {\n encodeUtf8Default(in, out);\n }",
"String getEncoding();",
"public static String convertFromUTF8(String s) {\n String out = null;\n try {\n out = new String(s.getBytes(\"ISO-8859-1\"), \"UTF-8\");\n } catch (Exception e) {\n\n return null;\n }\n return out;\n }",
"public abstract int encodeUtf8(CharSequence charSequence, byte[] bArr, int i, int i2);",
"private ByteBuffer encode(String str) {\n ByteBuffer bb = null;\n CharsetEncoder isoencoder = UTF8.newEncoder();\n try {\n bb = isoencoder.encode(CharBuffer.wrap(str));\n } catch (CharacterCodingException e) {\n log.error(e);\n }\n return bb;\n }",
"public interface Encoding {\n\t/**\n\t * Encoding a string.\n\t * \n\t * @param source\n\t * @return The encoded string\n\t * @throws Exception\n\t */\n\tpublic String encode(String source) throws Exception;\n\n\t/**\n\t * Decoding a string.\n\t * \n\t * @param source\n\t * @return The decoded string\n\t * @throws Exception\n\t */\n\tpublic String decode(String source) throws Exception;\n\n}",
"public static String convertToUTF8(String s) {\n String out = null;\n try {\n out = new String(s.getBytes(\"UTF-8\"), \"ISO-8859-1\");\n } catch (java.io.UnsupportedEncodingException e) {\n return null;\n }\n return out;\n }",
"public static String GetUtfString(String strTran) throws UnsupportedEncodingException {\n\n if(strTran.equals(new String(strTran.getBytes(\"iso8859-1\"), \"iso8859-1\")))\n {\n strTran=new String(strTran.getBytes(\"iso8859-1\"),\"utf-8\");\n }\n return strTran;\n }",
"public static String convertToUTF8(String s) {\n\n String out = null;\n\n try {\n\n out = new String(s.getBytes(\"UTF-8\"), \"ISO-8859-1\");\n\n } catch (java.io.UnsupportedEncodingException e) {\n\n return null;\n }\n\n return out;\n }",
"private String urlEncode(String str) {\n String charset = StandardCharsets.UTF_8.name();\n try {\n return URLEncoder.encode(str, charset);\n } catch (UnsupportedEncodingException e) {\n JrawUtils.logger().error(\"Unsupported charset: \" + charset);\n return null;\n }\n }",
"public static String utf8Encode(String str, String defultReturn) {\n if (!isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }",
"@Override\n public String getCharacterEncoding() {\n return null;\n }",
"public void setCharacterEncoding(String s) {\n\n\t}",
"public static String encode(String str) throws UnsupportedEncodingException {\n return encode(str, \"utf-8\");\n }",
"public static String encodeString(String s) throws UnsupportedEncodingException {\r\n \t\treturn new String(encode(s.getBytes(\"UTF-8\")));\r\n \t}",
"public static String utf8Encode(String str, String defultReturn) {\n if (!TextUtils.isEmpty(str) && str.getBytes().length != str.length()) {\n try {\n return URLEncoder.encode(str, \"UTF-8\");\n } catch (UnsupportedEncodingException e) {\n return defultReturn;\n }\n }\n return str;\n }",
"public String getJavaEncoding();",
"@Override\n public boolean isUnicode()\n {\n return true;\n }",
"String getContentEncoding();",
"@Override\r\n\t\tpublic String encode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar content[] = str.toCharArray();\r\n\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(content.length);\r\n\t\t\tfor (int i = 0; i < content.length; i++) {\r\n\t\t\t\tswitch (content[i]) {\r\n\t\t\t\t\tcase '<':\r\n\t\t\t\t\t\tresult.append(\"<\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '>':\r\n\t\t\t\t\t\tresult.append(\">\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '&':\r\n\t\t\t\t\t\tresult.append(\"&\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\"':\r\n\t\t\t\t\t\tresult.append(\""\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase '\\'':\r\n\t\t\t\t\t\tresult.append(\"'\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tresult.append(content[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn (result.toString());\r\n\t\t}",
"@Override\r\n\t\tpublic String decode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar cs[] = (str).toCharArray();\r\n\t\t\t\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(cs.length);\r\n\t\t\tfor (int i = 0, ci = cs.length; i < ci; i++) {\r\n\t\t\t\tif(cs[i] == '&') {\r\n\t\t\t\t\tif(i < ci - 3 && cs[i + 1] == 'l' && cs[i + 2] == 't' && cs[i + 3] == ';'){\r\n\t\t\t\t\t\ti += 3;\r\n\t\t\t\t\t\tresult.append('<');\r\n\t\t\t\t\t}else if(i < ci - 3 && cs[i + 1] == 'g' && cs[i + 2] == 't' && cs[i + 3] == ';'){\r\n\t\t\t\t\t\ti += 3;\r\n\t\t\t\t\t\tresult.append('>');\r\n\t\t\t\t\t}else if(i < ci - 4 && cs[i + 1] == 'a' && cs[i + 2] == 'm' && cs[i + 3] == 'p' && cs[i + 4] == ';'){\r\n\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\tresult.append('&');\r\n\t\t\t\t\t}else if(i < ci - 5 && cs[i + 1] == 'a' && cs[i + 2] == 'p' && cs[i + 3] == 'o' && cs[i + 4] == 's' && cs[i + 5] == ';'){\r\n\t\t\t\t\t\ti += 5;\r\n\t\t\t\t\t\tresult.append('\\'');\r\n\t\t\t\t\t}else if(i < ci - 5 && cs[i + 1] == 'q' && cs[i + 2] == 'u' && cs[i + 3] == 'o' && cs[i + 4] == 't' && cs[i + 5] == ';'){\r\n\t\t\t\t\t\ti += 5;\r\n\t\t\t\t\t\tresult.append('\"');\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn result.toString();\r\n\t\t}",
"public String encode(String text) {\n\t\t// TODO fill this in.\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 0; i < text.length(); i++) {\n\t\t\tsb.append(encodingTable.get(text.charAt(i)));\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static String getUTF8XMLString(String xml) {\r\n\t\tString xmlUTF8 = \"\";\r\n\t\ttry {\r\n\t\t\txmlUTF8 = URLEncoder.encode(xml, \"utf-8\");\r\n\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn xmlUTF8;\r\n\t}",
"@Override\n\t\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\t\n\t\t}",
"public static String encode(String str)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn java.net.URLEncoder.encode(str, \"UTF-8\");\r\n\t\t}\r\n\t\tcatch(java.io.UnsupportedEncodingException ue)\r\n\t\t{\r\n\t\t\treturn str;\r\n\t\t}\r\n\t}",
"public static String getUTF8String(String xml) {\n // A StringBuffer Object\n StringBuffer sb = new StringBuffer();\n sb.append(xml);\n String str = \"\";\n String strUTF8=\"\";\n try {\n str = new String(sb.toString().getBytes(\"utf-8\"));\n strUTF8 = URLEncoder.encode(str, \"utf-8\");\n } catch (UnsupportedEncodingException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n // return to String Formed\n return strUTF8;\n }",
"private static String urlEncode(String toEncode) throws UnsupportedEncodingException{\r\n\t\treturn URLEncoder.encode(toEncode, \"UTF-8\");\r\n\t}",
"protected byte[] stringToByte_8859_1(String str) throws SaslException {\n char[] buffer = str.toCharArray();\n try {\n if (useUTF8) {\n for (int i = 0; i < buffer.length; i++) {\n if (buffer[i] > 'ÿ') {\n return str.getBytes(\"UTF8\");\n }\n }\n }\n return str.getBytes(\"8859_1\");\n } catch (UnsupportedEncodingException e) {\n throw new SaslException(\"cannot encode string in UTF8 or 8859-1 (Latin-1)\", e);\n }\n }",
"@Override // com.google.protobuf.Utf8.Processor\n public void encodeUtf8Direct(CharSequence in, ByteBuffer out) {\n char c;\n long j;\n long outIx;\n long outLimit;\n long outIx2;\n char c2;\n long address = addressOffset(out);\n long outIx3 = ((long) out.position()) + address;\n long outLimit2 = ((long) out.limit()) + address;\n int inLimit = in.length();\n if (((long) inLimit) <= outLimit2 - outIx3) {\n int inIx = 0;\n while (true) {\n c = 128;\n j = 1;\n if (inIx < inLimit) {\n char c3 = in.charAt(inIx);\n if (c3 >= 128) {\n break;\n }\n UNSAFE.putByte(outIx3, (byte) c3);\n inIx++;\n outIx3 = 1 + outIx3;\n } else {\n break;\n }\n }\n if (inIx == inLimit) {\n out.position((int) (outIx3 - address));\n return;\n }\n while (inIx < inLimit) {\n char c4 = in.charAt(inIx);\n if (c4 < c && outIx3 < outLimit2) {\n UNSAFE.putByte(outIx3, (byte) c4);\n outLimit = outLimit2;\n outIx3 += j;\n c2 = 128;\n outIx = 1;\n outIx2 = address;\n } else if (c4 >= 2048 || outIx3 > outLimit2 - 2) {\n outIx2 = address;\n if ((c4 < 55296 || 57343 < c4) && outIx3 <= outLimit2 - 3) {\n long outIx4 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((c4 >>> '\\f') | 480));\n long outIx5 = outIx4 + 1;\n UNSAFE.putByte(outIx4, (byte) (((c4 >>> 6) & 63) | 128));\n UNSAFE.putByte(outIx5, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n outIx3 = outIx5 + 1;\n c2 = 128;\n outIx = 1;\n } else if (outIx3 <= outLimit2 - 4) {\n if (inIx + 1 != inLimit) {\n inIx++;\n char low = in.charAt(inIx);\n if (Character.isSurrogatePair(c4, low)) {\n int codePoint = Character.toCodePoint(c4, low);\n outLimit = outLimit2;\n long outIx6 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE));\n long outIx7 = outIx6 + 1;\n UNSAFE.putByte(outIx6, (byte) (((codePoint >>> 12) & 63) | 128));\n long outIx8 = outIx7 + 1;\n c2 = 128;\n UNSAFE.putByte(outIx7, (byte) (((codePoint >>> 6) & 63) | 128));\n outIx = 1;\n outIx3 = outIx8 + 1;\n UNSAFE.putByte(outIx8, (byte) ((codePoint & 63) | 128));\n }\n }\n throw new UnpairedSurrogateException(inIx - 1, inLimit);\n } else if (55296 > c4 || c4 > 57343 || (inIx + 1 != inLimit && Character.isSurrogatePair(c4, in.charAt(inIx + 1)))) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + c4 + \" at index \" + outIx3);\n } else {\n throw new UnpairedSurrogateException(inIx, inLimit);\n }\n } else {\n outIx2 = address;\n long outIx9 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((c4 >>> 6) | 960));\n outIx3 = outIx9 + 1;\n UNSAFE.putByte(outIx9, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n c2 = 128;\n outIx = 1;\n }\n inIx++;\n c = c2;\n address = outIx2;\n outLimit2 = outLimit;\n j = outIx;\n }\n out.position((int) (outIx3 - address));\n return;\n }\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inLimit - 1) + \" at index \" + out.limit());\n }",
"@Override\n protected final String encode(String unencoded) {\n try {\n return StringUtils.isBlank(unencoded) ? \"\" : URLEncoder.encode(unencoded, \"UTF-8\");\n } catch (UnsupportedEncodingException ex) {\n java.util.logging.Logger.getLogger(PostRedirectGetWithCookiesFormHelperImpl.class.getName()).log(Level.SEVERE, null, ex);\n return unencoded;\n }\n }",
"private String getEncodedString(String original, String encoding_in, String encoding_out) {\r\n\t\tString encoded_string;\r\n\t\tif (encoding_in.compareTo(encoding_out) != 0) {\r\n\t\t\tbyte[] encoded_bytes;\r\n\t\t\ttry {\r\n\t\t\t\tencoded_bytes = original.getBytes(encoding_in);\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_in);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tencoded_string = new String(encoded_bytes, encoding_out);\r\n\t\t\t\treturn encoded_string;\r\n\t\t\t}\r\n\t\t\tcatch (UnsupportedEncodingException e) {\r\n\t\t\t\t//e.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"Unsupported Charset: \" + encoding_out);\r\n\t\t\t\treturn original;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn original;\r\n\t}",
"void writeUTF(String s) throws IOException;",
"@Override\n\tpublic void setCharacterEncoding(String env) throws UnsupportedEncodingException {\n\t\t\n\t}",
"public static String convertToUTF8(String s) {\n String converted = null;\n\n if (s != null) {\n byte[] bytes = new byte[s.length()];\n\n for (int i = 0; i < s.length(); i++) {\n bytes[i] = (byte) s.charAt(i);\n }\n\n try {\n converted = new String(bytes, \"UTF-8\");\n if (log.isDebugEnabled()) {\n log.debug(\"Converted '\" + s + \"' to UTF-8 '\" + converted + \"'.\");\n }\n } catch (UnsupportedEncodingException ue) {\n log.error(\"Unable to set UTF-8 character encoding for string '\" + s + \"'!\", ue);\n }\n }\n\n return converted;\n }",
"private byte[] getUTF8Bytes(String input) {\n\t\treturn input.getBytes(StandardCharsets.UTF_8);\n\t}",
"@Override\r\n\t\tpublic String encode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar content[] = str.toCharArray();\r\n\t\t\t\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(content.length);\r\n\t\t\tfor (int i = 0; i < content.length; i++) {\r\n\t\t\t\tswitch (content[i]) {\r\n\t\t\t\tcase '<':\r\n\t\t\t\t\tresult.append(\"<\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '>':\r\n\t\t\t\t\tresult.append(\">\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '&':\r\n\t\t\t\t\tresult.append(\"&\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '\"':\r\n\t\t\t\t\tresult.append(\""\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase '\\'':\r\n\t\t\t\t\tresult.append(\"'\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tresult.append(content[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn (result.toString());\r\n\t\t}",
"public byte[] getUTF8Bytes(String str) {\n\t try { return str.getBytes(\"UTF-8\"); } catch (Exception ex) { return null; }\n\t }",
"private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private static String guessAppropriateEncoding(CharSequence contents) {\n\t\tfor (int i = 0; i < contents.length(); i++) {\n\t\t\tif (contents.charAt(i) > 0xFF) {\n\t\t\t\treturn \"UTF-8\";\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public String getUtf(){\n return utf;\n }",
"public String getEncodedValue() throws UnsupportedEncodingException {\n return URLEncoder.encode(this.value, \"UTF-8\");\n }",
"@Override\n\t\tpublic byte[] convert(String s) {\n\t\t\treturn s.getBytes();\n\t\t}",
"public String readUTF() throws IOException;",
"public static String encode(String string){\n return encode(string.getBytes());\n }",
"public final String urlEncode() {\n\t\treturn urlEncode(UTF_8);\n\t}",
"public static String encode(String argStr) {\r\n\t\tString result = argStr;\r\n\t\ttry {\r\n\t\t\tif (result != null && !result.isEmpty()) {\r\n\t\t\t\tresult = URLDecoder.decode(result, UTF_8);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// ignore\r\n\t\t}\r\n\t\tresult = encodeExplicit(result);\r\n\t\treturn result;\r\n\t}",
"private static void encodeString(String in){\n\n\t\tString officalEncodedTxt = officallyEncrypt(in);\n\t\tSystem.out.println(\"Encoded message: \" + officalEncodedTxt);\n\t}",
"protected String convertToText(byte[] bytes) throws UnsupportedEncodingException {\r\n return convertToText(bytes, false);\r\n }",
"public void setEncoding(String e) {\n\t\tthis.encoding = e;\n\t}",
"@Test\n\tpublic void testJsonEncoding() throws IOException {\n\t\tvalidateEncodingHandling(\"UTF16BE.json\", Charsets.UTF_16BE, \"The\\uD801\\uDC37 Na\\uD834\\uDD1Em\\uD834\\uDD1Ee\\uD801\\uDC37\");\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.ISO_8859_1, \"³ for ?, ¿ for ?\");\n\t\t// Reading ISO8859-1 as UTF8 will result in mapping errors. This is expected and can't be avoided if the wrong encoding has been specified.\n\t\tvalidateEncodingHandling(\"ISO8859-1.json\", Charsets.UTF_8, \"� for ?, � for ?\");\n\t}",
"public String getDeclaredEncoding();",
"public String decode(String str, String charsetName) throws DecoderException, UnsupportedEncodingException {\n/* 276 */ if (str == null) {\n/* 277 */ return null;\n/* */ }\n/* 279 */ return new String(decode(StringUtils.getBytesUsAscii(str)), charsetName);\n/* */ }",
"public String encode(String pString, String charset) \n throws UnsupportedEncodingException \n {\n if (pString == null) {\n return null;\n }\n return new String(encode(pString.getBytes(charset)), US_ASCII);\n }",
"@Test\n public void testEncode() {\n LOGGER.info(\"testEncode\");\n final String actual = new AtomString().encode();\n final String expected = \"0:\";\n assertEquals(expected, actual);\n }",
"public static String encode(String string){\n\t\treturn new String(encode(string.getBytes()));\n\t}",
"public static String encode(String unencoded) {\r\n StringBuilder buffer = null;\r\n for (int i = 0; i < unencoded.length(); ++i) {\r\n String encS = XmlWriter.encoding.get(unencoded.charAt(i));\r\n if (encS != null) {\r\n if (buffer == null)\r\n buffer = new StringBuilder(unencoded.substring(0,i));\r\n buffer.append(encS);\r\n } else if (buffer != null)\r\n buffer.append(unencoded.charAt(i));\r\n }\r\n return (buffer == null) ? unencoded : buffer.toString();\r\n }",
"public static String inputToUTF8(InputStream input) {\n try {\n return org.apache.commons.io.IOUtils.toString(input, \"UTF-8\");\n } catch (IOException | NullPointerException e) {\n return \"\";\n }\n }",
"public void testSetEncoding_Normal() throws Exception {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n h.setEncoding(\"iso-8859-1\");\n assertEquals(\"iso-8859-1\", h.getEncoding());\n LogRecord r = new LogRecord(Level.INFO, \"\\u6881\\u884D\\u8F69\");\n h.publish(r);\n h.flush();\n\n byte[] bytes = encoder.encode(\n CharBuffer.wrap(\"MockFormatter_Head\" + \"\\u6881\\u884D\\u8F69\"))\n .array();\n assertTrue(Arrays.equals(bytes, aos.toByteArray()));\n }",
"Charset getEncoding();",
"public static String encode(String in){\n in = in.replace(\"&\", \"&\");\n in = in.replace(\"\\\"\", \""\");\n in = in.replace(\"<\", \"<\");\n in = in.replace(\">\", \">\");\n log.debug(\"encoded string: \" + in);\n // FIXME: Consider double-encoding & if it is not part of &\n return in;\n }",
"@Override\n\tpublic String getCharacterEncoding() {\n\t\treturn null;\n\t}",
"public final void encodeUtf8Default(CharSequence in, ByteBuffer out) {\n int inLength = in.length();\n int outIx = out.position();\n int inIx = 0;\n while (inIx < inLength) {\n try {\n char c = in.charAt(inIx);\n if (c >= 128) {\n break;\n }\n out.put(outIx + inIx, (byte) c);\n inIx++;\n } catch (IndexOutOfBoundsException e) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inIx) + \" at index \" + (out.position() + Math.max(inIx, (outIx - out.position()) + 1)));\n }\n }\n if (inIx == inLength) {\n out.position(outIx + inIx);\n return;\n }\n int outIx2 = outIx + inIx;\n while (inIx < inLength) {\n char c2 = in.charAt(inIx);\n if (c2 < 128) {\n out.put(outIx2, (byte) c2);\n } else if (c2 < 2048) {\n int outIx3 = outIx2 + 1;\n try {\n out.put(outIx2, (byte) ((c2 >>> 6) | AtomsProto.Atom.MEDIAMETRICS_AUDIORECORD_REPORTED_FIELD_NUMBER));\n out.put(outIx3, (byte) ((c2 & '?') | 128));\n outIx2 = outIx3;\n } catch (IndexOutOfBoundsException e2) {\n outIx = outIx3;\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inIx) + \" at index \" + (out.position() + Math.max(inIx, (outIx - out.position()) + 1)));\n }\n } else if (c2 < 55296 || 57343 < c2) {\n int outIx4 = outIx2 + 1;\n out.put(outIx2, (byte) ((c2 >>> '\\f') | AtomsProto.Atom.BACK_GESTURE_REPORTED_REPORTED_FIELD_NUMBER));\n outIx2 = outIx4 + 1;\n out.put(outIx4, (byte) (((c2 >>> 6) & 63) | 128));\n out.put(outIx2, (byte) ((c2 & '?') | 128));\n } else {\n if (inIx + 1 != inLength) {\n inIx++;\n char low = in.charAt(inIx);\n if (Character.isSurrogatePair(c2, low)) {\n int codePoint = Character.toCodePoint(c2, low);\n int outIx5 = outIx2 + 1;\n try {\n out.put(outIx2, (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE));\n int outIx6 = outIx5 + 1;\n out.put(outIx5, (byte) (((codePoint >>> 12) & 63) | 128));\n int outIx7 = outIx6 + 1;\n out.put(outIx6, (byte) (((codePoint >>> 6) & 63) | 128));\n out.put(outIx7, (byte) ((codePoint & 63) | 128));\n outIx2 = outIx7;\n } catch (IndexOutOfBoundsException e3) {\n outIx = outIx5;\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inIx) + \" at index \" + (out.position() + Math.max(inIx, (outIx - out.position()) + 1)));\n }\n }\n }\n throw new UnpairedSurrogateException(inIx, inLength);\n }\n inIx++;\n outIx2++;\n }\n out.position(outIx2);\n }",
"public static String encode(String str){\r\n\t\treturn HtmlCodec.DefaultChar2ENUM.encode(str);\r\n\t}",
"@Override\n\t\tpublic String getCharacterEncoding() {\n\t\t\treturn null;\n\t\t}",
"String getUseNativeEncoding();",
"public static String UTF8toISO(String str)\n\t{\n\t\tCharset utf8charset = Charset.forName(\"UTF-8\");\n\t\tCharset iso88591charset = Charset.forName(\"ISO-8859-1\");\n\n\t\tByteBuffer inputBuffer = ByteBuffer.wrap(str.getBytes());\n\n\t\t// decode UTF-8\n\t\tCharBuffer data = utf8charset.decode(inputBuffer);\n\n\t\t// encode ISO-8559-1\n\t\tByteBuffer outputBuffer = iso88591charset.encode(data);\n\t\tbyte[] outputData = outputBuffer.array();\n\n\t\treturn new String(outputData);\n\t}",
"Builder addEncoding(String value);",
"private String encode(String s) {\n\t\tString t = \"\";\n\n\t\tif (s == null) {\n\t\t\treturn t;\n\t\t}\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tchar c = s.charAt(i);\n\n\t\t\tif (c == '<') {\n\t\t\t\tt += \"<\";\n\t\t\t} else if (c == '>') {\n\t\t\t\tt += \">\";\n\t\t\t} else if (c == '&') {\n\t\t\t\tt += \"&\";\n\t\t\t} else if (c == '\"') {\n\t\t\t\tt += \""\";\n\t\t\t} else if (c == '\\'') {\n\t\t\t\tt += \"'\";\n\t\t\t} else {\n\t\t\t\tt += c;\n\t\t\t}\n\t\t}\n\n\t\treturn t;\n\t}",
"private static String urlDecode(String toDecode) throws UnsupportedEncodingException{\r\n\t\treturn URLDecoder.decode(toDecode, \"UTF-8\");\r\n\t}",
"@Override\n public StringValue toUnicodeValue(Env env, String charset)\n {\n return this;\n }",
"String getSupportedEncoding(String acceptableEncodings);",
"public ConvertToUTF8() {\n initComponents();\n }",
"@Override\r\n\t\tpublic String decode(String str) {\r\n\t\t\t// str to char[]\r\n\t\t\tchar cs[] = (str).toCharArray();\r\n\r\n\t\t\t// per char\r\n\t\t\tStringBuilder result = new StringBuilder(cs.length);\r\n\t\t\tfor (int i = 0, ci = cs.length; i < ci; i++) {\r\n\t\t\t\tif(cs[i] == '&') {\r\n\t\t\t\t\tif(i < ci - 4 && cs[i + 1] == '#' && cs[i + 4] == ';'){\r\n\t\t\t\t\t\tif(cs[i + 2] == '6' && cs[i + 3] == '0'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('<');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '6' && cs[i + 3] == '2'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('>');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '8'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('&');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '9'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('\\'');\r\n\t\t\t\t\t\t}else if(cs[i + 2] == '3' && cs[i + 3] == '4'){\r\n\t\t\t\t\t\t\ti += 4;\r\n\t\t\t\t\t\t\tresult.append('\"');\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tresult.append(cs[i]);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn result.toString();\r\n\t\t}",
"public String encode(String p_str)\n {\n int x = 0, len = 0;\n char aChar;\n StringBuffer buff;\n\n if (p_str == null)\n {\n return null;\n }\n\n len = p_str.length();\n if (len == 0)\n {\n return p_str;\n }\n\n buff = new StringBuffer (len*2);\n aChar = p_str.charAt(x++);\n\n // leading whitespace - for software it should be preserved\n while ((x < len) && Character.isWhitespace(aChar))\n {\n buff.append(makeTmx(aChar, true)); // true = leading whitespace\n aChar = p_str.charAt(x++);\n }\n --x; // backup one\n\n while (x < len)\n {\n aChar = p_str.charAt(x++);\n String tmx = makeTmx(aChar, false);\n if (tmx.equals(\"\" + aChar))\n {\n tmx = encodeXml(aChar);\n }\n\n buff.append(tmx);\n }\n\n return (buff.toString());\n }",
"@Test\n void test7BitEncoding() throws Exception {\n ascii_cp1251_lcid1049.guess7BitEncoding();\n ascii_cp1251_lcid1049.setReturnNullOnMissingChunk(true);\n ascii_utf_8_cp1252_lcid1031.guess7BitEncoding();\n ascii_utf_8_cp1252_lcid1031.setReturnNullOnMissingChunk(true);\n ascii_utf_8_cp1252_lcid1031_html.guess7BitEncoding();\n ascii_utf_8_cp1252_lcid1031_html.setReturnNullOnMissingChunk(true);\n htmlbodybinary_cp1251.guess7BitEncoding();\n htmlbodybinary_cp1251.setReturnNullOnMissingChunk(true);\n htmlbodybinary_utf_8.guess7BitEncoding();\n htmlbodybinary_utf_8.setReturnNullOnMissingChunk(true);\n\n assertEquals(\"Subject автоматически Subject\", ascii_cp1251_lcid1049.getSubject());\n assertEquals(\"Body автоматически Body\", ascii_cp1251_lcid1049.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"windows-1251\\\\\\\"><body>HTML автоматически</body></html>\", ascii_cp1251_lcid1049.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", ascii_utf_8_cp1252_lcid1031.getSubject());\n assertEquals(\"Body öäü Body\", ascii_utf_8_cp1252_lcid1031.getTextBody());\n assertNull(ascii_utf_8_cp1252_lcid1031.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", ascii_utf_8_cp1252_lcid1031_html.getSubject());\n assertEquals(\"Body öäü Body\", ascii_utf_8_cp1252_lcid1031_html.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML öäü</body></html>\", ascii_utf_8_cp1252_lcid1031_html.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", htmlbodybinary_cp1251.getSubject());\n assertNull(htmlbodybinary_cp1251.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML автоматически</body></html>\", htmlbodybinary_cp1251.getHtmlBody());\n\n assertEquals(\"Subject öäü Subject\", htmlbodybinary_utf_8.getSubject());\n assertNull(htmlbodybinary_utf_8.getTextBody());\n assertEquals(\"<!DOCTYPE html><html><meta charset=\\\\\\\"utf-8\\\\\\\"><body>HTML öäü</body></html>\", htmlbodybinary_utf_8.getHtmlBody());\n }",
"public String getEncoding() {\n \t return null;\n \t }",
"public String getEncoding() {\n \t return null;\n \t }",
"@Override // com.google.protobuf.Utf8.Processor\n public int encodeUtf8(CharSequence in, byte[] out, int offset, int length) {\n char c;\n long j;\n long j2;\n long outLimit;\n String str;\n String str2;\n char c2;\n long outIx = (long) (ARRAY_BASE_OFFSET + offset);\n long outLimit2 = ((long) length) + outIx;\n int inLimit = in.length();\n String str3 = \" at index \";\n String str4 = \"Failed writing \";\n if (inLimit > length || out.length - length < offset) {\n throw new ArrayIndexOutOfBoundsException(str4 + in.charAt(inLimit - 1) + str3 + (offset + length));\n }\n int inIx = 0;\n while (true) {\n c = 128;\n j = 1;\n if (inIx < inLimit) {\n char c3 = in.charAt(inIx);\n if (c3 >= 128) {\n break;\n }\n UNSAFE.putByte(out, outIx, (byte) c3);\n inIx++;\n outIx = 1 + outIx;\n } else {\n break;\n }\n }\n if (inIx == inLimit) {\n return (int) (outIx - ((long) ARRAY_BASE_OFFSET));\n }\n while (inIx < inLimit) {\n char c4 = in.charAt(inIx);\n if (c4 < c && outIx < outLimit2) {\n UNSAFE.putByte(out, outIx, (byte) c4);\n str2 = str3;\n outIx += j;\n j2 = 1;\n outLimit = outLimit2;\n str = str4;\n c2 = 128;\n } else if (c4 >= 2048 || outIx > outLimit2 - 2) {\n if (c4 >= 55296 && 57343 >= c4) {\n str2 = str3;\n str = str4;\n } else if (outIx <= outLimit2 - 3) {\n str2 = str3;\n str = str4;\n long outIx2 = outIx + 1;\n UNSAFE.putByte(out, outIx, (byte) ((c4 >>> '\\f') | 480));\n long outIx3 = outIx2 + 1;\n UNSAFE.putByte(out, outIx2, (byte) (((c4 >>> 6) & 63) | 128));\n UNSAFE.putByte(out, outIx3, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n outIx = outIx3 + 1;\n c2 = 128;\n j2 = 1;\n } else {\n str2 = str3;\n str = str4;\n }\n if (outIx <= outLimit2 - 4) {\n if (inIx + 1 != inLimit) {\n inIx++;\n char low = in.charAt(inIx);\n if (Character.isSurrogatePair(c4, low)) {\n int codePoint = Character.toCodePoint(c4, low);\n outLimit = outLimit2;\n long outIx4 = outIx + 1;\n UNSAFE.putByte(out, outIx, (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE));\n long outIx5 = outIx4 + 1;\n UNSAFE.putByte(out, outIx4, (byte) (((codePoint >>> 12) & 63) | 128));\n long outIx6 = outIx5 + 1;\n c2 = 128;\n UNSAFE.putByte(out, outIx5, (byte) (((codePoint >>> 6) & 63) | 128));\n j2 = 1;\n UNSAFE.putByte(out, outIx6, (byte) ((codePoint & 63) | 128));\n outIx = outIx6 + 1;\n }\n }\n throw new UnpairedSurrogateException(inIx - 1, inLimit);\n } else if (55296 > c4 || c4 > 57343 || (inIx + 1 != inLimit && Character.isSurrogatePair(c4, in.charAt(inIx + 1)))) {\n throw new ArrayIndexOutOfBoundsException(str + c4 + str2 + outIx);\n } else {\n throw new UnpairedSurrogateException(inIx, inLimit);\n }\n } else {\n long outIx7 = outIx + 1;\n UNSAFE.putByte(out, outIx, (byte) ((c4 >>> 6) | 960));\n UNSAFE.putByte(out, outIx7, (byte) ((c4 & '?') | 128));\n str2 = str3;\n outIx = outIx7 + 1;\n j2 = 1;\n outLimit = outLimit2;\n str = str4;\n c2 = 128;\n }\n inIx++;\n c = c2;\n str3 = str2;\n str4 = str;\n outLimit2 = outLimit;\n j = j2;\n }\n return (int) (outIx - ((long) ARRAY_BASE_OFFSET));\n }",
"@Test\n public void testEncodeDecodeBase64() {\n ///////////////////////////////\n // plaintext=\"Text to convert.\";\n plaintext=\"ABCDEFGHIJKLMNOPQRSTUPVWYZ123456789\";\n /////////////////////////////////\n System.out.println(\"Convert following text: \"+plaintext);\n \n System.out.println(\"::encodeBase64::\");\n \n byte[] plaindata = plaintext.getBytes();\n byte[] tmp = Base64Encoder.encodeBase64(plaindata);\n this.storeEncoding=new String(tmp);\n System.out.println(storeEncoding);\n System.out.println(\"::decodeBase64::\");\n byte[] base64Message = this.storeEncoding.getBytes();\n byte[] expResult = plaindata;\n byte[] result = Base64Encoder.decodeBase64(base64Message);\n String decodedText=new String(result);\n System.out.println(\"Decoded Text: \"+decodedText);\n assertArrayEquals(expResult, result);\n }",
"private String URLEncode (String sStr) {\r\n if (sStr==null) return null;\r\n\r\n int iLen = sStr.length();\r\n StringBuffer sEscaped = new StringBuffer(iLen+100);\r\n char c;\r\n for (int p=0; p<iLen; p++) {\r\n c = sStr.charAt(p);\r\n switch (c) {\r\n case ' ':\r\n sEscaped.append(\"%20\");\r\n break;\r\n case '/':\r\n sEscaped.append(\"%2F\");\r\n break;\r\n case '\"':\r\n sEscaped.append(\"%22\");\r\n break;\r\n case '#':\r\n sEscaped.append(\"%23\");\r\n break;\r\n case '%':\r\n sEscaped.append(\"%25\");\r\n break;\r\n case '&':\r\n sEscaped.append(\"%26\");\r\n break;\r\n case (char)39:\r\n sEscaped.append(\"%27\");\r\n break;\r\n case '+':\r\n sEscaped.append(\"%2B\");\r\n break;\r\n case ',':\r\n sEscaped.append(\"%2C\");\r\n break;\r\n case '=':\r\n sEscaped.append(\"%3D\");\r\n break;\r\n case '?':\r\n sEscaped.append(\"%3F\");\r\n break;\r\n case 'á':\r\n sEscaped.append(\"%E1\");\r\n break;\r\n case 'é':\r\n sEscaped.append(\"%E9\");\r\n break;\r\n case 'í':\r\n sEscaped.append(\"%ED\");\r\n break;\r\n case 'ó':\r\n sEscaped.append(\"%F3\");\r\n break;\r\n case 'ú':\r\n sEscaped.append(\"%FA\");\r\n break;\r\n case 'Á':\r\n sEscaped.append(\"%C1\");\r\n break;\r\n case 'É':\r\n sEscaped.append(\"%C9\");\r\n break;\r\n case 'Í':\r\n sEscaped.append(\"%CD\");\r\n break;\r\n case 'Ó':\r\n sEscaped.append(\"%D3\");\r\n break;\r\n case 'Ú':\r\n sEscaped.append(\"%DA\");\r\n break;\r\n case 'à':\r\n sEscaped.append(\"%E0\");\r\n break;\r\n case 'è':\r\n sEscaped.append(\"%E8\");\r\n break;\r\n case 'ì':\r\n sEscaped.append(\"%EC\");\r\n break;\r\n case 'ò':\r\n sEscaped.append(\"%F2\");\r\n break;\r\n case 'ù':\r\n sEscaped.append(\"%F9\");\r\n break;\r\n case 'À':\r\n sEscaped.append(\"%C0\");\r\n break;\r\n case 'È':\r\n sEscaped.append(\"%C8\");\r\n break;\r\n case 'Ì':\r\n sEscaped.append(\"%CC\");\r\n break;\r\n case 'Ò':\r\n sEscaped.append(\"%D2\");\r\n break;\r\n case 'Ù':\r\n sEscaped.append(\"%D9\");\r\n break;\r\n case 'ñ':\r\n sEscaped.append(\"%F1\");\r\n break;\r\n case 'Ñ':\r\n sEscaped.append(\"%D1\");\r\n break;\r\n case 'ç':\r\n sEscaped.append(\"%E7\");\r\n break;\r\n case 'Ç':\r\n sEscaped.append(\"%C7\");\r\n break;\r\n case 'ô':\r\n sEscaped.append(\"%F4\");\r\n break;\r\n case 'Ô':\r\n sEscaped.append(\"%D4\");\r\n break;\r\n case 'ö':\r\n sEscaped.append(\"%F6\");\r\n break;\r\n case 'Ö':\r\n sEscaped.append(\"%D6\");\r\n break;\r\n case '`':\r\n sEscaped.append(\"%60\");\r\n break;\r\n case '¨':\r\n sEscaped.append(\"%A8\");\r\n break;\r\n default:\r\n sEscaped.append(c);\r\n break;\r\n }\r\n } // next\r\n\r\n return sEscaped.toString();\r\n }",
"public static final byte[] asUTF8(final String s) {\n return s.getBytes(StandardCharsets.UTF_8);\n }"
] | [
"0.77639776",
"0.7030101",
"0.68993944",
"0.669844",
"0.6686702",
"0.66720676",
"0.6571391",
"0.6489274",
"0.64795554",
"0.64497864",
"0.63815314",
"0.6344598",
"0.6342194",
"0.6339292",
"0.6300659",
"0.62739563",
"0.62560725",
"0.62423503",
"0.622173",
"0.62103844",
"0.6203908",
"0.6201561",
"0.6184399",
"0.6177402",
"0.61760074",
"0.61726296",
"0.6158403",
"0.6138938",
"0.60997766",
"0.60767996",
"0.6029427",
"0.602532",
"0.60207826",
"0.6014133",
"0.59924746",
"0.5986919",
"0.5975256",
"0.5970466",
"0.5964406",
"0.59642243",
"0.59519774",
"0.59513015",
"0.5930827",
"0.5928203",
"0.59280455",
"0.5910537",
"0.5909836",
"0.5898977",
"0.58839965",
"0.5876079",
"0.58595437",
"0.58594537",
"0.585848",
"0.5842877",
"0.5840494",
"0.5836377",
"0.5835507",
"0.5798327",
"0.5798327",
"0.57856405",
"0.5780831",
"0.57663673",
"0.575903",
"0.5751922",
"0.5740335",
"0.5737312",
"0.5724886",
"0.5723157",
"0.5714965",
"0.5697586",
"0.5695556",
"0.5683731",
"0.5680681",
"0.56755424",
"0.5662873",
"0.5656621",
"0.5649938",
"0.5649105",
"0.563384",
"0.5632121",
"0.5632089",
"0.56282777",
"0.56204945",
"0.5617254",
"0.56119806",
"0.5603438",
"0.559565",
"0.5595483",
"0.55902404",
"0.55779546",
"0.55683094",
"0.5563224",
"0.55605435",
"0.55403113",
"0.5539833",
"0.55323774",
"0.55323774",
"0.55127305",
"0.551086",
"0.5500474",
"0.549584"
] | 0.0 | -1 |
Reads string of arbitrary length from input stream | private static String readStr(InputStream stream, int length, boolean allowEof) throws IOException {
byte[] b = new byte[length];
int readBytes = stream.read(b);
if (readBytes != length && !(allowEof && length == 0)) {
throw new EOFException("Unexpected end of steam. Read bytes " + readBytes + "; required " + length);
}
return new String(b, ENCODING);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private synchronized String readString(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readString(bytes, 0, len);\n\t}",
"private String readFixedString(int size, DataInput in) throws IOException\n { \n var b = new StringBuilder(size);\n int i = 0;\n var done = false;\n while (!done && i < size)\n { \n char ch = in.readChar();\n i++;\n if (ch == 0) {\n done = true;\n }\n else {\n b.append(ch);\n }\n }\n \n in.skipBytes(2 * (size - i));\n return b.toString();\n }",
"public String readString(int len) {\n final int BUF_SIZE = 100;\n byte[] byteDest = new byte[BUF_SIZE];\n String ret = null;\n int num;\n long startTime = System.currentTimeMillis();\n try {\n while (len > 0) {\n if ((num = in.read(byteDest, 0, Math.max(len, BUF_SIZE))) > 0) {\n len -= num;\n assert (len >= 0);\n ret += new String(byteDest, 0, num);\n // Don't sleep if there are more characters available.\n if (num == BUF_SIZE)\n continue;\n }\n try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n print(\"Error sleeping\");\n }\n if (timeout > 0\n && System.currentTimeMillis() > startTime + timeout)\n break;\n }\n } catch (IOException e) {\n print(\"Error reading String from \" + portName);\n }\n return ret;\n }",
"public static String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {\n BufferedReader br = null;\n StringBuilder sb = new StringBuilder();\n\n String line;\n try {\n\n br = new BufferedReader(new InputStreamReader(stream));\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n return sb.toString();\n }",
"public String readIt(InputStream stream, int len) throws IOException, UnsupportedEncodingException {\n Reader reader = null;\n reader = new InputStreamReader(stream, \"UTF-8\");\n char[] buffer = new char[len];\n reader.read(buffer);\n return new String(buffer);\n }",
"public String readString() throws IOException {\n return WritableUtils.readString(in);\n }",
"public String readString() {\n final int BUF_SIZE = 100;\n byte[] byteDest = new byte[BUF_SIZE];\n String ret = \"\";\n int num = BUF_SIZE;\n try {\n while (!ret.contains(\"\\r\")) {\n if ((num = in.read(byteDest)) > 0) {\n ret += new String(byteDest, 0, num);\n }\n }\n } catch (IOException e) {\n print(\"Error reading String from \" + portName);\n }\n print(\"Read :\" + ret + \":\");\n return ret;\n }",
"String readString();",
"String read();",
"String read();",
"public static String readString() {\n return in.nextLine();\n }",
"private String _read(InputStream in, String enc) throws IOException\n {\n int ptr = 0;\n int count;\n \n while ((count = in.read(_readBuffer, ptr, _readBuffer.length - ptr)) > 0) {\n ptr += count;\n // buffer full? Need to realloc\n if (ptr == _readBuffer.length) {\n _readBuffer = Arrays.copyOf(_readBuffer, ptr + ptr);\n }\n }\n \n return new String(_readBuffer, 0, ptr, enc);\n }",
"public String read();",
"private String read() {\n\n String s = \"\";\n\n try {\n // Check if there are bytes available\n if (inStream.available() > 0) {\n\n // Read bytes into a buffer\n byte[] inBuffer = new byte[1024];\n int bytesRead = inStream.read(inBuffer);\n\n // Convert read bytes into a string\n s = new String(inBuffer, \"ASCII\");\n s = s.substring(0, bytesRead);\n }\n\n } catch (Exception e) {\n Log.e(TAG, \"Read failed!\", e);\n }\n\n return s;\n }",
"private String read(InputStream in) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(in), 1000);\n for (String line = r.readLine(); line != null; line = r.readLine()) {\n sb.append(line);\n }\n in.close();\n return sb.toString();\n }",
"public String readUTF() throws IOException;",
"public String readString() throws IOException {\n checkOpened();\n return dis.readUTF();\n }",
"private String readStream(InputStream in) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = in.read();\n while(i != -1) {\n bo.write(i);\n i = in.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }",
"public String readString() {\n byte[] byteForStream = new byte[1024];\n String message = \"\";\n\n mListener.onCarRunning();\n\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n message = new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n\n } catch (IOException e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n return message;\n }",
"public String readLine() throws IOException, ReadTimeoutException {\n\t\ttry {\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[0] = (byte) inputStream.read();\n\t\t\twaitForAvailable();\n\t\t\tlineBuffer[1] = (byte) inputStream.read();\n\t\t\tlineLength = 2;\n\t\t\twhile (lineBuffer[lineLength - 2] != (byte) 13\n\t\t\t\t|| lineBuffer[lineLength - 1] != (byte) 10) {\n\t\t\t\twaitForAvailable();\n\t\t\t\tlineBuffer[lineLength] = (byte) inputStream.read();\n\t\t\t\tlineLength++;\n\t\t\t}\n\t\t\treturn new String(lineBuffer, 0, lineLength - 2);\n\t\t} catch (ArrayIndexOutOfBoundsException aioobe) {\n\t\t\tthrow new IOException(\"Line too long.\");\n\t\t}\n\t}",
"public static String readString(InputStream is) throws IOException {\n return readString(is, DEFAULT_ENCODING);\n }",
"private static String readLine(ResettableInputStream in, int maxLength)\n throws IOException {\n\n StringBuilder s = new StringBuilder();\n int c;\n int i = 1;\n while ((c = in.readChar()) != -1) {\n // FIXME: support \\r\\n\n if (c == '\\n') {\n break;\n }\n //System.out.printf(\"seen char val: %c\\n\", (char)c);\n s.append((char)c);\n\n if (i++ > maxLength) {\n System.out.println(\"Output: >\" + s + \"<\");\n throw new RuntimeException(\"Too far!\");\n }\n }\n if (s.length() > 0) {\n s.append('\\n');\n return s.toString();\n } else {\n return null;\n }\n }",
"private String readStream(InputStream is) throws IOException {\n StringBuilder sb = new StringBuilder();\n BufferedReader r = new BufferedReader(new InputStreamReader(is),1000);\n for (String line = r.readLine(); line != null; line =r.readLine()){\n sb.append(line);\n }\n is.close();\n return sb.toString();\n }",
"static String loadStream(InputStream in) throws IOException {\n int ptr = 0;\n in = new BufferedInputStream(in);\n StringBuffer buffer = new StringBuffer();\n while( (ptr = in.read()) != -1 ) {\n buffer.append((char)ptr);\n }\n return buffer.toString();\n }",
"private String readInput(java.net.Socket socket) throws IOException {\n BufferedReader bufferedReader =\n new BufferedReader(\n new InputStreamReader(\n socket.getInputStream()));\n char[] buffer = new char[700];\n int charCount = bufferedReader.read(buffer, 0, 700);\n String input = new String(buffer, 0, charCount);\n return input;\n }",
"@Override\n\tpublic String readLine() throws IOException {\n\t\tint length = readInt();\n\t\twriteInt(length);\n\t\tbyte[] data = awaitNextPacket(new byte[length]);\n\t\treturn new String(data);\n\t}",
"private String readStream(InputStream is) {\n try {\n ByteArrayOutputStream bo = new ByteArrayOutputStream();\n int i = is.read();\n while(i != -1) {\n bo.write(i);\n i = is.read();\n }\n return bo.toString();\n } catch (IOException e) {\n return \"\";\n }\n }",
"String longRead();",
"static String ReadLn(int maxLength){\n byte line[] = new byte [maxLength];\n int length = 0;\n int input = -1;\n try{\n while (length < maxLength){//Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n')) break; //or untill end of line ninput\n line [length++] += input;\n }\n\n if ((input < 0) && (length == 0)) return null; // eof\n return new String(line, 0, length);\n }catch (IOException e){\n return null;\n }\n }",
"public static String readString(){\n\t\tstringInput = readInput();\n\t\treturn stringInput; \n\t}",
"private static String readIt(InputStream stream) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(stream));\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = br.readLine()) != null) {\n sb.append(line+\"\\n\");\n }\n br.close();\n return sb.toString();\n\t}",
"private static String read(InputStream in) throws IOException {\n StringBuilder builder = new StringBuilder();\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n String line = null;\n while ((line = reader.readLine()) != null)\n builder.append(line);\n\n return builder.toString();\n }",
"String readString(int start, int len)\n {\n char[] val = new char[len];\n int end = start + len;\n\n int idx = 0;\n for(int i = start; i < end; i++)\n val[idx++] = (char)buffer[i];\n\n return new String(val);\n }",
"static String loadStream(InputStream in) throws IOException { \n\t\tint ptr = 0; \n\t\tin = new BufferedInputStream(in); \n\t\tStringBuffer buffer = new StringBuffer(); \n\t\twhile( (ptr = in.read()) != -1 ) { \n\t\t\tbuffer.append((char)ptr); \n\t\t} \n\t\treturn buffer.toString(); \n\t}",
"private static String ioStr(InputStream in) throws IOException {\n\t\t// Read input\n\t\tString str = new String();\n\t\tString next = null;\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\twhile ((next = reader.readLine()) != null) {\n\t\t\tstr += next + \"\\n\";\n\t\t}\n\t\tin.close();\n\n\t\t// Convert result accordingly\n\t\tif (str.length() > 1) {\n\t\t\treturn str.substring(0, str.length() - 1);\n\t\t}\n\t\treturn str;\n\t}",
"public byte[] readRawString() throws IOException {\n int length = in.readInt();\n byte[] bytes = new byte[5 + length];\n bytes[0] = (byte) Type.STRING.code;\n bytes[1] = (byte) (0xff & (length >> 24));\n bytes[2] = (byte) (0xff & (length >> 16));\n bytes[3] = (byte) (0xff & (length >> 8));\n bytes[4] = (byte) (0xff & length);\n in.readFully(bytes, 5, length);\n return bytes;\n }",
"private String readString( InputStream stream ) throws IOException {\n char delimiter = (char) stream.read();\n buffer = new StringBuffer();\n while ( true ) {\n int c = stream.read();\n if ( c == delimiter ) {\n break;\n }\n else {\n switch ( (char) c ) {\n case '\\r':\n case '\\n':\n throw new TableFormatException(\n \"End of line within a string literal\" );\n case '\\\\':\n buffer.append( (char) stream.read() );\n break;\n case END:\n throw new TableFormatException(\n \"End of file within a string literal\" );\n default:\n buffer.append( (char) c );\n }\n }\n }\n return buffer.toString();\n }",
"public static String acceptString() {\n\t\tString stringData = null;\r\n\t\tBufferedReader input = null;\r\n\t\ttry {\r\n\t\t\t// chaining the streams\r\n\t\t\tinput = new BufferedReader(new InputStreamReader(System.in));\r\n\r\n\t\t\t// reading data from the reader\r\n\t\t\tstringData = input.readLine();\r\n\t\t} catch (IOException ioException) {\r\n\t\t\tSystem.out.println(\"Error in accepting data.\");\r\n\t\t} finally {\r\n\t\t\tinput = null;\r\n\t\t}\r\n\t\treturn stringData;\r\n\t}",
"String shortRead();",
"private String readStream(InputStream in) throws IOException {\n BufferedReader r = new BufferedReader(new InputStreamReader(in));\n\n StringBuilder sb = new StringBuilder();\n String line;\n\n // Reads every line and stores them in sb.\n while((line = r.readLine()) != null) {\n sb.append(line);\n }\n\n // Closes the input stream.\n in.close();\n\n return sb.toString();\n }",
"public abstract String read_string();",
"static String ReadLn(int maxLength) {\n byte line[] = new byte[maxLength];\n int length = 0;\n int input = -1;\n try {\n while (length < maxLength) { // Read untill maxlength\n input = System.in.read();\n if ((input < 0) || (input == '\\n'))\n break; // or untill end of line ninput\n line[length++] += input;\n }\n\n if ((input < 0) && (length == 0))\n return null; // eof\n return new String(line, 0, length);\n } catch (java.io.IOException e) {\n return null;\n }\n }",
"public static String readIt(InputStream is) throws IOException {\n BufferedReader reader = null;\n reader = new BufferedReader(new InputStreamReader(is, \"UTF-8\"));\n StringBuilder responseStrBuilder = new StringBuilder();\n String inputStr;\n while ((inputStr = reader.readLine()) != null) {\n responseStrBuilder.append(inputStr);\n }\n return responseStrBuilder.toString();\n }",
"public String read() throws IOException {\n return reader.readLine();\n }",
"static String readString() throws IOException{\n return bufferedReader.readLine();\n }",
"public static String read(Reader in) throws IOException {\n\t\tStringBuilder result = new StringBuilder();\n\t try {\n\t \tchar[] buf = new char[1024]; int r = 0;\n\t while ((r = in.read(buf)) != -1) {result.append(new String(buf, 0, r));}\n\t } finally { in.close();}\n\t\tString text=result.toString();\n\t\treturn text;\n\t}",
"private String readLine(ByteBuf in) {\n\n int bytesToRead;\n byte[] data = null;\n int bytesToSkip;\n\n if ((bytesToRead = in.bytesBefore((byte) LINE_FEED_CHAR)) > -1) {\n // Found the line feed.\n bytesToSkip = 1;\n\n // Check (and ignore) optional carriage return.\n if (bytesToRead > 0 && in.getByte(bytesToRead - 1) == CARRIAGE_RETURN_CHAR) {\n bytesToSkip++;\n bytesToRead--;\n }\n\n // Check that the bytes we're about to read will not exceed the\n // max frame size.\n checkTooLongFrame(bytesToRead);\n\n data = new byte[bytesToRead];\n in.readBytes(data);\n in.skipBytes(bytesToSkip);\n\n // Count the bytes read.\n currentDecodedByteCount += bytesToRead;\n }\n else {\n // No line feed. Make sure we're not buffering more than the max\n // frame size.\n checkTooLongFrame(in.readableBytes());\n }\n\n if (data != null) {\n return new String(data, StompConstants.UTF_8);\n }\n else {\n return null;\n }\n }",
"public void read(DataInputStream in) throws IOException;",
"int getLength() throws IOException;",
"protected String readString(DataInput in) throws IOException {\n if (in.readBoolean())\n return (in.readUTF());\n return null;\n }",
"public static String read(InputStream in) throws IOException {\n\t\tStringBuilder result = new StringBuilder();\n\t try {\n\t byte[] buf = new byte[1024]; int r = 0;\n\t while ((r = in.read(buf)) != -1) {result.append(new String(buf, 0, r));}\n\t } finally { in.close();}\n\t\tString text=result.toString();\n\t\treturn text;\n\t}",
"public abstract InputStream openStream(String str);",
"private String readString(InputStream in) throws IOException {\r\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in, \"iso-8859-1\"));\r\n\t\tString inputLine;\r\n\t\tStringBuffer response = new StringBuffer();\r\n\t\twhile ((inputLine = reader.readLine()) != null) {\r\n\t\t\tresponse.append(inputLine);\r\n\t\t}\r\n\t\tin.close();\r\n\t\treturn response.toString();\r\n\t}",
"public String read()\n\t{\n\t\ttry\n\t\t{\n\t\t\tint startAt = 0;\n\t\t\tString tempRead = inFromClient.readLine();\n\t\t\t\n\t\t\t// Clear out any nonalphabetic characters from the input buffer if\n\t\t\t// the user has just connected.\n\t\t\tif (!hasReadOnce)\n\t\t\t{\n\t\t\t\tfor (int ctr = 0; ctr < tempRead.length(); ctr++)\n\t\t\t\t{\n\t\t\t\t\tif ((tempRead.charAt(ctr) >= 'a' && tempRead.charAt(ctr) <= 'z')\n\t\t\t\t\t\t|| (tempRead.charAt(ctr) >= 'A' && tempRead.charAt(ctr) <= 'Z'))\n\t\t\t\t\t{\n\t\t\t\t\t\tstartAt = ctr;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thasReadOnce = true;\n\t\t\t}\n\n\t\t\thasPrinted = true;\n\t\t\ttempRead = tempRead.substring(startAt, tempRead.length());\n\t\t\t\n\t\t\t// Never return nonprintable characters. To support windows telnet, go back one\n\t\t\t// character for each backspace (chr #8) encountered.\n\t\t\tString newRead = \"\";\n\t\t\tfor (int ctr = 0; ctr < tempRead.length(); ctr++)\n\t\t\t{\n\t\t\t\tif (tempRead.charAt(ctr) > 31)\n\t\t\t\t\tnewRead = newRead+tempRead.charAt(ctr);\n\t\t\t\tif (tempRead.charAt(ctr) == 8 && newRead.length() > 0)\n\t\t\t\t\tnewRead = newRead.substring(0, newRead.length()-1);\n\t\t\t}\n\n\t\t\treturn newRead;\n\n\t\t} catch (NullPointerException e) {\n\t\t\tthis.closeSocket();\n\t\t\tif (ch.shortName.length() > 0)\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: \"+ch.shortName);\n\t\t\telse\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: No character.\");\n\t\t\treturn \"\";\n\t\t} catch (SocketException e) {\n\t\t\treturn \"\";\n\t\t} catch (Exception e) {\n\t\t\tif (ch.shortName.length() > 0)\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: \"+ch.shortName);\n\t\t\telse\n\t\t\t\tsysLog(\"connections\", \"Socket closed unexpectedly: No character.\");\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public String read(int maxStringLength) throws IOException {\n if (maxStringLength < 4) {\n throw new IllegalArgumentException(\"maxStringLength must be 4 or more, not \"\n + maxStringLength);\n }\n\n if (!open) {\n throw new IllegalStateException(\"Stream has already been closed.\");\n }\n\n int bytesRequestedForEncoding = maxStringLength / 4 * 3;\n\n if (bytesRequestedForEncoding > bytesInBuffer) {\n readMoreBytesFromStream();\n }\n\n if (bytesInBuffer == 0 && !innerStreamHasMoreData) {\n return null;\n }\n\n int bytesToEncode = Math.min(bytesRequestedForEncoding, bytesInBuffer);\n String result = encodeBytesFromBuffer(bytesToEncode);\n return result;\n }",
"public String readUTF() throws IOException {\n\n\t\t// Punt on this one and use DataInputStream routines.\n\t\tDataInputStream d = new DataInputStream(this);\n\t\treturn d.readUTF();\n\n\t}",
"public static String ReadData(InputStream input) throws IOException {\n BufferedReader reader = new BufferedReader(new\n InputStreamReader(input));\n StringBuilder builder = new StringBuilder();\n while (true) {\n String line = reader.readLine();\n if(line == null) {\n break;\n }\n\n builder.append(line);\n }\n\n return builder.toString();\n }",
"private String readString(ByteBuffer buf, int size) {\n byte[] bytes = new byte[size];\n\n buf.get(bytes);\n\n String str = new String(bytes);\n\n knownStrs.putIfAbsent(str.hashCode(), str);\n\n if (forwardRead != null && forwardRead.hash == str.hashCode())\n forwardRead.found = true;\n\n return str;\n }",
"public String readString() {\n return readNextLine();\n }",
"private String readStringUntil0x() throws IOException {\n String thisLine = \"\";\n int ch;\n while ((ch = ins.read()) != -1) {\n if (ch != 0x0) {\n thisLine = thisLine + String.valueOf((char) ch);\n } else {\n break;\n }\n }\n return thisLine;\n }",
"private String readNextLine() {\n StringBuilder sb = new StringBuilder();\n\n try {\n BufferedReader br = new BufferedReader(new InputStreamReader(stream));\n sb.append(br.readLine());\n } catch (IOException e) {\n e.fillInStackTrace();\n }\n\n return sb.toString();\n }",
"private synchronized long readLong(int len) throws IOException {\n\t\tread(bytes, len);\n\t\treturn readLong(bytes, 0, len);\n\t}",
"private String readIt(InputStream stream) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(stream, \"iso-8859-1\"), 128);\n StringBuilder sb = new StringBuilder();\n String line;\n while ((line = reader.readLine()) != null) {\n sb.append(line);\n }\n return sb.toString();\n }",
"public static String loadStream(InputStream in) throws IOException {\r\n\t\tInputStream is = in;\r\n\t\tint ptr = 0;\r\n\t\tis = new BufferedInputStream(is);\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\ttry {\r\n\t\t\twhile ((ptr = is.read()) != -1) {\r\n\t\t\t\tbuffer.append((char) ptr);\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tis.close();\r\n\t\t}\r\n\t\treturn buffer.toString();\r\n\t}",
"private static String readFromStream(InputStream inputStream) throws IOException {\n\n // Create a new empty string builder\n StringBuilder stringBuilder = new StringBuilder();\n\n // Create a bufferedReader that reads from the inputStream param\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream,\n Charset.forName(\"UTF-8\")));\n\n // Create a string that is one line of the buffered reader\n String line = bufferedReader.readLine();\n\n while (line != null) {\n // Add line to stringBuilder\n stringBuilder.append(line);\n\n // Set line to the next line in buffered reader\n line = bufferedReader.readLine();\n }\n\n // Return string builder as a string\n return stringBuilder.toString();\n }",
"private int getLength() throws IOException {\n\n int i = in.read();\n if ( i == -1 ) {\n throw new IOException( BaseMessages\n .getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERLengthMissing\" ) );\n }\n\n // A single byte short length\n if ( ( i & ~0x7F ) == 0 ) {\n return i;\n }\n\n int num = i & 0x7F;\n\n // We can't handle length longer than 4 bytes\n if ( i >= 0xFF || num > 4 ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERFieldTooBig\", i ) );\n }\n\n byte[] bytes = new byte[num];\n int n = in.read( bytes );\n if ( n < num ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERLengthTooShort\" ) );\n }\n\n return new BigInteger( 1, bytes ).intValue();\n }",
"protected void readPayload() throws IOException {\n _dataStream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _dataStream.readInt();\n if (rlen == 0) {\n return;\n }\n if (rlen > PushCacheProtocol.MAX_PAYLOAD_LEN) {\n throw new IOException(\"Payload length \" + rlen + \" exceeds maximum length \" + PushCacheProtocol.MAX_PAYLOAD_LEN);\n }\n _textBuffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(142);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(142);\n{\n rv = _stream.read(_textBuffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv + \" after reading \" + sofar + \" bytes\");\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(142);\n\n _dataStream = new DataInputStream(new ByteArrayInputStream(_textBuffer));\n }",
"private int getLength() throws IOException {\n\n\t\t\tint i = this.in.read();\n\t\t\tif (i == -1) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length missing\");\n\t\t\t}\n\n\t\t\t// A single byte short length\n\t\t\tif ((i & ~0x7F) == 0) {\n\t\t\t\treturn i;\n\t\t\t}\n\n\t\t\tint num = i & 0x7F;\n\n\t\t\t// We can't handle length longer than 4 bytes\n\t\t\tif (i >= 0xFF || num > 4) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length field too big (\" + i + \")\");\n\t\t\t}\n\n\t\t\tbyte[] bytes = new byte[num];\n\t\t\tint n = this.in.read(bytes);\n\t\t\tif (n < num) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: length too short\");\n\t\t\t}\n\n\t\t\treturn new BigInteger(1, bytes).intValue();\n\t\t}",
"protected final String parseASCIIString(ByteArrayInputStream stream, final int length) throws EOFException\n {\n try\n {\n return new String(parseByteArray(stream, length), \"US-ASCII\");\n }\n catch (UnsupportedEncodingException e) // should not occur in a proper\n // JVM port\n {\n throw new IllegalStateException(\"US-ASCII is not a supported charset name\");\n }\n }",
"public void read() throws IOException {\n\t\twhile (this.in.getReadBytes() != size) {\n\t\t\tString chunkID;\n\t\t\ttry {\n\t\t\t\tchunkID = readString(4);\n\t\t\t} catch (EmptyReadException e) {\n\t\t\t\t/**\n\t\t\t\t * T4L bug 15259: Some encoders must write a byte \"0\" to signify\n\t\t\t\t * EOF?\n\t\t\t\t */\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlong chunkSize = readLong(4);\n\t\t\treadChunk(chunkID, chunkSize);\n\t\t}\n\t}",
"protected String readUnicodeInputStream(InputStream in) throws IOException {\n\t\tUnicodeReader reader = new UnicodeReader(in, null);\n\t\tString data = FileCopyUtils.copyToString(reader);\n\t\treader.close();\n\t\treturn data;\n\t}",
"public static String readString(InputStream is) {\r\n \t\tif (is == null)\r\n \t\t\treturn null;\r\n \t\tBufferedReader reader= null;\r\n \t\ttry {\r\n \t\t\tStringBuffer buffer= new StringBuffer();\r\n \t\t\tchar[] part= new char[2048];\r\n \t\t\tint read= 0;\r\n \t\t\treader= new BufferedReader(new InputStreamReader(is));\r\n \r\n \t\t\twhile ((read= reader.read(part)) != -1)\r\n \t\t\t\tbuffer.append(part, 0, read);\r\n \t\t\t\r\n \t\t\treturn buffer.toString();\r\n \t\t\t\r\n \t\t} catch (IOException ex) {\r\n \t\t} finally {\r\n \t\t\tif (reader != null) {\r\n \t\t\t\ttry {\r\n \t\t\t\t\treader.close();\r\n \t\t\t\t} catch (IOException ex) {\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}",
"public static String read(InputStream input) throws Exception {\r\n\t\treader.setInput(input);\r\n\t\treader.setCharset(\"UTF-8\");\r\n\t\treturn reader.read();\r\n\t}",
"private byte[] readFixedLengthContent(ByteBuf in) throws UnsupportedEncodingException {\n if (in.readableBytes() < 2) {\n return new byte[]{};\n }\n int strLen = in.readableBytes();\n// if (in.readableBytes() < strLen) {\n// return null;\n// }\n byte[] strRaw = new byte[strLen];\n in.readBytes(strRaw);\n\n return strRaw;\n }",
"public static String readAsciiLine(InputStream in) throws IOException {\n\t\t// TODO: support UTF-8 here instead\n\n\t\tStringBuilder result = new StringBuilder(80);\n\t\twhile (true) {\n\t\t\tint c = in.read();\n\t\t\tif (c == -1) {\n\t\t\t\tthrow new EOFException();\n\t\t\t} else if (c == '\\n') {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tresult.append((char) c);\n\t\t}\n\t\tint length = result.length();\n\t\tif (length > 0 && result.charAt(length - 1) == '\\r') {\n\t\t\tresult.setLength(length - 1);\n\t\t}\n\t\treturn result.toString();\n\t}",
"void readstring()throws IOException\n{\nSystem.out.print(\"ENTER A STRING\");\ns=br.readLine();\ncirculardecode();\n}",
"public static String readString(ChannelBuffer buffer, int length)\n\t{\n\t\tChannelBuffer stringBuffer = buffer.readSlice(length);\n\t\tString str = null;\n\t\ttry\n\t\t{\n\t\t\tstr = STRING_DECODER.decode(stringBuffer);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tLOG.error(\"Error occurred while trying to read string from buffer: {}\",e);\n\t\t}\n\t\treturn str;\n//\t\tchar[] chars = new char[length];\n//\t\tfor (int i = 0; i < length; i++)\n//\t\t{\n//\t\t\tchars[i] = buffer.readChar();\n//\t\t}\n//\t\treturn new String(chars);\n\t\t\n\t}",
"private static String readStream(InputStream is, String charsetName) throws UnsupportedEncodingException, IOException {\r\n StringBuffer sb = new StringBuffer();\r\n byte[] buffer = new byte[1024];\r\n int length = 0;\r\n while ((length = is.read(buffer)) != -1) {\r\n sb.append(new String(buffer, 0, length, charsetName));\r\n }\r\n return sb.toString();\r\n }",
"int read(byte[] buffer, int bufferOffset, int length) throws IOException;",
"@Override\n public int read() throws IOException {\n return input.read();\n }",
"@Test\n public final void givenUsingJava5_whenConvertingAnInputStreamToAString_thenCorrect() throws IOException {\n final String originalString = randomAlphabetic(DEFAULT_SIZE);\n final InputStream inputStream = new ByteArrayInputStream(originalString.getBytes());\n\n final StringBuilder textBuilder = new StringBuilder();\n try (Reader reader = new BufferedReader(new InputStreamReader(inputStream, StandardCharsets.UTF_8))) {\n int c;\n while ((c = reader.read()) != -1) {\n textBuilder.append((char) c);\n }\n }\n assertEquals(textBuilder.toString(), originalString);\n }",
"private static int readLine(DataInputStream dis){\n\t\tint len = -1;\n\t\ttry{\n\t\t\tboolean end = false;\n\t\t\tString lineEnd = \"\\n\"; //assumes that the end of the line is marked with this\n\t\t\tbyte[] lineEndBytes = lineEnd.getBytes();\n\t\t\tbyte[] byteBuf = new byte[lineEndBytes.length];\n\t\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\twhile(!end){\n\t\t\t\tdis.read(byteBuf,0,lineEndBytes.length);\n\t\t\t\tbaos.write(byteBuf);\n\t\t\t\tString t = new String(byteBuf);\n\t\t\t\t//System.out.print(t); //uncomment if you want to see what the lines actually look like\n\t\t\t\tif(t.equals(lineEnd)) end=true;\n\t\t\t}\n\t\t\tString data = new String(baos.toByteArray());\n\t\t\tif(data.contains(\"Content-Length: \")){\n\t\t\t\tint index = data.indexOf(\"Content-Length: \") +\"Content-Length: \".length();\n\t\t\t\tif(index >= 0){\n\t\t\t\t\tlen = Integer.parseInt(data.substring(index, data.length() -2));\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"Error Processing the data input Stream : \" +e.getMessage());\n\t\t\treturn -1;\n\t\t}\n\t\treturn len;\n\n\t}",
"protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(752);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(752);\n{\n rv = _in.read(_text_buffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv);\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(752);\n\n _data_stream = new DataInputStream(new ByteArrayInputStream(_text_buffer));\n }",
"protected String readAscii(BinaryDataReader dataReader) throws IOException\n\t{\n\t\tbyte[] data = new byte[this.count];\n\n\t\t// read string buffer\n\t\tif (this.count <= 4)\n\t\t{\n\t\t\t// unpack integer\n\t\t\tint value = this.value;\n\t\t\tfor (int i = 0; i < this.count; i++)\n\t\t\t{\n\t\t\t\tdata[i] = (byte) (value & 0x00FF);\n\t\t\t\tvalue = value >> 8;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// convert state to long offset for reading large buffer\n\t\t\tlong offset = ((long) this.value) & 0xffffffffL;\n\n\t\t\tlong pos0 = dataReader.getFilePointer();\n\t\t\tdataReader.seek(offset);\n\t\t\tdataReader.readByteArray(data);\n\t\t\tdataReader.seek(pos0);\n\t\t}\n\n\t\treturn new String(data);\n\t}",
"static void readRequest(InputStream is) throws IOException {\n out.println(\"starting readRequest\");\n byte[] buf = new byte[1024];\n String s = \"\";\n while (true) {\n int n = is.read(buf);\n if (n <= 0)\n throw new IOException(\"Error\");\n s = s + new String(buf, 0, n);\n if (s.indexOf(\"\\r\\n\\r\\n\") != -1)\n break;\n }\n out.println(\"returning from readRequest\");\n }",
"public String readStream(InputStream in) {\n BufferedReader reader = null;\n StringBuffer data = new StringBuffer(\"\");\n try {\n reader = new BufferedReader(new InputStreamReader(in));\n String line = \"\";\n while ((line = reader.readLine()) != null) {\n data.append(line);\n }\n } catch (IOException e) {\n Log.e(\"Log\", \"IOException\");\n } finally {\n if (reader != null) {\n try {\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return data.toString();\n }",
"int readS8(String name)\n throws IOException, EOFException;",
"public static String readFully(Reader reader) throws IOException {\n\t\ttry {\n\t\t\tStringWriter writer = new StringWriter();\n\t\t\tchar[] buffer = new char[1024];\n\t\t\tint count;\n\t\t\twhile ((count = reader.read(buffer)) != -1) {\n\t\t\t\twriter.write(buffer, 0, count);\n\t\t\t}\n\t\t\treturn writer.toString();\n\t\t} finally {\n\t\t\treader.close();\n\t\t}\n\t}",
"private static StringBuilder receiveInputStream(InputStream input) throws IOException{\r\n\t\tStringBuilder response = new StringBuilder();\r\n\t\tint i;\r\n\t\twhile((i = input.read())!= -1){//stock the inputstream\r\n\t\t\tresponse.append((char)i); \r\n\t\t}\r\n\t\treturn response;\r\n\t}",
"private String inputStreamToString(InputStream is) {\n Scanner scanner = new Scanner(is);\n Scanner tokenizer = scanner.useDelimiter(\"\\\\A\");\n String str = tokenizer.hasNext() ? tokenizer.next() : \"\";\n scanner.close();\n return str;\n }",
"private static String readFromStream(InputStream inputStream) throws IOException {\n StringBuilder output = new StringBuilder();\n if (inputStream != null) {\n InputStreamReader inputStreamReader = new InputStreamReader(inputStream, Charset.forName(\"UTF-8\"));\n BufferedReader reader = new BufferedReader(inputStreamReader);\n String line = reader.readLine();\n while (line != null) {\n output.append(line);\n line = reader.readLine();\n }\n }\n return output.toString();\n }",
"public String readLine() throws ShellIOException;",
"public void read(DataInput in) throws IOException {\r\n int size = in.readInt();\r\n\r\n buffer = new byte[size];\r\n in.readFully(buffer);\r\n }",
"public abstract void read(DataInput input) throws IOException;",
"private String getTextLineFromStream( InputStream is ) throws IOException {\n StringBuffer buffer = new StringBuffer();\n int b;\n\n \twhile( (b = is.read()) != -1 && b != (int) '\\n' ) {\n \t\tbuffer.append( (char) b );\n \t}\n \treturn buffer.toString().trim();\n }",
"public int read( final char[] buf, final int off, final int len ) throws IOException {\n\nif ( strBuf.length() == 0 ) {\n// if buffer is empty end of document is reached\nreturn -1;\n}\n\n// fill destination array\n\nint byteCount = 0;\nfor (; byteCount < len; byteCount++) {\n\nif ( byteCount == strBuf.length() ) {\n// end reached, stop filling\nbreak;\n}\n\n// copy data to destination array\nbuf[byteCount] = strBuf.charAt( byteCount );\n}\n\n// delete to copied data from local store\nstrBuf.delete( 0, byteCount );\n\nreturn byteCount;\n}",
"private void readFromStream(InputStream in) throws IOException {\n\n\t\tdataValue = null;\t// allow gc of the old value before the new.\n\t\tbyte[] tmpData = new byte[32 * 1024];\n\n\t\tint off = 0;\n\t\tfor (;;) {\n\n\t\t\tint len = in.read(tmpData, off, tmpData.length - off);\n\t\t\tif (len == -1)\n\t\t\t\tbreak;\n\t\t\toff += len;\n\n\t\t\tint available = Math.max(1, in.available());\n\t\t\tint extraSpace = available - (tmpData.length - off);\n\t\t\tif (extraSpace > 0)\n\t\t\t{\n\t\t\t\t// need to grow the array\n\t\t\t\tint size = tmpData.length * 2;\n\t\t\t\tif (extraSpace > tmpData.length)\n\t\t\t\t\tsize += extraSpace;\n\n\t\t\t\tbyte[] grow = new byte[size];\n\t\t\t\tSystem.arraycopy(tmpData, 0, grow, 0, off);\n\t\t\t\ttmpData = grow;\n\t\t\t}\n\t\t}\n\n\t\tdataValue = new byte[off];\n\t\tSystem.arraycopy(tmpData, 0, dataValue, 0, off);\n\t}",
"public static String readFile(InputStream in) throws IOException {\n final StringBuffer sBuffer = new StringBuffer();\n final BufferedReader br = new BufferedReader(new InputStreamReader(in));\n final char[] buffer = new char[1024];\n\n int cnt;\n while ((cnt = br.read(buffer, 0, buffer.length)) > -1) {\n sBuffer.append(buffer, 0, cnt);\n }\n br.close();\n in.close();\n return sBuffer.toString();\n }",
"public Asn1Object read() throws IOException {\n\n\t\t\tint tag = this.in.read();\n\n\t\t\tif (tag == -1) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: stream too short, missing tag\");\n\t\t\t}\n\n\t\t\tint length = getLength();\n\n\t\t\tif (tag == BIT_STRING) {\n\t\t\t\t// Not sure what to do with this one.\n\t\t\t\tint padBits = this.in.read();\n\t\t\t\tlength--;\n\t\t\t}\n\n\t\t\tbyte[] value = new byte[length];\n\t\t\tint n = this.in.read(value);\n\t\t\tif (n < length) {\n\t\t\t\tthrow new IllegalStateException(\"Invalid DER: stream too short, missing value\");\n\t\t\t}\n\n\t\t\treturn new Asn1Object(tag, length, value);\n\t\t}",
"@Test(timeout = 4000)\n public void test031() throws Throwable {\n StringReader stringReader0 = new StringReader(\"H+\\\"RE_]I95BDm\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n char char0 = javaCharStream0.ReadByte();\n assertEquals('H', char0);\n }"
] | [
"0.7415873",
"0.70552886",
"0.70071626",
"0.6936069",
"0.6741941",
"0.66498905",
"0.6645984",
"0.65775114",
"0.6526582",
"0.6526582",
"0.64579695",
"0.64531666",
"0.6417993",
"0.63829494",
"0.6344908",
"0.6290389",
"0.62412226",
"0.6222303",
"0.6217152",
"0.6135029",
"0.61303973",
"0.61256456",
"0.6105779",
"0.608083",
"0.604592",
"0.6038325",
"0.6014204",
"0.59978557",
"0.59936756",
"0.5972382",
"0.5963702",
"0.59512436",
"0.59503883",
"0.5937118",
"0.59356743",
"0.5932457",
"0.59114206",
"0.58972114",
"0.5893084",
"0.5834023",
"0.58067846",
"0.5793211",
"0.5771138",
"0.57607883",
"0.5752176",
"0.5740199",
"0.5737906",
"0.572951",
"0.5719113",
"0.5706335",
"0.5704533",
"0.56751496",
"0.56729686",
"0.564317",
"0.5613418",
"0.5611231",
"0.559544",
"0.5591397",
"0.55876666",
"0.55751896",
"0.5573179",
"0.5564956",
"0.5557414",
"0.5557158",
"0.5554358",
"0.55502176",
"0.55457675",
"0.55407506",
"0.5537269",
"0.5523956",
"0.5517003",
"0.55166984",
"0.5506843",
"0.5506802",
"0.5488677",
"0.54856443",
"0.54809666",
"0.5478528",
"0.54670703",
"0.54633236",
"0.54551166",
"0.54482603",
"0.5436188",
"0.54353154",
"0.5434113",
"0.54337007",
"0.5433348",
"0.5430321",
"0.54250354",
"0.5423337",
"0.54184943",
"0.5403154",
"0.54031056",
"0.54011345",
"0.5399453",
"0.53921676",
"0.539079",
"0.5389829",
"0.53686845",
"0.5368088"
] | 0.7066524 | 1 |
testPost(); String res = execGet(" String res = execGet(" System.out.println(res); String res = execGet(" | public static void main(String[] args) throws Exception {
testPost();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String execute(HttpServletRequest req, HttpServletResponse res);",
"public String post();",
"private String ExecuteRest(String urlServer,String params){\t\n\t\t\ttry {\t\t\t\n\t\t\t\tURL url = new URL(urlServer);\n\t\t\t\t\n\t\t\t\tHttpURLConnection connection = (HttpURLConnection) url.openConnection();\n\t \n\t if(params!=null){\n\t \tlog.warning(\"Requete post=\"+params);\n\t\t connection.setRequestProperty(\"Content-Length\", \"\"+params.getBytes().length);\n\t\t connection.setRequestProperty(\"Content-Type\",\"application/x-www-form-urlencoded\");\n\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\t\t connection.setUseCaches(false);\n\t\t connection.setDoOutput(true);\n\t\t connection.setDoInput(true);\n\t\t connection.setRequestMethod(\"POST\");\n\t\t DataOutputStream writer = new DataOutputStream(connection.getOutputStream());\n\t\t writer.writeBytes(params);\n\t\t writer.flush();\n\t\t writer.close();\n\t } else {\n\t \tconnection.setRequestMethod(\"GET\");\n\t }\n\t \n\t log.warning(\"Appel de \"+url+\" avec param=\"+params);\n\t \t\n\t //Delai de réponse fixé à 30 secondes\n\t connection.setReadTimeout(30*1000);\n\t connection.connect();\n\n\t //Récuperation de la réponse\n\t\t BufferedReader buffer=new BufferedReader(new InputStreamReader(connection.getInputStream()));\n\t\t String line=\"\";\n\t\t\t\tStringWriter writer=new StringWriter();\n\t\t\t\twhile ( null!=(line=buffer.readLine()))writer.write(line);\n\t\t \n\t\t\t\tint reponseCode=connection.getResponseCode();\n\t\t if (reponseCode == HttpURLConnection.HTTP_OK) { \t\n\t\t\t\t\tif(reponseCode==200)\t\t\t\t\t\n\t\t\t\t\t\tonSuccess(writer.toString()); \t\t\n\t\t\t\t\telse \n\t\t\t\t\t\tonFailure(reponseCode);\n\t\t }\n\t\t else onFailure(reponseCode); \n\t } \n\t\t\tcatch (MalformedURLException e) {} \n\t\t\tcatch (IOException e) {}\t\n\t\t\t\t\n\t\treturn null;\t\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tString result = requestGet(\"http://neihanshequ.com/\" , \"UTF-8\" );\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tLogManager.info(\"\\n\" + result.replace(\"<BR/>\", \"\\n\"));\r\n\t\t\r\n\t\t/*\r\n\t\tString result = requestPost(\"http://127.0.0.1:8080/a/\" , \"UTF-8\" , new BasicNameValuePair(\"name\" , \"中文中文中文\") \r\n\t\t, new BasicNameValuePair(\"age\" , \"19\") );\r\n\t\tLogManager.info(result.replace(\"<BR/>\", \"\\n\"));*/\r\n\t}",
"@TargetApi(Build.VERSION_CODES.KITKAT)\n public String sendPost1() throws Exception {\n String urlParameters=parameter;\n byte[] postData = urlParameters.getBytes(\"UTF-8\");\n int postDataLength = postData.length;\n URL url;\n HttpURLConnection urlConn;\n DataOutputStream printout;\n DataInputStream input;\n url = new URL(\"http://203.151.92.175:8080/\"+method);\n urlConn = (HttpURLConnection) url.openConnection();\n urlConn.setDoInput(true);\n urlConn.setDoOutput(true);\n urlConn.setUseCaches(false);\n urlConn.setInstanceFollowRedirects(false);\n urlConn.setRequestMethod(\"POST\");\n urlConn.setRequestProperty(\"charset\", \"utf-8\");\n urlConn.setRequestProperty(\"Content-Length\", Integer.toString(postDataLength));\n urlConn.setRequestProperty(\"User-Agent\", USER_AGENT);\n urlConn.connect();\n DataOutputStream wr = new DataOutputStream(urlConn.getOutputStream());\n wr.write(postData);\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(urlConn.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n urlConn.disconnect();\n return response.toString();\n\n }",
"public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }",
"private static String facebookPostMethod(String host, String urlPostfix, List <NameValuePair> nvps){\r\n System.out.println(\"@executing facebookPostMethod():\" + host + urlPostfix);\r\n String responseStr = null;\r\n try {\r\n HttpPost httpost = new HttpPost(host + urlPostfix);\r\n httpost.setEntity(new UrlEncodedFormEntity(nvps, HTTP.UTF_8));\r\n\r\n // execute postMethod\r\n HttpResponse postResponse = httpClient.execute(httpost);\r\n HttpEntity entity = postResponse.getEntity();\r\n\r\n System.out.println(\"facebookPostMethod: \" + postResponse.getStatusLine());\r\n if (entity != null) {\r\n responseStr = EntityUtils.toString(entity);\r\n //System.out.println(responseStr);\r\n entity.consumeContent();\r\n }\r\n System.out.println(\"Post Method done(\" + postResponse.getStatusLine().getStatusCode()+\"), response string length: \" + (responseStr==null? 0:responseStr.length()));\r\n } catch (IOException e) {\r\n System.out.println(e.getMessage());\r\n }\r\n //TODO process the respons string\r\n //if statusCode == 200: no error;(responsStr contains \"errorDescription\":\"No error.\")\r\n //else retry?\r\n return responseStr;\r\n }",
"private String executeRequest(URL url, String json, boolean post) throws IOException{\n\t\tURLConnection urlConnection = url.openConnection();\n\t\turlConnection.setDoOutput(post); //false if post\n\t\turlConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=utf-8\");\n\t\turlConnection.connect();\n\t\tOutputStream outputStream = urlConnection.getOutputStream();\n\t\toutputStream.write((json).getBytes(\"UTF-8\"));\n\t\toutputStream.flush();\n\t\t\n\t\t//Get Response\n InputStream in = urlConnection.getInputStream();\n BufferedReader rd = new BufferedReader(new InputStreamReader(in));\n String line;\n StringBuffer response = new StringBuffer();\n while((line = rd.readLine()) != null) {\n response.append(line);\n response.append('\\r');\n }\n rd.close();\n return response.toString();\n\t}",
"public static void testQuery() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"VchicleServlet.json?action=pagequery\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"pageSize\", \"2\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"currPage\", \"3\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t}",
"public void doPost() throws IOException {\n\n String otherContent = \".\";\n\n int contentLength = 0;\n\n while (!otherContent.equals(\"\")) {\n otherContent = in.readLine();\n if (otherContent.startsWith(\"Content-Length\")) {\n contentLength = Integer.parseInt(otherContent.split(\" \")[1]);\n }\n }\n\n char[] buffer = new char[contentLength];\n this.in.read(buffer, 0, contentLength); // read parameter\n\n String parameters = decodeValue(new String(buffer));\n\n // traiter le buffer\n\n String[] fileType = this.url.split(\".\");\n\n\n// if (fileType[1].equals(\"php\")) {\n\n String path = RESOURCE_DIRECTORY + this.url;\n String output = this.execPHP(path, parameters);\n this.statusCode = OK;\n sendHeader(statusCode, \"text/html\", output.length());\n sendBodyByte(output.getBytes());\n// } else {\n//\n// byte[] contentByte = null;\n//\n// try {\n// contentByte = ToolBox.readFileByte(RESSOURCE_DIRECTORY, this.url);\n// this.statusCode = OK;\n// ContentType contentType = new ContentType(this.extension);\n// sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n// } catch (IOException e) {\n// System.out.println(\"Ressource non trouvé\");\n// statusCode = NOT_FOUND;\n// contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n// sendHeader(statusCode, \"text/html\", contentByte.length);\n// }\n// sendBodyByte(contentByte);\n// }\n }",
"@Test\n\tpublic static void TC1() throws IOException {\n\t\t// TODO Auto-generated method stub\n \n\t\tInteger n = RandomDataGeneration.randomNumber();\n\n\t\tProperties pr = PropertiesFile.readProperties(\"../APIAutomationFW/URI.properties\");\n\t\tString requestpayload = JsonFile.readJson(\"../APIAutomationFW/src/test/java/org/testing/resources/BodyData.json\");\n\t\trequestpayload = JsonVariableReplacement.jsonReplace(requestpayload, \"id\", n.toString());\n\t\tHttpMethods http = new HttpMethods(pr);\nResponse res =\thttp.postRequest(requestpayload, \"QA_URI\");\nresponseIdValue = JsonParsingUsingOrgJson.jsonParse(res.asString(), \"id\"); \t\n\nSystem.out.println(\"Response code is\" + responseIdValue);\n\t\n\t}",
"public static void main(String[] args) {\n\t\tHttpClient client = new HttpClient();\n\t\tPostMethod myPost = new PostMethod(string );\n\t\ttry{\n\t\t\t//��������ͷ������ \n\t\t\tmyPost.setRequestHeader(\"Content-Type\", \"text/xml\");\n\t\t\tmyPost.setRequestHeader(\"charset\", \"utf-8\");\n\t\t\tmyPost.setRequestHeader(\"x-app-key\", \"c85d54f1\");\n\t\t\tmyPost.setRequestHeader(\"x-sdk-version\", \"3.1\");\n\n\t\t\tString date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n\t\t\tmyPost.setRequestHeader(\"x-request-date\", date);\n\t\t\tString x_task_config = \"capkey=hwr.cloud.letter\";\n\t\t\tmyPost.setRequestHeader(\"x-task-config\", x_task_config);\n//\t\t\tString b = new String(g_sShortData);\n\t\t\tString str = \"712ddd892cf9163e6383aa169e0454e3\" + date + x_task_config ;\n//\t\t\tSystem.out.println(str);\n\t\t\tmyPost.setRequestHeader(\"x-auth\", MD5.getMD5((str + g_sShortData.toString()).getBytes()));\n//\t\t\tmyPost.setRequestHeader(\"x-udid\", \"101:123456789\");\n\t\t\tSystem.out.println(g_sShortData.length);\n\t\t\tbyte[] b = new byte[g_sShortData.length];\n\t\t\tfor(int i=0; i<g_sShortData.length; i++){\n\t\t\t\tb[i] = (byte) g_sShortData[i];\n\t\t\t}\n\t\t\t\n\t\t\tRequestEntity entity = new StringRequestEntity(new String(b, \"iso-8859-1\"), \"application/octet-stream\", \"iso-8859-1\");\n\t\t\tmyPost.setRequestEntity(entity);\n\t\t\tint statusCode = client.executeMethod(myPost);\n\t\t\tString.format(\"%d\", statusCode);\n\t\t\tSystem.out.println(statusCode);\n\t\t\t\n\t\t\tif (statusCode == HttpStatus.SC_OK) {\n\t\t\t\tInputStream txtis = myPost.getResponseBodyAsStream(); \n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(txtis, \"utf-8\"));\n\t\t\t\t\n\t\t\t\tString tempbf;\n\t\t\t\tStringBuffer html = new StringBuffer(256);\n\t\t\t\twhile((tempbf = br.readLine()) != null){\n\t\t\t\t\thtml.append(tempbf);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(html.toString());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n void getTest() {\n URI uri = URI.create(endBody + \"/get\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.get(uri);\n\n // check if it received OK\n assertEquals(200, response.statusCode());\n }",
"public static void main(String[] args) {\r\n\r\n\t\tString pid = \"10010\";\r\n\t\tString key = \"7A82127C6A7B4263B5A041A2DAC18C83\";\r\n\r\n\t\tHttpClient client = new HttpClient();\r\n\r\n\t\tMap<String, String> params = new HashMap<String, String>();\r\n\r\n\t\t// ========================test1\r\n\t\t// params.put(\"c\", \"5\");\r\n\t\t// params.put(\"serverId\", \"5008\");\r\n\t\t// params.put(\"spid\", \"4104\");\r\n\t\t// params.put(\"pid\", pid);\r\n\t\t// String md5 = MD5Util.getMD5String(\"550084104\" + key);\r\n\t\t// params.put(\"sign\", md5);\r\n\t\t// String url = \"http://www.jiepu.local/OpenAPI/RoleCount.ashx\";\r\n\t\t// String str = client.httpPostRequest(url, params);\r\n\t\t// System.out.println(str);\r\n\r\n\t\t// ========================test2\r\n\t\tparams.put(\"gameId\", \"5\");\r\n\t\tparams.put(\"serverId\", \"5008\");\r\n\t\tparams.put(\"spid\", \"4104\");\r\n\t\tparams.put(\"pid\", pid);\r\n\t\tString md5 = MD5Util.getMD5String(\"550084104\" + key);\r\n\t\tSystem.out.println(md5);\r\n\t\tparams.put(\"sign\", md5);\r\n\t\tString url = \"http://www.jiepu.local/OpenAPI/GetPresents.ashx\";\r\n\t\tString str = client.httpPostRequest(url, params);\r\n\t\tSystem.out.println(str);\r\n\r\n\t\t// ==============test3\r\n\t\t// params.put(\"id\", \"45277\");\r\n\t\t// //params.put(\"name\", URLEncoder.encode(\"测试礼包1\",\"utf-8\"));\r\n\t\t// params.put(\"name\", \"test1\");\r\n\t\t// params.put(\"spid\", \"4104\");\r\n\t\t// params.put(\"num\", \"3\");\r\n\t\t// params.put(\"gameId\", \"5\");\r\n\t\t// params.put(\"serverId\", \"5008\");\r\n\t\t// params.put(\"expireDate\", \"365\");\r\n\t\t// params.put(\"onlyone\", \"0\");\r\n\t\t// params.put(\"pid\", pid);\r\n\t\t// String md5Str = params.get(\"id\") + params.get(\"name\") + params.get(\"num\") + params.get(\"spid\") + params.get(\"gameId\") + params.get(\"serverId\") +\r\n\t\t// params.get(\"expireDate\")\r\n\t\t// + params.get(\"onlyone\") + key;\r\n\t\t// System.out.println(md5Str);\r\n\t\t// String md5 = MD5Util.getMD5String(md5Str);\r\n\t\t// params.put(\"sign\", md5);\r\n\t\t// System.out.println(md5);\r\n\t\t// String url = \"http://www.jiepu.local/OpenAPI/CreatePresents.ashx\";\r\n\t\t// //url = URLEncoder.encode(\"测试礼包1\",\"utf-8\");\r\n\t\t// System.out.println(url);\r\n\t\t// String str = client.httpPostRequest(url, params);\r\n\t\t// System.out.println(str);\r\n\r\n\t\t// =====================test4\r\n\t\tparams.put(\"gameId\", \"5\");\r\n\t\tparams.put(\"serverId\", \"5001\");\r\n\t\tparams.put(\"userIds\", \"ntc02,chickenujs\");\r\n\t\tparams.put(\"createTime\", \"2012-01-01 12:00:00\");\r\n\t\tparams.put(\"endTime\", \"2012-12-20 12:00:00\");\r\n\t\tparams.put(\"pid\", pid);\r\n\t\t// String md5Str = params.get(\"gameId\") + params.get(\"serverId\") +\r\n\t\t// params.get(\"userIds\") + params.get(\"createTime\") +\r\n\t\t// params.get(\"endTime\") + key;\r\n\t\t// System.out.println(md5Str);\r\n\t\t// String md5 = MD5Util.getMD5String(md5Str);\r\n\t\t// params.put(\"sign\", md5);\r\n\t\t// System.out.println(md5);\r\n\t\t// String url = \"http://www.jiepu.local/OpenAPI/RoleArrives.ashx\";\r\n\t\t// String str = client.httpPostRequest(url, params);\r\n\t\t// System.out.println(str);\r\n\r\n\t\t// =================test5\r\n\t\tparams.put(\"gameId\", \"5\");\r\n\t\tparams.put(\"serverId\", \"5001\");\r\n\t\tparams.put(\"spId\", \"4040\");\r\n\t\tparams.put(\"presentname\", \"测试礼包1\");\r\n\t\tparams.put(\"pid\", pid);\r\n\t\t// String md5Str = params.get(\"gameId\") + params.get(\"serverId\") +\r\n\t\t// params.get(\"spId\") + params.get(\"presentname\") + key;\r\n\t\t// System.out.println(md5Str);\r\n\t\t// String md5 = MD5Util.getMD5String(md5Str);\r\n\t\t// params.put(\"sign\", md5);\r\n\t\t// System.out.println(md5);\r\n\t\t// String url = \"http://www.jiepu.local/OpenAPI/GetPresentKeys.ashx\";\r\n\t\t// String str = client.httpPostRequest(url, params);\r\n\t\t// System.out.println(str);\r\n\r\n\t}",
"public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}",
"@Test\n void sendPostRequest() {\n try {\n LoginPacket packet = new LoginPacket(\"testUser\", \"testPassword\");\n String response = HttpUtils.sendPost(\"\", WriteJSON.writePacket(packet));\n } catch (IOException e) {\n e.printStackTrace();\n fail();\n }\n }",
"String postRequest(String url);",
"public static void main(String[] args) {\n HttpClient client = new HttpClient();\n\n // Create an instance of the method\n GetMethod method = new GetMethod(url);\n\n // Provide a custom retry handler is nessasery\n method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,\n new DefaultHttpClientRetryHandler(3, false));\n\n try {\n // execute the method\n int statusCode = client.execute(method);\n\n if (statusCode != HttpStatus.SC_OK) {\n System.err.println(\"Method failed: \"\n + method.getStatusLine());\n }\n\n // read response body\n byte[] responseBody = method.readResponseBody();\n\n // deal with the response\n System.out.println(new String(responseBody));\n } catch (HttpException e) {\n System.err.println(\"Fatal Protocol Violation: \"\n + e.getMessage());\n e.printStackTrace();\n\n } catch (IOException e) {\n System.err.println(\"Fatal Transport Error: \"\n + e.getMessage());\n e.printStackTrace();\n } finally {\n // release the connection\n method.releaseConnection();\n }\n }",
"static String request(String requestMethod, String input, String endURL)\n {\n StringBuilder result;\n result = new StringBuilder();\n try\n {\n String targetURL = firstURL + endURL;\n URL ServiceURL = new URL(targetURL);\n HttpURLConnection httpConnection = (HttpURLConnection) ServiceURL.openConnection();\n httpConnection.setRequestMethod(requestMethod);\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json; charset=UTF-8\");\n httpConnection.setDoOutput(true);\n\n switch (requestMethod) {\n case \"POST\":\n\n httpConnection.setDoInput(true);\n OutputStream outputStream = httpConnection.getOutputStream();\n outputStream.write(input.getBytes());\n outputStream.flush();\n\n result = new StringBuilder(\"1\");\n break;\n case \"GET\":\n\n BufferedReader responseBuffer = new BufferedReader(new InputStreamReader((httpConnection.getInputStream())));\n String tmp;\n while ((tmp = responseBuffer.readLine()) != null) {\n result.append(tmp);\n }\n break;\n }\n\n if (httpConnection.getResponseCode() != 200)\n throw new RuntimeException(\"HTTP GET Request Failed with Error code : \" + httpConnection.getResponseCode());\n\n httpConnection.disconnect();\n\n } catch (IOException exception) {\n exception.printStackTrace();\n }\n return result.toString();\n }",
"public static String sendPostRequest(String urlString,String body,String[] head,boolean dom)\n\t{\n InputStream instream;\n BufferedReader bfreader = null;\n String response = null;\n \n \n \n \n \n try \n {\n java.net.URL url = new java.net.URL(urlString);\n java.net.HttpURLConnection connection = (java.net.HttpURLConnection)url.openConnection(); // have to cast connection\n connection.setRequestMethod(\"POST\");\n connection.setDoOutput(true);\n connection.setReadTimeout(60000);\n \n \n \n if(head!=null)\n {\n\t for(int i=0;i<head.length;i=i+2)\n\t {\n\t \tconnection.setRequestProperty(head[i], head[i+1]);\n\t \t\n\t }\n }\n \n String utf8body= new String(body.getBytes(\"UTF-8\"));\n \n //writeFile(utf8body,\"01aft\");\n //writeFile(body,\"01bef\");\n \n OutputStream os = connection.getOutputStream();\n \n BufferedWriter osw = new BufferedWriter(new OutputStreamWriter(os));\n if(dom)\n {\n\t osw.write(0x0A);\n\t osw.write(0x09);\n\t }\n osw.write(utf8body);\n osw.flush();\n osw.close();\n \n \n connection.connect();\n instream=connection.getInputStream();\n bfreader=new BufferedReader(new InputStreamReader(instream,\"UTF-8\"));\n response=bfreader.readLine();\n //writeFile(response,\"instr\");\n \n connection.disconnect();\n \n \n } \n \n \n catch (Exception e) {\n \n \n // get stack trace as a String to return as document data\n java.io.StringWriter stringWriter = new java.io.StringWriter();\n e.printStackTrace( new java.io.PrintWriter( stringWriter ) );\n //result.setResponseData( stringWriter.toString() );\n //System.out.println(stringWriter);\n response = stringWriter.toString();\n \n \n }\n\t\t\n \n \n return response;\n\t\t\n\t\t\n\t}",
"public String execute(){\n HttpSession session = request.getSession();\n System.out.println(request);\n System.out.println(response);\n System.out.println(application);\n System.out.println(session);\n\n return null;\n\n}",
"public static String query(String content, String url) throws ClientProtocolException, IOException {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n// long qTest_end = System.currentTimeMillis();\n StringBuffer sb = new StringBuffer();\n// FileWriter fileWriter=new FileWriter(new File(\"/home/hadoop/wnd/usr/cmb/招行程序运行结果.txt\"),true);\n try {\n HttpPost httpPost = new HttpPost(url);\n HttpEntity entity = new ByteArrayEntity(content.getBytes());\n httpPost.setEntity(entity);\n// httpPost.setHeader(\"type\",\"0\");\n CloseableHttpResponse response = httpclient.execute(httpPost);\n try {\n// System.out.println(\"提交返回的状态:\"+response.getStatusLine());\n HttpEntity entity2 = response.getEntity();\n BufferedReader reader = new BufferedReader(new InputStreamReader(entity2.getContent()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n// System.out.println(line);\n// fileWriter.write(line+\"\\n\");\n sb.append(line+\"\\n\");\n }\n EntityUtils.consume(entity2);\n } finally {\n// fileWriter.flush();\n// fileWriter.close();\n response.close();\n }\n } finally {\n httpclient.close();\n }\n// System.out.print(\"qTest:\");\n// System.out.println(qTest_end - qTest_st);\n return sb.toString();\n }",
"String getResponse();",
"public HarvestResult executePostRequest() throws ParseException,\n IOException {\n HttpPost post = new HttpPost(petition.getUrl() + generateQueryParams());\n\n HttpResponse httpResult = null;\n T21HttpClientWithSSL httpClient = petition.getHttpClient();\n\n post.setEntity(generateEntity(post));\n post.setHeaders(generateHeaders(post));\n\n\n int statusCode = HttpStatus.SC_NOT_FOUND;\n logPetition(post);\n\n httpResult = httpClient.execute(post);\n statusCode = httpResult.getStatusLine().getStatusCode();\n\n String answer = getJsonFromRequest(httpResult);\n HarvestResult result = generateResult(answer, statusCode, httpClient);\n return result;\n\n }",
"private String executeRequest(String url) throws Exception {\n\t\t//final String METHODNAME = \"executeRequest\";\n\t\tString responseString = null;\n\t\t\n\t\tHttpURLConnection conn = null;\n\t\ttry{\n\t\t\tif(url != null){\n\t\t\t\tURL jsonURL = new URL(url);\n\t\t\t\tconn = (HttpURLConnection)jsonURL.openConnection();\n\t\t\t\tconn.setConnectTimeout(2000);\n\t\t\t\tconn.setReadTimeout(2000);\n\t\t\t\tconn.setRequestMethod(\"POST\");\n\t\t\t\t\n\t\t\t\tInputStream in = new BufferedInputStream(conn.getInputStream());\n\t\t\t\tresponseString = org.apache.commons.io.IOUtils.toString(in, \"UTF-8\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException io){\n\t\t\tio.printStackTrace();\n\t\t\tlog.severe(\"Failed calling json service IO Error: \" + url + \" - \" + io.getMessage());\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tlog.severe(\"Failed calling json service: \" + url + \" - \" + e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.disconnect();\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn responseString;\n\t}",
"public static int doPost(String name, String id, Result r) {\n r.setValue(\"\");\n String response = \"\";\n int status = 0;\n String output =\"\";\n \n try {\n // Make call to a particular URL\n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n // set request method to POST and send name value pair\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // write to POST data area\n JSONObject objJson = new JSONObject();\n JSONObject objJsonSend = new JSONObject();\n try {\n objJson.put(\"id\", id);\n objJson.put(\"name\", name);\n objJsonSend.put(\"name\", name);\n } catch (JSONException ex) {\n Logger.getLogger(RestaurantApiClient.class.getName()).log(Level.SEVERE, null, ex);\n }\n String ans = objJson.toString();\n System.out.println(\"Request Body:\");\n System.out.println(objJsonSend.toString());\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n out.write(ans);\n out.close();\n // get HTTP response code sent by server\n status = conn.getResponseCode();\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n output = \"\";\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n while ((output = br.readLine()) != null) {\n response += output; \n }\n conn.disconnect();\n //close the connection\n conn.disconnect();\n }\n // handle exceptions\n catch (MalformedURLException e) {\n e.printStackTrace();\n }\n catch (IOException e) {\n e.printStackTrace();\n } \n // return HTTP status\n r.setValue(response);\n return status; \n }",
"@Override\n\tprotected String doInBackground(String... params) {\n\t\t RESTClient request=new RESTClient(getURL());\n\t try {\n\t\t\t\trequest.Execute(RequestMethod.GET);\n\t\t\t\treturn request.getResponse();\n\t\t\t} \n\t catch (Exception e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t \n\t}",
"GetResponse() {\n\t}",
"public static void main(String[] args){\n\t\tString s = HttpGet.sendGet(\"http://192.168.90.43/search_keyword.php\", \"platf=android&limit=30\");\r\n\t\tSystem.out.println(s);\r\n\t\ttry {\r\n\t\t\tHttpGet.jsonArr(HttpGet.jsonOb(s, \"result\"), \"default\");\r\n\t\t} catch (JSONException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"protected String getSecondoPost() {\n// String testoPost;\n// String testo = this.getTestoNew();\n// String summary = this.getSummary();\n//// String edittoken = this.getToken();\n//\n// if (testo != null && !testo.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// testo = URLEncoder.encode(testo, \"UTF-8\");\n//\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n// if (summary != null && !summary.equals(\"\")) {\n// try { // prova ad eseguire il codice\n// summary = URLEncoder.encode(summary, \"UTF-8\");\n// } catch (Exception unErrore) { // intercetta l'errore\n// }// fine del blocco try-catch\n// }// fine del blocco if\n//\n// testoPost = \"text=\" + testo;\n// testoPost += \"&bot=true\";\n// testoPost += \"&minor=true\";\n// testoPost += \"&summary=\" + summary;\n//// testoPost += \"&token=\" + edittoken;\n//\n return \"\";\n }",
"@When(\"user calls {string} with Post http request\")\npublic void user_calls_with_post_http_request(String string) {\n\tresponse = res.when().post(\"/maps/api/place/add/json\")\n\t\t\t.then().spec(responspec).extract().response();\n \n}",
"@Before\n public void newHTTPTest() throws IOException {\n code = callHandlerResponse(\"\", \"POST\");\n }",
"private String post(String addr, String param, boolean auth) {\n\t\tboolean sent = false;\n\t\tString response = \"\";\n\n\t\twhile (!sent) {\n\t\t\tsent = true;\n\t\t\tURLConnection connection = null;\n\t\t\tDataOutputStream output = null;\n\t\t\tBufferedReader input = null;\n\t\t\tString charset = \"UTF-8\";\n\n\t\t\ttry {\n\t\t\t\tconnection = new URL(addr).openConnection();\n\t\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Cex.io Java API\");\n\t\t\t\tconnection.setRequestProperty(\"Content-Type\",\n\t\t\t\t\t\t\"application/x-www-form-urlencoded\");\n\t\t\t\tconnection.setRequestProperty(\"Accept-Charset\", charset);\n\t\t\t\tconnection.setRequestProperty(\"Charset\", charset);\n\n\t\t\t\tif (auth) {\n\t\t\t\t\t// generate post variables and catch errors\n\t\t\t\t\tString tSig = this.signature();\n\t\t\t\t\tString tNon = String.valueOf(this.nonce);\n\n\t\t\t\t\tconnection.setDoOutput(true);\n\t\t\t\t\toutput = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t\tString content = \"key=\"\n\t\t\t\t\t\t\t+ URLEncoder.encode(this.apiKey, charset)\n\t\t\t\t\t\t\t+ \"&signature=\" + URLEncoder.encode(tSig, charset)\n\t\t\t\t\t\t\t+ \"&nonce=\" + URLEncoder.encode(tNon, charset);\n\n\t\t\t\t\tif (param.contains(\",\")) {\n\t\t\t\t\t\tString[] temp = param.split(\",\");\n\n\t\t\t\t\t\tfor (int a = 0; a < temp.length; a += 2) {\n\t\t\t\t\t\t\tcontent += \"&\" + temp[a] + \"=\" + temp[a + 1] + \"&\";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tcontent = content.substring(0, content.length() - 1);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.writeBytes(content);\n\t\t\t\t\toutput.flush();\n\t\t\t\t\toutput.close();\n\t\t\t\t}\n\n\t\t\t\tString temp = \"\";\n\t\t\t\tinput = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tconnection.getInputStream()));\n\n\t\t\t\twhile ((temp = input.readLine()) != null) {\n\t\t\t\t\tresponse += temp;\n\t\t\t\t}\n\n\t\t\t\tinput.close();\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\tsent = false;\n\t\t\t\te.printStackTrace();\n\n\t\t\t\t// This will happen if cloudflare is active/api is down.\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn response;\n\t}",
"R request();",
"@Test\n\tpublic void test_001() {\n\t\tfinal String EXPECTED_RESPONSE = \"{\\\"hello\\\": \\\"world\\\"}\";\n\t\tJdProgramRequestParms.put(\"U$FUNZ\", new StringValue(\"URL\"));\n\t\tJdProgramRequestParms.put(\"U$METO\", new StringValue(\"HTTP\"));\n\t\tJdProgramRequestParms.put(\"U$SVARSK\", new StringValue(\"http://www.mocky.io/v2/5185415ba171ea3a00704eed\"));\n\n\t\tList<Value> responseParms = JdProgram.execute(javaSystemInterface, JdProgramRequestParms);\n\t\tassertTrue(responseParms.get(2).asString().getValue().equals(EXPECTED_RESPONSE));\n\t}",
"public String execute(HkRequest req, HkResponse resp) throws Exception {\n\t\treturn null;\r\n\t}",
"public String execute(HkRequest req, HkResponse resp) throws Exception {\n\t\treturn null;\r\n\t}",
"public String execute(HkRequest req, HkResponse resp) throws Exception {\n\t\treturn null;\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tHttpClient httpClient = new HttpClient();\n\t\t\n\t\tHttpMethod getMethod = new GetMethod(\"http://www.yahoo.com\");\n\t\tgetMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, \n\t \t\tnew DefaultHttpMethodRetryHandler(3, false));\n\t\t\n\t\ttry {\n\t\t // Execute the method.\n\t\t int statusCode = httpClient.executeMethod(getMethod);\n\n\t\t if (statusCode != HttpStatus.SC_OK) {\n\t\t System.err.println(\"Method failed: \" + getMethod.getStatusLine());\n\t\t }\n\n\t\t // Read the response body.\n\t\t byte[] responseBody = getMethod.getResponseBody();\n\n\t\t // Deal with the response.\n\t\t // Use caution: ensure correct character encoding and is not binary data\n\t\t System.out.println(new String(responseBody));\n\n\t\t } catch (HttpException e) {\n\t\t System.err.println(\"Fatal protocol violation: \" + e.getMessage());\n\t\t e.printStackTrace();\n\t\t } catch (IOException e) {\n\t\t System.err.println(\"Fatal transport error: \" + e.getMessage());\n\t\t e.printStackTrace();\n\t\t } finally {\n\t\t // Release the connection.\n\t\t \tgetMethod.releaseConnection();\n\t\t } \n\t\t }",
"public String invokeTest( String input ) throws TestException {\n\t\tString response = null;\n\t\t\n\t\ttry {\n\t\t\tresponse = runTest( input );\n\t\t} catch( Exception e ) {\n\t\t\tthrow new TestException(\"Test service got an exception during execution: \" + e.getClass().getName()+ \" \" + e.getMessage() );\n\t\t} // end try\n\t\treturn response;\n\t}",
"public void postTest(LabTest labTest) {\n URL url = null;\n try {\n url = new URL(apiAddress+\"postTest\");\n\n Gson gson = new GsonBuilder().setPrettyPrinting().create();\n String json = gson.toJson(labTest);\n String encodedString = Base64.getEncoder().encodeToString(json.getBytes());\n\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setDoOutput(true);\n con.setInstanceFollowRedirects( false );\n con.setRequestMethod( \"GET\" );\n con.setRequestProperty( \"Content-Type\", \"application/json\");\n con.setRequestProperty( \"charset\", \"utf-8\");\n con.setRequestProperty( \"Content-Length\", Integer.toString( encodedString.getBytes().length ));\n con.setRequestProperty(\"Data\", encodedString);\n con.setUseCaches( false );\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@org.junit.Test\r\n\tpublic void login() {\n\t\tParameters parameters = new Parameters();\r\n\t\tparameters.setUrl(\"LoginServlet?action=login\");\r\n\t\tparameters.setList(new ArrayList<NameValuePair>());\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info\", \"jitl\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info2\", \"admin\"));\r\n\t\tparameters.getList().add(new BasicNameValuePair(\"info3\", \"admin\"));\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tString string = (String) MainUtilityTools.execute(parameters);\r\n\t\tSystem.out.println(string);\r\n\t}",
"public String execute(){\r\n\t\t\r\n\t\tString resultHtml = null;\r\n\t\tdebug(1,\"jsrpc start...\"+screenName+\" \"+rpcid); \r\n\t\tHashMap hm = jsrpcProcessBL(screenName);\r\n\t\tJSONObject jobj = new JSONObject(hm);\r\n\t\tresultHtml = jobj.toString();\r\n\t\tdebug(1,\"json result:\"+resultHtml);\r\n\t\tinputStream = new StringBufferInputStream(resultHtml);\r\n\t\treturn SUCCESS;\r\n\t}",
"private RawHttpResponse<?> executeRequest(String method, String path) throws IOException {\r\n\t\tSocket socket = new Socket(\"localhost\", 8080);\r\n\t\treturn executeRequest(method, path, \"\", socket);\r\n\t}",
"public void testexecute(String test) throws Exception;",
"public static void main(String[] args) throws Exception {\n \tURL url = new URL(\"http://wossrobotics.ca/hand.php?state=lol\");\n \t HttpURLConnection httpCon = (HttpURLConnection) url.openConnection();\n \t httpCon.setDoOutput(true);\n \t httpCon.setRequestMethod(\"POST\");\n \t OutputStreamWriter out = new OutputStreamWriter(\n \t httpCon.getOutputStream());\n \t System.out.println(httpCon.getResponseCode());\n \t System.out.println(httpCon.getResponseMessage());\n \t out.close();\n }",
"@Override\n\t\tprotected String doInBackground(String... params) {\n\t\t\t String urlParameters = null;\n\t try {\n\t urlParameters = \"status=\" + URLEncoder.encode(\"1\", \"UTF-8\");\n\t } catch (UnsupportedEncodingException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\n\t response2 = Connectivity.excutePost(Constants.REGISTERLIST_URL,\n\t urlParameters);\n\t Log.e(\"You are at\", \"\" + response2);\n\t return response2;\n\n\t\t}",
"HttpResponse httpPost(URI uri);",
"java.lang.String getResponse();",
"private String doHttpClientGet() {\n\t\t\r\n\t\tHttpGet httpGet=new HttpGet(url);\r\n\t\tHttpClient client=new DefaultHttpClient();\r\n\t\ttry {\r\n\t\t\tHttpResponse response=client.execute(httpGet);\r\n\t\t\tif(response.getStatusLine().getStatusCode()==HttpStatus.SC_OK){\r\n\t\t\t\tresult=EntityUtils.toString(response.getEntity());\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"content----->\"+result);\r\n\t\t} catch (ClientProtocolException e) {\r\n\t\t\te.printStackTrace();\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\t\treturn result;\r\n\t}",
"public static int doPost(String transaction, int difficulty, Result r) {\n\n int status = 0;\n String output;\n String response = \"\";\n\n try {\n // Make call to a particular URL\n URL url = new URL(\"http://localhost:8080/Project3Task3Server/Project3Task3Servlet/\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n\n // set request method to POST and send name value pair\n conn.setRequestMethod(\"POST\");\n conn.setDoOutput(true);\n // write to POST data area\n OutputStreamWriter out = new OutputStreamWriter(conn.getOutputStream());\n out.write(transaction + \",\" + difficulty);\n out.close();\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream())));\n\n while ((output = br.readLine()) != null) {\n\n response += output;\n\n }\n // get HTTP response code sent by server\n status = conn.getResponseCode();\n //close the connection\n conn.disconnect();\n } // handle exceptions\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // return HTTP status\n r.setValue(response);\n return status;\n }",
"public static void main(String[] args) {\n\t\tHashMap responseMap;\n\t\ttry {\n\t\t HashMap reqparams = new HashMap(0);\n reqparams.put(\"msisdn\", \"94777335365\");\n \n responseMap = HttpPosterCommons.getInstance().executeGetRequestAsStream(\"http://192.168.71.225/interimbillpdfext.php\", reqparams, false);\n\t\t \n byte[] buf = (byte[])responseMap.get(\"response\");\n String statusCode = (String)responseMap.get(\"statusCode\");\n\t\t \n System.out.println(statusCode);\n System.out.println();\n System.out.println(buf);\n \n\t\t /*HashMap reqparams = new HashMap(0);\n\t\t reqparams.put(\"xml\", reqXML);*/\n\t\t //HashMap headerParams = new HashMap(0);\n\t\t //headerParams.put(\"SOAPAction\", \"http://tempuri.org/Sell_Product\");\n\t\t /*HashMap paraMap = new HashMap();\n\t\t paraMap.put(\"xml\", reqXML);*/\n\t\t\t/*responseMap = HttpPosterCommons.getInstance().executeAsWebService(XML_API_PATH, null, reqXML, \n\t\t\t HttpPosterCommons.REQUEST_CONTENT_TYPE, HttpPosterCommons.REQUEST_CHAR_SET,\n\t\t\t headerParams);*/\t \n\t\t //HttpPosterCommons.getInstance().setProxySettings(\"192.168.95.2\", \"8080\", \"charith_02380\", \"m1n1st1r1th\");\n\t\t //HttpPosterCommons.getInstance().setHttpConnectionSettings(30, 10000, 30, true, null);\n\t\t //responseMap = HttpPosterCommons.getInstance().executeAsHttpRequest(XML_API_PATH, null, reqXML, null);\n\t\t \n\t\t /*HashMap loginPara = new HashMap();\n\t\t loginPara.put(\"action\", \"login\");\n\t\t loginPara.put(\"username\", \"test\");\n\t\t loginPara.put(\"password\", \"test\");\n\t\t loginPara.put(\"fmt\", \"xml\");\n\t\t responseMap = HttpPosterCommons.getInstance().executeAsHttpRequest(\n\t\t \"http://172.22.6.64:7070/corporate/ctrl/mylogin/login.jsp\", \n\t\t loginPara, null, null);\t\t \n\t\t\tString res = (String)responseMap.get(\"response\");\n\t\t\tSystem.out.println(\"respXML : \"+res);*/\n\t\t \n\t\t /*HttpPosterCommons.updateProxySettings(\"192.168.95.2\", \"8080\", \"charith_02380\", \"xxx\");\n\t\t HashMap response = HttpPosterCommons.getInstance().executeAsHttpRequest(\"http://www.defence.lk/news/rss20.xml\", null, HttpPosterCommons.GET_METHOD);\n\t\t if(response.get(HttpPosterCommons.GET_RESPONSE_STATUS_CODE).toString().trim().equalsIgnoreCase(\"200\")) {\n\t\t System.out.println(response.get(HttpPosterCommons.GET_RESPONSE_ERR_CONTENT).toString());\n\t\t } else {\n\t\t System.out.println(response.get(HttpPosterCommons.GET_RESPONSE_CONTENT).toString());\n\t\t }*/\n\t\t \n\t\t /*String reqXML = \"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\"+\n \"<soap:Envelope xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xmlns:xsd=\\\"http://www.w3.org/2001/XMLSchema\\\" xmlns:soap=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\">\"+\n \"<soap:Body>\"+\n \"<Sell_Product xmlns=\\\"http://tempuri.org/\\\">\"+\n \"<ezMARTUserName>princess_leia</ezMARTUserName>\"+\n \"<encryptedKey>string</encryptedKey>\"+\n \"<itemID>TEST0001</itemID>\"+\n \"<Price>10</Price>\"+\n \"<PriceRange>10</PriceRange>\"+\n \"<QuantityMin>1</QuantityMin>\"+\n \"<QuantityMax>10</QuantityMax>\"+\n \"<ValidityFrom>20100924</ValidityFrom>\"+\n \"<ValidityTo>20100930</ValidityTo>\"+\n \"<SpecialTerms>Testing</SpecialTerms>\"+\n \"<SendAlerts>0</SendAlerts>\"+\n \"</Sell_Product>\"+\n \"</soap:Body>\"+\n \"</soap:Envelope>\";\n\t\t \n\t\t HttpPosterCommons.updateProxySettings(\"proxy.dialog.dialoggsm.com\", \"8080\", \"charith_02380\", \"m1n1st1r1th!\");*/\n\t\t //HashMap response = HttpPosterCommons.getInstance().executeGetRequest(\"http://www.dinamani.com/edition/rssSectionXml.aspx?SectionId=164\", null, true, \"UTF-8\", null);\n\t\t //HashMap response = HttpPosterCommons.getInstance().executeGetRequest(\"http://www.jasminenews.com/lankanews/sinhala/feed\", null, true, \"UTF-8\");\n\t\t //HashMap response = HttpPosterCommons.getInstance().executeGetRequest(\"http://www.jasminenews.com/lankanews/sinhala/feed\", null, true);\n\t\t //HashMap response = HttpPosterCommons.getInstance().executeGetRequest(\"http://www.vimasuma.com/rss/dialog_rss_vimasuma.xml\", null, true);\n\t\t /*HashMap response = HttpPosterCommons.getInstance().executeAsWebService(\n\t\t \"http://172.26.66.30/Ws_eZMART_Upload/WS_eZMARTUpload.asmx\", \n\t\t null, reqXML, \n HttpPosterCommons.REQUEST_CONTENT_TYPE, HttpPosterCommons.REQUEST_CHAR_SET,\n headerParams);\n\t\t if(response.get(HttpPosterCommons.GET_RESPONSE_STATUS_CODE).toString().trim().equalsIgnoreCase(\"200\")) {\n\t\t String str = response.get(HttpPosterCommons.GET_RESPONSE_ERR_CONTENT).toString();\n\t\t Document doc = Utility.convertXMLStr2DOMDoc(str, \"UTF-8\");\n System.out.println(doc.getRootElement().getChildren());\n\t\t System.out.println(str);\n } else {\n System.out.println(response.get(HttpPosterCommons.GET_RESPONSE_CONTENT).toString());\n }*/\n\t\t\t\n\t\t\t/*HashMap addPara = new HashMap();\n loginPara.put(\"action\", \"AddNewDistCont\");\n loginPara.put(\"distID\", \"85\");\n loginPara.put(\"distContNo\", \"777335372\");\n loginPara.put(\"distContDesc\", \"Praveen Dangalla\");\n loginPara.put(\"fmt\", \"xml\");\n\t\t\tresponseMap = HttpPosterCommons.getInstance().executeAsHttpRequest(\n\t\t\t \"http://172.22.6.64:7070/corporate/ctrl/distributions/corpDistCtrl.jsp\", \n\t\t\t loginPara, null, null); \n res = (String)responseMap.get(\"response\");\n System.out.println(\"respXML : \"+res);*/\n\t\t\t//GenericResponse genRes = ResponseParser.parse2GenericResponse(res);\n\t\t\t//System.out.println(genRes);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\n\t\tprotected String doInBackground(String... params) {\n\t\t\n\t\t\t String urlParameters = null;\n\t try {\n\t urlParameters = \"status=\" + URLEncoder.encode(\"0\", \"UTF-8\");\n\t } catch (UnsupportedEncodingException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\n\t response1 = Connectivity.excutePost(Constants.REGISTERLIST_URL,\n\t urlParameters);\n\t Log.e(\"You are at\", \"\" + response1);\n\t return response1;\n\t\t\t \n\t\t}",
"@Test\n public void postRequest() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: \"+ URI_SAMPLE + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.POST);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"www.site.ru\");\n assertEquals(request.getHeader(\"Referer\"), URI_SAMPLE);\n assertEquals(request.getHeader(\"Cookie\"), \"income=1\");\n assertEquals(request.getHeader(\"Content-Type\"), \"application/x-www-form-urlencoded\");\n assertEquals(request.getHeader(\"Content-Length\"), \"35\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"login\"), \"Petya Vasechkin\");\n assertEquals(request.getParameter(\"password\"), \"qq\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }",
"public String execute(HttpServletRequest request, \r\n HttpServletResponse response) throws ServletException, IOException;",
"String execute(HttpServletRequest request) throws Exception;",
"String execute(HttpServletRequest request);",
"public Result get(Get get) throws IOException;",
"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 }",
"private static HttpResponse sendPost() throws Exception {\n // Create the Call using the URL\n HttpPost http = new HttpPost(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }",
"private IStatus handleRSTest(final IProgressMonitor monitor, String address, String method, String body, String parms, String headersStr, String uid, String pwd) {\n \n \t\tif (method.equalsIgnoreCase(GET))\n \t\t\tbody = EMPTY_STRING;\n \n \t\t// if no actual text in the request body, set to null\n \t\tif (body.trim().length() == 0) body = null;\n \n \t\tmonitor.worked(10);\n \n \t\t// Process parameters for web service call\n \t\tHashMap<String, String> parameters = new HashMap<String, String>();\n \t\tif (parms != null && parms.length() > 0) {\n \t\t\tString[] parsedList = DelimitedStringList.parseString(parms , \",\"); //$NON-NLS-1$\n \t\t\tif (parsedList != null && parsedList.length > 0) {\n \t\t\t\tfor (int i = 0; i < parsedList.length; i++) {\n \t\t\t\t\tString nameValuePair = parsedList[i];\n \t\t\t\t\tString[] nameAndValue = DelimitedStringList.parseString(nameValuePair, \"=\"); //$NON-NLS-1$\n \t\t\t\t\tif (nameAndValue != null && nameAndValue.length == 2) {\n \t\t\t\t\t\tparameters.put(nameAndValue[0], nameAndValue[1]);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tmonitor.worked(10);\n \t\t// Process headers for web service call\n \t\tHashMap<String, String> headers = new HashMap<String, String>();\n \t\tif (headersStr != null && headersStr.length() > 0) {\n \t\t\tString[] parsedList = DelimitedStringList.parseString(headersStr , \",\"); //$NON-NLS-1$\n \t\t\tif (parsedList != null && parsedList.length > 0) {\n \t\t\t\tfor (int i = 0; i < parsedList.length; i++) {\n \t\t\t\t\tString nameValuePair = parsedList[i];\n \t\t\t\t\tString[] nameAndValue = DelimitedStringList.parseString(nameValuePair, \"=\"); //$NON-NLS-1$\n \t\t\t\t\tif (nameAndValue != null && nameAndValue.length == 2) {\n \t\t\t\t\t\theaders.put(nameAndValue[0], nameAndValue[1]);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\tJAXRSTester tester = new JAXRSTester();\n \n \t\t// now actually call it\n \t\ttry {\n \n \t\t\t// call the service\n \t\t\ttester.doTest(address, parameters, headers, method, body, null, -1, uid, pwd);\n \n \t\t\tString result = tester.getResultBody();\n \n \t\t\t// put the results in the result text field\n \t\t\tString cleanedUp = WSTestUtils.addNLsToXML(result);\n \n \t\t\tWSTestStatus status = new WSTestStatus(IStatus.OK, \n \t\t\t\t\tJBossWSUIPlugin.PLUGIN_ID, \n \t\t\t\t\tJBossWSUIMessages.JAXRSWSTestView_JAXRS_Success_Status);\n \t\t\tstatus.setResultsText(cleanedUp);\n \n \t\t\tString listText = EMPTY_STRING;\n \t\t\tif (tester.getResultHeaders() != null) {\n \t\t\t\tIterator<?> iter = tester.getResultHeaders().entrySet().iterator();\n \t\t\t\twhile (iter.hasNext()) {\n \t\t\t\t\tString text = EMPTY_STRING;\n \t\t\t\t\tEntry<?, ?> entry = (Entry<?, ?>) iter.next();\n \t\t\t\t\tif (entry.getKey() == null) \n \t\t\t\t\t\ttext = entry.getValue().toString();\n \t\t\t\t\telse\n \t\t\t\t\t\ttext = text + entry.toString();\n \t\t\t\t\tlistText = listText + text;\n \t\t\t\t\tif (iter.hasNext()) {\n \t\t\t\t\t\tlistText = listText + RESULT_HEADER_DELIMITER;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tstatus.setHeadersList(listText);\n \t\t\tmonitor.worked(10);\n \t\t\treturn status;\n \n \t\t} catch (Exception e) {\n \t\t\tString result = tester.getResultBody();\n \t\t\tif (result.isEmpty()) \n \t\t\t\tresult = e.getLocalizedMessage();\n \n \t\t\t// put the results in the result text field\n \t\t\tString cleanedUp = WSTestUtils.addNLsToXML(result);\n \n \t\t\tWSTestStatus status = new WSTestStatus(IStatus.OK, \n \t\t\t\t\tJBossWSUIPlugin.PLUGIN_ID, \n \t\t\t\t\tJBossWSUIMessages.JAXRSWSTestView_JAXRS_Success_Status);\n \t\t\tstatus.setResultsText(cleanedUp);\n \n \t\t\tString listText = EMPTY_STRING;\n \t\t\tif (tester.getResultHeaders() != null) {\n \t\t\t\tIterator<?> iter = tester.getResultHeaders().entrySet().iterator();\n \t\t\t\twhile (iter.hasNext()) {\n \t\t\t\t\tString text = EMPTY_STRING;\n \t\t\t\t\tEntry<?, ?> entry = (Entry<?, ?>) iter.next();\n \t\t\t\t\tif (entry.getKey() == null) \n \t\t\t\t\t\ttext = entry.getValue().toString();\n \t\t\t\t\telse\n \t\t\t\t\t\ttext = text + entry.toString();\n \t\t\t\t\tlistText = listText + text;\n \t\t\t\t\tif (iter.hasNext()) {\n \t\t\t\t\t\tlistText = listText + RESULT_HEADER_DELIMITER;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tstatus.setHeadersList(listText);\n \t\t\tmonitor.worked(10);\n \t\t\treturn status;\n \t\t}\n \t}",
"private synchronized String execute(final HttpUriRequest request) {\n request.setParams(params);\n\n // Set the request's headers\n for (Entry<String, String> header : headers.entrySet()) {\n request.setHeader(header.getKey(), header.getValue());\n }\n\n // Execute the request and get it's content\n HttpResponse response;\n String content;\n try {\n\n // Execute the request\n response = getClient().execute(request);\n\n // Get the response content\n content = EntityUtils.toString(response.getEntity(), charset);\n } catch (IOException e) {\n throw new JsogClientException(\"Get request failed.\", e);\n }\n\n // Check the response code\n StatusLine sl = response.getStatusLine();\n if (sl.getStatusCode() != 200) {\n throw new Non200ResponseCodeException(\n sl.getStatusCode(),\n sl.getReasonPhrase(),\n content);\n }\n\n return content;\n }",
"private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}",
"public static void main(String[] args) {\n\r\n\t\tMultiValueMap<String, String> s = new LinkedMultiValueMap<String, String>();\r\n\t\tString useragent=\"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36\";\r\n\t\ts.add(\"User-Agent\",useragent);\r\n\t\ts.add(\"Host\",\"https://www.baidu.com\");\r\n\t\tHttpHeaders headers =new HttpHeaders();\r\n\t\theaders.add(\"User-Agent\",useragent);\r\n\t\tString baidu=sendGetRequest(\"https://www.baidu.com\", s, headers);\r\n\t\tSystem.out.println(baidu);\r\n\t}",
"String serverRequest() throws UnsupportedEncodingException {\n String text = \"\";\n String urlData = reqestUrl +\n \"?pid=\" + patientId;\n HttpURLConnection conn = null;\n InputStream stream = null;\n // Send data\n try {\n\n // Defined URL where to send data\n URL url = new URL(urlData);\n\n // Send GET data request\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setDoInput(true);\n conn.connect();\n if (conn.getResponseCode() == 200) {\n\n stream = conn.getInputStream();\n Log.d(\"Get Request\", \"inside try -if\");\n if (stream != null) {\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(stream));\n StringBuilder builder = new StringBuilder();\n Log.d(\"click\", \"inside tr4y\");\n String line = null;\n while ((line = bufferedReader.readLine()) != null) {\n\n builder.append(line + \"\\n\");\n Log.d(\"line\", line);\n\n }\n\n text = builder.toString();\n Log.d(\"Response: \",text);\n }\n }\n }\n catch (Exception ex) {\n Log.d(\"ServerRequest Error\", \"error occurred\" + ex);\n\n }\n finally {\n try {\n if (stream != null) {\n stream.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (conn != null) {\n conn.disconnect();\n }\n }\n return text;\n }",
"public void invoke() throws Exception, IOException {\n java.io.PrintWriter out = response.getWriter();\n out.println(\"Welcome to ping\");\n return;\n}",
"public static void main(String[] args) {\n\t\tfinal AbcHttpCallService abcHttpCallService = new AbcHttpCallServiceImpl();\n\t\tPlainResult<Map<String, String>> result = new PlainResult<Map<String, String>>();\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"appid\", \"wxf09fcbb0bb3edbee\");\n params.put(\"secret\", \"0e4dcd0eb0d82878d30d164c9f5e9ab5\");\n params.put(\"grant_type\", \"client_credential\");\n String submitUrl = \"https://api.weixin.qq.com/cgi-bin/token\";\n String resultStr = abcHttpCallService.httpGet(submitUrl, params).getData();\n Map<String, String> paramsResult = new HashMap<String, String>();\n paramsResult = MiscUtil.parseJSON(resultStr.toString());\n String token = paramsResult.get(\"access_token\");\n result.setData(paramsResult);\n\t}",
"private static void sendPosts(HttpClient httpClient) {\n HttpTextResponse httpResponse = httpClient.post(\"/hello/mom\");\n puts(httpResponse);\n\n\n /* Send one param post. */\n httpResponse = httpClient.postWith1Param(\"/hello/singleParam\", \"hi\", \"mom\");\n puts(\"single param\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith2Params(\"/hello/twoParams\",\n \"hi\", \"mom\", \"hello\", \"dad\");\n puts(\"two params\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith3Params(\"/hello/3params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\");\n puts(\"three params\", httpResponse);\n\n\n /* Send four param post. */\n httpResponse = httpClient.postWith4Params(\"/hello/4params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\");\n puts(\"4 params\", httpResponse);\n\n /* Send five param post. */\n httpResponse = httpClient.postWith5Params(\"/hello/5params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\",\n \"hola\", \"neighbors\");\n puts(\"5 params\", httpResponse);\n\n\n /* Send six params with post. */\n\n final HttpRequest httpRequest = httpRequestBuilder()\n .setUri(\"/sixPost\")\n .setMethod(\"POST\")\n .addParam(\"hi\", \"mom\")\n .addParam(\"hello\", \"dad\")\n .addParam(\"greetings\", \"kids\")\n .addParam(\"yo\", \"pets\")\n .addParam(\"hola\", \"pets\")\n .addParam(\"salutations\", \"all\").build();\n\n\n httpResponse = httpClient.sendRequestAndWait(httpRequest);\n puts(\"6 params\", httpResponse);\n\n\n //////////////////\n //////////////////\n\n\n /* Using Async support with lambda. */\n httpClient.postAsync(\"/hi/async\", (code, contentType, body) -> puts(\"Async text with lambda\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith1Param(\"/hi/async\", \"hi\", \"mom\", (code, contentType, body) -> puts(\"Async text with lambda 1 param\\n\", body));\n\n Sys.sleep(100);\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith2Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n (code, contentType, body) -> puts(\"Async text with lambda 2 params\\n\", body));\n\n Sys.sleep(100);\n\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith3Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n (code, contentType, body) -> puts(\"Async text with lambda 3 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith4Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n (code, contentType, body) -> puts(\"Async text with lambda 4 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith5Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n \"p5\", \"v5\",\n (code, contentType, body) -> puts(\"Async text with lambda 5 params\\n\", body));\n\n Sys.sleep(100);\n\n\n }",
"@Test\n\tpublic void postExample() {\n\t\tString APIUrl = \"http://34.210.101.131:8081/topics\";\n\t\tString APIBody=\"{\\\"topicComplexity\\\":\\\"5\\\",\\\"topicName\\\":\\\"MCQ\\\"}\";\n\t\t// Building request using requestSpecBuilder\n\t\tRequestSpecBuilder builder = new RequestSpecBuilder();\n\t\t \n\t\tbuilder.setBody(APIBody);\n\t\tbuilder.setContentType(\"application/json\");\n\t\t//RequestSpecification requestSpec = (RequestSpecification) builder.build();\n\t\tRequestSpecification request = RestAssured.given();\n\t\tRestAssured.given().auth().preemptive().basic(\"[email protected]\",\"testdata@123\");\n\t\t//com.jayway.restassured.specification.RequestSpecification requestSpec = builder.build();\t \n\t\t \n\t\n\t\t\t\t\n\t\tResponse response = request.post(\"http://34.210.101.131:8081/topics\");\n\t\tfloat code = response.getStatusCode();\n\t\tSystem.out.println(\"status code is\"+code);\n\t\tString data =response.asString();\n\t\tSystem.out.println(\"Data is\"+data);\n\t\t\n\n\t\t\n\t\t\n\t}",
"public static String executeHttpGet(String uri) throws Exception {\r\n\t\t\r\n\t\tHttpGet req = new HttpGet(uri);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse resLogin = client.execute(req);\r\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(resLogin\r\n\t\t\t\t.getEntity().getContent()));\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tString s = null;\r\n\t\twhile ((s = r.readLine()) != null) {\r\n\t\t\tsb.append(s);\r\n\t\t}\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}",
"public static String executePostBytes(String targetURL, byte[] urlParameters) {\n\t\t\t HttpURLConnection connection = null; \n\t\t\t try {\n\t\t\t //Create connection\n\t\t\t URL url = new URL(targetURL);\n\t\t\t connection = (HttpURLConnection)url.openConnection();\n\t\t\t connection.setRequestMethod(\"POST\");\n\t\t\t connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\n\t\t\t connection.setRequestProperty(\"Content-Length\", \n\t\t\t Integer.toString(urlParameters.length));\n\t\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\n\t\t\t connection.setUseCaches(false);\n\t\t\t connection.setDoOutput(true);\n\n\t\t\t //Send request\n\t\t\t DataOutputStream wr = new DataOutputStream (\n\t\t\t connection.getOutputStream());\n\t\t\t wr.write(urlParameters);;\n\t\t\t wr.close();\n\n\t\t\t //Get Response \n\t\t\t InputStream is = connection.getInputStream();\n\t\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t\t StringBuilder response = new StringBuilder(); // or StringBuffer if not Java 5+ \n\t\t\t String line;\n\t\t\t while((line = rd.readLine()) != null) {\n\t\t\t response.append(line);\n\t\t\t response.append('\\r');\n\t\t\t }\n\t\t\t rd.close();\n\t\t\t \n\t\t\t if (response.length() == 0 ){\n\t\t\t \t// if nothing is coming back, at least send the response code.\n\t\t\t \t// a correct commit only returns 200-ok\n\t\t\t \tresponse.append(connection.getResponseCode());\n\t\t\t }\n\t\t\t return response.toString();\n\t\t\t } catch (Exception e) {\n\t\t\t e.printStackTrace();\n\t\t\t return null;\n\t\t\t } finally {\n\t\t\t if(connection != null) {\n\t\t\t connection.disconnect(); \n\t\t\t }\n\t\t\t }\n\t\t\t}",
"private static void sendGets(HttpClient httpClient) {\n HttpTextResponse httpResponse = httpClient.get(\"/hello/mom\");\n puts(httpResponse);\n\n\n /* Send one param get. */\n httpResponse = httpClient.getWith1Param(\"/hello/singleParam\", \"hi\", \"mom\");\n puts(\"single param\", httpResponse);\n\n\n /* Send two param get. */\n httpResponse = httpClient.getWith2Params(\"/hello/twoParams\",\n \"hi\", \"mom\", \"hello\", \"dad\");\n puts(\"two params\", httpResponse);\n\n\n /* Send two param get. */\n httpResponse = httpClient.getWith3Params(\"/hello/3params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\");\n puts(\"three params\", httpResponse);\n\n\n /* Send four param get. */\n httpResponse = httpClient.getWith4Params(\"/hello/4params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\");\n puts(\"4 params\", httpResponse);\n\n /* Send five param get. */\n httpResponse = httpClient.getWith5Params(\"/hello/5params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\",\n \"hola\", \"neighbors\");\n puts(\"5 params\", httpResponse);\n\n\n /* Send six params with get. */\n\n final HttpRequest httpRequest = httpRequestBuilder().addParam(\"hi\", \"mom\")\n .addParam(\"hello\", \"dad\")\n .addParam(\"greetings\", \"kids\")\n .addParam(\"yo\", \"pets\")\n .addParam(\"hola\", \"pets\")\n .addParam(\"salutations\", \"all\").build();\n\n httpResponse = httpClient.sendRequestAndWait(httpRequest);\n puts(\"6 params\", httpResponse);\n\n\n /* Using Async support with lambda. */\n httpClient.getAsync(\"/hi/async\", (code, contentType, body) -> puts(\"Async text with lambda\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.getAsyncWith1Param(\"/hi/async\", \"hi\", \"mom\", (code, contentType, body) -> puts(\"Async text with lambda 1 param\\n\", body));\n\n Sys.sleep(100);\n\n\n\n /* Using Async support with lambda. */\n httpClient.getAsyncWith2Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n (code, contentType, body) -> puts(\"Async text with lambda 2 params\\n\", body));\n\n Sys.sleep(100);\n\n\n\n\n /* Using Async support with lambda. */\n httpClient.getAsyncWith3Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n (code, contentType, body) -> puts(\"Async text with lambda 3 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.getAsyncWith4Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n (code, contentType, body) -> puts(\"Async text with lambda 4 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.getAsyncWith5Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n \"p5\", \"v5\",\n (code, contentType, body) -> puts(\"Async text with lambda 5 params\\n\", body));\n\n Sys.sleep(100);\n }",
"@RequestMapping(value = \"/intro-groovy\")\n\tpublic String test() {\n\t\tfoo.execute();\n\t\tt.add(System.currentTimeMillis());\n\t\tSystem.out.println(foo.executew(t));\n\t\t//System.currentTimeMillis();\n\t\treturn \"intro/about-me\";\n\t}",
"public String testGet(String arg1) {\n HttpClient client = new DefaultHttpClient();\n HttpGet get = new HttpGet(URL);\n\n try {\n HttpResponse response = client.execute(get);\n HttpEntity resEntity = response.getEntity();\n return EntityUtils.toString(resEntity);\n } catch (Exception e) { }\n\n return null;\n }",
"public static String executeGet(String targetURL) {\t\n\t\t HttpURLConnection connection = null; \n\t\t try {\n\t\t //Create connection\n\t\t URL url = new URL(targetURL);\n\t\t connection = (HttpURLConnection)url.openConnection();\n\t\t connection.setRequestMethod(\"GET\");\n\t\t connection.setRequestProperty(\"Content-Type\", \"application/json\");\n\t\t connection.setRequestProperty(\"Content-Language\", \"en-US\"); \n\n\t\t connection.setUseCaches(false);\n\t\t connection.setDoOutput(true);\n\n\n\t\t //Get Response \n\t\t InputStream is = connection.getInputStream();\n\t\t BufferedReader rd = new BufferedReader(new InputStreamReader(is));\n\t\t StringBuilder response = new StringBuilder(); // or StringBuffer if not Java 5+ \n\t\t String line;\n\t\t while((line = rd.readLine()) != null) {\n\t\t response.append(line);\n\t\t response.append('\\r');\n\t\t }\n\t\t rd.close();\n\t\t return response.toString();\n\t\t } catch (Exception e) {\n\t\t return e.getMessage();\n\t\t } finally {\n\t\t if(connection != null) {\n\t\t connection.disconnect(); \n\t\t }\n\t\t }\n\t\t}",
"public String issueGetRequest(String query) {\n URL url;\n String result = \"\";\n\n return \"valid\";\n /**\n * Todo: When server API is up and running uncomment this.\n *\n * try { url = new URL(server + \"?\" + query); BufferedReader br = new\n * BufferedReader(new InputStreamReader(url.openStream())); String\n * strTemp = \"\";\n * \n * while (null != (strTemp = br.readLine())) { result = strTemp; }\n * \n * } catch (Exception e) { e.printStackTrace(); }\n * \n * return result;\n */\n }",
"private static String executeRequest(String url) throws IOException {\n\n\t\tLog.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t\n\t\tSocket s = new Socket(IP, PORT);\n\t\tPrintStream ps = new PrintStream(s.getOutputStream());\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"PS OPENED\");\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(\n\t\t\t\ts.getInputStream()));\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"BR OPENED\");\n\t\tps.println(url);\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"URL PRNTED\");\n\t\tString response = r.readLine();\n\t\t//Log.d(RiotJsonRequest.class.getSimpleName() , \"RESPONSE: \" + response);\n\t\treturn response;\n\n\t\t// boolean unsuccessful = true;\n\t\t// int tries = 0;\n\t\t// String response = \"\";\n\t\t// while(unsuccessful && tries != 3){\n\t\t// unsuccessful = false;\n\t\t// URL requestUrl = new URL(url);\n\t\t// HttpsURLConnection connection = (HttpsURLConnection)\n\t\t// requestUrl.openConnection();\n\t\t// try{\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , url);\n\t\t// connection.setRequestMethod(\"GET\");\n\t\t// connection.getResponseCode();\n\t\t//\n\t\t// //connection.\n\t\t//\n\t\t// connection.connect();\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t// //Needs error checking on connection\n\t\t//\n\t\t// InputStream in = new\n\t\t// BufferedInputStream(connection.getInputStream());\n\t\t// BufferedReader reader = new BufferedReader(new\n\t\t// InputStreamReader(in));\n\t\t// StringBuffer buffer = new StringBuffer();\n\t\t// String line;\n\t\t//\n\t\t// //reads response in and appends it to buffer\n\t\t// do{\n\t\t// line = reader.readLine();\n\t\t// buffer.append(line);\n\t\t// }while (line != null);\n\t\t//\n\t\t// //disconnects the HttpURLConnection so other requests can be made\n\t\t// connection.disconnect();\n\t\t// //Log.d(RiotJsonRequest.class.getSimpleName() , \"RECEIVED: \" +\n\t\t// buffer.toString());\n\t\t// response = buffer.toString();\n\t\t// }catch(Exception e){\n\t\t// String code = Integer.toString(connection.getResponseCode());\n\t\t// Log.d(RiotJsonRequest.class.getSimpleName() , \"CODE: \" + code);\n\t\t// if(code.equals(\"404\")){\n\t\t// return code;\n\t\t// }\n\t\t// unsuccessful = true;\n\t\t// tries++;\n\t\t// connection.disconnect();\n\t\t// connection = null;\n\t\t// requestUrl = null;\n\t\t// try {\n\t\t// Thread.sleep(1000);\n\t\t// } catch (InterruptedException e1) {\n\t\t// e1.printStackTrace();\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t// return response;\n\t}",
"public void run()\n {\n try\n { \n // here we process input from the Browser\n BufferedReader br = new BufferedReader(new InputStreamReader(this.is));\n \n String cmd_line = null;\n \n String request_type = null;\n String request_path = null;\n String path_token = null;\n Hashtable<String, String> headers = new Hashtable<String, String>();\n Hashtable<String, String> formContent = new Hashtable<String, String>();\n Hashtable<String, String> urlGetParameters = new Hashtable<String, String>();\n Hashtable<String, String> cookies = new Hashtable<String, String>();\n String raw_form_data = \"\";\n String get_params = \"\";\n \n try\n {\n // Recieve GET/POST line and process\n cmd_line = br.readLine();\n this.myServer.logln(this.clientHostname, \"-> \" + cmd_line);\n StringTokenizer request = new StringTokenizer(cmd_line);\n \n while (request.hasMoreTokens())\n {\n String currentToken = request.nextToken();\n if (\"GET\".equals(currentToken) && request.hasMoreTokens())\n {\n path_token = URLDecoder.decode(request.nextToken(),\"UTF-8\");\n request_type = \"GET\";\n }\n if (\"POST\".equals(currentToken) && request.hasMoreTokens())\n {\n path_token = URLDecoder.decode(request.nextToken(),\"UTF-8\");\n request_type = \"POST\";\n }\n }\n \n // handle get parameters\n int qidx = path_token.indexOf(\"?\");\n if (qidx > -1)\n {\n request_path = path_token.substring(0,qidx);\n get_params = path_token.substring(qidx+1);\n StringTokenizer get_data = new StringTokenizer(get_params, \"&\");\n while (get_data.hasMoreTokens())\n {\n String currentToken = get_data.nextToken();\n if (currentToken.indexOf(\"=\") > -1 && !currentToken.endsWith(\"=\"))\n {\n StringTokenizer get_entry = new StringTokenizer(currentToken, \"=\");\n String g_key = get_entry.nextToken();\n String g_value = get_entry.nextToken();\n urlGetParameters.put(g_key, g_value);\n \n this.myServer.logln(this.clientHostname, \"-> (GETPARAMETER) {\" + g_key + \"} \" + g_value);\n }\n }\n } else {\n request_path = path_token;\n }\n \n while (!\"\".equals(cmd_line))\n {\n cmd_line = br.readLine();\n //this.myServer.logln(this.clientHostname, \"-> \" + cmd_line);\n if (!\"\".equals(cmd_line))\n {\n StringTokenizer header_parts = new StringTokenizer(cmd_line, \":\");\n // lets store the request headers just incase \n String h_key = header_parts.nextToken();\n String h_value = header_parts.nextToken().trim();;\n headers.put(h_key, h_value);\n this.myServer.logln(this.clientHostname, \"-> (HEADER) {\" + h_key + \"} \" + h_value);\n }\n }\n \n // Is there a cookie?\n String cookie = headers.get(\"Cookie\");\n if (cookie != null)\n {\n StringTokenizer cookie_data = new StringTokenizer(cookie, \";\");\n while (cookie_data.hasMoreTokens())\n {\n StringTokenizer this_cookie = new StringTokenizer(cookie_data.nextToken().trim(), \"=\");\n String c_key = this_cookie.nextToken();\n String c_value = this_cookie.nextToken();\n if (!cookies.containsKey(c_key))\n {\n cookies.put(c_key, c_value);\n this.myServer.logln(this.clientHostname, \"-> (COOKIE) {\" + c_key + \"} \" + c_value);\n } else {\n cookies.put(c_key, c_value);\n this.myServer.logln(this.clientHostname, \"<> (COOKIE) {\" + c_key + \"} *OVERWRITE* \" + c_value);\n }\n }\n this.myServer.logln(this.clientHostname, \"-> (END OF COOKIES)\");\n }\n \n // what do we if there was a post!\n if (request_type.equals(\"POST\"))\n {\n int content_length = Integer.valueOf(headers.get(\"Content-Length\")).intValue();\n this.myServer.logln(this.clientHostname, \"*** POST DATA\");\n int bytein = -2;\n int byteCount = 0;\n StringBuffer form_raw = new StringBuffer(\"\");\n while (bytein != -1 && byteCount < content_length)\n {\n bytein = br.read();\n byteCount++;\n if (bytein > -1) form_raw.append((char) bytein);\n }\n raw_form_data = form_raw.toString();\n if (this.myServer.isShowData())\n {\n this.myServer.getDebugStream().println(\"--------------Inbound Data-------------\");\n this.myServer.getDebugStream().println(raw_form_data); \n this.myServer.getDebugStream().println(\"---------------------------------------\");\n }\n \n }\n \n // what do we do if it was a form post?\n if (\"application/x-www-form-urlencoded\".equals(headers.get(\"Content-Type\")))\n {\n this.myServer.logln(this.clientHostname, \"*** application/x-www-form-urlencoded\");\n StringTokenizer form_data = new StringTokenizer(raw_form_data, \"&\");\n while (form_data.hasMoreTokens())\n {\n String currentToken = form_data.nextToken();\n if (currentToken.indexOf(\"=\") > -1)\n {\n StringTokenizer form_entry = new StringTokenizer(currentToken, \"=\");\n String f_key = form_entry.nextToken();\n String f_value = URLDecoder.decode(form_entry.nextToken(),\"UTF-8\");\n formContent.put(f_key, f_value);\n this.myServer.logln(this.clientHostname, \"-> (FORMDATA) {\" + f_key + \"} \" + f_value);\n }\n }\n }\n } catch (Exception rex) {\n this.myServer.logln(\"Placebo\", \"Exception: \" + rex.toString() + \" / \" + rex.getMessage());\n }\n \n if (request_type != null)\n {\n HttpRequest req_obj = new HttpRequest(request_path, request_type, headers, cookies, formContent, raw_form_data, urlGetParameters, get_params, this.connection, this.myServer);\n this.myServer.routeRequest(req_obj);\n }\n } catch (Exception x) {}\n }",
"R execute();",
"private boolean invoke(HttpRequest request, HttpResponse response) {\n\t\t\n\t\tString[] requestSplit=request.getPath().split(\"/\",3);\n\t\t// first: empty (string starts with '/')\n\t\t// second: service name\n\t\t// third: URI rest\n\t\tString serviceName=\"\";\n\t\tString methodName=\"\";\n\t\tString restURI=\"\";\n\t\tString content=\"\";\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tserviceName=requestSplit[1];\n\t\t\tmethodName=REST_DECODER; //special method in service\n\t\t\t\n\t\t\tif(requestSplit.length>=3)\n\t\t\t{\n\t\t\t\tint varsstart=requestSplit[2].indexOf('?');\n\t\t\t\tif(varsstart>0)\n\t\t\t\t\trestURI=requestSplit[2].substring(0,varsstart);\n\t\t\t\telse\n\t\t\t\t\trestURI=requestSplit[2];\n\t\t\t}\n\t\t\t\n\t\t\tcontent=request.getContentString();\n\t\t\t\n\t\t\tint httpMethodInt=request.getMethod();\n\t\t\tString httpMethod=\"get\";\n\t\t\t\n\t\t\tswitch (httpMethodInt) \n\t\t\t{\n\t\t\t\tcase HttpRequest.METHOD_GET:\n\t\t\t\t\thttpMethod=\"get\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_HEAD:\n\t\t\t\t\thttpMethod=\"head\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_DELETE:\n\t\t\t\t\thttpMethod=\"delete\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_POST:\n\t\t\t\t\thttpMethod=\"post\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase HttpRequest.METHOD_PUT:\n\t\t\t\t\thttpMethod=\"put\";\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(content==null)\n\t\t\t\tcontent=\"\";\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tString[][] variables = {};//extract variables from request\n\t\t\t\n\t\t\tArrayList<String[]> variablesList=new ArrayList<String[]>();\n\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\tEnumeration en = request.getGetVarNames();\t\t\n\t\t\tString querystr=\"\";\n\t\t\twhile(en.hasMoreElements())\n\t\t\t{\n\t\t\t\tString param = (String) en.nextElement();\n\t\t\t\tString val= request.getGetVar(param);\n\t\t\t\t\n\t\t\t\tString[] pair={param,val};\n\t\t\t\t//connector.logMessage(param+\" \"+val);\n\t\t\t\tvariablesList.add(pair);\n\t\t\t\tquerystr+=param+\" = \"+val+\" \";\n\t\t\t}\n\t\t\tconnector.logMessage(request.getMethod()+\" \"+request.getUrl()+\" \"+querystr);\n\t\t\tvariables=variablesList.toArray(new String[variablesList.size()][2]);\n\t\t\t\n\t\t\t//connector.logMessage(content);\n\t\t\tSerializable[] parameters={httpMethod,restURI,variables,content};\n\t\t\t\n\t\t\tSerializable result;\t\n\t\t\tMediator mediator = _userSessions.get(_currentUserId).getMediator();//get registered mediator\n\t\t\tresult= mediator.invoke(serviceName,methodName, parameters, connector.preferLocalServices());// invoke service method\n\t\t\t\n\t\t\tsendInvocationSuccess ( result, response );\n\t\t\treturn true;\n\t\t\t\n\t\t} catch ( NoSuchServiceException e ) {\n\t\t\tsendNoSuchService(request, response, serviceName);\t\t\t\n\t\t} catch ( TimeoutException e ) {\n\t\t\tsendNoSuchService(request, response, serviceName);\n\t\t} catch ( NoSuchServiceMethodException e ) {\n\t\t\tsendNoSuchMethod(request, response);\n\t\t} catch ( L2pSecurityException e ) {\n\t\t\tsendSecurityProblems(request, response, e);\t\t\t\t\t\n\t\t} catch ( ServiceInvocationException e ) {\n\t\t\tif ( e.getCause() == null )\n\t\t\t\tsendResultInterpretationProblems(request, response);\n\t\t\telse\n\t\t\t\tsendInvocationException(request, response, e);\t\t\t\t\t\t\t\t\n\t\t} catch ( InterruptedException e ) {\n\t\t\tsendInvocationInterrupted(request, response);\n\t\t} catch ( InvalidCodingException e ) {\n\t\t\tsendConnectorProblems(request, response, e);\n\t\t} catch ( CodingException e ) {\n\t\t\tsendResultInterpretationProblems(request, response);\n\t\t} catch (Exception e)\n\t\t{\n\t\t\n\t\t}\n\t\treturn false;\n\t}",
"@Test\r\n\tpublic void testCase_3() throws ServletException, IOException {\r\n\t\trequest.addParameter(\"username\", \"pasquale98\");\r\n\t\trequest.addParameter(\"password\", \"pasquale12\");\r\n\r\n\t\tservlet.doPost(request, response);\r\n\r\n\t\tassertEquals(successMessage, (String) request.getAttribute(\"result\"));\r\n\t}",
"public static String downloadContentUsingPostMethod(String urlString,String parameters) throws IOException {\n URL url = new URL(urlString);\n URLConnection conn = url.openConnection();\n conn.setDoOutput(true);\n OutputStreamWriter writer = new OutputStreamWriter(conn.getOutputStream());\n writer.write(\"value=1&anotherValue=1\");\n writer.flush();\n String line;\n BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n StringBuilder response = new StringBuilder();\n while ((line = reader.readLine()) != null) {\n response.append(line);\n }\n writer.close();\n reader.close();\n\n return response.toString();\n }",
"@Override\n\tpublic void execute(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t\tBufferedReader br = request.getReader();\n\t\t\n\t\tSystem.out.println(br.readLine());\n\t\t\n\t\tSystem.out.println(request.getParameter(\"name\"));\n//\t\t\n\t\tPrintWriter pw = response.getWriter();\n\t\t\n\t\tpw.println(\"ajaxTest8return\");\n\t\t\n\t}",
"public static void main(String[] args) {\n HttpClient client = new HttpClient();\n\n // Create a method instance.\n GetMethod method = new GetMethod(url);\n\n // Provide custom retry handler is necessary\n method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,\n new DefaultHttpMethodRetryHandler(3, false));\n\n try {\n // Execute the method.\n int statusCode = client.executeMethod(method);\n\n if (statusCode != HttpStatus.SC_OK) {\n System.err.println(\"Method failed: \" + method.getStatusLine());\n }\n\n // Read the response body.\n byte[] responseBody = method.getResponseBody();\n\n Document doc= Jsoup.parse(new String(responseBody));\n\n Element body = doc.select(\"div.c1-body\").first();\n // 找出定义了 class=masthead 的元素\n Elements contents = body.select(\"div.c1-bline\");\n for (Element content : contents) {\n Element link = content.select(\"div\").select(\"a\").get(1);\n String linkHref = link.attr(\"href\");\n String linkText = link.text();\n System.out.println(\"-------------------------\");\n System.out.println(linkHref+\",\"+linkText);\n// copyTofile(\"------------------------------\");\n// copyTofile(linkHref+\",\"+linkText +\"\\n\");\n// readStatics(linkHref);\n }\n // Deal with the response.\n // Use caution: ensure correct character encoding and is not binary data\n// System.out.println(new String(responseBody));\n\n } catch (HttpException e) {\n System.err.println(\"Fatal protocol violation: \" + e.getMessage());\n e.printStackTrace();\n } catch (IOException e) {\n System.err.println(\"Fatal transport error: \" + e.getMessage());\n e.printStackTrace();\n } finally {\n // Release the connection.\n method.releaseConnection();\n }\n }",
"public void doPost( )\n {\n \n }",
"private String postMT(String xml) throws PrepException{\n\n StringBuilder responseXml = new StringBuilder();\n try{\n URL mtUrl = new URL(this.url);\n HttpURLConnection httpconn = (HttpURLConnection)mtUrl.openConnection();\n httpconn.setDoInput(true);\n httpconn.setDoOutput(true);\n\n OutputStreamWriter out = new OutputStreamWriter(httpconn.getOutputStream());\n out.write(xml);\n out.close();\n\n int responseCode = httpconn.getResponseCode();\n if(responseCode != 200){\n throw new PrepException(\"Error with HTTP connection in MTPrep.postMT(); HTTP response code: \"+responseCode);\n }\n //out.close();\n\n BufferedReader in = new BufferedReader( new InputStreamReader(httpconn.getInputStream()));\n\n String line;\n while (( line = in.readLine()) != null){\n responseXml.append(line);\n }\n in.close();\n\n }\n catch(MalformedURLException malex ){\n throw new PrepException(\"URL Error in MTPrep.postMT(): \"+malex.getMessage());\n }\n catch(IOException ioe){\n throw new PrepException(\"IO Error in MTPrep.postMT(): \"+ioe.getMessage());\n }\n return responseXml.toString();\n }",
"@Override\n\tprotected String doInBackground(String... params) {\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\t\tString response = null;\n\t\tif(method.equals(\"POST\")){\t\t\t\n\t\t\tLog.d(\"Ji\", \"Inside communicator POST\");\n HttpPost httpPost = new HttpPost(url);\n try {\n \tLog.d(\"Ji\", \"Within httppost url \" +message);\n \n\t\t\t\thttpPost.setEntity(new StringEntity(message, \"UTF8\"));\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t};\n\n HttpResponse httpResponse;\n\t\t\ttry {\n\t\t\t\tLog.d(\"Ji\",\"within httpresponse\");\n\t\t\t\thttpResponse = httpClient.execute(httpPost);\n\t\t\t\tInputStream inputStream = httpResponse.getEntity().getContent();\n\t\t\t\tresponse = convertStreamToString(inputStream);\n\t\t\t\tLog.d(\"Ji\",\"after response \" +response);\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\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 \n\t\t}\n\t\tif(method.equals(\"GET\")){\n\t\t\tHttpGet httpGet = new HttpGet(url);\n \n Log.d(\"GET\", \"url is \"+url);\n HttpResponse httpResponse;\n\t\t\ttry {\n\t\t\t\tLog.d(\"Ji\", \"before execute\");\n\t\t\t\thttpResponse = httpClient.execute(httpGet);\t \t \n\t InputStream inputStream = httpResponse.getEntity().getContent();\n\t response = convertStreamToString(inputStream);\n\t Log.d(\"GET JI\", \"response is \"+response);\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\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\t\n\t\tif(method.equals(\"PUT\")){\t\t\t\n\t\t\tLog.d(\"Ji\", \"Inside communicator PUT\");\n HttpPut httpPut = new HttpPut(url);\n try {\n \tLog.d(\"Ji\", \"Within httpput url \" +message);\n \n\t\t\t\thttpPut.setEntity(new StringEntity(message, \"UTF8\"));\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t};\n\n HttpResponse httpResponse;\n\t\t\ttry {\n\t\t\t\tLog.d(\"Ji\",\"within httpresponse\");\n\t\t\t\thttpResponse = httpClient.execute(httpPut);\n\t\t\t\tInputStream inputStream = httpResponse.getEntity().getContent();\n\t\t\t\tresponse = convertStreamToString(inputStream);\n\t\t\t\tLog.d(\"Ji\",\"after response \" +response);\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\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 \n\t\t}\n\t\tif(method.equals(\"DELETE\")){\t\t\t\n\t\t\tLog.d(\"Ji\", \"Inside communicator DELETE\");\n HttpDelete httpDelete = new HttpDelete(url);\n try {\n \tLog.d(\"Ji\", \"Within httpdelete url \" +message);\n \n\t\t\t\t((HttpResponse) httpDelete).setEntity(new StringEntity(message, \"UTF8\"));\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t};\n\n HttpResponse httpResponse;\n\t\t\ttry {\n\t\t\t\tLog.d(\"Ji\",\"within httpresponse\");\n\t\t\t\thttpResponse = httpClient.execute(httpDelete);\n\t\t\t\tInputStream inputStream = httpResponse.getEntity().getContent();\n\t\t\t\tresponse = convertStreamToString(inputStream);\n\t\t\t\tLog.d(\"Ji\",\"after response \" +response);\n\t\t\t} catch (ClientProtocolException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\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 \n\t\t}\n\t\t\n\t\treturn response;\n\t}",
"@Test\n void postTest() {\n URI uri = URI.create(endBody + \"/post\");\n\n // create a dummy body for easy JSON conversion\n QuestionText newQuestion = new QuestionText(\"Test\");\n\n // convert to json and send / store the response\n HttpResponse<String> response = HttpMethods.post(uri, gson.toJson(newQuestion));\n\n assertEquals(200, response.statusCode());\n }",
"@Override\n\tpublic Object invoke(InvokeContext context) throws Exception {\n\t\tnet.sf.json.JSONObject obj = net.sf.json.JSONObject.fromObject(reqUser.getUser_param());\n\t\tString method = obj.getString(\"method\");\n\t\tString version = obj.getString(\"version\");\n\t\tString access_token = obj.getString(\"access_token\");\n\t\n//\t\tZteResponse resp = null;\n\t\tMap params = (Map) context.getParameters();\n\t\tHttpClient httpClient = HttpClientBuilder.create().build();\n\t\t//设置请求地址\n\t\tHttpPost request = new HttpPost(endpoint);\n\t\tlogger.info(endpoint);\n\t\tint timeout = 30000;//超时时间30秒\n\t\t//设置超时\n\t\tif(timeout > 0){\n\t\t\tRequestConfig requestConfig = RequestConfig.custom()\n\t\t\t\t.setSocketTimeout(timeout)\n\t\t\t\t.setConnectTimeout(timeout)\n\t\t\t\t.setConnectionRequestTimeout(timeout)\n\t\t\t\t.setExpectContinueEnabled(false).build();\n\t\t\trequest.setConfig(requestConfig);\n\t\t}\n\n\t\t//组装请求报文\n\t\tMap<String, Object> param = new HashMap<String, Object>();\n\t\tparam.put(\"access_token\", access_token);\n\t\tparam.put(\"method\", method);\n\t\tparam.put(\"version\", version);\n\n\t\t//业务参数 \n\t\tMap<String, String> content = new HashMap<String, String>();\n\t\tcontent.put(\"mail_num\", params.get(\"logi_no\").toString());\n\t\tparam.put(\"content\", content);\n\t\tlogger.info(\"请求参数:\"+param);\n\t\tHttpResponse response = null;\n\t\ttry{\n\t\t\t//请求报文转换成json格式的字符串\n\t\t\tStringEntity entity = new StringEntity(JSON.toJSONString(param), Consts.UTF_8.name());\n\t\t\tentity.setContentEncoding(Consts.UTF_8.name());\n\t\t\tentity.setContentType(ContentType.APPLICATION_JSON.toString());\n\t\t\trequest.setEntity(entity);\n\t\t\t\n\t\t\tcontext.setRequestString(JSON.toJSONString(param));\n\t context.setEndpoint(endpoint);\n\t\t\tcontext.setRequestTime(DateUtil.currentTime());\n\t\t\t\n\t\t\tresponse = httpClient.execute(request);\n\t\t\tint statusCode = response.getStatusLine().getStatusCode();\n\t\t\t//一定要先调用此方法,否则无法关闭连接\n\t\t\tString result = EntityUtils.toString(response.getEntity(), Consts.UTF_8.name());\n\t\t\tif(statusCode == HttpStatus.SC_OK){\n\t\t\t\t//打印响应结果\n\t\t\t\tlogger.info(result);\n\t\t\t}\n\t\t\t/** 调用前先打印连接池使用情况 */\n \tlogger.info(\"HttpEmsRouteQryInvoker==pool,\"+DateFormatUtils.formatDate(\"yyyy-MM-dd HH:mm:ss\")\n \t\t\t+\",connectionsInPool:\"+connectionManager.getConnectionsInPool()\n \t\t\t+\",connectionsInUse:\"+connectionManager.getConnectionsInUse()\n \t\t\t+\",maxConnectionsPerHost:\"+connectionManager.getMaxConnectionsPerHost()\n \t\t\t+\",maxTotalConnections:\"+connectionManager.getMaxTotalConnections());\n// int statusCode = client.executeMethod(postMethod);\n// if(TIME_OUT_STATUS==statusCode) throw new HttpTimeOutException(\"超时异常\");\n// String resContent = getResponseContent(postMethod.getResponseBodyAsStream());\n// //请求报文打印\n// logger.info(\"EMS返回报文: \"+resContent);\n// //异常提示信息,单引号处理\n// if(EcsOrderConsts.AOP_HTTP_STATUS_CODE_200!=statusCode){\n// \tresContent = resContent.replace(\"'\", \"\\'\");\n// \tresContent = resContent.replace(\"\\n\", \",\");//部分浏览器报错,临时解决方案\n// }\n JSONObject respJson = JSON.parseObject(result);\n JSONObject resultJson = respJson.getJSONObject(\"result\");\n String resultString=resultJson.toString(); \n logger.info(resultString);\n Class<?> clazz = Class.forName(rspPath);\n\t\t\tZteResponse resp = (ZteResponse) JsonUtil.fromJson(resultString, clazz);\n if(EcsOrderConsts.AOP_HTTP_STATUS_CODE_200!=statusCode){\n \tnet.sf.json.JSONObject results = net.sf.json.JSONObject.fromObject(result);\n \tresp.setError_code(\"-1\");\n \tresp.setError_msg(\"接口异常:\"+result);\n \tlogColMap.put(\"col2\", \"error\");\n } else{\n \tresp.setError_code(\"0000\");\n \tresp.setError_msg(\"成功\");\n\t\t\t\tlogColMap.put(\"col2\", \"success\");\n }\n\t context.setResultString(result);\n context.setResponeString(result);\n context.setResponseTime(DateUtil.currentTime());\n return resp;\n\t\t}catch(HttpException ex){\n\t\t\tex.printStackTrace();\n\t\t\tthrow ex;\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new IOException(\"接口异常\");\n\t\t}\n\t\tfinally{\n\t\t\tif(response != null){\n\t\t\t\tEntityUtils.consume(response.getEntity());//自动释放连接\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tString homeUrl= \"http://localhost/upload/login.php\";\r\n\t\tString loginUrl= \"http://localhost/upload/login.php?\";\r\n\t\tString postData= \"forward=&jumpurl=http%3A%2F%2Flocalhost%2Fupload%2Fthread.php%3Ffid%3D10&step=2&lgt=0&pwuser=admin&pwpwd=admin&hideid=0&cktime=31536000\";\r\n\t\t//String ResponseByLogin= new CommonHandler().sendPost(loginUrl, postData);\r\n\t\tnew HttpRequestor().sendGet(homeUrl);\r\n\t\tSystem.out.println(new HttpRequestor().mycookie);\r\n\t\tnew HttpRequestor().sendPost(loginUrl, postData);\r\n\t\tSystem.out.println(\"==============================\");\r\n\t\tSystem.out.println(new HttpRequestor().mycookie);\r\n\t\t\r\n\r\n\t}",
"@Override\r\n protected String doInBackground(String... params) {\r\n HttpClient httpclient = new DefaultHttpClient();\r\n HttpGet httppost = new HttpGet(params[0]); // params[0] contains url string\r\n try {\r\n HttpResponse response = httpclient.execute(httppost);\r\n jsonResult = inputStreamToString(\r\n response.getEntity().getContent()).toString();\r\n }\r\n\r\n catch (ClientProtocolException e) {\r\n e.printStackTrace();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }",
"public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }",
"@Override\n protected String doInBackground(String... params) {\n\n String data = \"\";\n\n HttpURLConnection httpURLConnection = null;\n try {\n\n httpURLConnection = (HttpURLConnection) new URL(params[0]).openConnection();\n httpURLConnection.setRequestMethod(\"POST\");\n\n httpURLConnection.setDoOutput(true);\n\n DataOutputStream wr = new DataOutputStream(httpURLConnection.getOutputStream());\n wr.writeBytes(\"PostData=\" + params[1]);\n wr.flush();\n wr.close();\n\n InputStream in = httpURLConnection.getInputStream();\n InputStreamReader inputStreamReader = new InputStreamReader(in);\n\n int inputStreamData = inputStreamReader.read();\n while (inputStreamData != -1) {\n char current = (char) inputStreamData;\n inputStreamData = inputStreamReader.read();\n data += current;\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (httpURLConnection != null) {\n httpURLConnection.disconnect();\n }\n }\n return data;\n }",
"@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public java.lang.String getResultPost() {\n return result_post;\n }",
"public static void startHttpsPost() {\n String reqUrl=\"https://222.221.16.170:80/coupon/webserver/get\";\n//\t\tString strRequest1=\"{\\\"phoneNo\\\":\\\"18088262389\\\",\\\"message\\\":\\\"测试一下\\\",\\\"act_code\\\":\\\"6\\\"}\";\n String strRequest2=\"{\\\"pay_user\\\":\\\"15393944645\\\",\\\"act_code\\\":\\\"2\\\"}\";\n // 红包充值\n String strRequest4=\"{'pay_user':'17787019595','act_code':'4','efCampaignId':'1305','packetId':'192374332','packetValue':'550','seqCode':'27364326432943947'}\";\n try{\n String strParm=TydicDES.encodeValue(strRequest4);\n String resultStr = sendHtpps(strParm,reqUrl);\n System.out.println(\"--------------返回密文:\"+resultStr);\n System.out.println(\"----解密后的结果:\"+TydicDES.decodedecodeValue(resultStr));\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.println();\n }",
"public static void main(String[] args) throws ClientProtocolException,\n\t\t\tIOException {\n\t\tString url = \"http://localhost:4444/index.html\";\n\t\tString url2 = \"http://posttestserver.com/post.php\";\n\t\t// creates new client\n\t\tG52APRClient client = new G52APRClient();\n\n\t\t// GET\n\t\tSystem.out.println(client.httpGet(url));\n\n\t\t// HEAD\n\t\t//System.out.println(client.httpHead(url));\n\n\t\t// POST\n\t\tString dataBody = \"Testing POST method, it worked. \";\n\t\t//System.out.println(client.httpPost(url, dataBody));\n\n\t\t// POSTARRAY\n\t\t// creating ArrayList\n\t\tArrayList<NameValuePair> dataArray = new ArrayList<NameValuePair>();\n\t\tdataArray.add(new BasicNameValuePair(\"Name\", \"Natalia\"));\n\t\tdataArray.add(new BasicNameValuePair(\"Course\", \"Computer Science\"));\n\t\tdataArray.add(new BasicNameValuePair(\"Age\", \"19\"));\n\t\t//System.out.println(client.httpPost(url, dataArray));\n\n\t\t// getConditional*******************************************\n\n\t\t// date which should return the body (last read before it was last\n\t\t// modified)\n\t\tString date1 = \"Sun Nov 16 21:31:815 GMT 2013\";\n\n\t\t// date which should return the 304 status line (last read after it was\n\t\t// last modified)\n\t\tString date2 = \"Sun Nov 16 21:31:815 GMT 2015\";\n\t\t\n\t\t//System.out.println(client.httpGetConditional(url, date1));\n\t\t\n\t\t//System.out.println(client.httpGetConditional(url, date2));\n\n\t\t// RUN TESTS FROM THIS MAIN TO ClientTests (testing for part 2 of\n\t\t// coursework)\n\t\t//ClientTests ct = new ClientTests(new G52APRClient());\n\t\t//ct.runTests(\"http://cs.nott.ac.uk/~syn/webfiles/index.html\");\n\n\t}",
"@Override\n public HttpMethods getMethod() {\n return HttpMethods.EVAL;\n }",
"public static void doConnection(String text){\r\n URL targetURL = null;\r\n\ttry {\r\n\t\ttargetURL = new URL(\"http://ircsmibot.byethost18.com/writeLogToText.php\");\r\n\t} catch (MalformedURLException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n HttpURLConnection conn = null;\r\n\ttry {\r\n\t\tconn = (HttpURLConnection)targetURL.openConnection();\r\n\t} catch (IOException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n //data send via POST request\r\n String data = \"test=\"+text;\r\n conn.setDoOutput(true);\r\n conn.setInstanceFollowRedirects(true);\r\n try {\r\n\t\tconn.setRequestMethod(\"POST\");\r\n\t} catch (ProtocolException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t}\r\n //conn.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\r\n ((HttpURLConnection) conn).setFixedLengthStreamingMode(data.length());\r\n conn.setRequestProperty(\"charset\", \"UTF-8\");\r\n conn.setRequestProperty(\"Content-Length\", Integer.toString(\r\n data.length()));\r\n\r\n conn.setUseCaches(false);\r\n for(int i=0;i<5;i++){\r\n \t \r\n try(OutputStreamWriter out = new OutputStreamWriter(\r\n conn.getOutputStream()))\r\n {\r\n out.write(data);\r\n break;\r\n } catch (IOException e) {\r\n\t\t//e.printStackTrace();\r\n\t\ttry {\r\n\t\t\tThread.sleep(200);\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n } \r\n }\r\n\r\n //reading code after POST request (here I want to have value from \"test\" field\r\n /* try(BufferedReader in = new BufferedReader(new InputStreamReader( \r\n conn.getInputStream())))\r\n {\r\n String currentLine;\r\n while((currentLine = in.readLine()) != null)\r\n {\r\n System.out.println(currentLine);\r\n }\r\n }\r\n ( */\r\n\r\n\r\n }"
] | [
"0.61975735",
"0.60949105",
"0.60933775",
"0.60578597",
"0.60273594",
"0.60251224",
"0.6003008",
"0.6002433",
"0.5994065",
"0.59204036",
"0.5916247",
"0.5894631",
"0.57901365",
"0.5777299",
"0.57758975",
"0.5764719",
"0.57636786",
"0.57593316",
"0.5744008",
"0.5722029",
"0.5716256",
"0.5703975",
"0.57018775",
"0.5680042",
"0.56696165",
"0.5657692",
"0.56334776",
"0.5614261",
"0.56071836",
"0.5597743",
"0.5585416",
"0.5583303",
"0.5583271",
"0.5578605",
"0.55770165",
"0.55652785",
"0.55652785",
"0.55652785",
"0.5563166",
"0.5550993",
"0.5547139",
"0.5542273",
"0.55386424",
"0.5537277",
"0.5530704",
"0.5524779",
"0.5521532",
"0.5518022",
"0.5509374",
"0.5502686",
"0.54933196",
"0.54932314",
"0.549209",
"0.546914",
"0.54686064",
"0.5463817",
"0.5457339",
"0.5451701",
"0.54440594",
"0.5443651",
"0.5434199",
"0.5429048",
"0.5422317",
"0.54179376",
"0.54170924",
"0.54170907",
"0.5406718",
"0.5398312",
"0.53980637",
"0.539225",
"0.5386614",
"0.53679",
"0.53651917",
"0.5363372",
"0.53600544",
"0.53568685",
"0.5351202",
"0.5342055",
"0.53290457",
"0.53225374",
"0.53220886",
"0.5320751",
"0.53177595",
"0.53159976",
"0.5305379",
"0.53027827",
"0.53015774",
"0.52996665",
"0.5293267",
"0.52930975",
"0.52870315",
"0.52822334",
"0.52776325",
"0.527738",
"0.52696633",
"0.5267694",
"0.52663445",
"0.5263969",
"0.52568436",
"0.5254581"
] | 0.59151936 | 11 |
Construct a name key | public NameKey(NameAnalyser analyser, NomenclaturalCode code, String scientificName, String scientificNameAuthorship, RankType rank, NameType type, @Nullable Set<NameFlag> flags) {
this.analyser = analyser;
this.code = code;
this.scientificName = scientificName;
this.scientificNameAuthorship = scientificNameAuthorship;
this.rank = rank;
this.type = type;
this.flags = flags;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static String makeKey(String id,\n String for_,\n String attrname,\n String attrtype) {\n return format(KEY_FMT, id, for_, attrname, attrtype);\n }",
"public ABLKey Key(String name) {\r\n\t\treturn new ABLKey(BrickFinder.getDefault().getKey(name));\r\n\t}",
"public void testCreateKeyWithName() {\n Key key = KeyFactory.createKey(kind, name);\n assertEquals(name, key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(0L, key.getId());\n }",
"public KeyNamePair() {\r\n this.key = \"\";\r\n this.name = \"\";\r\n }",
"QueryKey createQueryKey(String name);",
"public KeyNamePair(String key, String name) {\r\n this.key = key;\r\n this.name = name;\r\n }",
"public NameKey toNameKey() {\n if (this.scientificNameAuthorship == null)\n return this;\n Set<NameFlag> fl = this.flags;\n if (fl != null && fl.contains(NameFlag.AUTONYM)) {\n fl = new HashSet<>(this.flags);\n fl.remove(NameFlag.AUTONYM);\n fl = fl.isEmpty() ? null : fl;\n\n }\n return new NameKey(this.analyser, this.code, this.scientificName, null, this.rank, this.type, fl);\n }",
"String getLongNameKey();",
"protected String nameToKey(String searchName) {\n\t\tif( searchName == null ) throw new NullPointerException(\"searchName is null\");\n\t\treturn hex(sha1(searchName));\n\t}",
"public void testCreateKeyWithParentAndName() {\n Key parent = KeyFactory.createKey(kind, name);\n Key key = KeyFactory.createKey(parent, kind, name);\n assertEquals(name, key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(0L, key.getId());\n assertEquals(parent, key.getParent());\n }",
"String getShortNameKey();",
"public PlatformKey (String name) {\n assert name != null;\n this.name = name;\n }",
"public Object getKey() { return name; }",
"String newKey();",
"private String createKey(ListPrefix listPrefix, KeyPrefix keyPrefix,\n Plane plane) {\n if (plane != null) {\n return listPrefix + \"-\" + keyPrefix + \"-\" + plane;\n } else {\n return listPrefix + \"-\" + keyPrefix;\n }\n }",
"public static String getNameKeyForAssociateMatchKey(String lastname, String firstname) {\n if (lastname == null) {\n lastname = \"\";\n }\n String lastnameFirstword = lastname.split(\"[-]\")[0].toUpperCase();\n\n if (firstname == null) {\n firstname = \"\";\n }\n String firstTwoFirstname = firstname.substring(0, min(2, firstname.length())).toUpperCase();\n\n String name_key = lastnameFirstword + firstTwoFirstname;\n return name_key;\n }",
"public static RoomAuthName makeKey (int playerId)\n {\n return new RoomAuthName(\"\", playerId);\n }",
"public void testCreateKeyStringWithParentAndName() {\n try {\n KeyFactory.createKeyString(\n KeyFactory.createKey(kind, name),\n kind,\n name);\n } catch (IllegalStateException e) {\n return;\n }\n fail();\n }",
"@Test\n public void getName() throws Exception {\n String name = new AttributeKey<Number>(Number.class, \"keyName\").getName();\n assertThat(name, is(\"keyName\"));\n }",
"public interface Key<T> {\n String getName();\n Class<T> getType();\n\n static <T> Key<T> of(Class<T> type) {\n return of(type.getName(), type);\n }\n\n static <T> Key<T> of(String name, Class<T> type) {\n return new Key<T>() {\n @Override\n public String getName() {\n return name;\n }\n\n @Override\n public Class<T> getType() {\n return type;\n }\n };\n }\n }",
"public void testCreateKeyStringWithName() {\n try {\n KeyFactory.createKeyString(kind, name);\n } catch (IllegalStateException e) {\n return;\n }\n fail();\n }",
"private String key(final String... parts)\n\t{\n\t\treturn JesqueUtils.createKey(this.config.getNamespace(), parts);\n\t}",
"private int genKey()\n {\n return (nameValue.getData() + scopeDefined.getTag()).hashCode();\n }",
"@Override\r\n\t\t\tpublic IHierarchicalKey caseEStringToStringMapEntry(\r\n\t\t\t\t\tEntry<String, String> object) {\r\n\t\t\t\treturn new NamedElementKey(object);\r\n\t\t\t}",
"public NodeKey createNodeKey( String sourceName,\n String identifier );",
"public NodeKey createNodeKey();",
"private String createTypeKey(int type, String key) {\r\n\t\treturn type + \"-\" + key;\r\n\t}",
"final public OptimizedKey createOptimizedKey(final String name) {\r\n\t\treturn new OptimizedKey(name);\r\n\t}",
"void createKeyword(String name);",
"FutureSecureMap<KeyType, ValueType> create(String name);",
"public NodeKey createNodeKeyWithSource( String sourceName );",
"Observable<QueryKey> createQueryKeyAsync(String name);",
"public String createKey(String type) {\n int i = 0;\n for(i=0; i<EnumFactory.numberOfTypes; i++) {\n if (type.equals(EnumFactory.typeStrings[i])) {\n break;\n }\n }\n countKeys[i]++;\n String key = String.format(\"%s$%d\", EnumFactory.typeStrings[i],countKeys[i]);\n return key;\n }",
"public static String generateApiKey(String name) throws EndlosException {\n\t\treturn hash(Utility.generateToken(6) + DateUtility.getCurrentEpoch() + name + Utility.generateToken(8));\n\t}",
"@Override\n\t\tpublic Text createKey() {\n\t\t\treturn null;\n\t\t}",
"public static String createKey(String fromCity, String toCity) {\r\n if (fromCity.compareTo(toCity) >= 0) {\r\n String tmp = toCity;\r\n toCity = fromCity;\r\n fromCity = tmp;\r\n }\r\n return new StringBuilder().append(fromCity).append(KEY_DIVIDER).append(toCity).toString();\r\n }",
"private String createKey(OwObject object_p, OwPluginEntry pluginEntry_p) throws Exception\r\n {\r\n String objectId = object_p.getDMSID();\r\n String key = objectId + \"_\" + pluginEntry_p.getIndex();\r\n return key;\r\n }",
"public String createCacheKey() {\n return \"organization.\" + userEmail;\n }",
"String key();",
"public NodeKey createNodeKeyWithIdentifier( String identifier );",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"public static Object createNameforNewEnsemble(Map extendedData) {\n \t\treturn \"A dynamic name\";\r\n \t}",
"@Override\n\tprotected CacheKey createCacheKey(String key) {\n\t\treturn new ConfigCacheKey(key);\n\t}",
"com.icare.eai.schema.om.evSORequest.EvSORequestDocument.EvSORequest.Key addNewKey();",
"public NameKey toUncodedNameKey() {\n if (this.scientificNameAuthorship == null && this.rank == RankType.UNRANKED && this.code == null)\n return this;\n Set<NameFlag> fl = this.flags;\n if (fl != null && fl.contains(NameFlag.AUTONYM)) {\n fl = new HashSet<>(this.flags);\n fl.remove(NameFlag.AUTONYM);\n fl = fl.isEmpty() ? null : fl;\n\n }\n return new NameKey(this.analyser, null, this.scientificName, null, RankType.UNRANKED, this.type, fl);\n }",
"public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }",
"public String createKey(final String name, final String company, final String email) throws Exception {\n\t\ttry {\n\t\t\tJSONObject requestJSON = new JSONObject();\n\t\t\tif (name != null) requestJSON.put(\"name\", name);\n\t\t\tif (company != null) requestJSON.put(\"company\", company);\n\t\t\tif (email != null) requestJSON.put(\"email\", email);\n\t\t\t\n\t\t\tClient c = getHttpClient();\n\t\t\tWebResource r = c.resource(url + \"/keys\");\n\t\t\tcom.sun.jersey.api.client.WebResource.Builder b = r.header(HTTP_HEADER_KEY, key).type(MediaType.APPLICATION_JSON);\n\n\t\t\treturn b.post(String.class, requestJSON.toString());\n\t\t} catch (UniformInterfaceException e) {\n\t\t\tthrow new Exception(e.getMessage() + \" (\" + e.getResponse().getEntity(String.class) + \")\");\n\t\t} catch (Throwable e) {\n\t\t\tthrow new Exception(e);\n\t\t}\n\t}",
"public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyName(java.lang.String value) {\n validate(fields()[0], value);\n this.keyName = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public Object create(String key_letters) throws XtumlException;",
"KeyIdPair createKeyIdPair();",
"void createPropertyKeyToken( String key, int id );",
"public String getNameKey() {\n return getName();\n }",
"private void rebuildKey() {\r\n\r\n final StringBuffer sb = new StringBuffer();\r\n\r\n sb.append(getClassField().getCanonicalName());\r\n for (final Object k : this.keyPartList) {\r\n sb.append(k.toString()).append('|');\r\n }\r\n this.key = sb.toString();\r\n }",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"AlphabetNameReference createAlphabetNameReference();",
"public void makeName(String str) {\n this.name = str + iL++;\n }",
"@Test\n\tpublic void createNewMyKeyEmptyName() {\n\t\tRsaKeyStore ks = new RsaKeyStore();\n\t\tboolean re = ks.createNewMyKeyPair(\"\");\n\t\tassertFalse(\"Should not have created new my keypair: empty name\", re);\n\t}",
"public K getName() {\n return key;\n }",
"KeyColor(String name){\n this.name = name;\n }",
"public String buildKey(String dashes, String target, char c){\n\t\tStringBuilder key = new StringBuilder();\n\t\tfor(int i = 0; i<dashes.length(); i++){\n\t\t\tif(target.charAt(i)==c){\n\t\t\t\tkey.append(c);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tkey.append(dashes.charAt(i));\n\t\t\t}\n\t\t}\n\t\treturn key.toString();\n\t}",
"public static PSKey createKey(String fieldName, int searchId)\n {\n PSKey key = null;\n String[] keys = new String[]{KEY_COL_FIELDNAME, KEY_COL_SEARCHID};\n String[] values = new String[]{fieldName, String.valueOf(searchId)};\n\n if (null == fieldName || fieldName.trim().length() == 0)\n key = new PSKey(keys);\n else\n key = new PSKey(keys, values, true);\n\n return key;\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 }",
"private String generateStoragePortKey(StorageHADomain vplexDirector, String objectName) {\n return String.format(\"%s-%s\", vplexDirector.getNativeGuid(), objectName);\n }",
"private static Key createInternalLobKey() {\n return Key.createKey(Arrays.asList(INTERNAL_KEY_SPACE,\n ILK_PREFIX_COMPONENT,\n UUID.randomUUID().toString()));\n }",
"default String getKey() {\n return key(getClassName(), getName());\n }",
"private static Key generateKey() {\n return new SecretKeySpec(keyValue, ALGO);\n }",
"public void testCreateKeyStringWithParentAndId() {\n try {\n KeyFactory.createKeyString(\n KeyFactory.createKey(kind, name),\n kind,\n id);\n } catch (IllegalStateException e) {\n return;\n }\n fail();\n }",
"public ZoneKey generateZoneKey(final Name name, final List<Record> list) {\n\t\treturn generateZoneKey(name, list, false, false);\n\t}",
"private static void genKey(){\n\t\tSystem.out.println(\"Name to use for key?\");\n\t\tScanner in = new Scanner(System.in);\n\t\tkeyname = in.next();\n\t\tin.close();\n\t\t\n\t\tCreateKeyPairRequest createKPReq = new CreateKeyPairRequest();\n\t\tcreateKPReq.withKeyName(keyname);\n\t\tCreateKeyPairResult resultPair = null;\n\t\ttry{\n\t\t\tresultPair = ec2.createKeyPair(createKPReq);\n\t\t}catch(AmazonServiceException e){\n\t\t\tSystem.out.println(\"Key already exists!\");\n\t\t\tSystem.exit(0);\n\t\t}\n\n\t\tKeyPair keyPair = new KeyPair();\n\t\tkeyPair = resultPair.getKeyPair();\n\t\tString privateKey = keyPair.getKeyMaterial();\n\t\tFileOutputStream out = null;\n\t\t\n\t\t\n\t\ttry{\n\t\t\tFile f = new File(keyname + \".pem\");\n\t\t\tout = new FileOutputStream(f);\n\t\t\tbyte[] privateKeyByte = privateKey.getBytes();\n\t\t\tout.write(privateKeyByte);\n\t\t\tout.flush();\n\t\t\tout.close();\n\t\t\t\n\t\t\t\n\t\t}catch (IOException e){\n\t\t\tSystem.out.println(\"IO failed!\");\n\t\t\n\t\t}finally{\n\t\t\tif(out != null){\n\t\t\t\ttry {\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"IO failed!\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t\tSystem.out.println(\"Key generated: \" + keyname + \".pem\");\n\t}",
"public static PSKey createKey(int contentTypeId)\n {\n return new PSSimpleKey(KEY_CONTENTTYPEID, \"\" + contentTypeId); \n }",
"public Builder setKey(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n key_ = value;\n onChanged();\n return this;\n }",
"String getNameKeySpace();",
"public void setKeyName(String newName){\n\n //assigns the value newName to the keyName field\n this.keyName = newName;\n }",
"public ModelMessage addName(String key, String value) {\n super.addName(key, value);\n return this;\n }",
"Builder addName(String value);",
"public void testCreateKeyWithParentAndId() {\n Key parent = KeyFactory.createKey(kind, name);\n Key key = KeyFactory.createKey(parent, kind, id);\n assertNull(key.getName());\n assertEquals(kind, key.getKind());\n assertEquals(id, key.getId());\n assertEquals(parent, key.getParent());\n }",
"public Builder setNameKeySpace(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n nameKeySpace_ = value;\n onChanged();\n return this;\n }",
"public Name createName() {\n\t\treturn null;\n\t}",
"static InitKey toKey(final String key) throws ManagementException {\n\t\t\ttry {\n\t\t\t\treturn valueOf(key.toUpperCase());\n\t\t\t} catch (final IllegalArgumentException e) {\n\t\t\t\tthrow new ManagementException(key + \" is not a valid key for the Tic-Tac-Toe environment\", e);\n\t\t\t}\n\t\t}",
"public String makeName() {\r\n String result = makeNameKOL();\r\n if(previousNames == null || previousNames.size() == maxNames) {\r\n return result;\r\n }\r\n \r\n while(previousNames.contains(result)) {\r\n result = makeNameKOL();\r\n }\r\n \r\n return result;\r\n }",
"protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;",
"public interface IKeyCreator {\n byte[] generateKey(int n);\n\n byte[] getKeyFromFile(String p);\n\n byte[] inputKey(String s);\n}",
"public ComposedIdKey(String value) {\n\t\tStringTokenizer token = new StringTokenizer(value, \"::\");\n\t\ttoken.nextToken(); // className\n\t\tthis.Id_Event = token.nextToken(); // field1\n\t\tthis.Id_User = token.nextToken(); // field2\n\t}"
] | [
"0.70072097",
"0.6839832",
"0.68136585",
"0.6780729",
"0.67479926",
"0.66400105",
"0.66391146",
"0.64567816",
"0.64498293",
"0.64336383",
"0.64300954",
"0.642539",
"0.64169395",
"0.6414158",
"0.64139146",
"0.63781035",
"0.63385594",
"0.6317915",
"0.62666225",
"0.6263298",
"0.62455636",
"0.62415344",
"0.6223027",
"0.6200366",
"0.6178326",
"0.617236",
"0.6147719",
"0.61331576",
"0.6100926",
"0.6084683",
"0.6076696",
"0.60726464",
"0.6057442",
"0.6053331",
"0.6042217",
"0.60285366",
"0.60218775",
"0.6000423",
"0.5982317",
"0.5959343",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.59425485",
"0.5941182",
"0.5931757",
"0.5903741",
"0.5903393",
"0.5895464",
"0.5873207",
"0.58664143",
"0.58488744",
"0.5837015",
"0.58366275",
"0.5834404",
"0.58223796",
"0.5820255",
"0.5820255",
"0.5820255",
"0.5820255",
"0.5820255",
"0.5820255",
"0.5818374",
"0.58112866",
"0.5794053",
"0.57912576",
"0.57755494",
"0.57676",
"0.5765118",
"0.5758319",
"0.57566243",
"0.5753817",
"0.57409906",
"0.5727287",
"0.57197",
"0.57177067",
"0.569484",
"0.56802124",
"0.5675938",
"0.56730837",
"0.56667626",
"0.56654114",
"0.56647843",
"0.5663926",
"0.5662103",
"0.56563485",
"0.5652466",
"0.5646137",
"0.56255853",
"0.56247824",
"0.5610458"
] | 0.59056133 | 55 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.